qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,515,977 | <p>I have multiple dataframes (<code>sf</code> objects). Each dataframe contains a <code>geometry</code>, <code>name</code> and <code>probability</code> column. They all have the same extents, but only overlap in some regions.</p>
<p>Here is some example data using two dataframes:</p>
<pre><code>nc<-st_read(
syste... | [
{
"answer_id": 74517200,
"author": "margusl",
"author_id": 646761,
"author_profile": "https://Stackoverflow.com/users/646761",
"pm_score": 3,
"selected": true,
"text": "st_equals nc[50:60,] st_intersects st_intersects ?st_join library(dplyr)\nlibrary(sf)\nlibrary(ggplot2)\n\n# by default... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11858130/"
] |
74,516,010 | <p>I have a text data as</p>
<pre class="lang-none prettyprint-override"><code>A 00
B 05
C d1
D
</code></pre>
<p>I want to read the above text file and trigger a shell script <code>abc.sh</code> when <code>$2</code> is either <code>"05"</code> <code>" "</code> or <code>"d1"</code>.... | [
{
"answer_id": 74516677,
"author": "Dudi Boy",
"author_id": 6266192,
"author_profile": "https://Stackoverflow.com/users/6266192",
"pm_score": 1,
"selected": false,
"text": "awk awk '$2~\"05|d1\"||NF==1{system(\"./abc.sh\")}' input.txt\n"
},
{
"answer_id": 74518187,
"author":... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20040019/"
] |
74,516,048 | <p>This is the field.</p>
<pre><code>private static final long BUF_OFFSET
= U.objectFieldOffset(BufferedInputStream.class, "buf");
</code></pre>
<p>This is code which using BUF_OFFSET.</p>
<pre><code>private void fill() throws IOException {
byte[] buffer = getBufIfOpen();
if (markpos < 0)
... | [
{
"answer_id": 74530699,
"author": "Generous Badger",
"author_id": 13418296,
"author_profile": "https://Stackoverflow.com/users/13418296",
"pm_score": 0,
"selected": false,
"text": "BUF_OFFSET buf BufferedInputStream Unsafe.compareAndSetReference sun.misc.Unsafe AtomicReferenceFieldUpdat... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20529695/"
] |
74,516,084 | <p>I'm writing a app that runs on EC2, and currently moving from <strong>local</strong> to <strong>prod</strong> env.</p>
<p>I've read a few blogs that said I should store the env params in <strong>AWS SSM</strong> instead of <code>export</code> them in the terminal.</p>
<p>My question is that, should I fetch these <co... | [
{
"answer_id": 74530699,
"author": "Generous Badger",
"author_id": 13418296,
"author_profile": "https://Stackoverflow.com/users/13418296",
"pm_score": 0,
"selected": false,
"text": "BUF_OFFSET buf BufferedInputStream Unsafe.compareAndSetReference sun.misc.Unsafe AtomicReferenceFieldUpdat... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13954573/"
] |
74,516,088 | <p>I'm trying to find the pixel intensity at the center of bounding box</p>
<p>TO achieve this I'm finding the center coordinates of bounding box and get the pixel intensity of that coordinate as shown below</p>
<pre><code>img_read= cv2.imread(r'image.png')
cv2.rectangle(img_read,(xmin,ymin),(xmax,ymax),(0,0,255),3)
ce... | [
{
"answer_id": 74516172,
"author": "imkyjkk",
"author_id": 14790896,
"author_profile": "https://Stackoverflow.com/users/14790896",
"pm_score": -1,
"selected": false,
"text": "img_read[center_y,center_x] \n"
},
{
"answer_id": 74518646,
"author": "Kavya Kommuri",
"author_id... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19669574/"
] |
74,516,103 | <p>i am new to coding, do you guys create a new dart file for the next screen?</p>
<p>currently i have a homepage with have a start button , do i create a new .dart like a settingpage.dart or continue on homepage?</p>
<p>please advise , thanks.</p>
<p>If i create a new .dart file , what are the code i need to include ?... | [
{
"answer_id": 74516172,
"author": "imkyjkk",
"author_id": 14790896,
"author_profile": "https://Stackoverflow.com/users/14790896",
"pm_score": -1,
"selected": false,
"text": "img_read[center_y,center_x] \n"
},
{
"answer_id": 74518646,
"author": "Kavya Kommuri",
"author_id... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20438315/"
] |
74,516,128 | <p>I started using headless chrome for jenkins integration and changed the code in my base file. but now when i run a test I see multiple chromedrivers are started and the driver doesn't close when the last test is finished.</p>
<p>I didn't have this problem before switching to headless mode.</p>
<p>Here is my TestBase... | [
{
"answer_id": 74516503,
"author": "Alexey R.",
"author_id": 8343843,
"author_profile": "https://Stackoverflow.com/users/8343843",
"pm_score": 1,
"selected": true,
"text": "DriverService ChromeOptions options = new ChromeOptions() // Your options here\nChromeDriverService service = Chrom... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13807612/"
] |
74,516,151 | <p>I have git project like this below</p>
<pre><code>% git --log
commit 39b6b1d894d0788fdfc09947e1a5f88bf962b142 (HEAD -> master, origin/master, origin/HEAD)
Author: whitebear man <whitebear@whitebearnoMacBook-Air.local>
Date: Wed Nov 9 15:29:13 2022 +0900
all
commit 2656df9fb80b5085b4e7a50032712b13e3... | [
{
"answer_id": 74516210,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "21c78ba8 git branch new_branch 21c78ba8\n"
},
{
"answer_id": 74516366,
"author": "eftshift0",
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1942868/"
] |
74,516,175 | <p>Ive been trying to generate a second random number less than my first random number in every scenario, but the code keeps breaking or sometimes returning null</p>
<pre><code>
Random randN = new Random();
int firstNumbereasy; //declaring variables for easy mode
int secondNumbereasy;
... | [
{
"answer_id": 74516266,
"author": "Yonatan Karp-Rudin",
"author_id": 3899765,
"author_profile": "https://Stackoverflow.com/users/3899765",
"pm_score": 3,
"selected": true,
"text": "firstNumbereasy = randN.nextInt(MAX_RANDOM_NUM_NUMBER) + 2;\nsecondNumbereasy= randN.nextInt(firstNumberea... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20545889/"
] |
74,516,178 | <p>I have an array of object as follows <code>Array ( [0] => stdClass Object ( [id] => 14 [content] => সংবাদ [start] => 2022-10-17 00:00:00 ) [1] => stdClass Object ( [id] => 15 [content] => সংবাদ [start] => 2022-10-17 00:00:00 ) [2] => stdClass Object ( [id] => 11 [content] => সংবাদ [s... | [
{
"answer_id": 74516266,
"author": "Yonatan Karp-Rudin",
"author_id": 3899765,
"author_profile": "https://Stackoverflow.com/users/3899765",
"pm_score": 3,
"selected": true,
"text": "firstNumbereasy = randN.nextInt(MAX_RANDOM_NUM_NUMBER) + 2;\nsecondNumbereasy= randN.nextInt(firstNumberea... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12747451/"
] |
74,516,186 | <p>Starting to learn to code and I was doing the fantasy items exercise from automate boring stuff with python. I tried comparing each item of the addedItems array to the dictionary keys to see if they exist, if not I would create a new key with the default value 1. However it says that I have index out of range error,... | [
{
"answer_id": 74516504,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "for k, v in inventory.items():\n"
},
{
"answer_id": 74516547,
"author": "user20561246",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560882/"
] |
74,516,238 | <p>Google play store team mentioned that they found <strong>our app is not compliant with how REQUEST_INSTALL_PACKAGES permission is allowed to be used. Specifically, the use of the permission is not directly related to the core purpose of the app.</strong></p>
<p>But no where in our app, we have used REQUEST_INSTALL_P... | [
{
"answer_id": 74516504,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "for k, v in inventory.items():\n"
},
{
"answer_id": 74516547,
"author": "user20561246",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11032988/"
] |
74,516,269 | <p>I am trying to update a column in the mainDB table, based on data in the engine table. The date in the main DB table is stored in (YYYY-MM_DD) format and I want to subtract only the year</p>
<p>I'm not sure how to properly join these two tables to update the percentage
</p>
<pre><code>UPDATE maindb
JOIN engine O... | [
{
"answer_id": 74516504,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "for k, v in inventory.items():\n"
},
{
"answer_id": 74516547,
"author": "user20561246",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19422735/"
] |
74,516,292 | <p><strong>What am I trying to achieve:</strong></p>
<p>I have a collectionView which represents events in a timeline. These cells (events) have description label that is constrained to the left edge.</p>
<p>When scrolling to events to the left on the timeline, some events are too wide and are not showing the descripti... | [
{
"answer_id": 74516504,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "for k, v in inventory.items():\n"
},
{
"answer_id": 74516547,
"author": "user20561246",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12818143/"
] |
74,516,312 | <p>I'm having issues connecting Logstash using Oracle wallet. I am getting an invalid login/password even though I am trying to connect through the wallet, without using said login/password.</p>
<pre><code>
[ERROR][logstash.inputs.jdbc ] Unable to connect to database. Tried 2 times {:error_message=>"Java::JavaS... | [
{
"answer_id": 74516504,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "for k, v in inventory.items():\n"
},
{
"answer_id": 74516547,
"author": "user20561246",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6172962/"
] |
74,516,332 | <p>I have 2 questions concerning re-writting queries, so that no subquery is needed.</p>
<ol>
<li>Is it - using Oracle-SQL-statements - possible to write one of the following queries without using any type of subquery (e.g. subselect)?</li>
<li>If yes, how would this be possible.</li>
</ol>
<p>Query #1 is as follows:</... | [
{
"answer_id": 74516504,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "for k, v in inventory.items():\n"
},
{
"answer_id": 74516547,
"author": "user20561246",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11558281/"
] |
74,516,375 | <p>I have this array</p>
<pre><code>[[11,12,13,14],[21,22,23,24],[31,32,33,34],[41],[43],[51]]
</code></pre>
<p>,</p>
<p>expected output like this: <code>11-14,21-24,31-34,41,43,51</code></p>
| [
{
"answer_id": 74516504,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "for k, v in inventory.items():\n"
},
{
"answer_id": 74516547,
"author": "user20561246",
"a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10010354/"
] |
74,516,377 | <p>I have a .js file with several functions that are getting exported. In one case, I need to call one of the exported functions from within the other exported function but It wont let me since it says it can not find the function. What am I doing wrong? I also tried using "this.SMA" but makes no difference.<... | [
{
"answer_id": 74516421,
"author": "tstrmn",
"author_id": 15605135,
"author_profile": "https://Stackoverflow.com/users/15605135",
"pm_score": 2,
"selected": false,
"text": "const sma = async function (ohlcv, period) {\n const close = ohlcv.map((c) => c[OHLCV_INDEX.CLOSE]);\n const resu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11057811/"
] |
74,516,378 | <p>I have a script generating a dataframe with multiple columns named with numbers 1, 2, 3 –> n</p>
<p>I want to rename the columns with the following names: "Cluster_1", "Cluster_2", "Cluster_3" –> "Cluster_n" (with incrementation).</p>
<p>As the number of columns in my da... | [
{
"answer_id": 74516538,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 0,
"selected": false,
"text": "paste0 names(df) <- paste0('cluster_', seq_len(length(df)))\n for for (i in seq_along(names(df))) {\n names(df)[i] <... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1158344/"
] |
74,516,388 | <h2>Problem</h2>
<p>I was trying to implement a clean prisma transaction architecture with a DDD architecture.
My problem is that i want to be able to perform <code>transactions</code> cross different modules without need to pass the <code>prisma</code> transaction client to each repository
ie:</p>
<pre class="lang-js ... | [
{
"answer_id": 74516538,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 0,
"selected": false,
"text": "paste0 names(df) <- paste0('cluster_', seq_len(length(df)))\n for for (i in seq_along(names(df))) {\n names(df)[i] <... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18715249/"
] |
74,516,401 | <p>I'm brand new to this, 10 days in.
Ive been thinking how I could solve this for 30 min. Please help.</p>
<blockquote>
<h2>Find Average</h2>
<p>You need to calculate the average of a collection of values. Every value will be valid number. The average must be printed with two digits after the decimal point.</p>
<h3>In... | [
{
"answer_id": 74516738,
"author": "Lakshan Costa",
"author_id": 13601941,
"author_profile": "https://Stackoverflow.com/users/13601941",
"pm_score": 1,
"selected": true,
"text": "float int total = 0\n\nfirst_num=int(input(\"Number of inputs: \"))\nnumber = input(\"Enter numbers: \")\ninp... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,516,433 | <p>I read <a href="https://en.cppreference.com/w/c/language/main_function" rel="nofollow noreferrer">main function</a>, and came across following words:</p>
<blockquote>
<p>The main function has several special properties:</p>
<ol>
<li>A prototype for this function cannot be supplied by the program.</li>
</ol>
</blockq... | [
{
"answer_id": 74516476,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "main main main"
},
{
"answer_id": 74516522,
"author": "Lundin",
"author_id": 584518,
"autho... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2106207/"
] |
74,516,452 | <p>I have successfully encrypted the data and store it in the firebase as a string value, how do i retrieve the string and turn it into var type and allow it to be decrypt ?</p>
<pre><code>import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:encrypt/encrypt.dart... | [
{
"answer_id": 74516652,
"author": "Risheek Mittal",
"author_id": 16973338,
"author_profile": "https://Stackoverflow.com/users/16973338",
"pm_score": 0,
"selected": false,
"text": "final service = userData[index];\nvar cardNum = service.cardNum as Encrypted;\n MyEncryptionDecryption"
}... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20413390/"
] |
74,516,460 | <p>I'm using Elastic search to analyze my logs in WSO2 API Manager. I'm using basic authentication mode. After setting up Elastic and Kibana and configuring its setting, these errors appear when I want to see Kibana dashboards. How can I solve these problems?</p>
<p><a href="https://i.stack.imgur.com/20Rjj.png" rel="no... | [
{
"answer_id": 74516733,
"author": "Amit",
"author_id": 4039431,
"author_profile": "https://Stackoverflow.com/users/4039431",
"pm_score": 1,
"selected": false,
"text": "apim_event_faulty apim_event* _cat/indices?v"
},
{
"answer_id": 74517281,
"author": "chameerar",
"autho... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18079412/"
] |
74,516,481 | <p>I have a df with 6 columns. I want to find the delta based on the date and also group by first few columns.</p>
<pre><code>df <- data.frame (col1 = c('A1','A1','A1','A2','A2','A2','A1','A1','A1','A2','A2','A2','A2','A2','A2'),
col2 = c('B1','B2','B3','B1','B2','B3','B1','B2','B3','B1','B2','B3'... | [
{
"answer_id": 74516733,
"author": "Amit",
"author_id": 4039431,
"author_profile": "https://Stackoverflow.com/users/4039431",
"pm_score": 1,
"selected": false,
"text": "apim_event_faulty apim_event* _cat/indices?v"
},
{
"answer_id": 74517281,
"author": "chameerar",
"autho... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10271423/"
] |
74,516,483 | <p>I have successfully installed an AWS CLI on WSL. In addition I did follow these instructions:
<a href="https://aws.amazon.com/blogs/compute/introducing-the-c-lambda-runtime/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/compute/introducing-the-c-lambda-runtime/</a></p>
<p>Now, the first example works and w... | [
{
"answer_id": 74611780,
"author": "Mart",
"author_id": 3973269,
"author_profile": "https://Stackoverflow.com/users/3973269",
"pm_score": 0,
"selected": false,
"text": "S3::S3Client client(credentialsProvider, config);\n S3::S3Client client(config);\n nano ~/aws-sdk-cpp/crt/aws-crt-cpp/c... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3973269/"
] |
74,516,491 | <p>I have async operation, in which I call a non-void method:</p>
<pre><code>var result = _controller.SendInvoice(this.ParentForm);
</code></pre>
<p>I was getting error <strong>"Cross-thread operation not valid: Control 'ParentForm' accessed from a thread other than the thread it was created on"</strong></p>
... | [
{
"answer_id": 74516553,
"author": "BWA",
"author_id": 5481787,
"author_profile": "https://Stackoverflow.com/users/5481787",
"pm_score": 1,
"selected": false,
"text": "Invoice Invoice invoice;\n//Here copy data\n_controller.SendInvoice(invoice); \n"
},
{
"answer_id": 74516685,
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7785892/"
] |
74,516,500 | <p>I have a YAML file with 2 documents</p>
<pre><code># template.yaml
a : 1
---
b : 2
</code></pre>
<p>I'm trying to edit the YAML file inplace. I've tried using</p>
<pre><code># yq4
yq -i '
select(documentIndex == 0) |
.a = 3 |
select(documentIndex == 1) |
.b = 4
' template.yaml
</code></pre>
<p>But... | [
{
"answer_id": 74517033,
"author": "Inian",
"author_id": 5291015,
"author_profile": "https://Stackoverflow.com/users/5291015",
"pm_score": 2,
"selected": true,
"text": "yq 'select(di == 0).a = 3 | select(di == 1).b = 5' yaml\n"
},
{
"answer_id": 74517247,
"author": "Anuger... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1940886/"
] |
74,516,502 | <p>So let's say, i want to do something thing like this</p>
<pre><code>a = ['AB', 'CD']
s = '1. \n'
print(s.join(a))
</code></pre>
<p>Expected Output:</p>
<pre><code>1. AB
2. CD
</code></pre>
<p>Actual Output:</p>
<pre><code>AB1.
CD1.
</code></pre>
<p>So my question is,
How can i add something at the beginning of the s... | [
{
"answer_id": 74517033,
"author": "Inian",
"author_id": 5291015,
"author_profile": "https://Stackoverflow.com/users/5291015",
"pm_score": 2,
"selected": true,
"text": "yq 'select(di == 0).a = 3 | select(di == 1).b = 5' yaml\n"
},
{
"answer_id": 74517247,
"author": "Anuger... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20337001/"
] |
74,516,525 | <p>I want to create a Switch like below :
<a href="https://i.stack.imgur.com/fVGXz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fVGXz.png" alt="enter image description here" /></a></p>
<p>I tried using <code>Transform.scale</code> as parent Widget but it doesn't match with that i want.
How should ... | [
{
"answer_id": 74517033,
"author": "Inian",
"author_id": 5291015,
"author_profile": "https://Stackoverflow.com/users/5291015",
"pm_score": 2,
"selected": true,
"text": "yq 'select(di == 0).a = 3 | select(di == 1).b = 5' yaml\n"
},
{
"answer_id": 74517247,
"author": "Anuger... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16728483/"
] |
74,516,534 | <p>I'm trying to run a react project cloned from <strong>Github</strong> that works with <code>NodeJs</code>. In the <code>.readme</code> file, the dev tells that i just need to run <code>npm start</code> in backend folder, then on frontend folder.</p>
<p>The problem is that I'm receiving errors:</p>
<p>In backend fold... | [
{
"answer_id": 74517033,
"author": "Inian",
"author_id": 5291015,
"author_profile": "https://Stackoverflow.com/users/5291015",
"pm_score": 2,
"selected": true,
"text": "yq 'select(di == 0).a = 3 | select(di == 1).b = 5' yaml\n"
},
{
"answer_id": 74517247,
"author": "Anuger... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7943153/"
] |
74,516,536 | <p>I know this is a stupid question, but I'm asking as a newbie to flutter.</p>
<p>I created a getData() method to call Firebase's User data and display it on the app. And to call it, result.data() is saved as a variable name of resultData.</p>
<p>But as you know I can't use Text('user name: $resultData'). How do I sol... | [
{
"answer_id": 74517033,
"author": "Inian",
"author_id": 5291015,
"author_profile": "https://Stackoverflow.com/users/5291015",
"pm_score": 2,
"selected": true,
"text": "yq 'select(di == 0).a = 3 | select(di == 1).b = 5' yaml\n"
},
{
"answer_id": 74517247,
"author": "Anuger... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19443112/"
] |
74,516,540 | <p>I am trying to write some synchronization code for a java app that runs on each of the cassandra servers in our cluster (so each server has 1 cassandra instance + our app). For this I wanted to make a method that will return the 'local' cassandra node, using the java driver.</p>
<p>Every process creates a cqlSession... | [
{
"answer_id": 74524169,
"author": "Aaron",
"author_id": 1054558,
"author_profile": "https://Stackoverflow.com/users/1054558",
"pm_score": 2,
"selected": false,
"text": "ResultSet rs = session.execute(\"select host_id from system.local\");\nRow row = rs.one();\nSystem.out.println(row.get... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/405834/"
] |
74,516,541 | <p>I'm trying to create an app that uses drf-api-key for authorization. And I want to monitor which api key used in every connection used to database, Is there a way to that?</p>
<p>I tried to get the value of headers.get("Authorization") I get a none value, I just want to retrieve the name of api key used or... | [
{
"answer_id": 74524169,
"author": "Aaron",
"author_id": 1054558,
"author_profile": "https://Stackoverflow.com/users/1054558",
"pm_score": 2,
"selected": false,
"text": "ResultSet rs = session.execute(\"select host_id from system.local\");\nRow row = rs.one();\nSystem.out.println(row.get... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464787/"
] |
74,516,586 | <p>I have a string query</p>
<pre><code>const query = '(travel OR explore OR vacation OR trip) NOT (app OR agency) AND flight';
</code></pre>
<p>I want to store the words inside "NOT" block in an array.
What could be the most effective approach for this?</p>
<p>Expected result - ["app", "agency... | [
{
"answer_id": 74516679,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "match() const query = '(travel OR explore OR vacation OR trip) NOT (app OR agency) AND flight';\nvar terms =... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14472667/"
] |
74,516,587 | <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>var arrayNames = ["Angela", "Ben", "Jenny", "Michael", "Chloe"];
function whosPaying(names) {
var bigBoss = arrayNames.length;
... | [
{
"answer_id": 74516679,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "match() const query = '(travel OR explore OR vacation OR trip) NOT (app OR agency) AND flight';\nvar terms =... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19779482/"
] |
74,516,608 | <p>I am writing a program aiming to flip the card while it is clicked. The javascript code looks like this:</p>
<pre><code>/* card flipping onclick */
import "./Stylesheets/FlipCardStyle.css"
var cards = document.querySelectorAll('.card');
[...cards].forEach((card)=>{
card.addEventListener( 'click', ... | [
{
"answer_id": 74516976,
"author": "FUZIION",
"author_id": 13050564,
"author_profile": "https://Stackoverflow.com/users/13050564",
"pm_score": 1,
"selected": true,
"text": ".card:hover .flipped flipped var cards = document.querySelectorAll('.card');\n\n[...cards].forEach((card) => {\n c... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20396550/"
] |
74,516,631 | <p>Good day,
I run into the problem then returning DTO object.
I have these classes</p>
<pre><code>public class ProductBase
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public IEnumerable<ProductVariant> Variants { get; set; }
public in... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17250130/"
] |
74,516,633 | <p>When I try to create a new variable in dataframe Call08q1_09q1 by adding two float variable</p>
<pre><code>Call08q1_09q1['MBS']=Call08q1_09q1['RCFD8639']+Call08q1_09q1['RCFD2170']
</code></pre>
<p>the error below shows up:</p>
<p>'<' not supported between instances of 'str' and 'int' in Python</p>
<p>However, I d... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19212804/"
] |
74,516,639 | <p>I'm using a ParentComponent that sets inputs to a ChildComponent.
If the changed input is number, the ngOnChanges hook fires, but if it's an array, it does not.</p>
<p>Can someone tell me what am I doing wrong, or how to make ngOnChanges firing when the array is changed?</p>
<p>Thank you.</p>
<p><strong>child ts:</s... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3345721/"
] |
74,516,642 | <p>I need help, please be kind I'm a beginner.
I have a nested dict like this:</p>
<pre><code>dict_ = {
"timestamp": "2022-11-18T10: 10: 49.301Z",
"name" : "example",
"person":{
"birthyear": "2002"
"birthname": "Examply"... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17581870/"
] |
74,516,647 | <p>Fairly new to SAS/SQL, and have a query, I've not been able to solve. I apologies if the details of my problems are a bit vague, but due to my job I can't be too detailed about the actual data, or show the actual code I have.</p>
<p>I have a table that's a combination of sales data and backlog/catalogue type data. W... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20561080/"
] |
74,516,660 | <p>I am getting an application crash of my app when I am using mic in my case Microsoft Teams on the background and trying to record an audio inside of my app.</p>
<blockquote>
<p>Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannel... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11714895/"
] |
74,516,740 | <p>I need to create pathed copy of the class, where calls to one module method are replaced to another module method calls:</p>
<pre><code>module Foo
def self.check
"foo"
end
end
module Bar
def self.check
"bar"
end
end
class Bark
def call
puts Foo.check
... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/471407/"
] |
74,516,750 | <p>I try to create a mock test with monkeypatch. I have a typical service-repository class.</p>
<p>repository_class.py</p>
<pre><code>find_by_id(id):
con.select(....);
</code></pre>
<p>service_class.py</p>
<pre><code>get_details(id):
some pre-process...
item = repository_class.find_by_id(id)
post-process... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10912170/"
] |
74,516,782 | <p>I have a .srt file with text like this:</p>
<p>19<br>
00:01:05,100 --> 00:01:08,820<br>
countries such as Spain. Another factor to</p>
<p>20<br>
00:01:08,820 --> 00:01:11,850<br>
consider is the southern tip of Spain's coast</p>
<p>21<br>
00:01:11,850 --> 00:01:15,060<br>
being so close to northern Africa c... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20561227/"
] |
74,516,787 | <p>I'm trying to fetch a list of users from a backend API. It all works perfectly unless that once I log the <code>getAllUsers()</code> method in the <code>ngOnInit</code> I get the data, but when I log the variable containing the list of users I get undefined.</p>
<p>Here is my code:</p>
<pre><code>users:User[];
co... | [
{
"answer_id": 74516758,
"author": "sommmen",
"author_id": 4122889,
"author_profile": "https://Stackoverflow.com/users/4122889",
"pm_score": 0,
"selected": false,
"text": "Variants foreach(var x in baseProduct.SelectMany(c => c.Variants) { x.ProductBase = null } public class Order {\n p... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498616/"
] |
74,516,789 | <p>I'm trying to make it so that properties are easily adjustable using a .ini file.</p>
<p>The problem currently is that currently these properties are defined using the "&global-define". With this the properties are not easily adjustable.</p>
<p>I want to put all of these variables inside of a settings ... | [
{
"answer_id": 74521666,
"author": "nwahmaet",
"author_id": 18177,
"author_profile": "https://Stackoverflow.com/users/18177",
"pm_score": 2,
"selected": false,
"text": "block-level on error undo, throw.\n\ndefine temp-table ttIniSetting no-undo\n field Section as character\n field ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18725072/"
] |
74,516,803 | <p>I have to implement a method named <em>groupBy</em> which has the following signature:
<code>groupBy : (a -> b) -> List a -> List ( b, List a )</code>.</p>
<p>The method takes as input a function and a list of items and returns a list of tuples in the form (b, List a), i.e. it returns some kind of dictionar... | [
{
"answer_id": 74520166,
"author": "Catalin Goga",
"author_id": 13059249,
"author_profile": "https://Stackoverflow.com/users/13059249",
"pm_score": 1,
"selected": false,
"text": "groupBy : (a -> b) -> List a -> List ( b, List a )\ngroupBy criteria list =\n let\n unique lst = \n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13059249/"
] |
74,516,817 | <p>Bicep can be used to create a role assignment as follows:</p>
<pre><code>resource RoleAssignment 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = {
name: guid(managementGroup().id, RoleDefinitionId, principalId)
properties: {
roleDefinitionId: roleDefinition.id
principalId: principalId
... | [
{
"answer_id": 74517294,
"author": "Imran",
"author_id": 18229970,
"author_profile": "https://Stackoverflow.com/users/18229970",
"pm_score": 2,
"selected": true,
"text": "Application ID (Get-AzADServicePrincipal -DisplayName AppName).AppId\n ClientApp (Get-AzADServicePrincipal -DisplayNa... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41169/"
] |
74,516,830 | <p>I am new to the react (Jest) tests and I wanted to start practice but for some reason I get an error that there are no tests found.</p>
<p>package.json:</p>
<pre><code>{
"name": "client",
"version": "0.1.0",
"private": true,
"dependencies": {
&q... | [
{
"answer_id": 74517220,
"author": "Ryan Le",
"author_id": 5122615,
"author_profile": "https://Stackoverflow.com/users/5122615",
"pm_score": 2,
"selected": true,
"text": ".js __tests__ .test.js .spec.js .test.js .spec.js __tests__ src"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20045530/"
] |
74,516,842 | <p>I currently have my userInfo stored in a state</p>
<pre><code>const [users, setUsers] = useState([])
</code></pre>
<p>Please, how do I pass the userId into the axios URL to be able to fetch the posts of a specific user. see what I did below. I know I am getting it wrong but please help me.</p>
<p><strong>Dashboard C... | [
{
"answer_id": 74517203,
"author": "Thaiyalnayaki",
"author_id": 15431167,
"author_profile": "https://Stackoverflow.com/users/15431167",
"pm_score": 0,
"selected": false,
"text": "/api/getpost/${users[0]._id}"
},
{
"answer_id": 74517368,
"author": "Daniel",
"author_id": 1... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20234989/"
] |
74,516,845 | <p>Let's say I have the following options structure</p>
<pre class="lang-cs prettyprint-override"><code>using System.ComponentModel.DataAnnotations;
public record AzureOption
{
public AzureGraphOption? Graph { get; init; }
}
public record AzureGraphOption
{
public AzureGraphSecretOption? Secret { get; init; }... | [
{
"answer_id": 74518495,
"author": "Chernyshev Ivan",
"author_id": 20557670,
"author_profile": "https://Stackoverflow.com/users/20557670",
"pm_score": 1,
"selected": false,
"text": "AzureOption AzureOption MyRecursiveValidationAttribute : ValidationAttribute public class MyRecursiveValid... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3289081/"
] |
74,516,883 | <p>I am new at FLutter and I want to try to make authorization but I don't know how to do it properly.</p>
<p>I have multiple screens with inputs</p>
<p>First screen: Choose country in textFormField => Second screen: type name, email in textFormFields => Third screen: type and confirm password in textFormFields</... | [
{
"answer_id": 74518495,
"author": "Chernyshev Ivan",
"author_id": 20557670,
"author_profile": "https://Stackoverflow.com/users/20557670",
"pm_score": 1,
"selected": false,
"text": "AzureOption AzureOption MyRecursiveValidationAttribute : ValidationAttribute public class MyRecursiveValid... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20478292/"
] |
74,516,895 | <p>I want to change the color of the first p element, in the example I presented first-child would work as I understand but, in the project I am working there are actually more elements, and more could be added, therefore I would like to avoid ever using it. I need to only change the first element of type p in a given ... | [
{
"answer_id": 74518495,
"author": "Chernyshev Ivan",
"author_id": 20557670,
"author_profile": "https://Stackoverflow.com/users/20557670",
"pm_score": 1,
"selected": false,
"text": "AzureOption AzureOption MyRecursiveValidationAttribute : ValidationAttribute public class MyRecursiveValid... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18834616/"
] |
74,516,902 | <p>How to override the property of outline: none in css. In the parent class there is a property outline: none and in child class i dont need that .</p>
| [
{
"answer_id": 74518495,
"author": "Chernyshev Ivan",
"author_id": 20557670,
"author_profile": "https://Stackoverflow.com/users/20557670",
"pm_score": 1,
"selected": false,
"text": "AzureOption AzureOption MyRecursiveValidationAttribute : ValidationAttribute public class MyRecursiveValid... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20528893/"
] |
74,516,912 | <p>I have to run a one-line batch command in my Python script.</p>
<p>Currently, I am saving my command in a <code>.bat</code> file and executing the <code>.bat</code> file using the <code>subprocess</code>. But I want to omit the <code>.bat</code> file and directly include the command in my <code>python</code> script.... | [
{
"answer_id": 74518495,
"author": "Chernyshev Ivan",
"author_id": 20557670,
"author_profile": "https://Stackoverflow.com/users/20557670",
"pm_score": 1,
"selected": false,
"text": "AzureOption AzureOption MyRecursiveValidationAttribute : ValidationAttribute public class MyRecursiveValid... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20233252/"
] |
74,516,951 | <p>I'm following a guide in which <code>api routes</code> are built like so:</p>
<p>1 create <code>server/api/route.js</code> file:</p>
<pre><code>export default defineEventHandler((event) => {
return {
message: `hello api route`
}
})
</code></pre>
<p>2 use api route in component like so:</p>
<pre><... | [
{
"answer_id": 74518495,
"author": "Chernyshev Ivan",
"author_id": 20557670,
"author_profile": "https://Stackoverflow.com/users/20557670",
"pm_score": 1,
"selected": false,
"text": "AzureOption AzureOption MyRecursiveValidationAttribute : ValidationAttribute public class MyRecursiveValid... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7826511/"
] |
74,516,996 | <p>I want to set multi type for one field of my schema</p>
<p>like this:</p>
<pre><code>@Schema({ validateBeforeSave: true, _id: false })
class example1 {
a: string;
b: number;
}
@Schema({ validateBeforeSave: true, _id: false })
class example2 {
a: string;
b: number;
}
@Schema({ collection: 'user', validateB... | [
{
"answer_id": 74518495,
"author": "Chernyshev Ivan",
"author_id": 20557670,
"author_profile": "https://Stackoverflow.com/users/20557670",
"pm_score": 1,
"selected": false,
"text": "AzureOption AzureOption MyRecursiveValidationAttribute : ValidationAttribute public class MyRecursiveValid... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74516996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17658482/"
] |
74,517,051 | <p>I want to add eye to password field in flutter project</p>
<p>this is my code:</p>
<pre><code>TextFormField(
decoration: const InputDecoration(
label: Text('PASSWORD'),
),
keyboardType: TextInputType.visiblePassword,
obscureText: true,
validator: (val) {
if... | [
{
"answer_id": 74517113,
"author": "Idriss",
"author_id": 3293320,
"author_profile": "https://Stackoverflow.com/users/3293320",
"pm_score": 0,
"selected": false,
"text": "decoration: InputDecoration(\n suffixIcon: IconButton(\n onPressed: showHideText(),\n icon: ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17410263/"
] |
74,517,079 | <p>It's been 3 months I learn ReactJS + TypeScript. My question is about to use react-hook-form (v7) for editing a form. I want to use my custom component that I created and found how to do it by myself !</p>
<p><em>Here is a part of my form provider with react-hook-form</em></p>
<pre><code>import { FormProvider, useFo... | [
{
"answer_id": 74517113,
"author": "Idriss",
"author_id": 3293320,
"author_profile": "https://Stackoverflow.com/users/3293320",
"pm_score": 0,
"selected": false,
"text": "decoration: InputDecoration(\n suffixIcon: IconButton(\n onPressed: showHideText(),\n icon: ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6858043/"
] |
74,517,094 | <p>I am building a project based on STM32CubeProgrammer API. The filepath is is done like this and you have to input the filename in the code manually.</p>
<pre><code> /* Download File + verification */
#ifdef _WIN32
const wchar_t* filePath = L"../test file/filename.hex";
#else
const wchar_t* fileP... | [
{
"answer_id": 74517471,
"author": "sklott",
"author_id": 11680056,
"author_profile": "https://Stackoverflow.com/users/11680056",
"pm_score": 0,
"selected": false,
"text": "const wchar_t* const wchar_t *file_paths[] = {\n \"some path/filename1.hex\",\n \"some path/filename2.hex\",\n...... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20357707/"
] |
74,517,120 | <p>The function <code>int IsOnMinLevel(Heap H, int i)</code>, returns if the node of index <code>i</code> is on a <code>min level (even level)</code>, in <code>constant time</code></p>
<p>functions provided:</p>
<pre class="lang-c prettyprint-override"><code>typedef struct heap
{
int *array;
int count;
in... | [
{
"answer_id": 74517663,
"author": "Dancchi",
"author_id": 18064255,
"author_profile": "https://Stackoverflow.com/users/18064255",
"pm_score": 0,
"selected": false,
"text": "i floor(log2(i+1)) + 1 int IsOnMinLevel(Heap H, int i)\n{\n return ((int)(floor(log2(i+1))) % 2) == 0; //cast t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18064255/"
] |
74,517,147 | <pre><code>`tokenizer = AutoTokenizer.from_pretrained('google/byt5-base')
</code></pre>
<p>OSError: Can't load config for 'google/byt5-base'. Make sure that:</p>
<ul>
<li><p>'google/byt5-base' is a correct model identifier listed on 'https://huggingface.co/models'</p>
</li>
<li><p>or 'google/byt5-base' is the correct p... | [
{
"answer_id": 74517663,
"author": "Dancchi",
"author_id": 18064255,
"author_profile": "https://Stackoverflow.com/users/18064255",
"pm_score": 0,
"selected": false,
"text": "i floor(log2(i+1)) + 1 int IsOnMinLevel(Heap H, int i)\n{\n return ((int)(floor(log2(i+1))) % 2) == 0; //cast t... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800969/"
] |
74,517,161 | <p>I want to get rid of a module in Python and I use the "pip uninstall " command. However, for some reason the module is still importable! I am using VS code on a Mac OS. Here is the screenshot of the code:</p>
<p><a href="https://i.stack.imgur.com/bw2Ki.png" rel="nofollow noreferrer"><img src="https://i.sta... | [
{
"answer_id": 74517382,
"author": "Ghazouani Ahmed",
"author_id": 18937595,
"author_profile": "https://Stackoverflow.com/users/18937595",
"pm_score": 0,
"selected": false,
"text": "$ python setup.py install --record files.txt\n"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12014637/"
] |
74,517,187 | <p>I am working on a project which have to do image predictions using artifical intelligence,
<a href="https://i.stack.imgur.com/NYnbW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NYnbW.png" alt="enter image description here" /></a></p>
<p>this is the image, you can see that the nodes are attached... | [
{
"answer_id": 74517635,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 1,
"selected": false,
"text": "double data[100][100]"
},
{
"answer_id": 74518047,
"author": "Botje",
"author_id": 1548468,
"author... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16536775/"
] |
74,517,208 | <p>I have folder hierarchy as:</p>
<pre><code>->Project Folder
-Main.py
->modules Folder
->PowerSupply Folder
- PowerSupply.py
- SerialPort.py
</code></pre>
<p>In <code>Main.py</code> I am importing <code>PowerSupply.py</code> with following command</p>
<p><code>from modules.PowerSupply.Po... | [
{
"answer_id": 74517635,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 1,
"selected": false,
"text": "double data[100][100]"
},
{
"answer_id": 74518047,
"author": "Botje",
"author_id": 1548468,
"author... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11850938/"
] |
74,517,223 | <p>I have a list of keywords (each in separate cell), for example:</p>
<p>| Keyword A | (cell C1)
| Keyword B | (cell C2)
| Keyword C | (cell C3)</p>
<p>and I have a formula that searches for these keywords across different worksheets and returns the sum of values corresponding to a given keyword:</p>
<pre><code>=SUM(F... | [
{
"answer_id": 74517635,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 1,
"selected": false,
"text": "double data[100][100]"
},
{
"answer_id": 74518047,
"author": "Botje",
"author_id": 1548468,
"author... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17701542/"
] |
74,517,249 | <p>I have a question regarding to creating custom input slider the label inside field itself.</p>
<p>The output should be like in following screenshot:</p>
<p><a href="https://i.stack.imgur.com/gE6EJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gE6EJ.png" alt="output" /></a></p>
<p>I have done the... | [
{
"answer_id": 74517576,
"author": "Onur İlyas Tokay",
"author_id": 16571858,
"author_profile": "https://Stackoverflow.com/users/16571858",
"pm_score": -1,
"selected": false,
"text": "<div class=\"slider-container\">\n <input\n type=\"range\"\n min=\"1\"\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10489887/"
] |
74,517,267 | <p>When handling exceptions in FastAPI, is there a way to stop the application after raising an <code>HTTPException</code>?</p>
<p>An example of what I am trying to achieve:</p>
<pre class="lang-py prettyprint-override"><code>@api.route("/")
def index():
try:
do_something()
except Exception as... | [
{
"answer_id": 74517699,
"author": "kosciej16",
"author_id": 3361462,
"author_profile": "https://Stackoverflow.com/users/3361462",
"pm_score": 0,
"selected": false,
"text": "sys.exit() stop @api.route(\"/\")\ndef stop():\n loop = asyncio.get_event_loop()\n loop.stop()\n"
},
{
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19745277/"
] |
74,517,276 | <p><a href="https://i.stack.imgur.com/VlT4I.png" rel="nofollow noreferrer">enter image description here</a></p>
<p><a href="https://i.stack.imgur.com/rHEZE.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>Hello, I have encountered a problem. When I use os.listdir, I hope that the effect of picture... | [
{
"answer_id": 74517699,
"author": "kosciej16",
"author_id": 3361462,
"author_profile": "https://Stackoverflow.com/users/3361462",
"pm_score": 0,
"selected": false,
"text": "sys.exit() stop @api.route(\"/\")\ndef stop():\n loop = asyncio.get_event_loop()\n loop.stop()\n"
},
{
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20561573/"
] |
74,517,285 | <p>I created a new project due to a problem with an existing project.</p>
<p>I'm trying to add a dependency to a new project, but it's different from the gradle I've been doing so far.</p>
<p>I also went to the developer documentation, but it doesn't seem to have been updated for the new gradle yet.</p>
<p>Fortunately ... | [
{
"answer_id": 74517699,
"author": "kosciej16",
"author_id": 3361462,
"author_profile": "https://Stackoverflow.com/users/3361462",
"pm_score": 0,
"selected": false,
"text": "sys.exit() stop @api.route(\"/\")\ndef stop():\n loop = asyncio.get_event_loop()\n loop.stop()\n"
},
{
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14415521/"
] |
74,517,319 | <p>This code block is used to read an excel file and get user data by a given user role. but if the user role does not exist in the excel file, it will return an undefined value. how to de we check that the "user" variable is not undefined or null?</p>
<pre><code> cy.task('getExcelData', Cypress.env('usersFil... | [
{
"answer_id": 74521833,
"author": "jjhelguero",
"author_id": 17917809,
"author_profile": "https://Stackoverflow.com/users/17917809",
"pm_score": 1,
"selected": false,
"text": "cy.task('getExcelData', Cypress.env('usersFilePath')).then((users) => {\n const user = users.find(us... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13246500/"
] |
74,517,369 | <p>I have an integration test that requires a small amount of API credits from a third party. The tests are normally <code>.skip</code>ped, but occasionally I wish to run them and spend the credits.</p>
<p>Right now I manually remove the <code>.skip</code>, run:</p>
<pre><code>npx jest -t 'integration tests'
</code></p... | [
{
"answer_id": 74537197,
"author": "jonrsharpe",
"author_id": 3001761,
"author_profile": "https://Stackoverflow.com/users/3001761",
"pm_score": 1,
"selected": false,
"text": "const _it = process.env.RUN_ALL ? it : xit;\n\n_it(\"behaves correctly\", () => { /* ... */ });\n testMatch {\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123671/"
] |
74,517,402 | <p>I'm new in redux, I'm using react native hooks and redux. my problem is that after opening the articleScreen.js page then clicking the back button and opening the articleScreen.js page again, the data is rendered again so that there is the same data and display the same data repeatedly when clicked on the articleScr... | [
{
"answer_id": 74537197,
"author": "jonrsharpe",
"author_id": 3001761,
"author_profile": "https://Stackoverflow.com/users/3001761",
"pm_score": 1,
"selected": false,
"text": "const _it = process.env.RUN_ALL ? it : xit;\n\n_it(\"behaves correctly\", () => { /* ... */ });\n testMatch {\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7546078/"
] |
74,517,426 | <p>I am trying to perform. simple get on influxdb using python. The connection works great and I am able to query several values. However, I have one of them which is reported as <code>homeassistant.autogen.°C</code>. When I try to query it, I always get</p>
<pre><code>influxdb.exceptions.InfluxDBClientError: 400: {&qu... | [
{
"answer_id": 74537197,
"author": "jonrsharpe",
"author_id": 3001761,
"author_profile": "https://Stackoverflow.com/users/3001761",
"pm_score": 1,
"selected": false,
"text": "const _it = process.env.RUN_ALL ? it : xit;\n\n_it(\"behaves correctly\", () => { /* ... */ });\n testMatch {\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/295525/"
] |
74,517,438 | <p>My program is supposed to read data forever from provider classes stored in <code>PROVIDERS</code>, defined in the config. Every second, it should check whether the config has changed and if so, stop all tasks, reload the config and and create new tasks.</p>
<p>The below code raises <code>CancelledError</code> becau... | [
{
"answer_id": 74521232,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 3,
"selected": true,
"text": "asyncio.TaskGroup asyncio.gather asyncio.run(main(False)) asyncio.run(main(True)) import asyncio\n\nasync def doit(i, n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1961574/"
] |
74,517,443 | <p>I'm relativley new to python
I have a excel file where i can read,Column A "url" and Column B "name".</p>
<p>In the future the columns will have no "column name" so i need it to read from Column A directly and column B and start iterating from cell 1.</p>
<p>I tried using index_col(0) ... | [
{
"answer_id": 74517626,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 3,
"selected": true,
"text": "header=None pandas.read_excel import requests\nimport pandas as pd\n \ndf = pd.read_excel(r'C:\\Users\\exdata1.xlsx... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17835613/"
] |
74,517,456 | <p>I have a table with three Columns:
Column A: name of Item,
Column B: Lowest value of series,
Column C: the Highest value of series.
<a href="https://i.stack.imgur.com/TqlMY.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>What I want to achieve is:</p>
<ol>
<li>Generate series of item sequence ... | [
{
"answer_id": 74517626,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 3,
"selected": true,
"text": "header=None pandas.read_excel import requests\nimport pandas as pd\n \ndf = pd.read_excel(r'C:\\Users\\exdata1.xlsx... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19524055/"
] |
74,517,519 | <p>I am currently looking into memory allocation in C. The code below should read characters from standard input one by one and write them to string s. First I allocate memory for s using malloc. Initial size: CHUNK_SIZE. The counter variable counts the number of letters entered. After it becomes larger than the curren... | [
{
"answer_id": 74517626,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 3,
"selected": true,
"text": "header=None pandas.read_excel import requests\nimport pandas as pd\n \ndf = pd.read_excel(r'C:\\Users\\exdata1.xlsx... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6799861/"
] |
74,517,554 | <p>I'm having an issue with my widget running its <code>FutureBuilder</code> code multiple times with an already resolved <code>Future</code>. Unlike the other questions on SO about this, my <code>build()</code> method isn't being called multiple times.</p>
<p>My future is being called outside of <code>build()</code> i... | [
{
"answer_id": 74558136,
"author": "Abdullatif Eida",
"author_id": 20570798,
"author_profile": "https://Stackoverflow.com/users/20570798",
"pm_score": 0,
"selected": false,
"text": "/// provider package super.initState(); @override\n void initState() {\n /// provider package\n f... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/639441/"
] |
74,517,565 | <p>I have string like below:</p>
<pre><code>[(.1, apple), (.2, orange), (.3, banana), (.4, jack), (.5, grape), (.6, mango)]
</code></pre>
<p>i need to convert above string to object in python like below:</p>
<p><code>[('.1', 'apple'), ('.2', 'orange'), ('.3', 'banana'), ('.4', 'jack'), ('.5', 'grape'), ('.6', 'mango')]... | [
{
"answer_id": 74517772,
"author": "Lucas M. Uriarte",
"author_id": 14543462,
"author_profile": "https://Stackoverflow.com/users/14543462",
"pm_score": 3,
"selected": true,
"text": "import re\n\nstring = \"\"\"[(.1, apple), (.2, orange), (.3, banana), (.4, jack), (.5, grape), (.6, mango)... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8772160/"
] |
74,517,584 | <p>I am using Google Cloud run for my applications.
I am storing all my secrets in Google Cloud Secret Manager.</p>
<p>To read secrets I do the following:</p>
<pre><code>from google.cloud import secretmanager
import hashlib
def access_secret_version(secret_id, version_id="latest"):
# Create the Secret M... | [
{
"answer_id": 74517772,
"author": "Lucas M. Uriarte",
"author_id": 14543462,
"author_profile": "https://Stackoverflow.com/users/14543462",
"pm_score": 3,
"selected": true,
"text": "import re\n\nstring = \"\"\"[(.1, apple), (.2, orange), (.3, banana), (.4, jack), (.5, grape), (.6, mango)... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9827719/"
] |
74,517,628 | <p>Suppose I have the following string:
<code>const test = "This is outside the HTML tag. <title>How to remove an HTML element using JavaScript ?</title>";</code></p>
<p>I'd like to remove the content within all HTML tags in that string. I have tried doing <code>test.replace(/(<([^>]+)>)/... | [
{
"answer_id": 74517772,
"author": "Lucas M. Uriarte",
"author_id": 14543462,
"author_profile": "https://Stackoverflow.com/users/14543462",
"pm_score": 3,
"selected": true,
"text": "import re\n\nstring = \"\"\"[(.1, apple), (.2, orange), (.3, banana), (.4, jack), (.5, grape), (.6, mango)... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3480297/"
] |
74,517,631 | <p>There is a function that takes the following argument :</p>
<pre><code>int send_message(const char *topic)
</code></pre>
<p>I have a struct :</p>
<pre><code>typedef struct mqtt_topic {
char topic[200];
} mqtt_topic_t;
</code></pre>
<p>and a value that is of the type : <code>mqtt_topic_t *mqtt_topic</code></p>
<p... | [
{
"answer_id": 74517772,
"author": "Lucas M. Uriarte",
"author_id": 14543462,
"author_profile": "https://Stackoverflow.com/users/14543462",
"pm_score": 3,
"selected": true,
"text": "import re\n\nstring = \"\"\"[(.1, apple), (.2, orange), (.3, banana), (.4, jack), (.5, grape), (.6, mango)... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19622689/"
] |
74,517,638 | <p><strong>Using python AI mnist to recognize my picture, trained accuracy is 97.99%, but accuracy to my img is less than 20%</strong></p>
<p>I'm hoping can use MNIST doing 0~9 number recognition, and trainning accuracy rate reach up to 97% , I thought it will be fine to reconize my pic</p>
<p>but predict/recognize my... | [
{
"answer_id": 74518906,
"author": "Ali",
"author_id": 6189090,
"author_profile": "https://Stackoverflow.com/users/6189090",
"pm_score": 2,
"selected": false,
"text": "data augmentation ImageDataGenerator # Here is image data augmentation example:\nfrom tensorflow.keras.preprocessing.ima... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20396381/"
] |
74,517,666 | <p>Hello guys I got the following code in my app.js:</p>
<pre><code>function App() {
const [theme, setTheme] = useState('light');
const toggleTheme = () => {
if (theme === 'light') {
setTheme('dark');
} else {
setTheme('light');
}
};
useEffect(() => {
document.body.className = ... | [
{
"answer_id": 74517739,
"author": "tstrmn",
"author_id": 15605135,
"author_profile": "https://Stackoverflow.com/users/15605135",
"pm_score": 0,
"selected": false,
"text": "className ...\n <form className={theme === \"light\" ? \"form-container light\" : \"form-container dark\"}>\n...\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20109764/"
] |
74,517,667 | <p>I have an issue with push notifications not being received on an iOS device in my Flutter app.</p>
<p>I tried to follow this guide: <a href="https://firebase.flutter.dev/docs/messaging/apple-integration/" rel="nofollow noreferrer">https://firebase.flutter.dev/docs/messaging/apple-integration/</a></p>
<p>Steps I have... | [
{
"answer_id": 74589487,
"author": "mrcendre",
"author_id": 1710188,
"author_profile": "https://Stackoverflow.com/users/1710188",
"pm_score": 2,
"selected": false,
"text": "aps-environment .entitlements development production ~/Library/MobileDevice/Provisioning\\ Profiles aps-environment... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13206091/"
] |
74,517,671 | <p>I have to write this code where The function must receive a path to a text file which must contain text composed of only English letters and punctuation symbols and a destination file for encrypted data. Punctuation symbols must be left as they are without any modification and the encrypted text must be written to a... | [
{
"answer_id": 74517922,
"author": "JohnyCapo",
"author_id": 19335841,
"author_profile": "https://Stackoverflow.com/users/19335841",
"pm_score": 1,
"selected": true,
"text": "# ____help_function____\ndef check_alpha(m_string):\n list_wanted = ['!', '?', '.', ',']\n\n for letter in m_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20111366/"
] |
74,517,696 | <p>I have a simple problem with my json file.</p>
<p>That json file can describe like this:</p>
<pre><code>{
"motto": "<span class="text-success">IF</span> YOU FAIL, TRY AGAIN"
}
</code></pre>
<p>How to put <code>"</code> inside <code>motto</code> property ? Thanks for... | [
{
"answer_id": 74517922,
"author": "JohnyCapo",
"author_id": 19335841,
"author_profile": "https://Stackoverflow.com/users/19335841",
"pm_score": 1,
"selected": true,
"text": "# ____help_function____\ndef check_alpha(m_string):\n list_wanted = ['!', '?', '.', ',']\n\n for letter in m_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12715723/"
] |
74,517,716 | <p>I have an <code>orders</code> table that has a primary key <code>id</code> column, an <code>order_id</code> column, and a <code>created_date</code> column:</p>
<pre><code>===================================
ORDERS
===================================
id | order_id | created_date
--------------------... | [
{
"answer_id": 74517858,
"author": "VvdL",
"author_id": 15589010,
"author_profile": "https://Stackoverflow.com/users/15589010",
"pm_score": 1,
"selected": false,
"text": "order_id ROW_NUMBER() ORDER BY WITH ranked_order_ids_by_date AS (\n SELECT \n *, \n ROW_NUMBER() over (PARTITI... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2664815/"
] |
74,517,720 | <p>I'm kinda new to reactjs and I got a situation where I will have to change a state and then I will need to access the new state value in the same function. Please have a look at the code below,</p>
<pre><code>import { useState } from "react";
import "./styles.css";
export default function App() ... | [
{
"answer_id": 74517745,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 1,
"selected": false,
"text": "state useEffect useEffect(() => {\n console.log(state)\n}, [state])\n"
},
{
"answer_id": 7451776... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13362682/"
] |
74,517,735 | <p>I have a spring-boot app (that implements Spring security) related to react app in the front.
When I do rest calls (GET, POST, ..), it works fine without any issues.
However, When I try to call Stripe checkout from my react app, I get this error :</p>
<blockquote>
<p>Cross-Origin Request Blocked: The Same Origin Pol... | [
{
"answer_id": 74521858,
"author": "soma",
"author_id": 17427213,
"author_profile": "https://Stackoverflow.com/users/17427213",
"pm_score": 0,
"selected": false,
"text": "r.stripe.com"
},
{
"answer_id": 74572361,
"author": "Hamadi95",
"author_id": 19070542,
"author_pr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19070542/"
] |
74,517,737 | <p>This is an easy question, but I am new to Rails. Simply put, I want to use a route from another model (Score) in my Prediction controller. Once a new prediction is made, I want to redirect to the new_score_path but I keep getting an error -</p>
<pre><code> undefined local variable or method `new_scores_path' for #&l... | [
{
"answer_id": 74518263,
"author": "max",
"author_id": 544825,
"author_profile": "https://Stackoverflow.com/users/544825",
"pm_score": 1,
"selected": false,
"text": "routes.rb resources :scores new_score_path new_singular_path"
},
{
"answer_id": 74518947,
"author": "GhostRide... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2576839/"
] |
74,517,744 | <p>When iam trying to create lock using powershell Azure automation runbook by using below script</p>
<pre><code>New-AzResourceLock -LockName test -LockLevel CanNotDelete -ResourceGroupName rg -ResourceName resorcename -LockNotes Protection Auto created by Azure Backup -ResourceType Microsoft.Storage/storageAccounts -F... | [
{
"answer_id": 74518263,
"author": "max",
"author_id": 544825,
"author_profile": "https://Stackoverflow.com/users/544825",
"pm_score": 1,
"selected": false,
"text": "routes.rb resources :scores new_score_path new_singular_path"
},
{
"answer_id": 74518947,
"author": "GhostRide... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20441802/"
] |
74,517,809 | <p>I'm trying to run a really simple script on an Ubuntu EC2 machine with Selenium.</p>
<p>I put the next piece of code inside a loop since the script should run in the background forever:</p>
<pre><code>from selenium import webdriver
def play():
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument(&... | [
{
"answer_id": 74518100,
"author": "tedsmitt",
"author_id": 9464037,
"author_profile": "https://Stackoverflow.com/users/9464037",
"pm_score": 0,
"selected": false,
"text": "nohup ./script.py > foo.out 2> foo.err < /dev/null &\n"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10118150/"
] |
74,517,811 | <p>Working with external Postgres DB, I have only read permissions, so I have to deal with a poorly designed tables.</p>
<p>I have a table:</p>
<pre><code>CREATE TABLE table (
user_id uuid NOT NULL,
column_a boolean DEFAULT false,
column_b boolean DEFAULT false,
column_c boolean DEFAULT false
);
</code>... | [
{
"answer_id": 74517893,
"author": "szeak",
"author_id": 1597791,
"author_profile": "https://Stackoverflow.com/users/1597791",
"pm_score": 0,
"selected": false,
"text": "SELECT\n CASE WHEN column_a = true\n THEN column_a\n ELSE CASE WHEN column_b = true\n THEN column_b\n ELSE CA... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20561910/"
] |
74,517,895 | <p>hi I have the following code that works just fine but I do not know how to move the matching name files to the same directory. for example I have 3 files with the same name (xml, jpeg, txt) when I move the xml file I want all the files with the same name to move with it. I was looking in the forum and did not find a... | [
{
"answer_id": 74517893,
"author": "szeak",
"author_id": 1597791,
"author_profile": "https://Stackoverflow.com/users/1597791",
"pm_score": 0,
"selected": false,
"text": "SELECT\n CASE WHEN column_a = true\n THEN column_a\n ELSE CASE WHEN column_b = true\n THEN column_b\n ELSE CA... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15691901/"
] |
74,517,945 | <p>I'm working on a program in which i want to store the distance the user walked since pressing a button. I retrieve the distance via geolocator package and display it on screen which works just fine.</p>
<p>I know there are some distanceBetween-Function for locations, but as far as i noticed, they are just calculatin... | [
{
"answer_id": 74517893,
"author": "szeak",
"author_id": 1597791,
"author_profile": "https://Stackoverflow.com/users/1597791",
"pm_score": 0,
"selected": false,
"text": "SELECT\n CASE WHEN column_a = true\n THEN column_a\n ELSE CASE WHEN column_b = true\n THEN column_b\n ELSE CA... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20561895/"
] |
74,517,953 | <p>I have this function:</p>
<pre><code>const getXNumberOfDocuments = async function getXNumberOfDocuments(
page,
results_per_page
) {
/*************************************************** */
results_per_page = parseInt(results_per_page);
let x_number_of_documents = await Document.find()
.populate([
... | [
{
"answer_id": 74517893,
"author": "szeak",
"author_id": 1597791,
"author_profile": "https://Stackoverflow.com/users/1597791",
"pm_score": 0,
"selected": false,
"text": "SELECT\n CASE WHEN column_a = true\n THEN column_a\n ELSE CASE WHEN column_b = true\n THEN column_b\n ELSE CA... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74517953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8965420/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.