qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,586,890
<p>I'm trying to write a tail recursive function contains(tree,element) that returns true if the element exists in the Binary tree, false otherwise.</p> <p>I wrote the recursive function, the problem is that I don't know how to make it tail recursive</p> <pre><code>let leaf = { val: 6 } let tree = { val: 10, sx: { ...
[ { "answer_id": 74586914, "author": "CertainPerformance", "author_id": 9515207, "author_profile": "https://Stackoverflow.com/users/9515207", "pm_score": 3, "selected": true, "text": "val true res let leaf = {\n val: 6\n}\nlet tree = {\n val: 10,\n sx: {\n val: 5,\n sx: {\n v...
2022/11/27
[ "https://Stackoverflow.com/questions/74586890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13137584/" ]
74,586,936
<p>I need to create multiple datasets and assign a service account to each, giving access with the BigQuery Admin role.</p> <p>variables.tf</p> <pre><code>variable &quot;project_id&quot; { type = string default = &quot;&lt;projectid&gt;&quot; } variable &quot;set_location&quot; { type = string default = &quot;...
[ { "answer_id": 74586914, "author": "CertainPerformance", "author_id": 9515207, "author_profile": "https://Stackoverflow.com/users/9515207", "pm_score": 3, "selected": true, "text": "val true res let leaf = {\n val: 6\n}\nlet tree = {\n val: 10,\n sx: {\n val: 5,\n sx: {\n v...
2022/11/27
[ "https://Stackoverflow.com/questions/74586936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20610099/" ]
74,586,939
<p>I have the below code that is just a basic function but I get this error and I'm not sure why.</p> <p>&quot;&gt; stats(mtcars,mpg) [1] NA Warning messages: 1: In min(df$variable) : no non-missing arguments to min; returning Inf 2: In max(df$variable) : no non-missing arguments to max; returning -Inf 3: In mean.defau...
[ { "answer_id": 74586952, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 1, "selected": true, "text": "[[ $ deparse/substitute [[ return list vector c stats <- function(dataset, variable){\n variable <- deparse(substitute...
2022/11/27
[ "https://Stackoverflow.com/questions/74586939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20610746/" ]
74,586,964
<p>Newbie question: I'm trying to put a photo on the right side of a website, have the text wrap around on the left, and have a photographer credit directly under the photo.</p> <p>The credit is showing up on the left side above the text header instead of under the photo on the right.</p> <p>Here's my html:</p> <pre><c...
[ { "answer_id": 74587134, "author": "John", "author_id": 11111119, "author_profile": "https://Stackoverflow.com/users/11111119", "pm_score": 1, "selected": true, "text": "<picture> figcaption div <picture> picwrap figcaption piccap pic .picwrap {\n float: right;\n text-align: center;\n}...
2022/11/27
[ "https://Stackoverflow.com/questions/74586964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19590444/" ]
74,587,063
<p>I seem to have a problem with my rendering. When I render to a framebuffer and then to screen, the images just seem less vibrant and kind of faded. Even simple ones.</p> <p><a href="https://i.stack.imgur.com/pRV6h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pRV6h.png" alt="enter image descript...
[ { "answer_id": 74587746, "author": "Summit", "author_id": 12651320, "author_profile": "https://Stackoverflow.com/users/12651320", "pm_score": -1, "selected": false, "text": "glGenTextures(1, &w_textureMsaaId);\nglBindTexture(GL_TEXTURE_2D_MULTISAMPLE, &w_textureMsaaId);\nglTexImage2DMult...
2022/11/27
[ "https://Stackoverflow.com/questions/74587063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3193075/" ]
74,587,064
<p>What would be the values after performing this operation?</p> <pre><code>#include &lt;stdio.h&gt; int main() { int *a = 0; int *b = 3; *a++ = *b++; printf(&quot;%d&quot;, a); printf(&quot;%d&quot;, b); return 0; } </code></pre> <p>The code above gives me a segmentation fault.</p>
[ { "answer_id": 74587086, "author": "Andrew Henle", "author_id": 4756299, "author_profile": "https://Stackoverflow.com/users/4756299", "pm_score": 1, "selected": false, "text": "#include <stdio.h>\nint main() {\n int *a = 0;\n int *b = 3;\n *a++ = *b++;\n printf(\"%d\", a);\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5293039/" ]
74,587,070
<p>Should numbers in scheme be quoted?</p> <p>In the following examples (tested in ikarus), it seems that quoting numbers does not matter while too much quoting creates problems.</p> <pre><code>&gt; (+ '1 1) 2 &gt; (+ '1 '1) 2 &gt; (+ '1 ''1) 1 </code></pre> <p><em>What is the standard way to use numbers (e.g. in th...
[ { "answer_id": 74593591, "author": "Sylwester", "author_id": 1565698, "author_profile": "https://Stackoverflow.com/users/1565698", "pm_score": 2, "selected": false, "text": "(some 1) (#%app call-with-values (lambda () (#%app some (quote 1))) print-values))\n nil () () nil '()" }, { ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4196578/" ]
74,587,071
<p>I am trying to run the following python script to extract data from google scholar.However, when I run the code,I am getting an empty list as a json response.Note that all necessary libraries are installed.</p> <pre><code>headers = { 'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KH...
[ { "answer_id": 74593591, "author": "Sylwester", "author_id": 1565698, "author_profile": "https://Stackoverflow.com/users/1565698", "pm_score": 2, "selected": false, "text": "(some 1) (#%app call-with-values (lambda () (#%app some (quote 1))) print-values))\n nil () () nil '()" }, { ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15545208/" ]
74,587,080
<p>Sorry I am still a beginner but slowly getting there. I want to change all the &quot;base-purchase-prices&quot; by a % all at once? I am tearing my hair out trying to work out how to do it. There are 7000 line items so simply saying &quot;get a calculator&quot; is not going to work</p> <pre class="lang-json prettypr...
[ { "answer_id": 74593591, "author": "Sylwester", "author_id": 1565698, "author_profile": "https://Stackoverflow.com/users/1565698", "pm_score": 2, "selected": false, "text": "(some 1) (#%app call-with-values (lambda () (#%app some (quote 1))) print-values))\n nil () () nil '()" }, { ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20610878/" ]
74,587,092
<p>I am trying to make my bot send a welcome message when someone joins a specific server.</p> <p>Code:</p> <pre><code>if member.guild.id == 928443083660607549: new = nextcord.utils.get(member.guild.roles, name=&quot;new&quot;) channel = bot.get_channel(996767690091925584) embed = nextcord.Embed...
[ { "answer_id": 74593997, "author": "Sham", "author_id": 15574114, "author_profile": "https://Stackoverflow.com/users/15574114", "pm_score": 1, "selected": false, "text": ".avatar_url .avatar.url .icon_url .icon.url member.display_avatar.url .avatar_with_size(...) .avatar.with_size(...)" ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20090591/" ]
74,587,124
<p>I am trying to shortern my code by using functions and <code>for</code> loops.</p> <p>For the example below, I would like to create 5 different objects and then apply <code>raster</code> to each object that is created. How can I do this with loops and functions?</p> <pre><code>#Defining variables of interest url = &...
[ { "answer_id": 74587416, "author": "jdobres", "author_id": 6436545, "author_profile": "https://Stackoverflow.com/users/6436545", "pm_score": 2, "selected": false, "text": "voi base_url <- \"https://files.isric.org/soilgrids/latest/data/\" # Path to the webDAV data.\nvoi <- c('sand', 'cla...
2022/11/27
[ "https://Stackoverflow.com/questions/74587124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7093872/" ]
74,587,172
<p>I am writing a flutter program that gets user details. Unfortunately even though my TextEditing Controllers are set up correctly. Everytime I click a button or a radio button, textboxes are cleared instantly even though I did not have any code that clears them</p> <p>Here is the code</p> <pre><code> import 'package:...
[ { "answer_id": 74588290, "author": "TimeToCode", "author_id": 14454875, "author_profile": "https://Stackoverflow.com/users/14454875", "pm_score": 0, "selected": false, "text": "onPressed(){} var5.text =\"Inputted Result:\\nName=${getUsername.text}\\nFirst Name=${getFName.text}\\nLast Nam...
2022/11/27
[ "https://Stackoverflow.com/questions/74587172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10691734/" ]
74,587,191
<p>Input file is minified css file:</p> <pre><code>.class{margin:0px}.class1,.class2{margin 0px}@media{.class{color:blue}.class1,.class2{color:red}}@media{.classA.classB,.classC{margin:0px}}@media{.classD,.classE{color:blue}.class1,.class2{color:red}}@media only screen and (min-width: 1441px){.classX(color:blue}}@media...
[ { "answer_id": 74588290, "author": "TimeToCode", "author_id": 14454875, "author_profile": "https://Stackoverflow.com/users/14454875", "pm_score": 0, "selected": false, "text": "onPressed(){} var5.text =\"Inputted Result:\\nName=${getUsername.text}\\nFirst Name=${getFName.text}\\nLast Nam...
2022/11/27
[ "https://Stackoverflow.com/questions/74587191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16645747/" ]
74,587,197
<p>I'm trying to create a spreadsheet that sorts a list of assignments by their due date simply by clicking a checkbox and marking it true. I'm very new to JavaScript and using spreadsheets, but I do have some coding background, mainly Java and Python.</p> <p>My code so far is this. The checkbox is in the top left (cel...
[ { "answer_id": 74588290, "author": "TimeToCode", "author_id": 14454875, "author_profile": "https://Stackoverflow.com/users/14454875", "pm_score": 0, "selected": false, "text": "onPressed(){} var5.text =\"Inputted Result:\\nName=${getUsername.text}\\nFirst Name=${getFName.text}\\nLast Nam...
2022/11/27
[ "https://Stackoverflow.com/questions/74587197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20610988/" ]
74,587,213
<h1>i have two class</h1> <pre><code>public class Person { public String name = &quot;person&quot;; public String getName(){ return name; }; } </code></pre> <pre><code>public class Teacher extends Person{ public String name =&quot;teacher&quot;; public static void main(String[] args) { ...
[ { "answer_id": 74587322, "author": "JasonTrue", "author_id": 13433, "author_profile": "https://Stackoverflow.com/users/13433", "pm_score": 0, "selected": false, "text": "private protected return \"teacher\"; super(name)" }, { "answer_id": 74587356, "author": "tgdavies", "...
2022/11/27
[ "https://Stackoverflow.com/questions/74587213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16768357/" ]
74,587,219
<p>I have that HTML:</p> <pre><code>&lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;cell left&quot;&gt;A&lt;/div&gt; &lt;div class=&quot;cell left&quot;&gt;B&lt;/div&gt; &lt;div class=&quot;cell right&quot;&gt;C&lt;/div&gt; &lt;div class=&quot;cell left&quot;&gt;D&lt;/div&gt; &lt;div class=&quot;cell ri...
[ { "answer_id": 74587241, "author": "Mohammed", "author_id": 7932650, "author_profile": "https://Stackoverflow.com/users/7932650", "pm_score": 0, "selected": false, "text": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width...
2022/11/27
[ "https://Stackoverflow.com/questions/74587219", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611008/" ]
74,587,238
<p>I have a dataframe of transactions with the unique ID of a product, seller and buyer. I want to keep a record whether someone has bought a product and later resold it. Here's a simplified view of my dataset:</p> <pre><code> prod_id seller buyer 0 cc_123 x y 1 cc_111 d y 2 cc...
[ { "answer_id": 74587302, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 3, "selected": true, "text": "groupby df['resale'] = df.groupby('prod_id')['buyer'].shift(1) == df['seller']\ndf['resale'] = df['resale'].as...
2022/11/27
[ "https://Stackoverflow.com/questions/74587238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5249282/" ]
74,587,297
<p>I have a dataframe which looks like:</p> <pre><code>df &lt;- data.frame(col1 = c(2,3,6,1,8,4,8,2,4,5,7,4,2,7),col2 = c(rep(1,4),rep(2,3),rep(3,4),rep(4,3))) </code></pre> <p>Now I want a column <code>rem_val</code> which starts with a starting value 40 grouped by column <code>col2</code>, and subtracts the previous ...
[ { "answer_id": 74587332, "author": "Jon Spring", "author_id": 6851825, "author_profile": "https://Stackoverflow.com/users/6851825", "pm_score": 3, "selected": true, "text": "library(dplyr)\ndf %>%\n group_by(col2) %>%\n mutate(rem_val = 40 - cumsum(lag(col1, default = 0))) %>% \n ungr...
2022/11/27
[ "https://Stackoverflow.com/questions/74587297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20565621/" ]
74,587,299
<p>What are the best practices for resolving JPA bidirectional circular references?</p> <p>I experienced an error falling into infinite recursion due to JPA bidirectional circular reference.</p> <p>At this time, it was said that the problem could be solved in the following way.</p> <ol> <li><p>Ignore using <code>@JsonI...
[ { "answer_id": 74614213, "author": "Simon Martinelli", "author_id": 1045142, "author_profile": "https://Stackoverflow.com/users/1045142", "pm_score": 1, "selected": true, "text": "@JsonBackReference @JsonManagedReference @JsonIngore" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74587299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20598738/" ]
74,587,327
<p>Say I have an array of 5000 elements. Somewhere in the middle of the array, say from a[4200] through a[4300], is data. Values outside of this range return null.</p> <p>What is the most efficient way to find the first and last entry containing data, <strong>while querying the array as few times as possible</strong>? ...
[ { "answer_id": 74590746, "author": "Matt Timmermans", "author_id": 5483526, "author_profile": "https://Stackoverflow.com/users/5483526", "pm_score": 1, "selected": false, "text": "def findData(A):\n if (len(A)<1):\n return None\n q = [(0,len(A))]\n pos = 0\n while pos ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864499/" ]
74,587,328
<p>My code generates 5 random numbers and I want the user to guess these numbers after 5 seconds of flashing it.</p> <pre><code>#include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; #include&lt;stdbool.h&gt; main() { menuchoose1(); } int menuchoose1(){ int menu1choose; int score=0; int mode,i,j; i...
[ { "answer_id": 74590746, "author": "Matt Timmermans", "author_id": 5483526, "author_profile": "https://Stackoverflow.com/users/5483526", "pm_score": 1, "selected": false, "text": "def findData(A):\n if (len(A)<1):\n return None\n q = [(0,len(A))]\n pos = 0\n while pos ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586932/" ]
74,587,344
<p>I'm coding a discord bot and it works fine until I try and use one of the ! commands (Like !hello) and then It comes up with this</p> <pre><code>ERROR discord.client Ignoring exception in on_message Traceback (most recent call last): File &quot;C:\Users\vanti\PycharmProjects\discordbot4thtry\venv\Lib\site-packa...
[ { "answer_id": 74587382, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": -1, "selected": false, "text": "if len(user_message) > 0:\n @client.event\n async def on_message(message):\n if message.author == cl...
2022/11/27
[ "https://Stackoverflow.com/questions/74587344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611218/" ]
74,587,345
<p>Is there any fast function to do the following code?</p> <pre><code>ArrayList&lt;Double&gt; A = new ArrayList&lt;&gt;(); ArrayList&lt;Double&gt; B = new ArrayList&lt;&gt;(); //ignore adding steps // A = [1,2,3,4,5] // B = [0,1,2,3,4] C = A - B // get C = [1,1,1,1,1] </code></pre>
[ { "answer_id": 74587382, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": -1, "selected": false, "text": "if len(user_message) > 0:\n @client.event\n async def on_message(message):\n if message.author == cl...
2022/11/27
[ "https://Stackoverflow.com/questions/74587345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9940949/" ]
74,587,346
<p>Consider the following code:</p> <pre><code>static void statefullParallelLambdaSet() { Set&lt;Integer&gt; s = new HashSet&lt;&gt;( Arrays.asList(1, 2, 3, 4, 5, 6) ); List&lt;Integer&gt; list = new ArrayList&lt;&gt;(); int sum = s.parallelStream().mapToInt(e -&gt; { // pipeline start ...
[ { "answer_id": 74587382, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": -1, "selected": false, "text": "if len(user_message) > 0:\n @client.event\n async def on_message(message):\n if message.author == cl...
2022/11/27
[ "https://Stackoverflow.com/questions/74587346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611237/" ]
74,587,376
<p>I know that when a function gets called, a stack frame is created for it which contains(local variables,return address,frame pointer...) and pushed on to the program stack. We are able to use the passed aurguments randomly.</p> <pre><code>Void func(int a,int b,int c){ //a,b,c //c,b,a //a,c,b } </code></pre> <p>In th...
[ { "answer_id": 74587406, "author": "cspurposesonly", "author_id": 20332975, "author_profile": "https://Stackoverflow.com/users/20332975", "pm_score": 0, "selected": false, "text": "%rdi %rsi %rdx" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74587376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19812695/" ]
74,587,386
<p>I have a dataframe like this</p> <pre><code> datasource datavalue 0 aaaa.pdf 5 0 bbbbb.pdf 5 0 cccc.pdf 9 </code></pre> <p>I don't know if this is the reason but this seems to be messing a dash display so I would like to reindex it like</p> <pre><code> datasource datavalue 0 aaaa.pdf 5 1 ...
[ { "answer_id": 74587398, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 0, "selected": false, "text": "data_all = data_all.reset_index(drop=True)\n" }, { "answer_id": 74587446, "author": "Ahmed Aredah", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4451521/" ]
74,587,411
<p><code>static int counter // will initalized to 0</code></p> <p>but if I make that variable inside a class, it's not initialized and I have to initialize it outside of class</p> <pre><code>class Test { static int counter; // not initialized }; ... Test::counter = 0; </code></pre> <p>I know the static variables are ...
[ { "answer_id": 74587398, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 0, "selected": false, "text": "data_all = data_all.reset_index(drop=True)\n" }, { "answer_id": 74587446, "author": "Ahmed Aredah", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055385/" ]
74,587,417
<p>Ok so I´m trying to put an explosion gif on both sides of website cause it looks cool but I can´t figure out how to do it and keep the original background color on the parts that aren´t part of the gif.</p> <pre><code>background-color: #270436; background:url(&quot;https://media.giphy.com/media/pKWCBvHevLcMU/giphy.g...
[ { "answer_id": 74587398, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 0, "selected": false, "text": "data_all = data_all.reset_index(drop=True)\n" }, { "answer_id": 74587446, "author": "Ahmed Aredah", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611282/" ]
74,587,425
<p>Trying to exploit SQL injection for my assignment. Is it possible to execute delete or drop query after order by in select query without using the semicolon in Postgresql?</p> <p>This is my sample query:</p> <pre><code>Select * from table order by {sql injection payload} </code></pre> <p>Without using the semicolo...
[ { "answer_id": 74587398, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 0, "selected": false, "text": "data_all = data_all.reset_index(drop=True)\n" }, { "answer_id": 74587446, "author": "Ahmed Aredah", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611324/" ]
74,587,427
<p>I was wondering if anyone could help me concencate two vectors of strings:</p> <p>For example: hello and hi, that repeat 130 times in a dataframe.</p> <p>When in the dataframe column I would like for the order to be hello, (130 times) followed by hi (also 130 times), then hello (130 more times), then hi (130 times) ...
[ { "answer_id": 74587398, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 0, "selected": false, "text": "data_all = data_all.reset_index(drop=True)\n" }, { "answer_id": 74587446, "author": "Ahmed Aredah", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20596087/" ]
74,587,480
<p>Looking at this, it should work right?</p> <p>It seems like the get request is overwriting the post request return because it only renders no error.</p> <p>Why is that?</p> <hr /> <p>index.html</p> <pre><code>{% if error %} &lt;p&gt;{{ error }}&lt;/p&gt; {% else %} &lt;p&gt;no error&lt;/p&gt; {% endif %} </c...
[ { "answer_id": 74587398, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 0, "selected": false, "text": "data_all = data_all.reset_index(drop=True)\n" }, { "answer_id": 74587446, "author": "Ahmed Aredah", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7764497/" ]
74,587,486
<p>What I want to do is switch between my pages by using BottomAppBar in my app but it doesn't work. what make it worse is that it doesn't show me any error so I don't know where is the problem. Thank you for your help :)</p> <pre><code>import 'package:flutter/material.dart'; import 'package:testing/SecondPage.dart'; ...
[ { "answer_id": 74587398, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 0, "selected": false, "text": "data_all = data_all.reset_index(drop=True)\n" }, { "answer_id": 74587446, "author": "Ahmed Aredah", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20318837/" ]
74,587,530
<p>I tried any workaround I can think , but still cant remove EventListener . here are all my ways of thinking I cant think of any other way to solve it . hope someone can tell me what can i do</p> <ol> <li>delete directly</li> </ol> <pre><code>function doSomething(){} const [testP, setTestP] = useState(); useEffect(()...
[ { "answer_id": 74587666, "author": "DecPK", "author_id": 9153448, "author_profile": "https://Stackoverflow.com/users/9153448", "pm_score": 1, "selected": false, "text": "p useRef useState useEffect ref p useRef CODESANDBOX LINK import { useRef } from \"react\";\n\nexport default function...
2022/11/27
[ "https://Stackoverflow.com/questions/74587530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20079538/" ]
74,587,535
<p>I am trying to print any number that is great than n, which is 5 in this case. It is only printing 6 and 7. I am not sure what I am doing wrong. This is my code. I am looping through the array and testing if i is greater then n (5)</p> <pre><code>list = [2, 3, 4, 5, 6, 7, 8, 9] n = 5 filter_list (list, n) def filte...
[ { "answer_id": 74587569, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 1, "selected": false, "text": "end '' list = [2, 3, 4, 5, 6, 7, 8, 9]\nn = 5\n\n\ndef filter_list (list, n):\n for i in range(len(list)):\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558579/" ]
74,587,558
<p>I need to display a pdf file in a browser, but I cannot find the solution to take the PDF for the folder media, the PDF file was save in my database, but I cannot show.</p> <p>my urls.py:</p> <pre><code>urlpatterns = [ path('uploadfile/', views.uploadFile, name=&quot;uploadFile&quot;), path('verPDF/&lt;idter...
[ { "answer_id": 74587615, "author": "Sunderam Dubey", "author_id": 17562044, "author_profile": "https://Stackoverflow.com/users/17562044", "pm_score": 3, "selected": true, "text": "user.is_authenticated user.is_authenticated() verPDF <idtermsCondition> <int:idtermsCondition> urlpatterns =...
2022/11/27
[ "https://Stackoverflow.com/questions/74587558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19171765/" ]
74,587,565
<div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>Cat</th> <th>Dog</th> <th>Frog</th> <th>Pig</th> </tr> </thead> <tbody> <tr> <td>Ana</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> </tr> <tr> <td>Ana</td> <td>1</td> <td>0</td> <td>1</td> <td>0</td> </tr> </tbody> </table> </div><...
[ { "answer_id": 74587587, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 2, "selected": false, "text": "groupby max() df = df.groupby('Name').max().reset_index()\n > df\n\n Name Cat Dog Frog Pig\n0 Ana 1 ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611445/" ]
74,587,583
<p>Is it possible to have a page that opens with 6 box items as nav menu, but when one is clicked to go to that area on the page, the nav becomes a standard fixed nav bar at the top of the page? Using only CSS (no JS).</p> <ul> <li>I am a VERY junior coder.</li> </ul> <p>I have been unable to find this to be possible t...
[ { "answer_id": 74587733, "author": "adityamms", "author_id": 20446649, "author_profile": "https://Stackoverflow.com/users/20446649", "pm_score": 0, "selected": false, "text": "<div class=\"navbar\"> \n <ul><a href=\"#page1\"> page 1 </a></ul>\n <ul><a href=\"#page3\"> page 3 </a> <...
2022/11/27
[ "https://Stackoverflow.com/questions/74587583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20384553/" ]
74,587,611
<p>I am trying to get data from a endpoint and then output this data, I can successfully get my data fetched and display it immediately using</p> <pre><code>fetch(strURL) .then(res =&gt; res.json()) .then((result) =&gt; { console.log(&quot;grabed data &quot;+ JSON.stringify(result)); </code>...
[ { "answer_id": 74587733, "author": "adityamms", "author_id": 20446649, "author_profile": "https://Stackoverflow.com/users/20446649", "pm_score": 0, "selected": false, "text": "<div class=\"navbar\"> \n <ul><a href=\"#page1\"> page 1 </a></ul>\n <ul><a href=\"#page3\"> page 3 </a> <...
2022/11/27
[ "https://Stackoverflow.com/questions/74587611", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13905838/" ]
74,587,622
<p>The example:</p> <pre><code>ProductLine: ProductLineName: aa ADO_FeedsList: - organizationName: bb Project: - ProjectName: cc ProjectFeedsName: - dd - ee - ProjectName: ff ProjectFeedsName: - gg - hh OtherInfo: N/A </code></...
[ { "answer_id": 74587771, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 2, "selected": false, "text": "yq -o csv '\n .ProductLine.ADO_FeedsList[] | [.organizationName] + (\n .Project[] | [.ProjectName] + (.ProjectFeedsN...
2022/11/27
[ "https://Stackoverflow.com/questions/74587622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19623474/" ]
74,587,624
<p>So, I have been studying iterative statements for a report. While I was reading, I came across the developmental history of definite iteration and eventually learn the for loop. We know that the syntax for the for loop in C,C++, and java is</p> <pre><code>for (expression1; expression2; expression3) statement </co...
[ { "answer_id": 74587771, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 2, "selected": false, "text": "yq -o csv '\n .ProductLine.ADO_FeedsList[] | [.organizationName] + (\n .Project[] | [.ProjectName] + (.ProjectFeedsN...
2022/11/27
[ "https://Stackoverflow.com/questions/74587624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16081824/" ]
74,587,629
<p>I am new to Android Studio and I am creating a custom notification app, and I wanted to use the EditText from my MainActivity class in Broadcast Receiver class. How can I do that?</p> <p>Broadcast Receiver code:</p> <pre><code>`package com.example.notificationscreator; import android.app.Activity; import android.co...
[ { "answer_id": 74587771, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 2, "selected": false, "text": "yq -o csv '\n .ProductLine.ADO_FeedsList[] | [.organizationName] + (\n .Project[] | [.ProjectName] + (.ProjectFeedsN...
2022/11/27
[ "https://Stackoverflow.com/questions/74587629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10631077/" ]
74,587,657
<p>A</p> <pre><code>int *numptr = malloc(sizeof(int)*10); </code></pre> <p>B</p> <pre><code>int *numptr = malloc(sizeof(40)); </code></pre> <p>it's on the 32bit</p> <p>i can't understand what is difference. there is no information in the book i have.</p> <p>is A and B 100% same thing?</p>
[ { "answer_id": 74587676, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 3, "selected": false, "text": "sizeof(int) int malloc(sizeof(int)*10) sizeof(40) 40 int sizeof(40) malloc(sizeof(40))" }, { "answer_id": 7458...
2022/11/27
[ "https://Stackoverflow.com/questions/74587657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611593/" ]
74,587,665
<p>I am trying to build an Express.js based website which, when I navigate to a certain page, grabs a list of albums, links, ids, etc. I have a service account with all permissions. My Javascript is:</p> <pre><code>const oauth2Client = new google.auth.OAuth2( config.serviceAccount.client_id, config.oAuthclientSecre...
[ { "answer_id": 74587738, "author": "Dream Bold", "author_id": 12743692, "author_profile": "https://Stackoverflow.com/users/12743692", "pm_score": 1, "selected": false, "text": "401 unauthorized /* Google AUTH */\n \nconst GoogleStrategy = require('passport-google-oauth').OAuth2Strategy...
2022/11/27
[ "https://Stackoverflow.com/questions/74587665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5927871/" ]
74,587,672
<p>I'm trying to take a list that can be size 1 or greater and convert it to a string with formatting <code>&quot;val1, val2, val3 and val4&quot;</code> where you can have different list lengths and the last value will be formatted with an and before it instead of a comma.</p> <p>My current code:</p> <pre><code>inputli...
[ { "answer_id": 74587708, "author": "jwal", "author_id": 6242321, "author_profile": "https://Stackoverflow.com/users/6242321", "pm_score": 1, "selected": false, "text": "join for inputlist in [[\"1\"], [\"one\", \"two\"], [\"val1\", \"val2\", \"val3\"]]:\n if len(inputlist) <= 1:\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20545089/" ]
74,587,685
<p>So I am trying to have the while loop end when inputting a blank for the input, but the problem is that the input takes 2 values separated by &quot;, &quot;. It is necessary for me to keep the input like that rather than separating them so how to fix this?</p> <pre><code>print(&quot; Input the productIDs and quantit...
[ { "answer_id": 74587696, "author": "Glasses_", "author_id": 13788411, "author_profile": "https://Stackoverflow.com/users/13788411", "pm_score": -1, "selected": false, "text": "print(\" Input the productIDs and quantities (input blank to complete transaction)\")\n try:\n product...
2022/11/27
[ "https://Stackoverflow.com/questions/74587685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13788411/" ]
74,587,692
<p>Look at below table. <a href="https://i.stack.imgur.com/9uRTF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9uRTF.png" alt="enter image description here" /></a></p> <p>I tried to print 'CORP_CODE' out with tuple which has same 'CORP_NAME' in it. SO, I wrote this code.</p> <pre><code>SELECT CORP_...
[ { "answer_id": 74587696, "author": "Glasses_", "author_id": 13788411, "author_profile": "https://Stackoverflow.com/users/13788411", "pm_score": -1, "selected": false, "text": "print(\" Input the productIDs and quantities (input blank to complete transaction)\")\n try:\n product...
2022/11/27
[ "https://Stackoverflow.com/questions/74587692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423166/" ]
74,587,719
<p>I want to extract this part. But I couldn't do it well. So I need you to tell me how to do it.</p> <p>Example) <a href="https://twitter.com/straw_berry0721/status/1596714080345415681?s=20&amp;t=1nIbnSZ2YN2m5KZaOjO5GA" rel="nofollow noreferrer">https://twitter.com/straw_berry0721/status/1596714080345415681?s=20&amp;t...
[ { "answer_id": 74587802, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "Uri path var str =\n \"https://twitter.com/straw_berry0721/status/1596714080345415681?s=20&t=1nIbnSZ2YN2m5KZ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18096205/" ]
74,587,725
<p>I can't seem to find an answer to this that I can understand</p> <p>I have tabs and a tab block, which is a clone of <a href="https://github.com/ahsanshaheen199/guten-tab/tree/master/src/blocks" rel="nofollow noreferrer">this basic tab block plugin</a>. I'm trying to add the ability to select an &quot;icon&quot; for...
[ { "answer_id": 74587802, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "Uri path var str =\n \"https://twitter.com/straw_berry0721/status/1596714080345415681?s=20&t=1nIbnSZ2YN2m5KZ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15396919/" ]
74,587,726
<p>Due to some compliance, We are only allowed to take respective permission each time when user use that feature.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Obvious Scenario</th> <th>Required Scenario</th> </tr> </thead> <tbody> <tr> <td><a href="https://i.stack.imgur.com/8qG6U.png" r...
[ { "answer_id": 74587802, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "Uri path var str =\n \"https://twitter.com/straw_berry0721/status/1596714080345415681?s=20&t=1nIbnSZ2YN2m5KZ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5340621/" ]
74,587,740
<p><strong>Aim</strong></p> <p>Group tasks per employee/group of employees for which tasks were assigned to.</p> <p><strong>Data Context</strong></p> <ul> <li>Each task can be assigned to more than one employee</li> <li>Each employee can have multiple tasks</li> <li>Values like employee <code>type</code> or <code>name<...
[ { "answer_id": 74587802, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "Uri path var str =\n \"https://twitter.com/straw_berry0721/status/1596714080345415681?s=20&t=1nIbnSZ2YN2m5KZ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1128912/" ]
74,587,741
<p>I have to create a program that tracks a person's motion. F represents forward B represents backward. The values are to be randomly generated between 2-20 as well as the total # of steps being randomly generated from 10-85 (total will decide when the steps will stop). The # of forward steps has to be greater than th...
[ { "answer_id": 74587795, "author": "Sam", "author_id": 16660603, "author_profile": "https://Stackoverflow.com/users/16660603", "pm_score": 0, "selected": false, "text": "total fwd bkwd total=random.randint(fwd+bkwd,85)\n" }, { "answer_id": 74588061, "author": "ScottC", "a...
2022/11/27
[ "https://Stackoverflow.com/questions/74587741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611666/" ]
74,587,742
<p>What is the proper way to sort a mat-table which has one column that displays a description rather than the code of a mat-select. Consider the following code example that is an editable mat-table which displays a description of the selected item from the mat-select column in edit mode, when not in edit mode. That ...
[ { "answer_id": 74605862, "author": "Jimmy", "author_id": 4960765, "author_profile": "https://Stackoverflow.com/users/4960765", "pm_score": 2, "selected": true, "text": "sortingDataAccessor sortingDataAccessor occupationsList description (the mapped value) this.dataSource = new MatTableDa...
2022/11/27
[ "https://Stackoverflow.com/questions/74587742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2966506/" ]
74,587,764
<pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;!-- If you are serving your web app in a path other than the root, change the href value below to reflect the base path you are serving from. The path provided below has to start and end with a slash &quot;/&quot; in order for it to work...
[ { "answer_id": 74605862, "author": "Jimmy", "author_id": 4960765, "author_profile": "https://Stackoverflow.com/users/4960765", "pm_score": 2, "selected": true, "text": "sortingDataAccessor sortingDataAccessor occupationsList description (the mapped value) this.dataSource = new MatTableDa...
2022/11/27
[ "https://Stackoverflow.com/questions/74587764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17923759/" ]
74,587,783
<p>taking for example i have two numbers JEAN : &quot;5143436111&quot; SAMI : &quot;4501897654&quot;</p> <p>I need the funtion to give me this:</p> <p>i have 7 odd digits in JEAN number i have 5 even digits in SAMI number</p> <p>I tried this function but i want to choose if i want the odd or even digits bcz in here its...
[ { "answer_id": 74605862, "author": "Jimmy", "author_id": 4960765, "author_profile": "https://Stackoverflow.com/users/4960765", "pm_score": 2, "selected": true, "text": "sortingDataAccessor sortingDataAccessor occupationsList description (the mapped value) this.dataSource = new MatTableDa...
2022/11/27
[ "https://Stackoverflow.com/questions/74587783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611685/" ]
74,587,804
<p>Hello I'm technically new to vuejs and I was wondering if I can change a value of &lt;input <strong>:value=&quot;{data: data}&quot;</strong> /&gt; so in my main page template</p> <pre class="lang-html prettyprint-override"><code>&lt;titled-input width=&quot;528&quot; height=&quot;49.6&quot; fontSize=&quot;1...
[ { "answer_id": 74605862, "author": "Jimmy", "author_id": 4960765, "author_profile": "https://Stackoverflow.com/users/4960765", "pm_score": 2, "selected": true, "text": "sortingDataAccessor sortingDataAccessor occupationsList description (the mapped value) this.dataSource = new MatTableDa...
2022/11/27
[ "https://Stackoverflow.com/questions/74587804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20549239/" ]
74,587,809
<p>Given the dataframe:</p> <pre><code>df = data.frame(x = c(&quot;A:B&quot;,&quot;B:C&quot;,&quot;D&quot;,&quot;E&quot;,&quot;F&quot;), y = c(&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;)) </code></pre> <p>How do I keep just the rows that contain &quot;:&quot; in column x? Norm...
[ { "answer_id": 74587841, "author": "Bei", "author_id": 16569807, "author_profile": "https://Stackoverflow.com/users/16569807", "pm_score": 2, "selected": true, "text": "df %>% filter(grepl(\":\", x))\n" }, { "answer_id": 74588210, "author": "TarJae", "author_id": 13321647...
2022/11/27
[ "https://Stackoverflow.com/questions/74587809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10178641/" ]
74,587,821
<p>I would like to delete my DB instance.before delete I will create final manual snapshot. I understood snapshot is not full backup.it is incremental.which means that only the data that has changed after your most recent snapshot saved .</p> <p>so,I would like to know RDS restore DB from only final snapshot event if d...
[ { "answer_id": 74587841, "author": "Bei", "author_id": 16569807, "author_profile": "https://Stackoverflow.com/users/16569807", "pm_score": 2, "selected": true, "text": "df %>% filter(grepl(\":\", x))\n" }, { "answer_id": 74588210, "author": "TarJae", "author_id": 13321647...
2022/11/27
[ "https://Stackoverflow.com/questions/74587821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611745/" ]
74,587,824
<p>An example to demonstrate my problem, suppose the csv file is formatted like:</p> <pre><code>2022-11-05,Female,30-39,City of London 2022-11-05,Male,60-69,City of London 2022-11-04,Female,70-79,City of London 2022-11-04,Female,60-69,City of London </code></pre> <p>Should be read into a dictionary like:</p> <pre><code...
[ { "answer_id": 74587933, "author": "Sam", "author_id": 16660603, "author_profile": "https://Stackoverflow.com/users/16660603", "pm_score": 0, "selected": false, "text": "Dictionary Comprehension dictionary for rows in vaccine_data_reader:\n if rows[0] in mydict.keys(): #Checks if the ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20504351/" ]
74,587,836
<p>I'm not sure why its not returning the minimum difference that can be found in the binary search tree. I cant debug nor use tester which has made it more difficult to find the issue.</p> <pre><code>Instrcutions: </code></pre> <p>Implement a method called getMinimumDifference() that takes in as parameter the root of ...
[ { "answer_id": 74587933, "author": "Sam", "author_id": 16660603, "author_profile": "https://Stackoverflow.com/users/16660603", "pm_score": 0, "selected": false, "text": "Dictionary Comprehension dictionary for rows in vaccine_data_reader:\n if rows[0] in mydict.keys(): #Checks if the ...
2022/11/27
[ "https://Stackoverflow.com/questions/74587836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20609023/" ]
74,587,875
<p>I am trying to apply a number of in place updates to a 2D matrix.</p> <p>It appears that using <code>jit</code> to the in place update does not have any effect in computation time (which is many orders of magnitude longer than the equivalent <code>numpy</code> implementation).</p> <p>Here is code that demonstrates m...
[ { "answer_id": 74589535, "author": "Jérôme Richard", "author_id": 12939557, "author_profile": "https://Stackoverflow.com/users/12939557", "pm_score": -1, "selected": false, "text": "a set b.fill(42.0) b.copy()" }, { "answer_id": 74590089, "author": "jakevdp", "author_id":...
2022/11/27
[ "https://Stackoverflow.com/questions/74587875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2426955/" ]
74,587,888
<p>Good day! First of all, sorry as this is a long (and maybe stupid) question from a new (and noob) programer.</p> <p>I am trying to do a program that multiply 2 matrices, and I wanted to use functions to do it. So far so good, I have learned how to pass 2D arrays to function using pointer. However, when I try to mult...
[ { "answer_id": 74589535, "author": "Jérôme Richard", "author_id": 12939557, "author_profile": "https://Stackoverflow.com/users/12939557", "pm_score": -1, "selected": false, "text": "a set b.fill(42.0) b.copy()" }, { "answer_id": 74590089, "author": "jakevdp", "author_id":...
2022/11/27
[ "https://Stackoverflow.com/questions/74587888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20278503/" ]
74,587,943
<p>I'm looking a way to extract every second (2nd) I-Frame using ffmpeg and save them as a new timelapse video.</p> <p>So far I managed to save all I-frames by the following command:</p> <p>ffmpeg -i $FILE -vf &quot;select='eq(pict_type,I)',setpts=N/FRAME_RATE/TB&quot; -r 29.97 -vcodec libx264 -b:v 62M -an ./enc/${FILE...
[ { "answer_id": 74589535, "author": "Jérôme Richard", "author_id": 12939557, "author_profile": "https://Stackoverflow.com/users/12939557", "pm_score": -1, "selected": false, "text": "a set b.fill(42.0) b.copy()" }, { "answer_id": 74590089, "author": "jakevdp", "author_id":...
2022/11/27
[ "https://Stackoverflow.com/questions/74587943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611928/" ]
74,587,949
<p>I'm currently writing a module for Linux, and I want to pass a queue of data from kernel to user space (my program in user responsible to read this data - and then responsible write those to a file), and my approach is to get a memory location in user space and push data from kernel to it.</p> <p>How can I implement...
[ { "answer_id": 74589535, "author": "Jérôme Richard", "author_id": 12939557, "author_profile": "https://Stackoverflow.com/users/12939557", "pm_score": -1, "selected": false, "text": "a set b.fill(42.0) b.copy()" }, { "answer_id": 74590089, "author": "jakevdp", "author_id":...
2022/11/27
[ "https://Stackoverflow.com/questions/74587949", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20448829/" ]
74,587,962
<p>I try to use import(xxx) in vite to replace require(xxx), but import(xxx) will return a promise(async), how can I write like require(xxx) in vite?</p> <pre class="lang-js prettyprint-override"><code>let lang = require(`./${path}.json`) </code></pre> <p><a href="https://i.stack.imgur.com/T96sN.png" rel="nofollow nore...
[ { "answer_id": 74589535, "author": "Jérôme Richard", "author_id": 12939557, "author_profile": "https://Stackoverflow.com/users/12939557", "pm_score": -1, "selected": false, "text": "a set b.fill(42.0) b.copy()" }, { "answer_id": 74590089, "author": "jakevdp", "author_id":...
2022/11/27
[ "https://Stackoverflow.com/questions/74587962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611990/" ]
74,587,966
<h1>Routes and Controller problem on Codeigniter 4, can't access</h1> <p>I created Controller and Routes, and I created a Navbar.php file in Controller with methods and GET in Routes, then can not be accessed with localhost CI. I need a solution because I'm just learning CI4, thank you.</p> <p>This is the code.</p> <p>...
[ { "answer_id": 74589535, "author": "Jérôme Richard", "author_id": 12939557, "author_profile": "https://Stackoverflow.com/users/12939557", "pm_score": -1, "selected": false, "text": "a set b.fill(42.0) b.copy()" }, { "answer_id": 74590089, "author": "jakevdp", "author_id":...
2022/11/27
[ "https://Stackoverflow.com/questions/74587966", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20611955/" ]
74,588,016
<p>I'd like to send in a list of <code>dependencies</code> as part of creating a <code>DAGNode</code>: what is the supported way to achieve a similar behavior in python - given it seems this exact syntax were not supported?</p> <pre><code>from typing import TypeVar, Generic T = TypeVar('T') class DAGNode(Generic[T]): ...
[ { "answer_id": 74588051, "author": "Ulisse Rubizzo", "author_id": 4412510, "author_profile": "https://Stackoverflow.com/users/4412510", "pm_score": 3, "selected": true, "text": "from typing import TypeVar, Generic, Set\n\nT = TypeVar('T')\nclass DAGNode(Generic[T]):\n\n # Apparently t...
2022/11/27
[ "https://Stackoverflow.com/questions/74588016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1056563/" ]
74,588,033
<p>I have a python script that scrapes data from a job website. I want to save these scraped data to MySQL database but after writing the code, it connects to the database. Now after connecting, it doesn't create table and as result couldn't insert those data into the table. Please i need my code to store these scraped...
[ { "answer_id": 74588058, "author": "Tickloop", "author_id": 12853714, "author_profile": "https://Stackoverflow.com/users/12853714", "pm_score": 2, "selected": true, "text": "CREATE TABLE first_tbl \n(\n Company_Name Varchar(300) NOT NULL,\n Keyskill Varchar(400) NOT NULL\n)\n\nINSE...
2022/11/27
[ "https://Stackoverflow.com/questions/74588033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20188713/" ]
74,588,050
<p><strong>This is My Code</strong>.</p> <pre><code>Future&lt;void&gt; SendOrderDetails() async{ Row( children: [ FutureBuilder( future: topcart.getData(), builder: (context, AsyncSnapshot&lt;List&lt;Cart&gt;&gt; snapshot) { for(int i = 0; i&lt;itemcount; i++) { ...
[ { "answer_id": 74589048, "author": "baek", "author_id": 1049200, "author_profile": "https://Stackoverflow.com/users/1049200", "pm_score": 1, "selected": false, "text": "// This needs to be outside the build method, maybe initState()\nFuture<TYPE> _gd = topcart.get() \n\n// Future Builder...
2022/11/27
[ "https://Stackoverflow.com/questions/74588050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4501300/" ]
74,588,055
<p>I have this dataset in R:</p> <pre><code>set.seed(123) myFun &lt;- function(n = 5000) { a &lt;- do.call(paste0, replicate(5, sample(LETTERS, n, TRUE), FALSE)) paste0(a, sprintf(&quot;%04d&quot;, sample(9999, n, TRUE)), sample(LETTERS, n, TRUE)) } col1 = myFun(100) col2 = myFun(100) col3 = myFun(100) col4 = myF...
[ { "answer_id": 74589048, "author": "baek", "author_id": 1049200, "author_profile": "https://Stackoverflow.com/users/1049200", "pm_score": 1, "selected": false, "text": "// This needs to be outside the build method, maybe initState()\nFuture<TYPE> _gd = topcart.get() \n\n// Future Builder...
2022/11/27
[ "https://Stackoverflow.com/questions/74588055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13203841/" ]
74,588,063
<p>Background: I use glog to register signal handler, but it cannot kill the init process (PID=1) with <code>kill</code> sigcall. That way, even though deadly signals like <code>SIGABRT</code> is raised, kubernetes controller manager won't be able to understand the pod is actually not functioning, thus kill the pod and...
[ { "answer_id": 74589048, "author": "baek", "author_id": 1049200, "author_profile": "https://Stackoverflow.com/users/1049200", "pm_score": 1, "selected": false, "text": "// This needs to be outside the build method, maybe initState()\nFuture<TYPE> _gd = topcart.get() \n\n// Future Builder...
2022/11/27
[ "https://Stackoverflow.com/questions/74588063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8501483/" ]
74,588,076
<h4>Class definition</h4> <pre class="lang-py prettyprint-override"><code>class Car: amount_cars = 0 def __init__(self, manufacturer, model, hp): self.manufacturer = manufacturer self.model = model self.hp = hp Car.amount_cars += 1 def print_car_amount(self): ...
[ { "answer_id": 74588092, "author": "Ni3dzwi3dz", "author_id": 12768056, "author_profile": "https://Stackoverflow.com/users/12768056", "pm_score": 3, "selected": true, "text": "print_info myCar1.print_car_amount()\n" }, { "answer_id": 74588342, "author": "su yong kim", "au...
2022/11/27
[ "https://Stackoverflow.com/questions/74588076", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18450149/" ]
74,588,096
<p>I want to run a macro which will take a screenshot of webpage (one of the multiple tabs in the browser )open in another window and save the screenshot as png file to a folder (path and filename specified in a cell in excel sheet).</p> <p>I searched for the same on google and got the code to change the active window ...
[ { "answer_id": 74590023, "author": "יעקב טורק", "author_id": 17839542, "author_profile": "https://Stackoverflow.com/users/17839542", "pm_score": 0, "selected": false, "text": "'***********************************************************************************************\n' * Please l...
2022/11/27
[ "https://Stackoverflow.com/questions/74588096", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8583661/" ]
74,588,103
<p>I have two large dictionaries and both dictionaries have same keys, (name of images) and have different values.</p> <p>1st dict named <code>train_descriptions</code> which looks like this:</p> <pre><code>{'15970.jpg': 'Turtle Check Men Navy Blue Shirt', '39386.jpg': 'Peter England Men Party Blue Jeans', '59263.jpg...
[ { "answer_id": 74588158, "author": "Prabhas Kumar", "author_id": 20603322, "author_profile": "https://Stackoverflow.com/users/20603322", "pm_score": 2, "selected": true, "text": "for loop feat = train_features.keys()\ndesc = train_description.keys()\ncommon = list(i for i in feat if i no...
2022/11/27
[ "https://Stackoverflow.com/questions/74588103", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15964159/" ]
74,588,108
<p>Given an array of strings, return another array containing all of its longest strings.</p> <p>Example</p> <p>For <code>inputArray = [&quot;aba&quot;, &quot;aa&quot;, &quot;ad&quot;, &quot;vcd&quot;, &quot;aba&quot;]</code>, the output should be solution(inputArray) = [&quot;aba&quot;, &quot;vcd&quot;, &quot;aba&quot...
[ { "answer_id": 74588158, "author": "Prabhas Kumar", "author_id": 20603322, "author_profile": "https://Stackoverflow.com/users/20603322", "pm_score": 2, "selected": true, "text": "for loop feat = train_features.keys()\ndesc = train_description.keys()\ncommon = list(i for i in feat if i no...
2022/11/27
[ "https://Stackoverflow.com/questions/74588108", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11563594/" ]
74,588,115
<p>My problem is following:</p> <p>I need to display content dynamically according to a method from a different component than the the DynamicComponent tag is in.</p> <p>Is this by design or did I do sth wrong?</p> <p>My code:</p> <p>Platform.razor:</p> <pre><code>&lt;a href=&quot;&quot; @onclick:preventDefault @onclic...
[ { "answer_id": 74588158, "author": "Prabhas Kumar", "author_id": 20603322, "author_profile": "https://Stackoverflow.com/users/20603322", "pm_score": 2, "selected": true, "text": "for loop feat = train_features.keys()\ndesc = train_description.keys()\ncommon = list(i for i in feat if i no...
2022/11/27
[ "https://Stackoverflow.com/questions/74588115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20612133/" ]
74,588,126
<p>'''</p> <pre><code>@Override public TreeMap&lt;String, List&lt;String&gt;&gt; getCityWithPincode() { List&lt;User&gt; listOfUser = findAllUser(); TreeMap&lt;String, List&lt;String&gt;&gt; tm = new TreeMap&lt;&gt;(); for(User user : listOfUser) { if(tm.isEmpty())...
[ { "answer_id": 74588189, "author": "user7", "author_id": 4405757, "author_profile": "https://Stackoverflow.com/users/4405757", "pm_score": 1, "selected": false, "text": "add() AbstractList UnsupportedOperationException Arrays.asList() asList() Arrays.asList ArrayList tm.put(user.getCity(...
2022/11/27
[ "https://Stackoverflow.com/questions/74588126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14772343/" ]
74,588,134
<p>Whenever I tried to create an account into AdMob , I got the following error</p> <h2><strong>An error occurred. Please try again later.</strong></h2> <p><br /> Even I filled in all the information.</p>
[ { "answer_id": 74588189, "author": "user7", "author_id": 4405757, "author_profile": "https://Stackoverflow.com/users/4405757", "pm_score": 1, "selected": false, "text": "add() AbstractList UnsupportedOperationException Arrays.asList() asList() Arrays.asList ArrayList tm.put(user.getCity(...
2022/11/27
[ "https://Stackoverflow.com/questions/74588134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16968554/" ]
74,588,148
<p>Though I installed skpy by pip and pip3, the error happened when I command <code>jupyter execute</code> on the terminal.</p> <p><code>Python 3.9.13 pip 22.2.2 from /Users/username/opt/anaconda3/lib/python3.9/site-packages/pip (python 3.9)</code></p> <p><strong>Proof I installed skpy</strong></p> <pre><code>(base) us...
[ { "answer_id": 74588448, "author": "Michael Gathara", "author_id": 11009561, "author_profile": "https://Stackoverflow.com/users/11009561", "pm_score": 1, "selected": false, "text": "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/python -m pip install skpy\n where pytho...
2022/11/27
[ "https://Stackoverflow.com/questions/74588148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20610531/" ]
74,588,170
<p>Suppose I want to make a single svg, which can be stretched to be any of these 2 boxes: <a href="https://i.stack.imgur.com/1cQyX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1cQyX.png" alt="enter image description here" /></a></p> <p>I'm trying to use this SVG as am image background in HTML/CSS...
[ { "answer_id": 74590912, "author": "ccprog", "author_id": 4996779, "author_profile": "https://Stackoverflow.com/users/4996779", "pm_score": 3, "selected": false, "text": "border-width border-image-width div {\n width:300px;\n height:150px;\n position:relative;\n overflow: hid...
2022/11/27
[ "https://Stackoverflow.com/questions/74588170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3530767/" ]
74,588,173
<p>I have a list of string/regex that I want to check if its matched from the string input. <br> Lets just say I have these lists:</p> <pre class="lang-php prettyprint-override"><code>$list = [ // an array list of string/regex that i want to check &quot;lorem ipsum&quot;, // a words &quot;example&quot;, // another ...
[ { "answer_id": 74590912, "author": "ccprog", "author_id": 4996779, "author_profile": "https://Stackoverflow.com/users/4996779", "pm_score": 3, "selected": false, "text": "border-width border-image-width div {\n width:300px;\n height:150px;\n position:relative;\n overflow: hid...
2022/11/27
[ "https://Stackoverflow.com/questions/74588173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12317203/" ]
74,588,184
<p>I want to remove bytes from an array, I don't want to remove all bytes <code>0x6f</code> I just want to remove two only of them. This is my code:</p> <pre><code>string msg = &quot;gooooooal&quot;; byte[] oldArray = Encoding.GetEncoding(1256).GetBytes(msg); byte[] newArray = oldArray.Where(b =&gt; b != 0x6f).ToArray(...
[ { "answer_id": 74590912, "author": "ccprog", "author_id": 4996779, "author_profile": "https://Stackoverflow.com/users/4996779", "pm_score": 3, "selected": false, "text": "border-width border-image-width div {\n width:300px;\n height:150px;\n position:relative;\n overflow: hid...
2022/11/27
[ "https://Stackoverflow.com/questions/74588184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14857855/" ]
74,588,223
<p>I have a query as below</p> <pre><code>|| LPAD (TRIM (TO_CHAR (RWTEXPT_STD_AMOUNT, 'FM9999999999999D00')), 15, '0') </code></pre> <p>its giving the result : <code>000011545467.00</code></p> <p>what i need is : <code>000000115454.67</code></p> <p>i have tried <code>'FM9999999999999D00'</code> and <code>'999999999999D...
[ { "answer_id": 74588601, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 0, "selected": false, "text": "Select To_Char(14.5, 'FM000000000000D00') \"NMBR\" From Dual\n--\n-- NMBR \n-- ----------------\n-- 00000...
2022/11/27
[ "https://Stackoverflow.com/questions/74588223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20612249/" ]
74,588,226
<p>I use express JWT with nest js and use it in gateway graphql. I want to return error when my token has error including expiration error or invalid error after calling any graphql api.</p> <p>Here is the code that I use express JWT in main file of my gateway:</p> <pre><code>app.use( graphqlUploadExpress(), ex...
[ { "answer_id": 74588601, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 0, "selected": false, "text": "Select To_Char(14.5, 'FM000000000000D00') \"NMBR\" From Dual\n--\n-- NMBR \n-- ----------------\n-- 00000...
2022/11/27
[ "https://Stackoverflow.com/questions/74588226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12862166/" ]
74,588,231
<p>There're these two similar options in <code>SecurityAlgorithms</code> class. Which one should be used for signing JWT token? Is there any difference?</p>
[ { "answer_id": 74588756, "author": "Collin Dauphinee", "author_id": 214796, "author_profile": "https://Stackoverflow.com/users/214796", "pm_score": 1, "selected": false, "text": "HmacSha512Signature HmacSha512 Signature" }, { "answer_id": 74588929, "author": "Dimitris Maragko...
2022/11/27
[ "https://Stackoverflow.com/questions/74588231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6841224/" ]
74,588,239
<p>The error is Uncaught TypeError: Cannot read properties of undefined (reading 'style')</p> <p>Code:</p> <pre><code>let slideIndex = 0; showSlides(); function showSlides() { let i; let slides = document.getElementsByClassName(&quot;mySlides&quot;); let dots = document.getElementsByClassName(&quot;dot&quot;); ...
[ { "answer_id": 74588756, "author": "Collin Dauphinee", "author_id": 214796, "author_profile": "https://Stackoverflow.com/users/214796", "pm_score": 1, "selected": false, "text": "HmacSha512Signature HmacSha512 Signature" }, { "answer_id": 74588929, "author": "Dimitris Maragko...
2022/11/27
[ "https://Stackoverflow.com/questions/74588239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20612314/" ]
74,588,253
<p>Can use a pointer to access content of the memory location on embedded c.</p> <pre><code>int *p; p = (int*) 0x30610000; </code></pre> <p>I need to write a program that add two numbers stored in memory location.</p> <pre><code>int *p; int *q; p = (int*) 0x30610000; q = (int*) 0x30610004; int sum=(*p)+(*q) </code></pr...
[ { "answer_id": 74588759, "author": "Clifford", "author_id": 168986, "author_profile": "https://Stackoverflow.com/users/168986", "pm_score": 3, "selected": true, "text": "volatile volatile int* const p = (volatile int* const)0x30610000u ;\n #define p (*(volatile int*)0x30610000u)\n#defi...
2022/11/27
[ "https://Stackoverflow.com/questions/74588253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14328404/" ]
74,588,256
<p>I have a requirement to slice &quot;Dev&quot; from below variable vmName in Azure logicapp</p> <p>variable information :</p> <ul> <li>Name : vmName</li> <li>Type : String</li> <li>Value : Dev-Testing-2</li> </ul> <p>When i tried with below approach/expression :</p> <pre><code>slice(split(variables('dsvmName'),'-'),1...
[ { "answer_id": 74588759, "author": "Clifford", "author_id": 168986, "author_profile": "https://Stackoverflow.com/users/168986", "pm_score": 3, "selected": true, "text": "volatile volatile int* const p = (volatile int* const)0x30610000u ;\n #define p (*(volatile int*)0x30610000u)\n#defi...
2022/11/27
[ "https://Stackoverflow.com/questions/74588256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7995771/" ]
74,588,259
<p>I'm new to Android, and rather new to SQL in general.</p> <p>I have a data model where I have a <code>Text</code> that consists of <code>TextMetadata</code> as well as a long string, which is the text content itself. So</p> <pre><code>Text { metadata: { author: string, title: string // more associat...
[ { "answer_id": 74635039, "author": "regex", "author_id": 9470979, "author_profile": "https://Stackoverflow.com/users/9470979", "pm_score": 1, "selected": false, "text": "@Entity\ndata class Text(\n @PrimaryKey val id: Long,\n val metadata: TextMetadata,\n val textContent: String...
2022/11/27
[ "https://Stackoverflow.com/questions/74588259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/954986/" ]
74,588,266
<p>first of all im new to laravel,</p> <p>second i cloned a project from GitHub</p> <p>I'm trying to start my laravel development server with| <strong>php artisan serve</strong> but it gives me this error:</p> <pre><code> php artisan serve Starting Laravel development server: http://127.0.0.1:8000 [Sun Nov 27 08:38:27 ...
[ { "answer_id": 74635039, "author": "regex", "author_id": 9470979, "author_profile": "https://Stackoverflow.com/users/9470979", "pm_score": 1, "selected": false, "text": "@Entity\ndata class Text(\n @PrimaryKey val id: Long,\n val metadata: TextMetadata,\n val textContent: String...
2022/11/27
[ "https://Stackoverflow.com/questions/74588266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17677690/" ]
74,588,275
<p>Imagine the following example Strings</p> <ol> <li>‘John @ Mary John v Mary John vs Mary’</li> <li>‘John v Mary Ben v Paul John v Mary’</li> <li>‘Hello World / John v Mary John @ Mary John vs Mary’</li> <li>‘John v Mary John vs Mary John @ Mary John v Mary’</li> </ol> <p>There are 3...
[ { "answer_id": 74588889, "author": "Ulisse Rubizzo", "author_id": 4412510, "author_profile": "https://Stackoverflow.com/users/4412510", "pm_score": 1, "selected": false, "text": "!/usr/bin/python3\n\nimport re\nfrom copy import deepcopy\nfrom typing import List, Tuple, Union\n\ndef count...
2022/11/27
[ "https://Stackoverflow.com/questions/74588275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18848633/" ]
74,588,293
<p>I want to add new column to see exam differences in a percentage value.</p> <pre><code>import pandas as pd exam_1 = { 'Name': ['Jonn', 'Tomas', 'Fran', 'Olga', 'Veronika', 'Stephan'], 'Mat': [85, 75, 50, 93, 88, 90], 'Science': [96, 97, 99, 87, 90, 88], 'Reading': [80, 60, 72, 86, 84, 77], 'Wiritng': [78,...
[ { "answer_id": 74588408, "author": "Mike L", "author_id": 10008247, "author_profile": "https://Stackoverflow.com/users/10008247", "pm_score": 0, "selected": false, "text": "prefixes = ['Lang', 'Mat', 'Reading', ...]\n _1 _2 for prefix in prefixes:\n column1 = df[f\"{prefix}_1\"]\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3278860/" ]
74,588,306
<p>How do you change the values in a data.table column within a function?</p> <pre><code>DF = data.table(ID = c(&quot;b&quot;,&quot;b&quot;,&quot;b&quot;,&quot;a&quot;,&quot;a&quot;,&quot;c&quot;), a = 1:6, b = 7:12, c = 13:18) change_it &lt;- function(data_table) { data_table[[column]] &lt;- 73 } column = 'a' c...
[ { "answer_id": 74588449, "author": "AturSams", "author_id": 984975, "author_profile": "https://Stackoverflow.com/users/984975", "pm_score": 2, "selected": false, "text": "DF = data.table(ID = c(\"b\",\"b\",\"b\",\"a\",\"a\",\"c\"), a = 1:6, b = 7:12, c = 13:18)\n\nchange_it <- function(d...
2022/11/27
[ "https://Stackoverflow.com/questions/74588306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/984975/" ]
74,588,308
<p>I have a file which contains string, from every string I need to append to my list every 2 digit number. Here's the file content: <a href="https://pastebin.com/N6gHRaVA" rel="nofollow noreferrer">https://pastebin.com/N6gHRaVA</a></p> <p>I need to iterate every string and check if string on index[i] and on index[i+1]...
[ { "answer_id": 74588392, "author": "Ni3dzwi3dz", "author_id": 12768056, "author_profile": "https://Stackoverflow.com/users/12768056", "pm_score": 0, "selected": false, "text": " while i < len(string) -1:" }, { "answer_id": 74588489, "author": "GaryMBloom", "author_id": ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19370936/" ]
74,588,318
<p><strong>Context</strong>: In a Vaadin 23.2.8 form there is a TextField and a Button.</p> <p><strong>What I want to do / expected behavior</strong>: In the ValueChangeListener of the TextField there should open a dialog. The dialog should be visible until the user closes it. The button should execute in the backgroun...
[ { "answer_id": 74597602, "author": "Leif Åstrand", "author_id": 2376954, "author_profile": "https://Stackoverflow.com/users/2376954", "pm_score": 1, "selected": false, "text": "setCloseOnOutsideClick" }, { "answer_id": 74674771, "author": "S. Doe", "author_id": 10318272, ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10318272/" ]
74,588,319
<p>I have weekly data starting from week 2 in the year 2015 till week 9 in 2016, after fitting and plotting my forecast, The x-axis doesn't make sense. How can I share x-axis values in terms of months/week#. Thank you</p> <p><img src="https://i.stack.imgur.com/qxLGq.png" alt="Current Forecast Plot " /></p> <pre><code>T...
[ { "answer_id": 74597602, "author": "Leif Åstrand", "author_id": 2376954, "author_profile": "https://Stackoverflow.com/users/2376954", "pm_score": 1, "selected": false, "text": "setCloseOnOutsideClick" }, { "answer_id": 74674771, "author": "S. Doe", "author_id": 10318272, ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20612419/" ]
74,588,325
<p>I have a decorator that define property a class with a getter that return an <code>Observable</code> and setter that emit new value on subject.</p> <pre><code>import { Subject } from &quot;rxjs&quot;; export const defineDecorator = () =&gt; { return (target: object, propertyKey: string) =&gt; { Object.defineP...
[ { "answer_id": 74597602, "author": "Leif Åstrand", "author_id": 2376954, "author_profile": "https://Stackoverflow.com/users/2376954", "pm_score": 1, "selected": false, "text": "setCloseOnOutsideClick" }, { "answer_id": 74674771, "author": "S. Doe", "author_id": 10318272, ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3043248/" ]
74,588,330
<p>So i'm very new with javascript and been trying to make a function code that only work only once.</p> <p>this is my logo that i've been trying to animate it.</p> <pre><code>&lt;img src=&quot;img/logot2.png&quot; id=&quot;logoutjs&quot; onmouseover=&quot;move()&quot; alt=&quot;Logo&quot; width=&quot;100&quot; height=...
[ { "answer_id": 74597602, "author": "Leif Åstrand", "author_id": 2376954, "author_profile": "https://Stackoverflow.com/users/2376954", "pm_score": 1, "selected": false, "text": "setCloseOnOutsideClick" }, { "answer_id": 74674771, "author": "S. Doe", "author_id": 10318272, ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17124106/" ]
74,588,331
<pre class="lang-java prettyprint-override"><code>import java.math.BigDecimal; public class test { public static void main(String[] args) { BigDecimal b1 = new BigDecimal(&quot;0.1&quot;); BigDecimal b2 = new BigDecimal(&quot;0.2&quot;); System.out.println(b1.multiply(b2)); // the result i...
[ { "answer_id": 74588378, "author": "jurez", "author_id": 8338100, "author_profile": "https://Stackoverflow.com/users/8338100", "pm_score": 3, "selected": true, "text": "BigDecimal String b1.add(b2).equals(\"0.3\")\n b1.add(b2).equals(new BigDecimal(\"0.3\"))\n" }, { "answer_id": ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20612399/" ]
74,588,381
<p>I'm trying to randomly order widgets that will appear in a column.</p> <pre><code>Widget build(BuildContext context){ return Column( children: [ Question( questions[questionIndex]['singular'], ), ...(questions[questionIndex]['answers'] as List&lt;Map&lt;String, Object&gt;&gt;).map((answer) { ...
[ { "answer_id": 74588414, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "Widget build(BuildContext context) {\n var answers = (questions[questionIndex]['answers'] as List<Map<String...
2022/11/27
[ "https://Stackoverflow.com/questions/74588381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11578282/" ]
74,588,453
<pre><code>import tkinter global win1,win2, win3 def win1_open(): global win1 win1 = tkinter.Tk() win1.geometry('500x500') button_next = tkinter.Button(win1, text='Next', width=8, command=win2_open) button_next.place(x=100 * 2 + 80, y = 100) win1.mainloop() def win2_open(): global win2 ...
[ { "answer_id": 74588833, "author": "Wang Ting an", "author_id": 18938661, "author_profile": "https://Stackoverflow.com/users/18938661", "pm_score": 1, "selected": false, "text": "quit() destory() def exit_program():\n global win1, win2, win3\n win1.destroy()\n win2.destroy()\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74588453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13993793/" ]