qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,334,712 | <p>I know this is probably a dumb question and I am missing something really simple, but I can't for the life of me figure out where I am going wrong... I am ultimately trying to generate a list of all possible letter combinations with a string of a given length. I know some of these letter combinations wont be prono... | [
{
"answer_id": 74334913,
"author": "njp",
"author_id": 14278409,
"author_profile": "https://Stackoverflow.com/users/14278409",
"pm_score": 2,
"selected": true,
"text": "itertools.product import itertools as it\n\nlist(it.product(letters, repeat=3))\n ('A', 'A', 'B'),\n ('A', 'A', 'C'),\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4569795/"
] |
74,334,723 | <pre><code> import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from 'react-dom/client';
import axios from "axios";
const BASEURL = "https://jsonplaceholder.typicode.com/users";
function axiosTest() {
return axios.get(BASEURL).then(respons... | [
{
"answer_id": 74334913,
"author": "njp",
"author_id": 14278409,
"author_profile": "https://Stackoverflow.com/users/14278409",
"pm_score": 2,
"selected": true,
"text": "itertools.product import itertools as it\n\nlist(it.product(letters, repeat=3))\n ('A', 'A', 'B'),\n ('A', 'A', 'C'),\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9883126/"
] |
74,334,735 | <p>How do I check if multiple integers exists in a dictionary stored as a string in a columns in pandas dataframe?</p>
<p><strong>Input dataframe</strong></p>
<pre><code>| player | qualifier |
| ------ | ---------------------------- |
| John | "{120: 'left', 107: True}" |
| Felix | {1:... | [
{
"answer_id": 74334913,
"author": "njp",
"author_id": 14278409,
"author_profile": "https://Stackoverflow.com/users/14278409",
"pm_score": 2,
"selected": true,
"text": "itertools.product import itertools as it\n\nlist(it.product(letters, repeat=3))\n ('A', 'A', 'B'),\n ('A', 'A', 'C'),\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10570374/"
] |
74,334,802 | <p>I used win32com to read and send an outlook mail, but when i do it creates a pop up which asks me to deny or allow the program to do so, there is a python module which will allow me to press "allow for 10 minutes," and then click allow?</p>
<p>Just wanted to know if there a module which is able to do so si... | [
{
"answer_id": 74334913,
"author": "njp",
"author_id": 14278409,
"author_profile": "https://Stackoverflow.com/users/14278409",
"pm_score": 2,
"selected": true,
"text": "itertools.product import itertools as it\n\nlist(it.product(letters, repeat=3))\n ('A', 'A', 'B'),\n ('A', 'A', 'C'),\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17519718/"
] |
74,334,807 | <p>I have been trying to create a regex pattern to validate names which would support alphabets, acute accent characters and including these 2 special characters <strong>-</strong> <strong>.</strong></p>
<p>This is the pattern and it works as expected but only after I enter a 3rd character!</p>
<p>So, it doesn't work f... | [
{
"answer_id": 74334837,
"author": "T.J. Crowder",
"author_id": 157247,
"author_profile": "https://Stackoverflow.com/users/157247",
"pm_score": 3,
"selected": true,
"text": "[a-zA-ZßẞüÜöÖäÄÑñÁáÀàÂâÉéÈèÊêËëÍíÌìÎîÏïIJijÓóÒòÔôÚúÙùÛûÝýŸÿ\\.\\-] ([a-zA-ZßẞüÜöÖäÄÑñÁáÀàÂâÉéÈèÊêËëÍíÌìÎîÏïIJijÓóÒòÔôÚ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5336321/"
] |
74,334,895 | <p>I am looking to replace the NULL values that occur as a result of a SQL JOIN statement, with 'N/A'.
I have tried to set the default value of both related columns from both tables to N/A, however, every time I execute the SQL JOIN statement, I still receive NULL values.</p>
<p>The two tables I have are the clients an... | [
{
"answer_id": 74334837,
"author": "T.J. Crowder",
"author_id": 157247,
"author_profile": "https://Stackoverflow.com/users/157247",
"pm_score": 3,
"selected": true,
"text": "[a-zA-ZßẞüÜöÖäÄÑñÁáÀàÂâÉéÈèÊêËëÍíÌìÎîÏïIJijÓóÒòÔôÚúÙùÛûÝýŸÿ\\.\\-] ([a-zA-ZßẞüÜöÖäÄÑñÁáÀàÂâÉéÈèÊêËëÍíÌìÎîÏïIJijÓóÒòÔôÚ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19755909/"
] |
74,334,905 | <p>I'm trying to make a command when you mention the bot, it will send a message saying “Slash Command: /help”. I have tried to make it and I tried to find an answer but I can’t find anything that works for me.</p>
<p>Here is the code (I use the code in <code>index.js</code>):</p>
<pre class="lang-js prettyprint-overri... | [
{
"answer_id": 74334946,
"author": "1ly4s0",
"author_id": 18992689,
"author_profile": "https://Stackoverflow.com/users/18992689",
"pm_score": 0,
"selected": false,
"text": "client.on(\"messageCreate\", (message) => {\n if (message.author.bot) return;\n\n if (message.content.include... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16127385/"
] |
74,334,910 | <p>I'm trying to learn backtesting.py, when I run the following sample code, it pops up these errors, anyone could help? I tried to uninstall the Bokeh package and reinstall an older version, but it doen't work.</p>
<pre><code>BokehDeprecationWarning: Passing lists of formats for DatetimeTickFormatter scales was deprec... | [
{
"answer_id": 74410309,
"author": "oats",
"author_id": 1675668,
"author_profile": "https://Stackoverflow.com/users/1675668",
"pm_score": 2,
"selected": false,
"text": "python3 -m pip install bokeh==2.4.3\n"
}
] | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431354/"
] |
74,334,952 | <p>I need the first part of <code>$or</code> (or equivalent query) to be resolved first and to make sure that the first query is always part of the result.</p>
<p>Must use query, not aggregation.</p>
<pre><code>[
{ "docId": "x1" },
{ "docId": "x2" },
{ "docId&quo... | [
{
"answer_id": 74410309,
"author": "oats",
"author_id": 1675668,
"author_profile": "https://Stackoverflow.com/users/1675668",
"pm_score": 2,
"selected": false,
"text": "python3 -m pip install bokeh==2.4.3\n"
}
] | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2156913/"
] |
74,334,960 | <p>I have come across different variations when it comes to user authentication and I have seen developers include a userId field AND a username field (both strings) in their database so I wondered if there is an advantage if you have both of these fields.</p>
<p>I would rather have only one field (username) to have a ... | [
{
"answer_id": 74410309,
"author": "oats",
"author_id": 1675668,
"author_profile": "https://Stackoverflow.com/users/1675668",
"pm_score": 2,
"selected": false,
"text": "python3 -m pip install bokeh==2.4.3\n"
}
] | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19717770/"
] |
74,334,976 | <p>I want to fetch data from an api. Here is the api link and response:</p>
<pre><code>https://digital-display.betafore.com/api/v1/digital-display/displays/
</code></pre>
<p>Authorization Bearer:</p>
<pre><code>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjY3ODExNjkwLCJpYXQiOjE2Njc3MjUy... | [
{
"answer_id": 74410309,
"author": "oats",
"author_id": 1675668,
"author_profile": "https://Stackoverflow.com/users/1675668",
"pm_score": 2,
"selected": false,
"text": "python3 -m pip install bokeh==2.4.3\n"
}
] | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14427714/"
] |
74,334,979 | <p>Im trying to make a thing that can detect whether or not a user wants their password stored for next time they run the program, The reason im using a boolean for this is so in the files that need to use the password they can check to see if storepass is True then get the pass/user from a .env if not they can get the... | [
{
"answer_id": 74335067,
"author": "Kutay Kılıç",
"author_id": 19274851,
"author_profile": "https://Stackoverflow.com/users/19274851",
"pm_score": -1,
"selected": false,
"text": " booleans.storepass = True\n print(booleans.storepass)#This should return True\n f = open(\"booleans.py\"... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,334,984 | <p>We have a requirement to delete dynamodb items that are 3 days old so I tried default AWS CLI update query but the query doesn't take input value for TTL.</p>
<p>As per documentation, I'm following the below query to activate dynamoDB TTL(Time to Live) however when it is activiated it defaults to one hour however I ... | [
{
"answer_id": 74335067,
"author": "Kutay Kılıç",
"author_id": 19274851,
"author_profile": "https://Stackoverflow.com/users/19274851",
"pm_score": -1,
"selected": false,
"text": " booleans.storepass = True\n print(booleans.storepass)#This should return True\n f = open(\"booleans.py\"... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13255146/"
] |
74,334,988 | <p>a beginner question over here but why exactly do we do that? like how does that work/what's the logic behind it?</p>
<p>example of what I mean (I'm also wondering why we only did that with the Create function)</p>
<pre><code>#include<stdio.h>
void create(int *T,int n){ int i; printf("tab: ");
fo... | [
{
"answer_id": 74335093,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 0,
"selected": false,
"text": "int T[] int* T int T[] int* T"
},
{
"answer_id": 74335187,
"author": "John Bode",
"author_id": 13455... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74334988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17676636/"
] |
74,335,009 | <p>i am stuck in a screen style like below as in the screen shot there are for input(image) elements i want them to be bordered same like in the image with circled tick mark. i've made these four input block but dont know how to style this when the user click on it (i mean when user clicks on it , it gets the same bord... | [
{
"answer_id": 74335093,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 0,
"selected": false,
"text": "int T[] int* T int T[] int* T"
},
{
"answer_id": 74335187,
"author": "John Bode",
"author_id": 13455... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11435955/"
] |
74,335,026 | <p>take the code from rustbook for example</p>
<pre><code>fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
if x.len() > y.len() {
x
} else {
y
}
}
</code></pre>
<p>we have the above function, now suppose we have main:</p>
<pre><code>// can't compile , i understand ... | [
{
"answer_id": 74335093,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 0,
"selected": false,
"text": "int T[] int* T int T[] int* T"
},
{
"answer_id": 74335187,
"author": "John Bode",
"author_id": 13455... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8817903/"
] |
74,335,047 | <p>I am working with a very large dataset, and am looping over chunks of data to add elements to a class. There are many duplicated values in my data, meaning that I am creating a class instance for the same data many times. From some of the testing I've done, it seems that actually creating the instance of the class i... | [
{
"answer_id": 74336529,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 0,
"selected": false,
"text": "def age_check(age):\n def f(over):\n return age >= over\n return f\n\nage_check(self.age)(18)\nag... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2105156/"
] |
74,335,052 | <p>I'm relatively new to C/C++, and I'm learning about nested for loops and arrays. The question I'm asking is referring to the code below</p>
<pre><code>int main(){
int N, M;
bool secret = false;
scanf("%d %d", &N, &M); //N is the amount of weapon "The Hero" has, while M is the ... | [
{
"answer_id": 74336529,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 0,
"selected": false,
"text": "def age_check(age):\n def f(over):\n return age >= over\n return f\n\nage_check(self.age)(18)\nag... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20360920/"
] |
74,335,053 | <p>I have a pandas dataframe:</p>
<pre><code>#CHROM POS INFO
chr1 111 AC=0;AN=33
chr1 111 AC=0;AN=100
chr1 111 AC=110;AN=51
chr2 737 AC=99;AN=10003
chr2 888 AC=100;AN=1636
</code></pre>
<p>I want to create a new column which is based on the numbers in <strong>INFO</strong> column. Th... | [
{
"answer_id": 74336529,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 0,
"selected": false,
"text": "def age_check(age):\n def f(over):\n return age >= over\n return f\n\nage_check(self.age)(18)\nag... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12113684/"
] |
74,335,069 | <p><a href="https://docs.oracle.com/javase/specs/jls/se17/html/jls-17.html#jls-17.4.5" rel="nofollow noreferrer">JLS states this</a>:</p>
<blockquote>
<p>A set of synchronization edges, <em>S</em>, is <em>sufficient</em> if it is the minimal set such that the transitive closure of S with the program order determines al... | [
{
"answer_id": 74337343,
"author": "cata",
"author_id": 20431343,
"author_profile": "https://Stackoverflow.com/users/20431343",
"pm_score": 2,
"selected": true,
"text": "happens-before happens-before u → v (u, v) u → v u v u → v u v"
},
{
"answer_id": 74337715,
"author": "pve... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431343/"
] |
74,335,071 | <p>I have been trying to add one of my dictionaries into another one. I did do that using the code below, but when I update one of the values, all off the values with the same name is also updated. How can I fix it?</p>
<p>Here is my code:</p>
<pre><code>
test_dict = {'count': 0}
D = {'emp1': {'name': test_dict, 'job'... | [
{
"answer_id": 74335124,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 2,
"selected": false,
"text": "D test_dict from copy import deepcopy\n\nD = {'emp1': {'name': deepcopy(test_dict), 'job': 'Mgr'},\n 'emp2': {'... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16254106/"
] |
74,335,073 | <p>It comes to a surprise to me when I am trying to implement some compound actions with a BlockingQueue based producer/consumer pattern, which makes me think I most likely have missed something obvious.</p>
<hr />
<h1>1. In short</h1>
<p>I need</p>
<ul>
<li>my consumer to make sequence actions in form of ‘take obj fro... | [
{
"answer_id": 74335333,
"author": "cata",
"author_id": 20431343,
"author_profile": "https://Stackoverflow.com/users/20431343",
"pm_score": -1,
"selected": false,
"text": "wait notifyAll wait+notifyAll wait+notifyAll wait() wait() Condition wait+notify Lock synchronized BoundedBuffer"
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18362708/"
] |
74,335,074 | <p>I developed a project with the DDD method to manage holidays. I have 2 value objects with the names of HolidayTitle and HolidayDate.
Now I want to filter with Contains in the Query Repository but I can't.</p>
<p>My code in the repository is as follows:</p>
<pre><code>public async Task<ListResponse<IList<Get... | [
{
"answer_id": 74335333,
"author": "cata",
"author_id": 20431343,
"author_profile": "https://Stackoverflow.com/users/20431343",
"pm_score": -1,
"selected": false,
"text": "wait notifyAll wait+notifyAll wait+notifyAll wait() wait() Condition wait+notify Lock synchronized BoundedBuffer"
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11882732/"
] |
74,335,091 | <p>I want to run my python script through the shell, passing variable <code>a</code>.</p>
<p>Here is my code:</p>
<pre><code>else
a=0
osascript -e 'tell application "Terminal" to activate' \
-e 'tell application "System Events" to keystroke "n" using {command down}' \
... | [
{
"answer_id": 74335333,
"author": "cata",
"author_id": 20431343,
"author_profile": "https://Stackoverflow.com/users/20431343",
"pm_score": -1,
"selected": false,
"text": "wait notifyAll wait+notifyAll wait+notifyAll wait() wait() Condition wait+notify Lock synchronized BoundedBuffer"
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17645965/"
] |
74,335,096 | <p>I'm learning React framework and I'm stuck on a question. I have this array which contains pieces of information about some templates I built.</p>
<pre><code>const template = \[
{
title: 'firstPortfolio',
url: 'first_portfolio',
id: 1,
img: require('../templates-images/firstPortfolio.png')
},
{
title: 'leadershipEve... | [
{
"answer_id": 74338284,
"author": "Andrea",
"author_id": 17664715,
"author_profile": "https://Stackoverflow.com/users/17664715",
"pm_score": 1,
"selected": true,
"text": "<Routes>\n <Route path=\"/\" element={<HomePage />} />\n <Route path=\"/portfolio\" element={<Portfolio />} />... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17664715/"
] |
74,335,130 | <p>Having the following json</p>
<pre><code>[
{
"Value": "100000000",
"Duration": 1
},
{
"Value": "100000001",
"Duration": 2
},
{
"Value": "100000002",
"Duration": 3
},
... | [
{
"answer_id": 74336297,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const data = [{\"Value\":\"100000000\",\"Duration\":1},{\"Value\":\"100000001\",\"Duration\":2},{\"Value\":\"10000000... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/99248/"
] |
74,335,162 | <p>I have a file with a function and a file that calls the functions. Finally, I run .bat
I don't know how I can add an argument when calling the .bat file. So that the argument was added to the function as below.</p>
<p>file_with_func.py</p>
<pre><code>def some_func(val):
print(val)
</code></pre>
<p>run_bat.py</p>... | [
{
"answer_id": 74336297,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const data = [{\"Value\":\"100000000\",\"Duration\":1},{\"Value\":\"100000001\",\"Duration\":2},{\"Value\":\"10000000... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17356459/"
] |
74,335,164 | <p>I have mysql DB with important financial data, currently the data is stored as float type and I get incorrect data due to float rounding, I want to store it as DECIMAL.</p>
<p>What is the safe way to convert the data in the DB without change existing data? or any another idea to solve that issue?</p>
<p><strong>EDIT... | [
{
"answer_id": 74336297,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const data = [{\"Value\":\"100000000\",\"Duration\":1},{\"Value\":\"100000001\",\"Duration\":2},{\"Value\":\"10000000... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13029900/"
] |
74,335,169 | <p>I am trying to generate lists of years from N year to the current year of the user.
How can I automatically generate a list of years.</p>
| [
{
"answer_id": 74335234,
"author": "Mike4544",
"author_id": 20429017,
"author_profile": "https://Stackoverflow.com/users/20429017",
"pm_score": 1,
"selected": true,
"text": "DateTime.now().year N List<int> getYears(int year) {\n int currentYear = DateTime.now().year;\n\n List<int> year... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18707541/"
] |
74,335,175 | <p>I wanna move a file after the grep command but as I execute my script, I noticed that there are no results coming back. regardless of that, I want to move the file/s to another directory.</p>
<p>this is what I've been doing:</p>
<pre class="lang-bash prettyprint-override"><code>for file in *.sup
do
grep -iq &quo... | [
{
"answer_id": 74338736,
"author": "TheAnalogyGuy",
"author_id": 6317990,
"author_profile": "https://Stackoverflow.com/users/6317990",
"pm_score": 1,
"selected": false,
"text": "...\"$file\" '' /desktop... $file '' grep: : No such file or directory -q --quiet || man grep bash -x ./myscri... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431360/"
] |
74,335,200 | <pre><code>React native android getting error /Users/jeyabaskar/.gradle/caches/transforms-2/files-2.1/03b7bffa42f2fb741f03fe69f60fdec1/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.... | [
{
"answer_id": 74335372,
"author": "Layeb Mazen",
"author_id": 20421395,
"author_profile": "https://Stackoverflow.com/users/20421395",
"pm_score": 0,
"selected": false,
"text": "android/build.gradle buildscript {\n ext {\n kotlinVersion = \"1.6.0\"\n ...\n }\n ...\n}\n\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11812621/"
] |
74,335,205 | <p>I'm trying to create a click event be able to delete an item on my list, but when I click it I get "TypeError: Cannot read properties of undefined (reading 'name')".</p>
<p>and I'm pretty sure it's something to do bind 'this' somewhere, but I've tried a lot of places and it doesn't work.
<a href="https://i... | [
{
"answer_id": 74335212,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 2,
"selected": true,
"text": "roleDetails={profile?.details?.name}\n"
},
{
"answer_id": 74335260,
"author": "Layeb Mazen",
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19592889/"
] |
74,335,237 | <p>I have a csv file with 100 records. I want to write the first 50 records in a new csv file i.e 'newFile.csv' in the first iteration. In the second iteration, I want to write the next 50 records in the 'newFile.csv' file after reading the next 50 records from the original csv file.</p>
<p>I am able to perform the fir... | [
{
"answer_id": 74335212,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 2,
"selected": true,
"text": "roleDetails={profile?.details?.name}\n"
},
{
"answer_id": 74335260,
"author": "Layeb Mazen",
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20271284/"
] |
74,335,247 | <p>I can download the Google Chrome installer easily as follows:</p>
<pre><code>Invoke-WebRequest "http://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile "$env:Temp\chrome_installer.exe"
</code></pre>
<p>However, for Opera, I want specifically the latest 64-bit version. On the dow... | [
{
"answer_id": 74335456,
"author": "Toni",
"author_id": 19895159,
"author_profile": "https://Stackoverflow.com/users/19895159",
"pm_score": 3,
"selected": true,
"text": "https://get.opera.com/pub/opera/desktop/\n Invoke-WebRequest \"https://get.opera.com/pub/opera/desktop/92.0.4561.43/wi... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/524587/"
] |
74,335,259 | <p>When I use snakeyaml to convert the yaml file into a class, the List object cannot be converted correctly.</p>
<p>The following can work</p>
<pre><code>public class UserYaml {
private Integer test1;
private String test2;
private Test3 test3;
// private List<Test> test;
}
</code></pre>
<pre><code... | [
{
"answer_id": 74335456,
"author": "Toni",
"author_id": 19895159,
"author_profile": "https://Stackoverflow.com/users/19895159",
"pm_score": 3,
"selected": true,
"text": "https://get.opera.com/pub/opera/desktop/\n Invoke-WebRequest \"https://get.opera.com/pub/opera/desktop/92.0.4561.43/wi... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20375340/"
] |
74,335,283 | <p>I am trying to get the 0000's to left of the conversion but I have a bit of trouble.</p>
<p>For example if I ask for <em>float_number</em>:<code>5</code></p>
<p>--> I get <code>101</code></p>
<p>--> but Correct Answer is <code>01000000101000000000000000000000</code></p>
<pre><code>#include <stdio.h>
... | [
{
"answer_id": 74335940,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 2,
"selected": true,
"text": "show_bits malloc #include <limits.h>\nvoid show_bits(unsigned u) {\n const unsigned unsigned_bits = sizeof(unsigne... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20353469/"
] |
74,335,291 | <p>I'm getting: "TypeError: 'str' object is not callable" when I execute this code:</p>
<pre><code>iframe=driver.find_element(By.XPATH("//iframe[contains(@src,'https://pianomarvel.com/uploads/editSlicings/85810')]"));
</code></pre>
<p>Why?</p>
<p>What is the correct syntax?</p>
<p>Thanks</p>
<p>I tr... | [
{
"answer_id": 74335940,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 2,
"selected": true,
"text": "show_bits malloc #include <limits.h>\nvoid show_bits(unsigned u) {\n const unsigned unsigned_bits = sizeof(unsigne... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431589/"
] |
74,335,329 | <p>I am trying to implement bottom nav bar just like in youtube app, with the centre add icon being expanded. Here is the image below.
<a href="https://i.stack.imgur.com/KHvdZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KHvdZ.jpg" alt="enter image description here" /></a></p>
<p>Here <a href="htt... | [
{
"answer_id": 74335940,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 2,
"selected": true,
"text": "show_bits malloc #include <limits.h>\nvoid show_bits(unsigned u) {\n const unsigned unsigned_bits = sizeof(unsigne... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18007568/"
] |
74,335,356 | <p>I have this values: [0, 0, 0, 0, 1] and I want to write a code that tells me that there is 1 row of 4 zeroes like in the example above, and if there's 2 rows of 4 zeroes like: [0, 0, 0, 0, 1, 0, 0, 0, 0]
henceforth it should say that there are 2 rows of 4 zeroes. How can I do that if you guys could help me??</p>
<p>... | [
{
"answer_id": 74335940,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 2,
"selected": true,
"text": "show_bits malloc #include <limits.h>\nvoid show_bits(unsigned u) {\n const unsigned unsigned_bits = sizeof(unsigne... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431609/"
] |
74,335,381 | <p>Here is my initial unuseful code.</p>
<pre class="lang-html prettyprint-override"><code><!DOCTYPE html>
<html>
<head>
<script>
function main() {
for (let i = 0; i < document.body.childNodes.length; i++) {
alert( document.body.childNodes[i].string ); // Text, DIV, Text,... | [
{
"answer_id": 74335702,
"author": "fasfrtewqt2354r2edrq",
"author_id": 18910456,
"author_profile": "https://Stackoverflow.com/users/18910456",
"pm_score": 0,
"selected": false,
"text": "<!DOCTYPE html>\n<html>\n \n<head>\n <script> \nfunction main() {\n for (let i = 0; i < doc... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4589608/"
] |
74,335,417 | <p>i have a list named events and loop over it via for loop
through each iteration i update the values of dict and then append it to the list.
so i desire that list items dont be repetitive and be different.
<a href="https://i.stack.imgur.com/qoHwr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qoHw... | [
{
"answer_id": 74335461,
"author": "HedgeHog",
"author_id": 14460824,
"author_profile": "https://Stackoverflow.com/users/14460824",
"pm_score": 1,
"selected": false,
"text": "dict list dict dict for event in events:\n events_dict = dict()\n events_dict['name'] = event.find('h3').fi... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10586169/"
] |
74,335,421 | <p>I have a dataframe (with the first column being index column)(below).
I would like to add(create) a (last) column which is a copy of the index column (desired result below). However I have the error (below). Is there a workaround?
Thanks in advance</p>
<pre><code>import pandas as pd
df1 = pd.DataFrame({"date&qu... | [
{
"answer_id": 74335461,
"author": "HedgeHog",
"author_id": 14460824,
"author_profile": "https://Stackoverflow.com/users/14460824",
"pm_score": 1,
"selected": false,
"text": "dict list dict dict for event in events:\n events_dict = dict()\n events_dict['name'] = event.find('h3').fi... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18836406/"
] |
74,335,444 | <p>I am making a twitter clone application with VueJS 3.</p>
<p>I saved Twitter's logo as a .svg file and can use it with the <code><img /></code> tag. I can also change its color when I give the <code><svg></code> tag the <code>fill="#fff"</code> attribute. However, I want to use this .svg file i... | [
{
"answer_id": 74335461,
"author": "HedgeHog",
"author_id": 14460824,
"author_profile": "https://Stackoverflow.com/users/14460824",
"pm_score": 1,
"selected": false,
"text": "dict list dict dict for event in events:\n events_dict = dict()\n events_dict['name'] = event.find('h3').fi... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17466049/"
] |
74,335,491 | <p>How do I adjust the position of the header that has been marked as in the picture slightly inward or in the top center?.<a href="https://i.stack.imgur.com/nQ9Ws.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nQ9Ws.png" alt="enter image description here" /></a></p>
<pre><code>.header{
display:... | [
{
"answer_id": 74335707,
"author": "pier farrugia",
"author_id": 19996700,
"author_profile": "https://Stackoverflow.com/users/19996700",
"pm_score": 1,
"selected": false,
"text": ".header{\n display:flex;\n position:fixed;\n}\n .header{\n display:flex;\n position:fixed;\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431458/"
] |
74,335,497 | <p>i want to convert date from datepicker to toisostring in angular.
my problem is when i add data from to backend a have date day before one day
my code is HTML:</p>
<pre><code> <mat-form-field appearance="fill">
<mat-label>Enter a date range</mat-label>
<mat-date-range-inp... | [
{
"answer_id": 74335707,
"author": "pier farrugia",
"author_id": 19996700,
"author_profile": "https://Stackoverflow.com/users/19996700",
"pm_score": 1,
"selected": false,
"text": ".header{\n display:flex;\n position:fixed;\n}\n .header{\n display:flex;\n position:fixed;\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19832761/"
] |
74,335,504 | <p>I have a data frame that has the date column as a char class. I've tried parsing as.Date but the amount of NAs is worrisome. The dates are are in the following formats: "2003-10-19", and "October 05, 2018"</p>
<p><code>date <- c("October 05, 2018", "2003-10-19")</code></p>
... | [
{
"answer_id": 74335659,
"author": "AndS.",
"author_id": 9778513,
"author_profile": "https://Stackoverflow.com/users/9778513",
"pm_score": 2,
"selected": false,
"text": "date <- c(\"October 05, 2018\", \"2003-10-19\", \"10/9/95\", \"6 Oct.2010\")\n\nlubridate::parse_date_time(date, order... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19805656/"
] |
74,335,539 | <p>the input is like this</p>
<pre><code>100 5
0 10
0 5
75 95
12 17
13 14
</code></pre>
<p>and the output is <code>65</code>
so i want the program to count which numbers from 0-100 are not in the array.</p>
<p>this is how i started</p>
<pre><code>static void Main(string[] args)
{
string input1 = Console.ReadLine()... | [
{
"answer_id": 74335661,
"author": "Dmitry Bychenko",
"author_id": 2319407,
"author_profile": "https://Stackoverflow.com/users/2319407",
"pm_score": 2,
"selected": false,
"text": "0..100 0..100 using System.Linq;\n\n...\n\nint[] data = new int[] {\n 100, 5, 0, 10, 0, 5, 75, 95, 12, 17, ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431732/"
] |
74,335,540 | <p>I have a dataframe as:</p>
<pre><code>pl.DataFrame(
[{'row_nr': 0, 'middle_name_or_initial': 'R.', 'count': 8},
{'row_nr': 0, 'middle_name_or_initial': 'B.', 'count': 1},
{'row_nr': 1, 'middle_name_or_initial': 'D.', 'count': 1},
{'row_nr': 1, 'middle_name_or_initial': 'J.', 'count': 11},
{'row_nr': 2, 'middle_n... | [
{
"answer_id": 74335645,
"author": "Will",
"author_id": 12829151,
"author_profile": "https://Stackoverflow.com/users/12829151",
"pm_score": 0,
"selected": false,
"text": "import polars as pl\ntmp = pl.DataFrame(\n[{'row_nr': 0, 'middle_name_or_initial': 'R.', 'count': 8},\n {'row_nr': 0,... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9479925/"
] |
74,335,542 | <p>This started happening after we upgraded our compileSdkVersion and targetSdkVersion to 31.</p>
<p>To give some background: Our project is currently on react native 0.63.2 and previous compileSdkVersion was 30. We were successfully building android app till a few days back but suddenly it started to fail with the fol... | [
{
"answer_id": 74341863,
"author": "Ankur",
"author_id": 447137,
"author_profile": "https://Stackoverflow.com/users/447137",
"pm_score": 2,
"selected": false,
"text": "def REACT_NATIVE_VERSION = \"0.64.2\" //replace this with the latest stable version you were using before\n\nallprojects... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1430993/"
] |
74,335,547 | <p>I'd like to split an array into <code>n</code> roughly equal sized chunks, without knowing how large these chunks will be beforehand.</p>
<p>Using Numpy, this can be done with <code>array_split</code>:</p>
<pre><code>>>> import numpy
>>> x = [7, 3, 9, 10, 5, 6, 8, 13]
>>> x
[7, 3, 9, 10, 5... | [
{
"answer_id": 74341863,
"author": "Ankur",
"author_id": 447137,
"author_profile": "https://Stackoverflow.com/users/447137",
"pm_score": 2,
"selected": false,
"text": "def REACT_NATIVE_VERSION = \"0.64.2\" //replace this with the latest stable version you were using before\n\nallprojects... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1289801/"
] |
74,335,592 | <pre><code>import 'package:flutter/material.dart';
class DetailsScreen extends StatefulWidget {
final int index;
const DetailsScreen({Key? key, required this.index}) : super(key: key);
@override
State<DetailsScreen> createState() => _DetailsScreenState();
}
class _DetailsScreenState extends State&l... | [
{
"answer_id": 74341863,
"author": "Ankur",
"author_id": 447137,
"author_profile": "https://Stackoverflow.com/users/447137",
"pm_score": 2,
"selected": false,
"text": "def REACT_NATIVE_VERSION = \"0.64.2\" //replace this with the latest stable version you were using before\n\nallprojects... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20429946/"
] |
74,335,608 | <p>Write an SQL query to report the patient_id, patient_name all conditions of patients who have Type I Diabetes. Type I Diabetes always starts with DIAB1 prefix.</p>
<pre><code>+--------------+---------+
| Column Name | Type |
+--------------+---------+
| patient_id | int |
| patient_name | varchar |
| condi... | [
{
"answer_id": 74341863,
"author": "Ankur",
"author_id": 447137,
"author_profile": "https://Stackoverflow.com/users/447137",
"pm_score": 2,
"selected": false,
"text": "def REACT_NATIVE_VERSION = \"0.64.2\" //replace this with the latest stable version you were using before\n\nallprojects... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20081256/"
] |
74,335,642 | <p>I want to know if there is a way to namespace values, in a similar way that we namespace functions in PHP.</p>
<p>You can have:</p>
<pre><code>namespace pizza\land;
function turn_oven_on(){}
</code></pre>
<p>And you can access that function with <code>pizza\land\hello()</code></p>
<p>I wonder if there is a way to do... | [
{
"answer_id": 74341863,
"author": "Ankur",
"author_id": 447137,
"author_profile": "https://Stackoverflow.com/users/447137",
"pm_score": 2,
"selected": false,
"text": "def REACT_NATIVE_VERSION = \"0.64.2\" //replace this with the latest stable version you were using before\n\nallprojects... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10716664/"
] |
74,335,653 | <p>How can I concatenate two different model query and order by a field that both models has like progress fields.</p>
<p><strong>For example</strong></p>
<p><em>models.py</em></p>
<pre><code>class Gig(models.Model):
author= models.ForeignKey(User)
title = models.CharFields()
progress = models.IntegerField(... | [
{
"answer_id": 74341863,
"author": "Ankur",
"author_id": 447137,
"author_profile": "https://Stackoverflow.com/users/447137",
"pm_score": 2,
"selected": false,
"text": "def REACT_NATIVE_VERSION = \"0.64.2\" //replace this with the latest stable version you were using before\n\nallprojects... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18986346/"
] |
74,335,759 | <p>I need to find all regular files in a directory, and would like to use the C++20 ranges (not Eric Niebler's range-v3) library. I came up with the following code:</p>
<pre><code>namespace fs = std::filesystem;
std::vector<fs::directory_entry> entries{ fs::directory_iterator("D:\\Path"), fs::directory... | [
{
"answer_id": 74335815,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 4,
"selected": true,
"text": "&fs::directory_entry::is_regular_file directory_entry::is_regular_file & [](auto& entry) { return entry.is_reg... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/291033/"
] |
74,335,779 | <p>i have seen two different ways of handling post requests on a route:</p>
<pre><code>@app.route('/register', methods=['GET', 'POST'])
def register():
form = RegistrationForm()
if form.validate_on_submit():
# insert logic on data
return render_template('register.html', title="Register&quo... | [
{
"answer_id": 74335901,
"author": "Nabin Paudel",
"author_id": 17363696,
"author_profile": "https://Stackoverflow.com/users/17363696",
"pm_score": 1,
"selected": false,
"text": "if request.method == \"POST\":\n # HTTP Method POST. That means the form was submitted by a user\n # an... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5449244/"
] |
74,335,782 | <p>I'm trying to show <code>ResourcePool</code> utilization on a Time Plot chart.</p>
<p>Currently I use Time Plot to display by <code>Value</code> the utilization of the selected <code>ResourcePool</code>:
<a href="https://i.stack.imgur.com/FnG3A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FnG3A... | [
{
"answer_id": 74335901,
"author": "Nabin Paudel",
"author_id": 17363696,
"author_profile": "https://Stackoverflow.com/users/17363696",
"pm_score": 1,
"selected": false,
"text": "if request.method == \"POST\":\n # HTTP Method POST. That means the form was submitted by a user\n # an... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18366972/"
] |
74,335,789 | <p>I have @ManyToMany related entity structures named Student and Course.I would like a student to be able to register for a maximum of 3 courses.At the same time, a course must have a maximum of 10 student. How can i do that? (Also I am using mySql database and hibernate)</p>
<p>Here is my Student class;</p>
<pre><cod... | [
{
"answer_id": 74335901,
"author": "Nabin Paudel",
"author_id": 17363696,
"author_profile": "https://Stackoverflow.com/users/17363696",
"pm_score": 1,
"selected": false,
"text": "if request.method == \"POST\":\n # HTTP Method POST. That means the form was submitted by a user\n # an... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19055500/"
] |
74,335,820 | <p>I'm sorry if this is a very dumb question but I'm wondering how to pull a single data from flutter's object array list</p>
<p>My code</p>
<pre><code>class Bank {
late String name;
late String nameBank;
Bank({required this.name, required this.nameBank});
}
void main() {
var bankMap = listBank.map((d) {
... | [
{
"answer_id": 74335901,
"author": "Nabin Paudel",
"author_id": 17363696,
"author_profile": "https://Stackoverflow.com/users/17363696",
"pm_score": 1,
"selected": false,
"text": "if request.method == \"POST\":\n # HTTP Method POST. That means the form was submitted by a user\n # an... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431969/"
] |
74,335,864 | <p>When I have a list of immutable objects, <code>lst</code> and want to get rid of duplicates, I can just use <code>set(lst)</code>:</p>
<pre><code>lst = [0,4,2,6,3,6,4,9,2,2] # integers are immutable in python
print(set(lst)) # {0,2,3,4,6,9}
</code></pre>
<p>However suppose I have a list of mutable objects, <code>lst... | [
{
"answer_id": 74335952,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "list({id(x):x for x in lst}.values())\n"
},
{
"answer_id": 74336325,
"author": "user3435121",
"auth... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13881506/"
] |
74,335,925 | <p>I have a table of grant application numbers and their corresponding disciplines given by cell value 1.</p>
<pre><code>import pandas as pd
import numpy as np
data={'Application number':[0,1,2,3,4,5,6,7,8,9],
'Physics':[0,0,1,0,0,0,0,1,1,0],
'Chemistry':[1,0,0,0,0,0,0,0,0,1],
'Biology':[0,1,0,1,0,0,1,0... | [
{
"answer_id": 74335952,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "list({id(x):x for x in lst}.values())\n"
},
{
"answer_id": 74336325,
"author": "user3435121",
"auth... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12985084/"
] |
74,335,937 | <p>I'm using Solr-9.0.0 with Docker on Windows, and I'm trying to index a simple document.</p>
<p>The first thing I did is creating a core using docker terminal</p>
<p>Then I've renamed <strong>managed-schema.xml</strong> to <strong>schema.xml</strong> then I've added one single line :</p>
<pre class="lang-xml prettypr... | [
{
"answer_id": 74335952,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "list({id(x):x for x in lst}.values())\n"
},
{
"answer_id": 74336325,
"author": "user3435121",
"auth... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13118602/"
] |
74,335,969 | <pre><code>int main(int argc, char *argv[]) {
int fd_src = open(argv[1], O_RDWR);
ssize_t size = lseek(fd_src, 0, SEEK_END);
char *buf[size];
char *prefix = strcat(argv[1], "_");
for(int i = 0; i < size-1; i++) {
lseek(fd_src, i, SEEK_SET);
read(fd_src, buf, 1);
... | [
{
"answer_id": 74335952,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "list({id(x):x for x in lst}.values())\n"
},
{
"answer_id": 74336325,
"author": "user3435121",
"auth... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17796793/"
] |
74,335,986 | <p>So far I've got this program which asks me to write a sentence, then it splits it one word at a time separated by spaces.
The problem is that if I write a 3 word sentence it just prints the first two words. What I'm trying to do is split the sentence with no word limit. I just talked to my teacher and he said I must... | [
{
"answer_id": 74335952,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "list({id(x):x for x in lst}.values())\n"
},
{
"answer_id": 74336325,
"author": "user3435121",
"auth... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20431997/"
] |
74,335,990 | <p>So in a lot of my coding problems, I end up doing something along the lines of:</p>
<pre><code>for i in range(10):
for j in range(10):
for k in range(10):
print(i, j, k)
</code></pre>
<p>I was just wondering if there was a simpler way to iterate through multiple ranges of numbers? I want to h... | [
{
"answer_id": 74336029,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 2,
"selected": false,
"text": "itertools.product from itertools import product\nfor i, j, k in product(range(10), range(10), range(10)):\n print(... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74335990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20422229/"
] |
74,336,006 | <p>So I've been doing some setTimeout and SetInterval in JS just to gain more knowledge. I'm currently trying to create the most simple Stopwatch you've ever seen but it returns <code>NaN</code> when I'm using it.
Any ideas how to make it work? I just gave up after 90mins. Youtube and W3School did not help. I have tri... | [
{
"answer_id": 74336123,
"author": "Bqardi",
"author_id": 14647816,
"author_profile": "https://Stackoverflow.com/users/14647816",
"pm_score": 2,
"selected": true,
"text": ".value stopwatchInterval var startValue = document.getElementById(\"start_Value\");\nscreenStopwatch.innerHTML = sta... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15952782/"
] |
74,336,023 | <p>I have a string of type</p>
<pre><code>string = "[A] Assam[B] Meghalaya[C] West Bengal[D] Odisha "
Output = ['Assam', 'Meghalaya','West Bengal','Odhisa']
</code></pre>
<p>I tried many ways, but I always end up splitting the substring West Bengal into two halves...
I am not able to cover the edge case ment... | [
{
"answer_id": 74336101,
"author": "ShlomiF",
"author_id": 5024514,
"author_profile": "https://Stackoverflow.com/users/5024514",
"pm_score": 0,
"selected": false,
"text": "[string[string.find(option[i]):string.find(option[i+1])].split(option[i])[1].strip() for i in range(len(option) - 1)... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14713427/"
] |
74,336,067 | <p>So im reading the below and i understand why you would do it..
<a href="https://jenkov.com/tutorials/java-exception-handling/exception-wrapping.html" rel="nofollow noreferrer">https://jenkov.com/tutorials/java-exception-handling/exception-wrapping.html</a></p>
<p>example :</p>
<pre><code> try{
dao.readPers... | [
{
"answer_id": 74336101,
"author": "ShlomiF",
"author_id": 5024514,
"author_profile": "https://Stackoverflow.com/users/5024514",
"pm_score": 0,
"selected": false,
"text": "[string[string.find(option[i]):string.find(option[i+1])].split(option[i])[1].strip() for i in range(len(option) - 1)... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1555190/"
] |
74,336,075 | <p>First we used Terraform to create our resources along with proper tagging.
But later we identified that the Admin team performed some manual modifications to the resource as part of some issues quick fixes and all. At the end the terraform state file of these resources are out of sync.</p>
<p>Now we have requirement... | [
{
"answer_id": 74336101,
"author": "ShlomiF",
"author_id": 5024514,
"author_profile": "https://Stackoverflow.com/users/5024514",
"pm_score": 0,
"selected": false,
"text": "[string[string.find(option[i]):string.find(option[i+1])].split(option[i])[1].strip() for i in range(len(option) - 1)... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16092023/"
] |
74,336,086 | <p>I have this list of dataframes created as follows :</p>
<pre><code>df = data.frame(x = c(1,0,0,0,1,1,1,NA), y = c(2,2,2,2,3,3,2,NA),
z = c(1:7,NA), m = c(1,2,3,1,2,3,1,NA) )
df$x = factor(df$x)
df$y = factor(df$y)
df$m = factor(df$m)
l1 = list(df$x,df$y,df$m)
l2 = lapply(l1,table)
l3 = lapply(l2,as... | [
{
"answer_id": 74336205,
"author": "B. Christian Kamgang",
"author_id": 10848898,
"author_profile": "https://Stackoverflow.com/users/10848898",
"pm_score": 0,
"selected": false,
"text": "Map(\\(x,y) setNames(x, c(y,\"Freq\")), l3, c(\"x\", \"y\", \"z\"))\n\n\n[[1]]\n x Freq\n1 0 3\n2 1 ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19720935/"
] |
74,336,109 | <p>I am working on combining SVG images into one combined SVG image using ReactJS. Sorry you may think that this is duplicate question. But I have checked all the suggested questions but none of them solved my issue. I have done lot of research in fact spent so many days in figuring out solution for this problem.</p>
<... | [
{
"answer_id": 74336205,
"author": "B. Christian Kamgang",
"author_id": 10848898,
"author_profile": "https://Stackoverflow.com/users/10848898",
"pm_score": 0,
"selected": false,
"text": "Map(\\(x,y) setNames(x, c(y,\"Freq\")), l3, c(\"x\", \"y\", \"z\"))\n\n\n[[1]]\n x Freq\n1 0 3\n2 1 ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747792/"
] |
74,336,110 | <p>I was looking up some unknown book about C++. and faced with this table which title reads.</p>
<p>" ― As the result of inheritance all fields of base class are being inherited by derived class."
<em>And then it shows such table.</em>
<a href="https://i.stack.imgur.com/HamrQ.png" rel="nofollow noreferrer"><... | [
{
"answer_id": 74336205,
"author": "B. Christian Kamgang",
"author_id": 10848898,
"author_profile": "https://Stackoverflow.com/users/10848898",
"pm_score": 0,
"selected": false,
"text": "Map(\\(x,y) setNames(x, c(y,\"Freq\")), l3, c(\"x\", \"y\", \"z\"))\n\n\n[[1]]\n x Freq\n1 0 3\n2 1 ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17489971/"
] |
74,336,120 | <p>I wish to send a call on Tizen5.5 wearable and the closest way I can reach is to open the dialer:</p>
<pre><code>app_control_h request = 0;
app_control_create(&request);
app_control_set_operation(request, APP_CONTROL_OPERATION_CALL);
app_control_set_uri(request, "tel:0123456789");
error_code = app_co... | [
{
"answer_id": 74336205,
"author": "B. Christian Kamgang",
"author_id": 10848898,
"author_profile": "https://Stackoverflow.com/users/10848898",
"pm_score": 0,
"selected": false,
"text": "Map(\\(x,y) setNames(x, c(y,\"Freq\")), l3, c(\"x\", \"y\", \"z\"))\n\n\n[[1]]\n x Freq\n1 0 3\n2 1 ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1446710/"
] |
74,336,130 | <p>I'm trying to extract every skill from job_skills to be attribute and encoding it by zero or one , how i can do that ?</p>
<p>note : im trying to create a data frame but its not worth to fill the data frame manually (the code is below) , im search for method to extract a list from the column .
i need to apply ML alg... | [
{
"answer_id": 74336356,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 0,
"selected": false,
"text": "data = [['a', \"['Python', 'UI']\"],\n ['b', \"['Python', 'Celery']\"],\n ['c', \"['Flask', 'Pytho... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15935940/"
] |
74,336,143 | <p>I am analyzin lycris and want to remove such words like "la la la", "na na na", etc.</p>
<p>I want to do that with a list of words and then with the re.sub function. But this also removes eh "na" from words, which starts with na. How can I just remove the strings, which has "na na ... | [
{
"answer_id": 74336197,
"author": "user14901770",
"author_id": 14901770,
"author_profile": "https://Stackoverflow.com/users/14901770",
"pm_score": 0,
"selected": false,
"text": "lyrics = \"say my name say my name drei zwei eins null baby make it rain baby ruf honigtopf tropft bleibe gan... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16137299/"
] |
74,336,145 | <p>In ReactJS I want to call an onClick function on a button to open another website but it doesn't work. The following excerpt of the code is:</p>
<pre><code>import PageButton from "./components/PageButton";
const openInNewTab = (url) => {
window.open(url, "_blank", "noopener,norefer... | [
{
"answer_id": 74336197,
"author": "user14901770",
"author_id": 14901770,
"author_profile": "https://Stackoverflow.com/users/14901770",
"pm_score": 0,
"selected": false,
"text": "lyrics = \"say my name say my name drei zwei eins null baby make it rain baby ruf honigtopf tropft bleibe gan... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432225/"
] |
74,336,147 | <p>I use <code>Hash::make($req->pass);</code> to login in Laravel. Now I forgot the password. Can I change the password by editing PHPMyAdmin? Is there any PHPMyadmin function to change the Bcrypt?</p>
<p>For eg. To change the password stored in MD5, I can change it by using MD5 function. And it works fine for all W... | [
{
"answer_id": 74336197,
"author": "user14901770",
"author_id": 14901770,
"author_profile": "https://Stackoverflow.com/users/14901770",
"pm_score": 0,
"selected": false,
"text": "lyrics = \"say my name say my name drei zwei eins null baby make it rain baby ruf honigtopf tropft bleibe gan... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16470274/"
] |
74,336,169 | <p>here is the code of my issue:
<a href="https://codepen.io/isaflame/pen/yLEazmM" rel="nofollow noreferrer">https://codepen.io/isaflame/pen/yLEazmM</a></p>
<p>html:
`</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reser... | [
{
"answer_id": 74336197,
"author": "user14901770",
"author_id": 14901770,
"author_profile": "https://Stackoverflow.com/users/14901770",
"pm_score": 0,
"selected": false,
"text": "lyrics = \"say my name say my name drei zwei eins null baby make it rain baby ruf honigtopf tropft bleibe gan... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20407217/"
] |
74,336,186 | <p>I have a spring boot app in which I have added another library (in pom.xml).</p>
<p>This library is also a spring boot library which has created some beans and made the beans available using @Bean. The code snippet in 3rd party library is like this :</p>
<pre><code>@Bean
public CustomObject customObject() {
ret... | [
{
"answer_id": 74336197,
"author": "user14901770",
"author_id": 14901770,
"author_profile": "https://Stackoverflow.com/users/14901770",
"pm_score": 0,
"selected": false,
"text": "lyrics = \"say my name say my name drei zwei eins null baby make it rain baby ruf honigtopf tropft bleibe gan... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3610891/"
] |
74,336,187 | <p>This piece of code will print <code>[1,2,3,4,5,6,7,8,9,10]</code> on the console it means in every iteration arr.length change and this is reflected in the loop body also.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="sni... | [
{
"answer_id": 74336307,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 3,
"selected": true,
"text": "shift() let arr = [1, 2, 3];\nfor (e of arr) {\n arr.push(arr[arr.length - 1] + 1); // add element\n if (arr[arr.... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1035784/"
] |
74,336,198 | <p>In PHP, I've created a function to create a JSON file:</p>
<pre><code>function writeJSONData(PDO $conn): void
{
$contentJSON = "SELECT * FROM tb_content";
$contentResultsJSON = $conn->query($contentJSON);
$contentJSONExt = array();
while ($JSON = $contentResultsJSON->fetchAll(PDO::F... | [
{
"answer_id": 74336307,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 3,
"selected": true,
"text": "shift() let arr = [1, 2, 3];\nfor (e of arr) {\n arr.push(arr[arr.length - 1] + 1); // add element\n if (arr[arr.... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432185/"
] |
74,336,232 | <p>I have this dataframe (but let's imagine it very big)</p>
<pre><code>df = data.frame(x = c(1,0,0,0,1,1,1,NA), y = c(2,2,2,2,3,3,2,NA),
z = c(1:7,NA), m = c(1,2,3,1,2,3,1,NA) )
df$x = factor(df$x)
df$y = factor(df$y)
df$m = factor(df$m)
</code></pre>
<p>and I wish to create a list that looks like as ... | [
{
"answer_id": 74336254,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 3,
"selected": true,
"text": "as.list \"data.frame\" \"data.frame\" class \"list\" as.list(df)\n# $x\n# [1] 1 0 0 0 1 1 1 <NA>\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19720935/"
] |
74,336,260 | <p>I am working in R where I have a dataframe with one character variable V1 that contains a lot of different strings. I want to find dates in format dd.mm.yy or dd.mm.yyyy in this column using grepl.
My dataset includes, among other things</p>
<pre><code>V1
00101230311200022
73.11.22 15:19
</code></pre>
<p>My date is... | [
{
"answer_id": 74336254,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 3,
"selected": true,
"text": "as.list \"data.frame\" \"data.frame\" class \"list\" as.list(df)\n# $x\n# [1] 1 0 0 0 1 1 1 <NA>\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20332100/"
] |
74,336,283 | <p>I have a front end (angular) with login form, a back-end for that angular application as my OAuth client (spring dependency) then I have a third application that is the Authorization server and finally the forth is the ressources server.</p>
<p>So I want to know is there is any way to jump the redirect to /login fro... | [
{
"answer_id": 74336254,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 3,
"selected": true,
"text": "as.list \"data.frame\" \"data.frame\" class \"list\" as.list(df)\n# $x\n# [1] 1 0 0 0 1 1 1 <NA>\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16571923/"
] |
74,336,298 | <p>Trying to create md5 hash of a string with powershell that matches linux-generated result... problem is of course that powershell seems to only hash files...</p>
<p>most answers point to memorystream/streamwriter but question is how to do without... Posting this because there is an answer but have to search PowerShe... | [
{
"answer_id": 74336338,
"author": "Freenex1911",
"author_id": 12144193,
"author_profile": "https://Stackoverflow.com/users/12144193",
"pm_score": 0,
"selected": false,
"text": "$stringAsStream = [System.IO.MemoryStream]::new()\n$writer = [System.IO.StreamWriter]::new($stringAsStream)\n$... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432339/"
] |
74,336,343 | <p>I have k = [3, 2, 0, 1] and A array filled with zeros. I want to fill A with ones such that each row sums up to a value in k</p>
<pre><code>k = [3, 2, 0, 1]
A = np.zeros((n, n), dtype=int)
for i in k:
A = np.random.randint(2, size=i)
</code></pre>
<p>the expected output:</p>
<pre><code>([[1., 0., 1., 1.],
[0... | [
{
"answer_id": 74336338,
"author": "Freenex1911",
"author_id": 12144193,
"author_profile": "https://Stackoverflow.com/users/12144193",
"pm_score": 0,
"selected": false,
"text": "$stringAsStream = [System.IO.MemoryStream]::new()\n$writer = [System.IO.StreamWriter]::new($stringAsStream)\n$... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11268249/"
] |
74,336,360 | <p>I am studying this youtube tutorial by ShellWave which learns you how to program in C on a Linux device and for some reason am getting stuck at lesson #024 : <a href="https://www.youtube.com/watch?v=dP3N8g7h8gY&list=PLypxmOPCOkHXbJhUgjRaV2pD9MJkIArhg&index=24" rel="nofollow noreferrer">Youtube</a></p>
<p>My ... | [
{
"answer_id": 74336418,
"author": "Liam H.",
"author_id": 19206274,
"author_profile": "https://Stackoverflow.com/users/19206274",
"pm_score": 1,
"selected": false,
"text": "fd = open(\"myfile\", O_WRONLY | O_CREAT, 0600);\n fd = open(\"myfile.txt”, O_CREAT | O_WRONLY, 0600);\n"
},
{... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432331/"
] |
74,336,372 | <p>I can't redirect user on new page with javascript variants code:</p>
<ul>
<li><code>window.location.href=url</code></li>
<li><code>window.location.replace (url)</code></li>
<li><code>window.location.assign (url)</code></li>
</ul>
<p>The problem of redirect only on android, on other platforms there is no problem with... | [
{
"answer_id": 74336418,
"author": "Liam H.",
"author_id": 19206274,
"author_profile": "https://Stackoverflow.com/users/19206274",
"pm_score": 1,
"selected": false,
"text": "fd = open(\"myfile\", O_WRONLY | O_CREAT, 0600);\n fd = open(\"myfile.txt”, O_CREAT | O_WRONLY, 0600);\n"
},
{... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19295054/"
] |
74,336,380 | <p>i have been trying to solve this error , after i login i was getting type 'Null' is not a subtype of type 'String' for about 5 seconds and after that the app successfully login, i do not know why this happen, i already add null check to the User but i still get the error . Below is my code, tell me if you need more ... | [
{
"answer_id": 74336496,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 1,
"selected": false,
"text": "routing FirebaseFirestore's result routing() {\n if(role == null){\n return Container(); // show empty ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15003461/"
] |
74,336,387 | <p>I imagine code similar to this:</p>
<pre><code>var someDict: [Int:Bool] = { (0...100).map { someInt -> [Int: String] in (someInt:false) } }
</code></pre>
<p>but it does not work :(</p>
<p>How to properly map array of some value to dictionary?</p>
| [
{
"answer_id": 74336413,
"author": "dillon-mce",
"author_id": 11601631,
"author_profile": "https://Stackoverflow.com/users/11601631",
"pm_score": 0,
"selected": false,
"text": "reduce let someDict = (0...100).reduce(into: [Int: Bool]()) { $0[$1] = false }\n"
},
{
"answer_id": 743... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4423545/"
] |
74,336,396 | <p>I'm asking a user to input a year from the keyboard. For example users input 2008, How can I get the maximum value of the year from list that user input the value of year?</p>
<p>This is my code:</p>
<pre><code>data_list = [(20070101, 619), (20070102, 615), (20070103, 614), (20080104, 845), (20080105, 840), (2008010... | [
{
"answer_id": 74336413,
"author": "dillon-mce",
"author_id": 11601631,
"author_profile": "https://Stackoverflow.com/users/11601631",
"pm_score": 0,
"selected": false,
"text": "reduce let someDict = (0...100).reduce(into: [Int: Bool]()) { $0[$1] = false }\n"
},
{
"answer_id": 743... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20362914/"
] |
74,336,398 | <p>i am trying to open a specific instagram url in my app , i've tried all possible ways that i could find but no matter what i do i get a message that says component name for (url) is null then a message that says component name for <a href="https://flutter.dev" rel="nofollow noreferrer">https://flutter.dev</a> is nul... | [
{
"answer_id": 74337054,
"author": "Atreides",
"author_id": 20097045,
"author_profile": "https://Stackoverflow.com/users/20097045",
"pm_score": 0,
"selected": false,
"text": "final Uri toLaunch =\n Uri(scheme: 'https', host: 'www.flutter.dev');\n final Uri toLaunch =\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17826676/"
] |
74,336,399 | <p>Hmm... I can't understand why my project have error... Please hlep me.</p>
<p>[Error Message]</p>
<pre><code>Error: The getter 'user' isn't defined for the class '_CreatePageState'.
- '_CreatePageState' is from 'package:insta_clone2_start/create_page.dart'('lib/create_page.dart').
Try correcting the name to the name... | [
{
"answer_id": 74337054,
"author": "Atreides",
"author_id": 20097045,
"author_profile": "https://Stackoverflow.com/users/20097045",
"pm_score": 0,
"selected": false,
"text": "final Uri toLaunch =\n Uri(scheme: 'https', host: 'www.flutter.dev');\n final Uri toLaunch =\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19711930/"
] |
74,336,403 | <p>I am stuck in a problem. I want to update my cartesian index.</p>
<p>I have a matrix (<code>x</code>) 200x6 that is binary. 1 if assigned, 0 otherwise. I want to find the cartesian index of when <code>x</code> is 1 in the first 3 columns and in the last 3 elements.</p>
<p>I have the following code:</p>
<pre><code>in... | [
{
"answer_id": 74337054,
"author": "Atreides",
"author_id": 20097045,
"author_profile": "https://Stackoverflow.com/users/20097045",
"pm_score": 0,
"selected": false,
"text": "final Uri toLaunch =\n Uri(scheme: 'https', host: 'www.flutter.dev');\n final Uri toLaunch =\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10571326/"
] |
74,336,430 | <p>I am using recursion to find an element in an array</p>
<pre><code>def recur_search(arr,n,x): #n is the starting index and x is the target value
if (arr[n] == x):
return n
else:
return recur_search(arr,n+1,x)
arr = [1,2,3,4,5,6,7,8]
print(recur_search(arr,0,5))
</code></pre>
<p>This progra... | [
{
"answer_id": 74337054,
"author": "Atreides",
"author_id": 20097045,
"author_profile": "https://Stackoverflow.com/users/20097045",
"pm_score": 0,
"selected": false,
"text": "final Uri toLaunch =\n Uri(scheme: 'https', host: 'www.flutter.dev');\n final Uri toLaunch =\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10750387/"
] |
74,336,449 | <p>How do I change the order of files from alphabetical order to last added?<a href="https://i.stack.imgur.com/pIB0Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pIB0Y.png" alt="enter image description here" /></a></p>
<p>I don't know where the settings are , I have a lot of trouble managing those... | [
{
"answer_id": 74336475,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 2,
"selected": false,
"text": " \"explorer.sortOrder\": \"modified\"\n .vscode/settings.json .vscode/settings.json"
},
{
"answer_id": 743... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19946206/"
] |
74,336,502 | <p>I need to compare if any of the two cases meets the requirement, I need to take decision else need to do something else. I tried many ways and this is one of them but every way giving error.</p>
<pre><code>if case .locked = itemStatus || case .hasHistoryLocked = itemStatus {
print("YES")
} else... | [
{
"answer_id": 74336532,
"author": "Thang Phi",
"author_id": 10650407,
"author_profile": "https://Stackoverflow.com/users/10650407",
"pm_score": 0,
"selected": false,
"text": "Equatable rawValue itemStatus enum Test : Int {\n case locked = 0\n case hasHistoryLocked = 1\n case an... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/390423/"
] |
74,336,503 | <p>I'm trying to print the output, but my code keep getting an error:</p>
<blockquote>
<p>C++ compile error: ISO C++ forbids comparison between pointer and integer</p>
</blockquote>
<p>The error is in <code>else if</code>:</p>
<pre><code>#include <stdio.h>
#include <string.h>
int main (){
char BT [5][1... | [
{
"answer_id": 74336523,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 0,
"selected": false,
"text": "BT[i - 1] ' '"
},
{
"answer_id": 74336585,
"author": "Vlad from Moscow",
"author_id": 2877241,
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432505/"
] |
74,336,544 | <p>I have a very large list of strings which each words in the list are unnormalized, for instance:</p>
<pre><code>word_list = ["Alzheimer", "Alzheimer's", "Alzheimer.", "Alzheimer?","Cognition.", "Cognition's", "Cognitions", "Cognition"] #... | [
{
"answer_id": 74336636,
"author": "Omar",
"author_id": 9289463,
"author_profile": "https://Stackoverflow.com/users/9289463",
"pm_score": 0,
"selected": false,
"text": "import re\ndef word_normalizer(word): \n word = re.sub('[^A-Za-z0-9]+', '', word)\n return word.lower()\n"
},
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19512917/"
] |
74,336,557 | <p>I'm struggling to define this problem exactly, which is part of the reason I cannot solve it. Basically, I want to assign numbers to nodes that provides a kind of topological sorting, but if there is a cycle in the graph, which I want to allow, it should assign values to the nodes that essentially count up the dista... | [
{
"answer_id": 74337607,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 0,
"selected": false,
"text": "max( shortest_path(node1, node2) for node1 in nodes, node2 in nodes) index of closest node with index index of clos... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74336557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20347937/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.