qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,492,675 | <p>Code can only find and change one image link in the text. If it's more than one, it doesn't work. How can I get it to detect multiple image links?</p>
<pre><code>$sad222 = "somthing text bla bla bla ...... https://www.indyturk.com/sites/default/files/styles/150x100/public/article/main_image/2022/08/02/984246-11... | [
{
"answer_id": 74495876,
"author": "Cristian Antonio Rosas Ayala",
"author_id": 20543270,
"author_profile": "https://Stackoverflow.com/users/20543270",
"pm_score": 2,
"selected": false,
"text": "npm i @bahmutov/cypress-esbuild-preprocessor \n"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18491093/"
] |
74,492,697 | <p>This solution is for the 1-12 exercise from the C programming language book. The question is to write a program that prints its input one word per line.</p>
<p>I found the following solution:</p>
<pre><code>#include <stdio.h>
int main(void)
{
int c;
int inspace;
inspace = 0;
while((c = getchar()) != E... | [
{
"answer_id": 74495876,
"author": "Cristian Antonio Rosas Ayala",
"author_id": 20543270,
"author_profile": "https://Stackoverflow.com/users/20543270",
"pm_score": 2,
"selected": false,
"text": "npm i @bahmutov/cypress-esbuild-preprocessor \n"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541333/"
] |
74,492,706 | <p>I created a feature branch from master but I should have done it from develop branch how can I fix it?</p>
<p>For visualization I've done this:</p>
<pre><code> D---E---F develop
/
A---B---C master
\
G---H feature
</code></pre>
<p>but I should have done this:</p>
<pre><code> ... | [
{
"answer_id": 74492727,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 1,
"selected": false,
"text": "feature develop git rebase git rebase --onto develop master feature\n master feature develop develop git merge git chec... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18666815/"
] |
74,492,769 | <p>I have two files, <code>file.component.ts</code> containing:</p>
<pre><code> removeComma(e) {
const USER_VAL = parseFloat(e.target.value.replace(/,/g, ''));
}
</code></pre>
<p>and my test file <code>file.component.specs.ts</code> containing:</p>
<pre><code>describe('removeComma()', () => {
it('Should... | [
{
"answer_id": 74492727,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 1,
"selected": false,
"text": "feature develop git rebase git rebase --onto develop master feature\n master feature develop develop git merge git chec... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14197885/"
] |
74,492,803 | <p>Function named minmax_index has two parameters: one of type list and another type bool. If the Boolean parameter refers to True, the function returns a tuple containing the minimum and its index; and if it refers to False, it returns a tuple containing the maximum and its index.</p>
<p>eg: minmax_index([1,2,3,4],Fal... | [
{
"answer_id": 74492727,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 1,
"selected": false,
"text": "feature develop git rebase git rebase --onto develop master feature\n master feature develop develop git merge git chec... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20214604/"
] |
74,492,804 | <p>I'm new to programming and JavaScript, i tried creating an interface for a code challenge, but i keep getting this error message:</p>
<pre><code>Type '{ 1100: { albumTitle: string; artist: string; tracks: string[]; }; 2468: { albumTitle: string; artist: string; tracks: string[]; }; 1245: { artist: string; tracks: ne... | [
{
"answer_id": 74492976,
"author": "Kyle Valderrama",
"author_id": 11609663,
"author_profile": "https://Stackoverflow.com/users/11609663",
"pm_score": 1,
"selected": false,
"text": "interface CollectionInfo {\n [id: number]: {\n albumTitle: string | number;\n artist: string |... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541292/"
] |
74,492,845 | <p>previous issue</p>
<p><a href="https://stackoverflow.com/questions/74490898/building-a-rating-app-using-strapi-and-react-throws-errors">building a rating app using strapi and react throws errors</a> is solved.</p>
<p>But, the records are not getting added to the admin.</p>
<p>can anyone help on this?</p>
<p>This is ... | [
{
"answer_id": 74492976,
"author": "Kyle Valderrama",
"author_id": 11609663,
"author_profile": "https://Stackoverflow.com/users/11609663",
"pm_score": 1,
"selected": false,
"text": "interface CollectionInfo {\n [id: number]: {\n albumTitle: string | number;\n artist: string |... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3986620/"
] |
74,492,856 | <p>I'm trying to update the <a href="https://www.npmjs.com/package/swiper" rel="nofollow noreferrer">swiper.js</a> library</p>
<p>I was using swiper version: <strong>6.8.2</strong>,</p>
<p>Now I would like to upgrade it to a newer version <strong>7.4.1</strong></p>
<p>My App is written in React and Node js with SSR( I... | [
{
"answer_id": 74492976,
"author": "Kyle Valderrama",
"author_id": 11609663,
"author_profile": "https://Stackoverflow.com/users/11609663",
"pm_score": 1,
"selected": false,
"text": "interface CollectionInfo {\n [id: number]: {\n albumTitle: string | number;\n artist: string |... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4397306/"
] |
74,492,859 | <p>When I tap on a button I want to navigate to the second screen Focus on TextField(there is only one) and raise a keyboard.</p>
<p>I successfully focused when I taped on a widget on the same screen using FocusNode.</p>
| [
{
"answer_id": 74492976,
"author": "Kyle Valderrama",
"author_id": 11609663,
"author_profile": "https://Stackoverflow.com/users/11609663",
"pm_score": 1,
"selected": false,
"text": "interface CollectionInfo {\n [id: number]: {\n albumTitle: string | number;\n artist: string |... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524109/"
] |
74,492,876 | <p>I have 2 DAGs: dag_a and dag_b (dag_a -> dag_b)
After dag_a is executed, TriggerDagRunOperator is called, which starts dag_b. The problem is, when dag_b is off (paused), dag_a's TriggerDagRunOperator creates scheduled runs in dag_b that queue up for as long as dag_a is running. After turning dag_b back ON, the ex... | [
{
"answer_id": 74494126,
"author": "Emma",
"author_id": 2956135,
"author_profile": "https://Stackoverflow.com/users/2956135",
"pm_score": 2,
"selected": true,
"text": "ShortCircuitOperator dag_b dag_b dag_a = TriggerDagRunOperator(\n trigger_dag_id='dag_a',\n ...\n)\n\npause_check ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14884187/"
] |
74,492,884 | <p>I'm writing a hashing function to help speed up string comparisons.<br />
My codebase compares strings against a lot of <code>const char[]</code> constants, and it would be ideal if I could work with hashes instead. I went ahead and translated xxHash to modern C++, and I have a working prototype that does work at co... | [
{
"answer_id": 74493174,
"author": "apple apple",
"author_id": 5980430,
"author_profile": "https://Stackoverflow.com/users/5980430",
"pm_score": 2,
"selected": false,
"text": "constexpr constexpr constexpr uint64_t xxHash64(const char* s){return s[0];}\nconstexpr uint64_t operator \"\" _... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4820749/"
] |
74,492,912 | <p>I'm a beginner with Python and wanted to make a script to collect some basketball stats from basketball-reference.com and sort the list based on a certain stat. I understand this error is thrown when you try to reference an index in a list where that index does not exist. But I've tried creating both a completely em... | [
{
"answer_id": 74493024,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 2,
"selected": true,
"text": "player = [] append for x in range(5):\n player[x] = player_first_name[x] + \" \" + player_last_name[x]\n\n#... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541412/"
] |
74,492,930 | <p>Is it a bad practice to return a class inside the method of another class?</p>
<p>Example: createBlockClass method</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>class Bl... | [
{
"answer_id": 74493024,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 2,
"selected": true,
"text": "player = [] append for x in range(5):\n player[x] = player_first_name[x] + \" \" + player_last_name[x]\n\n#... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16490155/"
] |
74,492,934 | <p>I have several lists that are generated from a <code>get_topic()</code> function. That is,</p>
<pre><code>list1 = get_topic(1)
list2 = get_topic(2)
and another dozens of lists.
# The list contains something like
[('A', 0.1),('B', 0.2),('C',0.3)]
</code></pre>
<p>I am trying to write a loop so that all different li... | [
{
"answer_id": 74493153,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\n\ntopics = [\n [('A', 0.1), ('B', 0.2), ('C', 0.3)],\n [('D', 0.3), ('E', 0... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19192947/"
] |
74,492,945 | <p>This is my HTML</p>
<pre><code>
<section class="carousel">
<div class="carousel__slider">
<ul class="carousel__list">
<li class="carousel__item">
<img src="images/KawaiiCoded Logo.jpg" ... | [
{
"answer_id": 74493153,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\n\ntopics = [\n [('A', 0.1), ('B', 0.2), ('C', 0.3)],\n [('D', 0.3), ('E', 0... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17977590/"
] |
74,492,958 | <p>I have a UIViewRepresentable of a third-party library component <code>FSCalendar</code>. However, I need this to conform to type UIView... Is there a way to do this? Any help is appreciated :)</p>
<pre><code>struct CalendarViewRepresentable: UIViewRepresentable {
typealias UIViewType = FSCalendar
var calend... | [
{
"answer_id": 74493153,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\n\ntopics = [\n [('A', 0.1), ('B', 0.2), ('C', 0.3)],\n [('D', 0.3), ('E', 0... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13702200/"
] |
74,492,996 | <p>I have added text widget inside row widget.then 2nd text value</p>
<pre><code>Text(
widget.leavemodel.reason ?? '',
style: TextStyle(
fontSize: 16.0,
),
</code></pre>
<p>getting 4 pixcel overflowed.how can i sloved this?</p>
<p... | [
{
"answer_id": 74493153,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\n\ntopics = [\n [('A', 0.1), ('B', 0.2), ('C', 0.3)],\n [('D', 0.3), ('E', 0... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16752454/"
] |
74,493,013 | <p>I have initial data which works fine.</p>
<pre><code>var data = {field1: FieldValue.increment(1)};
</code></pre>
<p>And it is also fine when I add another field to the data.</p>
<pre><code>data.addAll({field2: FieldValue.increment(1)});
</code></pre>
<p>But if I set the value to 0, it won't allow me to.</p>
<pre><co... | [
{
"answer_id": 74513286,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 2,
"selected": false,
"text": "var data = {field1: FieldValue.increment(1)};\n"
},
{
"answer_id": 74513409,
"author": "Gwhyyy",
"au... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11555124/"
] |
74,493,022 | <p>With Go <a href="https://pkg.go.dev/text/template" rel="nofollow noreferrer">text/template</a> language, how can I convert a bool to an int (false=0, true=1)?</p>
<p>Here is an example using the <a href="https://github.com/dolmen-go/goproc" rel="nofollow noreferrer">goproc</a> tool that allows to execute template fr... | [
{
"answer_id": 74493023,
"author": "dolmen",
"author_id": 328115,
"author_profile": "https://Stackoverflow.com/users/328115",
"pm_score": 0,
"selected": false,
"text": "index \"true\" \"false\" $ echo false | goproc -e '{{.}} => {{index \"....\\001\\000\" (len (print .))}}{{\"\\n\"}}'\nf... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/328115/"
] |
74,493,057 | <p>So basically, i need to get the user to input some type of string and then get the user to input a number and slice the string depending on the users number and print on a new line every time it sliced. I don't think that made since so here is an example</p>
<pre><code>Welcome to the jungle.
5
Welco
me to
the
jungl
... | [
{
"answer_id": 74493023,
"author": "dolmen",
"author_id": 328115,
"author_profile": "https://Stackoverflow.com/users/328115",
"pm_score": 0,
"selected": false,
"text": "index \"true\" \"false\" $ echo false | goproc -e '{{.}} => {{index \"....\\001\\000\" (len (print .))}}{{\"\\n\"}}'\nf... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20188275/"
] |
74,493,073 | <p><strong>Question:</strong></p>
<p>Is there a way to combine the advantages of GitHub's fine-grained PATs with the simplicity of <code>git pull</code> over HTTPS? If so, then how?</p>
<p><strong>Background</strong></p>
<p>GitHub has "classic" and "fine-grained" personal access tokens (PATs):</p>
<... | [
{
"answer_id": 74495336,
"author": "bk2204",
"author_id": 8705432,
"author_profile": "https://Stackoverflow.com/users/8705432",
"pm_score": 2,
"selected": true,
"text": "credential.usehttppath credential.https://github.com.usehttppath"
},
{
"answer_id": 74495393,
"author": "B... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12567365/"
] |
74,493,096 | <p>I have 40 provider and 10,000 product but i want to show 1 product of each provider</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Brand</th>
<th>Provider</th>
<th>Product</th>
<th>URL</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lightning</td>
<td>Pragmatic Play</td>
<td>Madame Destiny</td>
<t... | [
{
"answer_id": 74493489,
"author": "Chandan",
"author_id": 19493154,
"author_profile": "https://Stackoverflow.com/users/19493154",
"pm_score": 0,
"selected": false,
"text": "$sql = \"SELECT * FROM tablename WHERE Brand='Coolcasino' and Provider IN ('Pragmatic Play','Isoftbet','Netent') G... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541535/"
] |
74,493,112 | <p>There are three aligned elements with <code>display: flex</code>.</p>
<p>I'd like to hide a middle element if it's too long (if the text goes to another line) and the middle element is dynamic so sometimes it's short, sometimes it's long.</p>
<p>Also, this is specific for the mobile screen size.</p>
<p>How can I do ... | [
{
"answer_id": 74493318,
"author": "Pratik Dev",
"author_id": 15908339,
"author_profile": "https://Stackoverflow.com/users/15908339",
"pm_score": 0,
"selected": false,
"text": "hide display: none hide bottom, top, height, width, left, right, x, y const middle = document.querySelector(\".... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14489531/"
] |
74,493,131 | <p>I have a situation here ..</p>
<p>If there is a , var ttext = " enzo had a pen, watch and key "</p>
<p>i want to check if ttext has either pen or watch or key ..</p>
<p>i tried using include</p>
<pre><code>var ttext = " enzo had a pen, watch and key "
let result = ttext.includes("pen"... | [
{
"answer_id": 74493318,
"author": "Pratik Dev",
"author_id": 15908339,
"author_profile": "https://Stackoverflow.com/users/15908339",
"pm_score": 0,
"selected": false,
"text": "hide display: none hide bottom, top, height, width, left, right, x, y const middle = document.querySelector(\".... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541555/"
] |
74,493,134 | <p>I want to load some information about a server from a json file, each server is identified within this file by its guild.id.
However if I want to try and load some data at the start with on_ready(), I cant use ctx, which I need to get the current servers guild.id, so I can identify it within the file.</p>
<p>(sorry ... | [
{
"answer_id": 74495356,
"author": "Pythonwolf",
"author_id": 18666199,
"author_profile": "https://Stackoverflow.com/users/18666199",
"pm_score": 2,
"selected": false,
"text": "guild = discord.utils.get(bot.guilds, id=378473289473829)\n bot"
},
{
"answer_id": 74495359,
"autho... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19753572/"
] |
74,493,149 | <p>Is there a standard QML component using which several items created in Repeater can be animated one after the other with some delay (i.e. not simultaneously)?
So far I could only come up with a Timer based solution like below:</p>
<pre><code>import QtQuick 6.3
Item {
width: 600; height: 400
Row {
a... | [
{
"answer_id": 74493788,
"author": "folibis",
"author_id": 2981610,
"author_profile": "https://Stackoverflow.com/users/2981610",
"pm_score": 1,
"selected": false,
"text": " import QtQuick\n import QtQuick.Timeline\n import QtQuick.Controls\n \n Window {\n width: 500... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5405069/"
] |
74,493,189 | <p>I have the following data in R:</p>
<pre><code>id = 1:5
col1 = c("john", "henry", "adam", "jenna", "Phone: 222 2222")
col2 = c("river B8C 9L4", "Field U9H 5E2 PP", "NA", "ocean A1B 5H1 dd", "dave")
col3 = c("Phon... | [
{
"answer_id": 74493788,
"author": "folibis",
"author_id": 2981610,
"author_profile": "https://Stackoverflow.com/users/2981610",
"pm_score": 1,
"selected": false,
"text": " import QtQuick\n import QtQuick.Timeline\n import QtQuick.Controls\n \n Window {\n width: 500... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203841/"
] |
74,493,191 | <p>I was prompted to modify one of our filters so that we can specify which portion of the image should be modified.
row1 and col1 : the top left coordinates the rectangle to modify
row2 and col2: the bottom right coordinates of the rectangle to modify</p>
<p>I have attmepted this but it has not worked.</p>
<p>This is ... | [
{
"answer_id": 74493788,
"author": "folibis",
"author_id": 2981610,
"author_profile": "https://Stackoverflow.com/users/2981610",
"pm_score": 1,
"selected": false,
"text": " import QtQuick\n import QtQuick.Timeline\n import QtQuick.Controls\n \n Window {\n width: 500... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18749302/"
] |
74,493,198 | <p>OK, what I want is, if a person types the URL "test.MyClientsDomain.net" they actually go to "MyCompanyDomain.com" (but the URL bar shows "test.MyClientsDomain.net").</p>
<p>Here is what I have done so far:</p>
<ul>
<li>We purchased a SSL from goDaddy that allows us to add multiple doma... | [
{
"answer_id": 74493788,
"author": "folibis",
"author_id": 2981610,
"author_profile": "https://Stackoverflow.com/users/2981610",
"pm_score": 1,
"selected": false,
"text": " import QtQuick\n import QtQuick.Timeline\n import QtQuick.Controls\n \n Window {\n width: 500... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2872007/"
] |
74,493,224 | <p>I have a pandas Dataframe of tennis games with 70,000 games (rows) with two issues:</p>
<ol>
<li><p>Every game is duplicated, because for every game between player A and B, there's a row when A plays with B and a row when B plays with A. This happens because I extracted all games played for each player, so I have al... | [
{
"answer_id": 74493788,
"author": "folibis",
"author_id": 2981610,
"author_profile": "https://Stackoverflow.com/users/2981610",
"pm_score": 1,
"selected": false,
"text": " import QtQuick\n import QtQuick.Timeline\n import QtQuick.Controls\n \n Window {\n width: 500... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17777564/"
] |
74,493,302 | <p>Checking if the Struct conformed to protocol, but if the nested struct is optional it always returns <code>false</code>,</p>
<p>example:</p>
<pre class="lang-swift prettyprint-override"><code>protocol XYZ {
}
extension XYZ {
func test() {
print("asdsfd")
}
}
struct Test1: XYZ {
var test2:... | [
{
"answer_id": 74493788,
"author": "folibis",
"author_id": 2981610,
"author_profile": "https://Stackoverflow.com/users/2981610",
"pm_score": 1,
"selected": false,
"text": " import QtQuick\n import QtQuick.Timeline\n import QtQuick.Controls\n \n Window {\n width: 500... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541684/"
] |
74,493,308 | <p>I am trying to create an array of urls, the array is called "sentences". So far I have seen that you must use a useState if you want to put the API response in an array. This is what I have tried so far.</p>
<pre><code> const [sentences, setSentences] = useState([]);
const getOpenAIResponse = () => ... | [
{
"answer_id": 74493336,
"author": "Blundering Philosopher",
"author_id": 2430414,
"author_profile": "https://Stackoverflow.com/users/2430414",
"pm_score": 3,
"selected": true,
"text": "getOpenAIResponse openai.createImage sentences const getOpenAIResponse = () => {\n imagePromises = []... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20518918/"
] |
74,493,310 | <p>Suppose you have this simple class hierarchy:</p>
<pre><code>struct base {
virtual void f () const = 0;
};
struct derived : public base {
virtual void f () const final
{
...
}
};
</code></pre>
<p>There is only one implementation of f(), and because it is declared final, may we consider that... | [
{
"answer_id": 74493580,
"author": "Hein Breukers",
"author_id": 16860716,
"author_profile": "https://Stackoverflow.com/users/16860716",
"pm_score": 2,
"selected": false,
"text": "struct base {\n\nvirtual int f () const = 0;\n\n};\n\nstruct derived : public base {\n\nvirtual int f () con... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1856951/"
] |
74,493,317 | <p>In our compony we use ant design library. And when I added one of the components from the library to my project and I looked in Chrome DevTools I was amused that I found a property that called <strong>--antd-arrow-background-color: none;</strong></p>
<p>Before I thought that all browsers can understand and show only... | [
{
"answer_id": 74493580,
"author": "Hein Breukers",
"author_id": 16860716,
"author_profile": "https://Stackoverflow.com/users/16860716",
"pm_score": 2,
"selected": false,
"text": "struct base {\n\nvirtual int f () const = 0;\n\n};\n\nstruct derived : public base {\n\nvirtual int f () con... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9664379/"
] |
74,493,338 | <p>I am trying to grab a record that meets multiple conditions. See below.</p>
<p><strong>DATA:</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>PERSON_ID</th>
<th>DOCTOR</th>
<th>DATE_OF_SERVICE</th>
</tr>
</thead>
<tbody>
<tr>
<td>1234</td>
<td>Dr. Smith</td>
<td>2022-01-01</td>
<... | [
{
"answer_id": 74493402,
"author": "forpas",
"author_id": 10498828,
"author_profile": "https://Stackoverflow.com/users/10498828",
"pm_score": 2,
"selected": true,
"text": "NOT EXISTS SELECT t1.*\nFROM tablename t1\nWHERE t1.doctor IS NOT NULL\n OR NOT EXISTS (\n SELECT *\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14945726/"
] |
74,493,359 | <p><strong>View:</strong></p>
<pre><code> <form action="/checklogin" method="post" enctype="multipart/form-data" class="account-form" id="login_form_order_page">
{{ csrf_field() }}
<div class="error-wrap&q... | [
{
"answer_id": 74493402,
"author": "forpas",
"author_id": 10498828,
"author_profile": "https://Stackoverflow.com/users/10498828",
"pm_score": 2,
"selected": true,
"text": "NOT EXISTS SELECT t1.*\nFROM tablename t1\nWHERE t1.doctor IS NOT NULL\n OR NOT EXISTS (\n SELECT *\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15703550/"
] |
74,493,362 | <p>I have created an SQL query that returns me elements from a film table that satisfy one of two conditions. They are either the most profitable (gross - budget) or the least expensive movies to make.</p>
<p>However, i wanted to add a column to the return of the query that said 'most profitable' or 'least expensive' i... | [
{
"answer_id": 74493895,
"author": "histocrat",
"author_id": 1747583,
"author_profile": "https://Stackoverflow.com/users/1747583",
"pm_score": 1,
"selected": true,
"text": "WITH max_profit AS (SELECT MAX(gross-budget) FROM Films),\nmin_cost AS (SELECT MIN(budget) FROM Films)\nSELECT titl... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541599/"
] |
74,493,377 | <p>The below program is to check whether a number (say "n") prime factors are limited to 2,3,and 5 only or not. But program gives me signed integer overflow runtime error. Can anyone please help me in solving this problem? Here's the piece of code:</p>
<pre><code> bool check(int n)
{
if(n<0)
... | [
{
"answer_id": 74493577,
"author": "FLAK-ZOSO",
"author_id": 15888601,
"author_profile": "https://Stackoverflow.com/users/15888601",
"pm_score": 1,
"selected": false,
"text": "2^3 8 -8 7 -2147483648 2147483647"
},
{
"answer_id": 74493800,
"author": "Eljay",
"author_id": 4... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16479369/"
] |
74,493,387 | <p>Given query</p>
<pre><code>query user($id: Int!) {
getUser(id: $id) {
id
name
}
}
</code></pre>
<p>I'd like to grab multiple users and get them returned as an array ex: <code>const users = [1, 2, 3, 5]</code></p>
<p>I it possible to query this from client, or do I need to define new Query on the server?<... | [
{
"answer_id": 74493577,
"author": "FLAK-ZOSO",
"author_id": 15888601,
"author_profile": "https://Stackoverflow.com/users/15888601",
"pm_score": 1,
"selected": false,
"text": "2^3 8 -8 7 -2147483648 2147483647"
},
{
"answer_id": 74493800,
"author": "Eljay",
"author_id": 4... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1333744/"
] |
74,493,398 | <p>I want to put a temporary text in more than 1 entry with tkinter, but my func is not working.
I have this situation:</p>
<pre><code>def temp_text_entry_delete(e):
self.id_entry.delete(0, 'end')
self.id_entry = tk.Entry(borderwidth=2, width=10)
self.id_entry.insert(0, "ex:001")
self.id_entry.pack()
se... | [
{
"answer_id": 74493543,
"author": "JRiggles",
"author_id": 8512262,
"author_profile": "https://Stackoverflow.com/users/8512262",
"pm_score": 1,
"selected": true,
"text": "PlaceholderEntry import tkinter as tk\nfrom tkinter import ttk\n\n\nclass PlaceholderEntry(ttk.Entry):\n \"\"\"En... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541106/"
] |
74,493,407 | <p>The Next.js image component is normally choosing the best possible format for an images (avif, webm etc.) by accepted format-types of the browser.
In my case i need to have the best possible format (avif) for most images except some gallery images that need to be jpeg.</p>
<p>I tried to set the format (jpg) for a sp... | [
{
"answer_id": 74493543,
"author": "JRiggles",
"author_id": 8512262,
"author_profile": "https://Stackoverflow.com/users/8512262",
"pm_score": 1,
"selected": true,
"text": "PlaceholderEntry import tkinter as tk\nfrom tkinter import ttk\n\n\nclass PlaceholderEntry(ttk.Entry):\n \"\"\"En... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10653404/"
] |
74,493,441 | <p>I want to sum a 2d list.
Example:
<code>x==[[1, 2],[3, 4],[5, 6]]</code></p>
<p>a solution should lool like:
<code>sum_2d = [3, 7, 11]</code></p>
<p>I tried this:
<code>y = sum(sum(x,[]))</code>
but that sums all the numbers.</p>
<p>Thanks for any advice.</p>
| [
{
"answer_id": 74493469,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 1,
"selected": false,
"text": "x=[[1, 2],[3, 4],[5, 6]]\n\n[sum(y) for y in x]\n\n#output\n[3, 7, 11]\n"
},
{
"answer_id": 74493548,... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11500064/"
] |
74,493,443 | <p>The only users that should see the list of contacts are authenticated users.</p>
<p>Inside the <code>Contacts Controllers</code>, I've been testing different file paths to route the unauthenticated users to the login screen to no avail.</p>
<p>When routing to anything inside the Area folder, exactly how would you go... | [
{
"answer_id": 74493469,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 1,
"selected": false,
"text": "x=[[1, 2],[3, 4],[5, 6]]\n\n[sum(y) for y in x]\n\n#output\n[3, 7, 11]\n"
},
{
"answer_id": 74493548,... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11720959/"
] |
74,493,455 | <p>I have a dataframe in python containing various dates.</p>
<pre><code>df = pd.DataFrame({"Date":["2020-01-27 welcome ! offer","Space ! offer 2020-02-27","new | 2020-03-27"],
"A_item":[2, 8, 0],
"B_item":[1, 7, 10],
... | [
{
"answer_id": 74493469,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 1,
"selected": false,
"text": "x=[[1, 2],[3, 4],[5, 6]]\n\n[sum(y) for y in x]\n\n#output\n[3, 7, 11]\n"
},
{
"answer_id": 74493548,... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17149139/"
] |
74,493,459 | <p>Let's say I have the following date as a string:</p>
<pre><code>2022-01-05
</code></pre>
<p>I'd like to convert this to the following format:</p>
<pre><code>Jan 5, 2022
</code></pre>
<p>I've tried using the following code:</p>
<pre><code>const shortDateFormat = new Intl.DateTimeFormat("en-US", {
dateStyl... | [
{
"answer_id": 74493527,
"author": "Dream Bold",
"author_id": 12743692,
"author_profile": "https://Stackoverflow.com/users/12743692",
"pm_score": 1,
"selected": false,
"text": "const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));\nconst options = { weekday: 'long', year: 'numeric', m... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6611672/"
] |
74,493,493 | <p>For a task I need use <code>if atoi(INPUT) == 0</code> to check that a users input is a valid integer and not 0. The problem is when I enter any string that starts with an integer, it is automatically accepted, even if there are non-integer characters after the integer, for example "1aaaabcc" is accepted.<... | [
{
"answer_id": 74493536,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": 2,
"selected": false,
"text": "atoi atoi: (int)strtol(nptr, (char **)NULL, 10)\n strtol NULL #include <stdio.h>\n#include <stdlib.h>\n\nin... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541883/"
] |
74,493,503 | <p>Let <code>a</code> be some (not necessarily one-dimensional) NumPy array with <code>n * m</code> elements along its last axis. I wish to "split" this array along its last axis so that I take every <code>n</code>'th element starting from <code>0</code> up until <code>n</code>.</p>
<p>To be explicit let <cod... | [
{
"answer_id": 74499763,
"author": "John Zwinck",
"author_id": 4323,
"author_profile": "https://Stackoverflow.com/users/4323",
"pm_score": 0,
"selected": false,
"text": "indexes = np.arange(0, a.size*n, n) + np.repeat(np.arange(n), a.size/n)\nnp.take(a, indexes, mode='wrap').reshape(n, a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15461766/"
] |
74,493,515 | <p><code>Book.No_Pages() missing 2 required positional arguments: 'Words' and 'Font_size'</code>
the error comes in line 14
The code is:-</p>
<pre><code>class Book():
def __init__ (b1,Font_size=12,Words=300):
b1.Words = Words
pass
b1.Font_size = Font_size
pass
def No_Pages(b1,W... | [
{
"answer_id": 74499763,
"author": "John Zwinck",
"author_id": 4323,
"author_profile": "https://Stackoverflow.com/users/4323",
"pm_score": 0,
"selected": false,
"text": "indexes = np.arange(0, a.size*n, n) + np.repeat(np.arange(n), a.size/n)\nnp.take(a, indexes, mode='wrap').reshape(n, a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541864/"
] |
74,493,524 | <p>I have a set of variables (A1, A2, B1, B2, C1, C3 ...) that I need to calculate the difference for to eventually create a set of Bland-Altman plots after extracting the mean difference and sd of the difference from a t-test using OMS.</p>
<p>As a first step I have it working for a single pair of variables (e.g. A1 a... | [
{
"answer_id": 74499763,
"author": "John Zwinck",
"author_id": 4323,
"author_profile": "https://Stackoverflow.com/users/4323",
"pm_score": 0,
"selected": false,
"text": "indexes = np.arange(0, a.size*n, n) + np.repeat(np.arange(n), a.size/n)\nnp.take(a, indexes, mode='wrap').reshape(n, a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11300704/"
] |
74,493,537 | <p>I have a method that takes in a function parameter with a generic like this:</p>
<pre><code>public async Task<T> MeasureAsync<T>(Func<Task<T>> sendFunc) {
// implementation
}
</code></pre>
<p>I'm wondering how I can mock the MeasureAsync function. I tried doing something like this:</p>
<p... | [
{
"answer_id": 74494482,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 2,
"selected": true,
"text": "T public interface IMyClass\n{\n Task<T> MeasureAsync<T>(Func<Task<T>> sendFunc);\n}\n\nvar mock = new Mock<IMy... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1110590/"
] |
74,493,546 | <p>I have been researching this for close to 4 hours but still, I can't connect my Invision Community 4 forum to my mysql ran on localhost with xampp.</p>
<p>I can connect from the shell, but I can't connect to it from elsewhere.</p>
<p><code>Access denied for user 'root'@'localhost' </code></p>
| [
{
"answer_id": 74494482,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 2,
"selected": true,
"text": "T public interface IMyClass\n{\n Task<T> MeasureAsync<T>(Func<Task<T>> sendFunc);\n}\n\nvar mock = new Mock<IMy... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17864494/"
] |
74,493,571 | <p>I have a simple async setup which includes two coroutines: light_job and heavy_job. light_job halts in the middle and heavy_job starts. I want heavy_job to yield the control in the middle and allow light_job to finish but asyncio.sleep(0) is not working as I expect.</p>
<p>this is the setup:</p>
<pre><code>import as... | [
{
"answer_id": 74498442,
"author": "Daniel T",
"author_id": 10477326,
"author_profile": "https://Stackoverflow.com/users/10477326",
"pm_score": 2,
"selected": false,
"text": "asyncio.sleep(0) import asyncio\nimport time\n\n\nasync def light_job():\n print(\"hello \")\n print(time.t... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5332953/"
] |
74,493,584 | <p>For example I have this dataframe :</p>
<pre><code> count
A 20
B 20
C 15
D 10
E 10
F 8
G 7
H 5
I 5
</code></pre>
<p>And if I want to make a group based on biggest 75%, 15%, 10%. I expect this :</p>
<pre><code> count Class
A 20 Top75
B 20 Top75
C 15 Top75
D 10 Top7... | [
{
"answer_id": 74493650,
"author": "crashMOGWAI",
"author_id": 5373105,
"author_profile": "https://Stackoverflow.com/users/5373105",
"pm_score": 1,
"selected": false,
"text": "df = pd.DataFrame(dict(count=[20,20,15,10,8,5]))\ndf['class'] = pd.cut(df['count'], [0, 5, 15, 20], labels=['Top... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434497/"
] |
74,493,599 | <p>I tried to filter data where they are on a list by using Data step in SAS</p>
<pre><code>proc sql;
create table id_list as
select distinct id from customer;
quit;
data test;
set fulldata;
where id in id_list;
run;
</code></pre>
<p>It doesnt work. However, if I use "where id in (1,2,3)" it works.
Could any... | [
{
"answer_id": 74493650,
"author": "crashMOGWAI",
"author_id": 5373105,
"author_profile": "https://Stackoverflow.com/users/5373105",
"pm_score": 1,
"selected": false,
"text": "df = pd.DataFrame(dict(count=[20,20,15,10,8,5]))\ndf['class'] = pd.cut(df['count'], [0, 5, 15, 20], labels=['Top... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541932/"
] |
74,493,618 | <p>I would like to fill column <code>b</code> of a dataframe with values from <code>a</code> in case <code>b</code> is <code>nan</code>, and I would like to do it in a method chain, but I cannot figure out how to do this.</p>
<p>The following works</p>
<pre class="lang-py prettyprint-override"><code>import numpy as np
... | [
{
"answer_id": 74493650,
"author": "crashMOGWAI",
"author_id": 5373105,
"author_profile": "https://Stackoverflow.com/users/5373105",
"pm_score": 1,
"selected": false,
"text": "df = pd.DataFrame(dict(count=[20,20,15,10,8,5]))\ndf['class'] = pd.cut(df['count'], [0, 5, 15, 20], labels=['Top... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6658422/"
] |
74,493,648 | <p>Im trying to figure out how to use conditinal rendering in react - if else statements but Im struggling, I need the button, that has only increment, to stop adding number past certain number, lets say 5 and then highlight the number in red.</p>
<p>I have declared function and called it onClick, also declared consts,... | [
{
"answer_id": 74493650,
"author": "crashMOGWAI",
"author_id": 5373105,
"author_profile": "https://Stackoverflow.com/users/5373105",
"pm_score": 1,
"selected": false,
"text": "df = pd.DataFrame(dict(count=[20,20,15,10,8,5]))\ndf['class'] = pd.cut(df['count'], [0, 5, 15, 20], labels=['Top... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20518418/"
] |
74,493,671 | <p>I have the following code:</p>
<pre><code>let object = {};
Object.keys(this.graphQL.body).forEach((key) => {
console.log(key, this[key])
object[key] = this[key]
})
let json = JSON.stringify(object);
console.log('API json', json)
</code></pre>
<p>Which gives this out this console log:</p>
<pre><code>id und... | [
{
"answer_id": 74493730,
"author": "Anmol kansal",
"author_id": 11652772,
"author_profile": "https://Stackoverflow.com/users/11652772",
"pm_score": 2,
"selected": false,
"text": "let json = JSON.stringify(object);\n\n let object = {};\nObject.keys(this.graphQL.body).forEach((key) => {\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17699392/"
] |
74,493,697 | <p>Note: I've tried a dozen examples. Some I did find here. None work for me.</p>
<p>I did get Links in React to work sort of, but they add a component to the page, rather than replacing it.<br />
I understand to fix that issue that I need to wrap app in BrowserRouter, but every way I try makes the whole site render bl... | [
{
"answer_id": 74493972,
"author": "Luann Sapucaia",
"author_id": 10467556,
"author_profile": "https://Stackoverflow.com/users/10467556",
"pm_score": -1,
"selected": false,
"text": "<Route exact path='/' element={<Home />} />\n"
},
{
"answer_id": 74495378,
"author": "Susan An... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4538707/"
] |
74,493,702 | <p>With the new app directory, all route directories must have a <code>page.js</code>, <code>page.jsx</code> or a <code>page.tsx</code> file to be visible publicly (eg: <code>mywebsite.com/about</code> requires a file <code>app/about/page.js</code>). But when I try with MDX file <code>app/about/page.mdx</code>, and use... | [
{
"answer_id": 74656757,
"author": "cyberpunk_unicorn",
"author_id": 20666543,
"author_profile": "https://Stackoverflow.com/users/20666543",
"pm_score": -1,
"selected": false,
"text": " import nextMDX from \"@next/mdx\";\nimport remarkFrontmatter from \"remark-frontmatter\";\nimport rehy... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10143236/"
] |
74,493,753 | <p>I want to create a box which has on left and right side a blue "div" and in the middle a larger purple "div". My Problem is that when i write "align-items : center" all "div" vanishes but i dont know why. Can you help me?</p>
<p>This is my HTML Code</p>
<pre><code><!DOCTYPE... | [
{
"answer_id": 74656757,
"author": "cyberpunk_unicorn",
"author_id": 20666543,
"author_profile": "https://Stackoverflow.com/users/20666543",
"pm_score": -1,
"selected": false,
"text": " import nextMDX from \"@next/mdx\";\nimport remarkFrontmatter from \"remark-frontmatter\";\nimport rehy... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,493,759 | <p><a href="https://i.stack.imgur.com/E1lkz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E1lkz.png" alt="enter image description here" /></a>I want to add a feature to my current search bar where if I click, I am able to see a drop down of all the previous inputs. And if I were to click on this pr... | [
{
"answer_id": 74656757,
"author": "cyberpunk_unicorn",
"author_id": 20666543,
"author_profile": "https://Stackoverflow.com/users/20666543",
"pm_score": -1,
"selected": false,
"text": " import nextMDX from \"@next/mdx\";\nimport remarkFrontmatter from \"remark-frontmatter\";\nimport rehy... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20116550/"
] |
74,493,780 | <p>When I use boto3 I can paginate if I am making a query or scan</p>
<p>Is it possible to do the same with put_item?</p>
| [
{
"answer_id": 74494421,
"author": "Lee Hannigan",
"author_id": 7909676,
"author_profile": "https://Stackoverflow.com/users/7909676",
"pm_score": 1,
"selected": false,
"text": "--limit import boto3\n\ndynamodb = boto3.resource(\"dynamodb\")\ntable = dynamodb.Table(\"name\")\n\nwith table... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14183621/"
] |
74,493,795 | <p>I have multiple Python scripts from which I want to run a docker container. From a related question <a href="https://stackoverflow.com/questions/53920742/how-to-run-multiple-python-scripts-and-an-executable-files-using-docker">How to run multiple Python scripts and an executable files using Docker?</a> , I found tha... | [
{
"answer_id": 74493890,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "CMD [\"bash\", \"-c\", \"./run.sh\"]"
},
{
"answer_id": 74494496,
"author": "David Maze",
"author_id":... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534381/"
] |
74,493,831 | <p>I have a list of dicts</p>
<p>I need to search through the "Receiver" keys, and only output dicts that share the last X characters, inside the receiver value, with any other dict.</p>
<p>In this case, we search the last 3 characters of each Receiver value against all other Receiver values.</p>
<p>This is w... | [
{
"answer_id": 74493890,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "CMD [\"bash\", \"-c\", \"./run.sh\"]"
},
{
"answer_id": 74494496,
"author": "David Maze",
"author_id":... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525628/"
] |
74,493,865 | <p>I have a DB with 106 entries and I can't seem to access the first 6 entries. I tried adding start_cursor and page_size keys to my request but they don't seem to have any effect. If I add them as ints the request gets rejected so I'm adding them as strings - not sure if this is the issue (I also tried converting to b... | [
{
"answer_id": 74493890,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "CMD [\"bash\", \"-c\", \"./run.sh\"]"
},
{
"answer_id": 74494496,
"author": "David Maze",
"author_id":... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/954835/"
] |
74,493,879 | <p>I'm getting different errors running the code below (it counts the number of .mp3 files in each user directory):</p>
<pre><code> for us in /home/*
do
if [ -d $us ]
then
LT=$(find $us -name "*.jpg" -o -name "*.mp4" -o -name "*.mp3")
... | [
{
"answer_id": 74493890,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "CMD [\"bash\", \"-c\", \"./run.sh\"]"
},
{
"answer_id": 74494496,
"author": "David Maze",
"author_id":... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20488389/"
] |
74,493,898 | <p>I want to change column names of a data frame with a function.</p>
<p>To overwrite my data frame with the new column names, I used assign(), which first argument has to be the name of the same data frame as a string. To get the name as a string, I used deparse(substitute(x)), which worked outside the function. But i... | [
{
"answer_id": 74493954,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 1,
"selected": false,
"text": "deparse/substitute rename_fun <- function(x) {\n y <- deparse(substitute(x))\n colnames(x)[1] <- \"___0\"\n colnames... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20438103/"
] |
74,493,901 | <p>The console error - "Uncaught SyntaxError: redeclaration of let sectionSelector"</p>
<p>The code -</p>
<pre><code><script type="text/javascript">
const sectionSelector = '#shopify-section-{{ section.id }}';
let collectionSelectors = document.querySelectorAll(`${sectionSelector} .reco... | [
{
"answer_id": 74493954,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 1,
"selected": false,
"text": "deparse/substitute rename_fun <- function(x) {\n y <- deparse(substitute(x))\n colnames(x)[1] <- \"___0\"\n colnames... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5086257/"
] |
74,493,912 | <p>I have a table with the following structure :</p>
<pre><code>create table test_18Nov ( account_id nvarchar(12)
, account_name nvarchar(25)
, zip_legacy_file nvarchar(5)
, Region_legacy_file nvarchar(30)
, zip_new_source n... | [
{
"answer_id": 74494162,
"author": "T. van Schagen",
"author_id": 15649242,
"author_profile": "https://Stackoverflow.com/users/15649242",
"pm_score": -1,
"selected": false,
"text": "SELECT name, id, location, (SELECT TOP 1 'exists' FROM location l WHERE l.location = c.location) \nFROM cu... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9839560/"
] |
74,493,930 | <p>Theres' this html code:</p>
<pre><code><div class="wcpa_form_outer" data-attrrelated="[&quot;wcpa-select-1658734650073&quot;]">
</code></pre>
<p>for which i'm trying to append html to it. I have tried various approaches but none have worked.</p>
<pre><code>jQuery('.wcpa_form_outer[d... | [
{
"answer_id": 74494221,
"author": "KooiInc",
"author_id": 58186,
"author_profile": "https://Stackoverflow.com/users/58186",
"pm_score": 2,
"selected": false,
"text": "" [] $('[data-attrrelated*=\"1658734650073\"]')\n .append('some html here!');\n$('[data-attrrelated*=\"wcpa-select... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5032911/"
] |
74,493,933 | <p>I am trying to Grant Admin Consent of a API in an Azure AD application through Graph API. I created the App, created its Client Secret, then created a Service Principal to which I want to add AppRoleAssignment.
The API call to do so requires three attributes in the body (<a href="https://learn.microsoft.com/en-us/gr... | [
{
"answer_id": 74494221,
"author": "KooiInc",
"author_id": 58186,
"author_profile": "https://Stackoverflow.com/users/58186",
"pm_score": 2,
"selected": false,
"text": "" [] $('[data-attrrelated*=\"1658734650073\"]')\n .append('some html here!');\n$('[data-attrrelated*=\"wcpa-select... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4985926/"
] |
74,493,938 | <p>I have this dataframe that I wish to replace all the comma by dot, for example it would be 50.5 and 81.5.</p>
<pre><code> Unnamed: 0 NB Ppt Resale 5 yrs 10 yrs 15 yrs 20 yrs
1 VLCC 120 114 87 64 50,5 37
3 SUEZMAX 81,5 80 62 45 36 24
5 LR 2 69... | [
{
"answer_id": 74494221,
"author": "KooiInc",
"author_id": 58186,
"author_profile": "https://Stackoverflow.com/users/58186",
"pm_score": 2,
"selected": false,
"text": "" [] $('[data-attrrelated*=\"1658734650073\"]')\n .append('some html here!');\n$('[data-attrrelated*=\"wcpa-select... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12131472/"
] |
74,493,975 | <p>I have created a component which generates a Modal Dialog. As you may know, modal must be placed inside root (body) element as a child to defuse any parent styles.</p>
<p>To accomplish the process above, I use vanilla js to clone my Modal component and append it to body like so:</p>
<pre><code> useEffect(() => {... | [
{
"answer_id": 74494298,
"author": "m4china",
"author_id": 15814542,
"author_profile": "https://Stackoverflow.com/users/15814542",
"pm_score": 0,
"selected": false,
"text": "createPortal ReactDom function Modal (props) {\n const wrapperRef = useRef<HTMLDivElement>(null);\n\n useIsomo... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6679820/"
] |
74,493,986 | <p>I am looking to merge all rows corresponding to the same year and location into one that represents the average.</p>
<p>Let's say this is my data frame</p>
<pre><code>data<-data.frame(year=c(2000,2000,2000,2000,2001,2001,2001,2001,2002,2002,2002,2002),
location=c(1,1,2,2,1,1,2,2,1,1,2,2),
... | [
{
"answer_id": 74494034,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 2,
"selected": false,
"text": " library(dplyr)\n data %>% \n group_by(year, location) %>% \n summarise(x_mean = mean(x)) %>% \n un... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74493986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533425/"
] |
74,494,036 | <p>I need to style the markup (without changing it) mentioned below according to the screenshot. Text is not supposed to go under the checkbox, it must be aligned to the red line shown on my screenshot. How to do that?</p>
<p><a href="https://i.stack.imgur.com/zpTIv.png" rel="nofollow noreferrer"><img src="https://i.st... | [
{
"answer_id": 74494138,
"author": "John",
"author_id": 11111119,
"author_profile": "https://Stackoverflow.com/users/11111119",
"pm_score": 2,
"selected": true,
"text": ".custom-checkbox {\n width: 24px;\n height: 24px;\n background: blue;\n border: 2px solid gray;\n}\n\n.custom-labe... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6678962/"
] |
74,494,073 | <p>I need to put the value of variable "A" in place of the NA of variable "B".<br />
Example of my dataframe:</p>
<pre><code>> df <- data.frame(A = seq(1, 10), B = c(1, NA, 3, 4, NA, NA, 7, 8, NA, NA))
> df
A B
1 1 1
2 2 NA
3 3 3
4 4 4
5 5 NA
6 6 NA
7 7 7
8 8 8
9 ... | [
{
"answer_id": 74494138,
"author": "John",
"author_id": 11111119,
"author_profile": "https://Stackoverflow.com/users/11111119",
"pm_score": 2,
"selected": true,
"text": ".custom-checkbox {\n width: 24px;\n height: 24px;\n background: blue;\n border: 2px solid gray;\n}\n\n.custom-labe... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16386488/"
] |
74,494,099 | <p>I have a github repo that got an accidental force push on a branch.</p>
<p>The PR of this branch shows both the new and the old commit and i even can browse the files of this commit - so everything is still be there.</p>
<p>Can i somehow add a branchname to this commit, so that it can get checked out normally (and a... | [
{
"answer_id": 74494138,
"author": "John",
"author_id": 11111119,
"author_profile": "https://Stackoverflow.com/users/11111119",
"pm_score": 2,
"selected": true,
"text": ".custom-checkbox {\n width: 24px;\n height: 24px;\n background: blue;\n border: 2px solid gray;\n}\n\n.custom-labe... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2331592/"
] |
74,494,168 | <p>so I'm having my first experience with react native, and I'm creating an app that gathers user input and renders a collection of strings with the form parameters, but when I try to fill the input fields I keep having the same error:</p>
<pre><code>Cannot read property 'value' of undefined
</code></pre>
<p>on form h... | [
{
"answer_id": 74494874,
"author": "Artem Golendukhin",
"author_id": 9731103,
"author_profile": "https://Stackoverflow.com/users/9731103",
"pm_score": 1,
"selected": true,
"text": "import {React, useState} from 'react';\nimport {\n TextInput,\n View,\n Text,\n SafeAreaView,\n StyleS... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542363/"
] |
74,494,202 | <p>While adding an absolute path to my script because it has a \f in it the code won't run properly.</p>
<pre><code>C:\Users\showoi\Desktop\website\repository\fileAdder\softwarelisting.xlsx
</code></pre>
<p>The file is in the same directory as the script but using a relative path won't work. No misspellings or anything... | [
{
"answer_id": 74494874,
"author": "Artem Golendukhin",
"author_id": 9731103,
"author_profile": "https://Stackoverflow.com/users/9731103",
"pm_score": 1,
"selected": true,
"text": "import {React, useState} from 'react';\nimport {\n TextInput,\n View,\n Text,\n SafeAreaView,\n StyleS... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530266/"
] |
74,494,228 | <p>In XML, Html and Co you need to specify which tag you want to close.
For Example:</p>
<pre><code><A>
<B>
</B>
</A>
<C>
</C>
</code></pre>
<p>But logically you could leave them away like this:</p>
<pre><code><A>
<B>
</>
</>
<C>
</>
</code... | [
{
"answer_id": 74494874,
"author": "Artem Golendukhin",
"author_id": 9731103,
"author_profile": "https://Stackoverflow.com/users/9731103",
"pm_score": 1,
"selected": true,
"text": "import {React, useState} from 'react';\nimport {\n TextInput,\n View,\n Text,\n SafeAreaView,\n StyleS... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15545451/"
] |
74,494,263 | <p>I have a dataframe and I am pulling out a specific column with the index. I want to perform a split on that column and get the [1] value.</p>
<p>The column looks like;</p>
<pre><code>Name
t_alpaha_omega
t_bravo_omega
d_charlie_omega
t_delta_omega
</code></pre>
<p>I need to split on _ and get alpha, bravo, charlie, d... | [
{
"answer_id": 74494294,
"author": "Anoushiravan R",
"author_id": 14314520,
"author_profile": "https://Stackoverflow.com/users/14314520",
"pm_score": 1,
"selected": true,
"text": "(?P<New_Column_Name>...) df['Value'] = df.Name.str.extract('(?P<Value>(?<=_)\\w+(?=_))')\ndf\n\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497632/"
] |
74,494,281 | <p>If I have multiple variables and I want to pull certain properties from all of them in a single view (for instance their Count), how would one do this?</p>
<p>For example, if I want something like the following</p>
<pre><code># Table Format
Name Count
Variable1 $Variable1.Count
Variable2 ... | [
{
"answer_id": 74494431,
"author": "Abraham Zinala",
"author_id": 14903754,
"author_profile": "https://Stackoverflow.com/users/14903754",
"pm_score": 3,
"selected": true,
"text": "Get-Variable $variable1 = 1..10\n$variable2 = 5..15\n$variable3 = 10..20\nGet-Variable -Name variable1,varia... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11125687/"
] |
74,494,293 | <p>I want the values in the array to be between 1 & 100 because they’re grades for a test. How do I do this? Is it possible?</p>
<p>I’ve used a for loop to take in the contents of the array</p>
| [
{
"answer_id": 74494327,
"author": "Giusek keisuG",
"author_id": 18689184,
"author_profile": "https://Stackoverflow.com/users/18689184",
"pm_score": -1,
"selected": false,
"text": "int[] array = new int[100];\n List<int> list = new List<int>();\n"
},
{
"answer_id": 74494573,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542482/"
] |
74,494,301 | <p>I would like to be able to keep NAs for only groups that have more than two entries and just want to leave alone any groups that have 1 entry (regardless if they have NAs or not). That is, if the group has two elements, keep only the NA. If it has one then just take whatever is there. Here is a reprex of the type of... | [
{
"answer_id": 74494395,
"author": "TarJae",
"author_id": 13321647,
"author_profile": "https://Stackoverflow.com/users/13321647",
"pm_score": 2,
"selected": false,
"text": "! == > library(dplyr)\ndata %>% \n group_by(y) %>% \n filter(!(!is.na(x) & n() > 1))\n\n x y \n <dbl> <c... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5596534/"
] |
74,494,331 | <p>What is a good way to ignore the tags/variables in a jQuery HTML method?</p>
<p>For instance, if there was no value for company, it would not be included in the HTML.</p>
<pre><code>$('.modal-body').html(`
<p><span style="font-weight:bold;">Name:</span> ${name}</p>
... | [
{
"answer_id": 74494631,
"author": "Amirhossein",
"author_id": 11342834,
"author_profile": "https://Stackoverflow.com/users/11342834",
"pm_score": 1,
"selected": false,
"text": "let htmlContent = `<p><span style=\"font-weight:bold;\">Job:</span> ${job}</p>`;\nif(company) {\n htmlContent ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4957270/"
] |
74,494,343 | <p>so I got some divs, something like this:</p>
<pre><code><div class="personal-events-list">
<div class="specific-event black-font">Something</div>
<div class="specific-event black-font">Something else</div>
<div class="specific-event blac... | [
{
"answer_id": 74494495,
"author": "John",
"author_id": 11111119,
"author_profile": "https://Stackoverflow.com/users/11111119",
"pm_score": 1,
"selected": false,
"text": "width: fit-content .personal-events-list .specific-event .specific-event {\n margin-bottom: 10px;\n text-decoration... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15775091/"
] |
74,494,357 | <p>I have a query that return values based on a boolean column: if the <code>id_crsp</code> includes a boolean true AND false, then it is selected.
Values of <code>id_crsp</code> that have only a true or false value are not selected.</p>
<p>From this result, I sort the <code>id_crsp</code> which have duplicates, an... | [
{
"answer_id": 74494495,
"author": "John",
"author_id": 11111119,
"author_profile": "https://Stackoverflow.com/users/11111119",
"pm_score": 1,
"selected": false,
"text": "width: fit-content .personal-events-list .specific-event .specific-event {\n margin-bottom: 10px;\n text-decoration... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14131200/"
] |
74,494,368 | <p>I am using <code>fs.readFile</code> to read the content of <code>config.json</code> in <code>readCredentials.js</code>. Then I am exporting the function so I can use it it <code>config.js</code>.</p>
<p>When I run <code>node config.js</code> I get two <code>undefined</code> and then real values of <code>username</co... | [
{
"answer_id": 74494500,
"author": "jfriend00",
"author_id": 816620,
"author_profile": "https://Stackoverflow.com/users/816620",
"pm_score": 3,
"selected": true,
"text": "module.exports await fs.readFileSync() require() .json const { username, password } = require(\"./config.json\");\nmo... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16603880/"
] |
74,494,380 | <p>My plan is to allow the protocols ICMP and TCP on the same security rule but I'm having problems related the "attribute value typ"</p>
<p>My Terraform code:</p>
<pre><code>resource "azurerm_network_security_group" "example" {
name = "01-tf-SG"
location ... | [
{
"answer_id": 74494753,
"author": "Mark B",
"author_id": 13070,
"author_profile": "https://Stackoverflow.com/users/13070",
"pm_score": 0,
"selected": false,
"text": "*"
},
{
"answer_id": 74498502,
"author": "Chris Doyle",
"author_id": 1212401,
"author_profile": "http... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432287/"
] |
74,494,441 | <p>I want to calculate the percentage change for the following data frame.</p>
<pre><code>import pandas as pd
df = pd.DataFrame({'team': ['A', 'A', 'A', 'B', 'B', 'B', 'C', 'C'],
'points': [12, 0, 19, 22, 0, 25, 0, 30],
'score': [12, 0, 19, 22, 0, 25, 0, 30]
... | [
{
"answer_id": 74494610,
"author": "Allan Elder",
"author_id": 1703491,
"author_profile": "https://Stackoverflow.com/users/1703491",
"pm_score": 0,
"selected": false,
"text": "df = pd.DataFrame({'team': ['A', 'A', 'A', 'B', 'B', 'B', 'C', 'C'],\n 'points': [12, 0, 19, 22, 0... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16875907/"
] |
74,494,458 | <p>As stated in the question, you can drag an IMG element from a web page into any other application that accepts it. You can also right-click to select "Save Image As...".</p>
<p>Is there a way to make this work with images (which are dynamically generated)? I had some luck converting the SVGs to data urls ... | [
{
"answer_id": 74494571,
"author": "human bean",
"author_id": 17186475,
"author_profile": "https://Stackoverflow.com/users/17186475",
"pm_score": 1,
"selected": false,
"text": "img <img src=\"https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/410.svg\" />"
},
{
"answer_id": 74... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2325033/"
] |
74,494,476 | <p>I have this dataset in R:</p>
<pre><code>id = 1:5
col1 = c("12 ABC", "123", "AB", "123344567", "1345677.")
col2 = c("gggw", "12", "567", "abc 123", "p")
col3 = c("abw", "abi", "klo", &quo... | [
{
"answer_id": 74494507,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 4,
"selected": true,
"text": "tidyverse across get paste _check cur_column() case_when unite new_col library(stringr)\nlibrary(dplyr)\nlibrary(tidyr)... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203841/"
] |
74,494,478 | <p>I´m a very beginner in Pine editor, I´m trying to refine my Highs and Lows indicator but I don´t know how to do it. The issue is that I want to get the Highs and Lows but only of those ones whose highs and lows are higher or lower than the previous or next candle, and so on for the 3 left and right candles.
This is ... | [
{
"answer_id": 74494507,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 4,
"selected": true,
"text": "tidyverse across get paste _check cur_column() case_when unite new_col library(stringr)\nlibrary(dplyr)\nlibrary(tidyr)... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542252/"
] |
74,494,497 | <p>I'm new to C#. Have a question about IQueryable.</p>
<p>From what I understand IQueryable queries the database every time it gets called. In my case, I need to put the IQueryable inside a for each loop with more than 50k of loops, so it will be good to convert it to a list first to reduce database calls? Or is there... | [
{
"answer_id": 74494507,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 4,
"selected": true,
"text": "tidyverse across get paste _check cur_column() case_when unite new_col library(stringr)\nlibrary(dplyr)\nlibrary(tidyr)... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19638654/"
] |
74,494,570 | <p>I've recently tried getting into the whole Node ecosystem and am trying to set up some continuous deployment for my app to AWS Amplify.</p>
<p>For background, my project structure looks like this:</p>
<pre><code>project
public
index.html
src
App.tsx/App.js
package.json
</code></pre>
<p>As far as I know... | [
{
"answer_id": 74496562,
"author": "Evans Wanjau",
"author_id": 4812835,
"author_profile": "https://Stackoverflow.com/users/4812835",
"pm_score": 0,
"selected": false,
"text": "create-react-app react-scripts start react-scripts build create-react-app"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9659759/"
] |
74,494,604 | <p>How can I make it so the game is infinite? and is there a way to simplify this code?</p>
<p>I have tried to work around but can't seem to figure it out.</p>
<pre><code># A rock paper scissors game.
import random
Move1=input("Enter your move: (r)ock (p)aper (s)cissors or (q)uit: ").lower()
Move2=["r&... | [
{
"answer_id": 74496562,
"author": "Evans Wanjau",
"author_id": 4812835,
"author_profile": "https://Stackoverflow.com/users/4812835",
"pm_score": 0,
"selected": false,
"text": "create-react-app react-scripts start react-scripts build create-react-app"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15221342/"
] |
74,494,676 | <p>I am working with a huge dataset in sas trying to use proc sql and I need help setting up a like statement. I'm trying to extract all the columns that have 'eco' in the name</p>
<p>I'm getting an error in the where statement as it is not registering the second *.
Any help?</p>
<p>proc sql
select *
from cfy19e8
where... | [
{
"answer_id": 74496562,
"author": "Evans Wanjau",
"author_id": 4812835,
"author_profile": "https://Stackoverflow.com/users/4812835",
"pm_score": 0,
"selected": false,
"text": "create-react-app react-scripts start react-scripts build create-react-app"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542633/"
] |
74,494,700 | <p>The below code is a 4 year old example I found in a Youtube video. When I run it, I get</p>
<pre><code>TypeError: Cannot read properties of undefined (reading 'push')
</code></pre>
<p>Can someone figure out what the new syntax is?</p>
<pre><code>const mongoose = require('mongoose');
mongoose.connect('mongodb://local... | [
{
"answer_id": 74496562,
"author": "Evans Wanjau",
"author_id": 4812835,
"author_profile": "https://Stackoverflow.com/users/4812835",
"pm_score": 0,
"selected": false,
"text": "create-react-app react-scripts start react-scripts build create-react-app"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/256439/"
] |
74,494,736 | <pre><code>A2:A&COUNTIF(A2:A,"<>")
</code></pre>
<p>Instead of simply <code>A2:A</code>, I am trying to build a A1Notation that would only refer to column A that contains actual content. (There won't be empty rows in between non-empty rows)
But this doesn't work. I need to use this A1notation as the... | [
{
"answer_id": 74494836,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 2,
"selected": true,
"text": "INDIRECT(\"A2:A\"&COUNTIF(A2:A,\"<>\"))"
},
{
"answer_id": 74494839,
"author": "The God of Biscuits",
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302661/"
] |
74,494,740 | <p>I have a CSV file and I read the contents. I need to verify that every element of each row is not empty:</p>
<pre><code>fname = row[0]
if fname is None:
flag = -1
lname = row[1]
if lname is None:
flag = -1
phone = row[2]
if phone is None:
flag = -1
email = row[3]
if email is None:
flag = -1
[...]
</c... | [
{
"answer_id": 74494886,
"author": "aaf1097",
"author_id": 13637760,
"author_profile": "https://Stackoverflow.com/users/13637760",
"pm_score": 0,
"selected": false,
"text": "with open('testdata1.csv', 'r') as csv_file:\ncsv_reader = csv.reader(csv_file)\nfor row in csv_reader:\n if no... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9999674/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.