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,081,588 | Does fish have the colon dash variable operator?<p>In bash, I can do</p>
<pre><code>$ echo ${undefined:-5}
5
</code></pre>
<p>to easily deal with unset variables.
Does fish have something like this? Or is there a trick to emulate this? I couldn't find anything after reading <a href="https://fishshell.com/docs/current/l... | <p>No fish doesn't have the expansive parameter expansions of bash.</p>
<p>In this case you can do something like this (yes, it's verbose)</p>
<pre><code>set -q undefined; and string length -q $undefined; and echo $undefined; or echo 5
</code></pre> | Does fish have the colon dash variable operator? | fish | 0 | 32 | 1 | 72,081,614 | 72,081,614 | 1 | true | 2022-05-02T01:30:34.653Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does fish have the colon dash variable operator?<p>In bash, I can do</p>
<pre><code>$ echo ${undefined:-5}
5
</code></pre>
<p>to easily deal with unset varia... |
72,081,944 | Why doesn't navigation link/view appear on the toolbar?<p>This is my code</p>
<pre><code> var body: some View {
Form {
Section(header: Text("People")) {
ForEach(people) { person in
PersonListItem(data: .constant(person))
}
}
... | <p>Wrapped your form with <code>NavigationView</code></p>
<pre><code>struct ContentView: View {
var body: some View {
NavigationView{ // Here
Form {
Section(header: Text("People")) {
ForEach(people) { person in
PersonListItem(... | Why doesn't navigation link/view appear on the toolbar? | ios|swift | 0 | 24 | 1 | 72,082,452 | 72,082,452 | 1 | true | 2022-05-02T02:55:26.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why doesn't navigation link/view appear on the toolbar?<p>This is my code</p>
<pre><code> var body: some View {
Form {
Section(header: Te... |
72,082,273 | Dataframe subsetting with conditional values<p>I have some data containing different tree species and their dimensions that I want to subset, leaving only those rows where the tree's dimensions are greater than the 75th percentile. The 75th percentile will vary by species, and so I want to filter / subset the data fram... | <p>Using <code>data.table</code>,</p>
<pre class="lang-r prettyprint-override"><code>require(data.table)
#> Loading required package: data.table
df <- data.table(SPECIES = rep(c('OAK', 'ELM', 'BEECH', 'ASH'), each = 50),
SIZE = runif(200, min = 15, max = 200))
df[,criteria := quantile(... | Dataframe subsetting with conditional values | r|filter|subset | 0 | 28 | 3 | 72,082,612 | 72,082,612 | 1 | true | 2022-05-02T04:18:25.793Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dataframe subsetting with conditional values<p>I have some data containing different tree species and their dimensions that I want to subset, leaving only th... |
72,082,756 | How to perform crossover of two nested lists without changing the contents inside their sub lists in Python?<p>I have two nested lists</p>
<pre><code>parent_M: [[[5222, 'BSC2', 'ST6'], ['LR1'], ['FTM3']], [[4222, 'BSC1', 'ST6'], ['LH2'], ['TTM3']], [[4222, 'BSC1', 'ST6'], ['CR1'], ['MTM3']], [[4202, 'BSC1', 'ST3'], ['L... | <p>It seems you could use <code>random.shuffle</code> to shuffle pairs of sub-sublists in loop and re-assign them back to the original sublists. Since we're shuffling pairs of sub-sublists, the items inside each sub-sublist don't get shuffled.</p>
<pre class="lang-py prettyprint-override"><code>import random
for lst1, ... | How to perform crossover of two nested lists without changing the contents inside their sub lists in Python? | python-3.x|list|nested-lists|crossover | 0 | 32 | 1 | 72,082,875 | 72,082,875 | 1 | true | 2022-05-02T05:45:57.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to perform crossover of two nested lists without changing the contents inside their sub lists in Python?<p>I have two nested lists</p>
<pre><code>parent_... |
72,082,896 | Elastic kibana with rest api<p>I am trying to use rest API in the kibana dev portal. but I am not getting the correct output.
<a href="https://i.stack.imgur.com/GLswQ.jpg" rel="nofollow noreferrer">here I am attaching my file</a></p> | <p>You can call only Elasticsearch API from the Kibana Dev tool. Also, when you call Elasticsearch API from Dev tool, you don't need to provide host and authentication details. It is not possible to call external API from Kibana dev tool.</p>
<p>You can search using below API:</p>
<pre><code>GET index_name/_search
</co... | Elastic kibana with rest api | python|django|rest|elasticsearch|kibana | 0 | 280 | 1 | 72,082,929 | 72,082,929 | 1 | true | 2022-05-02T06:08:30.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Elastic kibana with rest api<p>I am trying to use rest API in the kibana dev portal. but I am not getting the correct output.
<a href="https://i.stack.imgur.... |
72,082,968 | X-axis labels getting overlapped while saving matplotlib graph<p>I am creating some graphs using Matplotlib and later saving them using <code>plt.savefig()</code></p>
<pre><code>import matplotlib.pyplot as plt
plt.plot(date_list, variable_proj_hr_list, label=prj) # hours vs dates graph
plt.xlabel('Dates')
plt.ylabel('H... | <p>You can rotate the <code>xticks</code> using:</p>
<pre><code>plt.xticks(rotation=45)
</code></pre> | X-axis labels getting overlapped while saving matplotlib graph | python|matplotlib | 0 | 26 | 1 | 72,083,021 | 72,083,021 | 1 | true | 2022-05-02T06:17:53.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
X-axis labels getting overlapped while saving matplotlib graph<p>I am creating some graphs using Matplotlib and later saving them using <code>plt.savefig()</... |
72,074,689 | Interface is changing between IOS deployment target version on all buttons<p>I want to give the possibility to use my app since version 14.5. I tested it on version 15.3 and when I changed the iOS deployment target version to 14.5 I have the interface of all my buttons which are changing with the Button title appearing... | <p>From the interface builder, set button style from <code>plain</code> to <code>default</code>.</p>
<p><a href="https://i.stack.imgur.com/GA8mw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GA8mw.png" alt="enter image description here" /></a></p> | Interface is changing between IOS deployment target version on all buttons | swift|xcode | 0 | 31 | 1 | 72,083,152 | 72,083,152 | 1 | true | 2022-05-01T07:09:53.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Interface is changing between IOS deployment target version on all buttons<p>I want to give the possibility to use my app since version 14.5. I tested it on ... |
72,083,346 | how convert value of type 'MoviesDataSource.Section.Item' to closure result type 'Movie'<p>I have have 2 object one Movie and Section I have this error message "Cannot convert value of type 'MoviesDataSource.Section.Item' to closure result type 'Movie'" can someone help me to resolve this issue ?</p>
<pre><c... | <p>Typo.</p>
<p>Replace</p>
<pre><code>let items: [Movie]
</code></pre>
<p>with</p>
<pre><code>let items: [Item]
</code></pre> | how convert value of type 'MoviesDataSource.Section.Item' to closure result type 'Movie' | ios|swift | 0 | 21 | 1 | 72,083,385 | 72,083,385 | 1 | true | 2022-05-02T07:05:13.920Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how convert value of type 'MoviesDataSource.Section.Item' to closure result type 'Movie'<p>I have have 2 object one Movie and Section I have this error mess... |
72,081,705 | using special function such as __add__ in cython cdef classes<p>I am wanting to create a cython object that can has convenient operations such as addition multiplication and comparisons. But when I compile such classes they all seem to have a lot of python overhead.</p>
<p>A simple example:</p>
<pre><code>%%cython -a
... | <p>There's likely a couple of issues:</p>
<ol>
<li><p>I'm assuming that you're using Cython 0.29.x (and not the newer Cython 3 alpha). See <a href="https://cython.readthedocs.io/en/stable/src/userguide/special_methods.html#arithmetic-methods" rel="nofollow noreferrer">https://cython.readthedocs.io/en/stable/src/usergui... | using special function such as __add__ in cython cdef classes | cython | 0 | 20 | 1 | 72,083,486 | 72,083,486 | 1 | true | 2022-05-02T02:00:53.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
using special function such as __add__ in cython cdef classes<p>I am wanting to create a cython object that can has convenient operations such as addition mu... |
72,043,414 | Web3: Cannot read properties of null after new ethers.Contract<p>I am trying to use a smart contract just after I instantiate it. However, I get an error:</p>
<blockquote>
<p>Uncaught (in promise) TypeError: Cannot read properties of null
(reading 'call')</p>
</blockquote>
<p>I thought I did not have access to the func... | <p>Ok, I still do not understand the whole picture of why the following solution works, but if anyone out there is having a similar issue, this was what worked for me:</p>
<pre><code>useEffect((): void => {
if (!contractInstance) {
return;
}
async function getStatus(MyContract: Contract): Promise&... | Web3: Cannot read properties of null after new ethers.Contract | reactjs|solidity|web3js|ethers.js | 0 | 1,296 | 2 | 72,083,525 | 72,083,525 | 1 | true | 2022-04-28T12:07:47.313Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Web3: Cannot read properties of null after new ethers.Contract<p>I am trying to use a smart contract just after I instantiate it. However, I get an error:</p... |
72,083,932 | Transporterfleet not blocking eachother ANYLOGIC<p>In my model I've a path-guided transporter fleet, but when they are close to eachother they are blocking eachother, since this is not the scope of my model (I want them just to override eachother ) is there a way to disable this option. I've already tried to set minimu... | <p>The key aspect of Material-Handling transporters is to apply that spatial blocking.</p>
<p>If you do not want it, use moving resources from the Process modelling library. They act the same but do not have spatial awareness. However, they also cannot do the free-space navigation. Path-guided works but not applying pa... | Transporterfleet not blocking eachother ANYLOGIC | anylogic | 0 | 33 | 1 | 72,084,001 | 72,084,001 | 1 | true | 2022-05-02T08:07:50.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Transporterfleet not blocking eachother ANYLOGIC<p>In my model I've a path-guided transporter fleet, but when they are close to eachother they are blocking e... |
72,082,655 | Mock a function used inside a react component "multiple times"<p>I am currently mocking an internal dependency in a react project this way:</p>
<pre class="lang-tsx prettyprint-override"><code>import { QueryClient, QueryClientProvider } from "react-query";
import { render } from "@testing-library/react&q... | <p>You can chain the mock implementations of getAllCourses <a href="https://jestjs.io/docs/mock-function-api#mockfnmockimplementationoncefn" rel="nofollow noreferrer">jest docs</a></p>
<p>Try this,</p>
<pre><code>jest.mock("@myORG/axiosWrapperReactQuery", () => {
const original = jest.requireActual("@... | Mock a function used inside a react component "multiple times" | reactjs|unit-testing|jestjs|mocking|react-tsx | 0 | 266 | 2 | 72,084,042 | 72,084,042 | 1 | true | 2022-05-02T05:30:48.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mock a function used inside a react component "multiple times"<p>I am currently mocking an internal dependency in a react project this way:</p>
<pre class="l... |
72,084,440 | Is it allowed to access same resource from multiple endpoints in REST API?<p>I have two endpoints</p>
<blockquote>
<p>{ path: "/pages", description: "Retrieves information about all
public pages. If user is logged in, the call would return all pages
that belong to the user and that are public.&quo... | <blockquote>
<p>I could retrieve a page using /pages?pageId=xxxxx and /pages/pageId. Would this broke DX (developer experience) or any other REST convention (like consistency)?</p>
</blockquote>
<p>Nothing wrong with that from a REST perspective - it is normal that we might have multiple resources (each with their own ... | Is it allowed to access same resource from multiple endpoints in REST API? | api|rest | 0 | 27 | 2 | 72,085,450 | 72,085,450 | 1 | true | 2022-05-02T08:59:05.670Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it allowed to access same resource from multiple endpoints in REST API?<p>I have two endpoints</p>
<blockquote>
<p>{ path: "/pages", descripti... |
72,080,325 | jQuery progress prevention code stop working<p>I have this snippet to prevent auto-progress in form on the step where user must select multiple questions. The problem now is that it prevent auto progress, but when user select one of the checkboxes it's impossible to deselect it. It's for a plugin on Wordpress</p>
<pre>... | <pre><code>//Your code not clear. Just try this below code
(function ($) {
jQuery('#tab .question').on('click', function (e) {
$target = jQuery(e.target);
var isChecked = $target.prev().attr('checked');
if (isChecked) {
$target.prev().prop('checked', false);
} else {
$target.prev().prop(... | jQuery progress prevention code stop working | javascript|jquery|wordpress | 0 | 20 | 1 | 72,086,418 | 72,086,418 | 1 | true | 2022-05-01T20:51:16.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jQuery progress prevention code stop working<p>I have this snippet to prevent auto-progress in form on the step where user must select multiple questions. Th... |
72,086,982 | Non traditionally Snakemake output for next rules input<p>I have there weird Snakemake rule I want to create that the Snakemake documentation doesn't describe. I have rule picard_dupes that produces three outputs, metrics, bams, and bai files. However unlike bams and metrics that are created through Output, bai is crea... | <p>Snakemake only knows what you tell it. In this case, you aren't letting snakemake know that picard_dupes will also create the bai file. I like to call these implicit outputs because you don't explicitly create them in your shell command. Simply change your output directive to:</p>
<pre><code> output:
b... | Non traditionally Snakemake output for next rules input | python|snakemake | 0 | 31 | 1 | 72,087,337 | 72,087,337 | 1 | true | 2022-05-02T12:50:06.743Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Non traditionally Snakemake output for next rules input<p>I have there weird Snakemake rule I want to create that the Snakemake documentation doesn't describ... |
72,087,380 | Unable to Render Link Component React using Foreach<p>I have an array of words and none words an I'm trying to construct a sentence using the using the values inside the array and make only the words click able.</p>
<p>Below is a sample of the Array. This data is stored in a const called <strong>getWordsFromTokens</str... | <p>You don't use <code>forEach</code> in react, since that's an imperative approach that doesn't work in JSX. Use <code>map</code> to create an array of JSX values, and return it as JSX code.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
<div class="snippet-code">
<... | Unable to Render Link Component React using Foreach | javascript|reactjs|frontend|higher-order-functions | 0 | 35 | 1 | 72,087,585 | 72,087,585 | 1 | true | 2022-05-02T13:24:54.737Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to Render Link Component React using Foreach<p>I have an array of words and none words an I'm trying to construct a sentence using the using the value... |
72,086,385 | Order queryset by field in intermediary table with recursive m2m relationship<p>I have followers/followees system in my django app and I want to order by user's followers and followees by action time when appropriate action is happend.
My models:</p>
<pre><code>class UserFollow(models.Model):
followee = models.Fore... | <p>Here is a simplified example:</p>
<pre class="lang-py prettyprint-override"><code>class Doctor(...):
patients = models.ManyToMany('Patient', ..., related_name = 'doctors', through = 'Registration')
class Patient(...):
doctors = models.ManyToMany('Doctor', ..., related_name = 'patients', through = 'Registrat... | Order queryset by field in intermediary table with recursive m2m relationship | django|django-queryset|django-orm | 0 | 30 | 1 | 72,088,131 | 72,088,131 | 1 | true | 2022-05-02T12:01:48.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Order queryset by field in intermediary table with recursive m2m relationship<p>I have followers/followees system in my django app and I want to order by use... |
71,890,003 | how to open a jupyter notebook under a folder in google drive?<p>I am trying to open a existing jupyter notebook from a folder in google drive. In colab, I do:</p>
<p>File-> open notbook-> google drive</p>
<p>Only jupyter notebook files under colab Notebooks are shown, even I have a folder inside Colab Notebooks,... | <p>I usually open these in Colab by right clicking directly in Google drive (not from within Colab itself) and selecting Open with --> Google Colaboratory.</p> | how to open a jupyter notebook under a folder in google drive? | python|google-colaboratory | 0 | 258 | 1 | 72,088,912 | 72,088,912 | 1 | true | 2022-04-16T00:03:13.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to open a jupyter notebook under a folder in google drive?<p>I am trying to open a existing jupyter notebook from a folder in google drive. In colab, I d... |
72,087,415 | how to move slider using Rselenium?<p>i am trying to move the slider to the max of 2000 px</p>
<pre><code>driver = rsDriver(browser = c("firefox"))
remDr <- driver[["client"]]
remDr$navigate('https://www.qrcode-monkey.com/#url')
webElem <- remDr$findElement("xpath", "//span[@cl... | <p>We can simply click on pointer and press <code>end</code></p>
<pre><code>#launch browser
driver = rsDriver(browser = c("firefox"))
remDr <- driver[["client"]]
remDr$navigate('https://www.qrcode-monkey.com/#url')
#click element
remDr$findElement(using = "xpath",'/html/body/div[2]/di... | how to move slider using Rselenium? | rselenium | 0 | 18 | 1 | 72,089,666 | 72,089,666 | 1 | true | 2022-05-02T13:27:08.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to move slider using Rselenium?<p>i am trying to move the slider to the max of 2000 px</p>
<pre><code>driver = rsDriver(browser = c("firefox"))... |
72,090,243 | Freidman test not working and may not be appropriate?<p>I want to know if there is a difference between mean distance between pairs of individuals across months. This is a repeated measures situation with a non normally distributed response variable. So, I am trying to run a Friedman test, but I can't get it to work an... | <p>If you look at the code, the part that is throwing the error is:</p>
<pre class="lang-r prettyprint-override"><code>if (any(table(groups, blocks) != 1))
stop("not an unreplicated complete block design")
</code></pre>
<p>If you look at your data and do the appropriate <code>table()</code> operation... | Freidman test not working and may not be appropriate? | r|statistics|anova | 0 | 27 | 1 | 72,090,535 | 72,090,535 | 1 | true | 2022-05-02T17:28:07.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Freidman test not working and may not be appropriate?<p>I want to know if there is a difference between mean distance between pairs of individuals across mon... |
72,089,189 | What does "Installed from: Google Play" mean in Google Play Console?<p>In Google Play Console there's a filter called "Installed from: Google Play". What does that mean? I can't find any documentation about it.</p> | <p>It means an app installed from the Play Store, so not installed from another store or sideloaded.</p> | What does "Installed from: Google Play" mean in Google Play Console? | google-play-console | 0 | 24 | 1 | 72,090,640 | 72,090,640 | 1 | true | 2022-05-02T15:48:35.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What does "Installed from: Google Play" mean in Google Play Console?<p>In Google Play Console there's a filter called "Installed from: Google Play"... |
72,090,450 | Same XPath Node returns different result<p>Imagine I got the following simple <code>.xml</code> file</p>
<pre><code><a>
<b>
<c>
<n id = "1"/>
</c>
<n id = "2"/>
<n id = "3"/>
</b>
</a>
</code></pr... | <p><code>preceding::n</code> refers to <a href="https://developer.mozilla.org/en-US/docs/Web/XPath/Axes/preceding" rel="nofollow noreferrer">any node in the structure</a></p>
<blockquote>
<p>preceding
Indicates all the nodes that precede the context node in the document except any ancestor, attribute and namespace node... | Same XPath Node returns different result | xpath | 0 | 19 | 1 | 72,090,751 | 72,090,751 | 1 | true | 2022-05-02T17:48:24.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Same XPath Node returns different result<p>Imagine I got the following simple <code>.xml</code> file</p>
<pre><code><a>
<b>
<c>
... |
72,090,956 | R model.matrix drop multicollinear variables<p>Is there a way to force <code>model.matrix.lm</code> to drop multicollinear variables, as is done in the estimation stage by <code>lm()</code>?</p>
<p>Here is an example:</p>
<pre><code>library(fixest)
N <- 10
x1 <- rnorm(N)
x2 <- x1
y <- 1 + x1 + x2 + rnorm(N... | <p>So long as the overhead from running the linear model is not too high, you could write a little function like the one here to do it:</p>
<pre class="lang-r prettyprint-override"><code>N <- 10
x1 <- rnorm(N)
x2 <- x1
y <- 1 + x1 + x2 + rnorm(N)
df <- data.frame(y = y, x1 = x1, x2 = x2)
fit_lm <- l... | R model.matrix drop multicollinear variables | r|lm|model.matrix|fixest | 0 | 29 | 1 | 72,091,105 | 72,091,105 | 1 | true | 2022-05-02T18:35:34.750Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R model.matrix drop multicollinear variables<p>Is there a way to force <code>model.matrix.lm</code> to drop multicollinear variables, as is done in the estim... |
72,090,804 | Python serialize/format text complex to json object<p>have this message in request.</p>
<pre><code>event= [
{'payload':
{
'key': 'eyJ',
'value': '{ApproximateReceiveCount=1, SentTimestamp=193, SequenceNumber=100, MessageGroupId=1d4, SenderId=ARO:5c9, MessageDeduplicationId=c29e, Body={&... | <p>So this is an interesting question, which you can solve by counting the opening and closing curly brackets.</p>
<p>Split the value string on the <code>Body=</code> part, and then with a for loop you go over the remaining characters, counting the opening and closing curly brackets. Once this counter hits zero, you kn... | Python serialize/format text complex to json object | python|python-3.x | 0 | 35 | 1 | 72,091,513 | 72,091,513 | 1 | true | 2022-05-02T18:22:00.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python serialize/format text complex to json object<p>have this message in request.</p>
<pre><code>event= [
{'payload':
{
'key': 'eyJ'... |
72,017,379 | How does chart updating works within the context of react?<p>I currently have a Radar chart in chart.js using the react integration.</p>
<p>I was suprised to note that, when I updated the data, instead of showing a completely new plot, it just transitioned smoothly from the previous dataset to the new one.</p>
<p>What ... | <p>This is my understanding of the whole process after diving into the code base quite a bit. I've tried to be as detailed as possible with links to the exact line of code I am talking about. Hope this helps:</p>
<ol>
<li><p>Beginning with the code snippet you shared:</p>
<p><code>export const Radar = /* #__PURE__ */ c... | How does chart updating works within the context of react? | reactjs|chart.js|react-chartjs|react-chartjs-2 | 0 | 268 | 3 | 72,091,991 | 72,091,991 | 1 | true | 2022-04-26T16:24:21.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How does chart updating works within the context of react?<p>I currently have a Radar chart in chart.js using the react integration.</p>
<p>I was suprised to... |
72,092,609 | How can I create an Anaconda env from the env folder?<p>How can I recreate this environment in Anaconda from this folder? I don't have a yaml. The folder is on an external drive. I had to do an unexpected fresh install of Windows, but luckily had the anaconda3 folder backed up.</p>
<p><a href="https://i.stack.imgur.com... | <p>One approach would be to try generating a YAML from the environment:</p>
<pre class="lang-bash prettyprint-override"><code>conda env export -p /path/to/env/gdal > gdal_env.yaml
</code></pre>
<p>Then recreate from the YAML:</p>
<pre class="lang-bash prettyprint-override"><code>conda env create -n gdal -f gdal_env.... | How can I create an Anaconda env from the env folder? | anaconda | 0 | 14 | 1 | 72,092,981 | 72,092,981 | 1 | true | 2022-05-02T21:30:28.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I create an Anaconda env from the env folder?<p>How can I recreate this environment in Anaconda from this folder? I don't have a yaml. The folder is ... |
72,092,666 | Querying Line Items of Order with JSON Functions in BigQuery<p>I am banging my head head here for the past 2 hours with all the available JSON_... functions in BigQuery. I've read quite a few questions here but no matter why I try, I never succeed in extracting the "amounts" from my JSON below.</p>
<p>This is... | <p>Use below</p>
<pre><code>select (
select sum(cast(json_value(charge, '$.amount') as float64))
from unnest(json_extract_array(order_as_json, '$.lines')) line,
unnest(json_extract_array(line, '$.charges')) charge
) total
from your_table
</code></pre>
<p>if applied to sample data in y our questi... | Querying Line Items of Order with JSON Functions in BigQuery | google-bigquery | 0 | 31 | 1 | 72,093,053 | 72,093,053 | 1 | true | 2022-05-02T21:37:46.577Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Querying Line Items of Order with JSON Functions in BigQuery<p>I am banging my head head here for the past 2 hours with all the available JSON_... functions ... |
72,093,763 | Recieving an error when calling an API for reasons unknown<p>I was trying to call an mule API from Postman client and i recieved a 500 Error. I'm not sure i understand what's going on. I've posted the error below. I'm not sure if this is a maven dependency issue. Any help would be appreciated.............................. | <p>The error is returned by a Jenkins instance. There is nothing generated by Mule in that error. You are either calling the wrong server or the Mule application is just a proxy to Jenkins. Either way the error is in Jenkins and you need to investigate what Jenkins is doing.</p> | Recieving an error when calling an API for reasons unknown | maven|mule|mulesoft|anypoint-studio | 0 | 23 | 1 | 72,093,858 | 72,093,858 | 1 | true | 2022-05-03T00:43:04.707Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Recieving an error when calling an API for reasons unknown<p>I was trying to call an mule API from Postman client and i recieved a 500 Error. I'm not sure i ... |
72,094,009 | Attach an event handler to an object literal<p>I have an object literal to open a websocket connection. this is a simplified version of it:</p>
<pre><code>const ws = {
conn : null,
start : function(){
this.conn = new WebSocket('wss://.....');
this.conn.onopen = (e) => ... | <p>Just return the connection at the end of the <code>start</code> function.</p>
<pre class="lang-js prettyprint-override"><code>const ws = {
conn : null,
start : function(){
this.conn = new WebSocket('wss://.....');
this.conn.onopen = (e) => {};
this.c... | Attach an event handler to an object literal | javascript | 0 | 34 | 2 | 72,094,024 | 72,094,024 | 1 | true | 2022-05-03T01:34:29.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Attach an event handler to an object literal<p>I have an object literal to open a websocket connection. this is a simplified version of it:</p>
<pre><code>co... |
72,094,888 | Why the encodings from sys.stdout.encoding show those two different results as following?<p>I have two code files which are "run_python.php" and "script.py".</p>
<p>run_python.pyp</p>
<pre><code><html>
<?php
$out = `python script.py`;
$out = iconv('cp949', 'utf-8', $out);
echo $... | <p>When you run the Python script by itself, <code>sys.stdout</code> is connected to the terminal. When it's connected to a terminal, the default encoding is determined from the <code>LC_CTYPE</code> or <code>LC_ALL</code> environment variables.</p>
<p>When you run it from PHP, <code>sys.stdout</code> is connected to a... | Why the encodings from sys.stdout.encoding show those two different results as following? | python|php|shell|cmd|encoding | 0 | 29 | 1 | 72,094,920 | 72,094,920 | 1 | true | 2022-05-03T04:48:14.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why the encodings from sys.stdout.encoding show those two different results as following?<p>I have two code files which are "run_python.php" and &q... |
72,095,165 | How to download Artifactory from JFrog Artifactory via terminal?<p>I am working on Jenkinsfile and for the project I need to get some Artifactory, can anyone help me with the correct command?</p>
<p>I was thinking about curl but then it is asking me for username and password, follow by a 404 error.</p> | <p>In the stage in your Jenkinsfile, use your download command within a <code>withCredentials</code> directive.</p>
<pre><code>withCredentials([usernamePassword(credentialsId: 'artifactoryCredentials', passwordVariable: 'ART_PASSWORD', usernameVariable: 'ART_USERNAME')]) {
sh 'curl -u ${ART_USERNAME}:${ART_PASSWORD... | How to download Artifactory from JFrog Artifactory via terminal? | bash|jenkins-pipeline|artifactory | 0 | 261 | 1 | 72,095,408 | 72,095,408 | 1 | true | 2022-05-03T05:35:02.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to download Artifactory from JFrog Artifactory via terminal?<p>I am working on Jenkinsfile and for the project I need to get some Artifactory, can anyone... |
72,095,935 | How do I update a specific property of a nested array element in MongoDB<p>I have a collection with the following structure:</p>
<pre class="lang-json prettyprint-override"><code>{
arrangements: [
{ displayName: "MRT.8" },
{ displayName: "MRT.10" },
{ displayName: "MRT.12" },... | <p>Seems you are working with Update with Aggregation Pipeline, you need <code>$map</code> operator.</p>
<p>For <code>$arrayElementAt</code> part, I think you need 1 as an index to take the second element.</p>
<p>Assume that the filter returns documents to be updated:</p>
<pre><code>db.collection.update({
"arran... | How do I update a specific property of a nested array element in MongoDB | mongodb | 0 | 23 | 1 | 72,096,089 | 72,096,089 | 1 | true | 2022-05-03T07:14:25.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I update a specific property of a nested array element in MongoDB<p>I have a collection with the following structure:</p>
<pre class="lang-json pretty... |
72,095,961 | How to invalidate a user sessions and cookies with user_id in laravel?<p>In my project admin need to invalidate user auth, and redirect user to login page after receiving the next request from user.</p>
<p>For this operation, anything that authenticates the user must obsolete!
but how ?</p>
<p>Something like the follow... | <p>logout user you want to, by id:</p>
<p>$userToLogout = User::find(5);<br>
Auth::setUser($userToLogout);<br>
Auth::logout();</p> | How to invalidate a user sessions and cookies with user_id in laravel? | laravel | 0 | 33 | 1 | 72,096,139 | 72,096,139 | 1 | true | 2022-05-03T07:17:42.800Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to invalidate a user sessions and cookies with user_id in laravel?<p>In my project admin need to invalidate user auth, and redirect user to login page af... |
72,096,171 | From row to column vector for a specific condition in Python<p>The code selects the positive values in the matrix and gives the corresponding indices. However, I would like the output of positive values in a column vector instead of a row. The current and desired outputs are attached.</p>
<pre><code>import numpy as np
... | <p>IIUC, you can add an extra dimension when slicing your array:</p>
<pre><code>values = Flux[Flux>=0,None]
</code></pre>
<p>output:</p>
<pre><code>array([[2],
[0],
[4],
[8],
[1],
[3]])
</code></pre> | From row to column vector for a specific condition in Python | python|numpy | 0 | 35 | 2 | 72,096,201 | 72,096,201 | 1 | true | 2022-05-03T07:40:16.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
From row to column vector for a specific condition in Python<p>The code selects the positive values in the matrix and gives the corresponding indices. Howeve... |
72,096,150 | Does typescript HTML Content is not recorded in JMeter<p>Using Angular 9 Application written using Typescript, there the HTML Content is not visible, and due to this not able to test</p> | <ol>
<li>JMeter is backend-agnostic, it doesn't care what is the underlying technology used in the system under test.</li>
<li>Properly configured <a href="https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.html" rel="nofollow noreferrer">HTTP(S) Test Script Recorder</a> is capable of recording <a href="ht... | Does typescript HTML Content is not recorded in JMeter | angular|typescript|performance|jmeter|performance-testing | 0 | 26 | 1 | 72,096,357 | 72,096,357 | 1 | true | 2022-05-03T07:38:12.043Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does typescript HTML Content is not recorded in JMeter<p>Using Angular 9 Application written using Typescript, there the HTML Content is not visible, and due... |
72,096,353 | create new domain for application on k8s<p>we have create new application on k8s, this application is exposing nodePort service in k8s and we are able to access the UI using port forwarding.
We want to expose it outside with specific domain and we have a GCP account how we can do it? what are the steps ? didnt find any... | <p>first, you need to create an Ingress for external access, you can read all about that in the official <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">docs</a>.</p>
<p>then you need to create a domain in your domain provider and link it to the external IP of the in... | create new domain for application on k8s | kubernetes|google-cloud-platform|dns | 0 | 32 | 1 | 72,096,694 | 72,096,694 | 1 | true | 2022-05-03T07:57:18.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
create new domain for application on k8s<p>we have create new application on k8s, this application is exposing nodePort service in k8s and we are able to acc... |
72,095,501 | Show weekdays in TortoiseGit<p>In the log messages dialog of tortoisegit, dates are written without weekday.</p>
<p><a href="https://i.stack.imgur.com/0ppaJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ppaJ.png" alt="enter image description here" /></a></p>
<p>as opposed to TortoiseSVN</p>
<p><a ... | <p>Go to TortoiseGit settings to the Dialogs 1 tab and deselect "Short date/time-formats in log messages".</p>
<p>cf. <a href="https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tgit-dug-settings-dialogs" rel="nofollow noreferrer">https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tg... | Show weekdays in TortoiseGit | tortoisegit | 0 | 22 | 1 | 72,096,771 | 72,096,771 | 1 | true | 2022-05-03T06:22:36.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Show weekdays in TortoiseGit<p>In the log messages dialog of tortoisegit, dates are written without weekday.</p>
<p><a href="https://i.stack.imgur.com/0ppaJ.... |
72,096,734 | Group first folder and the following files in Regex<p>I am trying to use regex to group the root folder of a package and to group the rest of the files in it.</p>
<p>I tried the following <code>@package\/(.*)\/(\/*.+)$</code> with the test string <code>@package/util/src/index.js</code>:
<a href="https://i.stack.imgur.c... | <p>You might write the pattern like this to not cross the first <code>/</code> and then capture the rest of the line using <code>(.+)$</code> without optional repeating <code>\/*</code></p>
<pre><code>@package\/([^\/]+)\/(.+)$
</code></pre>
<p><a href="https://regex101.com/r/LCuRhL/1" rel="nofollow noreferrer">Regex de... | Group first folder and the following files in Regex | javascript|regex | 0 | 28 | 1 | 72,096,781 | 72,096,781 | 1 | true | 2022-05-03T08:32:48.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Group first folder and the following files in Regex<p>I am trying to use regex to group the root folder of a package and to group the rest of the files in it... |
72,095,832 | How to access Session Timeout Value in web.xml?<p>I want to implement idle session Timeout on the server-side in my web application. I'm using the Tomcat server.</p>
<pre><code> <session-config>
<session-timeout>10</session-timeout>
</session-config>
</code></pre>
<p>I can able to create ... | <p>You can get the configured timeout from the session itself, use <a href="https://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpSession.html#getMaxInactiveInterval--" rel="nofollow noreferrer">getMaxInactiveInterval</a>. It gives you the time in seconds.</p> | How to access Session Timeout Value in web.xml? | java|session|tomcat|webserver|session-timeout | 0 | 259 | 1 | 72,097,053 | 72,097,053 | 1 | true | 2022-05-03T07:03:32.690Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to access Session Timeout Value in web.xml?<p>I want to implement idle session Timeout on the server-side in my web application. I'm using the Tomcat ser... |
72,096,922 | How to apply conditional checking on input columns in a JavaScript Datatable<p>Below shows one of a column in my javaScript Datatable:</p>
<pre><code> {
"className": 'child_grid',
"data": function (data) {
return '<input disabled id="comment"... | <p>What about creating the value prior to the return?<br />
Something like this..</p>
<pre class="lang-js prettyprint-override"><code>"data": function(data) {
const value = data.LookupComment !== null ? data.LookupComment : '';
return '<input disabled id="comment" data-val="true" ty... | How to apply conditional checking on input columns in a JavaScript Datatable | javascript|html | 0 | 26 | 1 | 72,097,283 | 72,097,283 | 1 | true | 2022-05-03T08:49:46.320Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to apply conditional checking on input columns in a JavaScript Datatable<p>Below shows one of a column in my javaScript Datatable:</p>
<pre><code> ... |
72,097,061 | Settings path in ENV in Dockerfile get overruled?<p>I do something like this:</p>
<pre><code>FROM registry.access.redhat.com/ubi8/python-39:1-48
USER root
ENV APP_ROOT=/jup\
PY_PKG_DIR=${APP_ROOT}/src/app-pkg\
...
</code></pre>
<p>I copy files to that path:</p>
<pre><code>COPY start-singleuser.sh jupyter_noteb... | <p>if you want to use set one env var from another you should separate declaration, because variables in ENV won't be set until the command has completed</p>
<pre><code>ENV APP_ROOT=/jup
ENV PY_PKG_DIR=${APP_ROOT}/src/app-pkg \
</code></pre> | Settings path in ENV in Dockerfile get overruled? | docker | 0 | 18 | 1 | 72,097,433 | 72,097,433 | 1 | true | 2022-05-03T09:01:48.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Settings path in ENV in Dockerfile get overruled?<p>I do something like this:</p>
<pre><code>FROM registry.access.redhat.com/ubi8/python-39:1-48
USER root
E... |
72,097,667 | How to export data in R to a directory that you have created with arguments from the command line?<p>I am trying to save data (e.g. a png image) into a folder that I create from the arguments of the command line.</p>
<p>This is my script.</p>
<p>#myscript.R</p>
<pre><code>#!/usr/bin/Rscript --vanilla
args<-command... | <p>I found the solution. The problem was that I wanted to paste one output with strings. I needed <code>paste0</code>.</p>
<pre><code> png(paste0("/home/user/test/", args[1], "/myplot.png"),height=2000,width=2000,res=300)
</code></pre> | How to export data in R to a directory that you have created with arguments from the command line? | r|command-line|directory|arguments|command-line-arguments | 0 | 25 | 1 | 72,097,887 | 72,097,887 | 1 | true | 2022-05-03T09:54:25.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to export data in R to a directory that you have created with arguments from the command line?<p>I am trying to save data (e.g. a png image) into a folde... |
72,097,713 | Adapting text inside in Donut Plot<p>I am trying to plot Donut plot with ggplot 2. Below you can see my data and also my plot.</p>
<pre><code>test_data<-structure(list(KindOfParticipants = c("Participants", "Non-participants",
"Unknown group"),... | <p>You can adjust your label with <code>hjust</code> like below.</p>
<pre class="lang-r prettyprint-override"><code>require(ggplot2)
plot_1_test <- ggplot(test_data, aes(ymax=ymax, ymin=ymin,
xmax=4, xmin=3,
fill=KindOfParticipants)) +
geom_rect()+
# geom_label(x=3... | Adapting text inside in Donut Plot | r|ggplot2 | 0 | 17 | 1 | 72,097,957 | 72,097,957 | 1 | true | 2022-05-03T09:57:55.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Adapting text inside in Donut Plot<p>I am trying to plot Donut plot with ggplot 2. Below you can see my data and also my plot.</p>
<pre><code>test_data<-s... |
72,097,900 | Spring Boot how to replace string in Springboot Application Class<p>my main file looks as follows.</p>
<pre><code>@SpringBootApplication
@OpenAPIDefinition(info = @Info(title = "Test", version = "0.1"))
@SecurityScheme(
name = "security_auth", type = SecuritySchemeType.OAUTH2, in =... | <p>The following should do the trick</p>
<pre><code>authorizationUrl = "${your.custom.path}",
</code></pre>
<p>and obviously in your application.propperties</p>
<pre><code>your.custom.path=http://localhost:8080/auth/realms/master/protocol/openid-connect/auth
</code></pre> | Spring Boot how to replace string in Springboot Application Class | spring|spring-boot | 0 | 35 | 1 | 72,098,047 | 72,098,047 | 1 | true | 2022-05-03T10:12:19.767Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Boot how to replace string in Springboot Application Class<p>my main file looks as follows.</p>
<pre><code>@SpringBootApplication
@OpenAPIDefinition(i... |
72,097,915 | Update caption under grid<p>Is there a code to update the yellow text?</p>
<p><a href="https://i.stack.imgur.com/V1byp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V1byp.png" alt="enter image description here" /></a></p> | <p>You can see the Grid details, (StatusField="Availability"), you can write field selecting event for Availability field and you can modify it.</p>
<p>SOLine_Availability_FieldSelecting event.</p>
<pre><code> <px:PXTabItem Text="Document Details">
<Template>
<px:PXGrid ID="grid&... | Update caption under grid | acumatica | 0 | 32 | 1 | 72,098,058 | 72,098,058 | 1 | true | 2022-05-03T10:13:33.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Update caption under grid<p>Is there a code to update the yellow text?</p>
<p><a href="https://i.stack.imgur.com/V1byp.png" rel="nofollow noreferrer"><img sr... |
72,038,523 | Get & apply setting (e.g. color) from another indicator<p>I am creating multiple indicators - ideally to be used together.</p>
<p>Since many levels share the same coloring, I was wondering if I can</p>
<ul>
<li>get the color a user may specify in the "main" indicator for e.g. "open" line</li>
<li>an... | <p>You can't use <code>input</code> from one indicator on another indicator. In some cases, you can use indicator output to another indicator using <a href="https://www.tradingview.com/blog/en/new-feature-8211-apply-an-indicator-to-another-indicator-1844/" rel="nofollow noreferrer">indicator on indicator function</a>.<... | Get & apply setting (e.g. color) from another indicator | pine-script|pinescript-v5 | 0 | 35 | 1 | 72,098,187 | 72,098,187 | 1 | true | 2022-04-28T05:41:07.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get & apply setting (e.g. color) from another indicator<p>I am creating multiple indicators - ideally to be used together.</p>
<p>Since many levels share the... |
72,094,646 | Unable to configure Send Email<p>I am trying to add a send email functionality in my flow and when I try to place the Send from the Palette to the flow I get the below error</p>
<p><a href="https://i.stack.imgur.com/clpYi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/clpYi.png" alt="enter image des... | <p>Verify that you have the right dependency for the Email connector in the pom.xml file.</p>
<p>Ensure you have the latest release of Anypoint Studio 7. If not download the latest.</p>
<p>After that if you still have the issue try creating a new workspace for the project.</p> | Unable to configure Send Email | mule|mule-studio|mulesoft|anypoint-studio|mule4 | 0 | 25 | 1 | 72,098,718 | 72,098,718 | 1 | true | 2022-05-03T03:48:27.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to configure Send Email<p>I am trying to add a send email functionality in my flow and when I try to place the Send from the Palette to the flow I get... |
72,099,758 | API Validating basket on get request<p>What would be the best approach to handle Model State Errors for the the basket to the user that loads the basket from the API ?</p>
<p><strong>Scenario:</strong></p>
<ol>
<li>User adds product to the basket ( basket is valid at the time of creating it )</li>
<li>The product is ta... | <blockquote>
<p>What would be the RESTful way of solving this problem ?</p>
</blockquote>
<p>How would you do it with a web page?</p>
<p>It would probably be a single web page, right? Containing</p>
<ul>
<li>a list of items in the basket, and...</li>
<li>a list of problems that might prevent the order from growing thr... | API Validating basket on get request | rest|http-get | 0 | 29 | 1 | 72,099,922 | 72,099,922 | 1 | true | 2022-05-03T12:58:53.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
API Validating basket on get request<p>What would be the best approach to handle Model State Errors for the the basket to the user that loads the basket from... |
72,099,696 | Flutter - how to ignore parent touch event on child touch event?<p>This should be pretty basic, but I can't seem to figure out how to disable or ignore parent touches when a child IconButton is pressed. I am working on a treeview that can expand and collapse. When I click the row (a Card), the children will be shown ... | <p>Use GestureDetector instead</p>
<pre><code> GestureDetector(
onTap: () { print("row pressed"); },
child: <widget>
),
</code></pre> | Flutter - how to ignore parent touch event on child touch event? | flutter|listener|flutter-listview|flutter-onpressed | 0 | 291 | 1 | 72,100,116 | 72,100,116 | 1 | true | 2022-05-03T12:55:14.173Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter - how to ignore parent touch event on child touch event?<p>This should be pretty basic, but I can't seem to figure out how to disable or ignore paren... |
72,099,732 | Firebase Realtime Database: Split method in security rules: Error saving rules - Line 6: No such method/property 'split'<p>I am storing user messages in real time database like this:
<code><USER_1_UID>__<USER_2_UID></code>
now before creating the object, I am sorting it so to ensure that for two users the k... | <p>According to the reference documentation for the <a href="https://firebase.google.com/docs/reference/security/database#string_methods" rel="nofollow noreferrer">String type</a> in security rules, it does not support a <code>split</code> method. So it seems like a bug in the auto-completer that the rules editor uses ... | Firebase Realtime Database: Split method in security rules: Error saving rules - Line 6: No such method/property 'split' | firebase-realtime-database|firebase-security | 0 | 35 | 1 | 72,100,138 | 72,100,138 | 1 | true | 2022-05-03T12:57:03.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firebase Realtime Database: Split method in security rules: Error saving rules - Line 6: No such method/property 'split'<p>I am storing user messages in real... |
72,099,601 | How to map an array within an array and achieve the following output?<p>In the given input,</p>
<pre><code>{
"editable": true,
"sections": [
{
"title": "Identification",
"calingaKey": "",
"content":... | <p>You can use mapObject() once you descend from the last nested array into objects. Then the trick is to use the value of <code>calinga</code> but if it null because the key is not present then use the original value as the default: <code>item03 mapObject {($$):calinga[$] default $}</code>.</p>
<p>Example:</p>
<pre cl... | How to map an array within an array and achieve the following output? | mule|dataweave|mulesoft|mule4 | 0 | 32 | 1 | 72,100,238 | 72,100,238 | 1 | true | 2022-05-03T12:48:03.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to map an array within an array and achieve the following output?<p>In the given input,</p>
<pre><code>{
"editable": true,
"sectio... |
72,100,123 | Saving array elements in CSV format in Python<p>I would like to save the elements of <code>I</code> in a CSV format. The current and desired outputs are attached.</p>
<pre><code>import numpy as np
import csv
I=np.array([[0, 1],
[0, 3],
[1, 2],
[1, 4],
[2, 5],
[3, 4],
[3, 6],
... | <p>you can try using <code>writerow</code> and create the comma separated</p>
<pre class="lang-py prettyprint-override"><code>import numpy as np
import csv
I=np.array([[0, 1],
[0, 3],
[1, 2],
[1, 4],
[2, 5],
[3, 4],
[3, 6],
[4, 5],
[4, 7],
[5, 8],
[... | Saving array elements in CSV format in Python | python|numpy|csv | 0 | 25 | 1 | 72,100,256 | 72,100,256 | 1 | true | 2022-05-03T13:26:58.620Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Saving array elements in CSV format in Python<p>I would like to save the elements of <code>I</code> in a CSV format. The current and desired outputs are atta... |
72,100,462 | Realtime Database Web: Is it possible to only get values?<p>I have a realtime db entries as shown below:</p>
<pre><code>{
<FIREBASE_GENERATED_KEY>:{username:<NAME>,message:<TEXT>,time:<TIMESTAMP>},
<FIREBASE_GENERATED_KEY>:{username:<NAME>,message:<TEXT>,time:&l... | <p>The Firebase Realtime Database always returns complete nodes from the JSON, or a set of complete child nodes that math a certain condition. There is no way to get a subset of the properties for each child node.</p>
<p>If you find yourself regularly needing only the <code>time</code> property of each child node, cons... | Realtime Database Web: Is it possible to only get values? | javascript|firebase-realtime-database | 0 | 15 | 1 | 72,100,683 | 72,100,683 | 1 | true | 2022-05-03T13:52:16.963Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Realtime Database Web: Is it possible to only get values?<p>I have a realtime db entries as shown below:</p>
<pre><code>{
<FIREBASE_GENERATED_KEY&... |
72,097,848 | How to load customized NER model from disk with SpaCy?<p>I have customized NER pipeline with following procedure</p>
<pre><code>doc = nlp("I am going to Vallila. I am going to Sörnäinen.")
for ent in doc.ents:
print(ent.text, ent.label_)
LABEL = 'DISTRICT'
TRAIN_DATA = [
(
'We need to deliver it ... | <p>The general process you are following of serializing a single component and reloading it is not the recommended way to do this in spaCy. You can do it - it has to be done internally, of course - but you generally want to save and load pipelines using high-level wrappers. In this case this means that you would save l... | How to load customized NER model from disk with SpaCy? | spacy|spacy-3 | 0 | 268 | 1 | 72,100,706 | 72,100,706 | 1 | true | 2022-05-03T10:07:16.710Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to load customized NER model from disk with SpaCy?<p>I have customized NER pipeline with following procedure</p>
<pre><code>doc = nlp("I am going to... |
71,910,516 | Why does the ExtJS style not match the official web demo?<p><a href="https://i.stack.imgur.com/0s5tg.png" rel="nofollow noreferrer">This is the official demo</a></p>
<p><a href="https://i.stack.imgur.com/BG1b0.png" rel="nofollow noreferrer">This is my demo</a></p>
<p>The <em><strong>splitter element</strong></em> style... | <p>Its just the splitter. Try this and find out your personal value instead of 30.</p>
<pre><code> defaults: {
collapsible: true,
split: {width: 30, height: 30},
bodyPadding: 10
},
</code></pre> | Why does the ExtJS style not match the official web demo? | javascript|extjs | 0 | 31 | 2 | 72,100,716 | 72,100,716 | 1 | true | 2022-04-18T10:18:12.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does the ExtJS style not match the official web demo?<p><a href="https://i.stack.imgur.com/0s5tg.png" rel="nofollow noreferrer">This is the official demo... |
72,099,676 | MDRectangleFlatIconButton's text is displayed in two lines when updated with a longer text<p>Program installed in my computer :
python 3.10.4
KivyMD 1.0.0.dev0
kivy 2.1.0.</p>
<p>I want to update MDRectangleFlatIconButton's text. It changes with a new text but when the new text is longer than previous text, then the te... | <p>The <code>MDRectangleFlatIconButton</code> sets the <code>width</code> of its contained <code>MDLabel</code> based on the initial <code>text</code> and never changes that width, so adding text to that <code>MDLabel</code> is forced to add more lines. Here is a hack to work around that issue by calculating the needed... | MDRectangleFlatIconButton's text is displayed in two lines when updated with a longer text | python|kivy|kivymd | 0 | 33 | 1 | 72,101,190 | 72,101,190 | 1 | true | 2022-05-03T12:53:54.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MDRectangleFlatIconButton's text is displayed in two lines when updated with a longer text<p>Program installed in my computer :
python 3.10.4
KivyMD 1.0.0.de... |
72,100,565 | If string in require statement is over 32 bytes is it saved in 2 storage slots? Solidity<p>Let's say I have require statement like this:</p>
<p>require(owner == msg.sender, "Only owner can call this function xxxxxxxxxx");</p>
<p>The string is longer than 32 bytes so my question is if it is stored in 2 storage... | <p>Your assumption is somewhat correct. But it's not as straightforward as "one storage slot per each 32 bytes, times 2100 gas units per each slot read".</p>
<p>First of all, it's a constant, so it's included in the compiled contract bytecode (that is effectively stored in multiple storage slots). Depending o... | If string in require statement is over 32 bytes is it saved in 2 storage slots? Solidity | ethereum|solidity|cryptocurrency | 0 | 264 | 1 | 72,101,532 | 72,101,532 | 1 | true | 2022-05-03T13:59:11.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
If string in require statement is over 32 bytes is it saved in 2 storage slots? Solidity<p>Let's say I have require statement like this:</p>
<p>require(owner... |
72,099,211 | Convert .htaccess to Nginx.conf Rewrite rule<p>I have this rule which works as expected in .htaccess with Apache
<code>RewriteRule ^jobs/([A-Za-z0-9_]+)/?([A-Za-z0-9_-]+)?$ index.php?link1=jobs&page=$1&resource_id=$2 [QSA]</code>
And it will rewrite this URL <a href="http://domain.test/jobs/createcv" rel="nofo... | <p>The rewrite rule got broken during your migration from <em>Apache</em> to <em>NGINX</em> as it is missing a question mark after the second capturing group.</p>
<p>Add the <code>?</code> in the rewrite rule and it should work:</p>
<pre><code>location /jobs {
rewrite ^/jobs/([A-Za-z0-9_]+)/?([A-Za-z0-9_-]+)?$ /index... | Convert .htaccess to Nginx.conf Rewrite rule | regex|nginx|url-rewriting | 0 | 33 | 1 | 72,101,533 | 72,101,533 | 1 | true | 2022-05-03T12:12:07.277Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Convert .htaccess to Nginx.conf Rewrite rule<p>I have this rule which works as expected in .htaccess with Apache
<code>RewriteRule ^jobs/([A-Za-z0-9_]+)/?([A... |
72,001,814 | Multiple errors when importing Gradle project<p>I wanted to read the source code of a java project, so I cloned the project into a directory, and opened it in VSCode. The project used gradle as a dependency manager. None of the dependencies were downloaded, so I ran</p>
<p><code>gradle --refresh-dependencies</code></p>... | <p>After asking the project owner about this, I found that this project uses lombok annotations. Because of the weirdly formatted annotations, everything was thrown off.</p>
<p>To fix this for VSCode, which does not support these annotations by default, install the extensions for it.</p>
<p>In addition to this, if you ... | Multiple errors when importing Gradle project | java|gradle | 0 | 35 | 1 | 72,101,535 | 72,101,535 | 1 | true | 2022-04-25T15:13:46.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multiple errors when importing Gradle project<p>I wanted to read the source code of a java project, so I cloned the project into a directory, and opened it i... |
72,101,358 | Merging and appending a list of ffdf dataframes<p>I would like to read a vector of CSV files names as <code>ffdf</code> data frames and combine them into one big <code>ffdf</code> data frame. I have found solutions using other <code>r</code> packages; however, my issue is my data (combined) can reach 40GB which definit... | <p>The <code>ffdfappend()</code> function only takes two data arguments - <code>x</code> and <code>y</code>. When you provide a list, it is assuming some of the data frames are the other arguments to <code>ffdfappend()</code>. To use this function in the way you intend, you probably need to write it in a loop, someth... | Merging and appending a list of ffdf dataframes | r|ff|ffbase | 0 | 22 | 1 | 72,101,540 | 72,101,540 | 1 | true | 2022-05-03T14:56:09.223Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Merging and appending a list of ffdf dataframes<p>I would like to read a vector of CSV files names as <code>ffdf</code> data frames and combine them into one... |
72,100,189 | Accessing Data Model in UITabBarController from a Struct<p>I have an app that uses the <code>UITabBarController</code> and I have a model which I use to pass information between the various Tabs</p>
<pre><code>class BaseTBController: UITabBarController {
var title: String = ""
var valueData = Double()... | <p>This seems a bit of an odd approach. If you are adding a "helper" I would expect you'd have a data-manager class rather than using a var in the tab bar controller.</p>
<p>However, <code>tabBarController</code> is an Optional property of a view controller. If you want to access it from <em>outside</em> the ... | Accessing Data Model in UITabBarController from a Struct | ios|swift|struct|uitabbarcontroller | 0 | 29 | 1 | 72,102,329 | 72,102,329 | 1 | true | 2022-05-03T13:32:07.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Accessing Data Model in UITabBarController from a Struct<p>I have an app that uses the <code>UITabBarController</code> and I have a model which I use to pass... |
72,090,346 | Basic AutoLisp Variable, Function Passthrough<p>Okay, I seem to be having trouble passing a simple variable through to another variable in a function. I don't see what I'm doing wrong here. Why is passing the variable with a string converted to nil, but passing the raw strings remain unchanged?</p>
<pre><code>;; Main P... | <p>In line:</p>
<pre><code>(setq sResult (fcnBasic "Message 1" dirfile "Message 3" "Title"))
</code></pre>
<p>You pass variable <code>dirfile</code> which is not initialized in function <code>C:Debug01</code>. Maye somewhere is, I don't know.
You set value of variable <code>dirPath</code>... | Basic AutoLisp Variable, Function Passthrough | function|variables|autolisp | 0 | 25 | 1 | 72,102,424 | 72,102,424 | 1 | true | 2022-05-02T17:37:30.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Basic AutoLisp Variable, Function Passthrough<p>Okay, I seem to be having trouble passing a simple variable through to another variable in a function. I don'... |
72,101,883 | How to get element from a python list based on another list<p>I have a list of URLs in first_list. Now I want to get only those URLs which is meet argument_lst condition.</p>
<p>In argument_lst, I have provided some specific domain names. I only need those URLs from the first_list If they match with argument_lst.</p>
<... | <p>You can achieve it with an exception handling block,</p>
<pre><code>first_list = ['https://www.abc45f.com/r/comments/dummy_url/', 'https://dfc.com/test_test/', 'https://www.kls.com/fsdnfklns_dfdsj','https://example11.com/app/1642038659010248255/']
argument_lst = ['abc45f.com', 'example11.com', 5, 7, 8]
output_list... | How to get element from a python list based on another list | python-3.x|for-loop|if-statement|list-comprehension | 0 | 29 | 1 | 72,102,603 | 72,102,603 | 1 | true | 2022-05-03T15:35:22.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get element from a python list based on another list<p>I have a list of URLs in first_list. Now I want to get only those URLs which is meet argument_l... |
72,102,768 | Application of modified BFS/DFS on a friendship network<p>I have a very intresting problem regarding graphs and friendship networks. It is as follows:</p>
<p>A teacher wants to make sure that his students aren't cheating by making sure no pair of people who know each other get the same homework. He believes he can do t... | <p>You made a mistake -- the <code>assign either homework to v</code> goes before the loop.</p>
<p>Then every vertex in the queue will already have homework assigned, and there is never any choice as to which homework to assign to neighbors. This obviously works for all connected graphs. It's a good algorithm.</p>
<p... | Application of modified BFS/DFS on a friendship network | algorithm|graph|depth-first-search|breadth-first-search | 0 | 29 | 1 | 72,102,861 | 72,102,861 | 1 | true | 2022-05-03T16:45:41.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Application of modified BFS/DFS on a friendship network<p>I have a very intresting problem regarding graphs and friendship networks. It is as follows:</p>
<p... |
72,102,578 | Error: Objects are not valid as a React child - Location of Error?<p>I am receiving this error</p>
<blockquote>
<p>Error: Objects are not valid as a React child (found: object with keys
{class, major}). If you meant to render a collection of children, use
an array instead.</p>
</blockquote>
<p>From the error and what I... | <p>You need to set <code>getOptionLabel</code> to recognize which attribute is a label field</p>
<pre><code>getOptionLabel={option => option.class}
</code></pre>
<p><em>I'm using <code>class</code> attribute as a label field for your case</em></p>
<pre><code><Autocomplete
multiple
id="man... | Error: Objects are not valid as a React child - Location of Error? | arrays|reactjs|next.js|material-ui|children | 0 | 30 | 1 | 72,103,229 | 72,103,229 | 1 | true | 2022-05-03T16:29:33.697Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error: Objects are not valid as a React child - Location of Error?<p>I am receiving this error</p>
<blockquote>
<p>Error: Objects are not valid as a React ch... |
72,103,601 | How to filter a barchart by a "thrid" value using d3.js<p>I was able to plot a very simple barchart using D3.js version 7 that relates names with points from a dataset. In this same dataset there's a third value that I would like to use to filter the barchart.</p>
<p>I can filter it by <strong>name</strong> or <strong>... | <p>You should compare values in filter statement with "==" (double equals signs)</p>
<pre><code>rects.enter().append("rect")
.filter((d) => d.status == "ON") // This Should work now
.attr("x", (d) => x(d.name))
.attr("y", d => y(d.points))
.attr... | How to filter a barchart by a "thrid" value using d3.js | javascript|d3.js | 0 | 31 | 1 | 72,103,667 | 72,103,667 | 1 | true | 2022-05-03T18:01:30.677Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to filter a barchart by a "thrid" value using d3.js<p>I was able to plot a very simple barchart using D3.js version 7 that relates names with points from... |
72,103,770 | matplotlib slows after every pass<p>Why is my code slowing down as time goes on? When the code initially starts the loop takes ~.1 second to run. By the 90th pass I am at 1+ second. I am displaying and saving the image. I noticed if I comment out <code>fig.canvas.draw()</code> and <code>fig.canvas.flush_events()</code>... | <p>Because you are adding one image for each iteration: all the previous images are still in matplotlib buffer, and they get rendered!</p>
<p>You need to clear the buffer. Try to use this line of code before the <code>imshow</code> command:</p>
<pre><code>plt.gca().images.clear()
</code></pre> | matplotlib slows after every pass | python|matplotlib | 0 | 13 | 1 | 72,103,814 | 72,103,814 | 1 | true | 2022-05-03T18:20:21.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
matplotlib slows after every pass<p>Why is my code slowing down as time goes on? When the code initially starts the loop takes ~.1 second to run. By the 90th... |
72,103,981 | Similar objective to transposing the data but not actually<p>I've been going off of data transpose applications but I wasn't able to tweak it as I expected in order to get the following output.</p>
<p>Here is the input data:</p>
<pre><code>df = [
'| Series Name | Series ID | View Description | Year ... | <p>Here's an approach that first melts the table into long form in order to create the "Month-Year" column, and then pivots on that column.</p>
<p>After pivoting however, the columns are in alphabetical instead of date-order which you can fix with a custom sorting function after the pivot.</p>
<p>Thank you fo... | Similar objective to transposing the data but not actually | python|pandas|dataframe|numpy|transpose | 0 | 32 | 1 | 72,104,549 | 72,104,549 | 1 | true | 2022-05-03T18:37:26.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Similar objective to transposing the data but not actually<p>I've been going off of data transpose applications but I wasn't able to tweak it as I expected i... |
72,104,465 | Can you add a node in version 4.4 to the replicaset with members in 3.6 in Mongo?<p>I am planning to upgrade the existing MongoDB replicaset in version 3.6 to version 4.4.</p>
<p>I was wondering if I can add the new members in the version 4.4 to the existing replicaset (equal to the original number of members) and remo... | <p>No, MongoDB requires that you upgrade through each major version.</p>
<p>The nodes on 3.6 might not understand the replication language used by the nodes on 4.4 and vice versa.</p>
<p>MongoDB only ensures operability between adjacent versions, so 3.6 and 4.0 are sure work together in the same replica set.</p>
<p>You... | Can you add a node in version 4.4 to the replicaset with members in 3.6 in Mongo? | mongodb | 0 | 17 | 1 | 72,104,555 | 72,104,555 | 1 | true | 2022-05-03T19:20:22.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can you add a node in version 4.4 to the replicaset with members in 3.6 in Mongo?<p>I am planning to upgrade the existing MongoDB replicaset in version 3.6 t... |
72,104,590 | Spring Integration testing a Files.inboundAdapter flow<p>I have this flow that I am trying to test but nothing works as expected. The flow itself works well but testing seems a bit tricky.
This is my flow:</p>
<pre><code>@Configuration
@RequiredArgsConstructor
public class FileInboundFlow {
private final ThreadPool... | <p>First of all that <code>channel.setBeanName(XML_CHANNEL);</code> does not effect the target bean. You do this on the bean creation phase and dependency injection container knows nothing about this setting: it just does not consult with it. If you really would like to dictate an <code>XML_CHANNEL</code> for bean name... | Spring Integration testing a Files.inboundAdapter flow | testing|spring-integration|integration-testing|spring-test|spring-integration-dsl | 0 | 32 | 1 | 72,104,998 | 72,104,998 | 1 | true | 2022-05-03T19:33:11.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Integration testing a Files.inboundAdapter flow<p>I have this flow that I am trying to test but nothing works as expected. The flow itself works well ... |
72,105,005 | Mongodb aggregation. I need to filter results that matches within multiple arrays<p>I have this one query that takes to <em><strong>$in</strong></em> parameter different arrays. One is <strong>openBehaviourIds</strong>, second is <strong>closeBehaviours</strong>.
I would like to avoid duplicated code and make one query... | <p>you can use $facet operator to achieve that.</p>
<pre><code>behavioursCollection.aggregate([
{$facet:{
"openBehaviours":[
{ $match: { 'behaviourId': { $in: openBehaviourIds } } },
{
$lookup: {
from: 'colors',
localField: 'domainId',
... | Mongodb aggregation. I need to filter results that matches within multiple arrays | javascript|mongodb|aggregation | 0 | 34 | 1 | 72,105,178 | 72,105,178 | 1 | true | 2022-05-03T20:17:57.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mongodb aggregation. I need to filter results that matches within multiple arrays<p>I have this one query that takes to <em><strong>$in</strong></em> paramet... |
72,106,214 | pivot_wider() in tidyr without losing columns that are not spread<p>I know I'm missing something obvious here, but I'm not sure how to spread long-form columns wider using <code>pivot_wider</code> without losing some important columns that I <em>don't</em> want spread.</p>
<p>Toy data</p>
<pre><code>df <- tibble(id ... | <pre><code>df %>%
pivot_wider(id_cols = id:age,
names_from = time,
values_from = c(out1, out2))
</code></pre>
<p>Result</p>
<pre><code># A tibble: 2 × 9
id gender age out1_week1 out1_week2 out1_week3 out2_week1 out2_week2 out2_week3
<fct> <fct> <dbl> &l... | pivot_wider() in tidyr without losing columns that are not spread | r|tidyverse | 0 | 35 | 1 | 72,106,234 | 72,106,234 | 1 | true | 2022-05-03T22:50:19.233Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pivot_wider() in tidyr without losing columns that are not spread<p>I know I'm missing something obvious here, but I'm not sure how to spread long-form colum... |
71,915,122 | What do the number in SkiaSharp Canvas mean<p><a href="https://i.stack.imgur.com/Mqm4o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mqm4o.png" alt="enter image description here" /></a></p>
<p>I'm evaluating SkiaSharp and I realized the in the upper left corners are 2 three-digit numbers, that chan... | <p>Those aren't coming from SkiaSharp. From your <a href="https://stackoverflow.com/questions/71931853/how-to-enable-gpu-for-skiasharp-gl">other recent question</a>, you're building this into a UWP app, and those meters match the App specific frame rate counters enabled by UWP's <a href="https://docs.microsoft.com/en-u... | What do the number in SkiaSharp Canvas mean | skiasharp | 0 | 27 | 1 | 72,106,287 | 72,106,287 | 1 | true | 2022-04-18T17:36:24.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What do the number in SkiaSharp Canvas mean<p><a href="https://i.stack.imgur.com/Mqm4o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mqm... |
72,107,420 | I want to check the clicked element is this element using jQuery<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>$(document).on('click', function() {
if ($(this).is('#clickedEleme... | <p>Inside a jQuery <code>function</code> event handler, <code>this</code> will refer to the element you attached the listener to. Here, it's <code>document</code>, so that's what <code>this</code> is.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippe... | I want to check the clicked element is this element using jQuery | javascript|jquery | 0 | 30 | 1 | 72,107,438 | 72,107,438 | 1 | true | 2022-05-04T02:42:20.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to check the clicked element is this element using jQuery<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fals... |
72,104,146 | What Data is Taken Into Account when using VSBuild@1 in a Azure Devops build pipeline?<p>I have a step in my build pipeline that looks like this:</p>
<pre class="lang-yaml prettyprint-override"><code> - task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true ... | <blockquote>
<p>I'd like to copy the artifacts to the location specified in the publishUrl node of that .pubxml file. How can I access that information from within the pipeline?</p>
</blockquote>
<p>You could deploy the pipeline with the .pubxml file:</p>
<pre><code> - task: VSBuild@1
inputs:
solution: '$(so... | What Data is Taken Into Account when using VSBuild@1 in a Azure Devops build pipeline? | visual-studio|azure-devops|yaml | 0 | 31 | 1 | 72,109,460 | 72,109,460 | 1 | true | 2022-05-03T18:52:39.550Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What Data is Taken Into Account when using VSBuild@1 in a Azure Devops build pipeline?<p>I have a step in my build pipeline that looks like this:</p>
<pre cl... |
72,054,267 | Spring Boot Azure AD custom roles<p>I have this vanilla spring boot/azure/starter app, connecting to our internal azure service.
<a href="https://docs.microsoft.com/de-de/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory" rel="nofollow noreferrer">https://docs.micr... | <blockquote>
<p><strong>Spring Boot Azure AD custom roles</strong></p>
</blockquote>
<p>Please follow below link it has detail explanation about:</p>
<ul>
<li><p>Register web API application and configure API scope</p>
</li>
<li><p>Assign these roles for the user</p>
</li>
<li><p>Register client application in Azure AD... | Spring Boot Azure AD custom roles | spring-boot|azure|spring-security|azure-active-directory | 0 | 540 | 2 | 72,109,965 | 72,109,965 | 1 | true | 2022-04-29T07:28:54.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Boot Azure AD custom roles<p>I have this vanilla spring boot/azure/starter app, connecting to our internal azure service.
<a href="https://docs.micros... |
72,109,967 | Is it possible to insert a variable as a parameter of startsWith()?<pre><code>`<div class="wrapper">
<div class="one">
<wcs-select [(ngModel)]="SelectedSerie" placeholder="Série" id="leselectg">
<ng-container *ngFor="let... | <p>You can use string template literals, here is example:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const tmp = 'test';
console.log('testing string'.startsWith(`${tmp}`)... | Is it possible to insert a variable as a parameter of startsWith()? | angular|typescript | 0 | 30 | 1 | 72,110,217 | 72,110,217 | 1 | true | 2022-05-04T08:30:18.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it possible to insert a variable as a parameter of startsWith()?<pre><code>`<div class="wrapper">
<div class="one">
... |
72,109,892 | How to update exists value (type: string) to array of ojbect and object in mongoDB?<p>I have following documents:</p>
<pre><code>[
{
"_id": "6245131fdbcda3639d75c951",
"username": "joy",
"description": "description english",
"product_cod... | <p>Use <a href="https://www.mongodb.com/docs/manual/tutorial/update-documents-with-aggregation-pipeline/" rel="nofollow noreferrer">update-documents-with-aggregation-pipeline</a></p>
<pre><code>db.collection.update({},
[
{
$set: {
description: {
description_en: "$description",
desc... | How to update exists value (type: string) to array of ojbect and object in mongoDB? | mongodb | 0 | 29 | 1 | 72,110,415 | 72,110,415 | 1 | true | 2022-05-04T08:23:55.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to update exists value (type: string) to array of ojbect and object in mongoDB?<p>I have following documents:</p>
<pre><code>[
{
"_id": &... |
72,110,315 | Is there an R function that can replace data that contains certain characters?<p>What I have is something like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Contact</th>
<th>ID Number</th>
</tr>
</thead>
<tbody>
<tr>
<td>Me@email</td>
<td>576489</td>
</tr>
<tr>
<td>You@memail</td>
<... | <p>You can do:</p>
<pre class="lang-r prettyprint-override"><code>df[] <- lapply(df, function(x) ifelse(grepl("@|\\d", x), "Yes", x))
df
#> Contact ID Number
#> 1 Yes Yes
#> 2 Yes Yes
#> 3 Yes Yes
#> 4 Yes ---
</code></pre>
<hr />
<p><stro... | Is there an R function that can replace data that contains certain characters? | r|dataframe|replace | 0 | 24 | 2 | 72,110,488 | 72,110,488 | 1 | true | 2022-05-04T08:58:10.497Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there an R function that can replace data that contains certain characters?<p>What I have is something like this:</p>
<div class="s-table-container">
<tab... |
72,110,651 | Format specific datetime string to datetime datatype in SQL Server<p>I have a string which stands for a specific format of datetime.
Format: <strong>yyyymmddhhmmss</strong>
For example: 20220504111621</p>
<p>I want it to convert to a SQL Server datetime datatype: <strong>yyyy-mm-dd hh:mm:ss</strong> (Format 120)</p>
<p... | <p>Lots of ways, you could use <code>stuff</code> to format the string and convert:</p>
<pre><code>declare @string varchar(15)='20220504111621'
select Convert(datetime,Stuff(Stuff(Stuff(@string,9,0,' '),12,0,':'),15,0,':'),112)
</code></pre> | Format specific datetime string to datetime datatype in SQL Server | sql|sql-server|datetime | 0 | 25 | 1 | 72,110,713 | 72,110,713 | 1 | true | 2022-05-04T09:24:17.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Format specific datetime string to datetime datatype in SQL Server<p>I have a string which stands for a specific format of datetime.
Format: <strong>yyyymmdd... |
72,110,620 | How can I write an assert function to assert a discriminated union type?<p>I have a discriminated union:</p>
<pre class="lang-js prettyprint-override"><code>type State =
{ tag: "A", /* other props */ }
| { tag: "B", /* other props */ }
</code></pre>
<p>Now I have a piece of code that can only ... | <p>This can be done using <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions" rel="nofollow noreferrer">assertion functions</a>.</p>
<pre><code>type State =
{ tag: "A", /* other props */ }
| { tag: "B", /* other props */ }
function asse... | How can I write an assert function to assert a discriminated union type? | typescript | 0 | 34 | 1 | 72,110,851 | 72,110,851 | 1 | true | 2022-05-04T09:22:03.743Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I write an assert function to assert a discriminated union type?<p>I have a discriminated union:</p>
<pre class="lang-js prettyprint-override"><code>... |
72,103,145 | Using Rest Assured to test vs using Rest Assured & TestNG. Can someone explain the difference between the two?<p>They both appear to be effectively doing the same thing. I messed around with it and used different values, and I was getting pass/fail correctly for both.</p>
<pre><code> @Test
public static void test_... | <p>There are a few differences between the two which become more obvious when you work with Rest Assured's built in assertions for a while.</p>
<p>Need to check the response body quickly and clearly? There are Hamcrest matchers for that.</p>
<p>Keeping the request and its assertions together in one big method chain als... | Using Rest Assured to test vs using Rest Assured & TestNG. Can someone explain the difference between the two? | api|rest|testing|automation|testng | 0 | 22 | 1 | 72,111,010 | 72,111,010 | 1 | true | 2022-05-03T17:19:08.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using Rest Assured to test vs using Rest Assured & TestNG. Can someone explain the difference between the two?<p>They both appear to be effectively doing the... |
72,113,140 | Mongoose get multiple collection data using query<p>I am trying to join two mongoose collection and fetch all related details using the query which i have mention below. Problem is I am getting only one table details <code>employee collection</code> not able get two collection detail when I call <code>GetEmployeeDetail... | <p>Try to change your <code>GetEmployeeDetails</code> method like this:</p>
<pre><code>async function GetEmployeeDetails(emp_id) {
try {
let employee_info = await Storage.employeeInfo
.find({ employee_id: emp_id })
.populate('client')
.exec(function (err, block) {
if (err) console.log('%... | Mongoose get multiple collection data using query | node.js|mongodb|mongoose|mongoose-schema | 0 | 31 | 1 | 72,113,179 | 72,113,179 | 1 | true | 2022-05-04T12:38:09.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mongoose get multiple collection data using query<p>I am trying to join two mongoose collection and fetch all related details using the query which i have me... |
72,112,604 | Bootstrap 5 Radio toggle buttons btn-check with btn-sm class<p>I'm trying to use the <strong>btn-check</strong> class along with <strong>btn-sm</strong> to get smaller buttons but it ignores the small class. Am I missing something or is there another way to make the buttons smaller?</p>
<p><div class="snippet" data-lan... | <p>Here you go...</p>
<ol>
<li>Remove the <code>btn-sm</code> class from <code><input></code> elements.</li>
<li>Add the <code>btn-sm</code> class to the <code><div class="btn-group col-6" role="group"></code> and all three <code><label></code> elements.</li>
</ol>
<p>See the snipp... | Bootstrap 5 Radio toggle buttons btn-check with btn-sm class | radio-button|bootstrap-5 | 0 | 287 | 1 | 72,113,730 | 72,113,730 | 1 | true | 2022-05-04T11:59:50.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Bootstrap 5 Radio toggle buttons btn-check with btn-sm class<p>I'm trying to use the <strong>btn-check</strong> class along with <strong>btn-sm</strong> to g... |
72,113,556 | How to allow selected points and confidence intervals to display on graph?<p>I have a dataset with species <code>SP1 and SP2</code> and abiotic variables <code>AB1 and AB2</code>. I want to plot all of them on the graph but with modifications</p>
<ul>
<li><p>Points: Display on SP1 and SP2 but NOT the AB1 and AB2 points... | <p>You can achieve this by passing filtered versions of the data frame to each layer:</p>
<pre class="lang-r prettyprint-override"><code>ggplot(df, aes(x = level, y = var.val, col = var, group = var)) +
geom_point(aes(fill = var), colour="white",pch=21, size=4, stroke = 1,
alpha = 0.7, data = df[d... | How to allow selected points and confidence intervals to display on graph? | r|ggplot2|regression | 0 | 24 | 1 | 72,113,778 | 72,113,778 | 1 | true | 2022-05-04T13:12:34.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to allow selected points and confidence intervals to display on graph?<p>I have a dataset with species <code>SP1 and SP2</code> and abiotic variables <co... |
72,112,049 | How to implode multiple columns into one struct in spark<p>I have a spark dataframe with the following schema:</p>
<ul>
<li>headers</li>
<li>key</li>
<li>id</li>
<li>timestamp</li>
<li>metricVal1</li>
<li>metricVal2</li>
</ul>
<p>I want to combine multiple columns into one struct such that the resultant schema becomes:... | <p>You can use a <code>struct</code> to group the items.</p>
<pre><code>res26.show()
+-------+------+-----+------------+------------+
|Account|Amount|order| meteric1| meteric2|
+-------+------+-----+------------+------------+
| 643100| 10000| 1| 0| 0|
| 234100| 4000| 2| 8589934592| 85... | How to implode multiple columns into one struct in spark | apache-spark|apache-spark-sql | 0 | 266 | 2 | 72,113,862 | 72,113,862 | 1 | true | 2022-05-04T11:17:30.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to implode multiple columns into one struct in spark<p>I have a spark dataframe with the following schema:</p>
<ul>
<li>headers</li>
<li>key</li>
<li>id<... |
72,111,102 | Why using additive paramerer in Resource collection raised error?<p>In laravel 9 app I want to add additive paramerer into Resource and looking at this
<a href="https://stackoverflow.com/questions/50638257/laravel-5-6-pass-additional-parameters-to-api-resource">Laravel 5.6 - Pass additional parameters to API Resource?<... | <p>I wonder if there is a reason you can't use this approach: <a href="https://stackoverflow.com/a/51689732/8485567">https://stackoverflow.com/a/51689732/8485567</a></p>
<p>Then you can simply use the request parameters to modify your response.</p>
<p>If you really want to get that example working in that way, it seems... | Why using additive paramerer in Resource collection raised error? | laravel|laravel-resource | 0 | 30 | 1 | 72,113,975 | 72,113,975 | 1 | true | 2022-05-04T10:00:13.883Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why using additive paramerer in Resource collection raised error?<p>In laravel 9 app I want to add additive paramerer into Resource and looking at this
<a hr... |
72,113,870 | Does ActiveMQ support NTLM authentication?<p>New to ActiveMQ and didn’t find any information whether ActiveMQ supports NTLM authentication or not by explicitly searching for documentation related to configuring it to use NTLM.</p>
<p>Could anyone please advise where I can find any information about supported authentica... | <p>ActiveMQ does not support NTLM out of the box. However, ActiveMQ integrates with JAAS and supports pluggable login modules so you could theoretically still get the support you need.</p> | Does ActiveMQ support NTLM authentication? | activemq|ntlm | 0 | 27 | 1 | 72,114,292 | 72,114,292 | 1 | true | 2022-05-04T13:35:03.060Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does ActiveMQ support NTLM authentication?<p>New to ActiveMQ and didn’t find any information whether ActiveMQ supports NTLM authentication or not by explicit... |
72,113,336 | Identify rows subsequent to other rows based on criteria?<p>I am fairly new to DB2 and SQL. There exists a table of customers and their visits. I need to write a query to find visits by the same customer subsequent and within 24hr to a visit when Sale = 'Y'.</p>
<p>Based on this example data:</p>
<div class="s-table-co... | <p>Try this. You may uncomment the commented out block to run this statement as is.</p>
<pre><code>/*
WITH MYTAB (CustomerId, VisitID, Sale, DateTime) AS
(
VALUES
(1, 1, 'Y', '2021-04-23 20:16:00'::TIMESTAMP)
, (1, 3, 'N', '2021-04-23 21:16:00'::TIMESTAMP)
, (2, 2, 'N', '2021-04-24 20:16:00'::TIMESTAMP)
, (2, 4, 'Y',... | Identify rows subsequent to other rows based on criteria? | sql|db2 | 0 | 20 | 1 | 72,114,318 | 72,114,318 | 1 | true | 2022-05-04T12:53:24.247Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Identify rows subsequent to other rows based on criteria?<p>I am fairly new to DB2 and SQL. There exists a table of customers and their visits. I need to wri... |
72,114,895 | Fill matrix in pandas by grouping rows<p>I have extracted a table from a database and wish to do some topic analysis on some entries. I have created an empty matrix with unique topic names and I have duplicate rows because there are potentially multiple topics associated with each 'name' entry. Ultimately, I would like... | <p>One option is to use <code>get_dummies</code> to the dummy variables for each <code>topic_label</code>; then call <code>sum</code> in <code>groupby.transform</code> to aggregate the dummy variables for names:</p>
<pre class="lang-py prettyprint-override"><code>cols = df['topic_label'].tolist()
out = df.drop(columns=... | Fill matrix in pandas by grouping rows | python-3.x|pandas|numpy | 0 | 33 | 1 | 72,115,316 | 72,115,316 | 1 | true | 2022-05-04T14:39:20.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Fill matrix in pandas by grouping rows<p>I have extracted a table from a database and wish to do some topic analysis on some entries. I have created an empty... |
72,115,445 | Using regex in Google Apps Script to extract number before a string<p>I receive a Gmail that contains text similar to that below. I only want to extract the number immediately before the string 'symbol(s)'. In this case that number would be 233, but it and the other contents of the email vary every day.</p>
<p>ZBH ... | <p><strong>Description</strong></p>
<p>Regex is hard for most people to work with, myself included. Make your life easier. I would split the long text string into words and then search for "symbols(s)", then I know the number is just before that.</p>
<p><strong>Script</strong></p>
<pre><code>function test2(... | Using regex in Google Apps Script to extract number before a string | regex|google-apps-script | 0 | 279 | 2 | 72,115,716 | 72,115,716 | 1 | true | 2022-05-04T15:16:57.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using regex in Google Apps Script to extract number before a string<p>I receive a Gmail that contains text similar to that below. I only want to extract the ... |
72,114,835 | Show shiny notification in sidebar<p>In the example below, the 'Selections Saved' notification appears in the bottom-right corner of the application. Instead I would like it to appear in the sidebar (either directly under the action button, or simply at the bottom left of the side-bar):</p>
<pre><code>## app.R ##
libra... | <p>Have you tried to just change the percentages?</p>
<pre><code># bottom-left
custom_notes <- HTML(
"
.shiny-notification {
position: fixed;
top: calc(0%);
left: calc(100%);
}
"
)
</code></pre>
<p>And them put <code>tags$head(tags$style(custom_notes))</code> inside <code>ui</code>, bef... | Show shiny notification in sidebar | r|shiny | 0 | 30 | 1 | 72,115,780 | 72,115,780 | 1 | true | 2022-05-04T14:36:36.063Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Show shiny notification in sidebar<p>In the example below, the 'Selections Saved' notification appears in the bottom-right corner of the application. Instead... |
72,109,973 | How can I use the value of a variable in a class to set the value of another variable in the same class<p>The code below doesn't work instead it shows what i want to achieve.</p>
<p>As you can see I want to set <code>text</code> to use the color that <code>color</code> is set to.</p>
<pre class="lang-dart prettyprint-o... | <p>You can't access the instance variable before the object is created, but you <em>can</em> reference the parameter in the initializer list:</p>
<pre class="lang-dart prettyprint-override"><code>class AppThemeModal{
AppThemeModal({required this.color})
: text = TextStyle(color: color);
final Color color;
... | How can I use the value of a variable in a class to set the value of another variable in the same class | dart | 0 | 22 | 1 | 72,116,022 | 72,116,022 | 1 | true | 2022-05-04T08:30:31.077Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I use the value of a variable in a class to set the value of another variable in the same class<p>The code below doesn't work instead it shows what i... |
72,116,149 | Use a variable with extends in Djano<p>I want to create a Django project with dynamic template (theme). I defined my active template name in setting.py like below.</p>
<pre><code># GLOBAL VARIABLE FOR TEMPLATE
ACTIVE_TEMPLATE = "presento"
</code></pre>
<p>I want to use this variable in my project. For example... | <pre><code>{% extends "frontend/"|add:ACTIVE_TEMPLATE|add:"/base/base.html" %}
</code></pre> | Use a variable with extends in Djano | python|html|django | 0 | 27 | 1 | 72,116,239 | 72,116,239 | 1 | true | 2022-05-04T16:09:59.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use a variable with extends in Djano<p>I want to create a Django project with dynamic template (theme). I defined my active template name in setting.py like ... |
72,116,265 | How to fix group by logic in subquery?<p>I have the following 2 example queries plus their result tables (dummy data) below:</p>
<pre><code>SELECT
subs.Region
,subs.Product
,SUM(p.Price) TotalPriceA
FROM dbo.submission_dtl subs
JOIN dbo.price_dtl p ON subs.SubmissionNumber = p.Submission... | <p>You can try to use two subquery before <code>join</code></p>
<pre><code>SELECT t1.Region,
t1.Product,
t2.TotalPriceA,
t1.TotalPriceB
FROM (
SELECT
r.Region
,r.Product
,SUM(rp.Price) TotalPriceB
FROM dbo.report_dtl r
JOIN dbo.report_price rp ON r.SubmissionNumb... | How to fix group by logic in subquery? | sql|sql-server | 0 | 35 | 2 | 72,116,342 | 72,116,342 | 1 | true | 2022-05-04T16:19:34.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to fix group by logic in subquery?<p>I have the following 2 example queries plus their result tables (dummy data) below:</p>
<pre><code>SELECT
su... |
72,116,015 | How to fix Heroku deployment error in SprinBoot<p>Hi i have an Springboot application and i want to deploy it but when try to deploy from heroku CLI i get this error and i am new into this i don't know how to fix this. I have to solve this problem until tomorrow but i don't know what should i do . This is what i get in... | <p>SOLVED.</p>
<p>I added System.properties file:</p>
<pre><code>java.runtime.version=11
</code></pre> | How to fix Heroku deployment error in SprinBoot | xml|spring-boot|maven|heroku|deployment | 0 | 28 | 1 | 72,116,393 | 72,116,393 | 1 | true | 2022-05-04T15:59:28.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to fix Heroku deployment error in SprinBoot<p>Hi i have an Springboot application and i want to deploy it but when try to deploy from heroku CLI i get th... |
72,116,106 | Search for a list in a list and insert it into the map<p>My class is a</p>
<pre><code>class Movie
{
private String title;
private int year;
private List<String> actorsSurnames;
}
</code></pre>
<p>I want to create a query in the repository:</p>
<pre><code>Map<String,List<String>> findByActorsSurnames... | <p>Based on <a href="https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#appendix.query.return.types" rel="nofollow noreferrer">Documentation</a>, supported return type don't have Map except for <a href="https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.collections-and-ite... | Search for a list in a list and insert it into the map | java|spring|jpa|spring-data-jpa|spring-data | 0 | 33 | 1 | 72,116,459 | 72,116,459 | 1 | true | 2022-05-04T16:05:48.247Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Search for a list in a list and insert it into the map<p>My class is a</p>
<pre><code>class Movie
{
private String title;
private int year;
private List<... |
72,115,969 | Append a link when text overflowing parent<p>I'm using Ajax to get comments. Comment text is treated as max-height:90px by default. When importing comments, I want to attach a link if the text length is longer than the parent element.
The code below doesn't work well.
It works imperfectly.
All comments have a link or ... | <p><a href="https://stackoverflow.com/a/6406886/4031083">Based on this SO answer</a>. You can check if the text is bigger than your container and append <code>more</code> link to your <code>HTML</code>.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snip... | Append a link when text overflowing parent | javascript|ajax | 0 | 32 | 1 | 72,116,580 | 72,116,580 | 1 | true | 2022-05-04T15:55:14.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Append a link when text overflowing parent<p>I'm using Ajax to get comments. Comment text is treated as max-height:90px by default. When importing comments, ... |
72,115,273 | Extracting the third part of a string to a new column only if it exists<p>I have data as follows:</p>
<h1>Data</h1>
<pre><code>library(dplyr)
dat_in_one <- structure(list(rn = c("Type_A", "Type_B"
), `[0,25)` = c(5L, 0L), `[25,50)` = c(0L, 0L), `[25,100)` = c(38L,
3L), `[50,100)` = c(0L, 0L), `[... | <p>How about this:</p>
<pre class="lang-r prettyprint-override"><code>dat_in_one <- structure(list(rn = c("Type_A", "Type_B"
), `[0,25)` = c(5L, 0L), `[25,50)` = c(0L, 0L), `[25,100)` = c(38L,
3L), `[50,100)` = c(0L, 0L), `[100,250)`... | Extracting the third part of a string to a new column only if it exists | r|string|dplyr|extract|tidyr | 0 | 32 | 1 | 72,116,622 | 72,116,622 | 1 | true | 2022-05-04T15:05:15.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extracting the third part of a string to a new column only if it exists<p>I have data as follows:</p>
<h1>Data</h1>
<pre><code>library(dplyr)
dat_in_one <... |
72,117,001 | How to check whether a path is in another path using Pathlib?<p>I'm trying to find a readable way to check whether a path is within another path across more than a single level. I can check the immediate parent, but not beyond that so far.</p>
<pre><code>import pathlib
path1 = pathlib.Path('/a/b')
path2 = pathlib.Path... | <p>Path instances have a <a href="https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.parents" rel="nofollow noreferrer"><code>parents</code></a> attribute that contains a sequence of all ancestors. You can test whether one path is 'in another path' by testing whether it is an ancestor of the other path.</p... | How to check whether a path is in another path using Pathlib? | python-3.x|pathlib | 0 | 31 | 1 | 72,117,102 | 72,117,102 | 1 | true | 2022-05-04T17:15:31.077Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to check whether a path is in another path using Pathlib?<p>I'm trying to find a readable way to check whether a path is within another path across more ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.