question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,913,969 | Row-wise flatten_chr() or unlist() to convert string to vector<p>I'm using a dataset that included diagnoses coding, and I'm trying to see whether <code>follow_up_code</code> is in <code>discharge_codes</code>. Sadly, the discharge codes have been provided as a string, rather than a vector.</p>
<pre class="lang-r prett... | <p>You can convert the text column into a character vector and then see if the code is within that vector. The benefit of this is that the <code>discharge_codes</code> are now available for other uses, if needed.</p>
<pre class="lang-r prettyprint-override"><code>library(dplyr)
library(purrr)
library(stringr)
mre %>... | Row-wise flatten_chr() or unlist() to convert string to vector | r|list|vector|tidyverse | 2 | 72 | 4 | 72,914,091 | 72,914,091 | 3 | true | 2022-07-08T15:51:47.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Row-wise flatten_chr() or unlist() to convert string to vector<p>I'm using a dataset that included diagnoses coding, and I'm trying to see whether <code>foll... |
72,933,040 | Why is accessing a variable so much slower than accessing len()?<p>I wrote this function <code>uniq</code> that takes in a sorted slice of <code>int</code>s
and returns the slice with duplicates removed:</p>
<pre class="lang-golang prettyprint-override"><code>func uniq(x []int) []int {
i := 0
for i < len(x)-... | <p>You expect roughly the same execution time because you think they do roughly the same thing.</p>
<blockquote>
<p>The only difference between the two functions is that in <code>uniq2</code>, instead of slicing <code>x</code> and directly accessing <code>len(x)</code> each time, I save <code>len(x)</code> to a variabl... | Why is accessing a variable so much slower than accessing len()? | performance|go|slice | 0 | 72 | 1 | 72,934,897 | 72,934,897 | 3 | true | 2022-07-11T01:55:10.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is accessing a variable so much slower than accessing len()?<p>I wrote this function <code>uniq</code> that takes in a sorted slice of <code>int</code>s
... |
72,915,114 | usage of 88 level under FILLER field<p>Does it make sense to have 88 level under FILLER declaration, like in this code:</p>
<pre><code> 10 FILLER PIC X(02).
88 SOME-NAME VALUE 'XX'.
</code></pre>
<p>Can this field SOME-NAME be used in the program?</p> | <p>Yes, that makes totally sense. You may use this for:</p>
<ul>
<li>only (or mostly) set / check by field condition-name - <code>SET SOME-NAME TO TRUE</code> and <code>IF SOME-NAME</code>; as Scott Nelson pointed out this is a good way to prevent use of "magic values"</li>
<li>have the value stored and some... | usage of 88 level under FILLER field | cobol | 3 | 72 | 2 | 72,915,756 | 72,915,756 | 3 | true | 2022-07-08T17:43:12.900Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
usage of 88 level under FILLER field<p>Does it make sense to have 88 level under FILLER declaration, like in this code:</p>
<pre><code> 10 FILLER PIC X(0... |
72,979,248 | Observable wait until another observable value<p>I have one observable A and another observable B (that is a BehaviorSubject). I need that B works like a semaphore, when I get a value changes in A, if B is true, A executes some logic, otherwise A need to wait B become true. I tried different approaches, but without suc... | <p>Check this. The code below will invoke every A event when B event become true (if you want only one A event at a time just change the mergeMap operator to the switchMap and if you want proper order to be preserved change it to the concatMap and move dosomething to the tap operator above the take(1) line)</p>
<pre><c... | Observable wait until another observable value | angular|observable|semaphore | 2 | 72 | 1 | 72,979,936 | 72,979,936 | 3 | true | 2022-07-14T10:46:54.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Observable wait until another observable value<p>I have one observable A and another observable B (that is a BehaviorSubject). I need that B works like a sem... |
72,932,716 | web scraping in r with SelectorGadget<p>I was running this simple code below to scrape the employee number from this Fortune 500 page. I used the Chrome's extention: SelectorGadget to identify that the number I want matches with ".info__row--7f9lE:nth-child(13) .info__value--2AHH7"</p>
<pre><code>library(rves... | <p>When I do <code>document.querySelectorAll(".info__row--7f9lE:nth-child(13) .info__value--2AHH7")</code> I see you want to scrape the # of employees. Maurits is right, looks like the data is downloaded as (inline) JSON and then rendered later. You can use Selenium to save the rendered page then apply your C... | web scraping in r with SelectorGadget | html|r|web-scraping | 1 | 72 | 1 | 72,933,767 | 72,933,767 | 3 | true | 2022-07-11T00:20:26.503Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
web scraping in r with SelectorGadget<p>I was running this simple code below to scrape the employee number from this Fortune 500 page. I used the Chrome's ex... |
72,887,290 | Shopware 6 App - Custom Storefront Controller<p>Is there a way to create a custom controller for the shopware storefront via an app?
If it is not possible to do in the latest shopware 6.4.13 maybe some official can share a roadmap for this.</p> | <p>Yes, it is possible using app scripts <a href="https://developer.shopware.com/docs/guides/plugins/apps/app-scripts/custom-endpoints#storefront-endpoints" rel="nofollow noreferrer">https://developer.shopware.com/docs/guides/plugins/apps/app-scripts/custom-endpoints#storefront-endpoints</a></p> | Shopware 6 App - Custom Storefront Controller | shopware6 | 1 | 72 | 1 | 72,887,728 | 72,887,728 | 4 | true | 2022-07-06T16:54:31.893Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Shopware 6 App - Custom Storefront Controller<p>Is there a way to create a custom controller for the shopware storefront via an app?
If it is not possible to... |
72,836,250 | Cay anyone show me the calculation how utf-8 represents 1112064 characters?<p>I am not understanding how UTF-8 represents 1112064 characters.</p>
<p>My calculation is something like this: 2<sup>7</sup> + 2<sup>11</sup> + 2<sup>16</sup> + 2<sup>21</sup> = 2164864 characters.</p>
<p>To represent any character in UTF-8, f... | <p>1112064 is the number of valid Unicode code points. It consists of 17 regions of 65536 code points, U+NN0000..U+NNFFFF where NN is 0x00 (the BMP, or Basic Multilingual Plane) through 0x10, less the reserved 2048 code points used for surrogates in the UTF-16 encoding, U+D800..U+DFFF.</p>
<p>17 x 65536 - 2048 = 111206... | Cay anyone show me the calculation how utf-8 represents 1112064 characters? | unicode|encoding|utf-8|character-encoding | 1 | 72 | 2 | 72,837,143 | 72,837,143 | 4 | true | 2022-07-02T03:28:50.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cay anyone show me the calculation how utf-8 represents 1112064 characters?<p>I am not understanding how UTF-8 represents 1112064 characters.</p>
<p>My calcu... |
72,961,576 | How can I even up my buttons and add a space between every 5th and 6th button?<p>I have these buttons set up over a frame <a href="https://i.stack.imgur.com/4jBzs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4jBzs.png" alt="here" /></a></p>
<p>I need some space between buttons 1-5 and buttons 6-10... | <p>You just need to insert a margin on every tenth button, starting from a -5 offset.</p>
<pre><code>#main div button:nth-child(10n-5) {
margin-right: 1em;
}
#main div {
white-space: nowrap;
}
</code></pre>
<p>Since each <code>div</code> contains 10 buttons, an alternative to <code>nth-child</code>, is to dire... | How can I even up my buttons and add a space between every 5th and 6th button? | javascript|html|css | 0 | 72 | 1 | 72,961,692 | 72,961,692 | 4 | true | 2022-07-13T06:00:54.607Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I even up my buttons and add a space between every 5th and 6th button?<p>I have these buttons set up over a frame <a href="https://i.stack.imgur.com/... |
72,877,694 | How can I write a function like getc() to read one bit at a time?<p>I have a function that reads each bit in an unsigned long long and stores the value in an array, and now I want to convert this function into one that returns the next bit in the number and leave handling the data to the caller.</p>
<p>Ideally, it woul... | <p>Much like a <code>FILE</code> structure wraps up various state around input, such as buffering, error states <em>etc</em>, you can wrap up the required state for extracting bits with a simple struct:</p>
<pre><code>// Struct used to manage reading bits from a file
struct bitstream
{
FILE *fp;
unsigned char c... | How can I write a function like getc() to read one bit at a time? | c | 2 | 72 | 2 | 72,878,643 | 72,878,643 | 4 | true | 2022-07-06T03:37:53.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I write a function like getc() to read one bit at a time?<p>I have a function that reads each bit in an unsigned long long and stores the value in an... |
72,879,812 | Can I replace a Racket's function with my custom function of the same name? Doable?<p>In the following code I defined my own <code>a-hl</code> with which I mean to replace the direct
call of <code>append</code> in my code. It does not really replace it as it uses append under the hood (see the comment):</p>
<pre><code>... | <p>You can use Racket's <code>require</code>'s <a href="https://docs.racket-lang.org/reference/require.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._only-in%29%29" rel="nofollow noreferrer"><code>only-in</code></a> clause to give your own name to a binding from a module, and use that:</p>
<pre class="lang-l... | Can I replace a Racket's function with my custom function of the same name? Doable? | function|scheme|racket|metaprogramming | 1 | 72 | 2 | 72,881,390 | 72,881,390 | 4 | true | 2022-07-06T07:58:48.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can I replace a Racket's function with my custom function of the same name? Doable?<p>In the following code I defined my own <code>a-hl</code> with which I m... |
72,847,511 | How to reduce lists in a list<p>My gut says that <code>reduce</code> (from functools import reduce) would deliver what I'm looking for, yet I can't wrap my head around using it here.</p>
<pre class="lang-py prettyprint-override"><code>def test_reduce_lists_by_summing_them():
"""
Sum each item fro... | <p>What you're looking for is <a href="https://docs.python.org/3/library/itertools.html#itertools.accumulate" rel="nofollow noreferrer">accumulate</a>:</p>
<pre><code>from itertools import accumulate
# perhaps, convert it to a list explicitly
accumulate(input_, lambda x, y: list(map(sum, zip(x, y))))
# a more explici... | How to reduce lists in a list | python|functools | 2 | 72 | 1 | 72,847,619 | 72,847,619 | 5 | true | 2022-07-03T14:57:45.363Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to reduce lists in a list<p>My gut says that <code>reduce</code> (from functools import reduce) would deliver what I'm looking for, yet I can't wrap my h... |
72,935,819 | When to use reinterpret_cast without disobeying the strict aliasing rule?<p>For a long time I've used <code>reinterpret_cast</code> like this:</p>
<pre class="lang-cpp prettyprint-override"><code>static_assert(sizeof(int) == sizeof(float));
int a = 1;
float b = *reinterpret_cast<float*>(&a); // viewed as floa... | <p>When you use a <code>reinterpret_cast</code> in your code, your are telling the compiler: <em>"I know what I'm doing – just implement the cast and trust me that the result will be OK to use."</em> The compiler will then use the result of that cast as it would any other object of the specified destination t... | When to use reinterpret_cast without disobeying the strict aliasing rule? | c++|casting|reinterpret-cast | 2 | 72 | 2 | 72,935,985 | 72,935,985 | 6 | true | 2022-07-11T08:43:06.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When to use reinterpret_cast without disobeying the strict aliasing rule?<p>For a long time I've used <code>reinterpret_cast</code> like this:</p>
<pre class... |
72,886,912 | Using R to split a string into multiple column instead of a vector in one column<p>I want to split a column in my dataset into multiple columns based on assigned separated sign: "|".</p>
<p>My dataset looks like this:</p>
<pre><code>vname<-c("x1", "x2", "x3","x4")
la... | <p>With the code used, it is returning a <code>list</code> (perhaps we have to make sure that there are zero or more spaces as in the example there was no space), we can <code>unnest_wider</code> to convert to new columns</p>
<pre><code>library(dplyr)
library(stringr)
library(tidyr)
df %>%
select(vname, everything... | Using R to split a string into multiple column instead of a vector in one column | r | 1 | 72 | 2 | 72,886,948 | 72,886,948 | 6 | true | 2022-07-06T16:20:48.560Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using R to split a string into multiple column instead of a vector in one column<p>I want to split a column in my dataset into multiple columns based on assi... |
72,812,497 | Convert Pine-Script version 2.0 to version 5.0<p>i need help to convert this Indicator from V2 to V5. It is very complex for me.</p>
<pre><code>//@version=2
study("Heiken Ashi MTF")
ha_t = heikinashi(tickerid)
res = input('60', title="TM 1")
ha_open = security(ha_t, res, open)
ha_close = security(h... | <pre><code>// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © seriousCockato20483
//@version=5
indicator("Heiken Ashi MTF")
ha_t = ticker.heikinashi(syminfo.tickerid)
res = input('60', title="TM 1")
ha_open = request.security(ha_t, re... | Convert Pine-Script version 2.0 to version 5.0 | version|pine-script|trading | -2 | 72 | 1 | 72,813,209 | 72,813,209 | -2 | true | 2022-06-30T08:21:57.407Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Convert Pine-Script version 2.0 to version 5.0<p>i need help to convert this Indicator from V2 to V5. It is very complex for me.</p>
<pre><code>//@version=2
... |
72,776,870 | Can't Execute a PHP file via HTTP<p>Here is a command I successfully execute in terminal:</p>
<pre><code>PHP process_scan.php
</code></pre>
<p>I want to execute that code every time a user visits a file, which exists in the same directory as the file mentioned in the command.</p>
<p>Here is the code in the file:</p>
<p... | <p>Instead of referencing PHP, I got this to work by executing PHP bin file:</p>
<pre><code>exec('/usr/bin/php process_scan.php 2>&1', $output, $retval);
</code></pre> | Can't Execute a PHP file via HTTP | php | -1 | 73 | 1 | 72,777,407 | 72,777,407 | 0 | true | 2022-06-27T18:34:16.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't Execute a PHP file via HTTP<p>Here is a command I successfully execute in terminal:</p>
<pre><code>PHP process_scan.php
</code></pre>
<p>I want to exec... |
72,774,502 | for loop alternative in scala? (Improve performance)<p>i'm new to scala ,my requirement is delete the particular column records from almost 100 tables,so that i read the data from csv (which is my source) ,selected that particular column and changed into List.</p>
<pre><code>val csvDF = spark.read.format("csv"... | <p>If you're looking to improve your performance, in my opinion, I think you should consider more on optimizing your queries instead! executing a query per row in a table WILL affect your performance, something like</p>
<pre class="lang-scala prettyprint-override"><code>" where corrput_id IN " + bad_records.m... | for loop alternative in scala? (Improve performance) | scala|apache-spark|apache-spark-sql | 0 | 73 | 1 | 72,778,472 | 72,778,472 | 0 | true | 2022-06-27T15:16:43.857Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
for loop alternative in scala? (Improve performance)<p>i'm new to scala ,my requirement is delete the particular column records from almost 100 tables,so tha... |
72,789,362 | How to get thin QR decomposition in Julia?<p>When I perform QR decomposition on a 3x2 matrix <strong>A</strong> in Julia, it gives a <strong>3x3 matrix Q</strong>. Is there any way I can get a "thin" version of this QR, where it returns a Q that is 3x2 (same dimensions as matrix A)? My goal is just to get an ... | <p>This can be achieved with <code>Matrix(qr(A))</code>. <code>qr</code> doesn't return matrices, but rather returns an object that can multiply by other matrices or easily extract the thin or full Q matrix.</p> | How to get thin QR decomposition in Julia? | matrix|julia|linear-algebra|numerical-methods | 1 | 73 | 1 | 72,789,873 | 72,789,873 | 0 | true | 2022-06-28T15:32:58.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get thin QR decomposition in Julia?<p>When I perform QR decomposition on a 3x2 matrix <strong>A</strong> in Julia, it gives a <strong>3x3 matrix Q</st... |
72,784,267 | How to transform all timestamp fields according to avro scheme when using Kafka Connect?<p>In our database we have over 20 fields which we need to transform from long to timestamp. Why there is no generic solution to transfer all this value ?</p>
<p>I know I can define:</p>
<pre><code>"transforms":"tsFor... | <p>You'd need to write your own transform to be able to dynamically iterate of the record schema, check the types, and do the conversion.</p>
<p>Thus why they are called <strong>simple</strong> message transforms.</p>
<p>Alternatively, maybe take a closer look at the Debezium properties to see if there is a missing set... | How to transform all timestamp fields according to avro scheme when using Kafka Connect? | apache-kafka|apache-kafka-connect|debezium | 0 | 73 | 1 | 72,793,144 | 72,793,144 | 0 | true | 2022-06-28T09:49:31.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to transform all timestamp fields according to avro scheme when using Kafka Connect?<p>In our database we have over 20 fields which we need to transform ... |
72,794,017 | Microsoft Graph API Permissions - revoking permissions won't revoke previous connections<p>This question is meant directly for GRAPH, not any particular programming language.</p>
<p>I just made my self a custom connector and I have a Graph call that creates a Microsoft Team.
Now when I make the connection before granti... | <p>Thanks for reaching out to us, this is mostly due to cached token, when you connected without having proper permission , that token has been cached with the previous scopes you have that's why you are getting 403 response. when you create a new connection the new refresh token has been used with newly provided perm... | Microsoft Graph API Permissions - revoking permissions won't revoke previous connections | azure|microsoft-graph-api|powerapps|power-automate | 0 | 73 | 1 | 72,795,928 | 72,795,928 | 0 | true | 2022-06-28T22:57:35.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Microsoft Graph API Permissions - revoking permissions won't revoke previous connections<p>This question is meant directly for GRAPH, not any particular prog... |
72,795,267 | Adding new UUID foreign key into existing table using laravel migration<p>I want to add new column in my <code>users</code> table which is uuid so here is the code</p>
<pre><code>Schema::table('users', function (Blueprint $table) {
$table->uuid('uuid')->nullable()->unique();
});
</code></pre>
<p>and then i... | <p>i think its because the <code>uuid</code> is not a primary key so i decided to use this instead</p>
<pre><code>Schema::table('users', function (Blueprint $table) {
$table->dropPrimary('id');
$table->uuid('uuid')->nullable()->unique();
$table->primary(['id','uuid']);
});
</code></pre>
<p... | Adding new UUID foreign key into existing table using laravel migration | mysql|laravel|migration|uuid | 0 | 73 | 1 | 72,797,219 | 72,797,219 | 0 | true | 2022-06-29T02:53:10.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Adding new UUID foreign key into existing table using laravel migration<p>I want to add new column in my <code>users</code> table which is uuid so here is th... |
72,798,277 | Limit drag to rectangle bounds in SwiftUI<p>I want to be able to drag an arrow shape around on top of an image in swiftUI. I have tried to simplify it and limit it to a rectangle here in the beginning. I have taken some inspiration from this post: <a href="https://stackoverflow.com/questions/59823840/limit-drag-to-circ... | <p>You're almost there. As you're outer shape is a rect, you don't need to calculate complicated distances. It's enough to check whether the position is still in the outer rect, and limit drag to its size values (0...rectSize). If you don't want your selection frame to move over the borders, you have to correct by 1/2 ... | Limit drag to rectangle bounds in SwiftUI | ios|swiftui | 0 | 73 | 1 | 72,805,925 | 72,805,925 | 0 | true | 2022-06-29T08:35:14.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Limit drag to rectangle bounds in SwiftUI<p>I want to be able to drag an arrow shape around on top of an image in swiftUI. I have tried to simplify it and li... |
72,807,984 | Initialize the size of global array<p>I need to put the output of <code>arr</code> in global array because I need to use the array in main function. How can I initialize the array in global and I don't know the size of it ? any idea please?</p>
<pre><code>globarr[]; // how to set the size here?
int *suma(int *output, ... | <p>Use function parameters and return values <strong>not</strong> global variables</p>
<pre><code>long long suma(int **arr, size_t size)
{
long long output = 0;
*arr = malloc(size * sizeof(**arr));
if(*arr)
{
for (size_t i = 0; i < size; i++)
{
... | Initialize the size of global array | c|array-initialization | 0 | 73 | 2 | 72,808,401 | 72,808,401 | 0 | true | 2022-06-29T21:18:55.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Initialize the size of global array<p>I need to put the output of <code>arr</code> in global array because I need to use the array in main function. How can ... |
72,810,736 | Why printing '10'?<p>I wrote a program for char to decimal below, and I don't know why it printing '10' in between.</p>
<pre><code>int variable;
void setup()
{
Serial.begin(9600);
}
void loop()
{
if(Serial.available() > 0)
{
variable = Serial.read();
Serial.println(variable);
}
... | <p><code>10</code> is <code>\n</code> in ASCII which is <code>println</code> very likely appending to the output in each call.</p>
<p>Use <code>Serial.print</code> to only print the number.</p> | Why printing '10'? | c++|arduino | -2 | 73 | 1 | 72,810,751 | 72,810,751 | 0 | true | 2022-06-30T05:35:04.350Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why printing '10'?<p>I wrote a program for char to decimal below, and I don't know why it printing '10' in between.</p>
<pre><code>int variable;
void setup(... |
72,798,769 | (LeetCode question: 139. Word Break) Java Solution Timeout -- Backtracking Solution<p>The link to the question: <a href="https://leetcode.com/problems/word-break/" rel="nofollow noreferrer">139. Word Break</a>
The solution below can not passed all the test cases and lead to timeout. I want to use backtracking to solve ... | <p>Thanks for everyone that reply my question!! I fixed and optimized my solution with memoization. Now, the solution can pass all the test cases on leetcode.</p>
<pre><code>class Solution {
int[] memo;
public boolean wordBreak(String s, List<String> wordDict) {
memo = new int[s.length()];
... | (LeetCode question: 139. Word Break) Java Solution Timeout -- Backtracking Solution | java|algorithm|data-structures | -1 | 73 | 3 | 72,811,039 | 72,811,039 | 0 | true | 2022-06-29T09:11:27.707Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
(LeetCode question: 139. Word Break) Java Solution Timeout -- Backtracking Solution<p>The link to the question: <a href="https://leetcode.com/problems/word-b... |
72,806,209 | Error calculating intersection between Polygon and Multipolygon<p>I am running into an issue calculating the intersection polygon between a Polygon and a Multipolygon as so:</p>
<pre><code>st_intersection(poly1,poly2)
</code></pre>
<p>This command gets the error:</p>
<pre><code>Error in `[[<-.data.frame`(`*tmp*`, at... | <p>I am sorry to not be able to have provided more help in my question, but, having resolved it, I will quickly post my solution in case anyone stumbles upon this in the future. I found <code>st_intersection()</code> worked when I replaced <code>poly1</code>, the Multipolygon, with <code>poly1[[2]]</code>. It returned ... | Error calculating intersection between Polygon and Multipolygon | r|sf | 0 | 73 | 1 | 72,819,615 | 72,819,615 | 0 | true | 2022-06-29T18:26:30.433Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error calculating intersection between Polygon and Multipolygon<p>I am running into an issue calculating the intersection polygon between a Polygon and a Mul... |
72,818,847 | Order by multiple columns with<p>I'm trying to sort a table by multiple columns, but I should shift the most important column.</p>
<p>Given a sample like:</p>
<pre><code>Name Col1 Col2 Col3
Paul 1 2 1
John 1 1 1
Greg NULL 2 1
Jane 2 2 1
</code></pre>
<p>I would like the data t... | <p>Use <code>CASE</code> expressions in the <code>ORDER BY</code> clause to check whether a column is null and needs to be shifted:</p>
<pre><code>SELECT *
FROM tablename
ORDER BY COALESCE(Col1, Col2, Col3),
CASE
WHEN Col1 IS NOT NULL THEN COALESCE(Col2, Col3)
WHEN Col2 IS NOT NULL THEN... | Order by multiple columns with | mysql|sql|case|sql-order-by|coalesce | 1 | 73 | 2 | 72,827,564 | 72,827,564 | 0 | true | 2022-06-30T16:03:08.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Order by multiple columns with<p>I'm trying to sort a table by multiple columns, but I should shift the most important column.</p>
<p>Given a sample like:</p... |
72,828,411 | How to create a schema for an array of structs in Spark?<p>I am trying to create the schema for the following data:</p>
<pre><code>[{"a": "6"},{"b":"7"}]
</code></pre>
<p>My code so far</p>
<pre class="lang-scala prettyprint-override"><code>val data = Seq("""[{&quo... | <p>You get null, because provided schema doesn't fit the data.</p>
<p>For your data you can nicely create a schema of array of maps:</p>
<pre class="lang-scala prettyprint-override"><code>val res = data.withColumn("res", from_json($"value", ArrayType(MapType(StringType,StringType))))
res.show()
// +... | How to create a schema for an array of structs in Spark? | arrays|json|scala|apache-spark|schema | 0 | 73 | 2 | 72,831,443 | 72,831,443 | 0 | true | 2022-07-01T11:14:25.723Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create a schema for an array of structs in Spark?<p>I am trying to create the schema for the following data:</p>
<pre><code>[{"a": "6&q... |
72,830,721 | EuiccManager switchToSubscription<p>I am prototyping an eSIM install/subscription use case by following the following doc: <a href="https://source.android.com/devices/tech/connect/esim-overview" rel="nofollow noreferrer">https://source.android.com/devices/tech/connect/esim-overview</a>:</p>
<p>I have successfully down... | <p>Subscription ID the the ID used by <a href="https://developer.android.com/reference/android/telephony/SubscriptionManager" rel="nofollow noreferrer"><code>SubscriptionManager</code></a>, which you can get from <code>SubscriptionInfo.getSubscriptionId()</code> or the <a href="https://developer.android.com/reference/a... | EuiccManager switchToSubscription | android|euiccmanager | 0 | 73 | 1 | 72,833,411 | 72,833,411 | 0 | true | 2022-07-01T14:23:17.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
EuiccManager switchToSubscription<p>I am prototyping an eSIM install/subscription use case by following the following doc: <a href="https://source.android.c... |
72,825,459 | Using API to create a Google Calendar event and conference accessible without Asking to join<p>I am able to create a google calendar with conference using the following code:</p>
<pre><code>Event event = new Event()
.setSummary(calevent.getTitle())
.setDescription(calevent.getDescription());
ConferenceSolutionKey conf... | <h3>Answer:</h3>
<p>I don't think you can manage these settings via Calendar API. None of its resources include any field related to this.</p>
<h3>Feature request:</h3>
<p>I couldn't find any related feature request in Issue Tracker.</p>
<p>Therefore, if you're interested in this, I'd suggest you to request this featur... | Using API to create a Google Calendar event and conference accessible without Asking to join | google-calendar-api | 1 | 73 | 1 | 72,853,854 | 72,853,854 | 0 | true | 2022-07-01T06:59:59.060Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using API to create a Google Calendar event and conference accessible without Asking to join<p>I am able to create a google calendar with conference using th... |
72,790,607 | cordova-plugin-file not uploading cdvfile:// path to the server<p>It is for sure that <code>cordova-plugin-file-transfer</code> is not required any more for transferring files from a local path to a remote server.</p>
<p>I am able to get the <code>cdvfile://</code> path and even display the same on a DOM but I don't kn... | <p>Alright so I now have the solution. After getting the file path, I am converting the same to base64 and then uploading it to my PHP file on the server to save it as an image, here is the code:</p>
<pre><code> function onPhotoDataSuccess(imageData) {
plugins.crop.promise(imageData).then(functio... | cordova-plugin-file not uploading cdvfile:// path to the server | cordova|cordova-plugins|cordova-plugin-file | -2 | 73 | 1 | 72,855,406 | 72,855,406 | 0 | true | 2022-06-28T17:07:47.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
cordova-plugin-file not uploading cdvfile:// path to the server<p>It is for sure that <code>cordova-plugin-file-transfer</code> is not required any more for ... |
72,856,038 | Firestore backup without paying high prices<p>Import and Export helps make it easier to run backups in Firestore as described <a href="https://firebase.google.com/docs/firestore/manage-data/export-import" rel="nofollow noreferrer">here</a></p>
<p>Backing up a Firestore database means a read for every document. That see... | <p>Creating a backup of your documents requires reading those documents. There is currently no way to create a backup without (charged) reading of each document.</p> | Firestore backup without paying high prices | firebase|google-cloud-firestore | 0 | 73 | 1 | 72,858,170 | 72,858,170 | 0 | true | 2022-07-04T11:33:10.443Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firestore backup without paying high prices<p>Import and Export helps make it easier to run backups in Firestore as described <a href="https://firebase.googl... |
72,852,555 | How to validate properly ffmpeg pts/dts after demuxing/decoding?<p>How should I validate pts/dts after demuxing and then after decoding?</p>
<p>For me it is significant to have valid pts all the time for days and
possibly weeks of continuous streaming.</p>
<p>After demuxing I check:</p>
<ol>
<li>dts <= pts</li>
<li>... | <p>At libav support I was advised to not rely on decoder output. It is more solid to produce pts/dts for encoding/muxing manually and I should search for ffmpeg tools sources to proper implementation. I will search for this approach.</p>
<p>For now I discard AVFrames only with AV_NOPTS_VALUE, and the rest of encoding/m... | How to validate properly ffmpeg pts/dts after demuxing/decoding? | c++|c|ffmpeg|libav | 2 | 73 | 2 | 72,865,359 | 72,865,359 | 0 | true | 2022-07-04T06:30:58.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to validate properly ffmpeg pts/dts after demuxing/decoding?<p>How should I validate pts/dts after demuxing and then after decoding?</p>
<p>For me it is ... |
72,866,056 | Does partitioning improve performance if all partitions are equally used?<p>Consider the following situation:</p>
<ul>
<li>I have a large PostgreSQL table with a primary key of type <code>UUID</code>. The UUIDs are generated randomly and spread uniformly across the UUID space.</li>
<li>I partition the table on this UUI... | <p>Most queries will become slower. For example, if you search by <code>uuid_key</code>, the optimizer has to determine which partition to search, something that grows in expense with the number of partitions. The index scan itself will not be notably faster on a small table than on a big table.</p>
<p>You could benefi... | Does partitioning improve performance if all partitions are equally used? | postgresql|partitioning | 0 | 73 | 2 | 72,866,219 | 72,866,219 | 0 | true | 2022-07-05T08:11:13.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does partitioning improve performance if all partitions are equally used?<p>Consider the following situation:</p>
<ul>
<li>I have a large PostgreSQL table wi... |
72,869,893 | onclick get element from api and with how many row form input field by user<p>Simple this i need to display this api "randomuser.me/api/?results=10" i table this job done, but i need use fill how row you need to display on the table and get the data from api
ex : user put 10 get 10 row and display it on the t... | <p>You can use <code>fetch</code> to get data, and use <code>document.createElement()</code> & <code>append()</code> to create and add rows to the table.</p>
<p>Here's an example:</p>
<blockquote>
<p>explanation provided as comments</p>
</blockquote>
<blockquote>
<p>also You may dismiss the css part, i just added ... | onclick get element from api and with how many row form input field by user | javascript|html|api | 0 | 73 | 4 | 72,871,584 | 72,871,584 | 0 | true | 2022-07-05T13:00:46.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
onclick get element from api and with how many row form input field by user<p>Simple this i need to display this api "randomuser.me/api/?results=10"... |
72,878,739 | Calling c dll method in c#<p>I am getting error as "'Cannot marshal 'parameter #1': Non-blittable generic types cannot be marshaled.'"</p>
<p>in C code I have</p>
<pre class="lang-c prettyprint-override"><code>#include <stdio.h>
#include "pch.h"
typedef void(*RECV_CALLBACK)();
RECV_CALLBACK pf... | <p><code>Action<int></code> is generic, which cannot be marshalled. You need to create a custom delegate. Another problem is that C is expecting a function with the CDecl calling convention, bu the default is StdCall.</p>
<p>You need to use the following types, instead of <code>Action</code> and <code>Action<i... | Calling c dll method in c# | c#|c | 1 | 73 | 1 | 72,880,519 | 72,880,519 | 0 | true | 2022-07-06T06:21:38.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Calling c dll method in c#<p>I am getting error as "'Cannot marshal 'parameter #1': Non-blittable generic types cannot be marshaled.'"</p>
<p>in C ... |
72,879,989 | Unity trigger not triggering<p>I'm having one of the most basic issue but I really can't get it work on my project. I even tried to re-create a blank project and create a similar situation, in this new project, the trigger is working well but not in my old one and I can't figure out why so I'm looking for help here.</p... | <p>Thanks to @Morion, I found what the problem was.</p>
<p>All my GameObject had the "default" layer and the collision matrix wasn't checked for 2 default.</p>
<p>So, I went to Edit > Project Settings > Physics 2D</p>
<p>and check the box where the row and column was default.</p>
<p><a href="https://i.s... | Unity trigger not triggering | unity3d|triggers|collider | 0 | 73 | 1 | 72,880,818 | 72,880,818 | 0 | true | 2022-07-06T08:13:09.577Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unity trigger not triggering<p>I'm having one of the most basic issue but I really can't get it work on my project. I even tried to re-create a blank project... |
72,892,335 | Checking to see if an HTML table row element is empty<p>I am working on developing an html table using JavaScript and I am always creating three rows. However, there is a condition in which it creates two full rows and the last row is an empty row. How can I check to see if the last row is empty before adding it to my ... | <p>Shoutout to @Teemu. He came up with the correct answer. This is what I did for it to work:</p>
<pre><code>if (tble_row3.cells.length) {
element.appendChild(tble_row3);
}
</code></pre>
<p>This correctly displays rows that have content and does <strong>not</strong> display rows that are empty.</p> | Checking to see if an HTML table row element is empty | javascript|html|html-table | 0 | 73 | 1 | 72,892,412 | 72,892,412 | 0 | true | 2022-07-07T04:36:31.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Checking to see if an HTML table row element is empty<p>I am working on developing an html table using JavaScript and I am always creating three rows. Howeve... |
72,887,177 | Android BLE GATT write data is not being received by BLE Peripheral despite GATT_SUCCESS<p>After writing, <code>onCharacteristicWrite()</code> gets called with the status <code>BluetoothGatt.GATT_SUCCESS</code>, but I don't actually see it on my peripheral.</p>
<p>I know the issue isn't on the peripheral because it wor... | <p>Well the success status is only reported after the peripheral has actually sent back a Write Response.</p>
<p>So either you write to the wrong characteristic, the wrong device, or you are not correctly detecting at the peripheral when an incoming write has been received.</p>
<p>One way to debug this is to use the hc... | Android BLE GATT write data is not being received by BLE Peripheral despite GATT_SUCCESS | android|bluetooth-lowenergy|gatt|bluetooth-gatt | 0 | 73 | 1 | 72,894,254 | 72,894,254 | 0 | true | 2022-07-06T16:45:45.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android BLE GATT write data is not being received by BLE Peripheral despite GATT_SUCCESS<p>After writing, <code>onCharacteristicWrite()</code> gets called wi... |
72,889,758 | Move Roblox Group with Script<p>I am trying to clone a group and set its position to a set place. I can only get it to move a specific part in the group with .Position, but I need the whole group to move. Are there any easy ways to do this? I am doing this in a regular script inside ServerScriptStorage which seems to b... | <p>You can use SetPrimaryPartCFrame or PivotTo depending on your preference. I prefer SetPrimaryPartCFrame, so my example will use that. Your model should have a primary part set, with the PrimaryPart property. I'm also assuming that BaseParts is a model, and your code errors when you set the Position property.</p>
<pr... | Move Roblox Group with Script | lua|roblox | 0 | 73 | 1 | 72,895,897 | 72,895,897 | 0 | true | 2022-07-06T20:56:47.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Move Roblox Group with Script<p>I am trying to clone a group and set its position to a set place. I can only get it to move a specific part in the group with... |
72,895,904 | ReactDOM render not working using CDN links<p>Below is my html and index.js code. I can't seem to find the mistake as right now nothing is rendering on my html page.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible&qu... | <p>Change your <code>index.js</code> to this:</p>
<pre class="lang-js prettyprint-override"><code>import { createRoot } from "https://cdn.skypack.dev/react-dom@17.0.1"
createRoot(document.getElementById('root')).render(<h1>Hello</h1>)
</code></pre> | ReactDOM render not working using CDN links | javascript|html|reactjs | 1 | 73 | 2 | 72,896,116 | 72,896,116 | 0 | true | 2022-07-07T10:03:03.290Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ReactDOM render not working using CDN links<p>Below is my html and index.js code. I can't seem to find the mistake as right now nothing is rendering on my ht... |
72,905,331 | When uploading a file in POST, req.body is {} in Node js<h1>React code - FileUploader.js</h1>
<pre><code>// React - FileUplader.js
const handleSubmission = (e) => {
e.preventDefault();
if(isSelected === false){
alert("load the file");
}
else{
con... | <p>Your front end code is correct. You did not set up multer. Multer is actually a middleware, will be listening to <code>multipart/form-data</code>. [check the docs][1]</p>
<blockquote>
<p>Multer is a node.js middleware for handling multipart/form-data, which
is primarily used for uploading files.</p>
<p>Multer adds a... | When uploading a file in POST, req.body is {} in Node js | node.js|reactjs|express|post|axios | 2 | 73 | 1 | 72,905,628 | 72,905,628 | 0 | true | 2022-07-07T23:51:00.893Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When uploading a file in POST, req.body is {} in Node js<h1>React code - FileUploader.js</h1>
<pre><code>// React - FileUplader.js
const handleSubmissio... |
72,788,558 | stargazer Error: $ operator not defined for this S4 class<p>I'm to apply stargazer with "wbm"</p>
<p>this is my model</p>
<pre class="lang-r prettyprint-override"><code>modelMQ <- wbm(Management_Q ~ Emergency | Teaching, data = Pnurses)
</code></pre>
<p>but when I try to use stargazer</p>
<pre><code>starga... | <p>This kind of model does not appear to be supported by <code>stargazer</code>, but it is <a href="https://vincentarelbundock.github.io/modelsummary/" rel="nofollow noreferrer">supported by the <code>modelsummary</code> package.</a> (Disclaimer: I am the author.)</p>
<pre class="lang-r prettyprint-override"><code>libr... | stargazer Error: $ operator not defined for this S4 class | r|panel-data|stargazer | 0 | 73 | 1 | 72,907,153 | 72,907,153 | 0 | true | 2022-06-28T14:43:31.313Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
stargazer Error: $ operator not defined for this S4 class<p>I'm to apply stargazer with "wbm"</p>
<p>this is my model</p>
<pre class="lang-r pretty... |
72,904,602 | Start System.Diagnostics.Process with credential<p>We have script that successfully ran.
It`s execute encoded command and show output.</p>
<pre><code>$EncodedCommand = 'JABFAHIAcgBvAHIALgBjAGwAZQBhAHIAKAApAA0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIABbAHMAdAByAGkAbgBnAF0AIAAkAEUAbgBjAG8AZABlAGQAQQByAGcAdQBtAGUAbgB0AHMAIAA9ACA... | <p>This happend because of strange behavour while proccessing powershell encoded commands.
See my question <a href="https://stackoverflow.com/questions/72910186/system-diagnostics-process-run-powershell-encoded-command-strange-behaviour">System.Diagnostics.Process run Powershell encoded command strange behaviour</a>.</... | Start System.Diagnostics.Process with credential | powershell|system.diagnostics | 1 | 73 | 1 | 72,913,330 | 72,913,330 | 0 | true | 2022-07-07T21:47:53.690Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Start System.Diagnostics.Process with credential<p>We have script that successfully ran.
It`s execute encoded command and show output.</p>
<pre><code>$Encode... |
72,926,169 | How to set sensitivity header in eml file for Outlook?<p>I'm trying to write an email via a dynamically created eml file with JavaScript.</p>
<p>I've modified this code to my needs from another SO answer but I'm not sure why <code>Sensitivity</code> and <code>Priority</code> headers are not working when I open the file... | <p>For <code>PR_IMPORTANCE</code> (possible values are <code>IMPORTANCE_HIGH</code>, <code>IMPORTANCE_NORMAL</code>, <code>IMPORTANCE_LOW</code>), you need <code>X-Priority</code> headers with values of <code>1</code>, <code>2</code>, and <code>3</code> correspondingly. You can also set <code>X-MSMail-Priority</code> h... | How to set sensitivity header in eml file for Outlook? | javascript|outlook|mime-types|eml | 1 | 73 | 1 | 72,930,500 | 72,930,500 | 0 | true | 2022-07-10T04:35:50.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set sensitivity header in eml file for Outlook?<p>I'm trying to write an email via a dynamically created eml file with JavaScript.</p>
<p>I've modifie... |
72,933,351 | Importing fontawesome.js with webpack gives CSP violation<p>I am using fontawesome in in my project and I am trying to add them to the project via webpack.</p>
<p>I have addad <code>import '@fortawesome/fontawesome-free/js/fontawesome.js'</code> into my app.js and have added <code>@import '@fortawesome/fontawesome-free... | <p>This issue was solved by removing the fontawesome js imports from the app.js. Apparently, only css files need to be imported and js files (i.e. fontawesome.js, regular.js and solid.js) are not required for the fonts to work.</p>
<p>By removing the js files, neither unsafe-inline, sha-XXX or nonce- is needed in the C... | Importing fontawesome.js with webpack gives CSP violation | javascript|css|webpack|inline|content-security-policy | 0 | 73 | 2 | 72,946,824 | 72,946,824 | 0 | true | 2022-07-11T03:16:37.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Importing fontawesome.js with webpack gives CSP violation<p>I am using fontawesome in in my project and I am trying to add them to the project via webpack.</... |
72,923,093 | I can't see documents that I added in Sanity on the website and got the CORS error<p>I am developing a website using Sanity and React. I connected the Sanity to my project, added sanity id, token, etc. Also, I added schemas and can see these on the sanity desk. But when I add a new document and publish it on Sanity, I ... | <p>Did you add your app's origin (be it localhost or production) to the CORS section of the Sanity project as described here <a href="https://www.sanity.io/docs/cors" rel="nofollow noreferrer">https://www.sanity.io/docs/cors</a>?</p>
<p>That's usually why people get these errors.</p> | I can't see documents that I added in Sanity on the website and got the CORS error | reactjs|api|cors|frontend|sanity | 0 | 73 | 1 | 72,954,301 | 72,954,301 | 0 | true | 2022-07-09T16:37:48.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I can't see documents that I added in Sanity on the website and got the CORS error<p>I am developing a website using Sanity and React. I connected the Sanity... |
72,977,726 | Why is v-for can't show the value with computed<p>This is for select a <code>city</code> and <code>area</code>, It will filter the same data to show it. But I meet with a problem is that when I selected, the value doesn't appear.</p>
<p>I have been try and searched similar code but still doesn't find the solution.</p>
... | <p>As you are filtering out the <code>livedata</code> based on <code>Region</code> and <code>Town</code>. You can simply use the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter" rel="nofollow noreferrer"><code>Array.filter()</code></a> method and this will resolve ... | Why is v-for can't show the value with computed | vue.js|vuejs3|vue-cli | 0 | 73 | 1 | 72,982,816 | 72,982,816 | 0 | true | 2022-07-14T08:45:26.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is v-for can't show the value with computed<p>This is for select a <code>city</code> and <code>area</code>, It will filter the same data to show it. But ... |
72,964,547 | add intermediate step in mui stepper and overriding style<p>I would like to change the following code to meet my needs</p>
<ol>
<li>I need to change the design from this :</li>
</ol>
<p><a href="https://i.stack.imgur.com/3RhsH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3RhsH.png" alt="enter imag... | <p>To make the stepper icons closer to each other simply change the <code>width</code> of your <code><Stepper /></code> component. I chose <code>400px</code>, change this value to fit your needs.</p>
<pre><code>sx={{
width: "400px",
...
}}
</code></pre>
<p>I replaced the content <code>></code> wi... | add intermediate step in mui stepper and overriding style | css|reactjs|material-ui|stepper | 0 | 73 | 1 | 72,986,723 | 72,986,723 | 0 | true | 2022-07-13T10:12:09.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
add intermediate step in mui stepper and overriding style<p>I would like to change the following code to meet my needs</p>
<ol>
<li>I need to change the desi... |
72,973,700 | How to open Google translator on a separate tab/window on first run, yet on same separate tab/window on succeeding runs<p>DeepL (and many other websites) can be opened on a separate tab/window on first run, yet on same separate tab/window on succeeding runs. That is the objective</p>
<pre><code>window.open("https:... | <p>Not a solution but an explanation for what you are experiencing:</p>
<p>As you already know</p>
<pre><code>window.open("https://translate.google.com", 'sameG');
</code></pre>
<p>will open a new window/tab with the name <code>sameG</code>. The call will also <a href="https://developer.mozilla.org/en-US/docs... | How to open Google translator on a separate tab/window on first run, yet on same separate tab/window on succeeding runs | javascript | 2 | 73 | 2 | 72,993,615 | 72,993,615 | 0 | true | 2022-07-13T23:33:28.433Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to open Google translator on a separate tab/window on first run, yet on same separate tab/window on succeeding runs<p>DeepL (and many other websites) can... |
72,993,794 | how to show error when wrong password is given NodeJS crypto - createDecipheriv and pbkdf2<p>Created a simple app that encrypts text, but how do i show error when wrong password or salt is given. Hosted it on <a href="https://replit.com/@sampaul8520/encrypt-decrypt?v=1" rel="nofollow noreferrer">replit</a>.
But when i ... | <p>GCM generates an authentication tag (16 bytes by default) during encryption, which is used for authentication during decryption.<br>
Some libraries (e.g. Java) implicitly concatenate ciphertext and tag (ciphertext|tag) during encryption and implicitly separate both during decryption (this is not critical since the t... | how to show error when wrong password is given NodeJS crypto - createDecipheriv and pbkdf2 | javascript|encryption|error-handling|pbkdf2 | 1 | 73 | 1 | 72,997,493 | 72,997,493 | 0 | true | 2022-07-15T12:10:23Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to show error when wrong password is given NodeJS crypto - createDecipheriv and pbkdf2<p>Created a simple app that encrypts text, but how do i show error... |
73,002,872 | R notation for declaring vectors - Axioms of Probability<p>We have this homework assignment.</p>
<p>Problem 1: Suppose we are interested in the buying habits of shoppers at a particular grocery store with regards to whether they purchase apples, milk, and/or bread. Now suppose 30% of all shoppers at this particular gro... | <p>Admittedly the question and instructions are incredibly unclear, but here's a shot:</p>
<p>There are 3 possible events. However, multiple events can happen simultaneously. The sample space is the set of all possible combinations of events that (do not) happen. Each element of the sample space is a 3-digit scalar (i.... | R notation for declaring vectors - Axioms of Probability | r|statistics|data-science|probability | 0 | 73 | 1 | 73,003,284 | 73,003,284 | 0 | true | 2022-07-16T09:01:03.167Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R notation for declaring vectors - Axioms of Probability<p>We have this homework assignment.</p>
<p>Problem 1: Suppose we are interested in the buying habits... |
73,003,903 | Run 2 Script at same time on Docker<p>I have a project and ı need to run 2 script when ı run mu Docker Image.
Two of them this script has infinite loop. So none of them will stop.</p>
<p>I tried the use:</p>
<pre><code>CMD ["python3", "main.py", "btcusdt"]
CMD ["python3", "... | <p>There can be only one <code>CMD</code> instruction in the dockerfile if there is more than one, the last one will override the previous <code>CMD</code> instructions.</p>
<p>The better way I think is to create separate docker containers and talk to each other. here is a tutorial to do that : <a href="https://www.tut... | Run 2 Script at same time on Docker | python|docker | 0 | 73 | 1 | 73,006,319 | 73,006,319 | 0 | true | 2022-07-16T11:43:42.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Run 2 Script at same time on Docker<p>I have a project and ı need to run 2 script when ı run mu Docker Image.
Two of them this script has infinite loop. So n... |
72,933,114 | AWS CDK2 Synth Cannot Find Module - NPM Linked Peer Dependency<p>I have an AWS CDK v2 project and can successfully synth when I import a <strong>local</strong> npm package by adding the following to package.json:</p>
<pre><code>"@my/constructs": "file:../my/dist/packages/constructs"
</code></pre>
<p... | <p>The core problem was difficult to determine due to the complexity of both the CDK and Nx frameworks but I think it is simply a known NPM bug as described here:</p>
<p><a href="https://www.chevtek.io/you-can-finally-npm-link-packages-that-contain-peer-dependencies/" rel="nofollow noreferrer">https://www.chevtek.io/yo... | AWS CDK2 Synth Cannot Find Module - NPM Linked Peer Dependency | aws-cdk | 1 | 73 | 1 | 73,006,810 | 73,006,810 | 0 | true | 2022-07-11T02:11:50.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AWS CDK2 Synth Cannot Find Module - NPM Linked Peer Dependency<p>I have an AWS CDK v2 project and can successfully synth when I import a <strong>local</stron... |
72,952,908 | How selenium access capybara server on Github Actions?<p>I'm creating a personal project with Ruby on Rails.</p>
<p>I'm trying to create a CI with Github Actions + Capybara + Selenium Service. Why selenium service? To make it closer to the project's docker-compose.</p>
<p>First, this is my workflow file:</p>
<pre><code... | <p>Instead of using the services + docker, I decided to use docker-compose. The file that did the trick:</p>
<pre><code>version: "3.7"
services:
db:
image: postgres:14.4
ports:
- 5432:5432
env_file:
- ./.docker/env_files/.env
healthcheck:
test: ["CMD-SHELL", &quo... | How selenium access capybara server on Github Actions? | ruby-on-rails|ruby|docker|selenium|github-actions | 0 | 73 | 1 | 73,009,028 | 73,009,028 | 0 | true | 2022-07-12T13:12:47.160Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How selenium access capybara server on Github Actions?<p>I'm creating a personal project with Ruby on Rails.</p>
<p>I'm trying to create a CI with Github Act... |
73,013,796 | In PyQt5's QListWidget, how can I only show the tooltip for an item when the user chooses it?<p>I was inspired by this <a href="https://github.com/yjg30737/pyqt-tooltip-list-widget/blob/main/pyqt_tooltip_list_widget/toolTipListWidget.py" rel="nofollow noreferrer">repo</a> to add custom tooltip text to items when they a... | <p>Expanding on the suggestion from <a href="https://stackoverflow.com/users/2001654/musicamante">musicamante</a> in the comments, I was able to get tooltip to display only for the selected item by overriding the event method and watch for a tooltip event (inspired from this SO <a href="https://stackoverflow.com/a/6305... | In PyQt5's QListWidget, how can I only show the tooltip for an item when the user chooses it? | python|python-3.x|pyqt5 | 1 | 73 | 1 | 73,017,086 | 73,017,086 | 0 | true | 2022-07-17T17:08:35.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
In PyQt5's QListWidget, how can I only show the tooltip for an item when the user chooses it?<p>I was inspired by this <a href="https://github.com/yjg30737/p... |
73,029,483 | Deploying trufflesuite/ganache-cli docker image to Azure Container Instances with additional parameters<p>I want to deploy <code>trufflesuite/ganache-cli</code> docker image to Azure Container Instances and be able to pass parameters to ganache-cli, like <code>--accounts</code> or <code>--fork</code>.</p>
<p>When I try... | <p>You're passing a ganache-cli parameter as one for the az container create command. Try using the <strong>--command-line</strong> parameter like this:</p>
<pre><code>--command-line "ganache-cli -a 10"
</code></pre> | Deploying trufflesuite/ganache-cli docker image to Azure Container Instances with additional parameters | azure|docker|ganache | 0 | 73 | 1 | 73,030,118 | 73,030,118 | 0 | true | 2022-07-18T23:03:57.233Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Deploying trufflesuite/ganache-cli docker image to Azure Container Instances with additional parameters<p>I want to deploy <code>trufflesuite/ganache-cli</co... |
72,897,388 | How to handle a windows prompt in a test automation using Cypress?<p>I am new to using Cypress for web automation. I am still scouring through the internet looking for answers to this but I cannot find a solution that works for me.<br><br>
This is what I'm trying to do in my test:</p>
<ul>
<li>User clicks a link. <br><... | <p>This works for me:</p>
<pre><code>cy.visit('https://mytestingwebsite.com', {
auth: {
username: 'username',
password: 'password'
}
})
</code></pre>
<p>This didn't work for me the first time I tried it because I still passed the credentials in the url.</p> | How to handle a windows prompt in a test automation using Cypress? | javascript|automated-tests|cypress|prompt | 1 | 73 | 1 | 73,034,068 | 73,034,068 | 0 | true | 2022-07-07T11:55:00.443Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to handle a windows prompt in a test automation using Cypress?<p>I am new to using Cypress for web automation. I am still scouring through the internet l... |
73,028,406 | Can Atlassian Bamboo parse multiple test result xmls and present them in the same dashboard<p>Pytest results are written out as an xml test report - the job generates 2 xml reports. I have configured an Atlassian bamboo job to parse the report using JUnit parser (available in bamboo). It however only parses the first x... | <p>Although adding separate JUnit parser tasks, one for each xml artifact, a comma separated list of artifacts works as well (answer given by @Alex)</p> | Can Atlassian Bamboo parse multiple test result xmls and present them in the same dashboard | xml-parsing|automated-tests|bamboo|bamboo-artifacts | 0 | 73 | 2 | 73,055,718 | 73,055,718 | 0 | true | 2022-07-18T20:43:00.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can Atlassian Bamboo parse multiple test result xmls and present them in the same dashboard<p>Pytest results are written out as an xml test report - the job ... |
72,978,204 | Launch ZAP using a script if not already running<p>I launch ZAP with a python script using subprocess:</p>
<pre><code>filePath=r"C:\\Program Files\\OWASP\\Zed Attack Proxy\\zap-2.11.1.jar"
subprocess.Popen(filePath, shell=True, stdout=subprocess.PIPE)
</code></pre>
<p>This script works fine and launches ZAP. ... | <p>A simple workaround would be to simply grab all titles of current processes and if it happens to find zap amongst them then break</p>
<p>or just have a flag set if it finds it as follows:</p>
<pre><code>import subprocess
import pyautogui
global marker
marker = False
for window in pyautogui.getAllWindows():
if... | Launch ZAP using a script if not already running | python|powershell|script|owasp|zap | 0 | 73 | 1 | 72,978,570 | 72,978,570 | 0 | true | 2022-07-14T09:24:26.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Launch ZAP using a script if not already running<p>I launch ZAP with a python script using subprocess:</p>
<pre><code>filePath=r"C:\\Program Files\\OWAS... |
72,947,016 | What is the Run Condition for Octopus Deploy to skip Deploy Amazon ECS Service step?<p>So i have two steps in Octopus Deploy. first step will deploy the cluster and task definition and the other will update the task definition and deploys a new task. The First step is only needed for the first time.. how do i skip the ... | <p>turns out i can update the existing service using <strong>Deploy AWS ECS Service</strong> steps itself.Just takes a really long time to deploy.
cheers....!</p> | What is the Run Condition for Octopus Deploy to skip Deploy Amazon ECS Service step? | amazon-web-services|amazon-ecs|cicd|octopus-deploy | 0 | 73 | 2 | 72,991,375 | 72,991,375 | 0 | true | 2022-07-12T04:22:14.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the Run Condition for Octopus Deploy to skip Deploy Amazon ECS Service step?<p>So i have two steps in Octopus Deploy. first step will deploy the clus... |
72,917,501 | How to show a combobox popover from @reach/combobox inside a MUI dialog component?<p>I'm trying to put a map from google maps API and a combobox popover from <code>@reach/combobox</code> inside a MUI dialog component. But I have found a problem, the combobox popover is not being shown. I realized that it is shown if it... | <p>Give <code>zIndex</code> style to <code><Combobox/></code> component. Like:</p>
<pre><code><Combobox style={{zIndex: 9999999999}}>
...
</Combobox>
</code></pre> | How to show a combobox popover from @reach/combobox inside a MUI dialog component? | javascript|reactjs|material-ui|combobox|modal-dialog | 0 | 73 | 1 | 72,949,144 | 72,949,144 | 0 | true | 2022-07-08T22:13:38.307Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to show a combobox popover from @reach/combobox inside a MUI dialog component?<p>I'm trying to put a map from google maps API and a combobox popover from... |
72,907,610 | How to run tests from Docker in PhpStorm?<p>I configured PhpStorm for running tests from docker container in the IDE by clicking the Run button, but I got the following error when I run them:</p>
<blockquote>
<p>Doctrine\DBAL\Exception\ConnectionException : An exception occurred in driver: SQLSTATE[HY000] [2002] php_ne... | <p>To solve this problem i set this in .env</p>
<pre><code>host: "172.19.0.1" // docker network bridge gateway
port: "3308" // my db port from docker-compose
</code></pre>
<p><a href="https://docs.docker.com/network/network-tutorial-standalone/" rel="nofollow noreferrer">https://docs.docker.co... | How to run tests from Docker in PhpStorm? | docker|docker-compose|phpunit|phpstorm | 0 | 73 | 1 | 72,923,858 | 72,923,858 | 0 | true | 2022-07-08T06:43:59.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to run tests from Docker in PhpStorm?<p>I configured PhpStorm for running tests from docker container in the IDE by clicking the Run button, but I got th... |
72,384,226 | How do I add external files to a Gradle distribution in a location other than root?<p>I have an application built in Gradle, and it has a number of parameters defined in a configuration file (config.yaml) in the base project directory. When I distribute the application, unzip it, and run the batch file from the <em>bin... | <p>Moving the contents out into separate statements for each file using <code>applicationDistribution.from()</code> was what eventually worked.</p>
<pre><code>applicationDistribution.from("config.yaml") {
into "bin"
}
</code></pre>
<p>I think this is related to the life cycle, and the "into... | How do I add external files to a Gradle distribution in a location other than root? | gradle | 1 | 73 | 1 | 72,960,749 | 72,960,749 | 0 | true | 2022-05-25T21:10:39.550Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I add external files to a Gradle distribution in a location other than root?<p>I have an application built in Gradle, and it has a number of parameter... |
72,977,156 | Azure IoT Central device template issue<p>I`m trying to get data from meters through "TheThingsNetwork". To analyse my data, i would like to see them in MS Azure IoT Central. The meters are sending their payload to my ToT Central application.
When i try to build an automatic device template, the whole payload... | <p>You should use the mapping telemetry data on ingress, see more details <a href="https://docs.microsoft.com/en-us/azure/iot-central/core/howto-map-data" rel="nofollow noreferrer">here</a>.</p>
<p>Based on your payload and the device model, the raw data will be the following:</p>
<p>Mapping:
<a href="https://i.stack.i... | Azure IoT Central device template issue | templates|telemetry|azure-iot-central|azure-digital-twins|ttn | 0 | 73 | 1 | 72,979,378 | 72,979,378 | 0 | true | 2022-07-14T08:02:08.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure IoT Central device template issue<p>I`m trying to get data from meters through "TheThingsNetwork". To analyse my data, i would like to see th... |
72,869,479 | Nginx lua scripting with nginx code excecution<p>hi is it possible to include files with lua to nginx.</p>
<p>for example lua connects to database if the value for brotli is on then it enables brotli and imports its config file.</p>
<pre><code>if (brotli = true) {
brotli on;
include /etc/djsfh/ll.conf
}
</code></pr... | <p>No. Nginx config isn't an executable script but a declarative configuration file (well, maybe except the rewrite <a href="http://nginx.org/en/docs/dev/development_guide.html#http_phases" rel="nofollow noreferrer">request processing phases</a> <code>NGX_HTTP_SERVER_REWRITE</code>/<code>NGX_HTTP_REWRITE</code> and <a ... | Nginx lua scripting with nginx code excecution | nginx|lua|openresty | 0 | 73 | 1 | 72,870,481 | 72,870,481 | 0 | true | 2022-07-05T12:30:58.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Nginx lua scripting with nginx code excecution<p>hi is it possible to include files with lua to nginx.</p>
<p>for example lua connects to database if the val... |
72,952,481 | Selenium: Unable to locate element by class and id<p>Trying to scrape a website, I created a loop and was able to locate all the elements. My problem is, that the <em>next button</em> id changes on every page. So I can not use the <code>id</code> as a <code>locator</code>.</p>
<p>This is the <em>next button</em> on pag... | <p>There are two issues in my opinion:</p>
<ul>
<li><p>Depending from where you try to access the site there is a cookie banner that will get the click, so you may have to accept it first:</p>
<pre><code>browser.find_element_by_class_name('cb-enable').click()
</code></pre>
</li>
<li><p>To locate a single element, one o... | Selenium: Unable to locate element by class and id | python|css|selenium|web-scraping | 0 | 73 | 3 | 72,952,863 | 72,952,863 | 0 | true | 2022-07-12T12:39:20.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Selenium: Unable to locate element by class and id<p>Trying to scrape a website, I created a loop and was able to locate all the elements. My problem is, tha... |
72,863,867 | Redirected Custom 404 Page is Loading Infinite Times in Netlify Hosting<p>My website (based on React.js) <a href="https://aritraroy.live" rel="nofollow noreferrer">aritraroy.live</a> is hosted on <strong>Netlify</strong>. Now, I was trying to <strong>add a custom 404 page for my website</strong>, as the default 404 pag... | <p>I resolved the issue with the help of this article - <a href="https://kittygiraudel.com/2017/05/13/using-create-react-app-on-netlify/" rel="nofollow noreferrer">https://kittygiraudel.com/2017/05/13/using-create-react-app-on-netlify/</a></p>
<p><em><strong>Main Problem:</strong></em><br>
When building a client-side R... | Redirected Custom 404 Page is Loading Infinite Times in Netlify Hosting | javascript|reactjs|redirect|http-status-code-404|netlify | 0 | 73 | 2 | 72,865,489 | 72,865,489 | 0 | true | 2022-07-05T04:01:45.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Redirected Custom 404 Page is Loading Infinite Times in Netlify Hosting<p>My website (based on React.js) <a href="https://aritraroy.live" rel="nofollow noref... |
72,935,914 | How to run the selection in VSCode in the active (IPython) terminal instead of creating a new terminal every time?<p>I would like to execute the selection in VSCode (Shift + Enter) in my current (ipython) terminal. Instead the shortcut creates a new terminal every time and don't run the selection in the active (ipython... | <p>I have solved it myself: Adding this</p>
<p><code>"python.terminal.launchArgs": ["m","IPython","--no-autoindent"]</code></p>
<p>to the JSON-file will do the job as mentioned in the question from the second comment. I had a JSON-file error which hasn't been marked. That way the... | How to run the selection in VSCode in the active (IPython) terminal instead of creating a new terminal every time? | python|visual-studio-code|terminal | 0 | 73 | 1 | 73,166,215 | 73,166,215 | 0 | true | 2022-07-11T08:52:21.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to run the selection in VSCode in the active (IPython) terminal instead of creating a new terminal every time?<p>I would like to execute the selection in... |
72,874,160 | object import from a different package in Scala in Maven project<p>I need to import an object named JavaCCParser into another object which is in a different package named frontend. But it can not find. I think I write the correct path.</p>
<p><a href="https://i.stack.imgur.com/KXiCC.jpg" rel="nofollow noreferrer">objec... | <p>Those don't look like they are in the same <code>module</code> (folder with a blue box, contains its own <code>src</code> root).</p>
<p>To use <code>packages</code> from another <code>module</code> would require you to import the <code>module</code> as a dependency in the other <code>module</code> in the <code>build... | object import from a different package in Scala in Maven project | scala|import|package | 0 | 73 | 1 | 72,876,677 | 72,876,677 | 0 | true | 2022-07-05T18:42:38.440Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
object import from a different package in Scala in Maven project<p>I need to import an object named JavaCCParser into another object which is in a different ... |
73,016,521 | Compute (and print) the following sums using vector arithmetic and sum function<p>I'm trying to write 1/2−2/3+3/4−4/5+ ⋯ +999/1000 with R.
I find out that the seq is the top of first fractions is from 1,to=? by 2,
and the bottom is from 2 to ? by 2
the questions is to what value ?</p>
<pre class="lang-r prettyprint-ove... | <p>For an alternating series like this, it's probably easier to have a separate term to give the <code>sign</code> of each term. For example, you are adding <code>1/2</code>, then subtracting <code>2/3</code>, then adding <code>3/4</code> then subtracting <code>4/5</code> etc. One way to think of this is a series of <c... | Compute (and print) the following sums using vector arithmetic and sum function | r | 0 | 73 | 1 | 73,016,650 | 73,016,650 | 0 | true | 2022-07-18T01:31:27.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Compute (and print) the following sums using vector arithmetic and sum function<p>I'm trying to write 1/2−2/3+3/4−4/5+ ⋯ +999/1000 with R.
I find out that th... |
72,821,499 | Why isn't Sentry registering my ASP .NET Core API calls as Transactions?<p>I have an ASP .NET Core project integrated with <code>Sentry</code>:</p>
<pre class="lang-cs prettyprint-override"><code>public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebH... | <p>Sentry's performance monitoring features are opt-in and need to be enabled separately. In addition to calling <code>UseSentry</code> as you showed, you should also do the following to capture transactions:</p>
<ul>
<li><p><a href="https://docs.sentry.io/platforms/dotnet/guides/aspnetcore/performance/" rel="nofollow... | Why isn't Sentry registering my ASP .NET Core API calls as Transactions? | asp.net-core|sentry | 1 | 73 | 1 | 72,900,779 | 72,900,779 | 0 | true | 2022-06-30T20:11:49.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why isn't Sentry registering my ASP .NET Core API calls as Transactions?<p>I have an ASP .NET Core project integrated with <code>Sentry</code>:</p>
<pre clas... |
72,991,225 | How can I print the training and validation graphs, and training and validation loss graphs?<p>I need to plot the training and validation graphs, and trarining and validation loss for my model.</p>
<pre><code>model.compile(loss=tf.keras.losses.binary_crossentropy,
optimizer=tf.keras.optimizers.Adam(learni... | <p><code>history</code> object contains both accuracy and loss for both the training as well as the validation set. We can use matplotlib to plot from that.</p>
<p>In these plots x-axis is no_of_epochs and the y-axis is accuracy and loss value. Below is one basic implementation to achieve that, it can easily be customi... | How can I print the training and validation graphs, and training and validation loss graphs? | python|tensorflow|machine-learning|deep-learning|conv-neural-network | -2 | 73 | 1 | 72,991,330 | 72,991,330 | 0 | true | 2022-07-15T08:32:33.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I print the training and validation graphs, and training and validation loss graphs?<p>I need to plot the training and validation graphs, and trarini... |
72,795,372 | Add additional functionality to end method on Node/Express Response object?<p>My team and I are trying to mutate the <code>response.end</code> method in our Express middleware in order to have extra functionality be called just before the server responds back to the client.</p>
<p>Here is our attempt:</p>
<pre><code>re... | <p>If you don't have to execute your code BEFORE the response has been sent, but can instead do it right afterwards, then you can use the <code>finish</code> event on the <code>res</code> stream.</p>
<pre><code>app.use((req, res, next) => {
res.on('finish', () => {
console.log(`got finish event for ${... | Add additional functionality to end method on Node/Express Response object? | node.js|typescript|express|typeerror|httpresponse | 0 | 73 | 1 | 72,795,834 | 72,795,834 | 0 | true | 2022-06-29T03:11:22.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Add additional functionality to end method on Node/Express Response object?<p>My team and I are trying to mutate the <code>response.end</code> method in our ... |
72,771,007 | Add a leading character to certain rows of dataset (Linux/bash)<p>I have to add a 0 to the beginning of each row that has a number less than 10 in column 3. I am not sure how to specify that only these rows need to have a zero as</p>
<pre><code> sed 's/^/0/'
</code></pre>
<p>will add a zero to all rows. Below is befor... | <p>Using <code>awk</code>:</p>
<pre class="lang-bash prettyprint-override"><code>$ awk '$3 < 10 { $1 = "0" $1 } 1' input_file
</code></pre> | Add a leading character to certain rows of dataset (Linux/bash) | linux|bash|sed | 0 | 73 | 2 | 72,771,376 | 72,771,376 | 1 | true | 2022-06-27T11:00:42.407Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Add a leading character to certain rows of dataset (Linux/bash)<p>I have to add a 0 to the beginning of each row that has a number less than 10 in column 3. ... |
72,771,044 | Weird space between td and its border element : CSS tables<p>I am trying to create a CSS table with border all over using the standard method of applying top and left borders to all <code>td</code> elements (apart from those in first column and first row). And then there is a border on the <code><table></code>. T... | <p>on a personal level, having had a thousand problems with borders in HTML tables,
I ended up opting for a radical solution: no border at all!<br />
I use <code>border-collapse: separate;</code> and I play on <code>border-spacing</code><br />
<em>in addition it lightens the css to write</em></p>
<p>I recommend it</p>
... | Weird space between td and its border element : CSS tables | html|css|html-table|css-tables | 1 | 73 | 1 | 72,772,138 | 72,772,138 | 1 | true | 2022-06-27T11:03:32.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Weird space between td and its border element : CSS tables<p>I am trying to create a CSS table with border all over using the standard method of applying top... |
72,772,932 | Side Bar - Position logout in menu<p>I need move the Logout "button" for bottom in SideBar menu.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>body{
backgroun... | <p>Add</p>
<pre class="lang-css prettyprint-override"><code>#a_logout{
width: 100%;
position: absolute;
bottom: 0;
}
</code></pre> | Side Bar - Position logout in menu | javascript|html|css | 0 | 73 | 2 | 72,773,214 | 72,773,214 | 1 | true | 2022-06-27T13:28:34.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Side Bar - Position logout in menu<p>I need move the Logout "button" for bottom in SideBar menu.</p>
<p><div class="snippet" data-lang="js" data-hi... |
72,770,097 | Container on same network not communicating with each other<p>I have a mongodb container which i name e-learning
and i have a docker image which should connect to the mongodb container to update my database but it's not working i get this error:<br />
Unknown, Last error: connection() error occurred during connection ... | <p>I added extra hosts and changed my mongo uri to <code>host.docker.internal</code>
and it solved my problems</p>
<pre><code>version: "3.9"
services:
worker:
image: worker
environment:
- MONGO_URI="mongodb://host.docker.internal:27017/"
- MONGO_DATABASE=e-learning
- RABBI... | Container on same network not communicating with each other | mongodb|docker|go | 0 | 73 | 2 | 72,775,700 | 72,775,700 | 1 | true | 2022-06-27T09:51:51.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Container on same network not communicating with each other<p>I have a mongodb container which i name e-learning
and i have a docker image which should conne... |
72,776,661 | Why can't I check the checkbox?<p>I'm trying to implement a functionality that allows me to check a checkbox through the id. But when I try to check my checkbox, it doesn't show up as checked. I can't make an event, even using event.target. How can I resolve this?</p>
<pre><code>import { useUsers } from '../../services... | <p>Is user.id a number / string of a number eg "1"? because if not, parseInt will return NaN</p>
<p>Even if they are you probably dont need to use parseInt anyway</p>
<pre><code>const selectedId = e.target.value;
</code></pre> | Why can't I check the checkbox? | javascript|reactjs|typescript|chakra-ui | 0 | 73 | 1 | 72,777,447 | 72,777,447 | 1 | true | 2022-06-27T18:12:52.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why can't I check the checkbox?<p>I'm trying to implement a functionality that allows me to check a checkbox through the id. But when I try to check my check... |
72,913,500 | Slate Functions Editor - 1 Table with 2 columns - Sort ASC<p>I has a table with 2 columns: id_pk and str_name_last_first
How can I sort this table by name? if i use lower one.. the id-pk does not fit anymore to name.</p>
<pre><code>var data = {{q_data}}
// data.str_name_last_first.sort();
return data
</code></pre>
<p>... | <p>easy if you have the result :-)</p>
<pre><code>var data = {{f_data}}
var data_rows = transformColumnSchemaToRowSchema(data);
data_rows.sort((a, b) => {
return a.str_team_name - b.str_team_name;
});
data_rows.sort((a, b) => {
let fa = a.str_name.toLowerCase(),
fb = b.str_name.toLowerCase();
... | Slate Functions Editor - 1 Table with 2 columns - Sort ASC | palantir-foundry|foundry-slate | 1 | 73 | 3 | 73,659,520 | 73,659,520 | 0 | true | 2022-07-08T15:13:12.597Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Slate Functions Editor - 1 Table with 2 columns - Sort ASC<p>I has a table with 2 columns: id_pk and str_name_last_first
How can I sort this table by name? i... |
72,868,175 | The provided image file is invalid. Please check your image path again. Facebook Graph Api error<p>I am trying to upload image to Facebook graph api with Http Client of Laravel. But I am getting the error mentioned before.</p>
<pre><code> $ad_account_id = env("AD_ACCOUNT_ID");
$access_token = env("... | <p>Solved my problem by using <code>attach</code> method of HTTP client:</p>
<pre><code>$ad_account_id = env("AD_ACCOUNT_ID");
$access_token = env("ACCESS_TOKEN");
$image = $request->file('image');
$response = Http::attach('filename', file_get_contents($image), 'image.jpg')
->post('https:... | The provided image file is invalid. Please check your image path again. Facebook Graph Api error | php|laravel|facebook|facebook-graph-api|facebook-php-sdk | 0 | 73 | 2 | 73,797,008 | 73,797,008 | 0 | true | 2022-07-05T10:50:47.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
The provided image file is invalid. Please check your image path again. Facebook Graph Api error<p>I am trying to upload image to Facebook graph api with Htt... |
72,939,228 | How to choose between Google Noto emoji black and white, versus color, icon?<p>Why is the emoji in the code below sometimes shown as colored and sometimes as black and white please? And how do I make it consistent - so I can choose between whichever I want?</p>
<p><div class="snippet" data-lang="js" data-hide="false" d... | <p>You can use <a href="https://en.wikipedia.org/wiki/Variation_Selectors_(Unicode_block)" rel="nofollow noreferrer">variation selectors</a> after a codepoint to control if an glyph should display emoji-style (like ️) or monochrome style (︎). How glyphs are rendered if no variant selection is specified varies among tex... | How to choose between Google Noto emoji black and white, versus color, icon? | javascript|html|unicode|emoji|google-fonts | 0 | 73 | 1 | 73,263,832 | 73,263,832 | 1 | true | 2022-07-11T13:18:42.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to choose between Google Noto emoji black and white, versus color, icon?<p>Why is the emoji in the code below sometimes shown as colored and sometimes as... |
72,242,702 | Angular - how do I know which operation has called ngAfterViewChecked()?<p>Consider a table, the rows of which are built dynamically - i.e. the HTML element contains an <code>*ngIf</code> directive.</p>
<p>On different occassions I want to scroll a selected table row into view. And because these are different occassion... | <p>If you want to scroll to a table row when the page init you could do the scrolling in the AfterViewInit lifecycle hook.</p>
<p>The ngAfterViewChecked() is called with every change detection due to lifecycle hooks chain.</p>
<p><a href="https://angular.io/guide/lifecycle-hooks" rel="nofollow noreferrer">Check here.</... | Angular - how do I know which operation has called ngAfterViewChecked()? | angular | 0 | 73 | 1 | 72,242,911 | 72,242,911 | 0 | true | 2022-05-14T17:54:58.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular - how do I know which operation has called ngAfterViewChecked()?<p>Consider a table, the rows of which are built dynamically - i.e. the HTML element ... |
72,255,965 | Problem with opening a view, Error 404, Not Found<p>So... The Error might be obvious but I cant find it. Im using Laravel 9.
The Error is '404 Not found'.</p>
<p>This is the Route</p>
<pre><code>Route::get('/list', [ValidationController::class, 'index']);
</code></pre>
<p>This is the function inside the controller.(It ... | <p>The path in your <code>href</code> attribute is most likely the issue. When creating a link, Laravel has a helper function to help out with routes: <a href="https://laravel.com/docs/9.x/helpers#method-route" rel="nofollow noreferrer"><code>route()</code></a>. The best practise is to name your route in your <code>rou... | Problem with opening a view, Error 404, Not Found | php|html|laravel | 1 | 73 | 1 | 72,256,804 | 72,256,804 | 0 | true | 2022-05-16T08:06:47.560Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Problem with opening a view, Error 404, Not Found<p>So... The Error might be obvious but I cant find it. Im using Laravel 9.
The Error is '404 Not found'.</p... |
72,261,581 | Are React native apps deployable without stores?<p>I have a react native project that I did using expo and I want to deploy it on Android and ios forba client, is it possible to do so without the need of app store or play store, I know it's possible for Android to export it as apk, but what about ios?</p> | <p>The short answer is no. In order to let your client use the app you must submit it to the App Store.</p>
<p>If you don't want your app to be publicly available, you can use <a href="https://developer.apple.com/support/unlisted-app-distribution/" rel="nofollow noreferrer">Unlisted App Distribution</a>.</p>
<p>There a... | Are React native apps deployable without stores? | android|ios|react-native|android-studio|expo | 0 | 73 | 1 | 72,262,433 | 72,262,433 | 0 | true | 2022-05-16T15:18:41.743Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Are React native apps deployable without stores?<p>I have a react native project that I did using expo and I want to deploy it on Android and ios forba clien... |
72,271,423 | Array of json from external file is not setting up the state in react<p>I am learning react. And I am trying to <code>setState</code> on <code>componentDidMount()</code> function with external file contains <code>Array of Data</code> but it is not setting up the state. It shows empty every time I refresh the page.</p>
... | <p><code>this.state.data</code> is not immediately available after calling <code>setState</code>. Check:
<a href="https://reactjs.org/docs/faq-state.html#why-doesnt-react-update-thisstate-synchronously" rel="nofollow noreferrer">https://reactjs.org/docs/faq-state.html#why-doesnt-react-update-thisstate-synchronously</a>... | Array of json from external file is not setting up the state in react | javascript|reactjs | 0 | 73 | 1 | 72,271,511 | 72,271,511 | 0 | true | 2022-05-17T09:24:44.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Array of json from external file is not setting up the state in react<p>I am learning react. And I am trying to <code>setState</code> on <code>componentDidMo... |
72,271,065 | Load stored width position of vertical sidebar after page reload<p>How to set and use the local storage data of the left sidebar width after resizing the sidebar and reloading the page?</p>
<p>I have created a local storage data and retrieve it using the codes below but after reloading the page the resized sidebar is g... | <p>If you want to load the stored position when the page is loaded, you might want to use the <code>DOMContentLoaded</code> event:</p>
<pre class="lang-js prettyprint-override"><code>document.addEventListener("DOMContentLoaded", () => {
const localNewLeftWidth = localStorage.getItem('newLeftWidth');
le... | Load stored width position of vertical sidebar after page reload | javascript|sidebar | -1 | 73 | 1 | 72,271,628 | 72,271,628 | 0 | true | 2022-05-17T08:59:07.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Load stored width position of vertical sidebar after page reload<p>How to set and use the local storage data of the left sidebar width after resizing the sid... |
72,268,620 | iOS app loads buggy when launching from a remote notification<p>My iOS app launches buggy (no launch image, safe areas aren't observed, tab bar doesn't show, etc.) when it's opened from a remote notification (when the user taps a push notification to open the app from a terminated state). I don't want the push notifica... | <p>The problem was that my app was configured to receive background push notifications and it would launch the app in the background (before the user tapped on the notification) and so when the user did tap on the notification to launch the app it would sometimes, I guess, catch it in some intermediate state and the UI... | iOS app loads buggy when launching from a remote notification | ios|swift|unusernotificationcenter | 2 | 73 | 1 | 72,278,780 | 72,278,780 | 0 | true | 2022-05-17T05:32:41.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
iOS app loads buggy when launching from a remote notification<p>My iOS app launches buggy (no launch image, safe areas aren't observed, tab bar doesn't show,... |
72,287,236 | Find all files matching pattern in directory and copy subdirectories and files found<p>I have a directory structure of the following:</p>
<pre><code>$DIRECTORY/*.xml
$DIRECTORY/*.others
$DIRECTORY/subdir1/*.xml
$DIRECTORY/subdir1/*.others
$DIRECTORY/subdir2/*.xml
$DIRECTORY/subdir2/*.others
</code></pre>
<p>And wish to... | <p>You might want to use <code>rsync</code> instead of <code>find</code>:</p>
<pre><code>rsync -amv --include='*/' --include='*.xml' --exclude='*' "$DIRECTORY"/ "$OUTPUT_DIRECTORY"
</code></pre> | Find all files matching pattern in directory and copy subdirectories and files found | linux|bash|find|copy | 0 | 73 | 1 | 72,287,394 | 72,287,394 | 0 | true | 2022-05-18T10:12:55.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find all files matching pattern in directory and copy subdirectories and files found<p>I have a directory structure of the following:</p>
<pre><code>$DIRECTO... |
72,294,396 | CSS order property doesn't work in my project<p>I am learning ccs, js, html and I tried to make a fun little game in which a button runs away from you when you try to click in using the "order: " property but for some reason it doesn't work properly</p>
<p>My html:</p>
<pre><code><!DOCTYPE html>
<htm... | <p>All <code>flex</code>-children have <code>order: 0</code> by default. If you want to have the <code>#click-me</code>-element as the first element, you can use <code>order: -1</code>, that way it will always be the first element. If you want it to work dynamically, you're gonna have to specify <code>order</code> on t... | CSS order property doesn't work in my project | html|css | 1 | 73 | 1 | 72,295,244 | 72,295,244 | 0 | true | 2022-05-18T18:38:31.033Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSS order property doesn't work in my project<p>I am learning ccs, js, html and I tried to make a fun little game in which a button runs away from you when y... |
72,318,819 | Need help slicing date value<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>result_database = [
{ id: 1, name: "Tom Riddle", date: "2022-05-16T22:00:00.000Z" },
{ id: 2, name: ... | <p>You can first map over <code>result_database</code> using <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map" rel="nofollow noreferrer">Array.prototype.map</a> and update the <code>date</code> property and then filter the array based on <code>holiday_date</code> using... | Need help slicing date value | javascript|node.js | 1 | 73 | 3 | 72,319,157 | 72,319,157 | 0 | true | 2022-05-20T12:20:17.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Need help slicing date value<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre ... |
72,321,647 | getting the length of an array of elements when the number can change (adding or removing elements)<p>So I don't have code for the question but Im curious to know if i wanted to create a ul of li's and want to add and remove the li's, I know the number of li's will be dynamic. So how do I get the number of li's (array ... | <p><code>document.getElementsByTagName("li")</code> returns a live HTMLCollection, so its length should always be up-to-date.
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsBy... | getting the length of an array of elements when the number can change (adding or removing elements) | javascript|html-lists | 0 | 73 | 3 | 72,322,629 | 72,322,629 | 0 | true | 2022-05-20T15:49:48.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
getting the length of an array of elements when the number can change (adding or removing elements)<p>So I don't have code for the question but Im curious to... |
72,323,501 | Select nth rows every nth element in Python dataframe<p>I'm reading a .csv file, that has dates as index and states as columns.</p>
<p>Something like this:</p>
<p><a href="https://i.stack.imgur.com/4ybHJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4ybHJ.png" alt="enter image description here" /><... | <p>You could use a startswith() option for this</p>
<pre><code>df = df[(df['Date'].str.startswith('Ene')) | (df['Date'].str.startswith('Feb'))]
</code></pre> | Select nth rows every nth element in Python dataframe | python|dataframe|slice | 0 | 73 | 2 | 72,323,624 | 72,323,624 | 0 | true | 2022-05-20T18:39:27.303Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Select nth rows every nth element in Python dataframe<p>I'm reading a .csv file, that has dates as index and states as columns.</p>
<p>Something like this:</... |
72,324,963 | Runtime error in production causing a black screen<p>According to <a href="https://stackoverflow.com/a/53640242/7814781">this</a>, a grey screen will appear when a Flutter app crashes due to a runtime error if the app is in release mode, and a red screen if in debug mode.</p>
<p>My app is showing a grey in MOST runtime... | <p>You probably didn't use Scaffold widget. You should wrap with Scaffold your used widget.</p> | Runtime error in production causing a black screen | flutter|dart | 0 | 73 | 2 | 72,324,986 | 72,324,986 | 0 | true | 2022-05-20T21:31:21.417Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Runtime error in production causing a black screen<p>According to <a href="https://stackoverflow.com/a/53640242/7814781">this</a>, a grey screen will appear ... |
72,340,891 | Vaadin Upload UnsupportedOperationException issue while creating a File<p>I'm trying to get a midi file through a form in Vaadin, but when I try to get this File into a File class and getting a UnsupportedOperationException. This is happening in the File midiFile = fileData.getFile();</p>
<blockquote>
<p>java.lang.Unsu... | <p>I don't know why this issue is happening but I solved it just changing from MemoryBuffer to FileBuffer class. Now it works.</p> | Vaadin Upload UnsupportedOperationException issue while creating a File | java|maven|upload|buffer|vaadin | 1 | 73 | 2 | 72,341,084 | 72,341,084 | 0 | true | 2022-05-22T19:56:54.483Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Vaadin Upload UnsupportedOperationException issue while creating a File<p>I'm trying to get a midi file through a form in Vaadin, but when I try to get this ... |
72,330,763 | How do i toggle between multiple classes for multiple elements in jQuery?<p>So I'm trying to implement a set of functions on my website with multiple div objects in it, so that when I click on <code>Div A</code>, it sets the text color of the page to red through <code>Class A</code>, and when i click on <code>Div B</co... | <p>It seems like the main issue is that <code>removeClass</code> doesn't support multiple class selectors (like 'onetxt, twotxt'). Also you aren't removing all possible classes depending on the order of clicks.</p>
<p>Here's a solution that might work. I've written some helper functions which hopefully clarify what's... | How do i toggle between multiple classes for multiple elements in jQuery? | javascript|jquery | 0 | 73 | 3 | 72,342,806 | 72,342,806 | 0 | true | 2022-05-21T15:08:41.820Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do i toggle between multiple classes for multiple elements in jQuery?<p>So I'm trying to implement a set of functions on my website with multiple div obj... |
72,349,256 | rust "hello world" causes 'mouse option' window to open. Why?<p>I am on windows 11
I executed rustup-init.exe</p>
<p>Create a <code>main.rs</code> file with</p>
<pre><code>fn main() {
println!("Hello, world!");
}
</code></pre>
<p>I then executed <code>rustc main.rs</code> from Windows Power Shell to compi... | <blockquote>
<p>As suggested from @JeroenMostert in the comment</p>
</blockquote>
<p>Executing from Power Shell the command <code>main</code> will execute automatically the <code>.cpl</code>.</p>
<p>Indeed, executing <code>main.exe</code> will execute my executable.</p>
<p>Damn.</p> | rust "hello world" causes 'mouse option' window to open. Why? | powershell|rust|windows-11 | 0 | 73 | 1 | 72,349,488 | 72,349,488 | 0 | true | 2022-05-23T13:18:01.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
rust "hello world" causes 'mouse option' window to open. Why?<p>I am on windows 11
I executed rustup-init.exe</p>
<p>Create a <code>main.rs</code> file with<... |
72,369,017 | How to write an Enum in Firestore written in SwiftUI?<p>I've made a little app where I have categories, and in each categories I have different products, that works well with barcoded data, but now I want to write them in Firestore and fetch them in my application.</p>
<p>I have 2 Struct, one for the products :</p>
<pr... | <p>I think it could work like this<br />
Even if the code readability is reduced</p>
<p><code>type: ProductType(rawValue: d["type"] as? String ?? "") ?? .Wearable // default value for ProductType</code></p> | How to write an Enum in Firestore written in SwiftUI? | firebase|google-cloud-firestore|swiftui | 1 | 73 | 1 | 72,369,245 | 72,369,245 | 0 | true | 2022-05-24T20:18:40.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to write an Enum in Firestore written in SwiftUI?<p>I've made a little app where I have categories, and in each categories I have different products, tha... |
72,387,217 | Are these icons missing from the Bootstrap icons web font, or am I doing something wrong?<p>I'm using the web font for Bootstrap Icons, and most of my icons are working, but there are a few which are listed on the website that don't seem to be included in the web font. These include: bi-envelope-plus,bi-quote and bi-mo... | <p>Use the latest CDN from Bootstrap <a href="https://icons.getbootstrap.com/#usage" rel="nofollow noreferrer">site</a></p>
<pre><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.3/font/bootstrap-icons.css">
</code></pre>
<p>Working <a href="https://codepen.io... | Are these icons missing from the Bootstrap icons web font, or am I doing something wrong? | html|css|twitter-bootstrap|webfonts|bootstrap-icons | 0 | 73 | 1 | 72,387,288 | 72,387,288 | 0 | true | 2022-05-26T05:44:15.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Are these icons missing from the Bootstrap icons web font, or am I doing something wrong?<p>I'm using the web font for Bootstrap Icons, and most of my icons ... |
72,398,141 | I'm having a problem understanding double pointers<p>I'm making a program to add items to a LIFO (last in first out) array, where the elements are inserted at the start of the array.</p>
<p>Here is my code:</p>
<pre class="lang-c prettyprint-override"><code>typedef struct neud{
int num;
struct neud *next;
}neud... | <p>Consider this simple program.</p>
<pre><code>#include <stdio.h>
void f( int x )
{
x = 10;
}
int main( void )
{
int x = 0;
f( x );
printf( "x = %d\n", x );
}
</code></pre>
<p>The program output is</p>
<pre><code>x = 0
</code></pre>
<p>That is the function f deals with a copy of the... | I'm having a problem understanding double pointers | c|pointers|pass-by-reference|pass-by-value|function-declaration | 1 | 73 | 2 | 72,398,222 | 72,398,222 | 0 | true | 2022-05-26T21:21:25.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I'm having a problem understanding double pointers<p>I'm making a program to add items to a LIFO (last in first out) array, where the elements are inserted a... |
72,388,303 | Google OAuth2 integration with kiwi tcms<p>I have followed exact steps on the documentation provided to integrate google OAuth2.</p>
<p>From <a href="https://github.com/kiwitcms/enterprise" rel="nofollow noreferrer">Kiwi github page.</a></p>
<ul>
<li><a href="https://github.com/python-social-auth/social-app-django" rel... | <p>Well, the question is vague in some terms to expect UI changes without changing the templates.</p>
<p>I had to add appropriate custom login block at this location.</p>
<p><a href="https://github.com/kiwitcms/Kiwi/blob/master/tcms/templates/registration/login.html#L39" rel="nofollow noreferrer">https://github.com/ki... | Google OAuth2 integration with kiwi tcms | python|django|google-oauth|kiwi-tcms | 0 | 73 | 1 | 72,513,737 | 72,513,737 | 0 | true | 2022-05-26T07:32:22.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google OAuth2 integration with kiwi tcms<p>I have followed exact steps on the documentation provided to integrate google OAuth2.</p>
<p>From <a href="https:/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.