qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,521,840 | <p>I have a list of numbers in a string separated by space x="1 2 3 4 5 6 7 8 9 10 11 ..."<br />
I want to extract 3x3 matrices (list of list) from this string so the above string should produce the output = [ [[1,2,3],[4,5,6],[7,8,9]],[ [10,11,12],[13,14,15],[16,17,18] ]...<br />
I tried using the split func... | [
{
"answer_id": 74521855,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 2,
"selected": false,
"text": "zip zip let zip = args => args[0].map((_, i) => args.map(a => a[i]))\n\n//\n\nconst arr = [['Dog', 'Cat', 'Fish', 'Bird'... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19284394/"
] |
74,521,863 | <p>Having a dataframe like this:</p>
<pre><code>dframe <- data.frame(id = c(1,2), names = c("google analytics","amazon shop"))
</code></pre>
<p>Which command could create two columns using the space of names column?</p>
<p>Example output:</p>
<pre><code>dframe <- data.frame(id = c(1,2), names1... | [
{
"answer_id": 74521912,
"author": "G. Grothendieck",
"author_id": 516548,
"author_profile": "https://Stackoverflow.com/users/516548",
"pm_score": -1,
"selected": false,
"text": "dframe separate library(dplyr)\nlibrary(tidyr)\n\ndframe %>% separate(names, into = c(\"names1\", \"names2\")... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20224217/"
] |
74,521,890 | <p>I've been trying to improve a SQL query which uses multiple sub queries over the same table but with different conditions and only retrieves the first result from each sub queries.</p>
<p>I will try to simplify the use-case :</p>
<p>I have a table <code>Products</code> like this:</p>
<div class="s-table-container">
... | [
{
"answer_id": 74521912,
"author": "G. Grothendieck",
"author_id": 516548,
"author_profile": "https://Stackoverflow.com/users/516548",
"pm_score": -1,
"selected": false,
"text": "dframe separate library(dplyr)\nlibrary(tidyr)\n\ndframe %>% separate(names, into = c(\"names1\", \"names2\")... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20564546/"
] |
74,521,917 | <p>I'm using Firebird 2.1 and I have the following hierarchical table:</p>
<pre><code>NodeID, ParentNodeID, Name
</code></pre>
<p>ParentNodeID = -1 for root nodes.</p>
<p>For example:</p>
<pre class="lang-none prettyprint-override"><code>1, -1, Parent
2, 1, Child
3, 2, Child of child
</code></pre>
<p>I'm looking for a ... | [
{
"answer_id": 74521912,
"author": "G. Grothendieck",
"author_id": 516548,
"author_profile": "https://Stackoverflow.com/users/516548",
"pm_score": -1,
"selected": false,
"text": "dframe separate library(dplyr)\nlibrary(tidyr)\n\ndframe %>% separate(names, into = c(\"names1\", \"names2\")... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/298939/"
] |
74,521,919 | <p>Isn't there a way to change the order of the children of a flex box with just CSS?</p>
<p><code><div> flex 2 </div> <div></code>
<code>flex 3</code>
<code></div></code>
<code><div style="flex-order:-1"> flex 1 </div></code></p>
| [
{
"answer_id": 74521935,
"author": "Moussa Bistami",
"author_id": 15628525,
"author_profile": "https://Stackoverflow.com/users/15628525",
"pm_score": 2,
"selected": false,
"text": "order order: 1;\norder: 2;\norder: 4;\norder: 3;\n"
},
{
"answer_id": 74521946,
"author": "Sito... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20564801/"
] |
74,521,923 | <p>I was trying to implement <a href="https://stackoverflow.com/a/74432616/20314114">this great response</a> to my question about getting the terminal size with ANSI escape sequences. It didn't work, so I tried to see what the differences between the proposed code and mine were. I don't know if it is the main problem, ... | [
{
"answer_id": 74522412,
"author": "user3121023",
"author_id": 3121023,
"author_profile": "https://Stackoverflow.com/users/3121023",
"pm_score": 2,
"selected": true,
"text": "#include <stdio.h>\n#include <termios.h>\n#include <unistd.h>\n#include <ctype.h>\n\n#define SIZE 100\n\nvoid get... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20314114/"
] |
74,521,930 | <p>I had a large data frame that I grouped and then split into a list of over 400 vectors. There are some tibbles within this data frame that have one column with only 0's as entries and I would like to somehow remove these entries from list or data frame.</p>
<p>A smaller sample of what my data looks like can be seen ... | [
{
"answer_id": 74521972,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "df.list[sapply(df.list, function(df) !all(df$intensity.y == 0))]\n#> [[1]]\n#> intensity.x intensity.y grou... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451829/"
] |
74,521,980 | <p>I've started the default Android project, "Navigation Drawer Activity".</p>
<p><a href="https://i.stack.imgur.com/zATqD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zATqD.jpg" alt="enter image description here" /></a></p>
<p>I've changed the theme to:</p>
<pre><code><!-- <style ... | [
{
"answer_id": 74522420,
"author": "Gabriele Mariotti",
"author_id": 2016562,
"author_profile": "https://Stackoverflow.com/users/2016562",
"pm_score": 2,
"selected": true,
"text": "NavigationView drawerLayoutCornerSize 16dp <com.google.android.material.navigation.NavigationView\n andr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74521980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/898307/"
] |
74,522,010 | <p>Is there any add-in that allows to run piped code line by line in R without altering the code?</p>
<p>For example, I would press keys at each line and it would print the output in the console.</p>
<pre class="lang-r prettyprint-override"><code># AS AN EXAMPLE
library(dplyr)
mtcars %>%
mutate(cyl2 = 2 * cyl) %&... | [
{
"answer_id": 74522420,
"author": "Gabriele Mariotti",
"author_id": 2016562,
"author_profile": "https://Stackoverflow.com/users/2016562",
"pm_score": 2,
"selected": true,
"text": "NavigationView drawerLayoutCornerSize 16dp <com.google.android.material.navigation.NavigationView\n andr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8806649/"
] |
74,522,053 | <p>The following code isn't extracting URLs past the "#"</p>
<p><strong>The setup</strong></p>
<p>URL1/2 in A1/2 then command/control + k to set hyperlink</p>
<p><strong>example</strong></p>
<p>A1 = URL1 = <a href="http://stackoverflow.com/hello">http://stackoverflow.com/hello</a></p>
<p>A2 = URL2 = <a href="... | [
{
"answer_id": 74522159,
"author": "Guillaume BEDOYA",
"author_id": 20522241,
"author_profile": "https://Stackoverflow.com/users/20522241",
"pm_score": -1,
"selected": false,
"text": "URL = Hyperlink.Hyperlinks(1).TextToDisplay\n"
},
{
"answer_id": 74522554,
"author": "Tim Wi... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2137570/"
] |
74,522,088 | <p>This is the result I want to achieve.</p>
<p><a href="https://i.stack.imgur.com/tWaba.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tWaba.png" alt="enter image description here" /></a></p>
<p>But I can't find a way to add margin between the ReferenceLine label and the bar components.</p>
<p>This... | [
{
"answer_id": 74610067,
"author": "Jonas Weinhardt",
"author_id": 16500604,
"author_profile": "https://Stackoverflow.com/users/16500604",
"pm_score": 1,
"selected": false,
"text": "const transformData = (margin: number) => {\n return data.map((item) => {\n if (item.pv >= 0) {\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12057872/"
] |
74,522,141 | <p>I'm currently dealing with a problem within my Azure DevOps pipeline where I'm trying to run and build a pipeline for repo 'RepoX', whereafter the Dockerfile tries to use the '.csproj' of repo 'RepoY'. However, 'RepoY' is added as 'existing project reference' to 'RepoX' within Visual Studio. When the dockerfile trie... | [
{
"answer_id": 74610067,
"author": "Jonas Weinhardt",
"author_id": 16500604,
"author_profile": "https://Stackoverflow.com/users/16500604",
"pm_score": 1,
"selected": false,
"text": "const transformData = (margin: number) => {\n return data.map((item) => {\n if (item.pv >= 0) {\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20291437/"
] |
74,522,188 | <p>I have a list of tuples in rows which I need to append to another list and add a newline after each entry I tried everything I can think of but I cant seem to do it properly
here is the code:</p>
<pre><code>niz = ["""
(5, 6, 4)
(90, 100, 13), (5, 8, 13), (9, 11, 13)
(9, 11, 5), (19, 20, 5), (30, 34, 5... | [
{
"answer_id": 74522262,
"author": "Sembei Norimaki",
"author_id": 20396240,
"author_profile": "https://Stackoverflow.com/users/20396240",
"pm_score": -1,
"selected": true,
"text": "list = []\nfor n in niz:\n list.append(n) \nlist = '[' + ',\\n'.join(list) + ']'\n\nprint(list)\n"
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19647630/"
] |
74,522,221 | <p>Here's the code:</p>
<pre><code>for (int i = 0; i < n; i++) {
for (int j = 0; j < n * n; j++) {
for (int k = 0; k < j; k++) {
sum++;
}
}
}
</code></pre>
<p>I need to evaluate the Time complexity in Big-O notation of the nested loops above.</p>
<p>Is it just <code>O(n) * O... | [
{
"answer_id": 74522291,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 0,
"selected": false,
"text": "O(n) O(n^2)"
},
{
"answer_id": 74522308,
"author": "maio290",
"author_id": 4934937,
"autho... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20564942/"
] |
74,522,240 | <p>How do I create a Arc Progress bar animation like this</p>
<p><a href="https://i.stack.imgur.com/lFdDJ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lFdDJ.gif" alt="animated progress" /></a></p>
<p>Currently I've already used Canvas to draw an arc and added animations to the progress bar using a... | [
{
"answer_id": 74526042,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 3,
"selected": false,
"text": "Animatable snap target limitAngle newScore key LaunchedEffect +30 @Composable\nfun ArcProgressbar(\n modifier: Modi... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19486182/"
] |
74,522,259 | <p>I want to limit input name to 45 and show message on limit exceed. here below I am attaching my html file and ts file . I using angular 10 . Also is there any other way to apply limit on input and display warning message . Thanks</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-b... | [
{
"answer_id": 74522414,
"author": "Tanner",
"author_id": 7375929,
"author_profile": "https://Stackoverflow.com/users/7375929",
"pm_score": 0,
"selected": false,
"text": "maxlength maxLength"
},
{
"answer_id": 74522671,
"author": "Mr. Stash",
"author_id": 13625800,
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20122571/"
] |
74,522,277 | <p>I apologise for the title of this question that I know is very unclear, I tried my best.</p>
<p>I have three arrays that need to be sorted, but the tricky rule is the following:</p>
<ul>
<li>the first array needs to increment every time, and when the maximum is obtained, goes back to zero.</li>
<li>the second array ... | [
{
"answer_id": 74522414,
"author": "Tanner",
"author_id": 7375929,
"author_profile": "https://Stackoverflow.com/users/7375929",
"pm_score": 0,
"selected": false,
"text": "maxlength maxLength"
},
{
"answer_id": 74522671,
"author": "Mr. Stash",
"author_id": 13625800,
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8885740/"
] |
74,522,285 | <p>When attempting to install a package that has a dependency to Microsoft.Graph.Auth, the nuget package manager in VisualStudio errors with this message:</p>
<pre><code> Unable to resolve dependency 'Microsoft.Graph.Auth'. Source(s) used: 'nuget.org'
</code></pre>
<p>No other information is provided.</p>
<p>I can succ... | [
{
"answer_id": 74522414,
"author": "Tanner",
"author_id": 7375929,
"author_profile": "https://Stackoverflow.com/users/7375929",
"pm_score": 0,
"selected": false,
"text": "maxlength maxLength"
},
{
"answer_id": 74522671,
"author": "Mr. Stash",
"author_id": 13625800,
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10828089/"
] |
74,522,386 | <p>Bundler:HTTPError Could not download gem sidekiq-pro-5.3.0. I am unable to install the sidekiq pro gem for rails due to a permissions error.</p>
<p><code>$ bundle install</code></p>
<pre><code>Bundler::HTTPError: Could not download gem from https://gems.contribsys.com/ due to underlying error <bad response Unauth... | [
{
"answer_id": 74522387,
"author": "i0x539",
"author_id": 1406532,
"author_profile": "https://Stackoverflow.com/users/1406532",
"pm_score": 0,
"selected": false,
"text": "$ bundle config --local gems.contribsys.com user:password .bundle/config ---\nBUNDLE_GEMS__CONTRIBSYS__COM: \"user:pa... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1406532/"
] |
74,522,399 | <p>I'm working on a form that initially only shows one input field and when it is focused, it shows other inputs and the submit button.</p>
<p>I also want to hide all those extra fields if the form loses focus while they are empty. And this is the part that I'm not being able to implement.</p>
<p>This is my code: I use... | [
{
"answer_id": 74522387,
"author": "i0x539",
"author_id": 1406532,
"author_profile": "https://Stackoverflow.com/users/1406532",
"pm_score": 0,
"selected": false,
"text": "$ bundle config --local gems.contribsys.com user:password .bundle/config ---\nBUNDLE_GEMS__CONTRIBSYS__COM: \"user:pa... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1919237/"
] |
74,522,486 | <p>I need to save the <code>json</code> file without the beginning and ending <code>[</code> and <code>]</code> respectively.</p>
<p>Sample data:</p>
<pre><code>import pandas as pd
import json
df = pd.DataFrame({'name' : ['abc', 'pqr', 'xzy'],
'score' : [85, 90, 80],
'address' : ['a... | [
{
"answer_id": 74522727,
"author": "tevemadar",
"author_id": 7916438,
"author_profile": "https://Stackoverflow.com/users/7916438",
"pm_score": 3,
"selected": true,
"text": "jl = [\n {\n \"name\": \"abc\",\n \"score\": 85,\n \"address\": \"ab street\"\n },\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10722752/"
] |
74,522,488 | <p>So basically I have the list of many points and I want to extract only unique values.
I have written a function but I have 1 problem: how to avoid printing comma at the end of the list?</p>
<pre><code>def unique(list1):
unique_values = []
for u in list1:
if u not in unique_values:
unique_... | [
{
"answer_id": 74522592,
"author": "Triceratops",
"author_id": 13440165,
"author_profile": "https://Stackoverflow.com/users/13440165",
"pm_score": 2,
"selected": true,
"text": "NumPy import numpy as np\nx = np.array(['a', 'a', 'b', 'c', 'd', 'd'])\ny = np.unique(x)\nprint(', '.join(y))\n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20565136/"
] |
74,522,490 | <p>I want to write a function that always have a non empty output or fails, but I'm missing a command that read stdin and pipe it to stdout if non-empty or fails like:</p>
<pre class="lang-bash prettyprint-override"><code>example() {
do_something_interesting_here $1 | cat_or_fails
}
</code></pre>
<p>The idea is that ... | [
{
"answer_id": 74522592,
"author": "Triceratops",
"author_id": 13440165,
"author_profile": "https://Stackoverflow.com/users/13440165",
"pm_score": 2,
"selected": true,
"text": "NumPy import numpy as np\nx = np.array(['a', 'a', 'b', 'c', 'd', 'd'])\ny = np.unique(x)\nprint(', '.join(y))\n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337772/"
] |
74,522,494 | <p>I have the following xml</p>
<pre><code><Results>
<form-type>orderform-B</form-type>
<data>
<form-data>
<field>
<name>productid-1</name>
<value>Yes</value>
</field>
<field>
... | [
{
"answer_id": 74522592,
"author": "Triceratops",
"author_id": 13440165,
"author_profile": "https://Stackoverflow.com/users/13440165",
"pm_score": 2,
"selected": true,
"text": "NumPy import numpy as np\nx = np.array(['a', 'a', 'b', 'c', 'd', 'd'])\ny = np.unique(x)\nprint(', '.join(y))\n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3928796/"
] |
74,522,498 | <p>Beginning around 11:30am ET on 11/21/2022, our CI pipelines started failing due to a Checkov update/upgrade notice with an input prompt (see output below).</p>
<p>Is there command line option to skip this check from bridgecrew?</p>
<pre><code>$ checkov
_ _
___| |__ ___ ___| |... | [
{
"answer_id": 74646609,
"author": "Dominic O'Connor",
"author_id": 1291767,
"author_profile": "https://Stackoverflow.com/users/1291767",
"pm_score": 1,
"selected": true,
"text": "checkov --config-file .checkov.yaml\n"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1291767/"
] |
74,522,515 | <p>I was wondering which Google Apps Script function may help me to split a Google Sheets cell value into <code>n</code> parts (given a separator) and replicate the whole row as different occurrences for that split. So, f.i., given this table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3257689/"
] |
74,522,522 | <p>I'm trying to retrieve some data from a service, and I'm working with a mutablelist to store the objects. The problem is that I need to add the retrived data to this mutablelist, but addAll says me that the type is mismatched.</p>
<p><a href="https://i.stack.imgur.com/iiX1t.png" rel="nofollow noreferrer"><img src="h... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2129561/"
] |
74,522,549 | <p>I am fairly new to angular, I am using <strong>Angular 15</strong>, I basically have an Rest API response that I want to parse and show in the UI using angular. For that I used <code>HttpClient</code> and <code>GET</code> request to parse the response.</p>
<p>The code for <code>app.component.ts</code> is:</p>
<pre><... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18061379/"
] |
74,522,566 | <p>Hello this is a pretty simple question but i wanted to follow the dry principles correctly and couldn't think of a way to do it without repeating code</p>
<p>so given game outcomes in this format</p>
<p><code>game outcome = [['wins', 'loses'], ['loses', 'wins'], ['loses', 'wins']]</code></p>
<p>the gameoutcome[0][0]... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10872352/"
] |
74,522,586 | <p>I had stuck on how to sort a list into a new list with diffirent sturcture, would if someone could help me with this issue, Thank you in advance.
List with type</p>
<pre><code>
public class PartOrders
{
public string orderNumber{ get; set; }
public DateTime createdDate { get; set; }
... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20164392/"
] |
74,522,597 | <pre><code><p>Dostępne: </p><p style={{color:'green'}}>{props.ile_aktywne}</p><p>Niedostępne: </p><p style={{color:'red'}}>{props.ile_nieaktywne}</p>
</code></pre>
<p><a href="https://i.stack.imgur.com/NQo5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.c... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12618447/"
] |
74,522,667 | <p>I have a react project where I have 3 dropdown menus side by side and upon clicking one they all will toggle instead of just one. I tried to use a dropdown component but I'm not sure I can get it working correctly with my code. Can you show me how to fix this? I have my code uploaded to code sandbox here <a href="ht... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16582373/"
] |
74,522,697 | <p>I’m having a problem with my code. my while loop 3 times when its meant to loop once i've tried everything i know and it's not working</p>
<pre><code>import java.util.Scanner;
public class validInput {
public static void main (String[] args) {
Scanner key = new Scanner(System.in);
System.out.pr... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20565073/"
] |
74,522,751 | <p>I have a 2D array named <strong>$props</strong>, the structure is as follows,</p>
<pre><code>$props = [
['name' => 'Mathmatics', 'time' => '03:01:PM - 04:50:PM'],
['name' => 'History', 'time' => '11:30:AM - 01:30:PM'],
['name' => 'French', 'time' => '01:31:PM - 03:00:PM'],
];
</code></p... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19327646/"
] |
74,522,754 | <p>I am trying to make a website with dark mode and want to parse the dark prop in tailwind-styled-components. In all places, excluding actions, like hover, active, focus etc, the props do work, but when I try to use hover and parse the darkMode prop, nothing works.
The library I use is 'tailwind-styled-components'.</p... | [
{
"answer_id": 74522822,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "/**\n * Splits data\n *\n * @param {array} theRange The range of data.\n * @param {string} theSplitter The t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20565294/"
] |
74,522,765 | <p>I have a column with values such as this:</p>
<pre><code>structure(list(col1 = c(" | | | | | | | |", "| | | | | | | | | | | | | | |",
"| | | | | | | | | | | | | | | ", "stop|", "stop| | ",
"stop | go")), class... | [
{
"answer_id": 74522801,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "trimws(trimws(gsub('(\\\\|\\\\s+){2,}', \"\", df$col1),\n whitespace = \"\\\\s+\\\\|\"), whitespace = \"\\\\|\")\n [1] ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4937644/"
] |
74,522,774 | <p>When I ran 'control c' in terminal (SIGINT). I want the parent process to ignore it, but no his child processes (that were created by fork() and execvp()).</p>
<p>I added</p>
<pre><code>signal(SIGINT, SIG_IGN);
</code></pre>
<p>to the parent process that ignore the SIGINT, but now his childs also ignores it.</p>
| [
{
"answer_id": 74526257,
"author": "Alez",
"author_id": 5317332,
"author_profile": "https://Stackoverflow.com/users/5317332",
"pm_score": 2,
"selected": false,
"text": "signal(SIGINT, SIG_IGN);\n"
},
{
"answer_id": 74526544,
"author": "Joseph Sible-Reinstate Monica",
"aut... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15599269/"
] |
74,522,783 | <p>I have the following dataframe</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>en</th>
<th>ko</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tuberculosis of heart</td>
<td>심장의 결핵</td>
</tr>
<tr>
<td>Tuberculosis of myocardium</td>
<td>심근의 결핵</td>
</tr>
<tr>
<td>Tuberculosis of endocardium</td>
<td... | [
{
"answer_id": 74523046,
"author": "G. Anderson",
"author_id": 7835267,
"author_profile": "https://Stackoverflow.com/users/7835267",
"pm_score": 0,
"selected": false,
"text": "ko=df['ko'].str.split().explode().value_counts()\nen=df['en'].str.split().explode().value_counts()\n\nko\n결핵 ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19833416/"
] |
74,522,788 | <p>I have been trying to develop a todo list project. I have four components : <strong>Daily, Item-List, Item and Add-task dailog</strong> <a href="https://i.stack.imgur.com/Mwc4T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mwc4T.png" alt="enter image description here" /></a></p>
<p>The daily com... | [
{
"answer_id": 74526340,
"author": "paranaaan",
"author_id": 11634381,
"author_profile": "https://Stackoverflow.com/users/11634381",
"pm_score": 2,
"selected": true,
"text": "form.value any createTask string addDailogTask() {\n const value$ = this.nameControl.value as string;\n ...\n}\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12239876/"
] |
74,522,789 | <p>I have this code snippet which will delete all rows in the <code>user_interests</code> table. I have a parameter of <code>int id</code> which is user id. I want to pass this parameter to my SQL statement. I have tried using <code>".... user_id = @id"</code> but it wont work when I run it on Postman. I also... | [
{
"answer_id": 74522900,
"author": "Alien",
"author_id": 6572971,
"author_profile": "https://Stackoverflow.com/users/6572971",
"pm_score": 2,
"selected": true,
"text": "String sql = \"DELETE FROM user_interests WHERE user_id = \" + id\n"
},
{
"answer_id": 74556240,
"author": ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20538516/"
] |
74,522,812 | <p>I have two data frames and joined the data with left join from the column "country"</p>
<p>i need to create a separate table in excel for each 4 countries from the joined dataframes as per the attached format.</p>
<p>Please advise how can i achieve this ?</p>
<p><a href="https://i.stack.imgur.com/J4D2c.jpg... | [
{
"answer_id": 74522900,
"author": "Alien",
"author_id": 6572971,
"author_profile": "https://Stackoverflow.com/users/6572971",
"pm_score": 2,
"selected": true,
"text": "String sql = \"DELETE FROM user_interests WHERE user_id = \" + id\n"
},
{
"answer_id": 74556240,
"author": ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16291244/"
] |
74,522,819 | <p>I'm looking a solution with sed command to search and replace strings on last column of csv file and here the search patterns I'm calling from an array. Below script looks for 3rd and 4th column which causes a mismatch in the output.</p>
<p>Here i need your help how i can tell sed to look only on the last column.</p... | [
{
"answer_id": 74523070,
"author": "glenn jackman",
"author_id": 7552,
"author_profile": "https://Stackoverflow.com/users/7552",
"pm_score": 2,
"selected": true,
"text": "gawk '\n BEGIN {FS = OFS = \",\"}\n ARGIND == 1 {f1[FNR] = $1; next}\n ARGIND == 2 {map[f1[FNR]] = $1; next}\n {$... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2790497/"
] |
74,522,868 | <p>This is what I have so far, I am getting stuck where I would usually do the IN syntax also AND with SQL WHERE</p>
<p>See the images for explanation of the following:
An example data for A in sheet1:</p>
<pre><code>cell1 = [A,B,C]
cell2 = [A,B]
Cell3 = [A]
</code></pre>
<p>Sheet: OverallGroups</p>
<div class="s-table... | [
{
"answer_id": 74523070,
"author": "glenn jackman",
"author_id": 7552,
"author_profile": "https://Stackoverflow.com/users/7552",
"pm_score": 2,
"selected": true,
"text": "gawk '\n BEGIN {FS = OFS = \",\"}\n ARGIND == 1 {f1[FNR] = $1; next}\n ARGIND == 2 {map[f1[FNR]] = $1; next}\n {$... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20242953/"
] |
74,522,871 | <p>I am working on a secure LoRa transmission, where I need to generate the same pseudo-random number on the transmitter and the receiver (it would be part of the encryption algorithm) based on an input counter. So this function should give the same output for a given input, just like a hashing algorithm.</p>
<p>As an ... | [
{
"answer_id": 74523221,
"author": "frankplow",
"author_id": 17419835,
"author_profile": "https://Stackoverflow.com/users/17419835",
"pm_score": 3,
"selected": true,
"text": "rand"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20304347/"
] |
74,522,879 | <p>I'm looking for a solution for following problem -
i want to create a @Query like this:</p>
<pre><code>@Query("select s from Student s where s.name like %?1% and s.surname like %?1%")
</code></pre>
<p>because I need to be able to show student with given name and surname. I was able to make it sort of work,... | [
{
"answer_id": 74522989,
"author": "maio290",
"author_id": 4934937,
"author_profile": "https://Stackoverflow.com/users/4934937",
"pm_score": -1,
"selected": false,
"text": "@Query(\"select s from Student s where s.name like %?1% and s.surname like %?1%\")\n ?1 OR @Query(\"select s from S... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20565300/"
] |
74,522,901 | <p>I have been using odient in python for a project and it's been working completely fine. I did the same thing I always do for this problem and for some reason it keeps saying my defined function takes 1 positional argument but 2 were given, even though it's been fine doing problems like this before. Here is my code:<... | [
{
"answer_id": 74522983,
"author": "DARK FLAME YT",
"author_id": 18405141,
"author_profile": "https://Stackoverflow.com/users/18405141",
"pm_score": -1,
"selected": false,
"text": "#This function take one Parameter \"var\"\ndef foo(var):\n return var\n\n#Calling the function with print s... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20179565/"
] |
74,522,915 | <p>I need to send the binary representation of a varibale trough websocket, the problem is the variable can be string, can be intiger, can be anything.</p>
<pre><code>function send(bar) {
var foo = new TextEncoder('utf-8').encode(bar); // Works if 'bar' is string
var foo = new Int32Array([bar]).buffer; // Works... | [
{
"answer_id": 74522983,
"author": "DARK FLAME YT",
"author_id": 18405141,
"author_profile": "https://Stackoverflow.com/users/18405141",
"pm_score": -1,
"selected": false,
"text": "#This function take one Parameter \"var\"\ndef foo(var):\n return var\n\n#Calling the function with print s... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20292772/"
] |
74,522,985 | <p>I have some json that contains regex</p>
<pre><code>[
{
"name": "For teachers",
"regex": "^Apple "
},
{
"name": "Long and yellow",
"regex": "banana$"
},
{
"name": "Cantaloupe",
... | [
{
"answer_id": 74522983,
"author": "DARK FLAME YT",
"author_id": 18405141,
"author_profile": "https://Stackoverflow.com/users/18405141",
"pm_score": -1,
"selected": false,
"text": "#This function take one Parameter \"var\"\ndef foo(var):\n return var\n\n#Calling the function with print s... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74522985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1695049/"
] |
74,523,018 | <p>Here is my code that I am working on. It is supposed to take a number from the user and if its a perfect number it says so, but if its not it asks to enter a new number. When I get to the enter a new number part, it doesn't register my input. Can someone help me out?</p>
<pre><code>def isPerfect(num):
if num <... | [
{
"answer_id": 74523096,
"author": "maxxel_",
"author_id": 17575465,
"author_profile": "https://Stackoverflow.com/users/17575465",
"pm_score": 2,
"selected": true,
"text": "def main():\n first_run = True\n perfect_num_received = False\n while not perfect_num_received:\n i... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20177890/"
] |
74,523,021 | <p>I have created a Spring Initializr project:
<a href="https://i.stack.imgur.com/FkcIr.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I import it to Eclipse IDE for Java Developers - Version: 2022-03 (4.23.0) - it's OK.</p>
<p>Then I launch JUnit test on my test class:
<a href="https://i.stack.... | [
{
"answer_id": 74523096,
"author": "maxxel_",
"author_id": 17575465,
"author_profile": "https://Stackoverflow.com/users/17575465",
"pm_score": 2,
"selected": true,
"text": "def main():\n first_run = True\n perfect_num_received = False\n while not perfect_num_received:\n i... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20565299/"
] |
74,523,025 | <p>I just want to say I am a newbie to OOP so I am not sure what I am supposed to do there.
so lets say I have a class that has a whole bunch of functions on data in it:</p>
<pre><code>class stuff:
def __init__ ...
def func1(self, arg1, arg2)
self.var1=arg1*self.var3
self.var2=arg2*self.var4
...
</code></... | [
{
"answer_id": 74523130,
"author": "AlgoRythm",
"author_id": 8062151,
"author_profile": "https://Stackoverflow.com/users/8062151",
"pm_score": 0,
"selected": false,
"text": "self"
},
{
"answer_id": 74523157,
"author": "Edward Peters",
"author_id": 6016064,
"author_pro... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15673832/"
] |
74,523,041 | <p>I am trying to filter the map and in return, I want every filtered map element.</p>
<p><strong>Code:-</strong></p>
<pre><code>Map<String, Map<int, int>> temp = {Basic Terms: {1: 0}, Table and Column Naming Rules: {1: 1}};
var temp = temp.keys.where(element) => element.contains("basic"));
pri... | [
{
"answer_id": 74523128,
"author": "Ben Konyi",
"author_id": 7933689,
"author_profile": "https://Stackoverflow.com/users/7933689",
"pm_score": 3,
"selected": true,
"text": "entries keys List<MapEntry> Map Map<String, Map<int, int>> temp = {\n 'Basic Terms': {1: 0}, \n 'Table and Column... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20556797/"
] |
74,523,045 | <p>I have this date format :
YYYY-MM-DD (example : 2022-05-10)
I want to extract only last 6 months inclunding current months.
The result normaly it's : june, july,august, september, octobre, november (6 last months)</p>
<p>I do this request :</p>
<pre><code>Select created_date
from table_A
Where created_date >= now... | [
{
"answer_id": 74523128,
"author": "Ben Konyi",
"author_id": 7933689,
"author_profile": "https://Stackoverflow.com/users/7933689",
"pm_score": 3,
"selected": true,
"text": "entries keys List<MapEntry> Map Map<String, Map<int, int>> temp = {\n 'Basic Terms': {1: 0}, \n 'Table and Column... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9870351/"
] |
74,523,047 | <p>i have an error with Uint64List in flutter Web (in pointycastle lib)</p>
<pre><code>var length = Uint8List.view((Uint64List(2)..[0] = iv.length * 8).buffer);
"Error: Unsupported operation: Uint64List not supported on the web.
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw_
... | [
{
"answer_id": 74523128,
"author": "Ben Konyi",
"author_id": 7933689,
"author_profile": "https://Stackoverflow.com/users/7933689",
"pm_score": 3,
"selected": true,
"text": "entries keys List<MapEntry> Map Map<String, Map<int, int>> temp = {\n 'Basic Terms': {1: 0}, \n 'Table and Column... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14702118/"
] |
74,523,141 | <p>I want to download AWS DynamoDB data to Excel to allow me to work with the data locally. However, I have not been to get the data in a perfect CSV format.</p>
<p>What I have done: I use a Node.js application, which runs in AWS Lambda service to connect to the DynamoDB database. In addition, I can query the data from... | [
{
"answer_id": 74523128,
"author": "Ben Konyi",
"author_id": 7933689,
"author_profile": "https://Stackoverflow.com/users/7933689",
"pm_score": 3,
"selected": true,
"text": "entries keys List<MapEntry> Map Map<String, Map<int, int>> temp = {\n 'Basic Terms': {1: 0}, \n 'Table and Column... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14135099/"
] |
74,523,142 | <p>This is my list</p>
<pre><code>list_names <- vector(mode = 'list')
list_names[['NAME A']] <- rnorm(n = 10,sd = 2)
list_names[['NAME B']] <- rnorm(n = 10,sd = 2)
list_names[['NAME C']] <- rnorm(n = 10,sd = 2)
list_names[['NAME D']] <- rnorm(n = 10,sd = 2)
list_names[['NAME E']] <- rnorm(n = 10,sd =... | [
{
"answer_id": 74523155,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "[ [[ - setdiff list_names[setdiff(names(list_names), \"NAME A\")]\n $`NAME B`\n [1] -3.237378 4.082310 1.330150 1.78... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20359538/"
] |
74,523,170 | <p>Looks like there is issue with java's <code>Math.round</code> function, when passing integer value to it.
I ran it for couple of inputs but giving suprisingly wrong results.</p>
<p>Sample Code:</p>
<pre><code> public static void main(String[] args) {
System.out.println("roundOff1: " + Math.round... | [
{
"answer_id": 74523155,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "[ [[ - setdiff list_names[setdiff(names(list_names), \"NAME A\")]\n $`NAME B`\n [1] -3.237378 4.082310 1.330150 1.78... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7934026/"
] |
74,523,171 | <p>I currently have a .NET 4 Web API using Entity Framework 3 that I'm upgrading to .NET 6 / EF Core. I currently have a LINQ query that looks like this (and works fine):</p>
<pre><code>[HttpGet]
public async Task<ActionResults> GetCars()
{
var x = from f in _context.CarMakes
group c in f.Make i... | [
{
"answer_id": 74523155,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "[ [[ - setdiff list_names[setdiff(names(list_names), \"NAME A\")]\n $`NAME B`\n [1] -3.237378 4.082310 1.330150 1.78... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8382717/"
] |
74,523,217 | <p>I have couple of lists and one of them looks like this :</p>
<p><code>['SHAPE69', 'SHAPE48', 'SHAPE15', 'SHAPE28', 'SHAPE33', 'SHAPE27', ...]</code> with 100 shapes in the list.
If the shape number is even, then convert it to <code>0.0</code>, which is a float number.
If the shape number is odd, then convert it to <... | [
{
"answer_id": 74523299,
"author": "Danielle M.",
"author_id": 3434388,
"author_profile": "https://Stackoverflow.com/users/3434388",
"pm_score": 3,
"selected": true,
"text": "input_list = ['SHAPE69', 'SHAPE48', 'SHAPE15', 'SHAPE28', 'SHAPE33', 'SHAPE27']\n\n\ndef converter(s: str) -> flo... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11299809/"
] |
74,523,266 | <p>I've been messing around with Rust and the immutable variable idea is interesting to me.
so I've been using it in my C programs as well. But now I'm wondering if there is any difference in a local variable that is defined with the "const" keyword and one that isn't.</p>
<p>I assume both are still put on th... | [
{
"answer_id": 74523880,
"author": "Brendan",
"author_id": 559737,
"author_profile": "https://Stackoverflow.com/users/559737",
"pm_score": 0,
"selected": false,
"text": "const const"
},
{
"answer_id": 74524514,
"author": "John Bollinger",
"author_id": 2402272,
"author... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16452111/"
] |
74,523,271 | <p>See the following program for g++.</p>
<pre><code>#define seed1 0
#include <iostream>
#include <random>
int main()
{
double mean = 0.0;
double stddev = 1.0;
std::mt19937 generator1 (seed1);
std::normal_distribution<double> normal(mean, stddev);
std::cerr << "Norm... | [
{
"answer_id": 74523368,
"author": "Blindy",
"author_id": 108796,
"author_profile": "https://Stackoverflow.com/users/108796",
"pm_score": 3,
"selected": false,
"text": "<< >> stream << generator1 << normal;\n mt19937 generator;\nstream >> generator;\n\nnormal_distribution<double> distrib... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4385984/"
] |
74,523,274 | <p>Looking for some assistance, I have created a flow and a canvas app in power apps that calls an API, I finally got it to work but seems there has to be an easier way to do this.</p>
<p>In my flow I'm taking the body and parsing it to get just what I need then returning the body of that response to the canvas app. I ... | [
{
"answer_id": 74523368,
"author": "Blindy",
"author_id": 108796,
"author_profile": "https://Stackoverflow.com/users/108796",
"pm_score": 3,
"selected": false,
"text": "<< >> stream << generator1 << normal;\n mt19937 generator;\nstream >> generator;\n\nnormal_distribution<double> distrib... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5236167/"
] |
74,523,284 | <p>I'm have an test scenario where i need to scroll the screen down so the element can be loaded in the HTML. Using Headless as False the test goes as planned but as soon I run it with Headless as True, the scroll is executed but the HTML isen't loaded and my test fail.</p>
<p>My test scenario is like this:</p>
<pre><c... | [
{
"answer_id": 74523368,
"author": "Blindy",
"author_id": 108796,
"author_profile": "https://Stackoverflow.com/users/108796",
"pm_score": 3,
"selected": false,
"text": "<< >> stream << generator1 << normal;\n mt19937 generator;\nstream >> generator;\n\nnormal_distribution<double> distrib... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13544304/"
] |
74,523,304 | <p>As part of my uninstaller script, I'd like to delete my app's directory in <code>~/Application Support/My App Name</code>.</p>
<p>My uninstaller script is Apple Script. I've tried the following:</p>
<pre><code>tell application "Finder" to delete (POSIX file "~/Library/Application Support/My App Name&q... | [
{
"answer_id": 74523368,
"author": "Blindy",
"author_id": 108796,
"author_profile": "https://Stackoverflow.com/users/108796",
"pm_score": 3,
"selected": false,
"text": "<< >> stream << generator1 << normal;\n mt19937 generator;\nstream >> generator;\n\nnormal_distribution<double> distrib... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1072846/"
] |
74,523,326 | <p>I work on a primitive website,and i got a sidenav code,built-in in the HTML.
My problem is,i didn't know,how do i put the sidenav to the right side.
(I would like the animation to start from the right and "open" from the right side)
(I know,it was a answer in Stackoverflow,but i cant do it to work :( )
Tha... | [
{
"answer_id": 74523368,
"author": "Blindy",
"author_id": 108796,
"author_profile": "https://Stackoverflow.com/users/108796",
"pm_score": 3,
"selected": false,
"text": "<< >> stream << generator1 << normal;\n mt19937 generator;\nstream >> generator;\n\nnormal_distribution<double> distrib... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20486287/"
] |
74,523,354 | <p>I've been searching everywhere to find a way to filter a column that contains both Text and Numbers, I want to filter out the numbers only from that column.</p>
<p>Thanks.</p>
| [
{
"answer_id": 74523368,
"author": "Blindy",
"author_id": 108796,
"author_profile": "https://Stackoverflow.com/users/108796",
"pm_score": 3,
"selected": false,
"text": "<< >> stream << generator1 << normal;\n mt19937 generator;\nstream >> generator;\n\nnormal_distribution<double> distrib... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13985941/"
] |
74,523,375 | <p>I want to convert "22.11.2022 00:00:00" to Mon Nov 21 2022 00:00:00 GMT+0300 (GMT+03:00) and set picker value.</p>
<p>My code:</p>
<pre><code>view.picker.setValue(this.jsonData.dateData)
</code></pre>
<p>I tried</p>
<pre><code>console.log(Ext.Date.format(dt, 'l, \\t\\he jS \\of F Y h:i:s A')); // Wednesday... | [
{
"answer_id": 74534543,
"author": "KaMun",
"author_id": 12397027,
"author_profile": "https://Stackoverflow.com/users/12397027",
"pm_score": 1,
"selected": true,
"text": "new Date(this.jsonData.dateData) const dateString = \"22.11.2022 00:00:00\",\n dateObject = new Date(dateStr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20295668/"
] |
74,523,418 | <p>I am writing to an LCD and have developed the drivers to accept a string input for the value. I have a variable called "cycles" that is a uint16. I need to convert that value to a string and write it to the display. My string write function prototype is as follows:</p>
<pre><code>void lcd_string(uint8_t co... | [
{
"answer_id": 74534543,
"author": "KaMun",
"author_id": 12397027,
"author_profile": "https://Stackoverflow.com/users/12397027",
"pm_score": 1,
"selected": true,
"text": "new Date(this.jsonData.dateData) const dateString = \"22.11.2022 00:00:00\",\n dateObject = new Date(dateStr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8412185/"
] |
74,523,433 | <pre><code>a=-1.4
b=42273.85
awk "BEGIN {print ($a + $b)}"
</code></pre>
<p>42272.4</p>
<p>I am expecting result as <strong>42272.45</strong>, what is wrong here?</p>
| [
{
"answer_id": 74523570,
"author": "Ed Morton",
"author_id": 1745001,
"author_profile": "https://Stackoverflow.com/users/1745001",
"pm_score": 3,
"selected": true,
"text": "%.6g CONVFMT a=-1.4\nb=42273.85\nawk -v a=\"$a\" -v b=\"$b\" 'BEGIN {printf \"%.2f\\n\", (a + b)}'\n42272.45\n"
}... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11002896/"
] |
74,523,475 | <p>I Want to change font-weight to normal of h2 element. I'm trying to do it by change it in parent directory.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>h2 {
margin... | [
{
"answer_id": 74523521,
"author": "reza hrkeng",
"author_id": 20517507,
"author_profile": "https://Stackoverflow.com/users/20517507",
"pm_score": 0,
"selected": false,
"text": "h2 {\n margin: 0;\n padding: 0;\n}\n.top, .date {\n display: inline-block;\n width: 150px;\n height: 30px... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20479364/"
] |
74,523,496 | <p>Is there any way to tell if a circle has such defects? Roundness does not work. Or is there a way to eliminate them?</p>
<p><img src="https://i.stack.imgur.com/jGssp.png" alt="enter image description here" /></p>
<pre class="lang-py prettyprint-override"><code> perimeter = cv2.arcLength(cnts[0],True)
area = c... | [
{
"answer_id": 74524509,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 2,
"selected": false,
"text": "cv2.arcLength() import cv2\nimport numpy as np\n\n# read in OP's example image, making sure we ignore the red ar... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20244691/"
] |
74,523,507 | <p>I have frequency data on 520 users. I want to calculate the overall mean and sd for each user. Later I want to use the mean and sd to calculate shape and scale for fitting them to a Beta distribution. I have tried a couple of methods.
Consider my data look like the following:</p>
<pre><code>Mfrq.df.2=structure(list(... | [
{
"answer_id": 74524509,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 2,
"selected": false,
"text": "cv2.arcLength() import cv2\nimport numpy as np\n\n# read in OP's example image, making sure we ignore the red ar... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15507628/"
] |
74,523,513 | <p>I am trying to read tweets having specific keywords using docker. I have taken reference from
<a href="https://github.com/youheekil/Twitter-Streaming-with-Apache-Kafka-Docker-and-Python/blob/main/src/producer.py" rel="nofollow noreferrer">Github link</a> .</p>
<p>I have made some minor changes. While I'm trying to e... | [
{
"answer_id": 74524509,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 2,
"selected": false,
"text": "cv2.arcLength() import cv2\nimport numpy as np\n\n# read in OP's example image, making sure we ignore the red ar... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19846154/"
] |
74,523,564 | <p>I have a super large dataset that i'm trying to shrink.
My idea is to keep 100 rows by neighborhood.</p>
<p>Here's an overview of my data :</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>index</th>
<th>name</th>
<th>neighborhood</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>name 1</td... | [
{
"answer_id": 74524509,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 2,
"selected": false,
"text": "cv2.arcLength() import cv2\nimport numpy as np\n\n# read in OP's example image, making sure we ignore the red ar... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7698507/"
] |
74,523,565 | <p>What is the difference between</p>
<pre><code>int(*a)[5];
int b[5] = { 1, 2, 3, 4, 5 };
i = 0;
a = &b;
for (i = 0; i < 5; i++)
printf("%d\n", *(*a+i));
</code></pre>
<p>and</p>
<pre><code>int b[5] = { 1, 2, 3, 4, 5 };
int *y = b;
for (i = 0; i < 5; i++)
printf("%d\n", *y+i);
<... | [
{
"answer_id": 74524509,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 2,
"selected": false,
"text": "cv2.arcLength() import cv2\nimport numpy as np\n\n# read in OP's example image, making sure we ignore the red ar... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2889669/"
] |
74,523,583 | <p>I need a regex that will get all the text occurences between parentheses, having in mind that all the content is encapsulated by the word BEGIN and the chars ---- at the end.</p>
<p>Input example:</p>
<pre><code>BEGIN ) Tj\nET37.66 533 Td\n( Td\n(I NEED THIS TEXT ) Tj\nET\nBT\n37.334 Td\n(AND ALSO NEED TH... | [
{
"answer_id": 74523837,
"author": "Wiktor Stribiżew",
"author_id": 3832970,
"author_profile": "https://Stackoverflow.com/users/3832970",
"pm_score": 3,
"selected": true,
"text": "(?s)(?:\\G(?!^)\\)|BEGIN)(?:(?!\\(--).)*?\\((?!--)\\K[^()]*\n (?s) . (?:\\G(?!^)\\)|BEGIN) BEGIN ) (?:(?!\\(... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12900176/"
] |
74,523,662 | <p>I am trying to generate an array of all combinations of an array, but how can I generate without repeating.</p>
<p>My first solution was just remove the repeating elements using some <code>for</code>, but I am dealing with big arrays, with 50 length size or more and the execution never end.</p>
<p>ex: (0,0,1,0)</p>
... | [
{
"answer_id": 74523870,
"author": "Joran Beasley",
"author_id": 541038,
"author_profile": "https://Stackoverflow.com/users/541038",
"pm_score": 0,
"selected": false,
"text": "arrays = [list(f\"{i:04b}\") for i in range(2**4)]\n"
},
{
"answer_id": 74523937,
"author": "treuss"... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9003947/"
] |
74,523,668 | <p>I am trying to make a UDP server and next to it a periodic task that updates a global variable every 5 minutes.</p>
<p>But the problem is that my UDP server and my task part blocks the rest of the code (because I use <code>while True:</code>).</p>
<p>I was looking at this example:
<a href="https://docs.python.org/3/... | [
{
"answer_id": 74526512,
"author": "Paul Cornelius",
"author_id": 2442613,
"author_profile": "https://Stackoverflow.com/users/2442613",
"pm_score": 1,
"selected": false,
"text": "asyncio.sleep(3600) asyncio.Event try:\n await asyncio.Event().wait() # wait here until the Universe ends... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19241200/"
] |
74,523,718 | <p>I am a newbie to C++ and I wanted to know what should I do. I need to write a program where the user will be filling the 2d array. I need to program to show the 2d array in the form of matrix and do some other things, like counting elements that are not 0. But I am stuck. I can't call functions in main(), because th... | [
{
"answer_id": 74526512,
"author": "Paul Cornelius",
"author_id": 2442613,
"author_profile": "https://Stackoverflow.com/users/2442613",
"pm_score": 1,
"selected": false,
"text": "asyncio.sleep(3600) asyncio.Event try:\n await asyncio.Event().wait() # wait here until the Universe ends... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20295376/"
] |
74,523,727 | <p>Imagine that I have a Next.js app which uses ISR to temporarily render some content on the home page. This content is interactive and I would maintain the client state in a Context. Every 24 hours, I would like to regenerate this interactive content at which point I would like to clear the state.</p>
<p>I don't actu... | [
{
"answer_id": 74633429,
"author": "mircaea",
"author_id": 1188082,
"author_profile": "https://Stackoverflow.com/users/1188082",
"pm_score": 1,
"selected": false,
"text": " import { doc, onSnapshot } from \"firebase/firestore\";\n import { firestore } from \"./firebase-config\";\n\n f... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3236215/"
] |
74,523,729 | <p>Why is the following Elixir macro not working for negative values?</p>
<p>The code is really simple, nothing really fancy, only one macro with some simple guard clauses:</p>
<pre><code>defmodule IntegerChecker do
defmacro is_negative_or_zero(number)
when is_integer(number) and number <= 0, do: true
def... | [
{
"answer_id": 74633429,
"author": "mircaea",
"author_id": 1188082,
"author_profile": "https://Stackoverflow.com/users/1188082",
"pm_score": 1,
"selected": false,
"text": " import { doc, onSnapshot } from \"firebase/firestore\";\n import { firestore } from \"./firebase-config\";\n\n f... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/235935/"
] |
74,523,798 | <p>I have a bulk operation that operates on a 2 dimensional array. It shall call a given method "func" on each element in the array:</p>
<pre><code>function forEachMatrixElement(matrix: Complex[][], func: Function): Complex[][] {
let matrixResult: Complex[][] = new Array(countRows(matrix)).fill(false).map((... | [
{
"answer_id": 74523948,
"author": "Drew Pereli",
"author_id": 6789286,
"author_profile": "https://Stackoverflow.com/users/6789286",
"pm_score": 2,
"selected": false,
"text": "multiplyMatrixScalar export function multiplyMatrixScalar(matrix: Complex[][], scalar: Complex): Complex[][] {\n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15565539/"
] |
74,523,813 | <p>Having two dataframes with the same key id column:</p>
<pre><code>dfnames1 <- data.frame(id = c(1,2,3,4), name1 = c("Helen", "Von", "Erik", "Brook", "Adel"), gender = c("F", "Neutral", "M", "Neutral", "F"))
dfnames... | [
{
"answer_id": 74524009,
"author": "TarJae",
"author_id": 13321647,
"author_profile": "https://Stackoverflow.com/users/13321647",
"pm_score": 3,
"selected": false,
"text": "library(dplyr)\n\nleft_join(dfnames1, dfnames2) %>% \n mutate(across(starts_with(\"gender\"), ~ifelse(. == \"Neutr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20224217/"
] |
74,523,822 | <p>Is there a one-click solution to stop the currently running command in the terminal and run it again?</p>
<p>Currently, I have to go to terminal -> <code>ctrl+c</code> to halt execution -> run the command again.</p>
<p>Suppose <code>npm run dev</code> is running; then it should stop and run it again after hitt... | [
{
"answer_id": 74524575,
"author": "Mark",
"author_id": 836330,
"author_profile": "https://Stackoverflow.com/users/836330",
"pm_score": 2,
"selected": true,
"text": "{\n \"command\": \"workbench.action.terminal.sendSequence\",\n \"args\": {\n \"text\": \"\\u0003Y\\u000D\" // you m... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3073272/"
] |
74,523,859 | <p>I have a decorator that I can use to mark a read-only class property:</p>
<pre><code>class class_ro_property(property):
def __init__(self, getter:Callable):
self._getter = getter
def __get__(self, _, cls):
return self._getter(cls)
class MyClass:
@class_ro_property
def my_property(cl... | [
{
"answer_id": 74524853,
"author": "Jasmijn",
"author_id": 573255,
"author_profile": "https://Stackoverflow.com/users/573255",
"pm_score": -1,
"selected": false,
"text": "class MyMetaClass(type):\n @property\n def my_property(cls):\n return [1, 2, 3]\n\nclass MyClass(metacla... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/274460/"
] |
74,523,898 | <p>I'm trying to find, hopefully, a one lines to accomplish the following:</p>
<p>I have the following dataframe:</p>
<pre class="lang-py prettyprint-override"><code>import pandas as pd
import numpy as np
SIZE = 10
df = pd.DataFrame({'col1': np.random.randint(100, size=SIZE),
'col2': np.random.randi... | [
{
"answer_id": 74524853,
"author": "Jasmijn",
"author_id": 573255,
"author_profile": "https://Stackoverflow.com/users/573255",
"pm_score": -1,
"selected": false,
"text": "class MyMetaClass(type):\n @property\n def my_property(cls):\n return [1, 2, 3]\n\nclass MyClass(metacla... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11228445/"
] |
74,523,905 | <p>Why does the following code print <code>System.Int32[]</code> in the console and not the values in the array? In simple words?</p>
<pre><code>static int[] minMax(int[] lst)
{
int a = lst.Min();
int b = lst.Max();
return new int[] { a, b };
}
System.Console.WriteLine(minMax(new int[] { 1, 2, 5, -1, 12, 20... | [
{
"answer_id": 74523949,
"author": "Neil",
"author_id": 759558,
"author_profile": "https://Stackoverflow.com/users/759558",
"pm_score": -1,
"selected": false,
"text": "WriteLine .ToString() .ToString() override string ToString()"
},
{
"answer_id": 74523964,
"author": "SupaMag... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566047/"
] |
74,523,910 | <p>Lets say I have a react state variable which is an array of <em>user</em> objects. The user object has 2 keys which are important to us: <em>id</em> and <em>name</em>. I have to change the <em>name</em> of 2 users in that list. The code for this is below</p>
<p>`</p>
<pre><code>const App = () => {
const [use... | [
{
"answer_id": 74523949,
"author": "Neil",
"author_id": 759558,
"author_profile": "https://Stackoverflow.com/users/759558",
"pm_score": -1,
"selected": false,
"text": "WriteLine .ToString() .ToString() override string ToString()"
},
{
"answer_id": 74523964,
"author": "SupaMag... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6584020/"
] |
74,523,912 | <p>I was following <a href="https://docs.flutter.dev/cookbook/testing/widget/finders#3-find-a-specific-widget-instance" rel="nofollow noreferrer">this example</a> to test if a <strong><code>CircularProgressIndicator</code></strong> is present in my view, but even though the Flutter build tree shows the widget is presen... | [
{
"answer_id": 74524344,
"author": "Eugene Kuzmenko",
"author_id": 4199283,
"author_profile": "https://Stackoverflow.com/users/4199283",
"pm_score": 2,
"selected": false,
"text": " Widget createMockViewRequest(Widget widget) {\n return MaterialApp(\n title: 'SmartDevice Simulator... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19544859/"
] |
74,523,913 | <p>SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app.infos' doesn't exist.</p>
<p><strong>home controller</strong></p>
<pre><code><?php
namespace App\Http\Controllers;
// use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\info;
class homeController extends Controller
{
... | [
{
"answer_id": 74523974,
"author": "Mohamed Maher",
"author_id": 20512345,
"author_profile": "https://Stackoverflow.com/users/20512345",
"pm_score": -1,
"selected": false,
"text": "php artisan migrate\n"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20557281/"
] |
74,523,916 | <p>Hi I'd like to understand how in the following python program to proceed to add "the latest added number" and the "count of numbers that were added". the output should be like [121 21 11], the code gives 121 but how do I get the other two?</p>
<pre><code>sum = 0
k = 1
while sum <= 100:
sum =... | [
{
"answer_id": 74523974,
"author": "Mohamed Maher",
"author_id": 20512345,
"author_profile": "https://Stackoverflow.com/users/20512345",
"pm_score": -1,
"selected": false,
"text": "php artisan migrate\n"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20565368/"
] |
74,523,921 | <p>I am currently on a project to develop a small, fun program that takes a name as an input and returns the name with the string "bi" after each vowel in the name.</p>
<p>I am encountering the problem that my program runs in an infinite loop when I have a name that has same the same vowel twice, for example:... | [
{
"answer_id": 74524220,
"author": "CodeKorn",
"author_id": 10882128,
"author_profile": "https://Stackoverflow.com/users/10882128",
"pm_score": 0,
"selected": false,
"text": "index"
},
{
"answer_id": 74524418,
"author": "Michael Ruth",
"author_id": 4583620,
"author_pr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17142790/"
] |
74,523,941 | <p>The link I try to export images is this</p>
<p><a href="https://www.ebay.com/sch/i.html?_dkr=1&iconV2Request=true&_blrs=recall_filtering&_ssn=autobuffy&store_cat=0&store_name=autobuffy&_oac=1&_sop=10&_ipg=120&rt=nc&_pgn=5" rel="nofollow noreferrer">https://www.ebay.com/sch/i.h... | [
{
"answer_id": 74538860,
"author": "David Morales",
"author_id": 9652475,
"author_profile": "https://Stackoverflow.com/users/9652475",
"pm_score": 1,
"selected": false,
"text": "=IMPORTXML(A1,\"//*[@class='s-message__content']\")\n"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19928126/"
] |
74,523,984 | <p>I declared 2 arrays in the top of my code as a class. I am trying to reference these later on in a seperate function but for some reason it isn't reading it.</p>
<p>Tried using Vectors and arrays, etc. looked into pointers. different headers. not sure what I'm missing.</p>
<pre><code>class Cards {
// Public Data t... | [
{
"answer_id": 74526148,
"author": "Matteo",
"author_id": 14323837,
"author_profile": "https://Stackoverflow.com/users/14323837",
"pm_score": 1,
"selected": false,
"text": "int DrawCard() {\n srand(time(0)); \n int RandomDraw = rand( ) % 13;\n int RandomSuit = rand() % 4;\n int handV... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566075/"
] |
74,523,987 | <p>How would I calculate the difference between two separate list and store them in a third list.</p>
<p>for example...</p>
<pre><code>list_1 [('M', 4000.0), ('R', 5320.0)]
list_2 [('M', 4222.0), ('R', 5442.0)]
</code></pre>
<p>I tried the following</p>
<pre><code>list_3 = []
list_3.append([list_1] - [list_2])
print(... | [
{
"answer_id": 74526148,
"author": "Matteo",
"author_id": 14323837,
"author_profile": "https://Stackoverflow.com/users/14323837",
"pm_score": 1,
"selected": false,
"text": "int DrawCard() {\n srand(time(0)); \n int RandomDraw = rand( ) % 13;\n int RandomSuit = rand() % 4;\n int handV... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74523987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15368659/"
] |
74,524,065 | <p>I need to count the occurrences of each element in the "ID" field of a generic list. The result should be the list with an added field called "Quantity".</p>
<p>Suppose the following class is used for the list:</p>
<pre class="lang-cs prettyprint-override"><code>public class InfoList
{
public ... | [
{
"answer_id": 74524287,
"author": "Chris Phillips",
"author_id": 1833878,
"author_profile": "https://Stackoverflow.com/users/1833878",
"pm_score": 0,
"selected": false,
"text": "void main()\n{\n List<ItemList> purchaseList = buildItemList();\n Dictionary<string,int> quantity = buildQu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19980295/"
] |
74,524,076 | <p>Recently I stumbled upon a quite itchy problem. I had to open a qt project, which I cloned from repository version. I opened it and tried to build. Hardly was there a non-red line. I got tons of compiler errors:</p>
<pre><code>Unknown type name 'QString'
Unknown type name 'QSqlDatabase'
Unknown type name 'Q_OBJECT'
... | [
{
"answer_id": 74524287,
"author": "Chris Phillips",
"author_id": 1833878,
"author_profile": "https://Stackoverflow.com/users/1833878",
"pm_score": 0,
"selected": false,
"text": "void main()\n{\n List<ItemList> purchaseList = buildItemList();\n Dictionary<string,int> quantity = buildQu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492391/"
] |
74,524,077 | <p>I am trying to only allow numeric values, along with a possible negative symbol at the front of the string, and a single decimal, using Regex in JavaScript. This input value will only allow for a possible 10 digits also.</p>
<p>Currently, when a user inputs text, I have this logic that will only allow numbers, negat... | [
{
"answer_id": 74524287,
"author": "Chris Phillips",
"author_id": 1833878,
"author_profile": "https://Stackoverflow.com/users/1833878",
"pm_score": 0,
"selected": false,
"text": "void main()\n{\n List<ItemList> purchaseList = buildItemList();\n Dictionary<string,int> quantity = buildQu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8572557/"
] |
74,524,097 | <p>Using Terraform v1.2.5 I am attempting to deploy an AWS VPC Peer. However, the following code fails validation:</p>
<pre><code>terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.1"
}
}
}
provider "aws" {
region = "us-eas... | [
{
"answer_id": 74524975,
"author": "Marko E",
"author_id": 8343484,
"author_profile": "https://Stackoverflow.com/users/8343484",
"pm_score": 2,
"selected": false,
"text": "data \"aws_vpc\" \"accepter\" {\n provider = aws.accepter # <--- missing aliased provider\n id = var.accepter_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14120387/"
] |
74,524,109 | <p>I want ask the question.</p>
<p>I want to deploy from github to nginx server using jenkins. Maybe you can help me with this? When i try to add in Jenkins setting Publish over SSH i have error</p>
<pre><code>jenkins.plugins.publish_over.BapPublisherException: Failed to add SSH key. Message [invalid privatekey: [B@2a8... | [
{
"answer_id": 74524975,
"author": "Marko E",
"author_id": 8343484,
"author_profile": "https://Stackoverflow.com/users/8343484",
"pm_score": 2,
"selected": false,
"text": "data \"aws_vpc\" \"accepter\" {\n provider = aws.accepter # <--- missing aliased provider\n id = var.accepter_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74524109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566084/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.