qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,574,974
<p>I have two vectors</p> <pre><code>a &lt;- c(1,1,1,1,20,30,40,100,300) b &lt;- c(2,2,2,2,100,0,0,120,5) </code></pre> <p>I want to create a vector that compares and gives you the maximum of both vectors only for last 5 elements.</p> <p>The first 4 elements must remain the same as in vector <code>a</code>.</p> <pre><c...
[ { "answer_id": 74574986, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 4, "selected": true, "text": "pmax > pmax(a,b)\n[1] 100 30 40 120 300\n > a <- c(1,1,1,1,20, 30,40,100,300)\n> b <- c(2,2,2,2, 100, 0, 0, 1...
2022/11/25
[ "https://Stackoverflow.com/questions/74574974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19633374/" ]
74,575,002
<p>Let's assume I have this table:</p> <pre><code>| ID | Amount | Value | |----------|-------------|-------| | 1 | 3 | 10 | | 1 | 1 | 25 | | 2 | 1 | 35 | </code></pre> <p>How can I transform into this?:</p> <pre><code>| ID | Total Value |...
[ { "answer_id": 74575058, "author": "masoud rafiee", "author_id": 4256602, "author_profile": "https://Stackoverflow.com/users/4256602", "pm_score": 0, "selected": false, "text": "Select id,Sum(Amount *Value) as TotalValue\nfrom table \ngroup by id\n" }, { "answer_id": 74575079, ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20553293/" ]
74,575,016
<p>There are two layers in a mapbox map inside a react app. I am new to both. I want to disable clicking in one layer, when the other is visible. I control the visibility of each layer from a checkbox value via react.</p> <p>I have this code</p> <pre><code>export default function Map () { const [checkedLayer, setC...
[ { "answer_id": 74575058, "author": "masoud rafiee", "author_id": 4256602, "author_profile": "https://Stackoverflow.com/users/4256602", "pm_score": 0, "selected": false, "text": "Select id,Sum(Amount *Value) as TotalValue\nfrom table \ngroup by id\n" }, { "answer_id": 74575079, ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9267316/" ]
74,575,017
<p>I am expecting JSON object from an API which is like:</p> <pre><code>{ &quot;header&quot;:{ &quot;message_type&quot;:&quot;message_type&quot;, &quot;notification_type&quot;:&quot;notification_type&quot; }, &quot;body&quot;:{ &quot;id&quot;:&quot;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&quot;, ...
[ { "answer_id": 74575058, "author": "masoud rafiee", "author_id": 4256602, "author_profile": "https://Stackoverflow.com/users/4256602", "pm_score": 0, "selected": false, "text": "Select id,Sum(Amount *Value) as TotalValue\nfrom table \ngroup by id\n" }, { "answer_id": 74575079, ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3044446/" ]
74,575,018
<p>I'm creating a VBA script which will delete a lot of blank columns from a downloaded excel file. As the total number of columns are likely to change over time, I can't just use the cell reference as any changes would knock the macro out of sync (like it has already). Now, I want to target the columns by their column...
[ { "answer_id": 74575260, "author": "Notus_Panda", "author_id": 19353309, "author_profile": "https://Stackoverflow.com/users/19353309", "pm_score": 2, "selected": false, "text": "Sub deleteEmptyColumns()\n Dim lastColumn As Long\n lastColumn = Cells(1, Columns.Count).End(xlToLeft).C...
2022/11/25
[ "https://Stackoverflow.com/questions/74575018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10664729/" ]
74,575,019
<p>I'm having troubles trying to write intelligible <code>pandas</code> which makes me feel like I'm missing some feature or usage (probably of the <code>pd.melt</code> method).</p> <p>I have two datasets I want to combine. Both are similar:</p> <ul> <li><code>time</code> indicating when the state changed</li> <li><cod...
[ { "answer_id": 74575260, "author": "Notus_Panda", "author_id": 19353309, "author_profile": "https://Stackoverflow.com/users/19353309", "pm_score": 2, "selected": false, "text": "Sub deleteEmptyColumns()\n Dim lastColumn As Long\n lastColumn = Cells(1, Columns.Count).End(xlToLeft).C...
2022/11/25
[ "https://Stackoverflow.com/questions/74575019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1560414/" ]
74,575,072
<p>I have a .Rmd file which I am converting to PDF. For layout reasons, I want to display the generated output plot of my code chunk on the next page even though it would just fit in underneath.</p> <p>Normally with text etc. one would use</p> <pre><code>\pagebreak </code></pre> <p>But how can I signalize the code chun...
[ { "answer_id": 74575328, "author": "polkas", "author_id": 5442527, "author_profile": "https://Stackoverflow.com/users/5442527", "pm_score": 0, "selected": false, "text": "knitr ```{r cars-plot, dev='png', fig.show='hide'}\nplot(cars)\n```\n\n\\newpage\n\n![A nice plot.](\\`r knitr::fig_c...
2022/11/25
[ "https://Stackoverflow.com/questions/74575072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573894/" ]
74,575,084
<p>I have a df which looks like this</p> <pre><code>Type range Mike 10..13|7|8| Ni 3..4 NANA 2|1|6 </code></pre> <p>and desired output should look like this</p> <pre><code>Type range Mike 10 Mike 11 Mike 12 Mike 13 Mike 7 Mike 8 Nico 3 Nico 4 NANA 2 NANA 1 NANA 6 </code...
[ { "answer_id": 74575328, "author": "polkas", "author_id": 5442527, "author_profile": "https://Stackoverflow.com/users/5442527", "pm_score": 0, "selected": false, "text": "knitr ```{r cars-plot, dev='png', fig.show='hide'}\nplot(cars)\n```\n\n\\newpage\n\n![A nice plot.](\\`r knitr::fig_c...
2022/11/25
[ "https://Stackoverflow.com/questions/74575084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17561414/" ]
74,575,086
<p>I need to pass a parameter from a parent validator to a child validator, by using <code>.SetValidator()</code> but having trouble with registering a validator to the DI container using FluentValidation's <a href="https://docs.fluentvalidation.net/en/latest/di.html#automatic-registration" rel="nofollow noreferrer">au...
[ { "answer_id": 74575328, "author": "polkas", "author_id": 5442527, "author_profile": "https://Stackoverflow.com/users/5442527", "pm_score": 0, "selected": false, "text": "knitr ```{r cars-plot, dev='png', fig.show='hide'}\nplot(cars)\n```\n\n\\newpage\n\n![A nice plot.](\\`r knitr::fig_c...
2022/11/25
[ "https://Stackoverflow.com/questions/74575086", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1792207/" ]
74,575,089
<p>I allocated a space of memory with malloc (to have a matrix) and I have to move the &quot;row&quot; at the end, I tried this:</p> <pre><code>double **dataset = fill_dataset(....); double* temp = malloc((d + 1) * sizeof(double )); for (int i = 0; i &lt; d + 1; i++) { temp[i] = dataset[0][i]; } memmove(&amp;data...
[ { "answer_id": 74575328, "author": "polkas", "author_id": 5442527, "author_profile": "https://Stackoverflow.com/users/5442527", "pm_score": 0, "selected": false, "text": "knitr ```{r cars-plot, dev='png', fig.show='hide'}\nplot(cars)\n```\n\n\\newpage\n\n![A nice plot.](\\`r knitr::fig_c...
2022/11/25
[ "https://Stackoverflow.com/questions/74575089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11999953/" ]
74,575,127
<p>(I am new to Python so forgive me in advance) I have to write a program that calculates the total of integers from 1 to the user input. So if I input 4, it would add 1+2+3+4. I also added an argument that makes a number that is less than 1 print &quot;invalid number&quot;. I am stuck on adding a sentinel that is a l...
[ { "answer_id": 74575328, "author": "polkas", "author_id": 5442527, "author_profile": "https://Stackoverflow.com/users/5442527", "pm_score": 0, "selected": false, "text": "knitr ```{r cars-plot, dev='png', fig.show='hide'}\nplot(cars)\n```\n\n\\newpage\n\n![A nice plot.](\\`r knitr::fig_c...
2022/11/25
[ "https://Stackoverflow.com/questions/74575127", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17678643/" ]
74,575,147
<p>I have this dropdown select is working</p> <pre><code> &lt;select name=&quot;name&quot; [(ngModel)]=&quot;name&quot;&gt; &lt;option value=&quot;ACTIVE&quot; [selected]=&quot;name.status=='ACTIVE' || name.status==null&quot;&gt;Active&lt;/option&gt; &lt;option value=&quot;INACTIVE&quot; [selected]=&quot;name.status=...
[ { "answer_id": 74575297, "author": "MoxxiManagarm", "author_id": 11011793, "author_profile": "https://Stackoverflow.com/users/11011793", "pm_score": 1, "selected": false, "text": "ngModel selected <select [(ngModel)]=\"name.status\">\n <option value=\"ACTIVE\">Active</option>\n <option...
2022/11/25
[ "https://Stackoverflow.com/questions/74575147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3653474/" ]
74,575,151
<p>I have a dataframe that includes a column ['locality_name'] with names of villages, towns, cities. Some names are written like &quot;town of Hamilton&quot;, some like &quot;Hamilton&quot;, some like &quot;city of Hamilton&quot; etc. As such, it's hard to count unique values etc. My goal is to leave the names only.</...
[ { "answer_id": 74575297, "author": "MoxxiManagarm", "author_id": 11011793, "author_profile": "https://Stackoverflow.com/users/11011793", "pm_score": 1, "selected": false, "text": "ngModel selected <select [(ngModel)]=\"name.status\">\n <option value=\"ACTIVE\">Active</option>\n <option...
2022/11/25
[ "https://Stackoverflow.com/questions/74575151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19256527/" ]
74,575,184
<p>I'm unable to change background-color of list items to black while :hover. one the other hand there is no problem with changing color.</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-ov...
[ { "answer_id": 74575297, "author": "MoxxiManagarm", "author_id": 11011793, "author_profile": "https://Stackoverflow.com/users/11011793", "pm_score": 1, "selected": false, "text": "ngModel selected <select [(ngModel)]=\"name.status\">\n <option value=\"ACTIVE\">Active</option>\n <option...
2022/11/25
[ "https://Stackoverflow.com/questions/74575184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479364/" ]
74,575,197
<p>I'm writing a simple console application in C# using top-level statements, and I want to check at the beginning whethere there exists a database. Here's my code:</p> <pre class="lang-csharp prettyprint-override"><code>using MySql.Data.MySqlClient; using (MySqlConnection connection = new MySqlConnection(&quot;Server...
[ { "answer_id": 74575268, "author": "vivek nuna", "author_id": 6527049, "author_profile": "https://Stackoverflow.com/users/6527049", "pm_score": 1, "selected": false, "text": "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATAWHERE SCHEMA_NAME LIKE 'database_name'; SCHEMATAWHERE SELECT ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20590337/" ]
74,575,198
<p>I learned how to have a textbox and when the value is empty the button is disabled and when I enter a value in the textbox the button is enabled.</p> <p>Now I want to have a login form that contains one textbox (for username) and another textbox (for password), so here I learned how to code. But how should I write t...
[ { "answer_id": 74575374, "author": "Jonathan Barraone", "author_id": 17957703, "author_profile": "https://Stackoverflow.com/users/17957703", "pm_score": 2, "selected": true, "text": " private void txtUserName_TextChanged(object sender, EventArgs e)\n {\n CheckFields();\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14348692/" ]
74,575,200
<p>I have an application that runs inside a docker container. First I build the image and then run the container. My run command is:</p> <pre><code>docker run --rm -it -e MODE=custom -e Station=RT -e StartDateReport=2022-09-10 -e Period=1 my-image:1.0.0 </code></pre> <p>I declare the variables <code>MODE, Station, Star...
[ { "answer_id": 74575374, "author": "Jonathan Barraone", "author_id": 17957703, "author_profile": "https://Stackoverflow.com/users/17957703", "pm_score": 2, "selected": true, "text": " private void txtUserName_TextChanged(object sender, EventArgs e)\n {\n CheckFields();\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16978454/" ]
74,575,237
<p>I have installed Appium 2.0 using command line but unable to see the appium-webdriveragent folder under <strong>/usr/local/lib/node_modules/appium/node_modules/</strong> path (no folder found which is starts with appium).</p> <p><strong>Theses are the following commands I ran:</strong> npm install -g appium@next bre...
[ { "answer_id": 74575374, "author": "Jonathan Barraone", "author_id": 17957703, "author_profile": "https://Stackoverflow.com/users/17957703", "pm_score": 2, "selected": true, "text": " private void txtUserName_TextChanged(object sender, EventArgs e)\n {\n CheckFields();\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16087057/" ]
74,575,280
<p>I want to create a script (for Google Tag Manager) that checks if an object's property is present in an array:</p> <pre><code>var array1 = [X, Y, Z] var array2 = [ {item1=value1,item2=value2,item3=value3}, {item1=value1,item2=value2,item3=value3} ] var total = 0; </code></pre> <p>If property 1 of the object is p...
[ { "answer_id": 74575374, "author": "Jonathan Barraone", "author_id": 17957703, "author_profile": "https://Stackoverflow.com/users/17957703", "pm_score": 2, "selected": true, "text": " private void txtUserName_TextChanged(object sender, EventArgs e)\n {\n CheckFields();\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20600776/" ]
74,575,294
<p>I am desperate over a data analysis task that I would like to perform on a dataframe in python. So, this is the dataframe that I have:</p> <pre><code>df = pd.DataFrame({&quot;Person&quot;: [&quot;P1&quot;, &quot;P1&quot;,&quot;P1&quot;,&quot;P1&quot;,&quot;P1&quot;,&quot;P1&quot;,&quot;P1&quot;,&quot;P1&quot;,&quot;...
[ { "answer_id": 74575374, "author": "Jonathan Barraone", "author_id": 17957703, "author_profile": "https://Stackoverflow.com/users/17957703", "pm_score": 2, "selected": true, "text": " private void txtUserName_TextChanged(object sender, EventArgs e)\n {\n CheckFields();\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575294", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20600825/" ]
74,575,299
<p>I have a list let suppose F = [Jonii, Max, anna, xyz, etc..] and df which contains 2 column- Name and Corrected_Name. <a href="https://i.stack.imgur.com/k6dWr.png" rel="nofollow noreferrer">df</a></p> <p>I need to search each string from list into df[Name] and replace it with df[Corrected_Name]. For eg. in above, co...
[ { "answer_id": 74575512, "author": "Pierre D", "author_id": 758174, "author_profile": "https://Stackoverflow.com/users/758174", "pm_score": 1, "selected": false, "text": "dict d = {k: v for k, v in zip(df['Name'], df['Corrected_Name'])}\nf = [d.get(k, k) for k in F]\n df = pd.DataFrame([...
2022/11/25
[ "https://Stackoverflow.com/questions/74575299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18620929/" ]
74,575,307
<p>The case is that I have some data separated by commas that originally are two variables. One categorical and one numerical. Here you can see a sample:</p> <pre><code>-5,50,D -5,50,S 0,00,T -5,50,S -5,28,S -5,25,C </code></pre> <p>As you can see in the previous sample if I separate the file by commas I get a dataset...
[ { "answer_id": 74575396, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "tidyr::extract() library(tidyr)\n\nextract(dat, x, into = c(\"num\", \"char\"), \"(-?\\\\d*,\\\\d*),(\\\\w*)\")\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20503504/" ]
74,575,329
<p>I have a Google sheet like this: <a href="https://i.stack.imgur.com/q5PFg.png" rel="nofollow noreferrer">spreadsheet</a> and I am trying to figure out if in column O it is possible to check if there is a value in a cell and then count all empty cells before it in the row? So for example O2 should say 3 and O3 shou...
[ { "answer_id": 74575396, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "tidyr::extract() library(tidyr)\n\nextract(dat, x, into = c(\"num\", \"char\"), \"(-?\\\\d*,\\\\d*),(\\\\w*)\")\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575329", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4098476/" ]
74,575,336
<p>I have the following function below</p> <p>I'd like to sample from this CDF (x values) but can't find the inverse function by hand. Is there a way to do it in R?</p> <pre><code>a &lt;- 3.1 be &lt;- -0.15 ga &lt;- 0.78 delt &lt;- 0.12 c&lt;- 3.5 b &lt;- exp(a+be*c*(1+c)) g &lt;- exp((ga+delt*c)*c) flc_F &lt;- fun...
[ { "answer_id": 74575396, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "tidyr::extract() library(tidyr)\n\nextract(dat, x, into = c(\"num\", \"char\"), \"(-?\\\\d*,\\\\d*),(\\\\w*)\")\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4504877/" ]
74,575,344
<p>I have a table 'processes' with the following columns :</p> <ul> <li>id</li> <li>date_creation</li> <li>date_lastrun</li> </ul> <p>For example I have the following entries:</p> <pre><code>id;date_creation;date_lastrun 1;2022-01-01 00:00:00;2022-02-01 00:00:00 2;2022-03-01 00:00:00;NULL </code></pre> <p>I want to sel...
[ { "answer_id": 74575696, "author": "Jonas Metzler", "author_id": 18794826, "author_profile": "https://Stackoverflow.com/users/18794826", "pm_score": 0, "selected": false, "text": "GREATEST COALESCE SELECT id, GREATEST(COALESCE(date_creation,0), COALESCE(date_lastrun,0)) AS lastdate\nFROM...
2022/11/25
[ "https://Stackoverflow.com/questions/74575344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18881168/" ]
74,575,380
<p>So I'm totally at a loss as to the issue here and for once can't find the answer already on here.</p> <p>I have an access database that calls a sub in excel and runs it perfectly. Then it flicks back to access, asks a question and then, depending upon the answer of that, should call a second sub in the same excel sp...
[ { "answer_id": 74575696, "author": "Jonas Metzler", "author_id": 18794826, "author_profile": "https://Stackoverflow.com/users/18794826", "pm_score": 0, "selected": false, "text": "GREATEST COALESCE SELECT id, GREATEST(COALESCE(date_creation,0), COALESCE(date_lastrun,0)) AS lastdate\nFROM...
2022/11/25
[ "https://Stackoverflow.com/questions/74575380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20600871/" ]
74,575,387
<p>Unique values of the column as follows:</p> <pre><code>array(['..', '0', nan, ..., '30.0378539547197', '73.3261637778593', '59.9402466154723'], dtype=object) </code></pre> <p>I use the following codes to drop NaNs and None.</p> <pre><code>df[df[&quot;Country Name&quot;].isin([None]) == False] </code></pre> <p...
[ { "answer_id": 74575696, "author": "Jonas Metzler", "author_id": 18794826, "author_profile": "https://Stackoverflow.com/users/18794826", "pm_score": 0, "selected": false, "text": "GREATEST COALESCE SELECT id, GREATEST(COALESCE(date_creation,0), COALESCE(date_lastrun,0)) AS lastdate\nFROM...
2022/11/25
[ "https://Stackoverflow.com/questions/74575387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18049878/" ]
74,575,389
<p>I have a scenario where I want to change properties of object in an array. That array is wrapped inside another object.</p> <pre class="lang-js prettyprint-override"><code> const defaultData = { title: &quot;Title&quot;, subtitle: &quot;Subtitle&quot;, books: [ { bookId: &quot;1&quot;, imageSrc...
[ { "answer_id": 74575688, "author": "dram95", "author_id": 13335147, "author_profile": "https://Stackoverflow.com/users/13335147", "pm_score": 0, "selected": false, "text": " console.log({...defaultData['books'][0]['panelsCollected'] = 10})\n console.log(defaultData);\n" }, { "an...
2022/11/25
[ "https://Stackoverflow.com/questions/74575389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11213551/" ]
74,575,436
<p>The assignment operator appears to work differently for lists than it does for integers:</p> <pre><code>&gt;&gt;&gt; list1 = [1,2,3,4,5] &gt;&gt;&gt; newlist1 = list1 &gt;&gt;&gt; print(id(list1)) 140282759536448 &gt;&gt;&gt; print(id(newlist1)) 140282759536448 &gt;&gt;&gt; newlist1.append(6) &gt;&gt;&gt; print(id(n...
[ { "answer_id": 74575688, "author": "dram95", "author_id": 13335147, "author_profile": "https://Stackoverflow.com/users/13335147", "pm_score": 0, "selected": false, "text": " console.log({...defaultData['books'][0]['panelsCollected'] = 10})\n console.log(defaultData);\n" }, { "an...
2022/11/25
[ "https://Stackoverflow.com/questions/74575436", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11805477/" ]
74,575,439
<p><a href="https://i.stack.imgur.com/8wLmc.png" rel="nofollow noreferrer">example of output should be </a></p> <p>please help thank you in advance!!</p> <p>the output of the code in username should be the 2 letter in firt name and 3 in last name and date number</p> <pre><code>public static void main(String[] args) { ...
[ { "answer_id": 74575688, "author": "dram95", "author_id": 13335147, "author_profile": "https://Stackoverflow.com/users/13335147", "pm_score": 0, "selected": false, "text": " console.log({...defaultData['books'][0]['panelsCollected'] = 10})\n console.log(defaultData);\n" }, { "an...
2022/11/25
[ "https://Stackoverflow.com/questions/74575439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20068089/" ]
74,575,458
<p>I have a function:</p> <pre><code>with open(filename,'r') as text: data=text.readlines() split=str(data).split('([.|?])') for line in split: print(line) </code></pre> <p>This prints the sentences that we have after splitting a text by 2 different marks. I also want to show the split symbol in the outp...
[ { "answer_id": 74575688, "author": "dram95", "author_id": 13335147, "author_profile": "https://Stackoverflow.com/users/13335147", "pm_score": 0, "selected": false, "text": " console.log({...defaultData['books'][0]['panelsCollected'] = 10})\n console.log(defaultData);\n" }, { "an...
2022/11/25
[ "https://Stackoverflow.com/questions/74575458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5556466/" ]
74,575,484
<p>I wrote a function with clsql. All it does is read the entire table. First it opens the connection, reads, then closes.</p> <pre class="lang-lisp prettyprint-override"><code>(defun select() (clsql:connect &quot;new.db&quot; :database-type :sqlite3) (clsql:print-query &quot;select * from contacts&quot; :ti...
[ { "answer_id": 74575578, "author": "Rainer Joswig", "author_id": 69545, "author_profile": "https://Stackoverflow.com/users/69545", "pm_score": 4, "selected": true, "text": "UNWIND-PROTECT (unwind-protect (read-the-file stream)\n (print \"closing\")\n (close stream))\n CL-USER 41 > (unw...
2022/11/25
[ "https://Stackoverflow.com/questions/74575484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16237416/" ]
74,575,504
<p>The following <strong>SecurityWebFilterChain</strong> works very fine in Spring Boot 2.7.x but not working any more in Spring Boot 3.0.0. It just show &quot;<strong>An expected CSRF token cannot be found</strong>&quot; when calling the REST API in Postman. Would you please to teach me how to solve it?</p> <pre><code...
[ { "answer_id": 74575578, "author": "Rainer Joswig", "author_id": 69545, "author_profile": "https://Stackoverflow.com/users/69545", "pm_score": 4, "selected": true, "text": "UNWIND-PROTECT (unwind-protect (read-the-file stream)\n (print \"closing\")\n (close stream))\n CL-USER 41 > (unw...
2022/11/25
[ "https://Stackoverflow.com/questions/74575504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3156889/" ]
74,575,522
<p>I have two lists.</p> <p>List1 is the list of items I am trying to format</p> <p>List2 is a list of item locations in List1 that I need to remove (condensing duplicates)</p> <p>The issue seems to be that it first removes the first location (9) and then removes the second (16) after...instead of doing them simultaneo...
[ { "answer_id": 74575639, "author": "Jonas", "author_id": 20599721, "author_profile": "https://Stackoverflow.com/users/20599721", "pm_score": 1, "selected": false, "text": "sorted(List2, key=List2.index, reverse=True) List1 = [\"HST\", \"BA\", \"CRM\", \"QQQ\", \"IYR\", \"TDG\", \"HD\", \...
2022/11/25
[ "https://Stackoverflow.com/questions/74575522", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14775158/" ]
74,575,523
<p>I have this program that reads a file and prints the desired amount of most common words. I don't know how to print the words that appear the same amount of times.</p> <p>Here's my code:</p> <pre><code>number_of_words = int(input('Enter how many top words you want to see: ')) uniques = [] stop_words = [&quot;a&quot;...
[ { "answer_id": 74575644, "author": "Usman Arshad", "author_id": 20582506, "author_profile": "https://Stackoverflow.com/users/20582506", "pm_score": 1, "selected": false, "text": "count_with_word = {}\nfor i in range(min(number_of_words, len(counts))):\n count, word = counts[i]\n if...
2022/11/25
[ "https://Stackoverflow.com/questions/74575523", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20238116/" ]
74,575,556
<p>I have this problem and I know that it can be carried out in several ways.</p> <p>Assume that the returns of a security X are distributed according to a normal law with mean m=0 and standard deviation s=5.</p> <ul> <li>What is the value at risk at 1 percent (i.e., that minimum value below which it will go in 1 perce...
[ { "answer_id": 74575644, "author": "Usman Arshad", "author_id": 20582506, "author_profile": "https://Stackoverflow.com/users/20582506", "pm_score": 1, "selected": false, "text": "count_with_word = {}\nfor i in range(min(number_of_words, len(counts))):\n count, word = counts[i]\n if...
2022/11/25
[ "https://Stackoverflow.com/questions/74575556", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16168529/" ]
74,575,557
<p>I need to bind a formControl to a form with a formGroup without being nested into it, and keeping the default mat-errot error state matching.</p> <p>I have tried</p> <p>app.component.html</p> <pre><code>&lt;form [formGroup]=&quot;formAdd&quot; (ngSubmit)=&quot;onSubmit()&quot;&gt;&lt;/form&gt; &lt;!-- somewhere e...
[ { "answer_id": 74575644, "author": "Usman Arshad", "author_id": 20582506, "author_profile": "https://Stackoverflow.com/users/20582506", "pm_score": 1, "selected": false, "text": "count_with_word = {}\nfor i in range(min(number_of_words, len(counts))):\n count, word = counts[i]\n if...
2022/11/25
[ "https://Stackoverflow.com/questions/74575557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14184507/" ]
74,575,570
<p>I have a list <code>testEle</code> which contains 100 elements. I am iterating over it an need to filter only the values which contains anyone of elements in second list <code>finalList</code> {a1,a2,a3...so on}</p> <pre><code>testEle.stream().filter( x -&gt; x.matches(// any one of finalList element here)) </code><...
[ { "answer_id": 74575644, "author": "Usman Arshad", "author_id": 20582506, "author_profile": "https://Stackoverflow.com/users/20582506", "pm_score": 1, "selected": false, "text": "count_with_word = {}\nfor i in range(min(number_of_words, len(counts))):\n count, word = counts[i]\n if...
2022/11/25
[ "https://Stackoverflow.com/questions/74575570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13983643/" ]
74,575,595
<p>I am building REST APIs in Nodejs using AWS. I am expecting a response on Postman saying that the &quot;</p> <pre><code>Your Bid Must Be Higher than ${auction.highestBid.amount} </code></pre> <p>&quot; But instead, I get an Internal Server Error on Postman and the error on AWS Cloudwatch looks like: <a href="https:/...
[ { "answer_id": 74575644, "author": "Usman Arshad", "author_id": 20582506, "author_profile": "https://Stackoverflow.com/users/20582506", "pm_score": 1, "selected": false, "text": "count_with_word = {}\nfor i in range(min(number_of_words, len(counts))):\n count, word = counts[i]\n if...
2022/11/25
[ "https://Stackoverflow.com/questions/74575595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14062271/" ]
74,575,599
<p>I'm trying to query a table using <code>pandas.read_sql_query</code>, where I want to match multiple columns to python lists passed in as <code>param</code> arguments. Running into various <code>psycopg2</code> errors when trying to accomplish this.</p> <p>Ideally, I would provide a reproducible example, but unfortu...
[ { "answer_id": 74577571, "author": "Pepe N O", "author_id": 15062361, "author_profile": "https://Stackoverflow.com/users/15062361", "pm_score": 1, "selected": false, "text": "#combine lists into a dictionary then convert to json\njson1 = json.dumps(dict(zip(list1, list2)))\n df = pd.read...
2022/11/25
[ "https://Stackoverflow.com/questions/74575599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3294195/" ]
74,575,621
<p>I am trying to learn Go and I was experimenting in the playground. I have a very simple go code. I was trying to use Structs and Slices together in a go routine. I am not sure if this will be a thing I will use in production but it seemed a little off, so here:</p> <pre><code> func main() { routinemsg := make(ch...
[ { "answer_id": 74575942, "author": "icza", "author_id": 1705598, "author_profile": "https://Stackoverflow.com/users/1705598", "pm_score": 2, "selected": true, "text": "routinemsg main routinemsg main main routinemsg2 routinemsg2 main fmt.Println(<-routinemsg) main() routinemsg2 p1 p2 p3 ...
2022/11/25
[ "https://Stackoverflow.com/questions/74575621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14897605/" ]
74,575,653
<p>I created a WPF Listview and is populated with instances of ProductCategory.</p> <pre><code>public class ProductCategory { public int Id { get; set; } public string CategoryName { get; set; } public DateTime CreatedDate { get; set; } public DateTime LastUpdated { get; set; } } </code></pre> <p>Nex...
[ { "answer_id": 74576469, "author": "EldHasp", "author_id": 13349759, "author_profile": "https://Stackoverflow.com/users/13349759", "pm_score": -1, "selected": false, "text": "using Simplified;\nusing System;\nusing System.Collections.ObjectModel;\nusing System.Windows;\n\nnamespace Core2...
2022/11/25
[ "https://Stackoverflow.com/questions/74575653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2949159/" ]
74,575,654
<p>I am using Azure devops to deploy services to AKS. There are few instances that even though the pods weren't started(in crashed state) the pipeline still shows it as success.</p> <p>I add this task to validate the kubectl pod:</p> <pre><code>- task: Kubernetes@1 displayName: 'Deploy ${{ parameters.projec...
[ { "answer_id": 74576469, "author": "EldHasp", "author_id": 13349759, "author_profile": "https://Stackoverflow.com/users/13349759", "pm_score": -1, "selected": false, "text": "using Simplified;\nusing System;\nusing System.Collections.ObjectModel;\nusing System.Windows;\n\nnamespace Core2...
2022/11/25
[ "https://Stackoverflow.com/questions/74575654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2785937/" ]
74,575,655
<p>I am using <a href="https://ng-mocks.sudo.eu/" rel="nofollow noreferrer">ng-mocks</a> for mocking and so far everything works OK with a few exceptions of some quirks.</p> <p>I'm using <a href="https://ng-mocks.sudo.eu/extra/auto-spy" rel="nofollow noreferrer">autoSpy</a> to spy every method automatically so I don't ...
[ { "answer_id": 74575856, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 0, "selected": false, "text": "ngMock.autoSpy('reset') beforeEach(() => {\n ngMocks.autoSpy('jasmine');\n});\n\n.\n.\n.\n\nafterEach(()...
2022/11/25
[ "https://Stackoverflow.com/questions/74575655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/435867/" ]
74,575,674
<p>When trying to use MUI Autocomplete to select an object from a list of options, the value is set to <code>0</code>. How can I get it to set the actual object?</p> <p>Example here: <a href="https://codesandbox.io/s/ecstatic-diffie-mf9ydl" rel="nofollow noreferrer">https://codesandbox.io/s/ecstatic-diffie-mf9ydl</a> S...
[ { "answer_id": 74575856, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 0, "selected": false, "text": "ngMock.autoSpy('reset') beforeEach(() => {\n ngMocks.autoSpy('jasmine');\n});\n\n.\n.\n.\n\nafterEach(()...
2022/11/25
[ "https://Stackoverflow.com/questions/74575674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/565633/" ]
74,575,680
<p>I'm making a component that has multiple sets of children.</p> <p>The question <a href="https://stackoverflow.com/questions/35181333/react-component-with-two-sets-of-children">React component with two sets of children</a> suggests to index <code>children</code>, as in <code>props.children[0]</code>. This works great...
[ { "answer_id": 74575856, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 0, "selected": false, "text": "ngMock.autoSpy('reset') beforeEach(() => {\n ngMocks.autoSpy('jasmine');\n});\n\n.\n.\n.\n\nafterEach(()...
2022/11/25
[ "https://Stackoverflow.com/questions/74575680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/525872/" ]
74,575,687
<p>How can I print from an array of elements in Python every second pair of elements one below another, without commas and brackets?</p> <p>My array looks like this:</p> <pre><code>m=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] </code></pre> <p>And, I want to print in one of the cases:</p> <pre><code>1 2 5 6 9 10 </code></p...
[ { "answer_id": 74575856, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 0, "selected": false, "text": "ngMock.autoSpy('reset') beforeEach(() => {\n ngMocks.autoSpy('jasmine');\n});\n\n.\n.\n.\n\nafterEach(()...
2022/11/25
[ "https://Stackoverflow.com/questions/74575687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20600892/" ]
74,575,709
<p>I have implemented Radio button in Flutter namely <strong>'Today'</strong> , <strong>'Tomorrow'</strong> , <strong>'User Input Date'</strong>, and have wrapped them in a Column, but I am unable to reduce the space between the 3 radio buttons and also I am not able to move them towards the left. Is there any way I ca...
[ { "answer_id": 74575911, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": true, "text": "visualDensity dense contentPadding RadioListTile<DateTime>(\n activeColor: Colors.white,\n visualDensity:...
2022/11/25
[ "https://Stackoverflow.com/questions/74575709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14075086/" ]
74,575,717
<p>I have a client whose SQL database is decades old. Software engineers do not have access to update schema objects and DBAs do not use code-first to update the database.</p> <p>.NET Core 6 is a requirement for me. Since <code>.edmx</code> is not a part of .NET Core, does anyone have recommendations for an ORM that im...
[ { "answer_id": 74575911, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": true, "text": "visualDensity dense contentPadding RadioListTile<DateTime>(\n activeColor: Colors.white,\n visualDensity:...
2022/11/25
[ "https://Stackoverflow.com/questions/74575717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1073399/" ]
74,575,768
<p>I'm trying to figure out how to use a variable containing an ANSI-C quoting string as an argument for a subsequent bash command. The string in the variable itself is a list of files (can virtually be a list of anything).</p> <p>For example, I have a file containing a list of other files, for example <code>test.lst</...
[ { "answer_id": 74575911, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": true, "text": "visualDensity dense contentPadding RadioListTile<DateTime>(\n activeColor: Colors.white,\n visualDensity:...
2022/11/25
[ "https://Stackoverflow.com/questions/74575768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527947/" ]
74,575,773
<p>This is Edit profile feature i am trying to build.first i get the user details and fill up the fields by assigning them to a state</p> <pre><code>const [name, setName] = useState('') useEffect(() =&gt; { if (localStorage.getItem('userInfo') === null) { navigate('/login') } else{ userInfo=JSON.parse(localStorage...
[ { "answer_id": 74575837, "author": "Sadman Sakib", "author_id": 19684597, "author_profile": "https://Stackoverflow.com/users/19684597", "pm_score": 0, "selected": false, "text": "defaultValue value" }, { "answer_id": 74576045, "author": "Samuel Lee", "author_id": 20580174...
2022/11/25
[ "https://Stackoverflow.com/questions/74575773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6005809/" ]
74,575,794
<p>Consider the following simple code:</p> <pre><code>import re def my_match(s): if re.match(&quot;^[a-zA-Z]+&quot;, s): return True else: return False </code></pre> <p>Is there a way to collapse this in a single <code>return</code> statement? In <code>C</code> we could do for example:</p> <p...
[ { "answer_id": 74575841, "author": "Frank", "author_id": 13483275, "author_profile": "https://Stackoverflow.com/users/13483275", "pm_score": 1, "selected": false, "text": "return re.match(\"^[a-zA-Z]+\", s) is not None\n" }, { "answer_id": 74575846, "author": "CoffeeTableEspr...
2022/11/25
[ "https://Stackoverflow.com/questions/74575794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/738154/" ]
74,575,802
<p>I have a list values_count which contains boolean values True and False. I am trying to calculate number of True values present in the list. For example , for the list ltr=[False,True,True,True] I expect my answer to be 3 but my answer comes 0, the initial value of the count variable that I have declared. Below is m...
[ { "answer_id": 74575841, "author": "Frank", "author_id": 13483275, "author_profile": "https://Stackoverflow.com/users/13483275", "pm_score": 1, "selected": false, "text": "return re.match(\"^[a-zA-Z]+\", s) is not None\n" }, { "answer_id": 74575846, "author": "CoffeeTableEspr...
2022/11/25
[ "https://Stackoverflow.com/questions/74575802", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20502753/" ]
74,575,809
<p>I am not able to convert from decimal to binary in C.Everytime I get a output which is one less than the desired output.For ex.:5 should be 101 but shows up as 100 or 4 should be 100 but shows up as 99.</p> <pre><code>#include&lt;stdio.h&gt; #include&lt;math.h&gt; void main() { int a,b=0; int n; printf(&...
[ { "answer_id": 74576201, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 1, "selected": false, "text": "pow double double pow int unsigned char scanf(\"%d\",&n); n n" }, { "answer_id": 74576293, "autho...
2022/11/25
[ "https://Stackoverflow.com/questions/74575809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20555048/" ]
74,575,858
<p>i have a list of usernames, which are basically accounts</p> <pre><code>let users = [ &quot;user1&quot;,&quot;user2&quot;,&quot;user3&quot;,&quot;user4&quot;,&quot;user5&quot;,&quot;user6&quot;,&quot;user7&quot; ] </code></pre> <pre><code>users.map(async (user, i) =&gt; { console.log(user, i) let res = await s...
[ { "answer_id": 74575935, "author": "Finbar", "author_id": 17525834, "author_profile": "https://Stackoverflow.com/users/17525834", "pm_score": 2, "selected": false, "text": "const wait = async (ms) => {\n return new Promise((resolve) => {\n setTimeout(resolve, ms);\n })\n}\n\nconst u...
2022/11/25
[ "https://Stackoverflow.com/questions/74575858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19709381/" ]
74,575,867
<p>I have this POD file:</p> <pre><code>=head1 Create professional slideshows with Mojolicious::Plugin::RevealJS =head2 Install and run a Mojolicious server Santa's elf had a problem. He had to write very fast a presentation and show it to a bunch of new elf's. The email assigning this to him was sent by Santa himse...
[ { "answer_id": 74575972, "author": "simbabque", "author_id": 1331451, "author_profile": "https://Stackoverflow.com/users/1331451", "pm_score": 3, "selected": true, "text": "perldoc perl perl \n=head2 frobnicate($foo)\n\nThis function frobnicates the C<$foo>.\n\n my $bar = frobnicate($...
2022/11/25
[ "https://Stackoverflow.com/questions/74575867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6115421/" ]
74,575,889
<p>Whenever i change the background color of a button in CSS, it becomes unclickable. Same happens if i remove button border in css</p> <p>HTML</p> <pre><code>&lt;div class=&quot;row&quot;&gt; &lt;button onclick=&quot;click('7')&quot; class=&quot;btn&quot;&gt;7&lt;/button&gt; &lt...
[ { "answer_id": 74575972, "author": "simbabque", "author_id": 1331451, "author_profile": "https://Stackoverflow.com/users/1331451", "pm_score": 3, "selected": true, "text": "perldoc perl perl \n=head2 frobnicate($foo)\n\nThis function frobnicates the C<$foo>.\n\n my $bar = frobnicate($...
2022/11/25
[ "https://Stackoverflow.com/questions/74575889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20512460/" ]
74,575,954
<p>I'm looking for a way to do a file search between two dates and I'm searching for a method to make this <strong>more beautiful than my example below</strong> , I specify that this example code below works</p> <p>I know the ansible <code>find</code> module exists but I can't perform a search between two dates like I...
[ { "answer_id": 74578073, "author": "Vladimir Botka", "author_id": 6482561, "author_profile": "https://Stackoverflow.com/users/6482561", "pm_score": 3, "selected": true, "text": "shell> ls -ogla /tmp/test/\ntotal 28\ndrwxrwxr-x 2 4096 Nov 25 21:23 .\ndrwxrwxrwt 70 20480 Nov 25 22:28 ..\...
2022/11/25
[ "https://Stackoverflow.com/questions/74575954", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16174465/" ]
74,575,957
<p>I am trying to setup Cordova for running cordova-android9.0. My problem is that when I downgraded my java version, it no longer works.</p> <p>I downloaded <a href="https://www.oracle.com/java/technologies/downloads/#java8-windows" rel="nofollow noreferrer">Java 8</a> and set my environment variables to: <strong>User...
[ { "answer_id": 74576524, "author": "Kaushal", "author_id": 20593455, "author_profile": "https://Stackoverflow.com/users/20593455", "pm_score": 0, "selected": false, "text": "C:\\Program Files\\Java\\jdk1.8.0_351\\bin\n C:\\Program Files(x86)\\Java\\jdk1.8.0_351\\bin" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74575957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4492357/" ]
74,575,988
<p>I'm not very long in Django, sorry for the probably stupid question. But after many hours of trying to solve and a huge number of searches on the Internet, I did not find a solution.</p> <p>My Models:</p> <pre><code>class Offer(models.Model): seller = models.ForeignKey()&lt;..&gt; # other fields </code></pre...
[ { "answer_id": 74580970, "author": "Md Shahbaz Ahmad", "author_id": 7584066, "author_profile": "https://Stackoverflow.com/users/7584066", "pm_score": 0, "selected": false, "text": "from django.db.models import Count\n\ndef get_queryset(self, request):\n qs = OfferViewCount.objects.val...
2022/11/25
[ "https://Stackoverflow.com/questions/74575988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601125/" ]
74,576,013
<p>I am trying to increase the values of an array of integers using a variable, but it doesn't seem to be accessing the array values properly. It is to start from 0 in an ascending order, while incrementing the current array value at each iteration. I tried this:</p> <pre><code>array=(2 0 1) tag=(H H H) count=0 for i ...
[ { "answer_id": 74577004, "author": "chuckj", "author_id": 2415831, "author_profile": "https://Stackoverflow.com/users/2415831", "pm_score": 0, "selected": false, "text": "for array tag array tag array tag declare -a array=(2 0 1)\ndeclare -a tag=(\"here\" \"here\" \"here\")\ndeclare -i c...
2022/11/25
[ "https://Stackoverflow.com/questions/74576013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19668361/" ]
74,576,027
<p>I am working on the task where I have to Augment the data. For data augmentation, I have to do polynomial approximation of the data (Non linear data). But if I do the polynomial approximation, I am not getting an accurate approximation of the data.</p> <p>Below are 35 points which I used as an original data.</p> <pr...
[ { "answer_id": 74577004, "author": "chuckj", "author_id": 2415831, "author_profile": "https://Stackoverflow.com/users/2415831", "pm_score": 0, "selected": false, "text": "for array tag array tag array tag declare -a array=(2 0 1)\ndeclare -a tag=(\"here\" \"here\" \"here\")\ndeclare -i c...
2022/11/25
[ "https://Stackoverflow.com/questions/74576027", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17289097/" ]
74,576,048
<p>I have a table <code>CabinCrew</code> and another table <code>Employee</code>. The <code>CabinCrew</code> table, among other things, records the <code>FlightHours</code> of the crew for a particular flight.</p> <p><code>CabinCrew(EmployeeID, FlightID, Hours)</code></p> <p><code>Employee(EmployeeID, FirstName, LastNa...
[ { "answer_id": 74577004, "author": "chuckj", "author_id": 2415831, "author_profile": "https://Stackoverflow.com/users/2415831", "pm_score": 0, "selected": false, "text": "for array tag array tag array tag declare -a array=(2 0 1)\ndeclare -a tag=(\"here\" \"here\" \"here\")\ndeclare -i c...
2022/11/25
[ "https://Stackoverflow.com/questions/74576048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20239849/" ]
74,576,082
<p>We use Shopware 6, V6.4.16.1, community edition. Currently we are only selling in the United States and US Dollar.</p> <p>When product prices are listed on the frontend, the auto formatting updates them to include the US country ISO code, dollar sign, and an asterisk. The end formatting looks like this: <strong>US$2...
[ { "answer_id": 74577530, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 3, "selected": true, "text": "CurrencyFormatter <service id=\"My\\Plugin\\Decorator\\CurrencyFormatterDecorator\" decorates=\"Shopware\\Core\\Sys...
2022/11/25
[ "https://Stackoverflow.com/questions/74576082", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6042057/" ]
74,576,129
<p>I've extracted key words from a different column to make a new column (hard skills) that looks like this: (<a href="https://i.stack.imgur.com/XNOIK.png" rel="nofollow noreferrer">https://i.stack.imgur.com/XNOIK.png</a>)</p> <p>But I want to make each key word into a list format within the &quot;hards skills&quot; co...
[ { "answer_id": 74577530, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 3, "selected": true, "text": "CurrencyFormatter <service id=\"My\\Plugin\\Decorator\\CurrencyFormatterDecorator\" decorates=\"Shopware\\Core\\Sys...
2022/11/25
[ "https://Stackoverflow.com/questions/74576129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601282/" ]
74,576,152
<p>I want to see my result text appear if I type anything into my input field and disappear if it is not. My JSX:</p> <pre><code>import React, { useState } from &quot;react&quot;; import &quot;./SearchBarStyle.css&quot; const SearchBar = () =&gt; { const waterInfo = [ {title: &quot;About Water&quot;, link...
[ { "answer_id": 74577530, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 3, "selected": true, "text": "CurrencyFormatter <service id=\"My\\Plugin\\Decorator\\CurrencyFormatterDecorator\" decorates=\"Shopware\\Core\\Sys...
2022/11/25
[ "https://Stackoverflow.com/questions/74576152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20159329/" ]
74,576,190
<p>I'm learning Python via Udemy and we did a coding project where you have to get a user's height and weight, calculate their BMI and print the result. In my code, for the embedded <code>if</code> (<code>elif</code>) statements, I did something like this (variable is bmi to hold the actual BMI calculation): <code>elif...
[ { "answer_id": 74576217, "author": "The Photon", "author_id": 1630971, "author_profile": "https://Stackoverflow.com/users/1630971", "pm_score": 2, "selected": false, "text": "bmi > 18.5 bmi >= 18.5 bmi == 18.5" }, { "answer_id": 74576286, "author": "C-3PO", "author_id": 4...
2022/11/25
[ "https://Stackoverflow.com/questions/74576190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6377355/" ]
74,576,198
<p>In a SQL script I'm trying to get data based on the year within a string value field. Each year the table adds a new row for the current year . So the ID_TYPE_NAME column has a row with:</p> <p>&quot;MS-DRG V38 (FY 2021)&quot; &quot;MS-DRG V39 (FY 2022)&quot; and so on...</p> <p>Being new to SQL I hoped that a formu...
[ { "answer_id": 74576566, "author": "Álvaro González", "author_id": 13508, "author_profile": "https://Stackoverflow.com/users/13508", "pm_score": 1, "selected": false, "text": "LIKE % _ CURDATE select pink_elephants() CURRENT_TIMESTAMP YEAR() CAST() + where id_type_name like 'MS-DRG% (FY ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20106370/" ]
74,576,200
<p>I'm doing a parallelization exercise using mpi4py where 2 dice are thrown a defined number of times (divided by the processes, i.e, <code>npp</code>) and the dots are counted. The results are stored in a dictionary, the mean deviation is calculated and until the condition of <code>mean_dev</code> being less than 0.0...
[ { "answer_id": 74576455, "author": "kd4ttc", "author_id": 820321, "author_profile": "https://Stackoverflow.com/users/820321", "pm_score": -1, "selected": false, "text": "True: while mean_dev > 0.001: if mean_dev mean_dev (1/11)*sqrt(sum …) mean_dev mean_dev mean_dev npp" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74576200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601425/" ]
74,576,240
<p>In Javascript you can convert a callback to a promise with:</p> <pre class="lang-js prettyprint-override"><code>function timeout(time){ return new Promise(resolve=&gt;{ setTimeout(()=&gt;{ resolve('done with timeout'); }, time) }); } </code></pre> <p>Is that possible in Flutter?</p> <p>Exa...
[ { "answer_id": 74576455, "author": "kd4ttc", "author_id": 820321, "author_profile": "https://Stackoverflow.com/users/820321", "pm_score": -1, "selected": false, "text": "True: while mean_dev > 0.001: if mean_dev mean_dev (1/11)*sqrt(sum …) mean_dev mean_dev mean_dev npp" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74576240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1759443/" ]
74,576,244
<p>I am using SQL Server and facing problem to get my required data.</p> <p>Here is my sample table:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Date</th> <th>PlayID</th> <th>Name</th> <th>City</th> </tr> </thead> <tbody> <tr> <td>11/20/2022</td> <td>101</td> <td>Rishi</td> <td>Mumbai</...
[ { "answer_id": 74577319, "author": "Aaron Bertrand", "author_id": 61305, "author_profile": "https://Stackoverflow.com/users/61305", "pm_score": 1, "selected": false, "text": "SELECT DISTINCT P.Date, Name = STUFF(\n (SELECT ',' + Name \n FROM dbo.PlayGroup AS _p \n WHERE _p.Date ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4923942/" ]
74,576,298
<p>I have a following json</p> <pre class="lang-json prettyprint-override"><code>{ &quot;kind&quot;:&quot;testObject&quot;, &quot;spec&quot;:{ }, &quot;status&quot;:{ &quot;code&quot;:&quot;503&quot; } } </code></pre> <p>I would like to just retrieve the value of code, so that it would just show <code>503...
[ { "answer_id": 74577319, "author": "Aaron Bertrand", "author_id": 61305, "author_profile": "https://Stackoverflow.com/users/61305", "pm_score": 1, "selected": false, "text": "SELECT DISTINCT P.Date, Name = STUFF(\n (SELECT ',' + Name \n FROM dbo.PlayGroup AS _p \n WHERE _p.Date ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601465/" ]
74,576,312
<p>I'm trying to use settings module but is shows &quot;ModuleNotFoundError: No module named 'settings'&quot; and whien I try to install the module it shows &quot;Requirement already satisfied: python-settings in c:\users\harsh\appdata\local\programs\python\python310\lib\site-packages (0.2.2)&quot;</p> <pre><code>impor...
[ { "answer_id": 74576339, "author": "urek mazino", "author_id": 17411406, "author_profile": "https://Stackoverflow.com/users/17411406", "pm_score": 1, "selected": false, "text": "pip install python-settings from python_settings import settings" } ]
2022/11/25
[ "https://Stackoverflow.com/questions/74576312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19033899/" ]
74,576,364
<p>I have the following problem: I would like to find different &quot;cuts&quot; of the array into two different arrays by adding one element each time, for example:</p> <p>If I have an array</p> <pre><code>a = [0,1,2,3] </code></pre> <p>The following splits are desired:</p> <pre><code>[0] [1,2,3] [0,1] [2,3] [0,1,2]...
[ { "answer_id": 74576436, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 3, "selected": true, "text": "a = [0,1,2,3]\n\nfor i in range(len(a)-1):\n print(a[:i+1], a[i+1:])\n [0] [1, 2, 3]\n[0, 1] [2, 3]\n[0, 1, 2] [3]...
2022/11/25
[ "https://Stackoverflow.com/questions/74576364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3079439/" ]
74,576,366
<p>I would like to compare elements in lists in 1 column and assign unique values that are on no other row in new column in the same Pandas df:</p> <p>Int.:</p> <pre><code>data = {'object_1':[1, 3, 4, 5, 77], 'object_2':[1, 5, 100, 3, 4], &quot;object_3&quot;: [1, 3, 4, 5, 5], &quot;object_4&quot;: [1, 3, 5, 47, 48]} <...
[ { "answer_id": 74576556, "author": "Nuri Taş", "author_id": 19255749, "author_profile": "https://Stackoverflow.com/users/19255749", "pm_score": 1, "selected": false, "text": "isin stack data['unique_values'] = ([df.loc[~df[col].isin(df.set_index(col).stack()), col].tolist()\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20051041/" ]
74,576,368
<p>I have an array like so:</p> <pre><code>$array = [ ['record' =&gt; 1, 'sponsor' =&gt; 2, 'email' =&gt; 'some@email.com'], ['record' =&gt; 2, 'sponsor' =&gt; 2, 'email' =&gt; 'some1@email.com'], ['record' =&gt; 3, 'sponsor' =&gt; 2, 'email' =&gt; 'some2@email.com'], ['record' =&gt; 4, 'sponsor' =&gt; ...
[ { "answer_id": 74576556, "author": "Nuri Taş", "author_id": 19255749, "author_profile": "https://Stackoverflow.com/users/19255749", "pm_score": 1, "selected": false, "text": "isin stack data['unique_values'] = ([df.loc[~df[col].isin(df.set_index(col).stack()), col].tolist()\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2339045/" ]
74,576,394
<p>I am a beginner C programmer and while writing a tictactoe game in C, I encountered a strange output. I mainly used if statements to check if the &quot;squares&quot; are either 'X' or 'O'</p> <pre><code>#include &lt;stdio.h&gt; int main(){ int p1,p2; char arr[] = {'1','2','3','4','5','6','7','8','9'}; v...
[ { "answer_id": 74576597, "author": "user253751", "author_id": 106104, "author_profile": "https://Stackoverflow.com/users/106104", "pm_score": 1, "selected": false, "text": "arr[6]&&arr[7]&&arr[8]=='X'\n arr[6] arr[7] arr[8]=='X' '\\0' arr[8] arr[6]=='X' && arr[7]=='X' && arr[8]=='X'\n if...
2022/11/25
[ "https://Stackoverflow.com/questions/74576394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601569/" ]
74,576,401
<p><a href="https://i.stack.imgur.com/K1hqi.png" rel="nofollow noreferrer">Here is image from page</a></p> <p>Hi all, I'm new here. How to create loop for fixture file with multiple arr in Cypress to check all the list?</p> <pre><code>[ { &quot;firstName&quot;: &quot;John&quot;, &quot;email&quot;: &quot;jsmit...
[ { "answer_id": 74578094, "author": "jjhelguero", "author_id": 17917809, "author_profile": "https://Stackoverflow.com/users/17917809", "pm_score": 0, "selected": false, "text": "const testData = require('cypress/fixture/folder/path')\n\nCypress._.forEach(testData, (data) => {\n it(`${dat...
2022/11/25
[ "https://Stackoverflow.com/questions/74576401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601475/" ]
74,576,439
<p>I'm trying to create a project of an ATM where you have to enter the card number and pin but it's not working when I put the right pin says &quot;Pin not found!&quot; which is the catch but I copied the code from above and just changed what I thought necessary, does anyone know what's wrong?</p> <pre><code>static vo...
[ { "answer_id": 74576502, "author": "Sarath Baiju", "author_id": 12198981, "author_profile": "https://Stackoverflow.com/users/12198981", "pm_score": 0, "selected": false, "text": "catch(Exception ex) { Console.WriteLine(ex.Message); }" }, { "answer_id": 74576932, "author": "vi...
2022/11/25
[ "https://Stackoverflow.com/questions/74576439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20571251/" ]
74,576,479
<p>form page not displaying response,</p> <p>I left off some tags that were supposed to be closed. I changed that already. Basically, once i fill out the form and click on the submit button it should take me to the display page where it displays a string such as &quot; Hello&quot; + string + &quot;thank you for submitt...
[ { "answer_id": 74576502, "author": "Sarath Baiju", "author_id": 12198981, "author_profile": "https://Stackoverflow.com/users/12198981", "pm_score": 0, "selected": false, "text": "catch(Exception ex) { Console.WriteLine(ex.Message); }" }, { "answer_id": 74576932, "author": "vi...
2022/11/25
[ "https://Stackoverflow.com/questions/74576479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20482343/" ]
74,576,490
<p>Am stuck with a problem assigned by my mentor who wants me to write a PHP script which reads a UTF-8 encoded file content and return the number of occurrences of each word as json.</p> <p>The language of the file content is Russian Cyrillic.</p> <p><strong>Here is the Sample text</strong></p> <pre><code>Он бледен. М...
[ { "answer_id": 74576502, "author": "Sarath Baiju", "author_id": 12198981, "author_profile": "https://Stackoverflow.com/users/12198981", "pm_score": 0, "selected": false, "text": "catch(Exception ex) { Console.WriteLine(ex.Message); }" }, { "answer_id": 74576932, "author": "vi...
2022/11/25
[ "https://Stackoverflow.com/questions/74576490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14914216/" ]
74,576,496
<p>I have a Text Widget with some properties that I am viewing on two screens. One is a canvas and the other is overlaid on a T-Shirt Image. On the canvas, the Text Container takes the whole screen. But when I overlay it on the shirt. The text wraps to other line for some reason.</p> <p>This is the Text Widget:</p> <pr...
[ { "answer_id": 74576502, "author": "Sarath Baiju", "author_id": 12198981, "author_profile": "https://Stackoverflow.com/users/12198981", "pm_score": 0, "selected": false, "text": "catch(Exception ex) { Console.WriteLine(ex.Message); }" }, { "answer_id": 74576932, "author": "vi...
2022/11/25
[ "https://Stackoverflow.com/questions/74576496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12005580/" ]
74,576,514
<p><a href="https://i.stack.imgur.com/l0QbX.png" rel="nofollow noreferrer">enter image description here</a></p> <pre><code>x &lt;- function(){ number&lt;- 10 y &lt;- function(){ number &lt;- 20 } y() print(number) } x() </code></pre> <p>This code prints the value 10. How would I set the value of &quot;number...
[ { "answer_id": 74576599, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 3, "selected": true, "text": "parent.frame() rlang::caller_env() x <- function(){\n number<- 10\n y <- function() {\n assign(\"number\", 20,...
2022/11/25
[ "https://Stackoverflow.com/questions/74576514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15444689/" ]
74,576,530
<p>I need to convert all characters to uppercase except for the last character in the following string:</p> <pre><code>&lt;?php $str = &quot;Hello&quot;; echo $_str = mb_strtoupper(mb_substr($str, 0, strtolower($str))); ?&gt; </code></pre>
[ { "answer_id": 74576599, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 3, "selected": true, "text": "parent.frame() rlang::caller_env() x <- function(){\n number<- 10\n y <- function() {\n assign(\"number\", 20,...
2022/11/25
[ "https://Stackoverflow.com/questions/74576530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13646793/" ]
74,576,569
<p>i'm trying to make an if into my code html with flask:</p> <pre><code> {% if {{ role }} = 1 %} &lt;div id=&quot;cabecera&quot;&gt; &lt;header class=&quot;py-3 mb-4 border-bottom&quot;&gt; &lt;div class=&quot;container d-flex flex-wrap justify-content-center&quot;&gt...
[ { "answer_id": 74576623, "author": "Adrian Kurzeja", "author_id": 8571154, "author_profile": "https://Stackoverflow.com/users/8571154", "pm_score": 1, "selected": true, "text": "{% if role == 1 %}\n <div id=\"cabecera\">\n <header class=\"py-3 mb-4 border-bottom\">\n ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9657230/" ]
74,576,606
<p>I am trying to write to a <code>.txt</code> file within a program, and I am using the following code snippet. I want to output a line of the form:</p> <p><code>a(space)b</code></p> <p>but I get nothing on the txt file.</p> <pre><code>#include &lt;iostream&gt; #include &lt;fstream&gt; #include &lt;cstring&gt; using n...
[ { "answer_id": 74576667, "author": "Stack Danny", "author_id": 6039995, "author_profile": "https://Stackoverflow.com/users/6039995", "pm_score": 2, "selected": false, "text": "f.open(\"filename.txt\", ios::in | ios::out);\nif (!f.is_open()) {\n cout << \"error\";\n}\n ios::in std::fst...
2022/11/25
[ "https://Stackoverflow.com/questions/74576606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17115570/" ]
74,576,610
<p>I am trying to build a spider, that gathers information regarding startups. Therefore I wrote a Python script with scrapy that should access the website and store the information in a dictionary. I think the code should work from a logik point of view, but somehow I do not get any output. My code:</p> <pre><code>imp...
[ { "answer_id": 74580571, "author": "SuperUser", "author_id": 16429780, "author_profile": "https://Stackoverflow.com/users/16429780", "pm_score": 1, "selected": false, "text": "allowed_domains Adresse list str None import scrapy\n\n\nclass StartupsSpider(scrapy.Spider):\n # name of the...
2022/11/25
[ "https://Stackoverflow.com/questions/74576610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20371027/" ]
74,576,637
<p>I try to send an input with for example <code>echo &quot;some_input&quot; | write /dev/pts/0</code> or <code>echo &quot;some_input&quot; &gt; /dev/pts/0</code> from a terminal <code>/dev/pts/1</code> to another <code>/dev/pts/0</code></p> <p>In the second terminal, a program is running, for example :</p> <pre><code>...
[ { "answer_id": 74580571, "author": "SuperUser", "author_id": 16429780, "author_profile": "https://Stackoverflow.com/users/16429780", "pm_score": 1, "selected": false, "text": "allowed_domains Adresse list str None import scrapy\n\n\nclass StartupsSpider(scrapy.Spider):\n # name of the...
2022/11/25
[ "https://Stackoverflow.com/questions/74576637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14261606/" ]
74,576,641
<p>I am working in react and have a resonse ( <code>ReviewerService.getReviewers()</code>) that returns an array of values:</p> <pre><code>0: {id: 1, firstName: 'John', lastName: 'Doe', email: 'johndoe@aol.com', responses: '{&quot;q1&quot;:&quot;yes&quot;,&quot;q2&quot;:&quot;no&quot;,&quot;q3&quot;:&quot;yes&quot;,&q...
[ { "answer_id": 74580571, "author": "SuperUser", "author_id": 16429780, "author_profile": "https://Stackoverflow.com/users/16429780", "pm_score": 1, "selected": false, "text": "allowed_domains Adresse list str None import scrapy\n\n\nclass StartupsSpider(scrapy.Spider):\n # name of the...
2022/11/25
[ "https://Stackoverflow.com/questions/74576641", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16426400/" ]
74,576,661
<p>I have been working on drawing the contour plots of the basic reproduction number (R0) of a model with respect to two parameters. For practice, I am currently working on replicating the graph attached below from a paper by Kifle et al, <a href="https://www.sciencedirect.com/science/article/pii/S2211379722000122" rel...
[ { "answer_id": 74576883, "author": "Ben Bolker", "author_id": 190277, "author_profile": "https://Stackoverflow.com/users/190277", "pm_score": 2, "selected": false, "text": "R_0_fun <- function(beta, eta_1) {\n K_1 = eta_1 + eta_2 + eta_3 + mu\n K_2 = zeta + q + mu\n K_3 = gamma_...
2022/11/25
[ "https://Stackoverflow.com/questions/74576661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557703/" ]
74,576,678
<p>I have a table on Snowflake that contains messages between company admins and users. Here's what the table looks like.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>message</th> <th>destination</th> <th>messageable_id</th> <th>sent_at</th> </tr> </thead> <tbody> <tr> <td>1<...
[ { "answer_id": 74576883, "author": "Ben Bolker", "author_id": 190277, "author_profile": "https://Stackoverflow.com/users/190277", "pm_score": 2, "selected": false, "text": "R_0_fun <- function(beta, eta_1) {\n K_1 = eta_1 + eta_2 + eta_3 + mu\n K_2 = zeta + q + mu\n K_3 = gamma_...
2022/11/25
[ "https://Stackoverflow.com/questions/74576678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601690/" ]
74,576,680
<p>The first string has percentage symbol (<code>'%'</code>) at last and the second string has letters <code>&quot;fan ...&quot;</code> in the beginning. But after concatenating, it is showing some weird symbol instead of <code>&quot;............ %fan ..........&quot;</code></p> <pre><code>var abc = document.getElement...
[ { "answer_id": 74576772, "author": "Johnny Craig", "author_id": 20601873, "author_profile": "https://Stackoverflow.com/users/20601873", "pm_score": -1, "selected": false, "text": "var abc = document.getElementById(\"myInput\").value + \"\";\n\n$value = \"WHERE Product_ID LIKE '%\" + abc ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13878468/" ]
74,576,691
<p>I have a spreadsheet with a lot of code that breaks down completely depending on the machine I use it on if the date formatting in a =TEXT() function does not work as it was supposed to.</p> <p>I have 2 computers at at home with the same version of Excel- a desktop and a laptop, both with English subscription versio...
[ { "answer_id": 74576772, "author": "Johnny Craig", "author_id": 20601873, "author_profile": "https://Stackoverflow.com/users/20601873", "pm_score": -1, "selected": false, "text": "var abc = document.getElementById(\"myInput\").value + \"\";\n\n$value = \"WHERE Product_ID LIKE '%\" + abc ...
2022/11/25
[ "https://Stackoverflow.com/questions/74576691", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9178508/" ]
74,576,709
<p>I don't understand how to swap 2 random strings in LinkedList.<br /> I know how to swap Integers but Strings are too diferent</p> <pre class="lang-java prettyprint-override"><code>import java.util.*; import java.util.Scanner; public class Main { public static void main(String[] args) { LinkedList&lt;Stri...
[ { "answer_id": 74576993, "author": "g00se", "author_id": 16376827, "author_profile": "https://Stackoverflow.com/users/16376827", "pm_score": 0, "selected": false, "text": "public static <T> void swapTwo(List<T> list) {\n int len = list.size();\n int ixOne = (int)(Math.random() * le...
2022/11/25
[ "https://Stackoverflow.com/questions/74576709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601795/" ]
74,576,721
<p>This question has been asked many times but after reading all the responses, mine still doesn't work and I think it has something to do with the scope of the variable.</p> <p>I am trying to make a request and return it's result back into the main scope but it either returns undefined or a promise even though the pro...
[ { "answer_id": 74576993, "author": "g00se", "author_id": 16376827, "author_profile": "https://Stackoverflow.com/users/16376827", "pm_score": 0, "selected": false, "text": "public static <T> void swapTwo(List<T> list) {\n int len = list.size();\n int ixOne = (int)(Math.random() * le...
2022/11/25
[ "https://Stackoverflow.com/questions/74576721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19708567/" ]
74,576,722
<p>I want to show a text carousel with dots below the text on the onboarding screen of my app. How can I achieve this? Watch the image to see what I wanna achieve. <a href="https://i.stack.imgur.com/ayCY6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ayCY6.png" alt="Reference Image" /></a></p>
[ { "answer_id": 74576993, "author": "g00se", "author_id": 16376827, "author_profile": "https://Stackoverflow.com/users/16376827", "pm_score": 0, "selected": false, "text": "public static <T> void swapTwo(List<T> list) {\n int len = list.size();\n int ixOne = (int)(Math.random() * le...
2022/11/25
[ "https://Stackoverflow.com/questions/74576722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15908450/" ]
74,576,725
<p>I am trying to output the contents of a bash script into a file, but when i put the file name into a variable, it does not work. But if I hardcode the same filename, it works.</p> <p>I tried this</p> <pre><code>{ echo &quot;in the script&quot; file='file.txt' } | tee -a &quot;$file&quot; </code></pre> <p>however I g...
[ { "answer_id": 74576993, "author": "g00se", "author_id": 16376827, "author_profile": "https://Stackoverflow.com/users/16376827", "pm_score": 0, "selected": false, "text": "public static <T> void swapTwo(List<T> list) {\n int len = list.size();\n int ixOne = (int)(Math.random() * le...
2022/11/25
[ "https://Stackoverflow.com/questions/74576725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14040069/" ]
74,576,751
<p>I need to write an <code>multiply</code> macro which converts ident into single letter idents and multiply them.</p> <pre class="lang-rust prettyprint-override"><code>let a = 4; let b = 7; println!(&quot;{}&quot;, multiply!(abbabbb)); // println!(&quot;{}&quot;, (a * b * b * a * b * b * b)) </code></pre> <p>but I do...
[ { "answer_id": 74576987, "author": "totikom", "author_id": 6784879, "author_profile": "https://Stackoverflow.com/users/6784879", "pm_score": 3, "selected": true, "text": "String" }, { "answer_id": 74581265, "author": "Jmb", "author_id": 5397009, "author_profile": "htt...
2022/11/25
[ "https://Stackoverflow.com/questions/74576751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18032908/" ]
74,576,775
<p>This is the code for storing an array only. What I want now is to update each field or can add new rows but I don't know how.</p> <pre><code> foreach ($request-&gt;requirements as $key =&gt; $requirements) { $req = new FormReq(); $req-&gt;requirements = $requirements['title']; $req-&gt...
[ { "answer_id": 74576987, "author": "totikom", "author_id": 6784879, "author_profile": "https://Stackoverflow.com/users/6784879", "pm_score": 3, "selected": true, "text": "String" }, { "answer_id": 74581265, "author": "Jmb", "author_id": 5397009, "author_profile": "htt...
2022/11/25
[ "https://Stackoverflow.com/questions/74576775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17919686/" ]
74,576,784
<p>Why my stack implementation not working and giving the error &quot;Segmentation fault (core dumped)&quot; Here is the code `</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; struct node { int data; struct node *next; }; int main() { struct node *head, *newNode, *temp; head = 0; ...
[ { "answer_id": 74576823, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 1, "selected": false, "text": " else{\n temp->next=newNode;\n temp=newNode;\n }\n temo struct node *head, *newNode, *t...
2022/11/25
[ "https://Stackoverflow.com/questions/74576784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601854/" ]