qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,542,405
<p>Is there any easy way convert List to other model data?</p> <p>this is my model:</p> <pre><code>class Account { String name; double balance; Account({required this.name, required this.balance}); } class CategoryAccount { String type; List&lt;Account&gt; items; CategoryAccount({required this.type, requ...
[ { "answer_id": 74542656, "author": "Manjesh Kumar Sharma", "author_id": 19296050, "author_profile": "https://Stackoverflow.com/users/19296050", "pm_score": 1, "selected": true, "text": "<div class=\"px-10 sm:px-10 md:px-12 bg-white border-2 border-white border-t-pglightgrey\">\n <div cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10797820/" ]
74,542,424
<p>Please see this expected image below, in screenshot it is looking big but I want to make it very small, for that you can see my textview dimensions..<a href="https://i.stack.imgur.com/wJXMV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wJXMV.png" alt="image" /></a></p> <p>This is my output after...
[ { "answer_id": 74542656, "author": "Manjesh Kumar Sharma", "author_id": 19296050, "author_profile": "https://Stackoverflow.com/users/19296050", "pm_score": 1, "selected": true, "text": "<div class=\"px-10 sm:px-10 md:px-12 bg-white border-2 border-white border-t-pglightgrey\">\n <div cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542424", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19428652/" ]
74,542,435
<p>I'm making a website and on one of my pages I have this button that when clicked, should take a haiku from a JSON file that contains over 5000 and display it to the user. Currently I do this the following way.</p> <pre><code>&lt;script&gt; const haikuUrl = 'http://mywebsite/haikus.json'; async function getHa...
[ { "answer_id": 74542656, "author": "Manjesh Kumar Sharma", "author_id": 19296050, "author_profile": "https://Stackoverflow.com/users/19296050", "pm_score": 1, "selected": true, "text": "<div class=\"px-10 sm:px-10 md:px-12 bg-white border-2 border-white border-t-pglightgrey\">\n <div cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12980737/" ]
74,542,460
<p><strong>Context</strong></p> <p>I have a repository with hundreds of committed and pushed commits. Now I have 10 committed but not yet pushed commit on my local git repository, I would like to create a new branch locally, and move all the 10 commits to that branch, doing all this locally. Then when I will be online ...
[ { "answer_id": 74542517, "author": "Özgür Murat Sağdıçoğlu", "author_id": 5106317, "author_profile": "https://Stackoverflow.com/users/5106317", "pm_score": 1, "selected": false, "text": "git checkout -b your_new_branch_name\n # after creating a new branch reset your master or main\n# ass...
2022/11/23
[ "https://Stackoverflow.com/questions/74542460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1157814/" ]
74,542,469
<p>I have a df similar to the following:</p> <pre><code>df &lt;- data.frame(name = c(&quot;billy&quot;,&quot;billy&quot;,&quot;sarah&quot;,&quot;sarah&quot;,&quot;sarah&quot;,&quot;sarah&quot;,&quot;sarah&quot;,&quot;sarah&quot;,&quot;sarah&quot;,&quot;linda&quot;,&quot;linda&quot;,&quot;linda&quot;,&quot;linda&quot;,&...
[ { "answer_id": 74542517, "author": "Özgür Murat Sağdıçoğlu", "author_id": 5106317, "author_profile": "https://Stackoverflow.com/users/5106317", "pm_score": 1, "selected": false, "text": "git checkout -b your_new_branch_name\n # after creating a new branch reset your master or main\n# ass...
2022/11/23
[ "https://Stackoverflow.com/questions/74542469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17951615/" ]
74,542,474
<p><em>This is not a duplicate Q. Please don't mark this as that.</em></p> <p>Following is not I want</p> <pre class="lang-js prettyprint-override"><code>import { EntityRepository, Repository } from &quot;typeorm&quot;; import { Test } from &quot;./test.model&quot;; import { Injectable } from &quot;@nestjs/common&quot;...
[ { "answer_id": 74543151, "author": "Kazi Akib Javed", "author_id": 14257546, "author_profile": "https://Stackoverflow.com/users/14257546", "pm_score": 0, "selected": false, "text": "import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from \"typeorm\";\nimport { CustomBaseEntity }...
2022/11/23
[ "https://Stackoverflow.com/questions/74542474", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5420070/" ]
74,542,487
<p>I am creating Screen components Separate to use such components like card, textfields so we can easily use it on web. I am getting issue of passing data between components, Dont use the method of golbal varibales if i am sending data to components it only show componets but I want to send data to component but Navig...
[ { "answer_id": 74542600, "author": "Abdullatif Eida", "author_id": 20570798, "author_profile": "https://Stackoverflow.com/users/20570798", "pm_score": 1, "selected": false, "text": "class YourPgae extends StatefulWidget {\nfinal int wabtedvar;\nconst YourPgae({super.key, required this.wa...
2022/11/23
[ "https://Stackoverflow.com/questions/74542487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20374963/" ]
74,542,495
<p>I have a field column that contains values like</p> <pre><code>4 12,3 8,5,6,7 </code></pre> <p>I'm going to write a SELECT statement, whose result would be:</p> <pre><code>4 12 8 </code></pre> <p>How can I do it?</p>
[ { "answer_id": 74542600, "author": "Abdullatif Eida", "author_id": 20570798, "author_profile": "https://Stackoverflow.com/users/20570798", "pm_score": 1, "selected": false, "text": "class YourPgae extends StatefulWidget {\nfinal int wabtedvar;\nconst YourPgae({super.key, required this.wa...
2022/11/23
[ "https://Stackoverflow.com/questions/74542495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19681180/" ]
74,542,508
<p>Some common R functions have argument names that end with a single dot.</p> <p>For example, the warning() function shows the following in the usage section when looking at the documentation with ?warning:</p> <pre><code> warning(..., call. = TRUE, immediate. = FALSE, noBreaks. = FALSE, domain = NULL) </code...
[ { "answer_id": 74542600, "author": "Abdullatif Eida", "author_id": 20570798, "author_profile": "https://Stackoverflow.com/users/20570798", "pm_score": 1, "selected": false, "text": "class YourPgae extends StatefulWidget {\nfinal int wabtedvar;\nconst YourPgae({super.key, required this.wa...
2022/11/23
[ "https://Stackoverflow.com/questions/74542508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9843100/" ]
74,542,542
<p>I have a <code>Base</code> which has two child classes. <code>bar</code> creates a <code>unique_ptr</code> who's type is <code>Base</code> and attempts to initialize it with one of its child classes.</p> <p>Certainly I can't downcast without being explicit of the type which I don't want to do. Are there ways around ...
[ { "answer_id": 74542678, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 0, "selected": false, "text": "void bar(bool x, int value)\n{\n auto make_ptr = [&]<typename T>(){\n auto ptr = std::make_unique<T...
2022/11/23
[ "https://Stackoverflow.com/questions/74542542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12497236/" ]
74,542,555
<p>I have created a popup for edit functionality in my todo app and I need to get the id of the task for the purpose. using route is not giving a correct result. Is there any other way I can achieve it? I have given the code below.</p> <p><code>this.id = this.route.snapshot.params['id'];</code></p> <pre><code> console...
[ { "answer_id": 74543925, "author": "Goutham Harshith", "author_id": 11917182, "author_profile": "https://Stackoverflow.com/users/11917182", "pm_score": 0, "selected": false, "text": "// import\nimport { ActivatedRoute } from '@angular/router';\n\n//dependency injection\n constructor(priv...
2022/11/23
[ "https://Stackoverflow.com/questions/74542555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16953799/" ]
74,542,561
<p>I've added a stamina system in my game, but when I try do call the function there's a few problems happening: I can't jump when my character is sprinting and when I jump and press the sprint button my character doesn't fall anymore, he basically just flies.</p> <pre><code>PlayerController </code></pre> <pre><code>pr...
[ { "answer_id": 74557605, "author": "derHugo", "author_id": 7111561, "author_profile": "https://Stackoverflow.com/users/7111561", "pm_score": 2, "selected": true, "text": "PlayerController StaminaBar PlayerController StaminaBar InputManager PlayerController StaminaBar StaminaBar public cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563979/" ]
74,542,565
<pre><code>&lt;script src=&quot;https://pie-meister.github.io/PieMeister-with-Progress.min.js&quot;&gt;&lt;/script&gt; &lt;pie-chart className=&quot;nested&quot; offset=&quot;top&quot;&gt; &lt;style&gt; path { stroke-linecap: round; stroke-wi...
[ { "answer_id": 74557605, "author": "derHugo", "author_id": 7111561, "author_profile": "https://Stackoverflow.com/users/7111561", "pm_score": 2, "selected": true, "text": "PlayerController StaminaBar PlayerController StaminaBar InputManager PlayerController StaminaBar StaminaBar public cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16695879/" ]
74,542,597
<p>i have a a number of xml files with me, whose format is:</p> <pre><code>&lt;objects&gt; &lt;object&gt; &lt;record&gt; &lt;invoice_source&gt;EMAIL&lt;/invoice_source&gt; &lt;invoice_capture_date&gt;2022-11-18&lt;/invoice_capture_date&gt; &lt;document_type&gt;INVOICE&lt;/document_t...
[ { "answer_id": 74557605, "author": "derHugo", "author_id": 7111561, "author_profile": "https://Stackoverflow.com/users/7111561", "pm_score": 2, "selected": true, "text": "PlayerController StaminaBar PlayerController StaminaBar InputManager PlayerController StaminaBar StaminaBar public cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20397498/" ]
74,542,609
<p>I am working in webflow(a website platform) and pasting a JSON-LD script in a content field. The field is mapped to the section of the webpage.</p> <p>All the double quotes &quot; in the JSON script are getting switched to &quot;</p> <p>Is there a line of code that I can add to the script that will switch them back...
[ { "answer_id": 74557605, "author": "derHugo", "author_id": 7111561, "author_profile": "https://Stackoverflow.com/users/7111561", "pm_score": 2, "selected": true, "text": "PlayerController StaminaBar PlayerController StaminaBar InputManager PlayerController StaminaBar StaminaBar public cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542609", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20578847/" ]
74,542,630
<p>I want to get the country code of the products form this website: <a href="https://www.skincarisma.com/products/olay/fresh-effects-s-wipe-out-refreshing-make-up-removal-cloths" rel="nofollow noreferrer">https://www.skincarisma.com/products/olay/fresh-effects-s-wipe-out-refreshing-make-up-removal-cloths</a></p> <h1><...
[ { "answer_id": 74557605, "author": "derHugo", "author_id": 7111561, "author_profile": "https://Stackoverflow.com/users/7111561", "pm_score": 2, "selected": true, "text": "PlayerController StaminaBar PlayerController StaminaBar InputManager PlayerController StaminaBar StaminaBar public cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20576555/" ]
74,542,683
<p>AddBookAction.java</p> <pre><code> import com.opensymphony.xwork2.ActionSupport; public class AddBookAction extends ActionSupport { private static final long serialVersionUID = 1L; private String id, name,aname,badd; private String msg = &quot;&quot;; int ok = 0; public String execute() ...
[ { "answer_id": 74557605, "author": "derHugo", "author_id": 7111561, "author_profile": "https://Stackoverflow.com/users/7111561", "pm_score": 2, "selected": true, "text": "PlayerController StaminaBar PlayerController StaminaBar InputManager PlayerController StaminaBar StaminaBar public cl...
2022/11/23
[ "https://Stackoverflow.com/questions/74542683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20578845/" ]
74,542,704
<p>I have a shell script inside Jenkins job where I need that only one command inside the script will run only once a year every year. Something like:</p> <pre><code>if [today is 1st of Nov in any Year]; then do this command.... fi </code></pre> <p>Is it possible?</p>
[ { "answer_id": 74543024, "author": "M B", "author_id": 3730626, "author_profile": "https://Stackoverflow.com/users/3730626", "pm_score": 0, "selected": false, "text": "if @yearly Would last have run at Sunday, September 11, 2022 10:21:52 PM CEST; would next run at Monday, September 11, 2...
2022/11/23
[ "https://Stackoverflow.com/questions/74542704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1508682/" ]
74,542,710
<p>Due to <code>minikube</code> issues <a href="https://github.com/kubernetes/minikube/issues/13841" rel="nofollow noreferrer">13841</a> and <a href="https://github.com/kubernetes/minikube/issues/13872" rel="nofollow noreferrer">13872</a> (which I believe to be the same), I have to use <code>minikube</code> 1.23.2. I ...
[ { "answer_id": 74543413, "author": "tripleee", "author_id": 874188, "author_profile": "https://Stackoverflow.com/users/874188", "pm_score": 2, "selected": true, "text": "#!/bin/sh\nsecret=$(kubectl get serviceaccount \"${1-default}\" -o jsonpath='{.secrets[0].name}')\nkubectl get secret ...
2022/11/23
[ "https://Stackoverflow.com/questions/74542710", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1336427/" ]
74,542,720
<p>I need to do next behavior on my webssite: until first breakpoint (for tablets) it should just scale without changing of elements positions etc. For example: Website should look similar on 1920x1280 screen and on 1600x900 screen, but on tablets and mobiles i want to use media queries for reform my elements position....
[ { "answer_id": 74543413, "author": "tripleee", "author_id": 874188, "author_profile": "https://Stackoverflow.com/users/874188", "pm_score": 2, "selected": true, "text": "#!/bin/sh\nsecret=$(kubectl get serviceaccount \"${1-default}\" -o jsonpath='{.secrets[0].name}')\nkubectl get secret ...
2022/11/23
[ "https://Stackoverflow.com/questions/74542720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20454723/" ]
74,542,734
<p>One existing example of this is <code>open</code> which can be used in these two ways:</p> <pre class="lang-py prettyprint-override"><code>f = open(&quot;File&quot;) print(f.readline()) f.close() # ...and... with open(&quot;File&quot;) as f: print(f.readline()) </code></pre> <p>I intend to create a version of th...
[ { "answer_id": 74543413, "author": "tripleee", "author_id": 874188, "author_profile": "https://Stackoverflow.com/users/874188", "pm_score": 2, "selected": true, "text": "#!/bin/sh\nsecret=$(kubectl get serviceaccount \"${1-default}\" -o jsonpath='{.secrets[0].name}')\nkubectl get secret ...
2022/11/23
[ "https://Stackoverflow.com/questions/74542734", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10251041/" ]
74,542,755
<p>Getting a NullPointerException Error when trying to run my app, I will link code and Logcat error below, help would be greatly appreciated.</p> <p>In my XML class with the DrawerLayout I have the ID for the drawer set to drawer_layout (renamed using android:id).</p> <p><strong>Logcat Error</strong></p> <pre><code>20...
[ { "answer_id": 74543413, "author": "tripleee", "author_id": 874188, "author_profile": "https://Stackoverflow.com/users/874188", "pm_score": 2, "selected": true, "text": "#!/bin/sh\nsecret=$(kubectl get serviceaccount \"${1-default}\" -o jsonpath='{.secrets[0].name}')\nkubectl get secret ...
2022/11/23
[ "https://Stackoverflow.com/questions/74542755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17698173/" ]
74,542,761
<p>I have setup a ToastContainer in my main App.js</p> <pre><code>return ( &lt;div className='wrapper' style={{height: '100%'}}&gt; &lt;ToastContainer limit={1} containerId={'error'} position='bottom-left' autoClose={5000} hideProgressBar={false} ...
[ { "answer_id": 74543413, "author": "tripleee", "author_id": 874188, "author_profile": "https://Stackoverflow.com/users/874188", "pm_score": 2, "selected": true, "text": "#!/bin/sh\nsecret=$(kubectl get serviceaccount \"${1-default}\" -o jsonpath='{.secrets[0].name}')\nkubectl get secret ...
2022/11/23
[ "https://Stackoverflow.com/questions/74542761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7215355/" ]
74,542,762
<p>I want to apply a filter to every 5th column in a file by using <code>awk</code> and print the entire line if all conditions are met on the specified columns. How can I shorten this code?</p> <pre><code>awk -F &quot;\t&quot; '{if ($5&gt;=10 &amp;&amp; $10&gt;=10 &amp;&amp; $15&gt;=10 &amp;&amp; $20&gt;=10 &amp;&amp;...
[ { "answer_id": 74542928, "author": "WeDBA", "author_id": 8514862, "author_profile": "https://Stackoverflow.com/users/8514862", "pm_score": 0, "selected": false, "text": "awk '{a=1; for (i =1 ; i<= NF ; ++i) if ( i%5==0 ) a=a&&$i>10; if (a) print file\n" }, { "answer_id": 74542966...
2022/11/23
[ "https://Stackoverflow.com/questions/74542762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4564320/" ]
74,542,772
<pre><code> void deletenode(string key) { if (last == NULL) { cout &lt;&lt; &quot;your circular linked list is an empty one&quot; &lt;&lt; endl; } else { node* p = last-&gt;next; node* prev = last; do { if (p-&gt;title == key) { ...
[ { "answer_id": 74542963, "author": "brmRush", "author_id": 9483598, "author_profile": "https://Stackoverflow.com/users/9483598", "pm_score": 0, "selected": false, "text": "void deleteNodeWithKey(node* head, string key)\n{\n node *curr = head;\n node *last , *temp;\n //Search for...
2022/11/23
[ "https://Stackoverflow.com/questions/74542772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20550190/" ]
74,542,802
<p>I've written a code about a program where a word gets encrypted as a number dependent on a fixed parameter such as &quot;Software&quot; turning into 76389273. However the for loop is not returning different values for every letter, and returns the same value (value of the first letter) for all letters.</p> <pre><cod...
[ { "answer_id": 74542963, "author": "brmRush", "author_id": 9483598, "author_profile": "https://Stackoverflow.com/users/9483598", "pm_score": 0, "selected": false, "text": "void deleteNodeWithKey(node* head, string key)\n{\n node *curr = head;\n node *last , *temp;\n //Search for...
2022/11/23
[ "https://Stackoverflow.com/questions/74542802", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17650958/" ]
74,542,872
<p>It seems that it is impossible to use <code>typedef</code> and incorporate a malloc function in my program: More specifically:</p> <p>groups.h</p> <pre><code>#include &quot;headers.h&quot; #include &quot;info.h&quot; #include &quot;sub_list.h&quot; typedef struct group_entity *group; group new_group(int id); void...
[ { "answer_id": 74542951, "author": "KamilCuk", "author_id": 9072753, "author_profile": "https://Stackoverflow.com/users/9072753", "pm_score": 3, "selected": false, "text": "sizeof(group) * typedef struct group_entity group;\ngroup *new_group(int id);\nvoid free_group(group *group);\n\ngr...
2022/11/23
[ "https://Stackoverflow.com/questions/74542872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18750577/" ]
74,542,873
<p>I am calling one Microsoft graph API from my PHP application, API is <strong><a href="https://graph.microsoft.com/beta/policies/identitySecurityDefaultsEnforcementPolicy" rel="nofollow noreferrer">https://graph.microsoft.com/beta/policies/identitySecurityDefaultsEnforcementPolicy</a></strong></p> <p>my code is like ...
[ { "answer_id": 74627992, "author": "Barkermn01", "author_id": 493804, "author_profile": "https://Stackoverflow.com/users/493804", "pm_score": 1, "selected": false, "text": "$guzzle = new \\GuzzleHttp\\Client();\n$url = 'https://login.microsoftonline.com/'.env(\"TANANT_ID\").'/oauth2/toke...
2022/11/23
[ "https://Stackoverflow.com/questions/74542873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4710899/" ]
74,542,884
<p>I want to get current select value without modeling on data. in other words , I want get this select value in second method argument. pay attention that this select placed in a v-for loop how can i do this?</p> <pre><code>&lt;select v-if=&quot;user.client_groups.length &gt; 0&quot; class=&quot;small&quot; @chan...
[ { "answer_id": 74627992, "author": "Barkermn01", "author_id": 493804, "author_profile": "https://Stackoverflow.com/users/493804", "pm_score": 1, "selected": false, "text": "$guzzle = new \\GuzzleHttp\\Client();\n$url = 'https://login.microsoftonline.com/'.env(\"TANANT_ID\").'/oauth2/toke...
2022/11/23
[ "https://Stackoverflow.com/questions/74542884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8327515/" ]
74,542,896
<p>I've a csv file which i'm reading as a dict using Ansible <code>read_csv</code></p> <pre><code>id,name,quantity,type 1,apple,10,fruit 2,orange,20,fruit 3,carrot,5,veg 4,beetroot,2,veg 5,onion,3,veg 6,tomato,4,both 7,pear,4,fruit 8,banana,6,fruit 9,persimon,4,fruit 10,guava,4,fruit 11,pepper,4,veg 12,potato,5,veg 13,...
[ { "answer_id": 74627992, "author": "Barkermn01", "author_id": 493804, "author_profile": "https://Stackoverflow.com/users/493804", "pm_score": 1, "selected": false, "text": "$guzzle = new \\GuzzleHttp\\Client();\n$url = 'https://login.microsoftonline.com/'.env(\"TANANT_ID\").'/oauth2/toke...
2022/11/23
[ "https://Stackoverflow.com/questions/74542896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1221358/" ]
74,542,903
<p>I want to find all the hidden files inside a directory in linux terminal.</p> <p>I have found out that we have a grep command to search for the file but I need to search for hidden files.</p> <p><code>grep -r search *</code></p> <p>Any help would be appreciated. Thanks.</p>
[ { "answer_id": 74542995, "author": "Dan Bonachea", "author_id": 3528321, "author_profile": "https://Stackoverflow.com/users/3528321", "pm_score": 1, "selected": false, "text": ". . find . -print | grep '/\\.'\n" }, { "answer_id": 74545137, "author": "Pasha Abdul Khalid", ...
2022/11/23
[ "https://Stackoverflow.com/questions/74542903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6682406/" ]
74,542,915
<p>I want to count the number of &quot;domains&quot; for which &quot;adminLock&quot; is equal to 1.</p> <p>This is my json data structure:</p> <pre><code>{ &quot;code&quot;: 0, &quot;message&quot;: &quot;成功&quot;, &quot;data&quot;: { &quot;recordCount&quot;: &quot;128&quot;, &quot;pageSize&quot;: 100, ...
[ { "answer_id": 74542973, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 1, "selected": false, "text": "length .data.data | map(select(.adminLock == 1)) | length\n 5\n reduce reduce (.data.data[] | select(.adminLock == 1)) a...
2022/11/23
[ "https://Stackoverflow.com/questions/74542915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438305/" ]
74,542,916
<p>I have created MERN application a little bit ago and deployed it on local server with pm2 package and run API and React App as separate services. As I wanted to dockerize everything, I created <code>Dockerfile</code> in React App and in API and then created <code>docker-compose.yaml</code>:</p> <pre><code>version: &...
[ { "answer_id": 74571141, "author": "sai reddy", "author_id": 18832149, "author_profile": "https://Stackoverflow.com/users/18832149", "pm_score": 0, "selected": false, "text": "mongodump --db database_name --collection collection_name docker cp dump_files_path container_id:/tmp/. docker e...
2022/11/23
[ "https://Stackoverflow.com/questions/74542916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12879474/" ]
74,542,939
<p>I am trying to call an external Rest API endpoints in my Spring Boot application. I have an API key that I generated before using it in my rest application. Whenever I am trying to hit GET request, showing me <strong>missing API Key 403 forbidden error</strong>.</p> <pre><code>org.springframework.web.client.HttpClie...
[ { "answer_id": 74571141, "author": "sai reddy", "author_id": 18832149, "author_profile": "https://Stackoverflow.com/users/18832149", "pm_score": 0, "selected": false, "text": "mongodump --db database_name --collection collection_name docker cp dump_files_path container_id:/tmp/. docker e...
2022/11/23
[ "https://Stackoverflow.com/questions/74542939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20274796/" ]
74,542,974
<p>hey guys i have a problem with my flutter web project</p> <p>it is, if user accesses the project with in-app-browser(ex. instagram, twitter) it displays crashed UI</p> <p>so i need to make an Dialog that shows, the link needs to open with other kinds of browser besides in-app-browser</p> <p>so the first thing what I...
[ { "answer_id": 74571141, "author": "sai reddy", "author_id": 18832149, "author_profile": "https://Stackoverflow.com/users/18832149", "pm_score": 0, "selected": false, "text": "mongodump --db database_name --collection collection_name docker cp dump_files_path container_id:/tmp/. docker e...
2022/11/23
[ "https://Stackoverflow.com/questions/74542974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16630737/" ]
74,542,978
<p>I have a spreadsheet and have some data in it.</p> <p>Here I want to trigger a function on Cell <strong>Script!A2 value change.</strong></p> <p>I will not change it's value directly.</p> <p>It will be dependent <strong>by it's formula on below conditions</strong></p> <p><strong>1.</strong> On the Edit of a Cell in <...
[ { "answer_id": 74571141, "author": "sai reddy", "author_id": 18832149, "author_profile": "https://Stackoverflow.com/users/18832149", "pm_score": 0, "selected": false, "text": "mongodump --db database_name --collection collection_name docker cp dump_files_path container_id:/tmp/. docker e...
2022/11/23
[ "https://Stackoverflow.com/questions/74542978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20018193/" ]
74,543,010
<p>Write a program to accept 5 integer elements of an array and copy them to another array, but all tasks must be performed using pointers.</p> <pre><code>// Here is my program #include &lt;stdio.h&gt; #include &lt;conio.h&gt; void main() { int arr[5], brr[5], *p, *q, i; p = arr; q = brr; for (i = 0; i &lt; ...
[ { "answer_id": 74571141, "author": "sai reddy", "author_id": 18832149, "author_profile": "https://Stackoverflow.com/users/18832149", "pm_score": 0, "selected": false, "text": "mongodump --db database_name --collection collection_name docker cp dump_files_path container_id:/tmp/. docker e...
2022/11/23
[ "https://Stackoverflow.com/questions/74543010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17139447/" ]
74,543,012
<p>Since <code>std::remove()</code> does not resize <code>std::string</code>, I've came up with an idea how to solve this:</p> <pre><code>std::string s{&quot;aabcdef&quot;}; std::remove_if(s.begin(), s.end(), [&amp;s](char a) { if (a == 'a') { s.pop_back(); return true; ...
[ { "answer_id": 74543118, "author": "Stack Danny", "author_id": 6039995, "author_profile": "https://Stackoverflow.com/users/6039995", "pm_score": 2, "selected": false, "text": "std::remove() string::erase() std::string s{ \"aabcdef\" };\n\nauto it = std::remove(s.begin(), s.end(), 'a');\n...
2022/11/23
[ "https://Stackoverflow.com/questions/74543012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14662740/" ]
74,543,025
<p>I'm using the excellent exifr library to read the create date from pngs. I'm looping through an array and adding data to a created marker on a map... but I'm stuck on promises!</p> <p>This is what I want to do in each iteration of the loop.</p> <pre><code>exifr.parse(bottlefullurl, {xmp: true, tiff:false}) .then...
[ { "answer_id": 74543079, "author": "Ray", "author_id": 19808086, "author_profile": "https://Stackoverflow.com/users/19808086", "pm_score": 1, "selected": false, "text": "jmarker.jmarkerdatedata = exifr.parse(bottlefullurl, {xmp: true, tiff:false})\n .then(output => output.CreateDate);...
2022/11/23
[ "https://Stackoverflow.com/questions/74543025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9006881/" ]
74,543,041
<p>Input:</p> <pre><code>[&quot;-5&quot;, &quot;-12&quot;, &quot;0&quot;, &quot;20&quot;, &quot;9&quot;, &quot;-20&quot;, &quot;37&quot;] </code></pre> <p>Output:</p> <pre><code>[&quot;0&quot;, &quot;-5&quot;, &quot;9&quot;, &quot;-12&quot;, &quot;-20&quot;, &quot;20&quot;, &quot;37&quot;] </code></pre> <p>What logic s...
[ { "answer_id": 74543079, "author": "Ray", "author_id": 19808086, "author_profile": "https://Stackoverflow.com/users/19808086", "pm_score": 1, "selected": false, "text": "jmarker.jmarkerdatedata = exifr.parse(bottlefullurl, {xmp: true, tiff:false})\n .then(output => output.CreateDate);...
2022/11/23
[ "https://Stackoverflow.com/questions/74543041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17587281/" ]
74,543,049
<p>I've raw data like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Column A</th> <th>Column B</th> </tr> </thead> <tbody> <tr> <td>&quot;A:1, B:2, C:3&quot;</td> <td>XXX</td> </tr> </tbody> </table> </div> <p>The result I want is like this:</p> <div class="s-table-container"> <tabl...
[ { "answer_id": 74543079, "author": "Ray", "author_id": 19808086, "author_profile": "https://Stackoverflow.com/users/19808086", "pm_score": 1, "selected": false, "text": "jmarker.jmarkerdatedata = exifr.parse(bottlefullurl, {xmp: true, tiff:false})\n .then(output => output.CreateDate);...
2022/11/23
[ "https://Stackoverflow.com/questions/74543049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16868429/" ]
74,543,069
<p>I have having a bit of a problem:</p> <p>I am trying to convert these numbers:</p> <p>-0.2179, -8.742.754.508, 1.698.516.678,</p> <p>to</p> <p>-0.22, -8.74, 1.70,</p> <p>But I am really not sure how I do this, when the number of decimal points is different?</p> <p>I have tried .split('.') but its difficult with chan...
[ { "answer_id": 74543213, "author": "Mehrdad Saberi", "author_id": 12534890, "author_profile": "https://Stackoverflow.com/users/12534890", "pm_score": 1, "selected": false, "text": "data = [\"-0.2179\", \"-8.742.754.508\", \"1.698.516.678\"]\nfund = []\nfor number in data:\n split = nu...
2022/11/23
[ "https://Stackoverflow.com/questions/74543069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17507865/" ]
74,543,072
<p>Here's the code can anyone help?</p> <pre><code>using System; namespace Mathhero { class MainClass { public static void Main(string[] args) { int i; for (i = 0; i &lt;= 10; i++) { Random numgen = new Random(); int num1 = numg...
[ { "answer_id": 74543091, "author": "tomerpacific", "author_id": 10632369, "author_profile": "https://Stackoverflow.com/users/10632369", "pm_score": 1, "selected": false, "text": " else\n {\n int ran = numgen.Next(1, 4);\n switch (ran)\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19325373/" ]
74,543,085
<p>I have a string I would like to split and access the elements as strings. Here is code:</p> <pre><code>x &lt;- &quot;b0.5,0.5&quot; y &lt;- strsplit(x,',') str(y) y[[1]][1] str(y[[1]][1]) length(y[[1]][1]) z &lt;- y[[1]][1] length(z) substr(z,1,1) substr(z,1,2) substr(z,1,3) substr(z,1,4) </code></pre> <p>The length...
[ { "answer_id": 74543091, "author": "tomerpacific", "author_id": 10632369, "author_profile": "https://Stackoverflow.com/users/10632369", "pm_score": 1, "selected": false, "text": " else\n {\n int ran = numgen.Next(1, 4);\n switch (ran)\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579317/" ]
74,543,089
<p>I found my command line tool gets stuck in between and needs a enter to process and I found that it’s because of &quot;QUICKEDIT&quot; mode in cmd and we want to disable it to avoid that. So I searched for Java options to disable quick edit mode on my app launch but I got only bat file from here <a href="https://git...
[ { "answer_id": 74543091, "author": "tomerpacific", "author_id": 10632369, "author_profile": "https://Stackoverflow.com/users/10632369", "pm_score": 1, "selected": false, "text": " else\n {\n int ran = numgen.Next(1, 4);\n switch (ran)\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579178/" ]
74,543,125
<p>I want to make the user to access firestore data in my flutter app only when they are online.</p> <p>I am expecting that firestore data can't stored in cache memory, so tha tthe user only gets the data when they are online.</p>
[ { "answer_id": 74543395, "author": "Irfan Ganatra", "author_id": 18817235, "author_profile": "https://Stackoverflow.com/users/18817235", "pm_score": 1, "selected": false, "text": "connectivity_plus: ^3.0.2" }, { "answer_id": 74543719, "author": "Abdullatif Eida", "author_...
2022/11/23
[ "https://Stackoverflow.com/questions/74543125", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579354/" ]
74,543,140
<p><a href="https://i.stack.imgur.com/4ILik.png" rel="nofollow noreferrer">desired_output_sample</a> I have following data:</p> <pre><code>#1. dates of 15 day frequency: dates = seq(as.Date(&quot;2016-09-01&quot;), as.Date(&quot;2020-07-30&quot;), by=15) #96 times observation #2. water content in crops correspondin...
[ { "answer_id": 74543395, "author": "Irfan Ganatra", "author_id": 18817235, "author_profile": "https://Stackoverflow.com/users/18817235", "pm_score": 1, "selected": false, "text": "connectivity_plus: ^3.0.2" }, { "answer_id": 74543719, "author": "Abdullatif Eida", "author_...
2022/11/23
[ "https://Stackoverflow.com/questions/74543140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473161/" ]
74,543,171
<p>I have a T-SQL Query that show Sum(TotalAmount) Sum(Discount) Sum(PayableAmount) from Table1 named p1 and show the Sum(PaidAmount) from Table2 named p2,</p> <p>the tables p1 and p2 do not have any relationship with Forenkay and the primary key,</p> <p>so I was not able to use the .net core method syntax _context.Tab...
[ { "answer_id": 74543395, "author": "Irfan Ganatra", "author_id": 18817235, "author_profile": "https://Stackoverflow.com/users/18817235", "pm_score": 1, "selected": false, "text": "connectivity_plus: ^3.0.2" }, { "answer_id": 74543719, "author": "Abdullatif Eida", "author_...
2022/11/23
[ "https://Stackoverflow.com/questions/74543171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7422109/" ]
74,543,173
<pre><code>ERROR NullInjectorError: R3InjectorError(PaceGeneratorLibraryComponentLoader)[HttpClient -&gt; HttpClient -&gt; HttpClient -&gt; HttpClient]: NullInjectorError: No provider for HttpClient! at NullInjector.get (core.mjs:6367:27) at R3Injector.get (core.mjs:6794:33) at R3Injector.get (core.mjs:6...
[ { "answer_id": 74543395, "author": "Irfan Ganatra", "author_id": 18817235, "author_profile": "https://Stackoverflow.com/users/18817235", "pm_score": 1, "selected": false, "text": "connectivity_plus: ^3.0.2" }, { "answer_id": 74543719, "author": "Abdullatif Eida", "author_...
2022/11/23
[ "https://Stackoverflow.com/questions/74543173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20256600/" ]
74,543,206
<p>I want each values of df have different decimal point like this</p> <pre><code> year month day count 1234 5678 9101 mean 12.12 34.34 2.3456 std 12.12 3.456 7.789 </code></pre> <p>I searched to find a way to change specific value's decimal point but couldn't find the way. So this is ...
[ { "answer_id": 74543395, "author": "Irfan Ganatra", "author_id": 18817235, "author_profile": "https://Stackoverflow.com/users/18817235", "pm_score": 1, "selected": false, "text": "connectivity_plus: ^3.0.2" }, { "answer_id": 74543719, "author": "Abdullatif Eida", "author_...
2022/11/23
[ "https://Stackoverflow.com/questions/74543206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423918/" ]
74,543,221
<p>I have the following the following columns,</p> <pre><code>column_1 = [&quot;Northern Rockies, British Columbia [9A87]&quot;, &quot;Northwest Territories [2H89]&quot;, &quot;Canada [00052A]&quot;, &quot;Division No. 1, Newfoundland and Labrador [52A]&quot;] column_2 = [&quot;aa&quot;, &quot;bb&quot;, &quot;cc&quot;,...
[ { "answer_id": 74543269, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 2, "selected": true, "text": "str.extract str.repalce df[\"column_4\"] = df[\"column_1\"].str.extract(r'\\[(.*?)\\]')\ndf[\"column_1\"] = d...
2022/11/23
[ "https://Stackoverflow.com/questions/74543221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13928846/" ]
74,543,258
<p>I have a dataframe which returns the output as</p> <p><a href="https://i.stack.imgur.com/5g4eB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5g4eB.png" alt="enter image description here" /></a></p> <p>I would like to transpose this into</p> <p><a href="https://i.stack.imgur.com/r1G34.png" rel="n...
[ { "answer_id": 74543427, "author": "wwnde", "author_id": 8986975, "author_profile": "https://Stackoverflow.com/users/8986975", "pm_score": 3, "selected": true, "text": "df =spark.createDataFrame([\n(78,20,19,90),\n],\n('Machines', 'Books', 'Vehicles', 'Plants'))\n df.withColumn('tab', ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543258", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1211072/" ]
74,543,261
<p>I have the following string</p> <pre class="lang-none prettyprint-override"><code>Date: 20/8/2020 Duration: 0.33 IP: 110.1.x.x Server:01 </code></pre> <p>I'm applying <code>findall</code> as a way to split my string when I apply <code>findall</code> it split I &amp; P how can I change expression to get this output</...
[ { "answer_id": 74543400, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 3, "selected": true, "text": ">>> re.findall(r'([A-Z][a-zA-Z].*?)\\s*(?=[A-Z][a-zA-Z]|$)', text)\n['Date: 20/8/2020', 'Duration: 0.33', 'IP: 110.1....
2022/11/23
[ "https://Stackoverflow.com/questions/74543261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20527442/" ]
74,543,285
<p>I am trying to find the way to test RichFilter function just like RichMappFunction like present here : <a href="https://flink.apache.org/news/2020/02/07/a-guide-for-unit-testing-in-apache-flink.html" rel="nofollow noreferrer">RichMapFunction Testing is present here...</a>...Searched through internet and find nothing...
[ { "answer_id": 74543400, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 3, "selected": true, "text": ">>> re.findall(r'([A-Z][a-zA-Z].*?)\\s*(?=[A-Z][a-zA-Z]|$)', text)\n['Date: 20/8/2020', 'Duration: 0.33', 'IP: 110.1....
2022/11/23
[ "https://Stackoverflow.com/questions/74543285", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579522/" ]
74,543,329
<p>I'm working on a Ingestion Flow where we ingest the data from csv file to Oracle database. This is a truncate and load. So we should truncate the table before it is loaded. Trying to execute the below SP in the Lookup activity of ADF</p> <pre><code>BEGIN execute oracle.cml_trunc_table('SCHEMA','TABLE_NAME')&quot;; E...
[ { "answer_id": 74543400, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 3, "selected": true, "text": ">>> re.findall(r'([A-Z][a-zA-Z].*?)\\s*(?=[A-Z][a-zA-Z]|$)', text)\n['Date: 20/8/2020', 'Duration: 0.33', 'IP: 110.1....
2022/11/23
[ "https://Stackoverflow.com/questions/74543329", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14125039/" ]
74,543,330
<p>I am trying to retrieve the code from an HTML file in PHP.</p> <p>And display it in a textarea.</p> <p>Example: if I have a file with a div and a foo h1 in it I want my textarea to appear like this.</p> <p>After a few hours of research, I can't find a good result.</p> <p><a href="https://i.stack.imgur.com/jnjeS.png"...
[ { "answer_id": 74543400, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 3, "selected": true, "text": ">>> re.findall(r'([A-Z][a-zA-Z].*?)\\s*(?=[A-Z][a-zA-Z]|$)', text)\n['Date: 20/8/2020', 'Duration: 0.33', 'IP: 110.1....
2022/11/23
[ "https://Stackoverflow.com/questions/74543330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579566/" ]
74,543,332
<p>I have a Databricks workspace through Azure, and I use the Databricks Job API to run some python scripts that create files.</p> <p>I want to know if I can retrieve these files created after the job is finished running.</p> <ul> <li>In Azure, I see a storage account that is associated with the databricks workspace, i...
[ { "answer_id": 74544845, "author": "Saideep Arikontham", "author_id": 18844585, "author_profile": "https://Stackoverflow.com/users/18844585", "pm_score": 2, "selected": true, "text": "file:/databricks/driver/training_runs dbutils.fs.ls(\"file:/databricks/driver/training_runs/<your_run_id...
2022/11/23
[ "https://Stackoverflow.com/questions/74543332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11360794/" ]
74,543,334
<p>I have a matrix:</p> <pre><code>contingency.table.1 &lt;- structure(c(40, 5, 1, 0, 24, 8, 0, 1, 2, 1, 1, 0, 0, 1, 0, 1), .Dim = c(4L, 4L), .Dimnames = list(col1 = c(&quot;0&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;), col2 = c(&quot;0&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;)), class = &quot;tabl...
[ { "answer_id": 74543689, "author": "jay.sf", "author_id": 6574038, "author_profile": "https://Stackoverflow.com/users/6574038", "pm_score": 1, "selected": false, "text": "for rp <- \\(m) {\n stopifnot(diff(dim(m)) == 0L) ## symmetricity check\n for (i in seq_len(ncol(m)) - 1L) {\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16160487/" ]
74,543,339
<p>I know, there's <a href="https://stackoverflow.com/questions/30179272/fixed-div-overflow-is-off-screen">Fixed Div Overflow is Off Screen</a>, I have a similar but still different problem: my DIV isn't always 100% of the page's height, so <code>bottom:0px</code> won't work for me.<br /> I have a DIV fixed to the top ...
[ { "answer_id": 74543546, "author": "Alex Dimitrov", "author_id": 3945290, "author_profile": "https://Stackoverflow.com/users/3945290", "pm_score": 2, "selected": false, "text": ".sticky {\n width: 200px;\n height: 100vh;\n position: fixed;\n top: 0;\n right: 0;\n overfl...
2022/11/23
[ "https://Stackoverflow.com/questions/74543339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17865928/" ]
74,543,346
<p>I am trying multithreading in java for the first time. My problem statement is to fetch the data from an api for multiple months together. Therefor I tried 2-3 things and stuck with the below code. I am getting null value while printing f.get(). Anyone who can explain why it is printing null value for all?</p> <pre>...
[ { "answer_id": 74543546, "author": "Alex Dimitrov", "author_id": 3945290, "author_profile": "https://Stackoverflow.com/users/3945290", "pm_score": 2, "selected": false, "text": ".sticky {\n width: 200px;\n height: 100vh;\n position: fixed;\n top: 0;\n right: 0;\n overfl...
2022/11/23
[ "https://Stackoverflow.com/questions/74543346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579549/" ]
74,543,352
<p>So I have a table with columns:</p> <p>UID_person, UID_personHead, Firstname, LastName</p> <p>The value of UID_personhead is equivalent to UID_person. UID_personHead is the UID_person of managers So I want to query it and return something like</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> ...
[ { "answer_id": 74543546, "author": "Alex Dimitrov", "author_id": 3945290, "author_profile": "https://Stackoverflow.com/users/3945290", "pm_score": 2, "selected": false, "text": ".sticky {\n width: 200px;\n height: 100vh;\n position: fixed;\n top: 0;\n right: 0;\n overfl...
2022/11/23
[ "https://Stackoverflow.com/questions/74543352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16302625/" ]
74,543,375
<p>I have a container with a lighter background color (light green with opacity of 50%) and the container shadow color is dark black (opacity 100%). Because of darker shadow color my container color got disrupt.</p> <p>Means my shadow color is much darker then the continer color...Please do help. Thanks in advance.</p>...
[ { "answer_id": 74543495, "author": "VincentDR", "author_id": 19540575, "author_profile": "https://Stackoverflow.com/users/19540575", "pm_score": 2, "selected": false, "text": "boxShadow: const [\n BoxShadow(\n blurStyle: BlurStyle.outer,\n spreadRadius: 0,\n blurR...
2022/11/23
[ "https://Stackoverflow.com/questions/74543375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10086039/" ]
74,543,383
<p>Existing Dataframe :</p> <pre><code>Id event time_spent_in_sec A in 0 A step_1 2.2 A step_2 3 A done 3 B in 0 B step_1 5 B step_2 8 B step_3 15 B ...
[ { "answer_id": 74543507, "author": "T C Molenaar", "author_id": 8814131, "author_profile": "https://Stackoverflow.com/users/8814131", "pm_score": 1, "selected": false, "text": ".fillna() df.time_spent_in_sec.shift(-1).fillna(df.time_spent_in_sec[0])\n df.time_spent_in_sec.shift(-1, fill_...
2022/11/23
[ "https://Stackoverflow.com/questions/74543383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19303365/" ]
74,543,384
<p>I want to Request a Calendar of a user using the Golang Graph SDK, but i just get random Odata Values as Response instead of Json or some other format.</p> <p>First i made the Connection and Request using the official Docs and Issues on Github:</p> <pre><code>package main import ( &quot;context&quot; &quot;...
[ { "answer_id": 74543507, "author": "T C Molenaar", "author_id": 8814131, "author_profile": "https://Stackoverflow.com/users/8814131", "pm_score": 1, "selected": false, "text": ".fillna() df.time_spent_in_sec.shift(-1).fillna(df.time_spent_in_sec[0])\n df.time_spent_in_sec.shift(-1, fill_...
2022/11/23
[ "https://Stackoverflow.com/questions/74543384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532115/" ]
74,543,455
<p>I am seeing some weird behaviour in Java stream API. Here's my code:</p> <pre><code>public static void main( String[] args ) { final List&lt;String&gt; list = Arrays.asList( &quot;string1&quot;, &quot;string2&quot; ); final Map&lt;String, List&lt;String&gt;&gt; map = new HashMap&lt;&gt;(); map.put( &quot...
[ { "answer_id": 74543529, "author": "Eran", "author_id": 1221571, "author_profile": "https://Stackoverflow.com/users/1221571", "pm_score": 1, "selected": false, "text": ".map( map::get ) null .flatMap( List::stream ) null NullPointerException stream() null Stream<String> stream = list.str...
2022/11/23
[ "https://Stackoverflow.com/questions/74543455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/521347/" ]
74,543,468
<div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ID</th> <th>A</th> <th>B</th> <th>C</th> <th>D</th> <th>Orderd</th> </tr> </thead> <tbody> <tr> <td>No1</td> <td>8</td> <td>9</td> <td>5</td> <td>2</td> <td>D:2 C:5 A:8 B:9</td> </tr> <tr> <td>No2</td> <td>3</td> <td>1</td> <td>7</td> <td>9</td> <...
[ { "answer_id": 74543529, "author": "Eran", "author_id": 1221571, "author_profile": "https://Stackoverflow.com/users/1221571", "pm_score": 1, "selected": false, "text": ".map( map::get ) null .flatMap( List::stream ) null NullPointerException stream() null Stream<String> stream = list.str...
2022/11/23
[ "https://Stackoverflow.com/questions/74543468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1835703/" ]
74,543,480
<p>I want to be able to keep track on the order of selected options in multiple mat-select. How can I implement this use case?</p> <p>Let's say first I select 'Onion' then 'Mushroom' and then 'Pepperoni'. I want to be able to get from mat-select the selected options in this order ['Onion', 'Mushroom', 'Pepperoni']. And...
[ { "answer_id": 74543643, "author": "Stacks Queue", "author_id": 14820590, "author_profile": "https://Stackoverflow.com/users/14820590", "pm_score": 0, "selected": false, "text": "FormControl FormControl toppings = new FormControl('');\ntoppingList: string[] = ['Extra cheese', 'Mushroom',...
2022/11/23
[ "https://Stackoverflow.com/questions/74543480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3776697/" ]
74,543,500
<p>How can I add a suffix to <code>TextField</code> input that flows (moves) with the user input text?</p>
[ { "answer_id": 74543501, "author": "Mahozad", "author_id": 8583692, "author_profile": "https://Stackoverflow.com/users/8583692", "pm_score": 0, "selected": false, "text": "const val SUFFIX = \" $\"\n@Composable\nfun SuffixedText() {\n var text by remember { mutableStateOf(\"\") }\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543500", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8583692/" ]
74,543,525
<p>I have a parent class called Snack with subclasses Drink and Sweets. I want to store my Snacks in a &quot;VendingMachine&quot; Class where there is a list for each of the Products. However, I don't want to write the same method for each type of Snack. How would you write this as a generic method ?</p> <pre><code> //...
[ { "answer_id": 74543501, "author": "Mahozad", "author_id": 8583692, "author_profile": "https://Stackoverflow.com/users/8583692", "pm_score": 0, "selected": false, "text": "const val SUFFIX = \" $\"\n@Composable\nfun SuffixedText() {\n var text by remember { mutableStateOf(\"\") }\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19319604/" ]
74,543,539
<p>I have a file <code>config.yaml</code> that looks like this:</p> <pre><code>myenv1: abc: efg host: ( ENV[&quot;HOST1&quot;] ) db: ( ENV[&quot;DB1&quot;] ) user: &lt;%= ENV[&quot;USER1&quot;] %&gt; pass: &lt;%= ENV[&quot;VE_PASS1&quot;] %&gt; time: 00 myenv2: abc: efg host: ( ENV[&quot;HOST2&quot;]...
[ { "answer_id": 74544078, "author": "AnjanaAK", "author_id": 10259516, "author_profile": "https://Stackoverflow.com/users/10259516", "pm_score": 0, "selected": false, "text": "temp secrets values.yaml yq #!/bin/bash\n\nsource_file=config.yaml\ndestination_file=values.yaml\ntemp_file=temp\...
2022/11/23
[ "https://Stackoverflow.com/questions/74543539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10259516/" ]
74,543,569
<p>I have a simple problem. For example sometimes I need to call <code>Auth::user()-&gt;id</code> in conditional but if I'm not logged in, it triggers an error. For example <code>@if(isset(Auth::user()-&gt;id)) //do something @endif</code> How can I do that in a simple way to make it work?</p> <p>I want to make only on...
[ { "answer_id": 74543667, "author": "N69S", "author_id": 4369919, "author_profile": "https://Stackoverflow.com/users/4369919", "pm_score": 1, "selected": false, "text": "id() null @if(Auth::id())\n check() true false ! is_null(Auth::user()) @if(Auth::check())\n" }, { "answer_id": ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20321593/" ]
74,543,570
<p>I'm trying to count unique values in one column only when the value meets a certain condition based on another column. For example, the data looks like this:</p> <pre><code>GroupID ID Value ABC TX123 0 ABC TX678 1 ABC TX678 2 DEF AG123 1 DEF AG123 ...
[ { "answer_id": 74543745, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "loc groupby.agg('nunique') (df.loc[df['Value'].gt(0), 'ID']\n .groupby(df['GroupID'])\n .agg(UniqueNum='nunique'...
2022/11/23
[ "https://Stackoverflow.com/questions/74543570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17670715/" ]
74,543,613
<p>Repository implementation where a suspend function of uploading and getting back the urls. the await() function said that it should be &quot;suspend&quot;. so i added a Coroutine Scope block . inside the block have added urls to a list. the log statement inside the scope has required downloaded urls in the arraylist...
[ { "answer_id": 74543745, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "loc groupby.agg('nunique') (df.loc[df['Value'].gt(0), 'ID']\n .groupby(df['GroupID'])\n .agg(UniqueNum='nunique'...
2022/11/23
[ "https://Stackoverflow.com/questions/74543613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13075886/" ]
74,543,650
<p>this is my code I want to convert this query in to a common query</p> <pre><code> if ($limit == 0) { $response = WebhookErrorNotification::where('is_error', true)-&gt;orderByDesc('id')-&gt;get(); } else { $response = WebhookErrorNotification::where('is_error', true)-&gt;orderByDesc('id')-&gt;limit($limit)-&g...
[ { "answer_id": 74543745, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "loc groupby.agg('nunique') (df.loc[df['Value'].gt(0), 'ID']\n .groupby(df['GroupID'])\n .agg(UniqueNum='nunique'...
2022/11/23
[ "https://Stackoverflow.com/questions/74543650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18698442/" ]
74,543,671
<p>I have a page for playing songs in my project. When I go back to the previous page after playing a song (without pausing it), it will continue to play in the background, and users can pause it at any time from the notification bar. I am using Plugin.MediaManager (Version: 1.1.1) for the integration of songs.</p> <p>...
[ { "answer_id": 74543745, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "loc groupby.agg('nunique') (df.loc[df['Value'].gt(0), 'ID']\n .groupby(df['GroupID'])\n .agg(UniqueNum='nunique'...
2022/11/23
[ "https://Stackoverflow.com/questions/74543671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8783685/" ]
74,543,673
<p>I will try to explain it as simple as I can. I have one entity class, one service, one repository.</p> <p>User.class</p> <pre class="lang-java prettyprint-override"><code>@NotNull @NotEmpty @UniqueEmail private String email; </code></pre> <p>UserRepo</p> <pre class="lang-java prettyprint-override"><code>public inte...
[ { "answer_id": 74545283, "author": "Times", "author_id": 5151202, "author_profile": "https://Stackoverflow.com/users/5151202", "pm_score": 3, "selected": true, "text": "UserService findUserByUserEmail UserService @Documented\n@Target(FIELD)\n@Retention(RUNTIME)\n@Constraint(validatedBy =...
2022/11/23
[ "https://Stackoverflow.com/questions/74543673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14538782/" ]
74,543,698
<p>The font I am using on my HTML page supports <a href="https://practicaltypography.com/alternate-figures.html#tabular-and-proportional-figures" rel="nofollow noreferrer">tabular figures</a>, which is great for presenting rows of currency numbers nicely. They can be activated in CSS by using either:</p> <pre><code>.ta...
[ { "answer_id": 74544067, "author": "Thomas", "author_id": 14637, "author_profile": "https://Stackoverflow.com/users/14637", "pm_score": 3, "selected": true, "text": "measureText()" }, { "answer_id": 74560352, "author": "blerontin", "author_id": 511016, "author_profile...
2022/11/23
[ "https://Stackoverflow.com/questions/74543698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/511016/" ]
74,543,712
<p>I am writing R shiny, and I want to make the column name of the renderTable to be center-aligned.</p> <p>I have tried this, but it only makes the table move to the center to the panel.</p> <pre><code>#UI column(12, align = &quot;center&quot;, tableOutput(&quot;table_of_item&quot;)), (XXXWRONG!) </code></pre> <...
[ { "answer_id": 74544067, "author": "Thomas", "author_id": 14637, "author_profile": "https://Stackoverflow.com/users/14637", "pm_score": 3, "selected": true, "text": "measureText()" }, { "answer_id": 74560352, "author": "blerontin", "author_id": 511016, "author_profile...
2022/11/23
[ "https://Stackoverflow.com/questions/74543712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16469595/" ]
74,543,715
<p>getting this error on <code>flutter run</code> for a linux desktop application</p> <pre><code>Running &quot;flutter pub get&quot; in proj... 5.3s Launching lib/main.dart on Linux in debug mode... CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message): The C++ compiler ...
[ { "answer_id": 74556869, "author": "legacyO7", "author_id": 12290785, "author_profile": "https://Stackoverflow.com/users/12290785", "pm_score": 1, "selected": false, "text": "/usr/lib/libstdc++.so sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so fatal error: 'typ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12290785/" ]
74,543,752
<p>I have the following dataframe called df (<code>dput</code> below):</p> <pre><code> group date indicator value 1 A 2022-11-01 01:00:00 FALSE 2 2 A 2022-11-01 03:00:00 FALSE 1 3 A 2022-11-01 04:00:00 FALSE 2 4 A 2022-11-01 05:00:00 FALSE 1 5 A ...
[ { "answer_id": 74543960, "author": "Sotos", "author_id": 5635580, "author_profile": "https://Stackoverflow.com/users/5635580", "pm_score": 3, "selected": true, "text": "library(dplyr)\n\ndf %>% \n group_by(group) %>% \n mutate(val_diff = value - lag(value), \n new = row_number()[i...
2022/11/23
[ "https://Stackoverflow.com/questions/74543752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14282714/" ]
74,543,753
<p>I'm trying to create a user registration in Django, but I have an issue with the template: registrazione.html.</p> <p>My github repo: <a href="https://github.com/Pif50/MobFix" rel="nofollow noreferrer">https://github.com/Pif50/MobFix</a></p> <p><strong>registrazione.html</strong></p> <pre><code>{% extends 'base.html...
[ { "answer_id": 74543960, "author": "Sotos", "author_id": 5635580, "author_profile": "https://Stackoverflow.com/users/5635580", "pm_score": 3, "selected": true, "text": "library(dplyr)\n\ndf %>% \n group_by(group) %>% \n mutate(val_diff = value - lag(value), \n new = row_number()[i...
2022/11/23
[ "https://Stackoverflow.com/questions/74543753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17830991/" ]
74,543,785
<p>I want to change the value on my select input by clicking on a button, but this button is on an other page.</p> <p>My button is on the home page and the form with the select input is on contact page. The select input look like this :</p> <pre><code>&lt;select name=&quot;menu-vol&quot; class=&quot;wpcf7-form-control ...
[ { "answer_id": 74544114, "author": "DCodeMania", "author_id": 8546303, "author_profile": "https://Stackoverflow.com/users/8546303", "pm_score": 2, "selected": true, "text": "<a href=\"contact.html?param=test\">Goto Contact</a>\n href if (window.location.search.includes('param=test')) {\n...
2022/11/23
[ "https://Stackoverflow.com/questions/74543785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579883/" ]
74,543,805
<p>I have string like <strong>(CAT,A)(DOG,C)(MOUSE,D)</strong></p> <p>i want to get the DOG value <strong>C</strong> using Regular expression.</p> <p>i tried following</p> <pre><code>Match match = Regex.Match(rspData, @&quot;\(DOG,*?\)&quot;); if (match.Success) Console.WriteLine(match.Value); </code></pre> <p>But not...
[ { "answer_id": 74543875, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 2, "selected": true, "text": "(?<=\\(DOG,)\\w+(?=\\))?\n(?<=\\(DOG,)[^()]*(?=\\))\n (?<=\\(DOG,) (DOG, \\w+ [^()]* ( ) (?=\\)) )" }, {...
2022/11/23
[ "https://Stackoverflow.com/questions/74543805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579863/" ]
74,543,838
<p><code>Products Array</code> has an array <code>property</code> called <code>subArr</code> and my goal is to return an array with the length of subArr which will include biggest numbers.</p> <p>Array</p> <pre><code>const products = [ { name: &quot;car&quot;, subArr: [&quot;4&quot;, &quot;200&quot;, &quot;59...
[ { "answer_id": 74544015, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 2, "selected": false, "text": "subArrs reduce() .map(Number) newArray slice() const products = [ { name: \"car\", subArr: [\"4\", \"200\", \"599.4\...
2022/11/23
[ "https://Stackoverflow.com/questions/74543838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12971921/" ]
74,543,861
<p>I'm trying to setup authentication against Azure DevOps using MSAL. I've followed <a href="https://github.com/microsoft/azure-devops-auth-samples/tree/master/ManagedClientConsoleAppSample" rel="nofollow noreferrer">Microsoft's sample</a> but I can't get it to work with personal Microsoft accounts. Whenever I try to ...
[ { "answer_id": 74556711, "author": "Suki Ji-MSFT", "author_id": 18349158, "author_profile": "https://Stackoverflow.com/users/18349158", "pm_score": 1, "selected": false, "text": "ado:OrganizationUrl ado:OrganizationUrl" }, { "answer_id": 74651317, "author": "iDoMnCi", "au...
2022/11/23
[ "https://Stackoverflow.com/questions/74543861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1523238/" ]
74,543,883
<p>I use the SAS key to make a GET request for the table, but I get the error &quot;This request is not authorized to perform this operation.&quot;. What values should I fill in on the authorization tab to work this out?</p> <p><a href="https://i.stack.imgur.com/h8qyM.png" rel="nofollow noreferrer">enter image descript...
[ { "answer_id": 74556711, "author": "Suki Ji-MSFT", "author_id": 18349158, "author_profile": "https://Stackoverflow.com/users/18349158", "pm_score": 1, "selected": false, "text": "ado:OrganizationUrl ado:OrganizationUrl" }, { "answer_id": 74651317, "author": "iDoMnCi", "au...
2022/11/23
[ "https://Stackoverflow.com/questions/74543883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579892/" ]
74,543,907
<p>I am trying to append another shape when one of the values satisfy the condition as follows:</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-js lang-js prettyprint-override"><code>const keys = ["A", "B", "C", "...
[ { "answer_id": 74544332, "author": "Gerardo Furtado", "author_id": 5768908, "author_profile": "https://Stackoverflow.com/users/5768908", "pm_score": 3, "selected": true, "text": "d3.symbol symbolCircle .attr(\"d\", d => symbol.type(d === \"D\" ? d3.symbolTriangle : d3.symbolCircle)())\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12897021/" ]
74,543,919
<p>I'm trying to build an Oauth2.0 Authorization server and I wanted to understand more about the response_type and grant_type parameters.</p> <p>From what I've read so far, response_type is a query parameter on the /authorize endpoint and it's values can be either 'token' or 'code' which indicates that the authorizati...
[ { "answer_id": 74544332, "author": "Gerardo Furtado", "author_id": 5768908, "author_profile": "https://Stackoverflow.com/users/5768908", "pm_score": 3, "selected": true, "text": "d3.symbol symbolCircle .attr(\"d\", d => symbol.type(d === \"D\" ? d3.symbolTriangle : d3.symbolCircle)())\n ...
2022/11/23
[ "https://Stackoverflow.com/questions/74543919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12401995/" ]
74,543,985
<p>I have an odd issue and I am hoping you guys can help me.</p> <p>The Task: I want to post json to a API rest call.</p> <p>And I am sure the rest API works - I have copied the json from print() in Swift and tried it in postman, and the works just fine.</p> <p>When I try to post via Swift i get 400 Bad request. The co...
[ { "answer_id": 74544596, "author": "vishnu_146", "author_id": 6081374, "author_profile": "https://Stackoverflow.com/users/6081374", "pm_score": 0, "selected": false, "text": " func postMobileContacts(serverURL: String, jsonToPost: Encodable) { //<--here\n \n // Prepare U...
2022/11/23
[ "https://Stackoverflow.com/questions/74543985", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3453222/" ]
74,543,989
<p>I wonder why we need to use a try-finally when using a the <a href="https://docs.python.org/3/library/contextlib.html" rel="nofollow noreferrer">@contextmanager</a> decorator.</p> <p>The provided <a href="https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager" rel="nofollow noreferrer">example</...
[ { "answer_id": 74544596, "author": "vishnu_146", "author_id": 6081374, "author_profile": "https://Stackoverflow.com/users/6081374", "pm_score": 0, "selected": false, "text": " func postMobileContacts(serverURL: String, jsonToPost: Encodable) { //<--here\n \n // Prepare U...
2022/11/23
[ "https://Stackoverflow.com/questions/74543989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2123555/" ]
74,543,998
<p>I'm working on a project and I'm trying to get the footer to stay at the bottom of the page but out of sight until you scroll to the bottom of the page. I tried using a 'position: fixed' in my CSS but it floats above my content, for absolute it stuck to the middle of the page and covered content. Also, for pages wit...
[ { "answer_id": 74544211, "author": "ssspuer_ege", "author_id": 20580063, "author_profile": "https://Stackoverflow.com/users/20580063", "pm_score": 1, "selected": false, "text": ".footer {\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100vw;\n height: 200px;\n background-color...
2022/11/23
[ "https://Stackoverflow.com/questions/74543998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557728/" ]
74,544,030
<p>In a Spring Boot app, I am reading csv file data using OpenCSV and it is possible to use FileReader to BufferedReader with it. However, when I compare both of them, I have a dilemma for the following point:</p> <blockquote> <p>BufferedReader is faster than FileReader, but it uses much more memory.</p> </blockquote> ...
[ { "answer_id": 74544211, "author": "ssspuer_ege", "author_id": 20580063, "author_profile": "https://Stackoverflow.com/users/20580063", "pm_score": 1, "selected": false, "text": ".footer {\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100vw;\n height: 200px;\n background-color...
2022/11/23
[ "https://Stackoverflow.com/questions/74544030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20562773/" ]
74,544,037
<p>We are developing a software product that needs a very big amount of data and we are trying to find the most efficient way to concatenate 3 strings. We used the most known ways to concatenate the strings, such as the &quot;+&quot; operator or the &quot;CONCAT&quot; function. My query will look like this, when I use ...
[ { "answer_id": 74544241, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 3, "selected": true, "text": " declare @s varchar(max) = '', @s1 varchar(max) = 'TEST', @s2 varchar(max) = ' OK';\n with \n l0 as (select 0 v from...
2022/11/23
[ "https://Stackoverflow.com/questions/74544037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10834046/" ]
74,544,038
<p>I want to disable button after one click. I use this code:</p> <pre><code>const handleClick = (event) =&gt; { event.currentTarget.disabled = true; console.log(event); console.log('button clicked'); }; </code></pre> <p>When I have only one button it Works.</p> <pre><code>&lt;div className=&quot;col-md-1...
[ { "answer_id": 74544241, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 3, "selected": true, "text": " declare @s varchar(max) = '', @s1 varchar(max) = 'TEST', @s2 varchar(max) = ' OK';\n with \n l0 as (select 0 v from...
2022/11/23
[ "https://Stackoverflow.com/questions/74544038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,544,052
<p>I set state(id) on button click and i want to use that data(id) in that state, it just showing undefined in the first click</p> <p>[State Initialization] <code>const [id,setId] = useState(&quot;&quot;);</code></p> <p>[Onclick of Button]</p> <pre><code>`render: (record) =&gt; ( &lt;div&gt; ...
[ { "answer_id": 74544241, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 3, "selected": true, "text": " declare @s varchar(max) = '', @s1 varchar(max) = 'TEST', @s2 varchar(max) = ' OK';\n with \n l0 as (select 0 v from...
2022/11/23
[ "https://Stackoverflow.com/questions/74544052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19245986/" ]
74,544,092
<p>I'm trying to do the test to learn Allure, and to assure that the test is passed, the button has to be INVISIBLE. It first clicks 1st button to make 2nd button appear. Then click 2nd button - so same (2nd button disappears). Here it is: <a href="http://the-internet.herokuapp.com/add_remove_elements/" rel="nofollow n...
[ { "answer_id": 74544241, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 3, "selected": true, "text": " declare @s varchar(max) = '', @s1 varchar(max) = 'TEST', @s2 varchar(max) = ' OK';\n with \n l0 as (select 0 v from...
2022/11/23
[ "https://Stackoverflow.com/questions/74544092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20396568/" ]
74,544,098
<p>in my application I'm opening a Window for an Input form. In my App.xaml I have defined the following:</p> <pre><code> &lt;DataTemplate DataType=&quot;{x:Type ViewModels:EditTicketViewModel}&quot;&gt; &lt;Frame&gt; &lt;Frame.Content&gt; &lt;Views...
[ { "answer_id": 74545172, "author": "mm8", "author_id": 7252182, "author_profile": "https://Stackoverflow.com/users/7252182", "pm_score": 1, "selected": false, "text": "IWindow public class WindowService : IWindowService\n{\n public IWindow ShowWindow(object viewModel, bool showDialog)...
2022/11/23
[ "https://Stackoverflow.com/questions/74544098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3052148/" ]
74,544,132
<p>I started learning rust from <a href="https://doc.rust-lang.org/rust-by-example/" rel="nofollow noreferrer">https://doc.rust-lang.org/rust-by-example/</a>, and as far as I understand rust uses move on an assignment, and you explicitly have to tell it to copy with <code>clone()</code>.</p> <pre><code>#[derive(Debug)]...
[ { "answer_id": 74544188, "author": "Cerberus", "author_id": 3003401, "author_profile": "https://Stackoverflow.com/users/3003401", "pm_score": 2, "selected": false, "text": "Copy Copy String error[E0382]: use of partially moved value: `pt`\n --> src/main.rs:18:15\n |\n16 | let Poin...
2022/11/23
[ "https://Stackoverflow.com/questions/74544132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20580001/" ]
74,544,138
<p>The following data is about a person sending an IpHone 14 pro max to his wife. The Iphone 14 pro max has to travel from America to China, China to Argentina and finally from Argentina to Saudi Arabia since the girl is at Saudi Arabia watching FIFA.</p> <pre><code>CREATE TABLE IPhone (Id int, Country NVARCHAR(12), se...
[ { "answer_id": 74544316, "author": "Anel Hodžić", "author_id": 4018834, "author_profile": "https://Stackoverflow.com/users/4018834", "pm_score": 0, "selected": false, "text": "select\nId, Country countryFrom, \n (select top 1 Country from IPhone c where c.seqNo > IPhone.seqNo ) Countr...
2022/11/23
[ "https://Stackoverflow.com/questions/74544138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20319015/" ]
74,544,164
<p>I have a Bicep template where I create an <code>App Service</code> in which I need to link a SSL certificate that exists in Key Vault (both in same resource group).</p> <p>The Key Vault has Azure RBAC enabled.</p> <p>I use the following to Bicep template to link the SSL certificate from Key Vault to the App Service:...
[ { "answer_id": 74590743, "author": "Pradeep Kumar", "author_id": 18704952, "author_profile": "https://Stackoverflow.com/users/18704952", "pm_score": -1, "selected": false, "text": " Ensure that the service principal has all the permissions. The only thing that worked for me though is add...
2022/11/23
[ "https://Stackoverflow.com/questions/74544164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1175327/" ]