qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,410,292 | <p>My target on daily basis is 250. For any given date, if the cum-daily_result has reached 250 then subsequent rows should have only 250 as expected results</p>
<p>In below table column 'ID' to 'cum_daily_result' are the input in data frame. The expected output is computed manually in column 'expected_daily_result'</p... | [
{
"answer_id": 74410277,
"author": "Royadma",
"author_id": 20476279,
"author_profile": "https://Stackoverflow.com/users/20476279",
"pm_score": 1,
"selected": false,
"text": "a[1,2] = \"some value\"\n"
},
{
"answer_id": 74410311,
"author": "Austin",
"author_id": 8472377,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482853/"
] |
74,410,315 | <p>Why doesn't the following barrier implementation work:</p>
<pre><code>void JoinQuery::barrier() {
std::unique_lock<std::mutex> lk(barrier_mutex);
barrier_count++;
if (barrier_count == NUM_THREADS) {
barrier_count = 0;
lk.unlock();
barrier_cv.notify_all();
} else {
... | [
{
"answer_id": 74410277,
"author": "Royadma",
"author_id": 20476279,
"author_profile": "https://Stackoverflow.com/users/20476279",
"pm_score": 1,
"selected": false,
"text": "a[1,2] = \"some value\"\n"
},
{
"answer_id": 74410311,
"author": "Austin",
"author_id": 8472377,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3901677/"
] |
74,410,324 | <p>I have an issue which is I keep getting the error of NameError: name 'Class_Name' is not defined. Which I understand. The tricky part is that my code looks something like this:</p>
<pre><code>class FirstClass():
second_class: SecondClass
def __init__(self):
"""SOME CODE HERE"""... | [
{
"answer_id": 74410277,
"author": "Royadma",
"author_id": 20476279,
"author_profile": "https://Stackoverflow.com/users/20476279",
"pm_score": 1,
"selected": false,
"text": "a[1,2] = \"some value\"\n"
},
{
"answer_id": 74410311,
"author": "Austin",
"author_id": 8472377,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8011633/"
] |
74,410,330 | <pre><code><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/nav.css"> <!—secondary bootstrap code—!>
<link rel="stylesheet" href="/static/bootstrap.css">
<script src="https://cdn.jsdelivr.net/npm/boots... | [
{
"answer_id": 74410399,
"author": "Saad1430",
"author_id": 19199222,
"author_profile": "https://Stackoverflow.com/users/19199222",
"pm_score": 0,
"selected": false,
"text": "<head> <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20322733/"
] |
74,410,389 | <p>I'm completely new to Java, and doing some online courses. I was doing this task when the online instructions did the task under a single Main class. I was trying to do some testing as I like to try keep my main class simple and was wondering how I could go about bringing about different arrays and method from anoth... | [
{
"answer_id": 74410981,
"author": "Dinuka Silva",
"author_id": 20457576,
"author_profile": "https://Stackoverflow.com/users/20457576",
"pm_score": 1,
"selected": true,
"text": "public class Main {\npublic static void main(String[] args) {\n Arrays arrays = new Arrays();\n int[] my... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483051/"
] |
74,410,396 | <pre><code><div class="menu-bar">
<ul>
<li><a href="/Home/index.html"> <i class="fa fa-house"></i>Home</a> </i></li>
< ul >
</div>
<style>
.menu-bar ul li a:hover {
color: bla... | [
{
"answer_id": 74410981,
"author": "Dinuka Silva",
"author_id": 20457576,
"author_profile": "https://Stackoverflow.com/users/20457576",
"pm_score": 1,
"selected": true,
"text": "public class Main {\npublic static void main(String[] args) {\n Arrays arrays = new Arrays();\n int[] my... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20404911/"
] |
74,410,414 | <p>I need to generate a full month report base on some criteria. The first condition is- I am taking a anonyms <strong>Date</strong> from user and after checking all the condition it will generate full month report.</p>
<p>I tried to generate the report but this is returning a day wise report. Everything is fine excep... | [
{
"answer_id": 74410433,
"author": "vivek nuna",
"author_id": 6527049,
"author_profile": "https://Stackoverflow.com/users/6527049",
"pm_score": 2,
"selected": true,
"text": ".Where(x => x.LcOpenDate.Month == id.Month && x.LcOpenDate.Year == id.Year)\n id LcOpenDate LcOpenDate DateTime? L... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421446/"
] |
74,410,420 | <p>What's wrong with this code? I tried get marks using array and pass the array in to function parameters and calculate the average in that function.</p>
<pre><code>const marks = [100,100,80];
var summ = 0;
function calculateGrade(){
for(let i=0; i<=marks.length;i++){
summ = summ+marks[i];... | [
{
"answer_id": 74410451,
"author": "user2182349",
"author_id": 2182349,
"author_profile": "https://Stackoverflow.com/users/2182349",
"pm_score": 1,
"selected": false,
"text": "const marks = [100, 100, 80];\n\n\nfunction calculateGrade(marks) {\n\n let summ = 0;\n\n for (let i = 0; i < ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11974838/"
] |
74,410,429 | <p>I'm trying to write a code for linked lists using c++. Insert at begin and Insert at end are not working for some reason. Here is the code.</p>
<p>`</p>
<pre><code>#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
void insertAtBeginning(int );
void insertAtEnd(int );
void printLL();
struct No... | [
{
"answer_id": 74410451,
"author": "user2182349",
"author_id": 2182349,
"author_profile": "https://Stackoverflow.com/users/2182349",
"pm_score": 1,
"selected": false,
"text": "const marks = [100, 100, 80];\n\n\nfunction calculateGrade(marks) {\n\n let summ = 0;\n\n for (let i = 0; i < ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19701594/"
] |
74,410,431 | <p>Given a set of X numbers less than or equal to Y, which may contain repeated numbers:</p>
<p>which algorithm gives you the maximum number of subsets whose sum of their elements is greater than or equal to Y, where none of the elements of one subset can be contained in another, and each subset cannot repeat the same ... | [
{
"answer_id": 74410451,
"author": "user2182349",
"author_id": 2182349,
"author_profile": "https://Stackoverflow.com/users/2182349",
"pm_score": 1,
"selected": false,
"text": "const marks = [100, 100, 80];\n\n\nfunction calculateGrade(marks) {\n\n let summ = 0;\n\n for (let i = 0; i < ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15457253/"
] |
74,410,506 | <pre><code>{
correct: "Warren Harding",
incorrect:
0: "Theodore Roosevelt",
1: "Andrew Jackson "
}
</code></pre>
<p>So I have this object, I want to turn it into an array containing objects like this:</p>
<pre><code>[answerOptions: [{answerText: "Warren Harding", isC... | [
{
"answer_id": 74410451,
"author": "user2182349",
"author_id": 2182349,
"author_profile": "https://Stackoverflow.com/users/2182349",
"pm_score": 1,
"selected": false,
"text": "const marks = [100, 100, 80];\n\n\nfunction calculateGrade(marks) {\n\n let summ = 0;\n\n for (let i = 0; i < ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19659837/"
] |
74,410,523 | <p>We have created a feedback form and once a user submits the feedback, we want to run the function that submits it to Airtable and then show the Next button.</p>
<p>Problem: The jQuery is working, showing the button after submit, but the function in (isset($_POST['submit']) isn't saving at all.</p>
<p>I've read throu... | [
{
"answer_id": 74410638,
"author": "Sachin Bahukhandi",
"author_id": 5192105,
"author_profile": "https://Stackoverflow.com/users/5192105",
"pm_score": 0,
"selected": false,
"text": "if (isset($_POST['submit'])){\n <input type=\"submit\" value=\"submit\" name=\"subbtn\" >\n isset($_POST['... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16034511/"
] |
74,410,527 | <p>I'm trying to make simple function to adding elements to my array but it doesnt work well. can you help me?</p>
<pre><code>
void insert(int &n, string name[]){
cin>>n;
for (int i = 0; i < n; i++)
{
cin>>name[i];
}
}
int main(){
int n;
string name[n];
insert(n,... | [
{
"answer_id": 74410649,
"author": "Cleiton Santoia Silva",
"author_id": 5605574,
"author_profile": "https://Stackoverflow.com/users/5605574",
"pm_score": 1,
"selected": false,
"text": "std::vector<int> v; // creates a vector \nv.push_back( 10 ); // include a number in a vector \n"... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483219/"
] |
74,410,531 | <p>What should I do to get any vector of the list?</p>
<p>I use following code to do it currently:</p>
<pre><code>list<vector<T>> alist;
list<vector<T>>::iterator iter = alist.begin();
vector<T> vec(*iter);
</code></pre>
<p>is there any other way by which I don't need to copy the data?</... | [
{
"answer_id": 74410594,
"author": "bolov",
"author_id": 2805305,
"author_profile": "https://Stackoverflow.com/users/2805305",
"pm_score": 2,
"selected": false,
"text": "vector<T> vec = alist.front();\n"
},
{
"answer_id": 74410705,
"author": "shy45",
"author_id": 20313707... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20077120/"
] |
74,410,547 | <p><a href="https://i.stack.imgur.com/ALJ43.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ALJ43.png" alt="enter image description here" /></a></p>
<p>I have a column of hours and minutes and I would like all values in the column to be in hours. So how do I divide only the columns values in minutes ... | [
{
"answer_id": 74410594,
"author": "bolov",
"author_id": 2805305,
"author_profile": "https://Stackoverflow.com/users/2805305",
"pm_score": 2,
"selected": false,
"text": "vector<T> vec = alist.front();\n"
},
{
"answer_id": 74410705,
"author": "shy45",
"author_id": 20313707... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13724549/"
] |
74,410,559 | <p>I am facing an issue in that I cannot send calling Intent above android version 11 below android version 11 Calling Intent working correctly.</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_DIAL);
//Demo number
intent.setData(Uri.parse("tel:" +"0000000000");
if (intent.resolveActivity(ge... | [
{
"answer_id": 74410594,
"author": "bolov",
"author_id": 2805305,
"author_profile": "https://Stackoverflow.com/users/2805305",
"pm_score": 2,
"selected": false,
"text": "vector<T> vec = alist.front();\n"
},
{
"answer_id": 74410705,
"author": "shy45",
"author_id": 20313707... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483233/"
] |
74,410,563 | <p>I have few text documents in a folder and would like to convert them to PDF Format. I am able to do it individually with the below code. Is there any way to select all the text files from a folder, convert and save them with the original name (as it was for text documents)? Below is the code I used to convert each f... | [
{
"answer_id": 74410594,
"author": "bolov",
"author_id": 2805305,
"author_profile": "https://Stackoverflow.com/users/2805305",
"pm_score": 2,
"selected": false,
"text": "vector<T> vec = alist.front();\n"
},
{
"answer_id": 74410705,
"author": "shy45",
"author_id": 20313707... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13313647/"
] |
74,410,669 | <p>Column value is shown in the figure and I am trying to extract the date from the datetime column.</p>
<p><img src="https://i.stack.imgur.com/cVyvW.png" alt="enter image description here" /></p>
<p>I m trying to use the following command</p>
<pre><code>=QUERY(A:B, "Select A where B is not NULL '"&SPLIT(... | [
{
"answer_id": 74410594,
"author": "bolov",
"author_id": 2805305,
"author_profile": "https://Stackoverflow.com/users/2805305",
"pm_score": 2,
"selected": false,
"text": "vector<T> vec = alist.front();\n"
},
{
"answer_id": 74410705,
"author": "shy45",
"author_id": 20313707... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19599725/"
] |
74,410,689 | <p>I am using AWS Amplify for a ReactJS application. The only two functional areas I am using from Amplify are Authentication and Hosting. These two are working fine, and a Cognito user pool associated with the project is working as expected, providing the logged in user to the React component after successful authenti... | [
{
"answer_id": 74410594,
"author": "bolov",
"author_id": 2805305,
"author_profile": "https://Stackoverflow.com/users/2805305",
"pm_score": 2,
"selected": false,
"text": "vector<T> vec = alist.front();\n"
},
{
"answer_id": 74410705,
"author": "shy45",
"author_id": 20313707... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4332644/"
] |
74,410,711 | <p>I am working in Reactjs and i am using nextjs,Right now i am trying to clear input field after click but not successful,Here is my code</p>
<pre><code><form onSubmit={handleSubmit}>
<input
type="text"
name="name"
id="name"
... | [
{
"answer_id": 74410594,
"author": "bolov",
"author_id": 2805305,
"author_profile": "https://Stackoverflow.com/users/2805305",
"pm_score": 2,
"selected": false,
"text": "vector<T> vec = alist.front();\n"
},
{
"answer_id": 74410705,
"author": "shy45",
"author_id": 20313707... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5308126/"
] |
74,410,719 | <p>I am using the following code to search and highlight accented text. The problem I am facing is that it removes accented text while highlighting. Is there anyway to keep accents?</p>
<pre><code>echo highlightTerm("Would you like a café, Mister Kàpêk?", "kape caf");
function highlightTerm($text, ... | [
{
"answer_id": 74413849,
"author": "ThW",
"author_id": 497139,
"author_profile": "https://Stackoverflow.com/users/497139",
"pm_score": 1,
"selected": false,
"text": "ext/intl IntlBreakIterator Collator $html = <<<'HTML'\n<div>\nWould you like a café, Mister Kàpêk?\n</div>\nHTML;\n\n// pr... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/934820/"
] |
74,410,736 | <p>What does <code>ravel</code> stand for in <code>NumPy</code>?</p>
<p>Sometimes, it is a bit harder to remember a function name that the name has nothing to do with its description.</p>
| [
{
"answer_id": 74410774,
"author": "ScottC",
"author_id": 20174226,
"author_profile": "https://Stackoverflow.com/users/20174226",
"pm_score": 2,
"selected": false,
"text": "ravel unravel ravel x = np.array([[1, 2, 3], \n [4, 5, 6]])\nnp.ravel(x)\n\nOUTPUT:\narray([1, 2, 3, 4... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1082883/"
] |
74,410,744 | <p>I have data on movies and all movies have IMDB score, however some do not have a meta critic score</p>
<p>Eg:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Name</th>
<th>IMDB Score</th>
<th>Meta Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>B</td>
<td>8</td>
<td>86</td>
</tr>
<tr>
<td>C</... | [
{
"answer_id": 74410813,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 2,
"selected": true,
"text": "groupby fillna df.groupby('IMDB Score')['Meta Score'].apply(lambda x: x.fillna(x.mean()))\n 0 86.0\n1 90.0\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483416/"
] |
74,410,768 | <p>I am struggling to figure out a way to check if a is logged-in after the first launch of the app and then sending them to the MainStack which contains every screen after the AuthStack. I'm using FireBase for auth.</p>
<p>My Auth stack contains my signin, signup, and forgot password screen:</p>
<pre><code>export defa... | [
{
"answer_id": 74410813,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 2,
"selected": true,
"text": "groupby fillna df.groupby('IMDB Score')['Meta Score'].apply(lambda x: x.fillna(x.mean()))\n 0 86.0\n1 90.0\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18788036/"
] |
74,410,826 | <p>I have a table with 5 columns.</p>
<ol>
<li>id</li>
<li>bday</li>
<li>update</li>
<li>restartDate</li>
<li>startDate</li>
</ol>
<p>I need to update each rows update column with the most recent date between restartDate and startDate</p>
<p>I've tried:</p>
<pre><code>update mytable
set update = (select MAX(v)from (val... | [
{
"answer_id": 74410989,
"author": "Slonsoid",
"author_id": 20474992,
"author_profile": "https://Stackoverflow.com/users/20474992",
"pm_score": 0,
"selected": false,
"text": "CASE UPDATE mytable \n SET update = CASE\n WHEN restartDate >= COALESCE(startDate,restartDate) THEN restartDa... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13986714/"
] |
74,410,838 | <p>I'm writing a code with js and outputting a string to a variable. I have sampled this variable below.</p>
<p><code>var ResultX = "SefaOODQWHCDCHDAJ=SefaNSADJHDDHQKSefaUQEOFQN==";</code></p>
<p>I need to separate this string based on what's between two words and add it to an array or list.
Like this:</p>
<p... | [
{
"answer_id": 74410860,
"author": "Alexander Mills",
"author_id": 1223975,
"author_profile": "https://Stackoverflow.com/users/1223975",
"pm_score": 0,
"selected": false,
"text": "var ResultY = [s.slice(0,x),s.slice(x,y),s.slice(y)];\n"
},
{
"answer_id": 74410867,
"author": "... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20266326/"
] |
74,410,850 | <p>A lot of the times when I code lets say I have only one cin>> I run my code it compiles but I can do infinite inputs even though in my code I have one input. What is the reason for this?</p>
<p>I checked for infinity loops found none for the specific test case I was working with.</p>
<p>Here's the code if you ... | [
{
"answer_id": 74410860,
"author": "Alexander Mills",
"author_id": 1223975,
"author_profile": "https://Stackoverflow.com/users/1223975",
"pm_score": 0,
"selected": false,
"text": "var ResultY = [s.slice(0,x),s.slice(x,y),s.slice(y)];\n"
},
{
"answer_id": 74410867,
"author": "... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20256879/"
] |
74,410,863 | <p>How do I convert the values of <code>Years_in_service</code> to its corresponding decimal/float values ?</p>
<p>For example, <code>'5 year(s), 7 month(s), 3 day(s)'</code> has a decimal value of <code>5.59</code></p>
<pre><code>import pandas as pd
import numpy as np
data = {'ID':['A1001','A5001','B1001','D5115','K... | [
{
"answer_id": 74410919,
"author": "Vin",
"author_id": 7955271,
"author_profile": "https://Stackoverflow.com/users/7955271",
"pm_score": 2,
"selected": false,
"text": "import pandas as pd \nimport numpy as np\n\ndata = {'ID':['A1001','A5001','B1001','D5115','K4910'],\n'Years_in_service':... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14271017/"
] |
74,410,884 | <p>How to video streaming using customtkinter library in class method form ?
i was troubling to configure how to that, i see many examples but i dont know how to implement this on my code</p>
<pre><code># code for video streaming
def camera(self):
ret, img = cap.read()
cv2image= cv2.cvtColor(cap.read()[1],cv2.C... | [
{
"answer_id": 74431559,
"author": "nothing",
"author_id": 17169484,
"author_profile": "https://Stackoverflow.com/users/17169484",
"pm_score": 1,
"selected": false,
"text": "import tkinter as tk\nfrom tkinter_webcam import webcam\n \nwindow = tk.Tk() # Sets up GUI\nwindow.title(\"Exampl... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18549873/"
] |
74,410,900 | <p>I am sending an object as params. But when I try to access the params in another screen. It says undefined.</p>
<p>Screen 1:</p>
<pre><code><TouchableOpacity
onPress={() => {
navigation.navigate('DraggableList', {
routes: ['A', 'B', 'C'],
name: 'ABCD',
});
... | [
{
"answer_id": 74431559,
"author": "nothing",
"author_id": 17169484,
"author_profile": "https://Stackoverflow.com/users/17169484",
"pm_score": 1,
"selected": false,
"text": "import tkinter as tk\nfrom tkinter_webcam import webcam\n \nwindow = tk.Tk() # Sets up GUI\nwindow.title(\"Exampl... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19533892/"
] |
74,410,922 | <p>I'm trying to write a program for my homework:</p>
<p>Write a program to determine how much to tip the server in a restaurant. The tip should be 15% of the check, with a minimum of $2.</p>
<p>The hint said to use an if statement, but i keep running into a alot of errors.</p>
<p>I don't know how else to write it, I'v... | [
{
"answer_id": 74411053,
"author": "Jamiu Shaibu",
"author_id": 19290081,
"author_profile": "https://Stackoverflow.com/users/19290081",
"pm_score": 1,
"selected": false,
"text": "if check = 59\nif check > 2:\n tip = check * 0.15\n print(tip)\n 8.85\n"
},
{
"answer_id": 7441... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482987/"
] |
74,410,974 | <p>This is the structure of my code:</p>
<pre class="lang-dart prettyprint-override"><code>class SomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
Widget1(), // How to pass `FooPageState` to this widget?
Widget2(),
);
}
}
class Widget2 extends ... | [
{
"answer_id": 74442219,
"author": "张海标",
"author_id": 13832791,
"author_profile": "https://Stackoverflow.com/users/13832791",
"pm_score": 0,
"selected": false,
"text": "class SomePage extends StatelessWidget {\n final GlobalKey<FooPageState> _globalKey = GlobalKey();\n\n @override\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12483095/"
] |
74,411,004 | <p>I want to call this terminal command on macOS in python <code>lsappinfo info -only name <code>lsappinfo front</code></code>. It returns the name of the <a href="https://stackoverflow.com/questions/24515436/how-to-get-current-foreground-applications-name-or-pid-in-os-x">current foreground application</a>.</p>
<p>Here... | [
{
"answer_id": 74411104,
"author": "Carlos Rojas",
"author_id": 19934610,
"author_profile": "https://Stackoverflow.com/users/19934610",
"pm_score": 0,
"selected": false,
"text": "[\"./{myscript}.sh\"]"
},
{
"answer_id": 74411253,
"author": "Remzinho",
"author_id": 2484591... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14253533/"
] |
74,411,023 | <pre><code>print("please enter your 5 marks below")
#read 5 inputs
mark1 = int(input("enter mark 1: "))
mark2 = int(input("enter mark 2: "))
mark3 = int(input("enter mark 3: "))
mark4 = int(input("enter mark 4: "))
mark5 = int(input("enter mark 5: &q... | [
{
"answer_id": 74411104,
"author": "Carlos Rojas",
"author_id": 19934610,
"author_profile": "https://Stackoverflow.com/users/19934610",
"pm_score": 0,
"selected": false,
"text": "[\"./{myscript}.sh\"]"
},
{
"answer_id": 74411253,
"author": "Remzinho",
"author_id": 2484591... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20336477/"
] |
74,411,037 | <p>I have a function like this</p>
<pre class="lang-rust prettyprint-override"><code>fn get_html(address: &str) -> String {
let mut response = reqwest::blocking::get(
address,
);
response = response.unwrap_or_else(|_e| {String::from("")});
response = response.text().unwrap_or_e... | [
{
"answer_id": 74411103,
"author": "Mario Santini",
"author_id": 6452829,
"author_profile": "https://Stackoverflow.com/users/6452829",
"pm_score": 3,
"selected": true,
"text": "reqwest::blocking::get() Result<Response> .text() Result<String> String::from(\"\") Result<Response> fn get_htm... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19334148/"
] |
74,411,052 | <p>I have 3 textboxes in which I write numbers and last one in which is the result. If I write numbers in TextBoxA and TextBoxB instead of adding them together after I press equal button then it put them next to each other.</p>
<p>[<img src="https://i.stack.imgur.com/H8Kdv.png" alt="It look like this" />]</p>
<p>I trie... | [
{
"answer_id": 74411090,
"author": "masoud rafiee",
"author_id": 4256602,
"author_profile": "https://Stackoverflow.com/users/4256602",
"pm_score": 0,
"selected": false,
"text": "private void EqualsButton_Click(object sender, EventArgs e)\n{\n var resultA=0;\n var resultB=0;\n if(!stri... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20355376/"
] |
74,411,058 | <p>I'm not precisely sure about what causes this error in my code but I guess it's the poor approach of addressing a parameter in the <strong>resualtValues</strong> function. ** thank u all in advance.**</p>
<pre><code> const calculator = {
sum:[],
subtraction:[],
multiplication:[]... | [
{
"answer_id": 74411142,
"author": "Javaid",
"author_id": 11674006,
"author_profile": "https://Stackoverflow.com/users/11674006",
"pm_score": 2,
"selected": false,
"text": "const calculator = {\n sum: [],\n subtraction: [],\n multiplication: [],\n division: [],\n\n sumValu... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483554/"
] |
74,411,078 | <p>I have a problem where I want to <a href="https://www.interviewbit.com/blog/longest-common-prefix/" rel="nofollow noreferrer">find the longest common prefix of N strings given in an array</a>.</p>
<p>Below is a perfectly working code:</p>
<pre><code>def longestCommonPrefix(S) :
if (len(S) == 0):
return &... | [
{
"answer_id": 74411157,
"author": "IreiterateU",
"author_id": 20483908,
"author_profile": "https://Stackoverflow.com/users/20483908",
"pm_score": 0,
"selected": false,
"text": "\\n \\t, \\b X = [i.replace(\"\\n\",\"$$\").replace(\"\\t\",\"--\").replace(\"\\b\",'##') for i in X] \\begin ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11725056/"
] |
74,411,123 | <p>my base <code>class</code>:</p>
<pre class="lang-js prettyprint-override"><code>import { Component, VERSION } from '@angular/core';
import { Feature } from './super.component';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponen... | [
{
"answer_id": 74411954,
"author": "3gwebtrain",
"author_id": 218349,
"author_profile": "https://Stackoverflow.com/users/218349",
"pm_score": 0,
"selected": false,
"text": "ParentClass.prototype.myMethod.call(this)\n import { AppComponent } from './app.component';\n\nexport class Feature... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218349/"
] |
74,411,128 | <p>I'm trying to understand exactly how this <a href="https://davidwalsh.name/javascript-once" rel="nofollow noreferrer">Once function by David Walsh</a> works:</p>
<p>`</p>
<pre><code>function once(fn, context) {
var result;
return function() {
if(fn) {
result = fn.apply(context || this,... | [
{
"answer_id": 74411954,
"author": "3gwebtrain",
"author_id": 218349,
"author_profile": "https://Stackoverflow.com/users/218349",
"pm_score": 0,
"selected": false,
"text": "ParentClass.prototype.myMethod.call(this)\n import { AppComponent } from './app.component';\n\nexport class Feature... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4675347/"
] |
74,411,136 | <p>I hv downloaded template for bloger and i want to remove copyright area else change it to blog itself but unable to remove it anyone guide me to change it
Blog code</p>
<pre><code> <div class='copyright-area'>Created By <a href='https://propertypartner24x7.blogspot.com/' id='mycontent' rel='dofollow' style=... | [
{
"answer_id": 74411954,
"author": "3gwebtrain",
"author_id": 218349,
"author_profile": "https://Stackoverflow.com/users/218349",
"pm_score": 0,
"selected": false,
"text": "ParentClass.prototype.myMethod.call(this)\n import { AppComponent } from './app.component';\n\nexport class Feature... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4955856/"
] |
74,411,153 | <pre><code>url = "https://www.gumtree.com/search?search_category=all&q=ferrari"
while url:
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
name = soup.find_all("div", class_="h3-responsive")
price = soup.find_all("stro... | [
{
"answer_id": 74411346,
"author": "Barry the Platipus",
"author_id": 19475185,
"author_profile": "https://Stackoverflow.com/users/19475185",
"pm_score": 3,
"selected": true,
"text": "next page import requests\nfrom bs4 import BeautifulSoup as bs\nfrom tqdm import tqdm\nimport pandas as ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483330/"
] |
74,411,154 | <p>I am receiving from the web service JSON array that contains 2 types of objects - base class and class extending the base (it contains some extra attributes).
How can I process it with Jackson that will produce at the end a list of base class in Java. For example, I have a class Car and class Truck which contains at... | [
{
"answer_id": 74419023,
"author": "user404",
"author_id": 5332914,
"author_profile": "https://Stackoverflow.com/users/5332914",
"pm_score": 0,
"selected": false,
"text": "Car Car Car @JsonIgnoreProperties(ignoreUnknown = true) \npublic class Car{\n //your fields\n }\n"
},
{
"ans... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2318409/"
] |
74,411,179 | <p>I have the following javascript code:</p>
<pre><code>const theJvScSet = new Set()
while (theJvScSet.size != 10) {
let iniKick = Math.floor(Math.random()*2), setElement = [iniKick]
for (let index = 0; index < 2; index++) {
const spinVal = 1 + Math.floor(Math.random()*5)
setElement.push(spinVal)
}
... | [
{
"answer_id": 74411236,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 2,
"selected": false,
"text": "const arr=[4,5,6], unique=new Set();\n\nunique.add([1,2,3]);\nunique.add([1,2,3]);\nunique.add([1,2,3]);\n\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/611201/"
] |
74,411,212 | <p>I have a table which store some datas. This is my table structure.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Course</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<td>Wolden</td>
<td>New York</td>
</tr>
<tr>
<td>Sertigo</td>
<td>Seatlle</td>
</tr>
<tr>
<td>Monad</td>
<td>Chicag... | [
{
"answer_id": 74411236,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 2,
"selected": false,
"text": "const arr=[4,5,6], unique=new Set();\n\nunique.add([1,2,3]);\nunique.add([1,2,3]);\nunique.add([1,2,3]);\n\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7198384/"
] |
74,411,219 | <p>I'm building a landing page with some SVGs blobs that are meant to be on the edges of the webpage, half-inside, half-outside. The problem happens when adjusting the blobs for mobile dimensions, the blobs positioned on the right side are generating a lot of white space and thus right-scrolling. I'd like to 'cut' the ... | [
{
"answer_id": 74411236,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 2,
"selected": false,
"text": "const arr=[4,5,6], unique=new Set();\n\nunique.add([1,2,3]);\nunique.add([1,2,3]);\nunique.add([1,2,3]);\n\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16302284/"
] |
74,411,227 | <p>I have create a table person(id, name ,samenamecount).The samenamecount attribute can be null but for each row can store the row count for same names.I am achieving this by calling a stored procedure inside a after insert trigger.Below is my code.</p>
<pre><code>create or replace procedure automatic(s in person.name... | [
{
"answer_id": 74412162,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "CREATE TABLE person (\n id NUMBER\n GENERATED ALWAYS AS IDENTITY\n CONSTRAINT person__id__pk PRIMARY KEY,... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19831141/"
] |
74,411,231 | <p>I found this in vue component , I didn't understand the purpose of :data-col in div , could you explain please</p>
<pre><code><template>
<div
class="vertical-layout h-100"
:class="[layoutClasses]"
:data-col="isNavMenuHidden ? '1-column' : null"
>
</code></pre... | [
{
"answer_id": 74411329,
"author": "Remicaster",
"author_id": 18665782,
"author_profile": "https://Stackoverflow.com/users/18665782",
"pm_score": 2,
"selected": false,
"text": "data-col 1-column isNavMenuHidden"
}
] | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11141374/"
] |
74,411,235 | <p>How can i make the description responsive, like going to the next line? It's not going to the next line instead it extends horizontally. I can easily fix this if I use textField but I need to adjust the padding and the outline of it, is there any other way?</p>
<pre><code> <Container maxWidth="lg"&g... | [
{
"answer_id": 74411284,
"author": "Ali Sattarzadeh",
"author_id": 11434567,
"author_profile": "https://Stackoverflow.com/users/11434567",
"pm_score": 0,
"selected": false,
"text": "{\n max-width:700px;\n white-space: normal;\n}\n"
},
{
"answer_id": 74411305,
"author": "arp",... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18478430/"
] |
74,411,266 | <p>Can I write a function in C++ to accept an array of values like this:</p>
<pre class="lang-cpp prettyprint-override"><code>void someFunction(/*the parameter for array*/){
//do something
}
someFunction({ 1, 2, 3 });
</code></pre>
| [
{
"answer_id": 74411284,
"author": "Ali Sattarzadeh",
"author_id": 11434567,
"author_profile": "https://Stackoverflow.com/users/11434567",
"pm_score": 0,
"selected": false,
"text": "{\n max-width:700px;\n white-space: normal;\n}\n"
},
{
"answer_id": 74411305,
"author": "arp",... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19345796/"
] |
74,411,268 | <p>Digits mean numbers not places</p>
<p>I tried but the logic is wrong I know</p>
<pre><code>N=input()
L=len(N)
N=int(N)
sum_e=0
sum_o=0
for i in range(0,L+1):
if i%2==0:
sum_e=sum_e+i
else:
sum_o=sum_o+i
print(sum_e, sum_o)
</code></pre>
| [
{
"answer_id": 74411295,
"author": "KillerRebooted",
"author_id": 18554284,
"author_profile": "https://Stackoverflow.com/users/18554284",
"pm_score": 0,
"selected": false,
"text": "N=input()\n\nsum_e=0\nsum_o=0\n\nfor i in N:\n if int(i)%2==0:\n sum_e += int(i)\n else:\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484018/"
] |
74,411,285 | <p>I want to do something like this:</p>
<pre><code>const GreetingWithCounter = (props) => {
const { name, count } = props;
return (
<div>
<div>Hello {name}</div>
<button onClick={() => render({ ...props, count: count + 1 })}>
{count}
</button>
... | [
{
"answer_id": 74444557,
"author": "Neil Girardi",
"author_id": 1500241,
"author_profile": "https://Stackoverflow.com/users/1500241",
"pm_score": 2,
"selected": false,
"text": "const [count, setCount] = useState(initialCount) onClick count"
},
{
"answer_id": 74463446,
"author... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1927876/"
] |
74,411,407 | <p>I want to get the first item of each set of different entries of a columns containing IDs. It works with pandas, but not in dask, as I cannot sort with multiple columns and the <code>.head</code> aggregation is not implemented. Is there another way of getting the desired result?</p>
<p>Here is the mimimal example fo... | [
{
"answer_id": 74444557,
"author": "Neil Girardi",
"author_id": 1500241,
"author_profile": "https://Stackoverflow.com/users/1500241",
"pm_score": 2,
"selected": false,
"text": "const [count, setCount] = useState(initialCount) onClick count"
},
{
"answer_id": 74463446,
"author... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19953747/"
] |
74,411,438 | <p>What I am trying to do is, whenever any cell in the range (B1:B10) is edited I want to sum up the values within the range (B1:B10) and add this to cell B11. I used the following code but it adds the formula into the cell. I want to put only the summed value, not the formula itself.</p>
<pre><code>function onEdit(e) ... | [
{
"answer_id": 74415165,
"author": "doubleunary",
"author_id": 13045193,
"author_profile": "https://Stackoverflow.com/users/13045193",
"pm_score": 3,
"selected": true,
"text": "Array.filter() Array.reduce() /**\n* Simple trigger that runs each time the user hand edits the spreadsheet.\n*... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13935956/"
] |
74,411,450 | <p>some previous questions have been asked on this topic, but they don't seem to include the case when a string contains multiple instances of the same delimiter.</p>
<p><a href="https://stackoverflow.com/questions/23518325/how-to-extract-substring-between-patterns-and-in-r">How to extract substring between patterns &q... | [
{
"answer_id": 74411494,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "sapply() strsplit() unname(sapply(vec, function(x) unlist(strsplit(x, \"/\"))[2]))\n\n[1] \"Germany\" \"Germ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8473437/"
] |
74,411,455 | <p>I am trying to speed up some python code using rust bindings with py03.</p>
<p>i have implemented the following function in both python and rust:</p>
<pre class="lang-py prettyprint-override"><code>def _play_action(state, action):
temp = state.copy()
i1, j1, i2, j2 = action
h1 = abs(temp[i1][j1])
h2... | [
{
"answer_id": 74411494,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "sapply() strsplit() unname(sapply(vec, function(x) unlist(strsplit(x, \"/\"))[2]))\n\n[1] \"Germany\" \"Germ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20013672/"
] |
74,411,467 | <p>i have a web page with canvass and it is used to render 3D scene using threejs, however the canvas is not fullscreen so it has scroll bar since it has some HTML content. how can i prevent mouse wheel from scrolling the page and only handled the mousewheel inside the canvas?</p>
<p>I already did add the preventDefaul... | [
{
"answer_id": 74411494,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "sapply() strsplit() unname(sapply(vec, function(x) unlist(strsplit(x, \"/\"))[2]))\n\n[1] \"Germany\" \"Germ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2300947/"
] |
74,411,512 | <p>How can I return the second max by group in R data table with the id column returned as well?</p>
<p>Reproducible example below:</p>
<pre><code>library(data.table)
sample_dt <- data.table(
myid=c("A","B","B","A","B","B","C","C",&quo... | [
{
"answer_id": 74411774,
"author": "Waldi",
"author_id": 13513328,
"author_profile": "https://Stackoverflow.com/users/13513328",
"pm_score": 3,
"selected": false,
"text": "sample_dt[order(-mycol1),.SD[2],by=myid]\n myid mycol1\n <char> <num>\n1: A 140\n2: B -108\n3:... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7837376/"
] |
74,411,514 | <p>Currently doing a college assignment where we need to input and add 3 different scores.
The Scores must be not be less than 0 or greater than 10, and they can only be in multiples of 0.5. It's the latter part I'm having trouble with.</p>
<p>How do I tell the program to give an error if the input isn't a multiple of ... | [
{
"answer_id": 74411774,
"author": "Waldi",
"author_id": 13513328,
"author_profile": "https://Stackoverflow.com/users/13513328",
"pm_score": 3,
"selected": false,
"text": "sample_dt[order(-mycol1),.SD[2],by=myid]\n myid mycol1\n <char> <num>\n1: A 140\n2: B -108\n3:... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484152/"
] |
74,411,525 | <p>I need to run a Factory <code>50</code> times, so inside the <code>DatabseSeeder</code>:</p>
<pre><code>public function run()
{
for($i=1;$i<=50;$i++){
(new CategoryQuestionFactory($i))->create();
}
}
</code></pre>
<p>So as you can see, I tried passing a variable called <code>$i</code> as paramet... | [
{
"answer_id": 74598943,
"author": "xenooooo",
"author_id": 20283630,
"author_profile": "https://Stackoverflow.com/users/20283630",
"pm_score": 1,
"selected": false,
"text": "has() /**\n* will create a one question and 3 category then create a data in the intermediate table. \n* expected... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17119202/"
] |
74,411,537 | <p>Not sure how to run the test image script here</p>
<p><a href="https://github.com/cessen/lut_extractor" rel="nofollow noreferrer">https://github.com/cessen/lut_extractor</a></p>
<p>Does it require certain dependencies?</p>
<p>Apologies if it's black and white in the readme but I can't get it to work.</p>
| [
{
"answer_id": 74598943,
"author": "xenooooo",
"author_id": 20283630,
"author_profile": "https://Stackoverflow.com/users/20283630",
"pm_score": 1,
"selected": false,
"text": "has() /**\n* will create a one question and 3 category then create a data in the intermediate table. \n* expected... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15398477/"
] |
74,411,559 | <p>I have a object which is created by groupBy function.</p>
<pre><code>const productOptions = {
color: [
{ id: 1, type: "color", name: "red" },
{ id: 2, type: "color", name: "orange" },
{ id: 3, type: "color", name: "yellow" },
... | [
{
"answer_id": 74598943,
"author": "xenooooo",
"author_id": 20283630,
"author_profile": "https://Stackoverflow.com/users/20283630",
"pm_score": 1,
"selected": false,
"text": "has() /**\n* will create a one question and 3 category then create a data in the intermediate table. \n* expected... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20164678/"
] |
74,411,597 | <p><strong>how i do use beautifulsoup get only string num "611674069.14413534248" from url ?</strong></p>
<p><code>https://shopee.co.th/Kawasaki-%E0%B8%A3%E0%B8%AD%E0%B8%87%E0%B9%80% E0%B8%97%E0%B9%89%E0%B8%B2%E0%B8%81%E0%B8%B5%E0%B8%AC%E0%B8%B2%E0%B8%A5%E0%B9%8D%E0%B8%B2%E0%B8%A5%E0%B8%AD%E0%B8%87%E0%B8%A3%... | [
{
"answer_id": 74598943,
"author": "xenooooo",
"author_id": 20283630,
"author_profile": "https://Stackoverflow.com/users/20283630",
"pm_score": 1,
"selected": false,
"text": "has() /**\n* will create a one question and 3 category then create a data in the intermediate table. \n* expected... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483757/"
] |
74,411,600 | <p>I have this association in the DB -
<a href="https://i.stack.imgur.com/4WjzY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4WjzY.jpg" alt="table structure looks like this in the DB -" /></a></p>
<p>I want the data to be persisted in the tables like this -
<a href="https://i.stack.imgur.com/MfLsz... | [
{
"answer_id": 74411904,
"author": "Davide D'Alto",
"author_id": 2404683,
"author_profile": "https://Stackoverflow.com/users/2404683",
"pm_score": 0,
"selected": false,
"text": "studentRepository.findById(100L).get(); @Trannsaction @Test\n@Transactional\npublic void testLibrarySubscripti... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5034750/"
] |
74,411,614 | <pre><code>package main
import "fmt"
func Reverse(str string) string {
r := ""
for i := len(str) - 1; i >= 0; i-- {
r += string(str[i])
// fmt.Println(r)
}
return r
}
func Generate(str string) string {
str = Reverse(str)
// vowel := ""
for... | [
{
"answer_id": 74411904,
"author": "Davide D'Alto",
"author_id": 2404683,
"author_profile": "https://Stackoverflow.com/users/2404683",
"pm_score": 0,
"selected": false,
"text": "studentRepository.findById(100L).get(); @Trannsaction @Test\n@Transactional\npublic void testLibrarySubscripti... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20267588/"
] |
74,411,652 | <p>I'm trying to concatenate a number to the last dimension of a (None, 10, 3) tensor to make it a (None, 10, 4) tensor using a custom layer. It seems impossible, because to concatenate, all the dimensions except for the one being merged on must be equal and we can't initialize a tensor with 'None' as the first dimensi... | [
{
"answer_id": 74411923,
"author": "Jirayu Kaewprateep",
"author_id": 7848579,
"author_profile": "https://Stackoverflow.com/users/7848579",
"pm_score": 0,
"selected": false,
"text": "import tensorflow as tf\n\nclass MyPositionEmbeddedLayer( tf.keras.layers.Concatenate ):\n def __init_... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1567264/"
] |
74,411,661 | <p>I need to calculate the difference between each consecutive pairs, but all current solutions such as <code>rolling</code>, <code>diff</code>, will not jump.</p>
<p>To explain, I need to get <code>output</code> column as such</p>
<pre><code> a output
0 5 -3
1 8 -2
2 2 nan
3 4 nan
</code></pre>
<p>so (5-8) and (2-4) ... | [
{
"answer_id": 74411923,
"author": "Jirayu Kaewprateep",
"author_id": 7848579,
"author_profile": "https://Stackoverflow.com/users/7848579",
"pm_score": 0,
"selected": false,
"text": "import tensorflow as tf\n\nclass MyPositionEmbeddedLayer( tf.keras.layers.Concatenate ):\n def __init_... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18813761/"
] |
74,411,678 | <pre><code>data = [
{
'name': 'Instagram',
'follower_count': 346,
'description': 'Social media platform',
'country': 'United States'
},
{
'name': 'Cristiano Ronaldo',
'follower_count': 215,
'description': 'Footballer',
'country': 'Portugal'
... | [
{
"answer_id": 74411706,
"author": "Chase McDougall",
"author_id": 17985490,
"author_profile": "https://Stackoverflow.com/users/17985490",
"pm_score": 1,
"selected": false,
"text": "data[i][“follower_count”]\n i"
},
{
"answer_id": 74412809,
"author": "Jethy11",
"author_id... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484384/"
] |
74,411,730 | <p>I have array</p>
<pre><code> const arr = [
{id: 1, country: 'Austria'},
{id: 2, country: 'Germany'},
{id: 3, country: 'Austria'},
];
</code></pre>
<p>I tried the following the code to filter it.</p>
<pre><code>arry.map((item,idx) => (
item.country== "Austria"?(
console.log(item.i... | [
{
"answer_id": 74411706,
"author": "Chase McDougall",
"author_id": 17985490,
"author_profile": "https://Stackoverflow.com/users/17985490",
"pm_score": 1,
"selected": false,
"text": "data[i][“follower_count”]\n i"
},
{
"answer_id": 74412809,
"author": "Jethy11",
"author_id... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20424966/"
] |
74,411,746 | <p>I'm trying to check to see how many negative numbers in an arrays and check if there's any duplicate numbers in the same array.</p>
<p>Here's the code that I'm using:</p>
<pre><code>#include<stdio.h>
int main()
{
int n = 0;
int negative_count = 0;
int duplicate_count = 0;
// input lenght of the array
scanf(&q... | [
{
"answer_id": 74411835,
"author": "Daniel",
"author_id": 20484460,
"author_profile": "https://Stackoverflow.com/users/20484460",
"pm_score": 2,
"selected": true,
"text": "abs(-1) = 1\nabs(1) = 1\n\n\n-1 == 1 returns false\nabs(-1) == abs(1) returns true\n"
},
{
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17285045/"
] |
74,411,749 | <p>I have tried integrating in my App TTS, but there is no audio-output if I click the Button. Here is the Button code:</p>
<pre><code>struct VocabDetailView: View {
//...
var body: some View {
//...
HStack{
Button("Play") {
readOut(text: "test")
}... | [
{
"answer_id": 74417877,
"author": "Nerdy Bunz",
"author_id": 5717640,
"author_profile": "https://Stackoverflow.com/users/5717640",
"pm_score": 0,
"selected": false,
"text": "let tts = AVSpeechSynthesizer()\n\ntts.speak(AVSpeechUtterance(string: \"hello\"))\n"
},
{
"answer_id": 7... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20143530/"
] |
74,411,779 | <p>I know there are a lot Q&A regarding to this topic on SO. But in my case it is a little bit different. I have a global stylesheet <code>modal.scss</code> for restyling default bootstrap's model. I want to centre the model footer with <code>justify-content: center;</code> But it is not applying because of bootstr... | [
{
"answer_id": 74417877,
"author": "Nerdy Bunz",
"author_id": 5717640,
"author_profile": "https://Stackoverflow.com/users/5717640",
"pm_score": 0,
"selected": false,
"text": "let tts = AVSpeechSynthesizer()\n\ntts.speak(AVSpeechUtterance(string: \"hello\"))\n"
},
{
"answer_id": 7... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15148870/"
] |
74,411,804 | <p>How to make the variable <strong><code>m_i</code></strong> have its own value for each object, and when a certain function is called, the value of <strong><code>m_i</code></strong> for all objects should be set to zero, no matter how many objects of the class <strong><code>CMyClass</code></strong> were created?</p>
... | [
{
"answer_id": 74411876,
"author": "Lasersköld",
"author_id": 3748275,
"author_profile": "https://Stackoverflow.com/users/3748275",
"pm_score": 3,
"selected": true,
"text": "#include <iostream>\n#include <vector>\n\nusing namespace std;\nclass CMyClass {\npublic:\n\n CMyClass(int i): ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13174370/"
] |
74,411,852 | <p>I want to be able to use getValue and iterate myObject keys to get the key value "f" if i input any variable.</p>
<pre><code>result = "f";
</code></pre>
<p>Or</p>
<pre><code>result = " g";
</code></pre>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-b... | [
{
"answer_id": 74411922,
"author": "mplungjan",
"author_id": 295783,
"author_profile": "https://Stackoverflow.com/users/295783",
"pm_score": 2,
"selected": false,
"text": "const getByValue = (obj,val) => Object.entries(obj)\n .filter(([key,arr]) => arr.includes(val))\n .map(([key,arr])... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484321/"
] |
74,411,890 | <p>I have a state variable <code>stock_data</code> having an array of details of all stock. Structure:</p>
<pre><code> {
"scrip_code": 506235,
"short_name": "ALEMBICLTD",
"Ex_date": "12 Sep 2022",
"Purpose": "Dividend - ... | [
{
"answer_id": 74412132,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": " useEffect(() => {\n\n const fetch_BSE_Data = async () => {\n console.log(\"fetching data\");\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13037132/"
] |
74,411,925 | <p>I have Core project where I need to do some cryptographic operations, e.g. verification of SHA256. What can I do if it's Core project, so it shouldn't depend on anything? I have to write my own cryptographic functions that are resistant to e.g. side-channel attack? This causes security problems.</p>
<p>So what to do... | [
{
"answer_id": 74412132,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": " useEffect(() => {\n\n const fetch_BSE_Data = async () => {\n console.log(\"fetching data\");\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14329228/"
] |
74,411,967 | <p>I have a house icon and I want as soon as I hover over it the SVG changes to the text Home</p>
<p><strong>Demo:</strong></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-css lang-css prettyprint-override"><code>... | [
{
"answer_id": 74412132,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": " useEffect(() => {\n\n const fetch_BSE_Data = async () => {\n console.log(\"fetching data\");\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19877456/"
] |
74,411,996 | <p>i was trying to set my eslint configuration up with react, typescript and astro, but seems i can't shake this error off:</p>
<p><a href="https://i.stack.imgur.com/T5VfX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T5VfX.png" alt="enter image description here" /></a></p>
<p>Here is my <code>.esl... | [
{
"answer_id": 74412132,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": " useEffect(() => {\n\n const fetch_BSE_Data = async () => {\n console.log(\"fetching data\");\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14306019/"
] |
74,411,999 | <p>I have an appengine (Java) app with the ability to sign in via Google. For this I use
<a href="https://cloud.google.com/appengine/docs/legacy/standard/java/javadoc/com/google/appengine/api/users/UserService.html#createLoginURL-java.lang.String-" rel="nofollow noreferrer">UserServiceFactory.getUserService().createLog... | [
{
"answer_id": 74412132,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": " useEffect(() => {\n\n const fetch_BSE_Data = async () => {\n console.log(\"fetching data\");\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74411999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72478/"
] |
74,412,045 | <p>I run the below macro code that is capable of adding phonetic pinyin to all the selected Chinese text at once. However, that code can only add the ruby text using default settings for font and I need to modify the the font, positioning, and font size of the pinyin.</p>
<p><a href="https://github.com/wuzhuoqing/allte... | [
{
"answer_id": 74412132,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": " useEffect(() => {\n\n const fetch_BSE_Data = async () => {\n console.log(\"fetching data\");\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484618/"
] |
74,412,054 | <p>I am programming an app that connects to a device via Bluetooth, but every time I want to do something with the <code>BluetoothDevice</code> I have to insert a permission check like this (Kotlin):</p>
<pre><code>if (ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_CONNECT) != PackageManager.PER... | [
{
"answer_id": 74412132,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": " useEffect(() => {\n\n const fetch_BSE_Data = async () => {\n console.log(\"fetching data\");\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16682019/"
] |
74,412,057 | <p>Hello and thank you for your time!</p>
<p>i have the array of objects:</p>
<pre><code>[
{ word: 'T', start: 8.87085, end: 8.88011 },
{ word: 'A', start: 8.59176, end: 8.87085 },
{ word: 'C', start: 8.39242, end: 8.59176 },
{ word: 'A', start: 8.07347, end: 8.39242 },
{ word: 'A', start: 7.87412, end: 8.073... | [
{
"answer_id": 74412149,
"author": "GrafiCode",
"author_id": 5334486,
"author_profile": "https://Stackoverflow.com/users/5334486",
"pm_score": 2,
"selected": false,
"text": "Array.reduce() isCutting const data = [\n { word: 'T', start: 8.87085, end: 8.88011 },\n { word: 'A', start: 8.5... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14939936/"
] |
74,412,069 | <p>I would like to mutate a new field with a bool value if the row contains NA or not.</p>
<pre><code>mydf <- data.frame(
x = 1:5,
y = 5:1
)
mydf[4,2] <- NA
mydf[3,1] <- NA
</code></pre>
<p>I now have a data frame that looks like this:</p>
<pre><code>mydf
x y
1 1 5
2 2 4
3 NA 3
4 4 NA
5 5 1
</... | [
{
"answer_id": 74412149,
"author": "GrafiCode",
"author_id": 5334486,
"author_profile": "https://Stackoverflow.com/users/5334486",
"pm_score": 2,
"selected": false,
"text": "Array.reduce() isCutting const data = [\n { word: 'T', start: 8.87085, end: 8.88011 },\n { word: 'A', start: 8.5... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1024586/"
] |
74,412,089 | <p>How to add special characters like <code>:</code> to array map ? I want to achieve this. <br></p>
<pre>'10': ["11/21/2022", "11/25/2022"]</pre>
<p>this is what I have so far
<div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-... | [
{
"answer_id": 74412119,
"author": "T.J. Crowder",
"author_id": 157247,
"author_profile": "https://Stackoverflow.com/users/157247",
"pm_score": 3,
"selected": true,
"text": "[\n {\n 10: [\"11/21/2022\", \"11/25/2022\"]\n },\n // ...possibly others here...\n]\n map const o... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17919686/"
] |
74,412,116 | <p>My Python code takes a bank statement from Excel and creates a dataframe that categorises each transaction based on description.</p>
<p>Example code:</p>
<pre><code>import pandas as pd
import openpyxl
import datetime as dt
import numpy as np
dff = pd.DataFrame({'Date': ['20221003', '20221005'],
'... | [
{
"answer_id": 74412119,
"author": "T.J. Crowder",
"author_id": 157247,
"author_profile": "https://Stackoverflow.com/users/157247",
"pm_score": 3,
"selected": true,
"text": "[\n {\n 10: [\"11/21/2022\", \"11/25/2022\"]\n },\n // ...possibly others here...\n]\n map const o... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17590718/"
] |
74,412,118 | <p>I am trying to align the name to the left side but it is not working. Always displays in the center suppose I use text-align. So, How to resolve this issue?</p>
<pre><code> Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"... | [
{
"answer_id": 74412123,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 2,
"selected": false,
"text": "column crossAxisAlignment: CrossAxisAlignment.start,\n"
},
{
"answer_id": 74412165,
"author": "ous... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19099386/"
] |
74,412,128 | <p>I have a div with an image in it and next to it some text. I want the text to fit properly into the box, which works fine with my normal screen size. Unfortunatly the text overflows the box if I look at the webiste in 1280x720 (smaller screen size).</p>
<p>This is how my website look in 1440x2560<a href="https://i.s... | [
{
"answer_id": 74412213,
"author": "MAYUR SANCHETI",
"author_id": 12238257,
"author_profile": "https://Stackoverflow.com/users/12238257",
"pm_score": -1,
"selected": false,
"text": ".head-container {\n display: flex;\n flex-direction: row;\n}\n\n .container {\n background-color:... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20407393/"
] |
74,412,130 | <p>I have this homework problem, and I'm new to python. I have this list of tuples:</p>
<p>[('the, this is me', 'the night'), ('the night', 'me'), ('me', 'the store')]</p>
<p>My code doesn't work when I'm trying to write to target_bigrams with only the tuples that have "the" in position [0]. Please help.</p... | [
{
"answer_id": 74412190,
"author": "Behzad Aslani Avilaq",
"author_id": 15083206,
"author_profile": "https://Stackoverflow.com/users/15083206",
"pm_score": 0,
"selected": false,
"text": "bigrams = [('the, this is me', 'the night'), ('the night', 'me'), ('me', 'the store')]\ntarget_word =... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484604/"
] |
74,412,141 | <p>I have a .tsv file like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>sequences</th>
<th>label</th>
</tr>
</thead>
<tbody>
<tr>
<td>[[0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0],[0.0, 0.0, 1.0, 0.0],[0.0, 0.0, 1.0, 0.0],[0.0, 0.0, 1.0, 0.0],[0.0, 0.0, 1.0, 0.0]]</td>
<td>1</td>
</t... | [
{
"answer_id": 74412190,
"author": "Behzad Aslani Avilaq",
"author_id": 15083206,
"author_profile": "https://Stackoverflow.com/users/15083206",
"pm_score": 0,
"selected": false,
"text": "bigrams = [('the, this is me', 'the night'), ('the night', 'me'), ('me', 'the store')]\ntarget_word =... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16659282/"
] |
74,412,144 | <p>So i have table Project</p>
<pre><code>---------------------------------
project_id | name|
---------------------------------
1 | project 1 |
2 | project 2 |
---------------------------------
</code></pre>
<p>table 02 report</p>
<pre><code>----------------------------------... | [
{
"answer_id": 74412190,
"author": "Behzad Aslani Avilaq",
"author_id": 15083206,
"author_profile": "https://Stackoverflow.com/users/15083206",
"pm_score": 0,
"selected": false,
"text": "bigrams = [('the, this is me', 'the night'), ('the night', 'me'), ('me', 'the store')]\ntarget_word =... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9820840/"
] |
74,412,173 | <p>Why does it return <code>undefined undefined is 2 years old.</code>?</p>
<pre><code>function statement(number, name, position) {
return function(name, position){
return `${name} ${position} is ${number} years old.`;
}
}
let value = statement('two', 'ayen', 'what');
console.log(value());
</code></pre>
<p>Th... | [
{
"answer_id": 74412202,
"author": "nem035",
"author_id": 3928341,
"author_profile": "https://Stackoverflow.com/users/3928341",
"pm_score": 3,
"selected": true,
"text": "function statement(number, name, position) {\n// ^^^^ ^^^^^^^^ these are further in scope\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6443564/"
] |
74,412,188 | <p>I want to change the value of "check" for particular values of "attendance"</p>
<pre><code>FirebaseFirestore.instance.collection('students').doc().set({
'doc':FirebaseFirestore.instance.collection('students').doc(),
'attendance':title,
'check':true
})... | [
{
"answer_id": 74412202,
"author": "nem035",
"author_id": 3928341,
"author_profile": "https://Stackoverflow.com/users/3928341",
"pm_score": 3,
"selected": true,
"text": "function statement(number, name, position) {\n// ^^^^ ^^^^^^^^ these are further in scope\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17022701/"
] |
74,412,199 | <p>I am creating a simple program that checks a text file for usernames and passwords. if the username and password is found a message is printed and access to granted. it returns the success message if the details are correct however when i run my code i am prompted to enter my username and password twice.</p>
<p>this... | [
{
"answer_id": 74412202,
"author": "nem035",
"author_id": 3928341,
"author_profile": "https://Stackoverflow.com/users/3928341",
"pm_score": 3,
"selected": true,
"text": "function statement(number, name, position) {\n// ^^^^ ^^^^^^^^ these are further in scope\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18735075/"
] |
74,412,219 | <p>I have a list of 24 prices between each hour of the day and night.</p>
<p>example:</p>
<pre><code>Pricelist = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]
</code></pre>
<p>I have also imported time that returns the current time: eg. N = 13.
I want to rearrange the Pricelist so that PriceList[N] g... | [
{
"answer_id": 74412251,
"author": "ILS",
"author_id": 10017662,
"author_profile": "https://Stackoverflow.com/users/10017662",
"pm_score": 2,
"selected": true,
"text": "Pricelist = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]\nN = 13\n\nPricelist_new = Pricelist[N-1:]... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480621/"
] |
74,412,226 | <p>I <a href="https://github.com/plasmapper/modbus-esp-cpp/issues/2" rel="nofollow noreferrer">did run into the situation</a>, that I declared two (separate) global variables with the same name in two separate files, but without using <code>static</code>, <code>volatile</code> nor <code>extern</code> on them.
One file ... | [
{
"answer_id": 74413484,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": true,
"text": "esp_mqtt_client_handle_t client; -fno-common"
}
] | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6012642/"
] |
74,412,235 | <p>Tell me how to automatically connect scrolling in PySimpleGUI Multiline when the number of lines entered exceeds. For example, to enable scrolling when there are more than 5 lines</p>
<p><code>sg.Multiline(size=(42, 5))</code></p>
| [
{
"answer_id": 74420439,
"author": "RayEagle",
"author_id": 9145087,
"author_profile": "https://Stackoverflow.com/users/9145087",
"pm_score": 1,
"selected": false,
"text": "import PySimpleGUI as sg\n\n\ndef begin_window():\n layout = [[sg.Multiline(size=(42, 5), autoscroll=True)]]\n\n... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9145087/"
] |
74,412,241 | <p>im new here, i stilll dont know.. why i have to refresh first, to get the data? if i not refresh the page, data will not show up. i really struggle to solve this, please help. so many recources tell me that useeffect can cause the trouble, and i already remove it before... but the result still the same, i have to re... | [
{
"answer_id": 74420439,
"author": "RayEagle",
"author_id": 9145087,
"author_profile": "https://Stackoverflow.com/users/9145087",
"pm_score": 1,
"selected": false,
"text": "import PySimpleGUI as sg\n\n\ndef begin_window():\n layout = [[sg.Multiline(size=(42, 5), autoscroll=True)]]\n\n... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19466775/"
] |
74,412,260 | <p>I have a set of pointers to a class:</p>
<pre><code>std::set<myclass*> myset
</code></pre>
<p>In a function that gets a const myclass* ss argument, I want to search whether <strong>myset</strong> contains <strong>ss</strong>:</p>
<pre><code>bool item_in_set( const myclass *ss ) {
return myset.find( ss ) != m... | [
{
"answer_id": 74412301,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 0,
"selected": false,
"text": "std::set<myclass*, std::less<>> myset;\n .find() .at() const_cast"
},
{
"answer_id": 74412318,
"aut... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1140873/"
] |
74,412,274 | <p>I am trying to define variables in a C header file. Then do work on these variables in a function and use the new values of these variables in the main function.
the code looks as follows:
C header :</p>
<pre><code>
#ifndef _myheader_h
#define _myheader_h
extern int a;
extern int b;
void get_q (int, int, char*);
#en... | [
{
"answer_id": 74412301,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 0,
"selected": false,
"text": "std::set<myclass*, std::less<>> myset;\n .find() .at() const_cast"
},
{
"answer_id": 74412318,
"aut... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13000306/"
] |
74,412,303 | <p>I tried to pass a function from the App component to another one, but it says that the function is not defined (in the child component), pretty sure I'm doing something wrong like calling the function in a wrong way but I couldn't figure it out since most answers online were using Class based components</p>
<p>App.j... | [
{
"answer_id": 74412301,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 0,
"selected": false,
"text": "std::set<myclass*, std::less<>> myset;\n .find() .at() const_cast"
},
{
"answer_id": 74412318,
"aut... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74412303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20302920/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.