qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,396,942 | <p>Use case:
ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits.</p>
<p>If the function is passed a valid PIN string, return true, else return false.</p>
<p>My code is working for all the randomly generated pins except for:</p>
<p>'12.0'
'1234.0'
'11... | [
{
"answer_id": 74397036,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 3,
"selected": true,
"text": "def validate_pin(pin):\nnumbers = '0123456789'\nif len(pin) != 4 and len(pin) != 6:\n return False\nelse:\n for i... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74396942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473556/"
] |
74,396,954 | <p>I have a list of wallet addresses in my template. When I tried deleting an address by clicking on the delete button, it returns an error message. I think it is an error from the way my template was structured. But, I don't really know. When I try deleting an address by manually inputting the id of the address in the... | [
{
"answer_id": 74397036,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 3,
"selected": true,
"text": "def validate_pin(pin):\nnumbers = '0123456789'\nif len(pin) != 4 and len(pin) != 6:\n return False\nelse:\n for i... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74396954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15298459/"
] |
74,396,966 | <p>I'm trying to click "Create New Network" by using selenium.</p>
<pre><code><button type="button" id="dt-refreshBtn" class="btn wc-btn--link" data-label="Create New Network" role="link"><span class="icon-button" data-testid="dnxButto... | [
{
"answer_id": 74397036,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 3,
"selected": true,
"text": "def validate_pin(pin):\nnumbers = '0123456789'\nif len(pin) != 4 and len(pin) != 6:\n return False\nelse:\n for i... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74396966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473570/"
] |
74,396,999 | <p>I have no idea why this is happening, but it looks like a variable has two values, one correct and one unexpected value. When I print a variable in the console log, it shows at first the correct variable and right after it prints again another unexpected value. Is it a bug in AppScript, or something off that I canno... | [
{
"answer_id": 74397128,
"author": "Cooper",
"author_id": 7215091,
"author_profile": "https://Stackoverflow.com/users/7215091",
"pm_score": 0,
"selected": false,
"text": "function funx() {\n var ss = SpreadsheetApp.openById('xxx');\n var sheet = ss.getSheetByName('Data');\n var list =... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74396999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3818716/"
] |
74,397,005 | <p>I have a custom DialogFragment, and was trying to use AlertDialog in onCreateDialog(). The AlertDialog only has title, singleChoiceItem, positiveButton, etc. But I would like to add an extra button on the top left to be a back button that I could add a onClickListener. How could I do that? Thanks!</p>
| [
{
"answer_id": 74397128,
"author": "Cooper",
"author_id": 7215091,
"author_profile": "https://Stackoverflow.com/users/7215091",
"pm_score": 0,
"selected": false,
"text": "function funx() {\n var ss = SpreadsheetApp.openById('xxx');\n var sheet = ss.getSheetByName('Data');\n var list =... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7560138/"
] |
74,397,044 | <p>Still new to python and this problem is driving me crazy I know I'm missing something really obvious but I just can't figure it out :/ Here is the problem:</p>
<ol>
<li><p>Write a function called main that prompts/asks the user to enter two integer values.</p>
</li>
<li><p>Write a value returning function named max ... | [
{
"answer_id": 74397128,
"author": "Cooper",
"author_id": 7215091,
"author_profile": "https://Stackoverflow.com/users/7215091",
"pm_score": 0,
"selected": false,
"text": "function funx() {\n var ss = SpreadsheetApp.openById('xxx');\n var sheet = ss.getSheetByName('Data');\n var list =... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473614/"
] |
74,397,068 | <p>I know that the code below works.</p>
<pre class="lang-cpp prettyprint-override"><code> int* pn;
pn = new int;
</code></pre>
<p>So I tried to apply it in same way, in my custom class.</p>
<pre class="lang-cpp prettyprint-override"><code>class Matrix {
private:
typedef struct ex_node* ex_pointer;
... | [
{
"answer_id": 74397128,
"author": "Cooper",
"author_id": 7215091,
"author_profile": "https://Stackoverflow.com/users/7215091",
"pm_score": 0,
"selected": false,
"text": "function funx() {\n var ss = SpreadsheetApp.openById('xxx');\n var sheet = ss.getSheetByName('Data');\n var list =... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19435802/"
] |
74,397,087 | <p>I am new to Laravel. I am now able to register users, log them in. But after login, I don't want to display register and login pages. I want to display logout link. This is easy for me with core php.
I want something similar like the one below.</p>
<pre><code><?php
if(isset($_SESSION['id'])){
?>
... | [
{
"answer_id": 74397128,
"author": "Cooper",
"author_id": 7215091,
"author_profile": "https://Stackoverflow.com/users/7215091",
"pm_score": 0,
"selected": false,
"text": "function funx() {\n var ss = SpreadsheetApp.openById('xxx');\n var sheet = ss.getSheetByName('Data');\n var list =... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3239115/"
] |
74,397,119 | <p>I have the following strings:</p>
<pre><code>x <- "??????????DRHRTRHLAK??????????"
x2 <- "????????????????????TRCYHIDPHH"
x3 <- "FKDHKHIDVK????????????????????TRCYHIDPHH"
x4 <- "FKDHKHIDVK????????????????????"
</code></pre>
<p>What I want to do is to replace all t... | [
{
"answer_id": 74397167,
"author": "M.Viking",
"author_id": 10276092,
"author_profile": "https://Stackoverflow.com/users/10276092",
"pm_score": 1,
"selected": false,
"text": "substr() x <- \"??????????DRHRTRHLAK??????????\"\nrep <- \"ndqeegillkkkkfpssyvv\"\nx<-gsub(pattern = \"^\\\\?+\",... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8391698/"
] |
74,397,123 | <p>How can I join all the lines?</p>
<p>Desired output:</p>
<pre><code>$ echo 'one\ntwo' | tr '\n' ''
onetwo
</code></pre>
<p>Actual output:</p>
<pre><code>tr: empty string2
</code></pre>
<p>I have also tried <code>paste -sd '' -</code> but get</p>
<pre><code>paste: no delimiters specified
</code></pre>
<p>also <code>s... | [
{
"answer_id": 74397158,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "tr tr -d echo $'one\\ntwo' | tr -d '\\n' \n $'...' \\n \\n"
},
{
"answer_id": 74397162,
"author": "theonly... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3310334/"
] |
74,397,175 | <p>I have an array of extensions and an array of file names:</p>
<pre class="lang-rb prettyprint-override"><code>exts = ['.zip', '.tgz', '.sql']
files = ['file1.txt', 'file2.doc', 'file2.tgz', 'file3.sql', 'file6.foo', 'file4.zip']
</code></pre>
<p>I want to filter the file names by one or more matching extensions. In... | [
{
"answer_id": 74397539,
"author": "Steve K",
"author_id": 125965,
"author_profile": "https://Stackoverflow.com/users/125965",
"pm_score": 0,
"selected": false,
"text": "select exts = ['zip', 'tgz', 'sql']\nfiles.select{ |file| exts.include?(file) }\n"
},
{
"answer_id": 74398388,... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/125965/"
] |
74,397,224 | <p>I'm looking for solution - group array of objects by value based on matched pattern of other array value.</p>
<p>have sample array</p>
<pre><code>data = [
{
"Application": "Chrome - 567"
},
{
"Application": "... | [
{
"answer_id": 74397377,
"author": "Rocky Sims",
"author_id": 4123400,
"author_profile": "https://Stackoverflow.com/users/4123400",
"pm_score": 0,
"selected": false,
"text": "const data = [\n {\"Application\": \"Chrome - 567\"},\n {\"Application\": \"File Transfer Protocol - 45\"},... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6333900/"
] |
74,397,250 | <p>I made very little changes to an App working properly before. And I tried to run it and got <code>Can not extract resource from com.android.aaptcompiler.ParsedResource@16fe6971.</code> error.</p>
<p>I have no idea what is wrong, I did some search and found out it might be I needed to add <code>/</code> before every ... | [
{
"answer_id": 74485573,
"author": "Edwin",
"author_id": 15976878,
"author_profile": "https://Stackoverflow.com/users/15976878",
"pm_score": 3,
"selected": true,
"text": "' strings.xml \\' strings.xml"
},
{
"answer_id": 74573658,
"author": "Yohanes Getient",
"author_id": ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15976878/"
] |
74,397,254 | <p>Maybe without using <code>as</code>: How can I</p>
<pre><code>type F = 'a' | 'b' | 'c'
type R = '11' | '22' | '33'
type P = `${F}${R}`
const p: P = `a11`
// is there a better way to parse this string?
function getFR(p: P): [F, R] {
return [p[0] as F, p.slice(1) as R]
}
console.log(getFR(p))
</code></pre>
| [
{
"answer_id": 74485573,
"author": "Edwin",
"author_id": 15976878,
"author_profile": "https://Stackoverflow.com/users/15976878",
"pm_score": 3,
"selected": true,
"text": "' strings.xml \\' strings.xml"
},
{
"answer_id": 74573658,
"author": "Yohanes Getient",
"author_id": ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3994249/"
] |
74,397,270 | <p>So I'm having trouble with writing this Cipher Function in one line. I've tried using the result methods with the if and else statements. For instance I know that the I need to do the else statement first before the if statement buts I could be wrong. So I'm trying to figure this out.
How would I write this function... | [
{
"answer_id": 74397346,
"author": "Alexander",
"author_id": 17829451,
"author_profile": "https://Stackoverflow.com/users/17829451",
"pm_score": 0,
"selected": false,
"text": "text = \"Hello World\"\ndef cipher(text):\n return ''.join(\n [i if not i.isalpha() else\n ch... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473802/"
] |
74,397,272 | <p>I would like to know how would I use python to join certain lines in a large text file, that come after a certain string. For example my file is:</p>
<pre><code>ID 1
ABCDE
FGHIJ
KLMNO
ID 2
ABCDE
FGHIJ
ID 3
ABCDE
FGHIJ
KLMNO
PQRST
</code></pre>
<p>And I would like to join the lines following each “ID”, but the number... | [
{
"answer_id": 74397328,
"author": "AVManerikar",
"author_id": 16744609,
"author_profile": "https://Stackoverflow.com/users/16744609",
"pm_score": -1,
"selected": false,
"text": "data = f.readlines()\nout = []\ncurr_cat_line = ''\n\nfor line in data:\n if line.find('ID')!=-1:\n o... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473708/"
] |
74,397,278 | <p>I am trying to get a simple react app (create react app) with react-router-dom to work inside a WordPress site using the ReactPress plugin.</p>
<p>Taking code straight from the ReactPress documentation, I have the React app working on localhost, but cannot get the routing to work within Wordpress.</p>
<p>I have trie... | [
{
"answer_id": 74397328,
"author": "AVManerikar",
"author_id": 16744609,
"author_profile": "https://Stackoverflow.com/users/16744609",
"pm_score": -1,
"selected": false,
"text": "data = f.readlines()\nout = []\ncurr_cat_line = ''\n\nfor line in data:\n if line.find('ID')!=-1:\n o... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8521990/"
] |
74,397,307 | <p>Holla!</p>
<p>I have a list of 60 large-size 2d arrays (30000,30000).</p>
<p>The goal is to compare each array with every other array and count the total number of exactly the same arrays in the entire list.</p>
<p>I am working on this logic, however, it is counting the number of same arrays individually and not wha... | [
{
"answer_id": 74397328,
"author": "AVManerikar",
"author_id": 16744609,
"author_profile": "https://Stackoverflow.com/users/16744609",
"pm_score": -1,
"selected": false,
"text": "data = f.readlines()\nout = []\ncurr_cat_line = ''\n\nfor line in data:\n if line.find('ID')!=-1:\n o... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19259213/"
] |
74,397,312 | <p>I get data from access database but they are not in column order.</p>
<p><a href="https://i.stack.imgur.com/zndvf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zndvf.png" alt="enter image description here" /></a><a href="https://i.stack.imgur.com/Avw44.png" rel="nofollow noreferrer"><img src="ht... | [
{
"answer_id": 74397328,
"author": "AVManerikar",
"author_id": 16744609,
"author_profile": "https://Stackoverflow.com/users/16744609",
"pm_score": -1,
"selected": false,
"text": "data = f.readlines()\nout = []\ncurr_cat_line = ''\n\nfor line in data:\n if line.find('ID')!=-1:\n o... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473826/"
] |
74,397,333 | <pre><code>#include<stdio.h>
#include<string.h>
#define ROWS 6
#define LENGTH 30
int main (void)
{
int wordcount[ROWS]; // Incraments word count. i.e. Word 1, Word 2, Word 3...
char word[LENGTH]; // Stores users string
for(int i = 1; i < ROWS; i++)
{
if(i == 1)
{
... | [
{
"answer_id": 74397328,
"author": "AVManerikar",
"author_id": 16744609,
"author_profile": "https://Stackoverflow.com/users/16744609",
"pm_score": -1,
"selected": false,
"text": "data = f.readlines()\nout = []\ncurr_cat_line = ''\n\nfor line in data:\n if line.find('ID')!=-1:\n o... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473803/"
] |
74,397,345 | <p>I'm trying to convert a BST to an Array.</p>
<pre><code>void treeToArr(Node *root, int *ptr, int index)
{
if (root == NULL) {
return;
}
storeInArray(root->left,ptr,index);
ptr[index++] = root->value;
storeInArray(root->right,ptr,index);
}
</code></pre>
<p>When running this, I noticed that the index num... | [
{
"answer_id": 74397895,
"author": "Fe2O3",
"author_id": 17592432,
"author_profile": "https://Stackoverflow.com/users/17592432",
"pm_score": 0,
"selected": false,
"text": "int index; int treeToArr(Node *root, int *ptr, int index)\n{\n if (root == NULL)\n return index;\n\n in... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20304864/"
] |
74,397,351 | <p>I am new to dataweave 2.0 and am trying to use the scan method to extract some text from a string coming back from a http request.</p>
<p>I am trying to extract text with the following regex:</p>
<pre><code>\\\"(NewLABEL.[a-z]*)
</code></pre>
<p>This does what i expect in <a href="https://regexr.com/" rel="nofo... | [
{
"answer_id": 74397895,
"author": "Fe2O3",
"author_id": 17592432,
"author_profile": "https://Stackoverflow.com/users/17592432",
"pm_score": 0,
"selected": false,
"text": "int index; int treeToArr(Node *root, int *ptr, int index)\n{\n if (root == NULL)\n return index;\n\n in... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473898/"
] |
74,397,384 | <p>I am trying to find a way to send the id of the clicked button to the backend. The problem is that I am creating lots of buttons with one method but the id is different.</p>
<pre><code>@foreach (var item in Model.showManager.GetMovies())
{
i++;
@if (Model.user.IsAdmin == t... | [
{
"answer_id": 74397895,
"author": "Fe2O3",
"author_id": 17592432,
"author_profile": "https://Stackoverflow.com/users/17592432",
"pm_score": 0,
"selected": false,
"text": "int index; int treeToArr(Node *root, int *ptr, int index)\n{\n if (root == NULL)\n return index;\n\n in... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20045530/"
] |
74,397,391 | <p>Hi I have an array of objects like below:</p>
<pre><code>let tbrows = [{"rowindx":0,"speciescnt":2},{"rowindx":0,"speciescnt":3},{"rowindx":1,"speciescnt":2},{"rowindx":1,"speciescnt":3}]
</code></pre>
<p>I want to get the maximum value... | [
{
"answer_id": 74397895,
"author": "Fe2O3",
"author_id": 17592432,
"author_profile": "https://Stackoverflow.com/users/17592432",
"pm_score": 0,
"selected": false,
"text": "int index; int treeToArr(Node *root, int *ptr, int index)\n{\n if (root == NULL)\n return index;\n\n in... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/819073/"
] |
74,397,418 | <p>I need to make a function named f3Groups() that accepts one argument. As well as a list named cgList to represent the whole class, containing
3 lists representing the 3 groups. cgList can be an empty list but
there cannot be any empty group, for example cgList = [] when there
is no student in this class. Return the ... | [
{
"answer_id": 74397895,
"author": "Fe2O3",
"author_id": 17592432,
"author_profile": "https://Stackoverflow.com/users/17592432",
"pm_score": 0,
"selected": false,
"text": "int index; int treeToArr(Node *root, int *ptr, int index)\n{\n if (root == NULL)\n return index;\n\n in... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20470075/"
] |
74,397,430 | <p>I have the following mapping</p>
<pre><code>mapping = {'sum12':2, 'sum6':1,
'avg12':2, 'avg6':1,
'diff':3, 'mean':4}
</code></pre>
<p>and I have a dataframe with variables like</p>
<pre><code> var1 var2
0 abc_sum12 mean_jkl
1 pqr_sum6 pqr_avg6
2 diff_xyz qwerty
</code></... | [
{
"answer_id": 74397487,
"author": "Chris",
"author_id": 4718350,
"author_profile": "https://Stackoverflow.com/users/4718350",
"pm_score": 3,
"selected": true,
"text": "qwerty NaN import pandas as pd\nmapping = {'sum12':2, 'sum6':1,\n 'avg12':2, 'avg6':1,\n 'diff':3... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5485288/"
] |
74,397,549 | <p>I have an array of objects as show below, I'm going to <em>filter</em> out the objects and add into another object of objects (the reason is that I will be storing it into firestore and it only accepts non-arrays) so I'm just going to keep things indexed with numbers but how do I automatically add an object into the... | [
{
"answer_id": 74397631,
"author": "An Nguyen",
"author_id": 5492310,
"author_profile": "https://Stackoverflow.com/users/5492310",
"pm_score": 2,
"selected": true,
"text": "const data = [\n { name: \"Cat\", choice: \"one\", Date: \"11/11/22\", Time: 503, food: \"chicken\" },\n { name: ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19380192/"
] |
74,397,589 | <p><code>pdt.startTime</code> is datetime</p>
<p><code>s_first.FromTimeOfDay</code> is a time</p>
<p>I want to subtract the time drom the datetime. When i run the code below, Snowflake gives me this error <code>invalid type [CAST(S_FIRST.FROMTIMEOFDAY AS TIMESTAMP_NTZ(9))] for parameter 'TO_TIMESTAMP_NTZ'</code></p>
<p... | [
{
"answer_id": 74397631,
"author": "An Nguyen",
"author_id": 5492310,
"author_profile": "https://Stackoverflow.com/users/5492310",
"pm_score": 2,
"selected": true,
"text": "const data = [\n { name: \"Cat\", choice: \"one\", Date: \"11/11/22\", Time: 503, food: \"chicken\" },\n { name: ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14322212/"
] |
74,397,693 | <p>How to say find the word "Apple" or "Orange" by using or in the criteria instead of typing +countif as another criteria? I mean adding OR in the same criteria.</p>
<pre><code>=countif(A1:A100,"apple|Orange")
</code></pre>
| [
{
"answer_id": 74401838,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=SUMPRODUCT(REGEXMATCH(A1:A100, \"apple|Orange\"))\n =SUMPRODUCT(REGEXMATCH(A1:A100, \"(?i)apple|Orange\"))\n"
},
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14934463/"
] |
74,397,694 | <p>When I upload a <code>.mp3</code> audio file or a <code>.jpg</code> picture to Firebase Cloud Storage I get this error:</p>
<pre><code>TypeError: Cannot read properties of undefined (reading 'byteLength')
</code></pre>
<p>What is <code>byteLength</code>?</p>
<p>I tried uploading a <code>.jpg</code> with raw <code>up... | [
{
"answer_id": 74398108,
"author": "Alexander N.",
"author_id": 3946096,
"author_profile": "https://Stackoverflow.com/users/3946096",
"pm_score": 1,
"selected": false,
"text": "./bootchkas.jpg ./bookchkas.jpg"
},
{
"answer_id": 74438476,
"author": "Thomas David Kehoe",
"a... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5153354/"
] |
74,397,722 | <p>So it to loop and subMenu on sidebar component, but instead of the subMenu showUp under the parents menu, it showUp on the Right side of the parents menu as pic below:
<a href="https://i.stack.imgur.com/csdnC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/csdnC.png" alt="enter image description h... | [
{
"answer_id": 74398108,
"author": "Alexander N.",
"author_id": 3946096,
"author_profile": "https://Stackoverflow.com/users/3946096",
"pm_score": 1,
"selected": false,
"text": "./bootchkas.jpg ./bookchkas.jpg"
},
{
"answer_id": 74438476,
"author": "Thomas David Kehoe",
"a... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16136595/"
] |
74,397,789 | <p>I have this react app, I need to deploy into a google cloud storage thru google cloud build, I'm trying to do it adding a cloudbuild.yaml and add some steps to run the npm</p>
<p>This is what I have:</p>
<pre><code>steps:
- name: bash
script: |
npm install --force
- name: bash
script: |
npm r... | [
{
"answer_id": 74398108,
"author": "Alexander N.",
"author_id": 3946096,
"author_profile": "https://Stackoverflow.com/users/3946096",
"pm_score": 1,
"selected": false,
"text": "./bootchkas.jpg ./bookchkas.jpg"
},
{
"answer_id": 74438476,
"author": "Thomas David Kehoe",
"a... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133649/"
] |
74,397,794 | <p>what should i repair? it's error.</p>
<p><code>characterList[index]['real_name'].toUpperCase()</code></p>
<p>How can fix the error?</p>
| [
{
"answer_id": 74398108,
"author": "Alexander N.",
"author_id": 3946096,
"author_profile": "https://Stackoverflow.com/users/3946096",
"pm_score": 1,
"selected": false,
"text": "./bootchkas.jpg ./bookchkas.jpg"
},
{
"answer_id": 74438476,
"author": "Thomas David Kehoe",
"a... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17572000/"
] |
74,397,817 | <p>I am aware of a similar issue <a href="https://stackoverflow.com/questions/65659966/how-to-fix-error-psycopg2-errors-notnullviolation-null-value-in-column-id-v">How to fix error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint?</a> but the answers there did not fix... | [
{
"answer_id": 74397874,
"author": "Eric Kong",
"author_id": 15723533,
"author_profile": "https://Stackoverflow.com/users/15723533",
"pm_score": 1,
"selected": false,
"text": "id SERIAL PRIMARY KEY\n"
},
{
"answer_id": 74403875,
"author": "Malice",
"author_id": 16179502,
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16179502/"
] |
74,397,821 | <p>When I click on the button: Remover, the line is hidden. When I click the Adicionar button again, the line that was hidden is added. I want the line along with the data to be definitively deleted when I click on the button: Remover.</p>
<p>I've tried using several methods and I can't solve it, can anyone help?</p>
<... | [
{
"answer_id": 74397974,
"author": "Surya R Praveen",
"author_id": 714707,
"author_profile": "https://Stackoverflow.com/users/714707",
"pm_score": 0,
"selected": false,
"text": "table td {\n padding: 16px 0;\n text-align: center;\n font-size: 18px;\n border-bottom: 1px solid rgba(0, ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11881527/"
] |
74,397,840 | <p>I am sending an <code>id</code> in my js code and I want to pass that variable to my controller. Any advice on how I can do that?</p>
<pre><code><input class="btn_confirm" type="submit" id={i}
onclick="id_click(this.id)" value="Delete" />
</code></pre>
<pre><code... | [
{
"answer_id": 74397974,
"author": "Surya R Praveen",
"author_id": 714707,
"author_profile": "https://Stackoverflow.com/users/714707",
"pm_score": 0,
"selected": false,
"text": "table td {\n padding: 16px 0;\n text-align: center;\n font-size: 18px;\n border-bottom: 1px solid rgba(0, ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11108472/"
] |
74,397,866 | <p>I've been scratching my head and searching the internet for an explanation to this.</p>
<p>I started with my full code and boiled it down to the following that illustrates my problem:</p>
<pre><code>function foo (param: string) {
if (param === 'bar') {
return {
one: 'bar'
}
}
... | [
{
"answer_id": 74397974,
"author": "Surya R Praveen",
"author_id": 714707,
"author_profile": "https://Stackoverflow.com/users/714707",
"pm_score": 0,
"selected": false,
"text": "table td {\n padding: 16px 0;\n text-align: center;\n font-size: 18px;\n border-bottom: 1px solid rgba(0, ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9735558/"
] |
74,397,871 | <p>Write a function, max index, that takes a list as a parameter and returns the index of the largest number in the list.
When writing the function, you are given the following rules:</p>
<ul>
<li>You are not allowed to use the max function</li>
<li>You are not allowed to use any list methods</li>
<li>You must use a Py... | [
{
"answer_id": 74397974,
"author": "Surya R Praveen",
"author_id": 714707,
"author_profile": "https://Stackoverflow.com/users/714707",
"pm_score": 0,
"selected": false,
"text": "table td {\n padding: 16px 0;\n text-align: center;\n font-size: 18px;\n border-bottom: 1px solid rgba(0, ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20474373/"
] |
74,397,924 | <p>I'm using reactjs and trying to change style of a Div when user scroll from top to position (top + 300px). If scrolling down from this position, it will <code>display: block</code> else is <code>none</code>. How do I do this with react? I searched here but all results are not answered mine.</p>
<p>I tried some metho... | [
{
"answer_id": 74397974,
"author": "Surya R Praveen",
"author_id": 714707,
"author_profile": "https://Stackoverflow.com/users/714707",
"pm_score": 0,
"selected": false,
"text": "table td {\n padding: 16px 0;\n text-align: center;\n font-size: 18px;\n border-bottom: 1px solid rgba(0, ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436639/"
] |
74,397,949 | <p>There is a custom <strong>class A</strong> with properties <strong>Name</strong> and <strong>Amount</strong></p>
<p>There is a <strong>nested List</strong> of iterations of <strong>List A</strong>.</p>
<p>To get each unique <strong>A</strong> and its total amount, count etc. I use following code:
`</p>
<pre><code>pu... | [
{
"answer_id": 74398099,
"author": "vivek nuna",
"author_id": 6527049,
"author_profile": "https://Stackoverflow.com/users/6527049",
"pm_score": 2,
"selected": true,
"text": "SUM Amount = a.Sum(a => a.Amount), Amount long long Amount Amount = a.Sum(a => (long)a.Amount"
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19775889/"
] |
74,397,958 | <p>Using <code>gsub()</code>, I want to replace "\n\n" to "" in this text:</p>
<pre><code>mystring<-"People Storm Seonul Airport as Citizens Leave\\n\\nCHOI JEONGHO\\n\\nSEOUL, South Korea, Jan. 31"
</code></pre>
<p>But, when I ran <code>gsub("[\r\\n]", " ", mystring... | [
{
"answer_id": 74398004,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "n \\\\n \\\\\\\\n gsub(\"(\\r)|(\\\\\\\\n)\", \" \", mystring)\n\n# \"People Storm Seonul Airport as Citizens Leave... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19907346/"
] |
74,397,978 | <p>I make a JS stopwatch that has format H:m:s:ms when it reached 60 min it always increase to 61,62 and so on</p>
<p>i am using setInterval here is my code:</p>
<pre><code>n = 3600;
td = setInterval(function ()
{
n++;
let hours = parseInt(n / 3600);
var m = parseInt(n / 60)
var s = par... | [
{
"answer_id": 74398827,
"author": "Vivekanand Vishvkarma",
"author_id": 19443694,
"author_profile": "https://Stackoverflow.com/users/19443694",
"pm_score": 0,
"selected": false,
"text": "n =0;\ntd = setInterval(function() {\n n++;\n let hours = parseInt(n / 3600000);\n var m = parseI... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74397978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10371195/"
] |
74,398,053 | <p>I want to get the indices for a list of filters in polars and get a sparse matrix from it, how can I parallel the process? This is what I have right now, a pretty naive and brute force way for achieving what I need, but this is having some serious performance issue</p>
<pre class="lang-py prettyprint-override"><code... | [
{
"answer_id": 74402339,
"author": "alexp",
"author_id": 10120952,
"author_profile": "https://Stackoverflow.com/users/10120952",
"pm_score": 2,
"selected": false,
"text": "import polars as pl\nfrom scipy.sparse import csc_matrix\nimport numpy as np\n\ndf = pl.DataFrame(\n [[1,2,3,4,5,... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5257450/"
] |
74,398,071 | <p>I have a large dataframe with (104959, 298) rows and columns</p>
<p>in the string column I have multiple substrings that I need to replace</p>
<p>I've tried</p>
<pre><code>df.EVENT_DTL.replace(['SPOUSE_2','SPOUSE_nan','PARENT_2','PARENT_nan','GRANDPARENT_2','GRANDPARENT_nan','CHILD_2',
'CHILD_nan','RELATIVE_... | [
{
"answer_id": 74402339,
"author": "alexp",
"author_id": 10120952,
"author_profile": "https://Stackoverflow.com/users/10120952",
"pm_score": 2,
"selected": false,
"text": "import polars as pl\nfrom scipy.sparse import csc_matrix\nimport numpy as np\n\ndf = pl.DataFrame(\n [[1,2,3,4,5,... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20376341/"
] |
74,398,074 | <p>I'm trying to build a <code>View</code> which a list of children of an object, and I want those children to be modifiable. The data changes, but the view doesn't react.</p>
<p>Here is the stripped down example.</p>
<pre class="lang-swift prettyprint-override"><code>class ObjectOne: ObservableObject {
@Publis... | [
{
"answer_id": 74402339,
"author": "alexp",
"author_id": 10120952,
"author_profile": "https://Stackoverflow.com/users/10120952",
"pm_score": 2,
"selected": false,
"text": "import polars as pl\nfrom scipy.sparse import csc_matrix\nimport numpy as np\n\ndf = pl.DataFrame(\n [[1,2,3,4,5,... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7102356/"
] |
74,398,090 | <p>In <a href="https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/IO/TextReader.cs,e64583ea204ca037" rel="nofollow noreferrer">.NET's TextReader class</a>, there are two methods that, by default, simply return -1:</p>
<p><code>public virtual int Peek() { return -1; }</code></... | [
{
"answer_id": 74402339,
"author": "alexp",
"author_id": 10120952,
"author_profile": "https://Stackoverflow.com/users/10120952",
"pm_score": 2,
"selected": false,
"text": "import polars as pl\nfrom scipy.sparse import csc_matrix\nimport numpy as np\n\ndf = pl.DataFrame(\n [[1,2,3,4,5,... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11813067/"
] |
74,398,095 | <p>Input:</p>
<pre><code>val list1 = List(
Map("ID" -> "123", "NAME" -> "P1", "PID" -> "321"),
Map("ID" -> "456", "NAME" -> "P2", "PID" -> "333")
)
val list2 = List(
Ma... | [
{
"answer_id": 74402339,
"author": "alexp",
"author_id": 10120952,
"author_profile": "https://Stackoverflow.com/users/10120952",
"pm_score": 2,
"selected": false,
"text": "import polars as pl\nfrom scipy.sparse import csc_matrix\nimport numpy as np\n\ndf = pl.DataFrame(\n [[1,2,3,4,5,... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20474532/"
] |
74,398,098 | <p>I cannot load a new URL in flutter Webview... I have issues using <code>then</code> and <code>Future</code> in flutter <code>Webview</code> Controller...</p>
<p>In a flutter <code>Webview</code>, I would like to load the <code>initialUrl</code>, then programmatically retrieve some information from that web page... A... | [
{
"answer_id": 74425843,
"author": "Saed Nabil",
"author_id": 10660823,
"author_profile": "https://Stackoverflow.com/users/10660823",
"pm_score": 3,
"selected": true,
"text": "onPageFinished onPageFinished: (String url) async{\n // add the missing '/' at the end of the url... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14728030/"
] |
74,398,109 | <p>Since I am a newbie, please tell me how I should add labels for each bar toward the right. And it would be kind of you to explain the code too...
Thank you.</p>
<p>This is the dataframe that I have used:</p>
<pre><code> BG_donated Qty Hospital Location Contact
0 A- 25 ... | [
{
"answer_id": 74398467,
"author": "li Ju",
"author_id": 20150045,
"author_profile": "https://Stackoverflow.com/users/20150045",
"pm_score": 3,
"selected": true,
"text": " mplt.text(values, i, '%s' %values)\" to your code.\n"
},
{
"answer_id": 74402504,
"author": "l... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19705530/"
] |
74,398,168 | <p>I have something equivalent to this:</p>
<pre><code>class Main {
public static class Data {
private void foo() {}
}
public <D extends Data> D process(D data) {
data.foo();
return data;
}
}
</code></pre>
<p>The compiler complains:</p>
<blockquote>
<p><em>The method f... | [
{
"answer_id": 74398467,
"author": "li Ju",
"author_id": 20150045,
"author_profile": "https://Stackoverflow.com/users/20150045",
"pm_score": 3,
"selected": true,
"text": " mplt.text(values, i, '%s' %values)\" to your code.\n"
},
{
"answer_id": 74402504,
"author": "l... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/964243/"
] |
74,398,172 | <p>I've been having a strong headache with this problem, because I know for a fact should be a simple solution but I can't find the right answer.</p>
<p>The idea is that I have two <code>UIViews</code> (let's call them A and B). All I want to do is to swap their positions on button press, by the A view going down to B ... | [
{
"answer_id": 74398467,
"author": "li Ju",
"author_id": 20150045,
"author_profile": "https://Stackoverflow.com/users/20150045",
"pm_score": 3,
"selected": true,
"text": " mplt.text(values, i, '%s' %values)\" to your code.\n"
},
{
"answer_id": 74402504,
"author": "l... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6861143/"
] |
74,398,176 | <p>I want to create a MySQL syntax to select a field based on a variable, what I have is:</p>
<pre><code>book_category = "science"
mycursor_a.execute(("SELECT {book_categories} FROM research_papers WHERE book_Name = %s", (book,)).format(book_categories = book_category))
</code></pre>
<p>but I get th... | [
{
"answer_id": 74398467,
"author": "li Ju",
"author_id": 20150045,
"author_profile": "https://Stackoverflow.com/users/20150045",
"pm_score": 3,
"selected": true,
"text": " mplt.text(values, i, '%s' %values)\" to your code.\n"
},
{
"answer_id": 74402504,
"author": "l... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1188943/"
] |
74,398,213 | <p>I have this regular expression <code>r'\b28\b'</code>. In this expression <code>28</code> should be dynamic. In other words, 28 is a dynamic value which the user enters. So, instead of 28 it can have 5. In that case, the expression would be <code>r'\b5\b'</code>.</p>
<p>I tried the below two approaches but they are ... | [
{
"answer_id": 74398283,
"author": "BrokenBenchmark",
"author_id": 17769815,
"author_profile": "https://Stackoverflow.com/users/17769815",
"pm_score": 1,
"selected": false,
"text": "re.escape import re\n\nroom_number = 5\nreg_expr = rf\"\\b{re.escape(str(room_number))}\\b\"\nre.findall(r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20443528/"
] |
74,398,215 | <p>We have a POST api and we can send multiple files in a request.</p>
<p>I created a csv file with all file Names. Its updating same filename each json object.</p>
<p>How can i get the unique filename in json object from csv? Or is there any approch to get unique files from a file?</p>
<p><strong>Request:</strong></p>... | [
{
"answer_id": 74410721,
"author": "Dmitri T",
"author_id": 2897748,
"author_profile": "https://Stackoverflow.com/users/2897748",
"pm_score": 1,
"selected": false,
"text": "{\n \"filePath\": \"filename from CSV here\",\n \"orgId\": \"org123\",\n \"Domain\": \"abcd.com\",\n}\n de... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6582190/"
] |
74,398,231 | <p>I found some weird behaviour during the creation of classes and objects in python3.</p>
<p>I dislike typing every time "self" word and constructors during writing classes if my class is very simple so I made the class 'Foo' that copies static variables and turns them into the new object's attributes.</p>
<... | [
{
"answer_id": 74398492,
"author": "hadi purnomo",
"author_id": 9002661,
"author_profile": "https://Stackoverflow.com/users/9002661",
"pm_score": -1,
"selected": false,
"text": "class Bar(Foo):\n def __init__(self):\n super().__init__(self)\n self.val = []\n\n def fun... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9630049/"
] |
74,398,250 | <pre><code>[[1.0, 1.0], [1.0, 10.0], [1.0, 11.0], [1.0, 12.0], [1.0, 13.0]],
[[2.0, 1.0], [2.0, 10.0], [2.0, 11.0], [2.0, 12.0], [2.0, 13.0]],
[[3.0, 1.0], [3.0, 10.0], [3.0, 11.0], [3.0, 12.0], [3.0, 13.0]],
[[4.0, 1.0], [4.0, 10.0], [4.0, 11.0], [4.0, 12.0], [4.0, 13.0]],
[[4.0, 1.0], [4.0, 10.0], [4.0, 11.0], [4... | [
{
"answer_id": 74398492,
"author": "hadi purnomo",
"author_id": 9002661,
"author_profile": "https://Stackoverflow.com/users/9002661",
"pm_score": -1,
"selected": false,
"text": "class Bar(Foo):\n def __init__(self):\n super().__init__(self)\n self.val = []\n\n def fun... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20317476/"
] |
74,398,260 | <p>The project uses Spring-Security OAUTH 2. An Angular application is used as a web client. And as a Keycloak authorization server.
The Angular application sends requests to the Spring application via the Spring GateWay.</p>
<p>When I try to send a Get request, I get an error</p>
<pre><code>has been blocked by CORS po... | [
{
"answer_id": 74398492,
"author": "hadi purnomo",
"author_id": 9002661,
"author_profile": "https://Stackoverflow.com/users/9002661",
"pm_score": -1,
"selected": false,
"text": "class Bar(Foo):\n def __init__(self):\n super().__init__(self)\n self.val = []\n\n def fun... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18723075/"
] |
74,398,276 | <p>I'm in Odoo15 and i want to modify the header in Odoo view</p>
<p>I have <strong>Quotations / S00156</strong> like in the image, but the client want only the first 3 numbers, should look something like this <strong>Quotations / S156</strong></p>
<p>How can I modify this in Odoo? I only have to modify the way it look... | [
{
"answer_id": 74398492,
"author": "hadi purnomo",
"author_id": 9002661,
"author_profile": "https://Stackoverflow.com/users/9002661",
"pm_score": -1,
"selected": false,
"text": "class Bar(Foo):\n def __init__(self):\n super().__init__(self)\n self.val = []\n\n def fun... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19883757/"
] |
74,398,278 | <p>I am using reactjs. On the frontend I am getting the time in format "mm:ss" example data:</p>
<pre><code>const data [{
duration: "00:10" //I want 10
}, {
duration: "20:00" //I want 1200
}, {
duration: "30:00" // I want 1800
}]
</code></pre>
<p>I tried this and a lot but... | [
{
"answer_id": 74398492,
"author": "hadi purnomo",
"author_id": 9002661,
"author_profile": "https://Stackoverflow.com/users/9002661",
"pm_score": -1,
"selected": false,
"text": "class Bar(Foo):\n def __init__(self):\n super().__init__(self)\n self.val = []\n\n def fun... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6838854/"
] |
74,398,301 | <p>There are 2 lists. What I am trying to do is to find the occurrence of first list elements and will hold the values of second list for a key in first list and in the end, it will become dictionary holding specific keys from list 1 and values from list 2</p>
<p>Input:</p>
<pre><code>list1 = ['A', 'A', 'B', 'B', 'C', ... | [
{
"answer_id": 74398492,
"author": "hadi purnomo",
"author_id": 9002661,
"author_profile": "https://Stackoverflow.com/users/9002661",
"pm_score": -1,
"selected": false,
"text": "class Bar(Foo):\n def __init__(self):\n super().__init__(self)\n self.val = []\n\n def fun... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15749060/"
] |
74,398,311 | <p>I have a lot of categorical columns and want to convert values in those columns to numerical values so that I will be able to apply ML model.</p>
<p>Now by data looks something like below.</p>
<p>Column 1- Good/bad/poor/not reported
column 2- Red/amber/green
column 3- 1/2/3
column 4- Yes/No</p>
<p>Now I have alrea... | [
{
"answer_id": 74398610,
"author": "ai_10111",
"author_id": 17209580,
"author_profile": "https://Stackoverflow.com/users/17209580",
"pm_score": 0,
"selected": false,
"text": "red = 100\namber = 010\ngreen = 001\n"
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19476450/"
] |
74,398,314 | <p>Please find the attached Groovy code which I am using to get the particular filed from the response body.</p>
<p>Query 1 :</p>
<p>It is retrieving the results when the I am using the correct Index value like if the data.RenewalDetails[o], will give output as Value 1 and if the data.RenewalDetails[1], output as Value... | [
{
"answer_id": 74398610,
"author": "ai_10111",
"author_id": 17209580,
"author_profile": "https://Stackoverflow.com/users/17209580",
"pm_score": 0,
"selected": false,
"text": "red = 100\namber = 010\ngreen = 001\n"
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19685966/"
] |
74,398,335 | <p>I write a odoo program in python, this way request type <strong>text/plain</strong> is working. And <strong>application/json</strong> request work in any other odoo version(Odoo 15,Odoo 16) .But odoo 13 application/json request not working.</p>
<p><strong>My odoo python controller code here:-</strong></p>
<pre><co... | [
{
"answer_id": 74398610,
"author": "ai_10111",
"author_id": 17209580,
"author_profile": "https://Stackoverflow.com/users/17209580",
"pm_score": 0,
"selected": false,
"text": "red = 100\namber = 010\ngreen = 001\n"
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19718656/"
] |
74,398,345 | <p>I had a technical test for an entry-level job 2 days ago. It went well apart from the last assessment.
I will go over the assessment with the CTO tomorrow and was hoping I could get help to get my head around this one, so I do not sound clueless.
It was something like this:</p>
<p><em><strong>Given string as an argu... | [
{
"answer_id": 74405756,
"author": "steenslag",
"author_id": 290394,
"author_profile": "https://Stackoverflow.com/users/290394",
"pm_score": 2,
"selected": false,
"text": "ar = str.chars ar.combination(5)"
},
{
"answer_id": 74405832,
"author": "Konstantin Strukov",
"autho... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16621883/"
] |
74,398,350 | <p><a href="https://i.stack.imgur.com/0yDsf.png" rel="nofollow noreferrer">https://i.stack.imgur.com/0yDsf.png</a></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>year</th>
<th>month</th>
<th>no_of_people</th>
<th>avg</th>
</tr>
</thead>
<tbody>
<tr>
<td>2005</td>
<td>1</td>
<td>Overall</td... | [
{
"answer_id": 74398680,
"author": "Akina",
"author_id": 10138734,
"author_profile": "https://Stackoverflow.com/users/10138734",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE test (\n `year` YEAR,\n `month` TINYINT,\n sub_housing_type VARCHAR(8),\n `avg` DECIMAL(3,1));\nINSE... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20474812/"
] |
74,398,384 | <blockquote>
<p>I am new at flutter. I am currently using FlutterFlow to develop and for custom coding I am using Flutter on VS code.<br />
I think I am doing something wrong while installing flutter (check flutter doctor) that's why I am getting this error.<br />
Please let me know what is going wrong.<br />
FYI - App... | [
{
"answer_id": 74398680,
"author": "Akina",
"author_id": 10138734,
"author_profile": "https://Stackoverflow.com/users/10138734",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE test (\n `year` YEAR,\n `month` TINYINT,\n sub_housing_type VARCHAR(8),\n `avg` DECIMAL(3,1));\nINSE... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19472423/"
] |
74,398,396 | <p>I wanted to delete each line after clicking its corresponding delete. I couldn't track the parent-child things. What is wrong in my code?</p>
<p>My HTML</p>
<pre><code> <div class="li">
<li> Apple <button>Delete</button></li>
<li> Ball <button>De... | [
{
"answer_id": 74398680,
"author": "Akina",
"author_id": 10138734,
"author_profile": "https://Stackoverflow.com/users/10138734",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE test (\n `year` YEAR,\n `month` TINYINT,\n sub_housing_type VARCHAR(8),\n `avg` DECIMAL(3,1));\nINSE... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464620/"
] |
74,398,429 | <p>I want to show pagination on my page based on the data from the resource collection.</p>
<p>I have done this code for get data in collection and paginate.</p>
<pre><code> return auth()->user()->hasRole('admin')
? ArticleResource::collection(Article::latest()->paginate(5))
: ArticleRe... | [
{
"answer_id": 74398680,
"author": "Akina",
"author_id": 10138734,
"author_profile": "https://Stackoverflow.com/users/10138734",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE test (\n `year` YEAR,\n `month` TINYINT,\n sub_housing_type VARCHAR(8),\n `avg` DECIMAL(3,1));\nINSE... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20211778/"
] |
74,398,433 | <pre class="lang-cs prettyprint-override"><code> protected void Page_Load(object sender, EventArgs e)
{
}
protected void cusCustom_ServerValidate(object source, ServerValidateEventArgs args)
{
var dropDownValue = drpState.SelectedItem.Text;
if (dropDownValue == "" &&... | [
{
"answer_id": 74398515,
"author": "Jan",
"author_id": 2582968,
"author_profile": "https://Stackoverflow.com/users/2582968",
"pm_score": 2,
"selected": false,
"text": "public DummyClass {\n public string Name {get;set;}\n}\n var result = jsonSerialization.DeserializeObject<DummyClass>(r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16233808/"
] |
74,398,466 | <p>I tried this</p>
<pre><code>if ($('nav li.menu-item-has-children:has(ul)'))
$ ('nav li.menu-item-has-children a').append ( "<span class=\"plus-minus\">+</span>");
</code></pre>
<p>but all the anchor tags child menus are also getting the same HTML element Added</p>
<p>this is the menu ... | [
{
"answer_id": 74398515,
"author": "Jan",
"author_id": 2582968,
"author_profile": "https://Stackoverflow.com/users/2582968",
"pm_score": 2,
"selected": false,
"text": "public DummyClass {\n public string Name {get;set;}\n}\n var result = jsonSerialization.DeserializeObject<DummyClass>(r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9456137/"
] |
74,398,490 | <p>I have a dataframe which contains double quote (") and comma in value. I am trying to export the dataframe into csv but unfortunately double quote is not displayed properly in exported csv.</p>
<p>I managed to handle all other special characters by setting "quoteAll" to true.</p>
<p>In csv, if you rep... | [
{
"answer_id": 74398515,
"author": "Jan",
"author_id": 2582968,
"author_profile": "https://Stackoverflow.com/users/2582968",
"pm_score": 2,
"selected": false,
"text": "public DummyClass {\n public string Name {get;set;}\n}\n var result = jsonSerialization.DeserializeObject<DummyClass>(r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2988458/"
] |
74,398,502 | <p>I'm new to c and I'm trying to make a function to return the max between two numbers, and I don't know why it does not work, it does not show anything</p>
<pre><code>int max(int num1, int num2) {
int result;
if (num1 > num2)
result = num1;
else
result = num2;
return result;
}
int ma... | [
{
"answer_id": 74398537,
"author": "hknjj",
"author_id": 1925445,
"author_profile": "https://Stackoverflow.com/users/1925445",
"pm_score": 2,
"selected": false,
"text": "printf(\"%d\", result);\n printf(\"max is %d\\n\", result);\n"
},
{
"answer_id": 74398560,
"author": "SouL... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19205134/"
] |
74,398,534 | <p>I'm using this <a href="https://github.com/bokuweb/re-resizable" rel="nofollow noreferrer">re-resizable</a> library to achieve the resize functionality. The requirement is to achieve the one-side resizing, which means if I resize from the right side of the div, only that side should expand to the right. The left sid... | [
{
"answer_id": 74398537,
"author": "hknjj",
"author_id": 1925445,
"author_profile": "https://Stackoverflow.com/users/1925445",
"pm_score": 2,
"selected": false,
"text": "printf(\"%d\", result);\n printf(\"max is %d\\n\", result);\n"
},
{
"answer_id": 74398560,
"author": "SouL... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12267640/"
] |
74,398,546 | <p>I have a state which is used to render some components conditionally, I have the following structure:</p>
<pre class="lang-js prettyprint-override"><code>
const SearchScreen = () => {
const [isSearchBarFocused, setIsSearchBarFocused] = React.useState(false);
return (
<>
<SearchBar onF... | [
{
"answer_id": 74399414,
"author": "kaledev",
"author_id": 20419301,
"author_profile": "https://Stackoverflow.com/users/20419301",
"pm_score": -1,
"selected": false,
"text": "const SearchScreen = () => {\n const [isSearchBarFocused, setIsSearchBarFocused] = React.useState(false);\n\n r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8582246/"
] |
74,398,563 | <p>I'm unable to use polars dataframes with scikitlearn for ML training.</p>
<p>Currently I'm doing all the dataframe preprocessing in polars and during model training i'm converting it into a pandas one in order for it to work.</p>
<p>Is there any method to directly use polars dataframe as it is for ML training withou... | [
{
"answer_id": 74399414,
"author": "kaledev",
"author_id": 20419301,
"author_profile": "https://Stackoverflow.com/users/20419301",
"pm_score": -1,
"selected": false,
"text": "const SearchScreen = () => {\n const [isSearchBarFocused, setIsSearchBarFocused] = React.useState(false);\n\n r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20474952/"
] |
74,398,569 | <p>I am stuck on an issue. Let's say I have a home page. From this home page, I want to route to either page A or page B.</p>
<p>I have a list of items on the home page and what I need to do is when I click on any item in the list, it makes a GET API call, and based on one field in the response which is a boolean, I ei... | [
{
"answer_id": 74398678,
"author": "Sparsh Jain",
"author_id": 11662604,
"author_profile": "https://Stackoverflow.com/users/11662604",
"pm_score": 1,
"selected": false,
"text": "import {useRouter} from \"next/router\";\n\nexport default function Page() {\n const router = useRouter()\n... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14833974/"
] |
74,398,573 | <p>I need to read an XML file that has
chars in some node contents and I need to keep that chars as is and avoid converting them into new lines. Those nodes have xmldsig signatures and converting
chars into new lines invalidate the signatures.</p>
<p>I have tried loading the XML with XmlDocument.Load, XmlReader, St... | [
{
"answer_id": 74398700,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": -1,
"selected": false,
"text": " "
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12380224/"
] |
74,398,581 | <p>Scenario: When the user clicks on it, the data should be passed into <code>someFunction()</code>.</p>
<pre class="lang-html prettyprint-override"><code><span id="someid" onClick={() => someFunction()} data-video-page="some data" class="dot" />`
</code></pre>
<p>I tried using <c... | [
{
"answer_id": 74398629,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "data* getAttribute() var data = document.getAttribute('data*');\n var element = document.querySelector('... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18445570/"
] |
74,398,582 | <p>My question is this.</p>
<p>I would like to add custom annotation to spring boot and designate it as declared without declaring a specific logic.</p>
<p>Suppose you have the following code:</p>
<pre><code>@MyCustomAnnotation
@Controller
public class ExController {
@RequestMapping(value = "/index", meth... | [
{
"answer_id": 74398629,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "data* getAttribute() var data = document.getAttribute('data*');\n var element = document.querySelector('... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825816/"
] |
74,398,584 | <pre><code>/Users/avinashkasukurthi/Developer/Flutter Projects/zopnote/consumer-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-C++' from project 'Pods')
warni... | [
{
"answer_id": 74398629,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "data* getAttribute() var data = document.getAttribute('data*');\n var element = document.querySelector('... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18458940/"
] |
74,398,596 | <p>I'm using vanilla JS and I want to persist data on <code>localStorage</code> when page refreshes:</p>
<p><strong>main.js</strong></p>
<pre><code>localStorage.setItem("language", "ar");
const toEnglish = (e) => {
if (e.target.closest(".english")) {
localStorage.setItem("la... | [
{
"answer_id": 74398629,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "data* getAttribute() var data = document.getAttribute('data*');\n var element = document.querySelector('... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20403738/"
] |
74,398,603 | <p>I am creating cloudFormation stack for s3 bucket (with the help of yaml template file). Is there a way by which we can automatically delete the created buckets? Can we configure the yaml templates such that the s3 bucket gets deleted after some time of its creation? If not what is the best way to programmaticaly del... | [
{
"answer_id": 74398629,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "data* getAttribute() var data = document.getAttribute('data*');\n var element = document.querySelector('... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20317320/"
] |
74,398,650 | <pre><code>protocol Readable {}
extension Readable {
func text() -> String? {
"in protocol"
}
}
struct Book: Readable {
func text() -> String {
"in struct"
}
}
let book: Book? = Book()
print(type(of: book?.text))
print(type(of: book!.text))
print(book?.text... | [
{
"answer_id": 74398629,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "data* getAttribute() var data = document.getAttribute('data*');\n var element = document.querySelector('... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20475036/"
] |
74,398,681 | <p>So I have been trying to figure out how to rerender the items map with new items when I click the "Mark Read" button. I tried putting the items in a useState and updating the state on button click, but the issue with that is when I set the state it's always one render behind because set state is async. How... | [
{
"answer_id": 74398873,
"author": "DimitarM",
"author_id": 9719646,
"author_profile": "https://Stackoverflow.com/users/9719646",
"pm_score": 2,
"selected": true,
"text": "const [items, setItems] = useState([]);\n\nconst getItems = useCallback( async() => {\n const fetchedItems = await ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16375164/"
] |
74,398,684 | <p>I have a pandas df of different permutations of values: (toy version below, but my actual df contains more columns and rows)</p>
<p>My goal is to remove the rows that contain duplicate values across rows but critically with also checking all columns.</p>
<pre><code>import itertools
check = list(itertools.permutation... | [
{
"answer_id": 74398873,
"author": "DimitarM",
"author_id": 9719646,
"author_profile": "https://Stackoverflow.com/users/9719646",
"pm_score": 2,
"selected": true,
"text": "const [items, setItems] = useState([]);\n\nconst getItems = useCallback( async() => {\n const fetchedItems = await ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12708740/"
] |
74,398,714 | <p>I have Angular application. I want to open a Bootstrap popup modal when user clicks on a link in the footer. Below is <a href="https://getbootstrap.com/docs/4.3/components/modal/" rel="nofollow noreferrer">my Bootstrap modal code</a>.</p>
<pre><code><button type="button" class="btn btn-primary"... | [
{
"answer_id": 74399936,
"author": "Fabian Strathaus",
"author_id": 17298437,
"author_profile": "https://Stackoverflow.com/users/17298437",
"pm_score": 2,
"selected": false,
"text": "constructor(private modalService: NgbModal) {} const modalRef = this.modalService.open(YourTermsOfUseComp... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8977696/"
] |
74,398,741 | <p>Im trying to create a cost calculator script. It basically shows if the manual input is for example 10$ and if you choose week, month or year it multiples with 52 for week, 12 for month and 1 for year so it shows the cost total in year.</p>
<p>In the code snippet there are 2 variables for a house and car. For house ... | [
{
"answer_id": 74399936,
"author": "Fabian Strathaus",
"author_id": 17298437,
"author_profile": "https://Stackoverflow.com/users/17298437",
"pm_score": 2,
"selected": false,
"text": "constructor(private modalService: NgbModal) {} const modalRef = this.modalService.open(YourTermsOfUseComp... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7889113/"
] |
74,398,744 | <p>I have found solutions in different languages, but not Python. Having limited experience in coding except Python and R, I can't translate them properly.</p>
<p>I have a list of files like this:</p>
<pre><code>file_list1 = ['/home/qrs/sample1.csv',
'/home/abc/sample1.csv',
'/home/mno/sample13.csv',
'/home/xyz/samp... | [
{
"answer_id": 74398959,
"author": "Abdul Niyas P M",
"author_id": 6699447,
"author_profile": "https://Stackoverflow.com/users/6699447",
"pm_score": 3,
"selected": true,
"text": "Path.parts any >>> from pathlib import Path\n>>> \n>>> \n>>> file_list1 = [\n... \"/home/qrs/sample1.csv\... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8379944/"
] |
74,398,760 | <p>I am using <code>FRENCH</code> Language in my mobile.</p>
<pre><code>DateFormat('MMMMEEEEd').format(DateTime.now())
</code></pre>
<p>It prints <code>vendredi 11 novembre</code></p>
<p>Expected output => <code>Vendredi 11 novembre</code></p>
<p>Is there any way to capitalize first letter without using string meth... | [
{
"answer_id": 74399784,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 0,
"selected": false,
"text": "final data = \"vendredi 11 novembre\";\n\nif (data.length > 1) { //just making sure string length\n final r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7758318/"
] |
74,398,764 | <pre><code>data = {'customer1': ['milk', 'bread'],
'customer2': ['butter'],
'customer3': ['beer', 'diapers'],
'customer4': ['milk', 'bread', 'butter'],
'customer5': ['bread']}
</code></pre>
<p>I want the Python function output to be</p>
<pre><code>{'milk': 2, 'bread': 3, 'butter': 2, 'beer': 1, 'diapers': 1}
</co... | [
{
"answer_id": 74399784,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 0,
"selected": false,
"text": "final data = \"vendredi 11 novembre\";\n\nif (data.length > 1) { //just making sure string length\n final r... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20239434/"
] |
74,398,788 | <p>I am learning rust by implementing a raytracer. I have a working prototype that is single threaded and I am trying to make it multithreaded.</p>
<p>In my code, I have a sampler which is basically a wrapper around <code>StdRng::seed_from_u64(123)</code> (this will change when I will add different types of samplers) t... | [
{
"answer_id": 74400113,
"author": "rodrigo",
"author_id": 865874,
"author_profile": "https://Stackoverflow.com/users/865874",
"pm_score": 0,
"selected": false,
"text": "&mut Sampler Arc<Mutex<Sampler>> let sampler = Arc::new(Mutex::new(create_sampler(&self.sampler_value)));\n//...\nfor ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7718534/"
] |
74,398,855 | <p>I am trying to make a program that returns <code>["1-5"]</code> if I give <code>[1,2,3,4,5]</code>.</p>
<p>I have made it but I can't filter it. So I want a code that will <strong>filter my output code</strong>. Or <strong>any code that is better than mine</strong>.</p>
<p><div class="snippet" data-lang="j... | [
{
"answer_id": 74398924,
"author": "Kristian",
"author_id": 3706717,
"author_profile": "https://Stackoverflow.com/users/3706717",
"pm_score": 0,
"selected": false,
"text": "[\"smallestelement-largestelement\"] var input1 = [1,2,3,4,5]\nconsole.log( \"[\"+'\"'+Math.min(...input1)+\"-\"+Ma... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17249101/"
] |
74,398,875 | <p>You need to show the user's name in the heading. The heading should say <code>Hello, (user)</code> when the user enters their name into the text box which is a simple form input and presses the button.</p>
<p>To display the user's name, you'll need to read the user's name from the query string. You need to read the ... | [
{
"answer_id": 74398924,
"author": "Kristian",
"author_id": 3706717,
"author_profile": "https://Stackoverflow.com/users/3706717",
"pm_score": 0,
"selected": false,
"text": "[\"smallestelement-largestelement\"] var input1 = [1,2,3,4,5]\nconsole.log( \"[\"+'\"'+Math.min(...input1)+\"-\"+Ma... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20475206/"
] |
74,398,929 | <p>i have a String <strong>"iye"</strong> and i want make it distinct and also i have a <strong>array ["hi", "bye", "bebe"]</strong> and i want to make each element of the array and get the distinct characters only so my array would be like this <strong>["hi", "bye... | [
{
"answer_id": 74398924,
"author": "Kristian",
"author_id": 3706717,
"author_profile": "https://Stackoverflow.com/users/3706717",
"pm_score": 0,
"selected": false,
"text": "[\"smallestelement-largestelement\"] var input1 = [1,2,3,4,5]\nconsole.log( \"[\"+'\"'+Math.min(...input1)+\"-\"+Ma... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13337068/"
] |
74,398,950 | <p>I have this code:</p>
<pre><code>public static void main(String[] args) throws ParseException {
String fecha = "2022-11-08 10:28:04.282551-06";
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSZ");
Date e = simpleDateFormat.parse(fe... | [
{
"answer_id": 74399110,
"author": "Dinuka Silva",
"author_id": 20457576,
"author_profile": "https://Stackoverflow.com/users/20457576",
"pm_score": 0,
"selected": false,
"text": "public static void main(String[] args) throws ParseException {\n String fecha = \"2022-11-08 10:28:04.2825... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20333373/"
] |
74,398,955 | <p>why localStorage is not defined</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code> const [bookmark, setBookmark] = useState([]);
const { showBookmark, setShowBookmark } ... | [
{
"answer_id": 74399055,
"author": "Bobby Thomas",
"author_id": 7632852,
"author_profile": "https://Stackoverflow.com/users/7632852",
"pm_score": -1,
"selected": false,
"text": "window.localStorage globalThis.localStorage"
},
{
"answer_id": 74399719,
"author": "Ali Iqbal",
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20066668/"
] |
74,398,962 | <p>as you know, some apps have splash screen. I have learned the make splash screen with native codes on Flutter.</p>
<p>For example:
android/app/src/main/res/drawable/launch_background.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch ... | [
{
"answer_id": 74399009,
"author": "Arijeet",
"author_id": 15387120,
"author_profile": "https://Stackoverflow.com/users/15387120",
"pm_score": 1,
"selected": false,
"text": "import 'package:flutter/material.dart';\nimport '../constants/constants.dart';\n\nclass SplashScreen extends State... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18849295/"
] |
74,398,977 | <p>I have values in an array object called farms. In this case, we are using the farms.map function.
However, this warning occurred, and when I searched the documentation, it was telling me to write a unique value for key.</p>
<pre><code>Warning: Each child in a list should have a unique "key" prop. in Reac... | [
{
"answer_id": 74398993,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 3,
"selected": true,
"text": "return (\n <React.Fragment key={v.placeId.toString()}>\n <TargetCon>\n <T... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19476497/"
] |
74,398,981 | <p>i got work to fix error when computing but i still dont have idea how to fix it because i'm still newbie</p>
<blockquote>
<p>Odoo Server Error</p>
<p>Traceback (most recent call last): File
"/home/equipAccounting/equip/odoo/addons/base/models/ir_http.py", line
237, in _dispatch
result = request.dispatch(... | [
{
"answer_id": 74398993,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 3,
"selected": true,
"text": "return (\n <React.Fragment key={v.placeId.toString()}>\n <TargetCon>\n <T... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7769113/"
] |
74,398,991 | <p>I have a switch case structure like this:</p>
<pre><code>var dict = new Dictionary<string, string>
{
{"title", "title.val"},
{"phone", "phone.val"},
{"address", "address.val"},
{"e_mail", "email.val"},
{"wo... | [
{
"answer_id": 74400008,
"author": "Hady_Khann",
"author_id": 14682350,
"author_profile": "https://Stackoverflow.com/users/14682350",
"pm_score": -1,
"selected": false,
"text": "case \"title\" or \"phone\" or \"address\" or \"e_mail\" or \"work_phone\":\n\ncase \"title\",\"phone\",\"addr... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74398991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1104951/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.