qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,511,956
<p>I want to do a split by &quot;{&quot; and keep the &quot;{&quot;.</p> <p>The result should be an array:</p> <pre><code>[ &quot;{ \&quot;&quot;text\&quot; : \&quot;alinea 1\&quot;, \&quot;type\&quot; : \&quot;paragraph\&quot; }&quot;, &quot;{ \&quot;&quot;text\&quot; : \&quot;alinea 2\&quot;, \&quot;type\&quot; : ...
[ { "answer_id": 74512064, "author": "Andrew Hartnell", "author_id": 7202344, "author_profile": "https://Stackoverflow.com/users/7202344", "pm_score": -1, "selected": false, "text": " //App.js\n let sideBarRef = useRef(false); \n\n let content = (\n {sideBarRef? (<SideBar s...
2022/11/20
[ "https://Stackoverflow.com/questions/74511956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1624835/" ]
74,512,056
<p>When I ran my react code, I get a Syntax error</p> <pre><code>App.jsx:8 Uncaught (in promise) SyntaxError: Unexpected end of input (at App.jsx:8:1) at App.jsx:8:1 </code></pre> <p>i dont understand why this is wrong if you look at App.jsx:</p> <pre><code>import React, {useState, useEffect} from &quot;react&quot;...
[ { "answer_id": 74512087, "author": "Vortezz", "author_id": 19103809, "author_profile": "https://Stackoverflow.com/users/19103809", "pm_score": 0, "selected": false, "text": "Access-Control-Allow-Origin: * Access-Control-Allow-Origin: domain.com" }, { "answer_id": 74512107, "a...
2022/11/20
[ "https://Stackoverflow.com/questions/74512056", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18944968/" ]
74,512,080
<p>I'm sorry for the weird title. I don't know how to word this. If I have function func() How do I do this:</p> <pre><code>func(func(func(func(func(x))))) </code></pre> <p>where it repeats N times?</p> <p>I'm trying to implement Conway's Game of Life. I have a function that takes a vector and outputs another vector, w...
[ { "answer_id": 74512087, "author": "Vortezz", "author_id": 19103809, "author_profile": "https://Stackoverflow.com/users/19103809", "pm_score": 0, "selected": false, "text": "Access-Control-Allow-Origin: * Access-Control-Allow-Origin: domain.com" }, { "answer_id": 74512107, "a...
2022/11/20
[ "https://Stackoverflow.com/questions/74512080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8074184/" ]
74,512,116
<pre><code>def exponentiation(base,n): if n == 0: return 1 if n % 2 == 0: return exponentiation(base*base, n/2) else: return base * exponentiation(base * base, (n-1)/2) if __name__ == '__main__': print(len(str(exponentiation(2, 66666666)))) </code></pre> <p>For very large integers,...
[ { "answer_id": 74512171, "author": "LeopardShark", "author_id": 8425824, "author_profile": "https://Stackoverflow.com/users/8425824", "pm_score": 0, "selected": false, "text": "exponentiation = pow\n int(math.log10(n)) + 1" }, { "answer_id": 74512194, "author": "Pi Marillion"...
2022/11/20
[ "https://Stackoverflow.com/questions/74512116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557592/" ]
74,512,147
<p>I need to make a realistic 3d shadow that looks like the container is standing. Just like the image shows.</p> <p><a href="https://i.stack.imgur.com/Mod6x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mod6x.png" alt="enter image description here" /></a></p> <p><a href="https://i.stack.imgur.com/...
[ { "answer_id": 74512171, "author": "LeopardShark", "author_id": 8425824, "author_profile": "https://Stackoverflow.com/users/8425824", "pm_score": 0, "selected": false, "text": "exponentiation = pow\n int(math.log10(n)) + 1" }, { "answer_id": 74512194, "author": "Pi Marillion"...
2022/11/20
[ "https://Stackoverflow.com/questions/74512147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16413657/" ]
74,512,166
<p>I am working on a vector sorting algorithm for my personal particle physics studies but I am very new to coding.</p> <p>Going through individual scenarios (specific vector sizes and combinations) by brute force becomes extremely chaotic for greater numbers of net vector elements, especially since this whole code wil...
[ { "answer_id": 74519979, "author": "joergbrech", "author_id": 12173376, "author_profile": "https://Stackoverflow.com/users/12173376", "pm_score": 1, "selected": false, "text": "k double std::pair<double, double> double double std::vector<double> aplus aminus bplus bminus std::pair<double...
2022/11/20
[ "https://Stackoverflow.com/questions/74512166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557343/" ]
74,512,183
<p>Terraform syntax question. I am trying to minimise the logic creating security groups by simply looping over a list of local variables, here is the example</p> <pre><code>locals { egress = { udp = [ 53, 123 ] } ingress = { tcp = [ 443, 22, ] } } </code></pre> <p>and a ...
[ { "answer_id": 74512592, "author": "Helder Sepulveda", "author_id": 7599833, "author_profile": "https://Stackoverflow.com/users/7599833", "pm_score": 3, "selected": true, "text": "locals {\n ingress = {\n 443 : \"tcp\",\n 22 : \"tcp\"\n }\n}\n\nresource \"aws_security_group_rule\...
2022/11/20
[ "https://Stackoverflow.com/questions/74512183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4696089/" ]
74,512,262
<p>I would like to fetch a &quot;board_ID&quot;: fetch(&quot;http://localhost:4000/NewGame&quot;) and then use that board_ID in the address of the following fetch: fetch(&quot;http://localhost:4000/Turn/&quot; + board_ID). The problem is that setboard_ID (initialized previously with useState) does not update the board_...
[ { "answer_id": 74512350, "author": "ColdDarkness", "author_id": 20480318, "author_profile": "https://Stackoverflow.com/users/20480318", "pm_score": 1, "selected": false, "text": "useEffect(function, [dependency]) \n" }, { "answer_id": 74512449, "author": "Rishabh Kumar Mayank...
2022/11/20
[ "https://Stackoverflow.com/questions/74512262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19394369/" ]
74,512,269
<p>I'm trying to write a Java code to check if password includes characters, numbers and special characters. Everything fine until the special characters part. The idea is that the index of specialChars and the characters of the Password file are confront and, if there's a match, it would print a positive message, else...
[ { "answer_id": 74512416, "author": "Bohemian", "author_id": 256196, "author_profile": "https://Stackoverflow.com/users/256196", "pm_score": 1, "selected": false, "text": "public boolean passwordValid(String password) {\n return password.matches(\"(?=.*[a-zA-Z])(?=.*\\\\d)(?=.*[!@#*+_(%...
2022/11/20
[ "https://Stackoverflow.com/questions/74512269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13707732/" ]
74,512,281
<p>I've been trying to install java on vs code for a couple hours now and I can't seem to get it to work. I've already downloaded all the extensions necessary and I've downloaded the coding pack from <a href="https://code.visualstudio.com/docs/languages/java" rel="nofollow noreferrer">https://code.visualstudio.com/docs...
[ { "answer_id": 74512416, "author": "Bohemian", "author_id": 256196, "author_profile": "https://Stackoverflow.com/users/256196", "pm_score": 1, "selected": false, "text": "public boolean passwordValid(String password) {\n return password.matches(\"(?=.*[a-zA-Z])(?=.*\\\\d)(?=.*[!@#*+_(%...
2022/11/20
[ "https://Stackoverflow.com/questions/74512281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19945992/" ]
74,512,285
<p>I am working with an SIR model using R. I need to plot multiple curves of I on the same figure for different values of beta, say for the values of 0.001, 0.002, 0.003, 0.004, and 0.005. Given below is the code that I have been working with so far. I know this might be a very simple problem, but I am new to R and cou...
[ { "answer_id": 74512416, "author": "Bohemian", "author_id": 256196, "author_profile": "https://Stackoverflow.com/users/256196", "pm_score": 1, "selected": false, "text": "public boolean passwordValid(String password) {\n return password.matches(\"(?=.*[a-zA-Z])(?=.*\\\\d)(?=.*[!@#*+_(%...
2022/11/20
[ "https://Stackoverflow.com/questions/74512285", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557703/" ]
74,512,291
<p>If I beta-reduce the following expression:</p> <pre class="lang-hs prettyprint-override"><code> foldr (mappend . Sum) 1 [2] = (mappend . Sum) 2 (foldr (mappend . Sum) 1 []) = (mappend . Sum) 2 1 = mappend (Sum 2) 1 ... </code></pre> <p>Looking at the type of:</p> <pre class="lang-hs prettyprint-override"><code>// m...
[ { "answer_id": 74512324, "author": "Willem Van Onsem", "author_id": 67579, "author_profile": "https://Stackoverflow.com/users/67579", "pm_score": 3, "selected": false, "text": "1 Sum a foldr (mappend . Sum) 1 [2] :: Num a => Sum a\n 2 a 1 Sum a Sum a Num a Num newtype Sum a = Sum { getSu...
2022/11/20
[ "https://Stackoverflow.com/questions/74512291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9759263/" ]
74,512,312
<p>I am working through some messy data where, after reading it in, it appears as the following:</p> <pre><code>&gt; glimpse(il_births) Rows: 106 Columns: 22 $ x1989 &lt;dbl&gt; 190247, 928, 175, 187, 445, 57, 425, 41, 207, 166, 2662, 48… $ x1990 &lt;dbl&gt; 195499, 960, 192, 195, 462, 68, 449, 53, 222, 187...
[ { "answer_id": 74512378, "author": "Ricardo SemiΓ£o e Castro", "author_id": 13048728, "author_profile": "https://Stackoverflow.com/users/13048728", "pm_score": 2, "selected": true, "text": "pivot_longer data il_births cols -county_name names_to \"name\" values_to \"value\" pivot_longer(il...
2022/11/20
[ "https://Stackoverflow.com/questions/74512312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472222/" ]
74,512,322
<p>This is my first question on my first project. I'm struggling to display my make any progress can someone point me in the right direction, not sure if its my code or set as newbie and a friend set up my html doc</p> <pre><code>&lt;HTML&gt; &lt;HEAD&gt; &lt;TITLE&gt;Foil Checker&lt;/TITLE&gt; &lt;META http-e...
[ { "answer_id": 74512378, "author": "Ricardo SemiΓ£o e Castro", "author_id": 13048728, "author_profile": "https://Stackoverflow.com/users/13048728", "pm_score": 2, "selected": true, "text": "pivot_longer data il_births cols -county_name names_to \"name\" values_to \"value\" pivot_longer(il...
2022/11/20
[ "https://Stackoverflow.com/questions/74512322", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557754/" ]
74,512,333
<p>I am trying to make a 4-bit adder and test it. I decided to use <code>wait</code> to determine when the adder circuit is done by checking when my <code>sum</code> and <code>carry_out</code> are &gt;= 0. The inputs for the circuit are given as command line arguments. I am constructing my 4-bit adder using my full add...
[ { "answer_id": 74512378, "author": "Ricardo SemiΓ£o e Castro", "author_id": 13048728, "author_profile": "https://Stackoverflow.com/users/13048728", "pm_score": 2, "selected": true, "text": "pivot_longer data il_births cols -county_name names_to \"name\" values_to \"value\" pivot_longer(il...
2022/11/20
[ "https://Stackoverflow.com/questions/74512333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12104593/" ]
74,512,341
<p>So I'm trying to make a barplot on R that has a categorical label, not a number scale, as the x-axis. I then need to knit the RMarkdown file as a pdf. This is what it looks like before I knit it as a RMD:</p> <p><img src="https://i.stack.imgur.com/6JBwg.png" alt="enter image description here" /></p> <p>This is what ...
[ { "answer_id": 74514737, "author": "jay.sf", "author_id": 6574038, "author_profile": "https://Stackoverflow.com/users/6574038", "pm_score": 1, "selected": false, "text": "fig.width= fig.height= ---\noutput: pdf_document\n---\n\n```{r, echo=FALSE, fig.width=7, fig.height=4.67}\n\n## simul...
2022/11/20
[ "https://Stackoverflow.com/questions/74512341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557773/" ]
74,512,351
<p>I have an index that returns something like this</p> <pre><code>Company_All { name : string; id : string; agentDocumentId : string } </code></pre> <p>is it possible to load the related agent document and then generate a nested result with selectFields and QueryData like this</p> <pre><code>ICompanyView ...
[ { "answer_id": 74515345, "author": "Ayende Rahien", "author_id": 6366, "author_profile": "https://Stackoverflow.com/users/6366", "pm_score": 2, "selected": false, "text": "filter load" } ]
2022/11/20
[ "https://Stackoverflow.com/questions/74512351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1187394/" ]
74,512,361
<p>I have a simple java rest api with a mysql server. I need to deploy this on WSO2 APIM. I used mocky to make a fake rest api but the only call I can make is /songs to get all songs. /songs/6 will not give song with id 6. Same for put, delete, post. I don't know how to approach this. Do I need to host it on a public d...
[ { "answer_id": 74515345, "author": "Ayende Rahien", "author_id": 6366, "author_profile": "https://Stackoverflow.com/users/6366", "pm_score": 2, "selected": false, "text": "filter load" } ]
2022/11/20
[ "https://Stackoverflow.com/questions/74512361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12446621/" ]
74,512,363
<p>I am an R User that is trying to learn more about Python.</p> <p>I found this Python library that I would like to use for address parsing: <a href="https://github.com/zehengl/ez-address-parser" rel="nofollow noreferrer">https://github.com/zehengl/ez-address-parser</a></p> <p>I was able to try an example over here:</...
[ { "answer_id": 74512440, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 3, "selected": true, "text": "Series join def parse(x):\n return pd.Series({k:v for v,k in ap.parse(x)})\n\nout = df.join(df['ADDRESS'].apply(p...
2022/11/20
[ "https://Stackoverflow.com/questions/74512363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13203841/" ]
74,512,381
<p>I just stated learning Python. My teacher asked me to take this string <code>&quot;quick brown fox, jumps over the lazy dog!&quot;</code>, iterate all letter using <code>i in range()</code> function, and whenever I find a whitespace in the string I need to make the next character uppercase. So that the final output ...
[ { "answer_id": 74512452, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 1, "selected": true, "text": "i == 6 mystring[i] nestring \"Quick\" + \"b\".upper() i==7 newstring mystring[i] for i in range (1,len(mystring)):\...
2022/11/20
[ "https://Stackoverflow.com/questions/74512381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557782/" ]
74,512,390
<p>I am currently doing a python program to convert from image to hex string and the other way around. I need two functions, one that takes an image and returns a hex string that corresponds to the RGB values of each pixel, and another function that takes a hex string, two ints, and generates a visible image of that si...
[ { "answer_id": 74512452, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 1, "selected": true, "text": "i == 6 mystring[i] nestring \"Quick\" + \"b\".upper() i==7 newstring mystring[i] for i in range (1,len(mystring)):\...
2022/11/20
[ "https://Stackoverflow.com/questions/74512390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13090510/" ]
74,512,411
<p>I'd like to write functions that do common matrix operations. This can be done by 2-dim arrays or pointer arithmetic. I prefer a pointer version. Now with pointers I'd write a function like this:</p> <pre><code>void matmult(double *a, double *b, double *c, int m, int n, int k); </code></pre> <p>The problem is that ...
[ { "answer_id": 74512452, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 1, "selected": true, "text": "i == 6 mystring[i] nestring \"Quick\" + \"b\".upper() i==7 newstring mystring[i] for i in range (1,len(mystring)):\...
2022/11/20
[ "https://Stackoverflow.com/questions/74512411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557746/" ]
74,512,464
<p>I am using bloc state management in the Flutter framework, and I am working on an application that uses a socket with chat. I want as soon as the user leaves the room, I send an event to the socket so that he leaves the chat, but I see the error attached to you in the address, what is the solution?</p> <p><a href="h...
[ { "answer_id": 74512452, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 1, "selected": true, "text": "i == 6 mystring[i] nestring \"Quick\" + \"b\".upper() i==7 newstring mystring[i] for i in range (1,len(mystring)):\...
2022/11/20
[ "https://Stackoverflow.com/questions/74512464", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11247805/" ]
74,512,472
<p>Regex to find even occurrence of a character in a string every time it repeats in a string</p> <p>Example:</p> <pre><code>YYMMDD-YYYY-DD true YYMDD false </code></pre> <p>Y,M,D are case sensitive Y,M,D can appear multiple time at multiple postion in pairs in string but each pair must be even.</p> <p>I have applied t...
[ { "answer_id": 74512452, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 1, "selected": true, "text": "i == 6 mystring[i] nestring \"Quick\" + \"b\".upper() i==7 newstring mystring[i] for i in range (1,len(mystring)):\...
2022/11/20
[ "https://Stackoverflow.com/questions/74512472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17505682/" ]
74,512,473
<p>I have a file (&quot;my_file&quot;) in R that looks something like this:</p> <pre><code> NAME Address_Parse 1 name1 [('372', 'StreetNumb...
[ { "answer_id": 74512633, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": true, "text": "fromJSON \"key\":value (value, 'key') { } [ ] library(dplyr)\nlibrary(purrr)\nlibrary(stringr)\nlibrary(jsonlite)\nlibr...
2022/11/20
[ "https://Stackoverflow.com/questions/74512473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13203841/" ]
74,512,509
<p>I have to combine these 2 lists:</p> <pre><code>dots = [['.', '.', '.', '.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', ...
[ { "answer_id": 74512554, "author": "Pranav Hosangadi", "author_id": 843953, "author_profile": "https://Stackoverflow.com/users/843953", "pm_score": 3, "selected": true, "text": "zip lines = [\n \"\".join(\n dot + space \n for dot, space in zip(row_dots,...
2022/11/20
[ "https://Stackoverflow.com/questions/74512509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18115952/" ]
74,512,510
<p>How can I iterate over a byte slice and assign them to the fields of a struct?</p> <pre class="lang-golang prettyprint-override"><code>type s struct { f1 []byte f2 []byte f3 []byte } func S s { x := s{} x.f1 = make([]byte, 4) x.f1 = make([]byte, 2) x.f1 = make([]byte, 2) return x } func main() { ...
[ { "answer_id": 74512719, "author": "blackgreen", "author_id": 4108803, "author_profile": "https://Stackoverflow.com/users/4108803", "pm_score": 0, "selected": false, "text": "reflect.Copy copy func main() {\n data := []byte{83, 117, 110, 83, 0, 1, 0, 65}\n\n z := S{\n F1: ma...
2022/11/20
[ "https://Stackoverflow.com/questions/74512510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2432240/" ]
74,512,511
<p>I want that the div panel_pricing-table become a flexbox so that all elements in it stay in this box also when I make my window smaller. My problem is that the elements in the flexbox won't shrink, if I make my browser window smaller. The mistake is in CSS but I don't find it. Can you help me pls? `</p> <pre><code>h...
[ { "answer_id": 74512719, "author": "blackgreen", "author_id": 4108803, "author_profile": "https://Stackoverflow.com/users/4108803", "pm_score": 0, "selected": false, "text": "reflect.Copy copy func main() {\n data := []byte{83, 117, 110, 83, 0, 1, 0, 65}\n\n z := S{\n F1: ma...
2022/11/20
[ "https://Stackoverflow.com/questions/74512511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556795/" ]
74,512,521
<p>I had this school project that I'm working on. I am done, I just need to edit it a bit and am running into a issue. I sent my code to my professor so he could check it over and there's only one thing wrong with it.</p> <blockquote> <p>All your array notations need to change to pure pointer notations such as <code>*s...
[ { "answer_id": 74512719, "author": "blackgreen", "author_id": 4108803, "author_profile": "https://Stackoverflow.com/users/4108803", "pm_score": 0, "selected": false, "text": "reflect.Copy copy func main() {\n data := []byte{83, 117, 110, 83, 0, 1, 0, 65}\n\n z := S{\n F1: ma...
2022/11/20
[ "https://Stackoverflow.com/questions/74512521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20544996/" ]
74,512,541
<p>I’ve created an array to get the sum, biggest number, and smallest number from all the numbers in an array. When I use a cout statement to print out the numbers I’m given garbage. Can anyone help me understand what went wrong and what to do</p> <p>I previously asked a question on the same code asking about why my ar...
[ { "answer_id": 74512719, "author": "blackgreen", "author_id": 4108803, "author_profile": "https://Stackoverflow.com/users/4108803", "pm_score": 0, "selected": false, "text": "reflect.Copy copy func main() {\n data := []byte{83, 117, 110, 83, 0, 1, 0, 65}\n\n z := S{\n F1: ma...
2022/11/20
[ "https://Stackoverflow.com/questions/74512541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20259675/" ]
74,512,543
<p>I want to get values ​​from an array every day, respectively, and set these values ​​to a textbox. I can get values ​​from array and set them in textbox but next day value stays same. does not set the next value in array? what can I do?</p> <pre><code>&lt;string-array name=&quot;morning&quot;&gt; &lt;item&gt;Goo...
[ { "answer_id": 74512719, "author": "blackgreen", "author_id": 4108803, "author_profile": "https://Stackoverflow.com/users/4108803", "pm_score": 0, "selected": false, "text": "reflect.Copy copy func main() {\n data := []byte{83, 117, 110, 83, 0, 1, 0, 65}\n\n z := S{\n F1: ma...
2022/11/20
[ "https://Stackoverflow.com/questions/74512543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18611618/" ]
74,512,555
<p>SO basically it keeps saying error at line 14 which is the &quot;else&quot; code is at i dont get it why it is synta error please help</p> <pre><code>clear clc function f=f(x) f = x^3 + 2*x^2 - 3*x -1 endfunction disp (&quot;sample input&quot;): regulaFalsi (1,2,10^-4, 100) function regulaFalsi(a, b, TOL, N) ...
[ { "answer_id": 74512719, "author": "blackgreen", "author_id": 4108803, "author_profile": "https://Stackoverflow.com/users/4108803", "pm_score": 0, "selected": false, "text": "reflect.Copy copy func main() {\n data := []byte{83, 117, 110, 83, 0, 1, 0, 65}\n\n z := S{\n F1: ma...
2022/11/20
[ "https://Stackoverflow.com/questions/74512555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557994/" ]
74,512,558
<p>My approach with this function is that it only accepts an integer as an input, otherwise if the person enters a letter or something else it goes back to the while loop and continues asking for the input until it receives the correct input which in this case it can only be 1-9.</p> <pre><code>import string string.asc...
[ { "answer_id": 74512782, "author": "puf", "author_id": 6583203, "author_profile": "https://Stackoverflow.com/users/6583203", "pm_score": 1, "selected": false, "text": "def player_choice(board):\n while True:\n position = input(\"Please enter a position(1-9): \")\n if pos...
2022/11/20
[ "https://Stackoverflow.com/questions/74512558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19865345/" ]
74,512,591
<p>I looked everywhere, but there are not any guides or explanations of how to use QSkyBoxEntity.</p> <p>I created Entity and filled it with transform (set translation and 3d scale). Also changed name and extension.</p> <p>When I'm trying to run program it says</p> <p>&quot;Qt3D.Renderer.OpenGL.Backend: Unable to find ...
[ { "answer_id": 74512782, "author": "puf", "author_id": 6583203, "author_profile": "https://Stackoverflow.com/users/6583203", "pm_score": 1, "selected": false, "text": "def player_choice(board):\n while True:\n position = input(\"Please enter a position(1-9): \")\n if pos...
2022/11/20
[ "https://Stackoverflow.com/questions/74512591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11019083/" ]
74,512,645
<p>I've been trying to debug this simple code for 20 minutes and it's driving me crazy, I'm starting to think there's a bug in Python. What I want to do is add two lists, element by element (there probably is some more efficient way to do this or even an in-build function, I'm just doing it as an exercise):</p> <pre><c...
[ { "answer_id": 74512675, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 2, "selected": true, "text": "l1 = [1, 2]\nl2 = [2, 1]\nassert l1 < l2 (because l1[0] < l2[0])\n len if len(l1) >= len(l2):\n ...\n" }, { ...
2022/11/20
[ "https://Stackoverflow.com/questions/74512645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558032/" ]
74,512,687
<p><a href="https://jsfiddle.net/wv3hmub1/14/" rel="nofollow noreferrer">https://jsfiddle.net/wv3hmub1/14/</a></p> <p>I want to achive this</p> <pre><code>Header -------------------- </code></pre> <p>or</p> <pre><code>My Header many letters second line --------------- </code></pre> <p>I tried this:</p> <pre class="lang...
[ { "answer_id": 74512675, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 2, "selected": true, "text": "l1 = [1, 2]\nl2 = [2, 1]\nassert l1 < l2 (because l1[0] < l2[0])\n len if len(l1) >= len(l2):\n ...\n" }, { ...
2022/11/20
[ "https://Stackoverflow.com/questions/74512687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14120204/" ]
74,512,701
<p>I have components that have redundant code. I want to create a reusable component that will accept the property of a state that I want to update as a prop. How could I do so?</p> <pre><code>&lt;Text&gt; Calories&lt;/Text&gt; &lt;TextInput style={styles.input} onChangeText={(event) =&gt; setItem(prevState =&gt; ({ ...
[ { "answer_id": 74512675, "author": "kosciej16", "author_id": 3361462, "author_profile": "https://Stackoverflow.com/users/3361462", "pm_score": 2, "selected": true, "text": "l1 = [1, 2]\nl2 = [2, 1]\nassert l1 < l2 (because l1[0] < l2[0])\n len if len(l1) >= len(l2):\n ...\n" }, { ...
2022/11/20
[ "https://Stackoverflow.com/questions/74512701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18604870/" ]
74,512,703
<p>I want to make one method which will be responsible to get value based on input arg key and to lookup for type of that value because its an object (can be int, string, datetime...)</p> <p>I created something like this:</p> <pre><code>public T GetValueForKeyFromHeader&lt;T&gt; (string key) { object value = null; va...
[ { "answer_id": 74522435, "author": "t.ouvre", "author_id": 5658778, "author_profile": "https://Stackoverflow.com/users/5658778", "pm_score": 2, "selected": false, "text": "public static bool TryGetValue<TValue>(this IDictionary<string, object> self, string key, out TValue value)\n{\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74512703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5383872/" ]
74,512,733
<p>I am trying to calculate running (cumulative) totals per column on a range (please see picture below).</p> <p>If I use one SCAN function per column, it works. But I have to write as many SCAN functions as I have columns.</p> <p>The problem is that I want to use a single dynamic array formula that includes all the co...
[ { "answer_id": 74513299, "author": "David Leal", "author_id": 6237093, "author_profile": "https://Stackoverflow.com/users/6237093", "pm_score": 2, "selected": false, "text": "D2 =LET(set, A2:B5, m, COLUMNS(set), seq, SEQUENCE(m,1),\n CUMULATE, LAMBDA(x, SCAN(0, x, LAMBDA(acc,item, acc+it...
2022/11/20
[ "https://Stackoverflow.com/questions/74512733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6304284/" ]
74,512,738
<p>I have a problem with <code>audioplayers</code> in Flutter. The application runs on a Desktop but it doesn't run on Android and here is the error:</p> <pre><code>C:\flutter\.pub-cache\hosted\pub.dartlang.org\audioplayers_android-1.1.1\android\src\main\kotlin\xyz\luan\audioplayers\player\WrappedPlayer.kt:271:21: warn...
[ { "answer_id": 74513299, "author": "David Leal", "author_id": 6237093, "author_profile": "https://Stackoverflow.com/users/6237093", "pm_score": 2, "selected": false, "text": "D2 =LET(set, A2:B5, m, COLUMNS(set), seq, SEQUENCE(m,1),\n CUMULATE, LAMBDA(x, SCAN(0, x, LAMBDA(acc,item, acc+it...
2022/11/20
[ "https://Stackoverflow.com/questions/74512738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558088/" ]
74,512,771
<p>I have a huge list of dictionaries (I have shortened it here for clarity), where some values are duplicates (let's assume 'ID' is my target). How can I print the dictionary/ies where the ID occurs more than once?</p> <pre><code>[{'ID': 2501, 'First Name': 'Edward', 'Last Name': 'Crawford', 'Email': 'c.crawford...
[ { "answer_id": 74512822, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 0, "selected": false, "text": "collections.Counter ID lst = [\n {\n \"ID\": 2501,\n \"First Name\": \"Edward\",\n \...
2022/11/20
[ "https://Stackoverflow.com/questions/74512771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558078/" ]
74,512,813
<p>I have 50 text files that looks like this. All the file names begin with ENSG00000...</p> <pre><code>&quot;number&quot; &quot;variant_id&quot; &quot;gene_id&quot; &quot;tss_distance&quot; &quot;ma_samples&quot; &quot;ma_count&quot; &quot;maf&quot; &quot;pval_nominal&quot;&quot;slope&quot; &quot;slop...
[ { "answer_id": 74512881, "author": "Cameron Priest", "author_id": 13306247, "author_profile": "https://Stackoverflow.com/users/13306247", "pm_score": 3, "selected": true, "text": "for i in ENSG00000*; do\n awk '{ gsub(/\"/, \"\"); print }' $i > $i.out\ndone\n" }, { "answer_id"...
2022/11/20
[ "https://Stackoverflow.com/questions/74512813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14614150/" ]
74,512,819
<p>I have this code. I need to group by CustomerName and then sum the filegroups.</p> <pre><code>def consolidated_df(): df = breakdown_df() df.pivot_table(index='CustomerName', columns='FileGroup', aggfunc=&quot;sum&quot;) return df </code></pre> <p><code>breakdown_df()</code> looks like</p> <pre><code>ID ...
[ { "answer_id": 74512881, "author": "Cameron Priest", "author_id": 13306247, "author_profile": "https://Stackoverflow.com/users/13306247", "pm_score": 3, "selected": true, "text": "for i in ENSG00000*; do\n awk '{ gsub(/\"/, \"\"); print }' $i > $i.out\ndone\n" }, { "answer_id"...
2022/11/20
[ "https://Stackoverflow.com/questions/74512819", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20497632/" ]
74,512,827
<p>Ok so I want to subtract 9 to numbers(elements in an array) over 9:</p> <pre><code>finalCredDigits = [10, 8, 18, 9, 16, 6, 16, 5, 14, 3, 14, 6, 10, 5, 8] </code></pre> <p>Thats what I tried</p> <pre><code>finalCredDigits.forEach(arr =&gt;{ if(arr &gt; 9){ finalCredDigits.push(arr - 9); } }); </code></pre> <...
[ { "answer_id": 74512886, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 1, "selected": false, "text": "forEach() const finalCredDigits = [10, 8, 18, 9, 16, 6, 16, 5, 14, 3, 14, 6, 10, 5, 8];\n\nfinalCredDigits.forEach((e...
2022/11/20
[ "https://Stackoverflow.com/questions/74512827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20409564/" ]
74,512,877
<p>I'm trying to upload a CSV file to google drive and I'm getting the error described in the subject of this post.</p> <p>this is my code:</p> <p>I think my error is in the content generation. I've seen some other posts but I can't resolve it yet.</p> <p>this is the code</p> <pre><code>public function uploadFileToDri...
[ { "answer_id": 74513046, "author": "Tanaike", "author_id": 7108653, "author_profile": "https://Stackoverflow.com/users/7108653", "pm_score": 3, "selected": true, "text": "$data Content-Type $data = '\n--section_divider\nContent-Type: application/json; charset=UTF-8\n{\n \"name\": \"te...
2022/11/20
[ "https://Stackoverflow.com/questions/74512877", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5158716/" ]
74,512,899
<p>I have a function defined e.g.</p> <pre><code>Public Function calc_x(ByVal x As Integer) ...do some stuff calc_x = x+x End Function </code></pre> <p>This function gets called within the excel sheet from a cell lets say (A2), with a &quot;pointer&quot; to A1 which contains a value 20:</p> <pre><code>content cell A...
[ { "answer_id": 74513046, "author": "Tanaike", "author_id": 7108653, "author_profile": "https://Stackoverflow.com/users/7108653", "pm_score": 3, "selected": true, "text": "$data Content-Type $data = '\n--section_divider\nContent-Type: application/json; charset=UTF-8\n{\n \"name\": \"te...
2022/11/20
[ "https://Stackoverflow.com/questions/74512899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558245/" ]
74,512,904
<p>Are there any tricks that could get me from table 1 to table 2. I don't see a solution at this time. Is it doable?</p> <p><a href="https://i.stack.imgur.com/7tJO7.png" rel="nofollow noreferrer">table 1</a></p> <p><a href="https://i.stack.imgur.com/z1SYK.png" rel="nofollow noreferrer">table 2</a></p> <p>Thank you</p>...
[ { "answer_id": 74513776, "author": "Ping", "author_id": 20288037, "author_profile": "https://Stackoverflow.com/users/20288037", "pm_score": 0, "selected": false, "text": "\"Class A name\" \"Class B name\" \"Class A name\" \"Class B name\" \"Class B name\" =LAMBDA(SOURCE,A,B,HEADERS,\n LA...
2022/11/20
[ "https://Stackoverflow.com/questions/74512904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3182345/" ]
74,512,926
<p>I would like to find character after <code>|</code> and check in a loop in C#.</p> <p>Like I have <code>Test|T1</code>. After pipe the character could be anything like <code>Test|T2</code> or <code>Test|T3</code>.</p> <p>The first value is <code>Table|Y</code> and second value could be <code>Test|T1</code>, <code>Te...
[ { "answer_id": 74512991, "author": "Gambi", "author_id": 14766188, "author_profile": "https://Stackoverflow.com/users/14766188", "pm_score": 1, "selected": false, "text": "if (testing.Split('|')[0] == \"Test\" && testing.Split('|')[1] == \"T1\")\n{\n \n}\n" }, { "answer_id": 7...
2022/11/20
[ "https://Stackoverflow.com/questions/74512926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20505175/" ]
74,512,941
<p>I want to convert the given array</p> <pre><code>arr = ['abc', 'def', 'hij']; </code></pre> <p>into this object:</p> <pre><code>result = { 'key': 'abc', 'key': 'def', 'key': 'hij' } </code></pre> <p>----EDIT----</p> <p>I want this structure because there is no way around other than this to pass this as queryParams i...
[ { "answer_id": 74512986, "author": "symlink", "author_id": 818326, "author_profile": "https://Stackoverflow.com/users/818326", "pm_score": 2, "selected": false, "text": "const arr = ['abc', 'def', 'hij'];\n\nconst result = arr.map(str => Object.create({key: str}));\nconsole.log(result);"...
2022/11/20
[ "https://Stackoverflow.com/questions/74512941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12466554/" ]
74,512,975
<p>I want to create a large array of random numbers drawn from the gaussian distribution. I found <a href="https://netlib.org/lapack/explore-html/df/dd1/group___o_t_h_e_rauxiliary_ga77e05a87ced667cbdb502aa87c72d056.html#ga77e05a87ced667cbdb502aa87c72d056" rel="nofollow noreferrer">dlarnv</a>, but I am not sure how to u...
[ { "answer_id": 74513559, "author": "Priyatham", "author_id": 2542516, "author_profile": "https://Stackoverflow.com/users/2542516", "pm_score": 0, "selected": false, "text": "dlarnv_ GameplayKit var n: Int32 = 500 // Array size\nvar d: Int32 = 3 // 3 for Normal(0, 1)\nvar seed: [Int32] = ...
2022/11/21
[ "https://Stackoverflow.com/questions/74512975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2542516/" ]
74,512,987
<p>I'm trying to create a modal window that can be closed by clicking on either ouside the modal window itself or by clicking on a close button</p> <pre><code>const onCloseHandler = (e) =&gt; { e.stopPropagation(); setIsModalOpen(false); }; return ( &lt;div className=&quot;overlay&quot; onClick={onCloseHan...
[ { "answer_id": 74513054, "author": "John Li", "author_id": 20436957, "author_profile": "https://Stackoverflow.com/users/20436957", "pm_score": 1, "selected": true, "text": "modal-window overlay modal-window overlay overlay modal-window modal-window overlay <>\n<div className=\"overlay\" ...
2022/11/21
[ "https://Stackoverflow.com/questions/74512987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20395932/" ]
74,513,017
<pre><code>class DR(nn.Module): def __init__(self, orginal, latent_dims): super(DR, self).__init__() self.latent_dims=latent_dims self.linear1 = nn.Linear(orginal, 1000) self.linear2 = nn.Linear(1000, 2000) self.linear3 = nn.Linear(2000, latent_dims) def forwar...
[ { "answer_id": 74513054, "author": "John Li", "author_id": 20436957, "author_profile": "https://Stackoverflow.com/users/20436957", "pm_score": 1, "selected": true, "text": "modal-window overlay modal-window overlay overlay modal-window modal-window overlay <>\n<div className=\"overlay\" ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487645/" ]
74,513,018
<p>I have a large MySQL table and when it had a low number of records the searches were fast, however the table now has over 400,000 records and searches take less than a second between 0.60 and 0.75. I've tried using indexes to bring this down to a nearer the 0.10 second or at least lower than 0.60 with no success. Th...
[ { "answer_id": 74513123, "author": "MatBailie", "author_id": 53341, "author_profile": "https://Stackoverflow.com/users/53341", "pm_score": 0, "selected": false, "text": "url, viewdate, id WHERE WHERE\n viewdate > ?\n AND url IN (?, CONCAT(?,'/'))\n LIKE IN() = ALTER TABLE `mysql` ADD I...
2022/11/21
[ "https://Stackoverflow.com/questions/74513018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/997934/" ]
74,513,025
<p>at the moment I am struggling to figure out this problem. I am attempting to make a textbox set the background of the website. Here is my code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; Enter URL: &lt;input type=&quot;text&quot; id=&quot;myText&quot;&gt; &lt;button onclick=&quot;myFunction()&q...
[ { "answer_id": 74513050, "author": "OwnageIsMagic", "author_id": 5647513, "author_profile": "https://Stackoverflow.com/users/5647513", "pm_score": 2, "selected": false, "text": "background green red document.body.style.background = 'green';\n let img_url = 'path_to.jpg';\ndocument.body.s...
2022/11/21
[ "https://Stackoverflow.com/questions/74513025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19971880/" ]
74,513,029
<p>How do I convert a number to Text in Excel based on what the number is.</p> <p>For eg, I have the following logic to be implemented:</p> <pre><code>pob &gt; 1 ? &quot;Strong Buy&quot; : pob &gt; 0 ? &quot;Buy&quot; : pob &lt; -1 ? &quot;Strong Sell&quot; : pob &lt; 0 ? &quot;Sell&quot; : &quot;Neutral&quot; </code><...
[ { "answer_id": 74513497, "author": "Harun24hr", "author_id": 5514747, "author_profile": "https://Stackoverflow.com/users/5514747", "pm_score": 3, "selected": true, "text": "XLOOKUP() =XLOOKUP(A1,{-2,-1,0,1,2},{\"Strong Sell\",\"Sell\",\"Neutral\",\"Buy\",\"Strong Buy\"},\"\",-1)\n" }, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1089173/" ]
74,513,036
<p>I am developing a python script that will run as a azure app function. It should read a parquet file from our gen1 datalake and do some processing over it. When running in debug mode in VS Code it works perfectly but when I deploy the script to the app function it retrieve a error with a not very meaninfull message....
[ { "answer_id": 74513497, "author": "Harun24hr", "author_id": 5514747, "author_profile": "https://Stackoverflow.com/users/5514747", "pm_score": 3, "selected": true, "text": "XLOOKUP() =XLOOKUP(A1,{-2,-1,0,1,2},{\"Strong Sell\",\"Sell\",\"Neutral\",\"Buy\",\"Strong Buy\"},\"\",-1)\n" }, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513036", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4802101/" ]
74,513,079
<p>I've created a Notification Bot in VS Code using the Teams Toolkit template (Teams Toolkit v4.1.2).</p> <p>The Bot runs fine locally and I'm able to trigger it by sending a <code>HTTP Post</code> request from Postman.</p> <p>It deploys fine to Azure, but when I call it from Postman (using the url from the Azure App ...
[ { "answer_id": 74515873, "author": "Qianhao Dong", "author_id": 8646368, "author_profile": "https://Stackoverflow.com/users/8646368", "pm_score": 2, "selected": true, "text": "401 Unauthorized" } ]
2022/11/21
[ "https://Stackoverflow.com/questions/74513079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4707807/" ]
74,513,097
<p>Hello I have a project which uses react, typescript, and webpack. Previously I had some errors which caused the code to not compile but now when it is fixed, webpack does serve the HTML file on localhost:8000 but nothing else, so no CSS, or any scripts, here is my webpack.config if you think the issue might be somew...
[ { "answer_id": 74515873, "author": "Qianhao Dong", "author_id": 8646368, "author_profile": "https://Stackoverflow.com/users/8646368", "pm_score": 2, "selected": true, "text": "401 Unauthorized" } ]
2022/11/21
[ "https://Stackoverflow.com/questions/74513097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17286169/" ]
74,513,104
<p>How do I write open(SCRPT, &quot;&gt;$script&quot;) or die...; in python?? Im trying to run a script in python to automate a slurm job. For that, I am trying to create and open a file names SCRPT and write a block of code to be read and executed.</p> <p>Is it SCRPT = open(script) with open(SCRPT)</p>
[ { "answer_id": 74513319, "author": "Pi Marillion", "author_id": 2892254, "author_profile": "https://Stackoverflow.com/users/2892254", "pm_score": 1, "selected": false, "text": "with ... as open script = '/path/to/some/script.sh'\nwith open(script, 'w') as file:\n file.write(\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558422/" ]
74,513,184
<p>Im trying to learn scheme and Im having trouble with the arithmetic in the Scheme syntax.</p> <p>Would anyone be able to write out a function in Scheme that represents the Geometric Series?</p>
[ { "answer_id": 74513439, "author": "Sylwester", "author_id": 1565698, "author_profile": "https://Stackoverflow.com/users/1565698", "pm_score": 2, "selected": false, "text": "expt (expt 2 8) ; ==> 256 * (* 2 3) ; ==> 6 n expt expt (define (range from to)\n (let loop ((n to) (acc '())\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20005085/" ]
74,513,188
<pre><code>df = pd.DataFrame({ &quot;Continent&quot;: list(&quot;AAABBBCCD&quot;), &quot;Country&quot;: list(&quot;FGHIJKLMN&quot;), &quot;Population&quot;: [90, 140, 50, 80, 80, 70, 50, 125, 50]}) </code></pre> <p>As explained, I want to return all of the rows, where all countries in each continent are l...
[ { "answer_id": 74513439, "author": "Sylwester", "author_id": 1565698, "author_profile": "https://Stackoverflow.com/users/1565698", "pm_score": 2, "selected": false, "text": "expt (expt 2 8) ; ==> 256 * (* 2 3) ; ==> 6 n expt expt (define (range from to)\n (let loop ((n to) (acc '())\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20126844/" ]
74,513,237
<p>Trying to perform a fairly simple gzip command across my fastq files, but a strange error returns.</p> <pre><code>#!/usr/bin/env nextflow nextflow.enable.dsl=2 params.gzip = &quot;sequences/sequences_split/sequences_trimmed/trimmed*fastq&quot; workflow { gzip_ch = Channel.fromPath(params.gzip) GZIP(gzip_ch) GZIP...
[ { "answer_id": 74513439, "author": "Sylwester", "author_id": 1565698, "author_profile": "https://Stackoverflow.com/users/1565698", "pm_score": 2, "selected": false, "text": "expt (expt 2 8) ; ==> 256 * (* 2 3) ; ==> 6 n expt expt (define (range from to)\n (let loop ((n to) (acc '())\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19926037/" ]
74,513,251
<p>I am looking for a way to display an image when the link is posted on Twitter, Discord, etc.</p> <p>There is a spot for the text but I am not aware of a place for an image.</p> <p>I am expecting an image to display like this:</p> <hr /> <p><img src="https://cdn.discordapp.com/attachments/1036663369400324108/10440602...
[ { "answer_id": 74513439, "author": "Sylwester", "author_id": 1565698, "author_profile": "https://Stackoverflow.com/users/1565698", "pm_score": 2, "selected": false, "text": "expt (expt 2 8) ; ==> 256 * (* 2 3) ; ==> 6 n expt expt (define (range from to)\n (let loop ((n to) (acc '())\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513251", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20044815/" ]
74,513,270
<p>I am new to react and I am trying to pass props from a parent function to a child. The parameters I am passing &quot;square_state&quot; and &quot;setSquare_state&quot; are not being recognized in the useSquare or handle_square_click function. I am using the following <a href="https://designcode.io/react-hooks-handbo...
[ { "answer_id": 74513367, "author": "CertainPerformance", "author_id": 9515207, "author_profile": "https://Stackoverflow.com/users/9515207", "pm_score": 1, "selected": false, "text": "use use Square square_state={square1_state}\n setSquare_state={setSquare1_state}\n handle_square...
2022/11/21
[ "https://Stackoverflow.com/questions/74513270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19394369/" ]
74,513,281
<p>I am making a minesweeper program in C.</p> <p>I have this as a global variable:</p> <pre class="lang-c prettyprint-override"><code>typedef struct box_t { int box_type; int num_mines_bordering; int is_flagged; } box_t; // my global box_t * gameboard = NULL; </code></pre> <p>Later in the application it is all...
[ { "answer_id": 74513318, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 3, "selected": true, "text": "cols box_t *gameboard = malloc((rows * cols) * sizeof(*gameboard));\ngameboard[row * cols + col] = ...;\n" }, { ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18673273/" ]
74,513,309
<p>I'm writing a code to enter subjects' information where I put void function and array as an object. But not sure when I wanna loop it, it doesn't come until the end. Have a look at the code.</p> <pre><code>void calculateCGPA::getGPA() { cout &lt;&lt; &quot;Enter the the name of the subject: &quot;; cin &gt;&...
[ { "answer_id": 74513353, "author": "Wang Zerui", "author_id": 16232205, "author_profile": "https://Stackoverflow.com/users/16232205", "pm_score": 3, "selected": true, "text": "void calculateCGPA::getGPA() {\n cout << \"Enter the the name of the subject: \";\n cin >> subjectName;\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,513,361
<p>How can I find out the amount of susceptible, infected and recovered individuals in time = 50, where S(50), I(50), R(50)? (SIR MODEL)</p> <pre><code># EquaΓ§Γ΅es diferenciais e suas condiΓ§Γ΅es iniciais h = 0.05 beta = 0.8 nu = 0.3125 def derivada_S(time,I,S): return -beta*I*S def derivada_I(time,I,S): return ...
[ { "answer_id": 74513822, "author": "Nindi", "author_id": 20505208, "author_profile": "https://Stackoverflow.com/users/20505208", "pm_score": 2, "selected": false, "text": "import numpy as np\nimport matplotlib.pyplot as plt\n\nBeta = 1.00205\nGamma = 0.23000\nN = 1000\n\ndef func_S(t,I,S...
2022/11/21
[ "https://Stackoverflow.com/questions/74513361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18180897/" ]
74,513,362
<p>I've made a spreadsheet that is essentially a world cup prediction league.</p> <p>5 points are awarded for a correct score 2 points are awarded for a correct outcome</p> <p>The calculation sheet works as follows:</p> <p><a href="https://i.stack.imgur.com/vMy7c.png" rel="nofollow noreferrer"><img src="https://i.stack...
[ { "answer_id": 74513822, "author": "Nindi", "author_id": 20505208, "author_profile": "https://Stackoverflow.com/users/20505208", "pm_score": 2, "selected": false, "text": "import numpy as np\nimport matplotlib.pyplot as plt\n\nBeta = 1.00205\nGamma = 0.23000\nN = 1000\n\ndef func_S(t,I,S...
2022/11/21
[ "https://Stackoverflow.com/questions/74513362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558529/" ]
74,513,394
<p>I'm trying to import a .csv file to MySQL using the table data import wizard, but I keep getting this error. Could someone explain what this means and how I would go about fixing it.</p>
[ { "answer_id": 74513822, "author": "Nindi", "author_id": 20505208, "author_profile": "https://Stackoverflow.com/users/20505208", "pm_score": 2, "selected": false, "text": "import numpy as np\nimport matplotlib.pyplot as plt\n\nBeta = 1.00205\nGamma = 0.23000\nN = 1000\n\ndef func_S(t,I,S...
2022/11/21
[ "https://Stackoverflow.com/questions/74513394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14281557/" ]
74,513,408
<p>I wish to be able to add projects in a subcollection called projects. Currently my tree is: db/membres/[membreID]/projects/(here I want project ID that firebase generates)/(information of project) Here is my firebase: <a href="https://i.stack.imgur.com/r96nY.png" rel="nofollow noreferrer"><img src="https://i.stack.i...
[ { "answer_id": 74513822, "author": "Nindi", "author_id": 20505208, "author_profile": "https://Stackoverflow.com/users/20505208", "pm_score": 2, "selected": false, "text": "import numpy as np\nimport matplotlib.pyplot as plt\n\nBeta = 1.00205\nGamma = 0.23000\nN = 1000\n\ndef func_S(t,I,S...
2022/11/21
[ "https://Stackoverflow.com/questions/74513408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20495003/" ]
74,513,416
<p><a href="https://i.stack.imgur.com/HQR4F.jpg" rel="nofollow noreferrer">this is my problem and the photo of it</a></p> <p>i have no idea why it didn't work</p>
[ { "answer_id": 74513822, "author": "Nindi", "author_id": 20505208, "author_profile": "https://Stackoverflow.com/users/20505208", "pm_score": 2, "selected": false, "text": "import numpy as np\nimport matplotlib.pyplot as plt\n\nBeta = 1.00205\nGamma = 0.23000\nN = 1000\n\ndef func_S(t,I,S...
2022/11/21
[ "https://Stackoverflow.com/questions/74513416", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20544056/" ]
74,513,435
<p>I have a json file with lot of information so I'm trying to just extract specific data where there is a position and I need to get the immediate name data, also trying to implement search in python. I'm uploading a part of sample json data from the file ex.json</p> <p>`</p> <pre><code>{ &quot;storables&quot;: [ ...
[ { "answer_id": 74513822, "author": "Nindi", "author_id": 20505208, "author_profile": "https://Stackoverflow.com/users/20505208", "pm_score": 2, "selected": false, "text": "import numpy as np\nimport matplotlib.pyplot as plt\n\nBeta = 1.00205\nGamma = 0.23000\nN = 1000\n\ndef func_S(t,I,S...
2022/11/21
[ "https://Stackoverflow.com/questions/74513435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19779238/" ]
74,513,447
<p>Dear pythonist that question is for you! I don't ask to solve my task, just ask for explaining why it happens) I know what is args and kwargs when they using but has been really shoked, when have found one thing. So, please check my example, here we pass arguments to the function</p> <pre><code>def firstFunc(*args, ...
[ { "answer_id": 74513457, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 2, "selected": true, "text": "*args **kwargs * firstFunc(*[1, 2])\n ** firstFunc(\n *[1, 2],\n **{'firstFirst': 'firstFirst', 'first' : '123'...
2022/11/21
[ "https://Stackoverflow.com/questions/74513447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11798363/" ]
74,513,451
<p>My code: <a href="https://colab.research.google.com/drive/1qjfy2OsHYewhHDej-W83CMNercB7o7r8?usp=sharing" rel="nofollow noreferrer">https://colab.research.google.com/drive/1qjfy2OsHYewhHDej-W83CMNercB7o7r8?usp=sharing</a></p> <p>the error: ValueError: Using a target size (torch.Size([16])) that is different to the in...
[ { "answer_id": 74520507, "author": "Clement Hui", "author_id": 10675215, "author_profile": "https://Stackoverflow.com/users/10675215", "pm_score": 0, "selected": false, "text": "label = torch.full((b_size,), real_label, dtype=torch.float, device=device)\n output = netD(real_cpu).view(-1)...
2022/11/21
[ "https://Stackoverflow.com/questions/74513451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558722/" ]
74,513,453
<p>I have Strapi CMS deployed in Cloud Run and have exposed it via Google Cloud Load Balancer. CMS exposes unauthenticated URL to expose static content. If I hit the Cloud Run URL directly without authentication, it works fine and serves me the content.</p> <p>Then I configured Google Cloud Load Balancer with backend c...
[ { "answer_id": 74520507, "author": "Clement Hui", "author_id": 10675215, "author_profile": "https://Stackoverflow.com/users/10675215", "pm_score": 0, "selected": false, "text": "label = torch.full((b_size,), real_label, dtype=torch.float, device=device)\n output = netD(real_cpu).view(-1)...
2022/11/21
[ "https://Stackoverflow.com/questions/74513453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1597814/" ]
74,513,494
<p>Consider the following dataframe:</p> <pre class="lang-py prettyprint-override"><code>df = pl.DataFrame({ &quot;letters&quot;: [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;], &quot;values&quot;: [&quot;aa&quot;, &quot;bb&quot;, &quot;c...
[ { "answer_id": 74520507, "author": "Clement Hui", "author_id": 10675215, "author_profile": "https://Stackoverflow.com/users/10675215", "pm_score": 0, "selected": false, "text": "label = torch.full((b_size,), real_label, dtype=torch.float, device=device)\n output = netD(real_cpu).view(-1)...
2022/11/21
[ "https://Stackoverflow.com/questions/74513494", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12744116/" ]
74,513,506
<p>I've written a PowerShell script to create a custom Boot.wim file that contains some useful utilities and custom .ps1 scripts along with the PowerShell executable. This all works just as it should. What I can't figure is how to add to the environment path variable the directory for the utilities &quot;x:\Users\Utili...
[ { "answer_id": 74520507, "author": "Clement Hui", "author_id": 10675215, "author_profile": "https://Stackoverflow.com/users/10675215", "pm_score": 0, "selected": false, "text": "label = torch.full((b_size,), real_label, dtype=torch.float, device=device)\n output = netD(real_cpu).view(-1)...
2022/11/21
[ "https://Stackoverflow.com/questions/74513506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13702221/" ]
74,513,532
<p>The problem I was given to solve is &quot;The number of students who will take the exam is entered from the keyboard, and then the IDs of all the students who will take the exam are entered. The program should divide the students into three groups: students with IDs ending in the digits 0, 1, and 2, students with ID...
[ { "answer_id": 74520507, "author": "Clement Hui", "author_id": 10675215, "author_profile": "https://Stackoverflow.com/users/10675215", "pm_score": 0, "selected": false, "text": "label = torch.full((b_size,), real_label, dtype=torch.float, device=device)\n output = netD(real_cpu).view(-1)...
2022/11/21
[ "https://Stackoverflow.com/questions/74513532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20525204/" ]
74,513,537
<p>I have an array for the position of the particle in cartesian coordinates and velocity in 3D. So that position[0] represents the x component of the position and so on. I'm curious if there is a better way to write this code, maybe shorter, maybe faster.</p> <p>`</p> <pre><code>def update_position(self): self.positio...
[ { "answer_id": 74520507, "author": "Clement Hui", "author_id": 10675215, "author_profile": "https://Stackoverflow.com/users/10675215", "pm_score": 0, "selected": false, "text": "label = torch.full((b_size,), real_label, dtype=torch.float, device=device)\n output = netD(real_cpu).view(-1)...
2022/11/21
[ "https://Stackoverflow.com/questions/74513537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2401559/" ]
74,513,546
<p>I'm having problem returning spesific amount of decimal numbers from this function, i would like it to get that info from &quot;dec&quot; argument, but i'm stuck with this right now. Edit: Made it work with the edited version bellow but isn't there a better way?</p> <pre><code>local function remove_decimal(t, dec) ...
[ { "answer_id": 74514519, "author": "Robert", "author_id": 10953006, "author_profile": "https://Stackoverflow.com/users/10953006", "pm_score": 0, "selected": false, "text": "% %% function KeepDecimals (Number, DecimalCount)\n local FloatFormat = string.format(\"%%.%df\", DecimalCount)\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8515925/" ]
74,513,552
<p>I currently need to dynamically load events in my database, however after numerous attempts, I still have not gotten it to work with React FullCalendar. Has anyone successfully gotten this to work?</p> <p>In this method, I am successfully able to get the events to load in the calendar, however, my API is being conti...
[ { "answer_id": 74513788, "author": "Willey Ohana", "author_id": 17002604, "author_profile": "https://Stackoverflow.com/users/17002604", "pm_score": 0, "selected": false, "text": "events = {returnEvent()} returnEvent() returnEvent() events events <FullCalendar> events = {events} <FullCale...
2022/11/21
[ "https://Stackoverflow.com/questions/74513552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557704/" ]
74,513,611
<p>I am currently doing a python program to convert from image to hex string and the other way around. I need two functions, one that takes an image and returns a hex string that corresponds to the RGB values of each pixel, and another function that takes a hex string, two ints, and generates a visible image of that si...
[ { "answer_id": 74513703, "author": "wrbp", "author_id": 16662333, "author_profile": "https://Stackoverflow.com/users/16662333", "pm_score": 1, "selected": false, "text": "def ImageToBytes2(image):\n \"\"\"\n Image to convert from image to bytes\n \"\"\"\n dataToEncrypt =image...
2022/11/21
[ "https://Stackoverflow.com/questions/74513611", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13090510/" ]
74,513,759
<p>This is my table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Column A</th> <th>Column B</th> <th>Column C</th> <th>Column D</th> </tr> </thead> <tbody> <tr> <td>Cell 1</td> <td>Cell 2</td> <td>Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> <td>Cell 3</td> <td>...
[ { "answer_id": 74514670, "author": "JHH", "author_id": 20127235, "author_profile": "https://Stackoverflow.com/users/20127235", "pm_score": 2, "selected": false, "text": "SQL Error [1503] [HY000] create table to_be_partitioned (\n col_a int,\n col_b int,\n col_c int,\n c...
2022/11/21
[ "https://Stackoverflow.com/questions/74513759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6579409/" ]
74,513,764
<p>anchor tag is not being styled Here's the particular code I'm having trouble with</p> <pre><code>HTML &lt;a href=&quot;tel:9149417020&quot; class=&quot;tele&quot;&gt;914-941-7020&lt;/a&gt; CSS .tele a{ color: #2bab0d; text-decoration: none; font: 1em sans-serif; } </code></pre> <pre><code> I ex...
[ { "answer_id": 74514040, "author": "K JOHN", "author_id": 10031834, "author_profile": "https://Stackoverflow.com/users/10031834", "pm_score": -1, "selected": false, "text": "a{} .tele{} a.tele{}" }, { "answer_id": 74514094, "author": "Hussain", "author_id": 20041730, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74513764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19936555/" ]
74,513,785
<p>I recently started learning React. I wanted to make my first app and have done the following.</p> <ol> <li>Created a project folder</li> <li>Ran npx create-react-app App.js</li> <li>Ran npm start</li> </ol> <p>My src/App.js is as follows:</p> <pre><code>import React from &quot;react&quot;; import ReactDOM from &quot...
[ { "answer_id": 74513815, "author": "G_S", "author_id": 1594337, "author_profile": "https://Stackoverflow.com/users/1594337", "pm_score": 0, "selected": false, "text": "const navbar = ( const Navbar = (" }, { "answer_id": 74513869, "author": "Dan Philip Bejoy", "author_id"...
2022/11/21
[ "https://Stackoverflow.com/questions/74513785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19996942/" ]
74,513,805
<p>The default <code>std::allocator</code> class is stateless in C++. This means any instance of an <code>std::allocator</code> can deallocate memory allocated by another <code>std::allocator</code> instance. What is then the point of having instances of allocators to allocate memory?</p> <p>For instance, why is memory...
[ { "answer_id": 74513839, "author": "Nicol Bolas", "author_id": 734069, "author_profile": "https://Stackoverflow.com/users/734069", "pm_score": 1, "selected": false, "text": "allocator std::allocator std::allocator A std::allocator" }, { "answer_id": 74513888, "author": "user1...
2022/11/21
[ "https://Stackoverflow.com/questions/74513805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19333949/" ]
74,513,836
<p>I have a website that creates a session when a user logs in, but the sessions are just the email &amp; username, which works fine for customers that create an account, but I want to generate a unique session key for users that <em>dont</em> want to signup/login, the reason is because currently if a user is not logge...
[ { "answer_id": 74513839, "author": "Nicol Bolas", "author_id": 734069, "author_profile": "https://Stackoverflow.com/users/734069", "pm_score": 1, "selected": false, "text": "allocator std::allocator std::allocator A std::allocator" }, { "answer_id": 74513888, "author": "user1...
2022/11/21
[ "https://Stackoverflow.com/questions/74513836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19421765/" ]
74,513,873
<p>Hello guys im new in flutter and i need help with my app, to put a button under an image in my app main menu,</p> <p>here is my code so far i build based on <a href="https://docs.flutter.dev/development/ui/layout/tutorial" rel="nofollow noreferrer">https://docs.flutter.dev/development/ui/layout/tutorial</a></p> <pre...
[ { "answer_id": 74513909, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 1, "selected": false, "text": "Column MainAxisAlignment.spaceBetween import 'package:flutter/material.dart';\nimport 'package:get/get_core/src...
2022/11/21
[ "https://Stackoverflow.com/questions/74513873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20229067/" ]
74,513,877
<p>How to remove comma at the end of an array? Need output: 1,2,3,4,5 and not 1,2,3,4, <strong>5,</strong></p> <p>I know I can use implode, but is there another way?</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...
[ { "answer_id": 74513893, "author": "vivek modi", "author_id": 5790791, "author_profile": "https://Stackoverflow.com/users/5790791", "pm_score": 2, "selected": true, "text": "<?php\n$massive = [1, 2, 3, 4, 5];\n$str=\"\";\n \nforeach($massive as $items){\n $str .= $items.\",\";\n}\nech...
2022/11/21
[ "https://Stackoverflow.com/questions/74513877", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20289598/" ]
74,513,925
<p>I would like to find duplicate parameters and then consider the one which has value and eliminate the duplicate one which does not contain value.</p> <p>Scenario 1 - Suppose I have parameters like <code>firstname, lastname, firstname,middlename</code> and the value is like <code>firstname=</code>, <code>lastname=con...
[ { "answer_id": 74513893, "author": "vivek modi", "author_id": 5790791, "author_profile": "https://Stackoverflow.com/users/5790791", "pm_score": 2, "selected": true, "text": "<?php\n$massive = [1, 2, 3, 4, 5];\n$str=\"\";\n \nforeach($massive as $items){\n $str .= $items.\",\";\n}\nech...
2022/11/21
[ "https://Stackoverflow.com/questions/74513925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20505175/" ]
74,513,931
<p><a href="https://codesandbox.io/s/getattribute-question-h0ds37" rel="nofollow noreferrer">This</a> is the test I made in a sandbox.</p> <p>If you run the code and click the 2 buttons like this: first, back, first, back ... a few times you will see at the console that the name attribute of the target event becomes nu...
[ { "answer_id": 74513893, "author": "vivek modi", "author_id": 5790791, "author_profile": "https://Stackoverflow.com/users/5790791", "pm_score": 2, "selected": true, "text": "<?php\n$massive = [1, 2, 3, 4, 5];\n$str=\"\";\n \nforeach($massive as $items){\n $str .= $items.\",\";\n}\nech...
2022/11/21
[ "https://Stackoverflow.com/questions/74513931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1510155/" ]
74,513,956
<p>I would like to get the amount of time the process took to fully complete. I have this code:<br></p> <pre class="lang-js prettyprint-override"><code>console.log(`Ran ${ran} equations in ${console.timeEnd()}`) </code></pre> <p>but I don't get my expected output, which is:</p> <pre><code>Ran X equations in 33.099ms //...
[ { "answer_id": 74513893, "author": "vivek modi", "author_id": 5790791, "author_profile": "https://Stackoverflow.com/users/5790791", "pm_score": 2, "selected": true, "text": "<?php\n$massive = [1, 2, 3, 4, 5];\n$str=\"\";\n \nforeach($massive as $items){\n $str .= $items.\",\";\n}\nech...
2022/11/21
[ "https://Stackoverflow.com/questions/74513956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20278223/" ]
74,513,958
<p>Also what's the minimum space that a program can occupy in memory?</p> <p>I know that every register in 8086 have a maximum capacity of 16 bits</p>
[ { "answer_id": 74513893, "author": "vivek modi", "author_id": 5790791, "author_profile": "https://Stackoverflow.com/users/5790791", "pm_score": 2, "selected": true, "text": "<?php\n$massive = [1, 2, 3, 4, 5];\n$str=\"\";\n \nforeach($massive as $items){\n $str .= $items.\",\";\n}\nech...
2022/11/21
[ "https://Stackoverflow.com/questions/74513958", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13613804/" ]
74,513,972
<p>I have been tasked with taking the following data and creating two permanent data sets from it. One of these permanent data sets is supposed to contain the average of the &quot;value&quot; column for each group (meaning there should only be four rows in the end, with a new column that represents the average of respe...
[ { "answer_id": 74513893, "author": "vivek modi", "author_id": 5790791, "author_profile": "https://Stackoverflow.com/users/5790791", "pm_score": 2, "selected": true, "text": "<?php\n$massive = [1, 2, 3, 4, 5];\n$str=\"\";\n \nforeach($massive as $items){\n $str .= $items.\",\";\n}\nech...
2022/11/21
[ "https://Stackoverflow.com/questions/74513972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16584840/" ]
74,514,019
<p>I'm new to flutter and I want to implement the <a href="https://pub.dev/documentation/flutter_hooks/latest/flutter_hooks/useEffect.html" rel="nofollow noreferrer"><code>useEffect</code></a> hook.</p> <p>Here is my widget:</p> <pre class="lang-dart prettyprint-override"><code>import 'dart:developer'; import 'package...
[ { "answer_id": 74514056, "author": "manhtuan21", "author_id": 8921450, "author_profile": "https://Stackoverflow.com/users/8921450", "pm_score": 3, "selected": true, "text": "import 'package:flutter_hooks/flutter_hooks.dart';" }, { "answer_id": 74514099, "author": "Aditya Pati...
2022/11/21
[ "https://Stackoverflow.com/questions/74514019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6824121/" ]
74,514,041
<p>I am using asp.net core identity, but have deliberately separated the user specific information into another table which is linked via the application user class.</p> <p>How would I access this information from the login partial view?</p> <p>Other answers only define so far as to pull the information from the applic...
[ { "answer_id": 74514056, "author": "manhtuan21", "author_id": 8921450, "author_profile": "https://Stackoverflow.com/users/8921450", "pm_score": 3, "selected": true, "text": "import 'package:flutter_hooks/flutter_hooks.dart';" }, { "answer_id": 74514099, "author": "Aditya Pati...
2022/11/21
[ "https://Stackoverflow.com/questions/74514041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/795231/" ]
74,514,042
<p>For some reason this permissions line in my ban command is not working. Here is the error I get while trying to run my bot:</p> <pre><code>if(!message.guild.member(message.author).hasPermission(&quot;ADMINISTRATOR&quot;)) {return message.channel.send( ^ SyntaxError: Unexpected token '!' </code></pre> <p>...
[ { "answer_id": 74514063, "author": "MrDiamond", "author_id": 15364728, "author_profile": "https://Stackoverflow.com/users/15364728", "pm_score": 0, "selected": false, "text": "module.exports" }, { "answer_id": 74522869, "author": "votavl", "author_id": 20548261, "auth...
2022/11/21
[ "https://Stackoverflow.com/questions/74514042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20559148/" ]
74,514,050
<p>Every time I try to create a class, it gives me the <code>IndentationError</code> when I haven't even added indentations yet.</p> <p><a href="https://i.stack.imgur.com/j0zOA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j0zOA.png" alt="Error Screenshot" /></a></p> <p>I have tried restarting Jupy...
[ { "answer_id": 74514072, "author": "ilyasbbu", "author_id": 16475089, "author_profile": "https://Stackoverflow.com/users/16475089", "pm_score": 2, "selected": false, "text": "class Animal():\n pass\n" } ]
2022/11/21
[ "https://Stackoverflow.com/questions/74514050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19343411/" ]
74,514,064
<pre><code>limit = int(input(&quot;Limit: &quot;)) allvalue = &quot;&quot; count = 0 number = 0 while count &lt; limit: number += 1 count += number allvalue += str(number) + &quot; + &quot; print(allvalue) </code></pre> <p>This is my output <strong>1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +</strong></p> <p>I ...
[ { "answer_id": 74514152, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 1, "selected": false, "text": "\" + \".join() \" + \" >>> values = \"1 2 3 4 5\".split()\n>>> \" + \".join(values)\n'1 + 2 + 3 + 4 + 5'\n" }, { ...
2022/11/21
[ "https://Stackoverflow.com/questions/74514064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19791187/" ]
74,514,076
<p>I have an app that persists some values in a cookie. I know that there are other tools such as <code>useState</code>, <code>useContext</code>, etc... but this particular app works with a library that stores information in a jwt so I have to read certain values by fetching the jwt. I am porting the app from next.js 1...
[ { "answer_id": 74519515, "author": "Evans Benedict", "author_id": 20560614, "author_profile": "https://Stackoverflow.com/users/20560614", "pm_score": 0, "selected": false, "text": "\"cookies-next\"" }, { "answer_id": 74521768, "author": "Yilmaz", "author_id": 10262805, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74514076", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13215988/" ]