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,213,969 | R - Including two y-axis in ggplot<p>Could anyone help me to add a second y-axis in ggplot or alternatively combine the two separate ggplots I have made? (R-code attached)</p>
<p>The data:
Dataframe = Deals1 include three columns (Year = Date, Number of transactions each year = N, and total transaction value each year ... | <p>A secondary axis in ggplot is just an inert annotation drawn on to the side of the plot. It does not affect what is on the actual plot panel in any way.</p>
<p>In your case, if you plot both the bars and the line on the same panel, you can't see the bars because the line is 1,000 times larger than them.</p>
<p>To us... | R - Including two y-axis in ggplot | r|ggplot2 | 0 | 65 | 1 | 72,214,743 | 72,214,743 | 0 | true | 2022-05-12T10:28:52.227Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R - Including two y-axis in ggplot<p>Could anyone help me to add a second y-axis in ggplot or alternatively combine the two separate ggplots I have made? (R-... |
72,228,999 | How to apply slope plot R code to another data<p>I have dataframe which represents sales by model within 2 different years. 'change' column stands for absolute change by models from 2020 to 2021 while 'chng.percent' measures this change in percentages.
However, I am struggling to apply the given <a href="https://www.re... | <p>Here's a way to do it all within ggplot using your existing data:</p>
<pre class="lang-r prettyprint-override"><code>ggplot(df, aes(year, sale, color = model)) +
geom_line(arrow = arrow(type = "closed", angle = 20),
key_glyph = draw_key_point) +
geom_vline(aes(xintercept = year)) +
geom_t... | How to apply slope plot R code to another data | r|ggplot2|plotly|tidyverse|data-visualization | 0 | 69 | 2 | 72,230,706 | 72,230,706 | 0 | true | 2022-05-13T11:40:44.587Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to apply slope plot R code to another data<p>I have dataframe which represents sales by model within 2 different years. 'change' column stands for absolu... |
72,211,975 | Plotly: Update all yaxes fonts and give individual scale using preset layout<p>I have a dataset df = ['Group', 'subgroup', 'x', 'y'], for which I would like to</p>
<ul>
<li>plot scatter x vs y- (Done)</li>
<li>color = subgroup (Done)</li>
<li>facet_rows = Group (Done)</li>
</ul>
<p>Now I would like to <strong>update t... | <p>The subplot settings in plotly are assigned in order: xaxis,xaxis2,xaxis3, and so on. y-axis is the same. Therefore, you need to add yaxis2 to your own layout. <code>fig.layout</code> allows you to visualize the structure of the graph in a dictionary format.</p>
<pre><code>import plotly.graph_objects as go
import pl... | Plotly: Update all yaxes fonts and give individual scale using preset layout | python|pandas|plotly | 0 | 204 | 1 | 72,212,617 | 72,212,617 | 0 | true | 2022-05-12T07:58:46.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Plotly: Update all yaxes fonts and give individual scale using preset layout<p>I have a dataset df = ['Group', 'subgroup', 'x', 'y'], for which I would like ... |
72,180,804 | Same random number every time even after seeding<p>Today, I noticed that the same random number is being generated every time in a specific part of a program I am working on. My assumption was that it wasn't getting seeded properly, but it appears that it is.</p>
<p>I reduced the issue down to the simplest code possibl... | <p>It appears that this question duplicates <a href="https://stackoverflow.com/questions/7866754/why-does-rand-7-always-return-0">this one</a>. Essentially, the issue is a the random number generator is a <a href="http://en.wikipedia.org/wiki/Linear_congruential_generator" rel="nofollow noreferrer">Linear Congruential ... | Same random number every time even after seeding | c|random | 0 | 78 | 1 | 72,180,959 | 72,180,959 | 0 | true | 2022-05-10T04:36:05.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Same random number every time even after seeding<p>Today, I noticed that the same random number is being generated every time in a specific part of a program... |
72,068,570 | Regex for a replacing all special characters that are wrapped by normal characters<p>The following code snippet doesn't seem to work. I want "This$#is" to be changed to "This is" whereas "This$#" should remain as "This$#" since it does not have normal characters at the end.</p>
... | <p>You can match 1 or more repetitions of the character class and assert a char a-z to the right:</p>
<pre><code>[$#]+(?=[A-Za-z])
</code></pre>
<p>See the match on <a href="https://regex101.com/r/8LpoCw/1" rel="nofollow noreferrer">regex101</a>.</p>
<pre><code>import re
script = "This$#is\nThis$#"
sc = re.s... | Regex for a replacing all special characters that are wrapped by normal characters | python|regex | 0 | 29 | 1 | 72,068,594 | 72,068,594 | 0 | true | 2022-04-30T12:33:18.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Regex for a replacing all special characters that are wrapped by normal characters<p>The following code snippet doesn't seem to work. I want "This$#is&q... |
72,184,245 | Automated Script to Rename and Resize jpg Images<p>I have a bit of a difficult problem to solve.</p>
<p>I have a folder that contains a large amount of image files, and new image files are added daily (all JPG) that are named in a way that ensures there are no duplicates. The file names never change.</p>
<p>I need a wa... | <p>In Imagemagick 6 on Windows, you can do a FOR loop over each file in your folder and do:</p>
<pre><code>convert image.suffix ^
( +clone -resize 400x400 +write path_to_folder1/image.suffix ) ^
( +clone -resize 200x200 +write path_to_folder2/image.suffix ) ^
( +clone -resize 100x100 +write path_to_folder3/image.suffix... | Automated Script to Rename and Resize jpg Images | image|resize|imagemagick|rename|irfanview | 0 | 83 | 1 | 72,188,906 | 72,188,906 | 0 | true | 2022-05-10T09:58:05.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Automated Script to Rename and Resize jpg Images<p>I have a bit of a difficult problem to solve.</p>
<p>I have a folder that contains a large amount of image... |
72,153,613 | Is there a way i can loop coin prices from FTX, i am getting error<p><strong>I want to get the values when i run the code by looping them but i am getting errors</strong></p>
<pre><code>key = 'https://ftx.com/api/markets'
currencies = ['BNB', 'AVAX', 'DOT', 'LTC', 'BCH']
# base_currency = 'ETH'
quote_currency = 'USD'... | <p>You need to construct the URL with its 3 component parts - i.e., the base URL, currency and quote currency. Always a good idea to do some validation.</p>
<pre><code>import requests
import json
currencies = ['BNB', 'AVAX', 'DOT', 'LTC', 'BCH']
quote_currency = 'USD'
url = 'https://ftx.com/api/markets'
for currency ... | Is there a way i can loop coin prices from FTX, i am getting error | python | 0 | 31 | 1 | 72,154,418 | 72,154,418 | 0 | true | 2022-05-07T14:49:33.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way i can loop coin prices from FTX, i am getting error<p><strong>I want to get the values when i run the code by looping them but i am getting er... |
72,158,971 | 2D Math Matrix with Malloc<p>I know a similar question is already asked here for example:</p>
<p><a href="https://stackoverflow.com/questions/36890624/malloc-a-2d-array-in-c">Malloc a 2D array in C</a></p>
<p>However, my question is not how to create one but rather if I should prefer to use for a mathematical 2D matrix... | <p>I think the only case it can be important is when you are doing operations that depends on the neighbors of the matrix. In this case, using a 2D matrix is a bit better because it avoids cache misses.</p>
<p>This is specially important for problem solutions that use dynamic programming optimization .</p>
<p>I believe... | 2D Math Matrix with Malloc | arrays|c|matrix|malloc|dynamic-memory-allocation | 0 | 41 | 1 | 72,159,021 | 72,159,021 | 0 | true | 2022-05-08T07:35:36.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
2D Math Matrix with Malloc<p>I know a similar question is already asked here for example:</p>
<p><a href="https://stackoverflow.com/questions/36890624/malloc... |
72,163,976 | Replace variables values and save in the same text file<p>I have 200 text files that contains 133 lines (first one is the header) and 9 columns each. What I am trying to do is to multiply all the values of the E-Amp and N-amp columns by 10, and replace the old values by the new ones in the same file, and save in the sa... | <pre><code>lines = []
#Read the file and save in memory
with open('file.txt', 'r') as f:
for line in f:
lines.append(line.split())
#Do the modification
is_first_line = True
for line in lines:
if is_first_line:
is_first_line = False
continue
line[3] = str(10*float(line[3])... | Replace variables values and save in the same text file | python | 0 | 51 | 2 | 72,164,144 | 72,164,144 | 0 | true | 2022-05-08T18:22:59.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Replace variables values and save in the same text file<p>I have 200 text files that contains 133 lines (first one is the header) and 9 columns each. What I ... |
72,144,930 | Change item control property of checked listview item Xamarin.Forms<p>Hy,
I am trying to show a comment input if the item checkbox is checked and hide it else, i have this XAML</p>
<pre><code><ListView ItemsSource="{Binding TaskItems}" x:Name="TasksItems" HasUnevenRows="True" VerticalSc... | <p>First add the event.</p>
<pre><code><input:CheckBox Type="Box" IsChecked="{Binding TaskChecked , Mode=TwoWay}" CheckedChanged="OnCheckBoxCheckedChanged"/>
</code></pre>
<p>Add Name for the second stack</p>
<pre><code><StackLayout x:Name="StackLayoutEntry" Grid.Column=... | Change item control property of checked listview item Xamarin.Forms | xamarin|xamarin.forms|listviewitem | 0 | 78 | 1 | 72,146,297 | 72,146,297 | 0 | true | 2022-05-06T16:47:54.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change item control property of checked listview item Xamarin.Forms<p>Hy,
I am trying to show a comment input if the item checkbox is checked and hide it els... |
72,175,025 | Hive can't access tables after Spark recreates my orc stored tables<p>When I recreate a table in spark using the command displayed from <code>show create table mydb.mytable</code> I stop being able to use the table from Hive. This just happens for a few tables, the other tables I recreate still can be accessed from hiv... | <p>The problem was that some tables had too large comments. Any table that had a column with a comment with more than 1000 bytes would work in Spark, but have a broken schema when accessed from Hive.</p>
<p>I truncated comments with more 1000 bytes and everything worked fine.</p>
<p>Note that this limit is relative to ... | Hive can't access tables after Spark recreates my orc stored tables | apache-spark|hive|orc|hive-metastore | 0 | 23 | 1 | 72,192,809 | 72,192,809 | 0 | true | 2022-05-09T16:08:13.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Hive can't access tables after Spark recreates my orc stored tables<p>When I recreate a table in spark using the command displayed from <code>show create tab... |
72,147,789 | Pytest does not find my tests in Poetry project (VSCode finds)<p>I've just created my first Python package using Poetry using the usual <code>poetry new mypackage</code> command. My problem is that <code>pytest</code> does not execute any test when I run it. I'm developing using VSCode and the weird behavior is that VS... | <p><code>pytest</code> still does not work when from the activated virtual environment, but I discovered that I can execute it running:</p>
<pre><code>poetry run pytest
</code></pre>
<p>I still do not understand why it can't find the test when directly run from the command line even with the venv activated.</p> | Pytest does not find my tests in Poetry project (VSCode finds) | pytest|python-poetry | 0 | 295 | 1 | 72,193,283 | 72,193,283 | 0 | true | 2022-05-06T22:02:09.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pytest does not find my tests in Poetry project (VSCode finds)<p>I've just created my first Python package using Poetry using the usual <code>poetry new mypa... |
72,197,573 | How connection with JIRA using RESTAPI with java?<p>My task is to establish a connection to JIRA in java using RESTAPI. I'm facing an error with the SSL security certificate. I have tried many times and looked on google, but I didn't find any solution to my problem. Can anyone help me to fix this error?</p>
<p><strong>... | <p><code>HttpsURLConnection</code> is using by default the JDK trusted certificates to validate the server certificate whether it is known and trusted. If it is present over there it won't throw a <code>SSLHandshakeException</code></p>
<p>Jira has currently the following certificate chain:</p>
<p><a href="https://i.sta... | How connection with JIRA using RESTAPI with java? | java|ssl|jira-rest-api | 0 | 164 | 1 | 72,201,208 | 72,201,208 | 0 | true | 2022-05-11T08:10:36.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How connection with JIRA using RESTAPI with java?<p>My task is to establish a connection to JIRA in java using RESTAPI. I'm facing an error with the SSL secu... |
72,202,778 | Test set cookies function with Jest<p>Does someone knows how can I test this function in Jest? I don't have any ideas at this moment, maybe I need to mock Cookies ?</p>
<pre><code>import Cookies from "js-cookie";
import { v4 as uuidv4 } from "uuid";
const setUserCookie = () => {
if (!Cookies.g... | <p>Best way to test this is to utilize the actual logic, so I would change your test to the following:</p>
<pre><code>it("should set cookie", () => {
// execute actual logic
setCookie();
// retrieve the result
const resultCookie = Cookies.get();
// expects here
expect(resultCookie[&... | Test set cookies function with Jest | javascript|testing|jestjs|js-cookie | 0 | 179 | 1 | 72,204,072 | 72,204,072 | 0 | true | 2022-05-11T14:24:30.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Test set cookies function with Jest<p>Does someone knows how can I test this function in Jest? I don't have any ideas at this moment, maybe I need to mock Co... |
72,233,075 | What is an OS' HAL?<p>The hardware abstraction layer (HAL) is (AFAIK) the lowest level software within a computing system. Thus, is it a set of functions implemented in assembly language (specific for a particular processor) which are called by some routines from the OS installed "over" it? If it is so, then,... | <p>I believe it's safe to think of the HAL roughly as an I/O driver for your CPU. In any reasonable circumstance, you should expect the manufacturer of an I/O device to provide you with its driver. The same applies to a CPU and its HAL.</p>
<p>You asked:</p>
<blockquote>
<p>Or, whether it is not separate from the OS, t... | What is an OS' HAL? | kernel|hardware|device-driver|hardware-interface|hardware-programming | 0 | 47 | 1 | 72,233,205 | 72,233,205 | 0 | true | 2022-05-13T16:59:14.363Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is an OS' HAL?<p>The hardware abstraction layer (HAL) is (AFAIK) the lowest level software within a computing system. Thus, is it a set of functions imp... |
72,175,361 | How to plot a NetCDF time dependend data set with correct axis format?<p>I made a pcolormesh-plot from data in NetCDF data format. I don't manage the x- and y-axis to show the right axis ticks from the data set. Instead both axis start from zero and end with the number of points.
From the NetCDF desciption <a href="htt... | <p>In the mean time I use the package "xarray" to read in the dataset</p>
<pre><code>import xarray as xr
dataDIR = 'cdata.nc'
DS = xr.open_dataset(dataDIR)
</code></pre>
<p>Simple way to plot data is using pandas "plot".</p>
<pre><code>DS.b_r.plot()
</code></pre>
<p>More user friendly to explore dat... | How to plot a NetCDF time dependend data set with correct axis format? | python-3.x|matplotlib|netcdf | 0 | 60 | 1 | 72,287,453 | 72,287,453 | 0 | true | 2022-05-09T16:33:42.613Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to plot a NetCDF time dependend data set with correct axis format?<p>I made a pcolormesh-plot from data in NetCDF data format. I don't manage the x- and ... |
72,178,571 | Wrap all individual words in a span tag based on their first letter<p>I am trying to wrap each individual word on a webpage in a tag so I can style them individually based on their starting letter.</p>
<p>I have found this method of wrapping each word in a span tag individually, but I can't figure out how to vary the ... | <p>What you're trying to achieve can't be done with regex if you want to reference the individual words.</p>
<p>I've wrote a little snippet that uses <code>document.querySelector()</code> instead</p>
<p>outerText property on the query selector object returns a plain text string which is later converted to an array with... | Wrap all individual words in a span tag based on their first letter | javascript|html|css | 0 | 316 | 4 | 72,178,829 | 72,178,829 | 0 | true | 2022-05-09T21:54:00.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wrap all individual words in a span tag based on their first letter<p>I am trying to wrap each individual word on a webpage in a tag so I can style them ind... |
72,204,476 | Shopware6 : Admin module not updatable<p>The default functionnality of Shopware does not shows the company name when we use the search bar in the admin panel. We have some customers only filling the company field and not using the first and lastName with text (they're adding "_" instead). So, I copied the str... | <p>Apparently, it was an issue coming from somewhere else because I just copied the same files and same content on another instance and... it worked fine</p> | Shopware6 : Admin module not updatable | javascript|html|twig|shopware|administration | 0 | 75 | 2 | 72,463,582 | 72,463,582 | 0 | true | 2022-05-11T16:23:25.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Shopware6 : Admin module not updatable<p>The default functionnality of Shopware does not shows the company name when we use the search bar in the admin panel... |
72,176,308 | R to get moving averages<p>Have made some progress on this exercise but getting an argument is not numeric or logical:</p>
<p>Here is the code:</p>
<pre><code> #import libraries
library(quantmod)
library(BatchGetSymbols)
library(TTR)
library(shiny)
library(lubridate)
library(neu... | <p>This should work. The <code>roll_mean()</code> function will be much faster than the loops.</p>
<pre class="lang-r prettyprint-override"><code>library(quantmod)
library(BatchGetSymbols)
library(TTR)
library(shiny)
library(lubridate)
library(neuralnet) # Neural net library
#import the first 20 stocks
df_SP500 <-... | R to get moving averages | r | 0 | 37 | 1 | 72,176,749 | 72,176,749 | 0 | true | 2022-05-09T17:55:30.770Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R to get moving averages<p>Have made some progress on this exercise but getting an argument is not numeric or logical:</p>
<p>Here is the code:</p>
<pre><cod... |
72,235,810 | Randomizing within and across groups using group_by and sample<p>I'm running a study in which each participant will be presented with stimuli that have been randomized at two different levels: blocks (3 unique blocks) and trials (4 unique trials per block) within blocks. So I am trying to create a data frame with a pre... | <p>How about something like this:</p>
<pre class="lang-r prettyprint-override"><code>dat <- structure(list(id = c("n1", "n1", "n1", "n1", "n1", "n1", "n1",
"n1", "n1", "n1", "n1", "n1", "n2&q... | Randomizing within and across groups using group_by and sample | r|dplyr | 0 | 27 | 1 | 72,236,951 | 72,236,951 | 0 | true | 2022-05-13T22:04:09.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Randomizing within and across groups using group_by and sample<p>I'm running a study in which each participant will be presented with stimuli that have been ... |
72,144,898 | Magento 2 cron notaction - comma separated values<p>I'm trying to set up a cron job to run on <strong>last Sunday of each month at 4:00PM</strong>.</p>
<p>I came up with this:</p>
<p><a href="https://crontab.guru/#00_16_*/25,*/26,*/27,*/28,*/29,*/30,*/31_*_7" rel="nofollow noreferrer">https://crontab.guru/#00_16_<em>/2... | <p>Woops, I just had to wait a bit longer. Looks like it accepted the job.</p>
<p><a href="https://i.stack.imgur.com/MRgy8.png" rel="nofollow noreferrer">cron job created - used a current date for testing that's why its May 6</a></p> | Magento 2 cron notaction - comma separated values | xml|cron|magento2 | 0 | 58 | 1 | 72,144,989 | 72,144,989 | 0 | true | 2022-05-06T16:45:17.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Magento 2 cron notaction - comma separated values<p>I'm trying to set up a cron job to run on <strong>last Sunday of each month at 4:00PM</strong>.</p>
<p>I ... |
72,172,598 | Spring4D - When registering a type with a container is it possible to specify only the arguments you want to override in InjectConstructor()?<p>Given a type and registration of</p>
<pre><code> TTest = class
public
constructor Create(First, Second: IO; Other: TOther);
end;
GlobalContainer.Reg... | <p>This is currently not possible via the registration API but I have this on my list of things I want to implement at some point. My idea is to do it very similar to how <a href="https://docs.autofac.org/en/latest/register/parameters.html" rel="nofollow noreferrer">autofac</a> does it - no eta though I am afraid.</p>... | Spring4D - When registering a type with a container is it possible to specify only the arguments you want to override in InjectConstructor()? | delphi|dependency-injection|spring4d | 0 | 76 | 1 | 72,182,963 | 72,182,963 | 0 | true | 2022-05-09T13:15:57.810Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring4D - When registering a type with a container is it possible to specify only the arguments you want to override in InjectConstructor()?<p>Given a type ... |
72,152,219 | How to sort sum up all values from object arrays inside react props<p>I would like to sort three top rated posts. The current function of displaying three post titles and their rating, but I can not sort them by best rating. Please help.</p>
<pre><code> {posts.slice(0, 3).map((p)=> (
<p clas... | <p>I don't recommend to do the sorting in the render function.</p>
<p>(Because you have to compute the overall rate for each post.)</p>
<p>Instead, you can first calculate the ratings and sort them. then show them on the render.</p>
<pre><code>const [topPosts, setTopPosts] = useState([]);
useEffect(() => {
// copy... | How to sort sum up all values from object arrays inside react props | javascript|arrays|reactjs | 0 | 34 | 2 | 72,152,451 | 72,152,451 | 0 | true | 2022-05-07T11:53:05.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to sort sum up all values from object arrays inside react props<p>I would like to sort three top rated posts. The current function of displaying three po... |
72,208,770 | pandas concatenate multiple columns together with pipe while skip the empty values<p>hi I want to concatenate multiple columns together using pipes as connector in pandas python and if the columns is blank values then skip this columns.</p>
<p>I tried the following code, it does not skip the values when its empty, it w... | <pre><code>cols = ['fl_predir','fl_prim_range','fl_prim_name','fl_addr_suffix','fl_postdir','fl_unit_desig','fl_sec_range','fl_st','fl_fips_county','blk']
df['key'] = df[cols].apply(lambda row: '|'.join(x for x in row if x), axis=1, raw=True)
</code></pre> | pandas concatenate multiple columns together with pipe while skip the empty values | python|pandas|concatenation | 0 | 35 | 2 | 72,208,792 | 72,208,792 | 0 | true | 2022-05-11T23:57:47.580Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pandas concatenate multiple columns together with pipe while skip the empty values<p>hi I want to concatenate multiple columns together using pipes as connec... |
72,219,537 | Cumulative sum of grouped columns in Powerquery, PowerBI, Dax<p>I have a column name date, product name, customer name, sale value, sum of sale value based on product name and date, percentage of sales which is sale value / sum of sale value. What i want is function like = if(product name = product name, percentage of ... | <p>In powerquery/M what you are looking for is a cumulative sum of the <strong>sale%</strong> column after grouping on <strong>date</strong> and <strong>Product Type</strong></p>
<pre><code>let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(S... | Cumulative sum of grouped columns in Powerquery, PowerBI, Dax | excel|powerbi|dax|powerquery|powerbi-desktop | 0 | 370 | 1 | 72,220,931 | 72,220,931 | 0 | true | 2022-05-12T17:00:04.190Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cumulative sum of grouped columns in Powerquery, PowerBI, Dax<p>I have a column name date, product name, customer name, sale value, sum of sale value based o... |
72,159,331 | How to fix this dialog spam on my page? - JavaScript<p>I wanted to make a function that asks you if you really wanna leave the page when you try to leave, but where ever I press on my page it asks me this instead only when I try to leave, how do I fix it</p>
<p><em>The code:</em></p>
<pre><code>document.addEventListene... | <p>You can use this code instead :-</p>
<pre><code>window.onbeforeunload = function(e) {
return "Do you want to exit this page?";
};
</code></pre>
<p><strong>Note :- This would not work until the user interact with the web page</strong></p> | How to fix this dialog spam on my page? - JavaScript | javascript | 0 | 57 | 2 | 72,159,398 | 72,159,398 | 0 | true | 2022-05-08T08:36:48.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to fix this dialog spam on my page? - JavaScript<p>I wanted to make a function that asks you if you really wanna leave the page when you try to leave, bu... |
72,161,121 | Sort objects by numbers In the string<p>I am writing a program where objects contain numbers in the strings as following</p>
<p>Asian Handicap (1-3)</p>
<p>Asian Handicap (1-1)</p>
<p>Asian Handicap (0-1)</p>
<p><code>I want to sort it as follow</code></p>
<p>Asian Handicap (0-1)</p>
<p>Asian Handicap (1-1)</p>
<p>Asia... | <ol>
<li>You do not make a copy of the object, so any manipulation of the nested content will change the original.</li>
<li>If you do not NEED a copy, you do not need to map but can use forEach</li>
</ol>
<p>You seem to want to sort ascending</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="tr... | Sort objects by numbers In the string | javascript | 0 | 58 | 1 | 72,161,368 | 72,161,368 | 0 | true | 2022-05-08T12:44:21.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sort objects by numbers In the string<p>I am writing a program where objects contain numbers in the strings as following</p>
<p>Asian Handicap (1-3)</p>
<p>A... |
72,225,376 | Reduce javascript map change key dynamically<p>I would like to have the array in output using the input array in the reduce function.
But I can't manage to dynamically add a key like this "<code>${keyOrigin}</code>": cur.value })</p>
<p>Thanks for your help ! <3</p>
<p><div class="snippet" data-lang="js" d... | <p>You meant to do use a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#computed_property_names" rel="nofollow noreferrer">computed property name</a></p>
<pre><code>{ ...current, [cur.origin]: cur.value })
</code></pre>
<p>no need to stringify either - simplified... | Reduce javascript map change key dynamically | javascript|dictionary|reduce | 0 | 28 | 1 | 72,225,413 | 72,225,413 | 0 | true | 2022-05-13T06:38:31.900Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reduce javascript map change key dynamically<p>I would like to have the array in output using the input array in the reduce function.
But I can't manage to d... |
72,204,704 | Cookies don't work in dart but curl generated by CurlLoggerDioInterceptor works in shell<p>I have in my Flutter project APIs that use cookies and they don't work. I have enabled the interceptor that generates the curl:</p>
<p><code>CurlLoggerDioInterceptor (printOnSuccess: true)</code></p>
<p>with the following result:... | <p>With Dio is not possible, but with the following library yes:</p>
<pre><code>flutter_curl: ^0.1.1
</code></pre> | Cookies don't work in dart but curl generated by CurlLoggerDioInterceptor works in shell | dart|curl|cookies | 0 | 41 | 1 | 72,434,866 | 72,434,866 | 0 | true | 2022-05-11T16:40:14.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cookies don't work in dart but curl generated by CurlLoggerDioInterceptor works in shell<p>I have in my Flutter project APIs that use cookies and they don't ... |
72,234,892 | Check if string exists in list made with data from a csv file<p>I import data from a csv file and then store it in a list (<code>List<Customer> customers</code>). The data is added to the list by creating and adding objects. The objects are created using constructors which take the contents of the file as paramet... | <p><code>List.Contains</code> requires you to supply a customer object. As you've likely NOT overridden Equals and GetHashcode to allow two different instances of customer to be considered equal, it's probably pointless to use, as it would need you to find an instance of a customer you wanted in the list, then ask the ... | Check if string exists in list made with data from a csv file | c#|string|list|type-conversion | 0 | 144 | 2 | 72,235,067 | 72,235,067 | 0 | true | 2022-05-13T20:04:01.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Check if string exists in list made with data from a csv file<p>I import data from a csv file and then store it in a list (<code>List<Customer> custome... |
72,237,316 | How to create a void method that outputs an integer and have the method divide the data passed to it by 2?<p>I'm really brand new at this and still learning C#. I've had a hard time trying to look for a good example to the assignment I'm working on.</p>
<p>So you can see exactly what I've been asked, here is the verbat... | <p>I'm not going to do your assignment but I'm happy to provide pointers for you to assemble into a solution for your assignment</p>
<p>The assignment text contains some confusing phrasing. I'd say "call the method on that number" should read "call the method, passing that number" - calling a method... | How to create a void method that outputs an integer and have the method divide the data passed to it by 2? | c#|methods|void | 0 | 272 | 2 | 72,245,864 | 72,245,864 | 0 | true | 2022-05-14T04:18:06.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create a void method that outputs an integer and have the method divide the data passed to it by 2?<p>I'm really brand new at this and still learning ... |
72,164,065 | Is there a way I can add rows of values to a dataframe in new columns, based on existing values in the dataframe?<p>I'm trying to backtest a trading strategy.</p>
<p>Columns that I already have saved as a dataframe:
'Date', 'A', 'B', 'C'</p>
<p>I am trying to create columns D, E, F, and G to the existing dataframe by p... | <p>To compute an iterative operation on 500 rows, using an explicit for loop is the easiest solution.:</p>
<pre><code>for i in range(1, n):
df.at[i, "D"] = df.at[i-1, "D"]+df.at[i-1, "G"]
df.at[i, "E"] = df.at[i, "D"]*df.at[i, "C"]
df.at[i, "F... | Is there a way I can add rows of values to a dataframe in new columns, based on existing values in the dataframe? | python|excel|pandas|back-testing | 0 | 49 | 1 | 72,164,110 | 72,164,110 | 0 | true | 2022-05-08T18:36:17.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way I can add rows of values to a dataframe in new columns, based on existing values in the dataframe?<p>I'm trying to backtest a trading strategy... |
72,161,048 | MFC Draw Stuff Outside OnPaint in a Dialog-based App<p>I'm currently trying to draw something outside OnPaint function. I know there are many duplicate questions on the internet, however, I failed to get any of them to work. This is entirely because of my lack of understanding of MFC.</p>
<p>What works inside OnPaint:<... | <p>For example:</p>
<pre><code>void CMFCApplicationDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
HDC hdc = ::GetDC(m_hWnd);
Ellipse(hdc, point.x - 10, point.y - 10, point.x + 10, point.y + 10);
::ReleaseDC(m_hWnd, hdc);
CDialogEx::OnL... | MFC Draw Stuff Outside OnPaint in a Dialog-based App | c++|visual-studio|mfc | 0 | 177 | 2 | 72,167,870 | 72,167,870 | 0 | true | 2022-05-08T12:36:33.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MFC Draw Stuff Outside OnPaint in a Dialog-based App<p>I'm currently trying to draw something outside OnPaint function. I know there are many duplicate quest... |
72,198,814 | Find IP address in multiple text files and replace it with another string in Python with regex<p>I have multiple text files as below:</p>
<p>I want to read all of the text files and find the IP value in each file and replace it with the noresult string which is available in the text and save per file in python.</p>
<p>... | <p>If the ip is always your last field you can simply do this:</p>
<pre><code>txt = txt.replace("noresult", txt.split("ip[")[-1])
</code></pre>
<p>In details, if you want to read, modify and write:</p>
<pre><code>txt = open("filename.txt", "r").read()
txt = txt.replace("nore... | Find IP address in multiple text files and replace it with another string in Python with regex | python|python-3.x|regex|numpy|python-2.7 | 0 | 63 | 1 | 72,199,254 | 72,199,254 | 0 | true | 2022-05-11T09:43:31.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find IP address in multiple text files and replace it with another string in Python with regex<p>I have multiple text files as below:</p>
<p>I want to read a... |
72,214,962 | Extract data from sdf file in bash environment<p>I want to extract data from an SDF file.</p>
<p>I want to save the <code>> <Name></code> and <code>> <SCORE.INTER></code> values in a .tsv file.
Is there any way for a quick solution e.g. via awk?
Thanks in advance.</p>
<p>The SDF file consists of tho... | <p>Using any awk:</p>
<pre><code>$ awk -v OFS='\t' '
/^>/ { tag=$2; next }
NF { f[tag]=$1 }
$0 == "$$$$" { print f["<Name>"], f["<SCORE.INTER>"] }
' file
ZINC000169748276 -41.8551
</code></pre>
<p>The above assumes a line containing <code>$$$$</code> is wh... | Extract data from sdf file in bash environment | bash|shell|awk | 0 | 82 | 3 | 72,217,316 | 72,217,316 | 0 | true | 2022-05-12T11:45:08.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extract data from sdf file in bash environment<p>I want to extract data from an SDF file.</p>
<p>I want to save the <code>> <Name></code> and <code... |
72,231,006 | NginX: catch all file outside of root dir, with exceptions<p>I'm building a site running NginX / PHP and want all access to be processed by /private/routes.php.
But I also want to add some exceptions to this for css/js-files and the odd php file in the public directory (and sub dirs).</p>
<p>Folder / file structure:</p... | <p>Your configuration is really a mess. I'm not going to explain every mistake, otherwise it will make the answer 10 times longer. It took some time for me to figure out how it can be partially workable at all. The funniest thing here is that your <code>location /test.php { ... }</code> isn't really used to handle the ... | NginX: catch all file outside of root dir, with exceptions | php|nginx|nginx-config | 0 | 106 | 1 | 72,236,309 | 72,236,309 | 0 | true | 2022-05-13T14:13:49.747Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
NginX: catch all file outside of root dir, with exceptions<p>I'm building a site running NginX / PHP and want all access to be processed by /private/routes.p... |
72,157,320 | How to prevent a Kivy Screen in Screen Manager From Loading<p>I am developing an application which uses Kivy as a framework. I am using ScreenManager to switch between groups of widgets and honestly it has gone very well as of now. My problem is that I am using OpenCV within an Image widget to disaply my webcam. When t... | <p>You can move most (if not all) of the code in your <code>__init__()</code> method of <code>MaFF</code> class to a separate method that you call from an <code>on_enter()</code> method of your <code>CameraPage</code>. And you can add some code to stop the camera updates that can be called from an <code>on_leave()</cod... | How to prevent a Kivy Screen in Screen Manager From Loading | python|kivy | 0 | 66 | 1 | 72,157,363 | 72,157,363 | 0 | true | 2022-05-08T00:42:31.750Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to prevent a Kivy Screen in Screen Manager From Loading<p>I am developing an application which uses Kivy as a framework. I am using ScreenManager to swit... |
72,215,263 | Perform stream operation on the sub-lists inside a List<List<Integer>><p>I have a <code>Student</code> class:</p>
<pre><code>public class Student {
private String name;
private String marks;
private List<Integer> percent;
}
</code></pre>
<p>There is a List defined as below in another class:</p>
<... | <p>You need to stream <strong>and</strong> collect the result separately:</p>
<pre><code>List<List<Integer>> collect = list.stream()
.map(student -> student.getPercent().stream().map(j -> j *10).collect(Collectors.toList()))
.collect(Collectors.toList());
</code></pre> | Perform stream operation on the sub-lists inside a List<List<Integer>> | java|java-stream | 0 | 53 | 2 | 72,215,481 | 72,215,481 | 0 | true | 2022-05-12T12:05:49.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Perform stream operation on the sub-lists inside a List<List<Integer>><p>I have a <code>Student</code> class:</p>
<pre><code>public class Student {
priva... |
72,154,720 | Handling click/hover events with d3.js in Analytics Dashboard LWC<p>I am currently trying to build an Analytics Dashboard LWC using the d3 library. I want to be able to listen for certain events on the SVG element, however no matter what I try it seems like that event is ignored. I initially thought that maybe it wasn'... | <p>I found out what the issue is. In Analytics Studio, the css property <code>pointer-events</code> is set to <code>none</code> by default. In order to allow the SVG to be interactive, I needed to explicitly set the pointer events css property:</p>
<pre><code> svg {
pointer-events: all;
}
</code></pre>
<p>In rec... | Handling click/hover events with d3.js in Analytics Dashboard LWC | d3.js|salesforce|salesforce-lightning|lwc | 0 | 148 | 1 | 72,165,861 | 72,165,861 | 0 | true | 2022-05-07T17:07:05.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Handling click/hover events with d3.js in Analytics Dashboard LWC<p>I am currently trying to build an Analytics Dashboard LWC using the d3 library. I want to... |
72,216,486 | Leaflet click to edit layer<p>i have polyline featuregroup on map and i want to edit layers on click.</p>
<pre><code>if (layer instanceof L.Polyline) {
const style = {
color: InvestmentConstants.colors[$ctrl.investment.sector]
};
layer.setStyle(style);
lay... | <p>According to this <a href="https://leafletjs.com/reference.html#map-event" rel="nofollow noreferrer">documentation</a> .on('click') returns a MouseEvent so this code looks wrong</p>
<pre><code> layer.on('click',(layer) => {
// layer here is a MouseEvent, not a layer
layer.enableEdit(); // MouseEvent.ena... | Leaflet click to edit layer | leaflet|leaflet.draw | 0 | 150 | 1 | 72,217,061 | 72,217,061 | 0 | true | 2022-05-12T13:27:41.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Leaflet click to edit layer<p>i have polyline featuregroup on map and i want to edit layers on click.</p>
<pre><code>if (layer instanceof L.Polyline) {
... |
72,230,387 | HTML - how to clear data validation once error has been removed<p>I am making a cloud page and have set an alphabetic data validation in html which is working fine in that a user cannot enter anything other than letters.</p>
<p>The issue I am now having is that the data validation doesn't go when the error has been cor... | <p>With <code>setCustomValidity()</code> the field is invalid. You have to clear the validation:</p>
<pre><code>oninput="setCustomValidity('')"
</code></pre>
<p>As mentioned in this documentation.
<a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity" rel="nofollow nore... | HTML - how to clear data validation once error has been removed | html|validation|salesforce-marketing-cloud | 0 | 30 | 1 | 72,230,834 | 72,230,834 | 0 | true | 2022-05-13T13:30:42.300Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
HTML - how to clear data validation once error has been removed<p>I am making a cloud page and have set an alphabetic data validation in html which is workin... |
72,197,941 | C Thread doesn't run in linux terminal<p>My program has to increment a counter strictly alternatively using 2 threads and synchronizing them using a pipe file. I know it doesn't really make sense but it's a university task. The problem works if I run it with CodeBlocks for instance but it doesn't print anything when I ... | <p>File descriptors are shared by all the threads of a process. One of your threads is closing one end of the pipe (<code>fd[0]</code>) and writing the other end of the pipe (<code>fd[1]</code>). Your other thread is closing the other end of the pipe (<code>fd[1]</code>) and reading the other end of the pipe (<code>fd[... | C Thread doesn't run in linux terminal | c|linux|multithreading|terminal | 0 | 82 | 1 | 72,198,599 | 72,198,599 | 0 | true | 2022-05-11T08:39:56.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
C Thread doesn't run in linux terminal<p>My program has to increment a counter strictly alternatively using 2 threads and synchronizing them using a pipe fil... |
72,195,845 | display a value only if none of the dependent values are nul<img src="https://i.stack.imgur.com/rFXwJ.png">
<p>I am quite new to SQL and would need some suggestions to write a query to <em>select the value of Col1 only if none of the value of status of Col2 (Col3) is null in plsql.</em>
In the above, I am expecting the... | <p>There are many ways to skin this cat but this should return you all the A2 rows:</p>
<pre><code>select *
from yourTable d
where d.col1 in (select col1
from (select col1
,sum(case when col3 is null then 1 else 0 end) null_values
from yourTable
... | display a value only if none of the dependent values are nul | sql|oracle|plsql|oracle-sqldeveloper|plsqldeveloper | 0 | 32 | 1 | 72,196,237 | 72,196,237 | 0 | true | 2022-05-11T05:28:22.727Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
display a value only if none of the dependent values are nul<img src="https://i.stack.imgur.com/rFXwJ.png">
<p>I am quite new to SQL and would need some sugg... |
72,158,370 | Laravel 7: How to Filter time from CSV file<p>I'm in the learning period of Laravel.</p>
<p>I'm trying to filter the first and last time from a column of CSV file and store it in two different column in database.</p>
<p>How to write the code for this logic.</p>
<p>I have user table where no, name, check-in, check-out c... | <p>You can take a look at laravel excel import <a href="https://docs.laravel-excel.com/3.1/imports/basics.html" rel="nofollow noreferrer">https://docs.laravel-excel.com/3.1/imports/basics.html</a>. I will give you a rough idea:</p>
<pre><code>$collection = Excel::toCollection(new UsersImport, $request->input('file')... | Laravel 7: How to Filter time from CSV file | laravel|csv|filter|laravel-filters | 0 | 124 | 1 | 72,158,697 | 72,158,697 | 0 | true | 2022-05-08T05:32:58.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Laravel 7: How to Filter time from CSV file<p>I'm in the learning period of Laravel.</p>
<p>I'm trying to filter the first and last time from a column of CSV... |
72,169,627 | How to access Laravel storage through URL?<p>I put I file in the Laravel storage, that is linked to public. How can I access this file through the URL? I get 404 back.</p>
<pre><code>Storage::disk('public')->put('foo/bar.pdf, $pdfview);
</code></pre>
<p>Links I tried, that are not working:</p>
<ul>
<li>http://localh... | <pre><code>{{asset('storage/foo/bar.pdf')}}
</code></pre>
<p>This should be one the correct way to get the url of the file. Before running this, make sure, you have run</p>
<pre><code>php artisan storage:link
</code></pre>
<p>and a shortcut link named <code>storage</code> has been created inside your public folder.</p>... | How to access Laravel storage through URL? | laravel | 0 | 395 | 1 | 72,170,143 | 72,170,143 | 0 | true | 2022-05-09T09:19:12.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to access Laravel storage through URL?<p>I put I file in the Laravel storage, that is linked to public. How can I access this file through the URL? I get... |
72,183,029 | How do I output top readers from MySql table?<p>I want to output top readers from a library management system to see who read most this year, but I am stuck with the query building.</p>
<p>I have 3 tables,</p>
<p>books</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>name</th>
</... | <p>You need to group by <code>student_id</code>, and then you need to count the total items inside that particular id.</p>
<pre><code>//here we loaded students as well as we need to know the name
//and then group by `student_id`
$book_issues = book_issue::with('student')
->where('issue_date', 'LIKE', '%' . $request... | How do I output top readers from MySql table? | php|mysql|laravel | 0 | 44 | 1 | 72,183,155 | 72,183,155 | 0 | true | 2022-05-10T08:30:38.567Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I output top readers from MySql table?<p>I want to output top readers from a library management system to see who read most this year, but I am stuck ... |
72,081,503 | Handling NaN (xsd:double) in Turtle<p>While the special value of <code>NaN</code> is in the value space of <code>xsd:double</code>, and it can be abbreviated in Turtle, Jena 4.4.0 ( <code>riot --sink</code> ) says <code>Unrecognized keyword: NaN</code>.
Is this a Jena's specification?</p>
<ol>
<li><a href="https://www.... | <p>A literal in Turtle in full form is <em>lexicalform ^^ datatype</em> .</p>
<p><code>"1.234e0"^^xsd:double</code></p>
<p>so NaN as a double is:</p>
<p><code>"NaN"^^xsd:double</code></p>
<p>There is an abbreviated form to allow most doubles, for example <code>1.234e0</code>.</p>
<pre><code>[21] ... | Handling NaN (xsd:double) in Turtle | jena | 0 | 30 | 1 | 72,083,625 | 72,083,625 | 0 | true | 2022-05-02T01:06:38.767Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Handling NaN (xsd:double) in Turtle<p>While the special value of <code>NaN</code> is in the value space of <code>xsd:double</code>, and it can be abbreviated... |
72,183,250 | ASP.NET Core Identity Added extra foreign key in AspNetUserRoles<p>There are two extra foreign keys (TheUsrId, TheRoleId) in AspNetUserRoles table as you can see in the picture below.
<a href="https://i.stack.imgur.com/G7jZj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G7jZj.png" alt="enter image ... | <p>Finally, I noticed that it was a bug in EntityFrameworkCore version 5.0.4 and After Updating to 5.0.17 the problem was solved.</p> | ASP.NET Core Identity Added extra foreign key in AspNetUserRoles | entity-framework|entity-framework-core|asp.net-identity | 0 | 169 | 2 | 72,211,341 | 72,211,341 | 0 | true | 2022-05-10T08:48:34.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ASP.NET Core Identity Added extra foreign key in AspNetUserRoles<p>There are two extra foreign keys (TheUsrId, TheRoleId) in AspNetUserRoles table as you can... |
72,214,540 | Find the type of goods that takes up the most space in the warehouse<p>I have query like this</p>
<pre><code>select StockId, ProductType, sum(ProductVolume) as ProductTypeVolume
from myTable
where InStock = 1
group by StockId, ProductType
</code></pre>
<p>with result like this</p>
<div class="s-table-container">
<table... | <p>You need <code>CTE</code>, <code>subquery</code> and <code>group by</code>:</p>
<pre><code>WITH t
AS (SELECT stockid,
producttype,
Sum(productvolume) AS ProductTypeVolume
FROM mytable
WHERE instock = 1
GROUP BY stockid,
producttyp... | Find the type of goods that takes up the most space in the warehouse | sql|sql-server|select|sum|max | 0 | 38 | 1 | 72,214,585 | 72,214,585 | 0 | true | 2022-05-12T11:14:35Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find the type of goods that takes up the most space in the warehouse<p>I have query like this</p>
<pre><code>select StockId, ProductType, sum(ProductVolume) ... |
72,220,507 | Parallelizing a code across CPU cores that iterates over a nested dictionary of a total 700K entries<p>I have the following code:</p>
<pre><code>for key in test_large_images.keys():
test_large_images[key]['avg_prob'] = 0
sum = 0
for value in test_large_images[key]['pred_probability']:
print(test_lar... | <ol>
<li>Don't use <code>sum</code> as a variable name, since it's a built in function.</li>
<li>The line <code>test_large_images[key]['avg_prob'] = 0</code> is not needed.</li>
<li>PeterK is correct that your condition doesn't need to be calculated every time in the inner for loop.</li>
<li>Why are we printing these r... | Parallelizing a code across CPU cores that iterates over a nested dictionary of a total 700K entries | python|dictionary|for-loop|parallel-processing|nested-for-loop | 0 | 60 | 1 | 72,221,005 | 72,221,005 | 0 | true | 2022-05-12T18:29:28.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Parallelizing a code across CPU cores that iterates over a nested dictionary of a total 700K entries<p>I have the following code:</p>
<pre><code>for key in t... |
72,183,229 | Matlab resample time series for specific times, rather than frequencies<p>I have the following problem in Matlab:</p>
<p>I have a time series which looks like this:</p>
<pre><code>size(ts) = (n,2); % with n being the number of samples, the first column is the time, the second the value.
</code></pre>
<p>Let's say I hav... | <p>Since your data are 1-D you can use <a href="https://ch.mathworks.com/help/matlab/ref/interp1.html" rel="nofollow noreferrer">interp1</a> to perform the interpolation. The code would work as follow:</p>
<pre class="lang-matlab prettyprint-override"><code>ts = [0, 10, 20, 30, 40; % Time/step number
1, 3, 10... | Matlab resample time series for specific times, rather than frequencies | matlab|interpolation|resampling | 0 | 119 | 1 | 72,183,978 | 72,183,978 | 0 | true | 2022-05-10T08:47:20.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Matlab resample time series for specific times, rather than frequencies<p>I have the following problem in Matlab:</p>
<p>I have a time series which looks lik... |
72,207,294 | I'm getting this "Maximum update depth exceeded." while trying to handle firebase authentication error with useEffect<p>I'm using react firebase hooks library for firebase authentication. I'm trying to handle signInWithEmailAndPassword error using useEffect but getting this infinite error. "Maximum update depth ex... | <p>The problem is that the <code>useEffect</code> will re-run whenever <code>errors</code> or <code>info</code> changes due to it depending on it: <code>[error, errors, info]</code>. So you will run into an infinite loop when you set <code>setErrors</code> or <code>setInfo</code> in there.</p>
<p>In this case the fix i... | I'm getting this "Maximum update depth exceeded." while trying to handle firebase authentication error with useEffect | reactjs|firebase-authentication | 0 | 48 | 1 | 72,213,354 | 72,213,354 | 0 | true | 2022-05-11T20:32:15.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I'm getting this "Maximum update depth exceeded." while trying to handle firebase authentication error with useEffect<p>I'm using react firebase hooks librar... |
72,074,749 | Can cd commands be used multiple times in a script?<p>I am writing a script , please confirm if I can use multiple cd commands as I have to create and cd multiple times to make the job run. So can I use it again and again.</p>
<p>I have created a small script from it to mkdir and cd in one command but its not working .... | <p>I am assuming you want a bash script to make a directory and then <code>cd</code> into it? Something similar to what is shown below will work.
You need to pass an argument to the function and to the script itself. So <code>$1</code> is the argument that you pass to the Function call when you run the script from the ... | Can cd commands be used multiple times in a script? | mkdir|cd | 0 | 31 | 1 | 72,074,884 | 72,074,884 | 0 | true | 2022-05-01T07:19:01.057Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can cd commands be used multiple times in a script?<p>I am writing a script , please confirm if I can use multiple cd commands as I have to create and cd mul... |
72,190,516 | HTML & Javascript text changing<p>i was wondering how i could do the following:</p>
<ol>
<li>I get the input from the user using form(okay fine)</li>
<li>i take that input and store it as a variable in javascript(got it).</li>
<li>The variable i just saved changes the text of another page in the website (it permanently... | <p>In my experience, the best way to store information from page-to-page is through local storage.</p>
<p>Local storage persists from page to page, while JavaScript variables are cleared out, and cookies can be un-reliable based on the response from the server they are sent too.</p>
<p>In your function that takes the u... | HTML & Javascript text changing | javascript|html|jquery | 0 | 40 | 1 | 72,190,671 | 72,190,671 | 0 | true | 2022-05-10T17:14:01.277Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
HTML & Javascript text changing<p>i was wondering how i could do the following:</p>
<ol>
<li>I get the input from the user using form(okay fine)</li>
<li>i t... |
72,221,237 | Openvpn: Server cannot ping a client which ignore redirect-gateway<p>I'm having a problem pinging from my vpn server to a client (and not the other way).</p>
<p>I have an <strong>openvpn server</strong>: <strong>10.8.0.1/16</strong>.</p>
<p>I have a <strong>client 1</strong> where all traffic is routed through the VPN:... | <p>I have found the solution:</p>
<pre><code># From my client2, to see the ping request
tcpdump icmp
# From my server, exec the ping
ping 10.8.1.3
</code></pre>
<p>On my client2, this command tells me that the ping arrives with the address 172.8.0.1. So, I have added the following line in the client2 config file:</p>
<... | Openvpn: Server cannot ping a client which ignore redirect-gateway | routes|ping|gateway|openvpn | 0 | 348 | 1 | 72,240,542 | 72,240,542 | 0 | true | 2022-05-12T19:37:12.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Openvpn: Server cannot ping a client which ignore redirect-gateway<p>I'm having a problem pinging from my vpn server to a client (and not the other way).</p>... |
72,204,545 | Replace null to None without impacting other cases | Python<p>I have JSON cases that are the following :</p>
<pre><code>case1 = '{"Data":{"Parties":[{"ID":"JackyID","Role":12}],"NbIDs":1}}'
case2 = '{"Data":{"Parties":[{"ID":"... | <p>you need to make some checks on whether your data you search for is existent or not.
In the first part you only need the <code>try</code> & <code>except</code> block if you are not sure if you have valid json data as string.</p>
<p>Then when you check for your cases you need <code>isinstance</code> to check if y... | Replace null to None without impacting other cases | Python | python | 0 | 92 | 2 | 72,212,521 | 72,212,521 | 0 | true | 2022-05-11T16:28:26.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Replace null to None without impacting other cases | Python<p>I have JSON cases that are the following :</p>
<pre><code>case1 = '{"Data":{"Par... |
72,172,040 | calls to syslog() replaced with __syslog_chk()?<p>I am trying to use <code>LD_PRELOAD</code> to intercept calls to <code>syslog()</code>. I could successfully try that on one of <em>my</em> program and it worked.</p>
<p>When I tried it on a pre-built application (came via a Debian package), I observed that it invokes <... | <blockquote>
<p>it ought to be the compiler [whichever was used], changed the syslog()s to __syslog_chk() ?</p>
</blockquote>
<p>Yes, you might say that, as always inspect the sources. <a href="https://github.com/lattera/glibc/blob/master/misc/sys/syslog.h" rel="nofollow noreferrer">https://github.com/lattera/glibc/blo... | calls to syslog() replaced with __syslog_chk()? | gcc|linker | 0 | 49 | 1 | 72,182,053 | 72,182,053 | 0 | true | 2022-05-09T12:28:52.747Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
calls to syslog() replaced with __syslog_chk()?<p>I am trying to use <code>LD_PRELOAD</code> to intercept calls to <code>syslog()</code>. I could successfull... |
72,195,117 | add " ? " in url via htaccess RewriteRule<p>i try use RewriteRule in htaccess</p>
<p>i want my url</p>
<blockquote>
<p>site.com/f_search.php?langs=en&langs=en</p>
</blockquote>
<p>works like</p>
<blockquote>
<p>site.com/en/new.php?/en/f_search</p>
</blockquote>
<p>i used this code in htaccess</p>
<pre><code>Rewrite... | <p>The question mark and what follows is <em>not</em> part of the subject the pattern of a RewriteRule is matched against. That is clearly documented. Instead you need to use a <code>RewriteCond</code> to access the content of the query string.</p>
<p>I assume this is roughly what you are looking for, though you might ... | add " ? " in url via htaccess RewriteRule | php|.htaccess | 0 | 48 | 2 | 72,195,642 | 72,195,642 | 0 | true | 2022-05-11T03:36:49.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
add " ? " in url via htaccess RewriteRule<p>i try use RewriteRule in htaccess</p>
<p>i want my url</p>
<blockquote>
<p>site.com/f_search.php?langs=en&lan... |
72,174,469 | pd.read_excel ValueError: File is not a recognized excel file<p>I can download the .ashx link into .xls and open it manually in Excel:</p>
<pre><code>import urllib
urllib.request.urlretrieve(
'https://www.imf.org/-/media/Files/Publications/WEO/WEO-Database/2022/WEOApr2022all.ashx',
'weo.xls'
)
</code></pre>
<p>... | <p>It is a csv file separated by tabs and is not exactly a straight forward dataframe format:</p>
<pre><code>pd.read_csv('weo.csv', sep='\t', encoding='utf_16_le')
</code></pre> | pd.read_excel ValueError: File is not a recognized excel file | python|excel|pandas | 0 | 171 | 1 | 72,175,087 | 72,175,087 | 0 | true | 2022-05-09T15:24:58.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pd.read_excel ValueError: File is not a recognized excel file<p>I can download the .ashx link into .xls and open it manually in Excel:</p>
<pre><code>import ... |
72,178,062 | Permission denied from a subfolder<h1>Context</h1>
<ul>
<li>PHP 5.6</li>
<li>IIS</li>
<li>Windows 11</li>
</ul>
<h1>Issue</h1>
<p>I am trying to write a file in a specific folder but it gives me <code>permission denied</code>.
So, I verified the permissions and everything seemed all right. Because this is in a developm... | <p>The issue was coming from PHP 5.6.26. Using PHP 5.6.40 fixed it.</p>
<p>I reset to my original permissions and everything is fine!</p> | Permission denied from a subfolder | php|iis|windows-11 | 0 | 170 | 1 | 72,192,743 | 72,192,743 | 0 | true | 2022-05-09T20:49:17.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Permission denied from a subfolder<h1>Context</h1>
<ul>
<li>PHP 5.6</li>
<li>IIS</li>
<li>Windows 11</li>
</ul>
<h1>Issue</h1>
<p>I am trying to write a file... |
72,217,718 | SQL need to compare rows count values<p>I have a query that returns the ID, Name and count of the number of times an ID has been entered to the table.</p>
<pre><code>SELECT
ID,
NAME,
COUNT(*) count
FROM
TABLE
GROUP BY
NAME, ID, CASE_DETAIL_ID
HAVING
COUNT(*) > 1;
</code></pre>
<p>This retur... | <p>Some sample data would help but you can use a CTE, and <code>select</code> the lowest using <code>min()</code> something like this:</p>
<pre class="lang-sql prettyprint-override"><code>WITH x AS(
SELECT t.id, t.nametext, COUNT(*) as count
FROM table t
GROUP BY id, t.nametext, CASE_DETAIL_ID
), y as(
... | SQL need to compare rows count values | sql|count|dbvisualizer | 0 | 54 | 1 | 72,218,683 | 72,218,683 | 0 | true | 2022-05-12T14:47:07.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL need to compare rows count values<p>I have a query that returns the ID, Name and count of the number of times an ID has been entered to the table.</p>
<p... |
72,084,358 | Error: Cannot find module XXX (typescript aliases)<p>It sounds like a common error. But in my case i can not find the reason. I am creating an NPM package as an backend-API for another project. I am using typescript and node.</p>
<p>I want to change my import statements from <code>import XX from "../../../XXX"... | <p>This saved my day: <a href="https://stackoverflow.com/q/70515063/">TS config path error. Error: Cannot find module '@/models/UserSchema'</a> (accepted answer).</p>
<p>Installing ts-node fixed this issue for me.</p> | Error: Cannot find module XXX (typescript aliases) | node.js|typescript|npm|babeljs|npx | 0 | 1,297 | 1 | 72,085,787 | 72,085,787 | 0 | true | 2022-05-02T08:50:07.063Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error: Cannot find module XXX (typescript aliases)<p>It sounds like a common error. But in my case i can not find the reason. I am creating an NPM package as... |
72,158,731 | How to get the clicked button id to be used repeatedly later in different functions?<p>I want to store what is being clicked on, so that it can be used for multiple times in a game of rock-paper-scissors. I need to use this until player or computer scores 5. Any suggestions will be appreciated!</p>
<p>HTML file:</p>
<p... | <p>You can just store it in an array or pass it to a function</p>
<p>like this</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>let playerWins = 0
let computerWins = 0
const cho... | How to get the clicked button id to be used repeatedly later in different functions? | javascript|events | 0 | 33 | 2 | 72,158,990 | 72,158,990 | 0 | true | 2022-05-08T06:49:26.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get the clicked button id to be used repeatedly later in different functions?<p>I want to store what is being clicked on, so that it can be used for m... |
72,195,715 | Undefined value document.getElementById<p>i have a problem right here. i want to make a web service requestor using provider that i already make. the problem is i always getting undefined values for ID, Kab, and ID2. can someone help me fix the code in requestor?</p>
<p>this is the provider</p>
<pre><code>$sql="SE... | <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 result = { "mytable": [ { "IDKabupaten": "3301", "Kabupaten": "CILACAP", "attribut": [ { "IDProvinsi": "33" } ] }, { "IDKabupa... | Undefined value document.getElementById | javascript|jquery | 0 | 87 | 2 | 72,196,175 | 72,196,175 | 0 | true | 2022-05-11T05:09:37.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Undefined value document.getElementById<p>i have a problem right here. i want to make a web service requestor using provider that i already make. the problem... |
72,201,485 | Looping through column names to calculate new columns in R<p>Basically I have 2 tables with the same column names and want to do calculations across tables. Ideally, I would have taken data from the two tables and created a third, but I could only find a way to do that if the data tables are the same dimensions because... | <p>In R, when referencing names with the <code>$</code> operator, identifiers are interpreted literally requiring a column named <code>"colnameslistInf[[1]]"</code> (but even this will fail without backticks). However, the extract operator, <code>[[</code>, can interpret dynamic variables:</p>
<pre class="lan... | Looping through column names to calculate new columns in R | r | 0 | 84 | 1 | 72,202,666 | 72,202,666 | 0 | true | 2022-05-11T12:57:30.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Looping through column names to calculate new columns in R<p>Basically I have 2 tables with the same column names and want to do calculations across tables. ... |
72,186,717 | Preserving row format and formula when inserting new row in Google Sheets using Apps Script?<p>I have a Google Sheets database:</p>
<p><a href="https://docs.google.com/spreadsheets/d/1VzHY8fTq8OsXhpHYHESSSPxeVNOnqxpjcsyWJpbuEOs/edit?usp=sharing" rel="nofollow noreferrer">https://docs.google.com/spreadsheets/d/1VzHY8fTq... | <p>You do not need to copy formulas, change for <code>arrayformula</code>, example in M1</p>
<pre><code>={"Score
(Weighted)";arrayformula((H2:H*2)+(E2:E*1.5)+(F2:F+G2:G))}
</code></pre>
<p>immediately apply formatting for all columns (and whole columns) and you won't need to copy formatting rules</p> | Preserving row format and formula when inserting new row in Google Sheets using Apps Script? | google-apps-script|google-sheets | 0 | 143 | 1 | 72,187,205 | 72,187,205 | 0 | true | 2022-05-10T12:54:59.960Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Preserving row format and formula when inserting new row in Google Sheets using Apps Script?<p>I have a Google Sheets database:</p>
<p><a href="https://docs.... |
72,224,972 | How to call an individual modal box component in react?<p>I wanted to open/load a react bootstrap model box component (Modalbox.js) to App.js, but the modal box open button code in App.js, how to do that? please help.
In App.js, there will be multiple buttons for call multiple type modalboxs. modalbox.js should contain... | <p>I have added only functionality on the show and hide here is code so that you may get the idea props and manage the state accordingly all remaining code it feels free to add more functionality and custome state</p>
<pre><code> import "./styles.css";
import Modalbox from "./Modalbox";
i... | How to call an individual modal box component in react? | reactjs|react-bootstrap | 0 | 45 | 3 | 72,225,457 | 72,225,457 | 0 | true | 2022-05-13T05:51:08.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to call an individual modal box component in react?<p>I wanted to open/load a react bootstrap model box component (Modalbox.js) to App.js, but the modal ... |
72,180,457 | How do I rotate bvh motion around a given axis?<p>I am struggling with how to take the rotation vectors defined in the bvh file format and alter them to rotate the skeleton around an axis ( for all frames ).</p>
<p><a href="https://stackoverflow.com/questions/54633059/rotate-the-root-of-a-bvh-animation-around-y-axis-by... | <p>I ended up rotating the rotation ( euler ) vector and position vector of the root to get what I wanted. To get the correct rotation ( euler ) vector for each frame, I turned the root rotation ( euler ) vector into a rotation matrix, applied a rotation to the matrix then converted it back to rotation ( euler ) vector... | How do I rotate bvh motion around a given axis? | animation|rotation|transformation|rotational-matrices | 0 | 108 | 1 | 72,207,575 | 72,207,575 | 0 | true | 2022-05-10T03:36:36.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I rotate bvh motion around a given axis?<p>I am struggling with how to take the rotation vectors defined in the bvh file format and alter them to rota... |
72,099,166 | withColumn is not giving expected result with groupby in pyspark<p>I have a dataframe that looks like below</p>
<pre><code> +----------+---------------+---------+-----------------+----------------------------+
|CustomerNo|TransactionDate|SKUItemID|one_day_back_date|last_12month_date_from_trans|
+----------+------------... | <p>You are creating a new column, <code>total_items</code>, but you are not using that for anything. I think you should apply a filter instead. Somthing like</p>
<pre><code>c=x.where((F.col('TransactionDate')<F.col('one_day_back_date')) & (F.col('TransactionDate') >= F.col('last_12month_date_from_trans'))) \
... | withColumn is not giving expected result with groupby in pyspark | pyspark | 0 | 33 | 1 | 72,099,351 | 72,099,351 | 0 | true | 2022-05-03T12:07:56.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
withColumn is not giving expected result with groupby in pyspark<p>I have a dataframe that looks like below</p>
<pre><code> +----------+---------------+-----... |
72,204,553 | Discard changes made to my forked Postman collection<p><strong>Context:</strong></p>
<ol>
<li>Fork Workspace <strong>A</strong>'s collection <strong>A1</strong> into Workspace <strong>B</strong>. We will refer to the Forked collection as <strong>B1</strong></li>
<li>Make a change to a request in <strong>B1</strong> for... | <p>There is <strong>no way of discarding changes on a forked collection</strong> at this current point in time.</p>
<p>As a <strong>work around</strong>, <strong>do not save changes directly to requests</strong>. Instead, <strong>hit Save As</strong> and <strong>then Add "(M)"</strong> (M for Modified. Or B f... | Discard changes made to my forked Postman collection | postman | 0 | 96 | 2 | 72,217,699 | 72,217,699 | 0 | true | 2022-05-11T16:29:05.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Discard changes made to my forked Postman collection<p><strong>Context:</strong></p>
<ol>
<li>Fork Workspace <strong>A</strong>'s collection <strong>A1</stro... |
72,157,213 | Why won't the Background color for radio button after checked not change?<p>I've searched around and checked various answers, but I'm having trouble with the following:
There are a couple caveats</p>
<ol>
<li>Can't use Javascript or Jquery.</li>
<li>has to be pure CSS.</li>
</ol>
<p>I want the background color of the l... | <p>In CSS you cannot select previous siblings, therefore you'll need move <code>input</code> above your tabs and use <code>~</code> for sibling selections for the content:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-... | Why won't the Background color for radio button after checked not change? | html|css | 0 | 41 | 2 | 72,157,299 | 72,157,299 | 0 | true | 2022-05-08T00:09:37.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why won't the Background color for radio button after checked not change?<p>I've searched around and checked various answers, but I'm having trouble with the... |
72,189,364 | How to bind a variable in a defined function?<p>The context :
I am trying to do something like this (scheme "pseudo-code"):</p>
<pre><code>(with-midi-channel 0
(begin
(note-on 60 127)
(plenty-of-other-midi-commands))
</code></pre>
<p>With note-on defined like this :</p>
<pre><code>(define... | <p>Scheme (and most recent Lisps) are lexically scoped, so in something like</p>
<pre><code>(define (ts)
(display a))
</code></pre>
<p>the binding of <code>a</code> referred to is the one that was lexically apparent at the time the function was defined (in fact it's a bit more complex than this for top-level definiti... | How to bind a variable in a defined function? | scheme|lisp | 0 | 77 | 2 | 72,189,950 | 72,189,950 | 0 | true | 2022-05-10T15:44:47.620Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to bind a variable in a defined function?<p>The context :
I am trying to do something like this (scheme "pseudo-code"):</p>
<pre><code>(with-mi... |
72,182,114 | How to change active nav color in react js while getting data from an array?<p>I am using array to display nav items in react. I have set classname for all <code>li</code> tags. Now I want when I click on a particular item its color should got changed.
I have tried with usestate also but not able to get that. How can I... | <p>We will assume that the first item in your nav is initially <strong>active</strong>.</p>
<p>we will set the state to it's default value which is <strong>0</strong></p>
<pre><code> const [activeClass, setActiveClass] = useState(0);
</code></pre>
<p>In the nav items, we will check for each item if the index of that ... | How to change active nav color in react js while getting data from an array? | javascript|css|reactjs | 0 | 44 | 1 | 72,182,267 | 72,182,267 | 0 | true | 2022-05-10T07:17:20.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change active nav color in react js while getting data from an array?<p>I am using array to display nav items in react. I have set classname for all <... |
72,155,041 | SyntaxError: 'super' keyword unexpected here when extending superclass<blockquote>
<p>I have a super class School with properties name,level, and number of students</p>
</blockquote>
<pre><code>class School{
constructor(name,level,numberOfStudents){
this._name = name;
this._level = level
t... | <p>There is a typo in the <code>constructror</code> in the <code>PrimarySchool</code> class. The correct word is <code>constructor</code>. Here's a working sample code:</p>
<pre class="lang-js prettyprint-override"><code>class School{
constructor(name,level,numberOfStudents){
this._name = name;
th... | SyntaxError: 'super' keyword unexpected here when extending superclass | javascript|syntax|super | 0 | 131 | 1 | 72,155,076 | 72,155,076 | 0 | true | 2022-05-07T17:44:17.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SyntaxError: 'super' keyword unexpected here when extending superclass<blockquote>
<p>I have a super class School with properties name,level, and number of s... |
72,201,031 | Java application for sorting and selecting<p>I need to develop a simple application for sorting and selecting data according to predefined rules. The application must be able to work with JSON lists of objects of arbitrary structure, select objects that contain keys with certain values, and also sort objects by values ... | <p>Look into the java <em>Comparator</em> interface and the <em>sort</em> method of the <em>List</em> interface. With that you can create custom comparators for your 'result' class (btw. class names should always begin upper case).</p>
<p>Example of a name comparator for your case. You'll need to implement the missing ... | Java application for sorting and selecting | java|json|sorting|include|gson | 0 | 79 | 1 | 72,202,860 | 72,202,860 | 0 | true | 2022-05-11T12:25:32.217Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Java application for sorting and selecting<p>I need to develop a simple application for sorting and selecting data according to predefined rules. The applica... |
72,189,048 | I could not run my program due to error caused by the camel context, what should I do to resolve this?<p>So what I'm trying to do here is to create a zoom meeting through camel apache. I keep getting the error whenever I run the program and the line causing the error is when I start the camel context <code>c.start()</c... | <p>If you want to run camel using main method you should use <strong>camel-main</strong> which is for running standalone camel applications. What you're trying to do there is running camel as standalone application but using camel-spring-boot dependencies.</p>
<p>You can use maven archetype <strong>camel-archetype-main... | I could not run my program due to error caused by the camel context, what should I do to resolve this? | java|apache-camel | 0 | 475 | 1 | 72,203,672 | 72,203,672 | 0 | true | 2022-05-10T15:24:37.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I could not run my program due to error caused by the camel context, what should I do to resolve this?<p>So what I'm trying to do here is to create a zoom me... |
72,081,829 | Scraping a HTML site using BeautifulSoup and finding the value of "total_pages" in it<p>I'm writing a python code that scrapes the following website and looks for the value of "total_pages" in it.</p>
<p>The website is <a href="https://www.usnews.com/best-colleges/fl" rel="nofollow noreferrer">https://www.usn... | <p>No need for BeautifulSoup. Here I make a request to their API to get the list of universities.</p>
<p><code>from rich import print</code> is used to pretty-print the JSON. It should make it easier to read.</p>
<p>Need more help or advice, leave a comment below.</p>
<pre class="lang-py prettyprint-override"><code>imp... | Scraping a HTML site using BeautifulSoup and finding the value of "total_pages" in it | python|html|web-scraping|beautifulsoup|python-requests | 0 | 30 | 1 | 72,082,730 | 72,082,730 | 0 | true | 2022-05-02T02:32:07.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Scraping a HTML site using BeautifulSoup and finding the value of "total_pages" in it<p>I'm writing a python code that scrapes the following website and look... |
72,160,975 | Change value in array in order<p>I need to change maximum values to order. First in order will be maximum value and maximum value - 1. (<strong>100, 99, 100</strong>) must be equal to 1. It will be [5, 55, <strong>1</strong>, 2, <strong>1</strong>, <strong>1</strong>, 98]. Then I need to change (98) to 2 because now 98... | <p>First zip the collection elements with their indices and sort by their elements in decreasing order.
Create rank and maxValue vars.<br>
Create an array with exact same number of elements for storing the result.<br>
Iterate the elements and indices.<br>
If the element is less than maxValue minus one increase the rank... | Change value in array in order | arrays|swift | 0 | 135 | 3 | 72,165,524 | 72,165,524 | 0 | true | 2022-05-08T12:27:37.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change value in array in order<p>I need to change maximum values to order. First in order will be maximum value and maximum value - 1. (<strong>100, 99, 100<... |
72,231,584 | How to check date within two given dates and return true or false<p>I am trying to verify whether the given date is within the two dates. I tried based on online resources I find using below methods whatever I tried code returning False, so could someone please let me know how we can achieve this. Thanks</p>
<pre><code... | <p>You're comparing strings. If you used YYYY-MM-DD order, that would work, but since you're using DD/MM/YYYY order, it doesn't. The strings are compared "alphabetically" (including non-letters being ordered the way they are in the character set), which means that, for example, the 20th of any month will be &... | How to check date within two given dates and return true or false | javascript | 0 | 96 | 1 | 72,231,696 | 72,231,696 | 0 | true | 2022-05-13T14:55:11.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to check date within two given dates and return true or false<p>I am trying to verify whether the given date is within the two dates. I tried based on on... |
72,196,182 | Accessing elements of an object in R<p>I have an object in R that returns the following structure when I apply str to it:</p>
<pre><code>str(x)
dist [1:1]
$ :List of 2
..$ mu : num 759
..$ sigma: num 11.2
..- attr(*, "class")= chr [1:2] "dist_normal" "dist_default"
@ vars: chr "... | <p>There is operators <code>$</code> and <code>[[</code> to extract the nested value by symbol name or character name, respectively. These operators must be used multiple times sequentially in case the list is nested:</p>
<pre class="lang-r prettyprint-override"><code>x <- structure(list(structure(list(mu = 758.8800... | Accessing elements of an object in R | r|list | 0 | 75 | 1 | 72,197,276 | 72,197,276 | 0 | true | 2022-05-11T06:13:28.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Accessing elements of an object in R<p>I have an object in R that returns the following structure when I apply str to it:</p>
<pre><code>str(x)
dist [1:1]
... |
72,201,813 | how can i increase the core quota limit on microsoft.HDInsight azure?<p>i created a free azure account and wanted to create a spark cluster using <strong>microsoft.HDInsight</strong>
everything worked perfectly until i reached <strong>configuration + price</strong> step.
i got this message. -on this screen shot-</p>
<... | <p>Azure Portal > Click on Help + support icon > create a support request:</p>
<p><img src="https://i.imgur.com/AVFXZhT.png" alt="enter image description here" /></p>
<p>Select your required service like <strong>HDInsight</strong> for which you want to increase the quota and <strong>Issue type</strong> is service... | how can i increase the core quota limit on microsoft.HDInsight azure? | azure|apache-spark|azure-hdinsight | 0 | 128 | 2 | 72,201,969 | 72,201,969 | 0 | true | 2022-05-11T13:20:19.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can i increase the core quota limit on microsoft.HDInsight azure?<p>i created a free azure account and wanted to create a spark cluster using <strong>mi... |
72,193,585 | Pass Wx Frame class as a variable to another Class<p>I am trying to pass a WX frame class to another class. I have three py files which are as follows:</p>
<p><strong>gui_20220510.py</strong> - this contains the gui code</p>
<pre><code>import wx
class Frame_Demo(wx.Frame):
def __init__(self, *args, **kwds):
... | <p>Word <code>global</code> is NOT for creating global variables. All variables created outside functions are automtically global (inside current module) but you have to assign value to variable to create it.</p>
<p>We use <code>global</code> inside function to inform function that when we use <code>=</code> to assign ... | Pass Wx Frame class as a variable to another Class | python|class|wxpython|wxwidgets|python-class | 0 | 53 | 1 | 72,194,051 | 72,194,051 | 0 | true | 2022-05-10T22:32:41.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pass Wx Frame class as a variable to another Class<p>I am trying to pass a WX frame class to another class. I have three py files which are as follows:</p>
<... |
72,209,002 | Tkinter toplevel window is not defined<p>I wonder if someone could tell me if its possible to update toplevel windows using external functions. I've replicated my issue below what I need to do is update the Toplevel(master) using the function updatelabel(). I have used similar external function to update items in root ... | <p>Your “newWindow” is defined in your “openNewWindow” function and so it basically only exists in there, you could probably fix this by either defining “newWindow” outside of the function, or by using it as an argument(just add it to the brackets and give it a name in the function itself’s brackets) calling “updateLab... | Tkinter toplevel window is not defined | python|tkinter|toplevel | 0 | 100 | 1 | 72,209,063 | 72,209,063 | 0 | true | 2022-05-12T00:56:16.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Tkinter toplevel window is not defined<p>I wonder if someone could tell me if its possible to update toplevel windows using external functions. I've replicat... |
72,112,560 | Get File by name in docs.google<p>What am I doing wrong?
I want to get a link to google drive from the file name in the cell</p>
<pre class="lang-js prettyprint-override"><code>function main (file){
return DriveApp.getFilesByName(file).next().getUrl();
}
</code></pre>
<p>But I get a "name" error.
I don't e... | <p>I think you're trying to run the function <code>main()</code> directly via the 'Run' button in Script Editor. This way the function gets no arguments. You have to call the <code>main()</code> function from another function.</p>
<p>Something like this:</p>
<pre><code>// this is the function to run via Run button
func... | Get File by name in docs.google | google-apps-script | 0 | 28 | 1 | 72,112,769 | 72,112,769 | 0 | true | 2022-05-04T11:56:17.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get File by name in docs.google<p>What am I doing wrong?
I want to get a link to google drive from the file name in the cell</p>
<pre class="lang-js prettypr... |
72,225,824 | How to draw repeated slanted lines<p>I need to draw slanted lines like this programmatically using opencv-python, and it has to be similar in terms of the slant angle and the distance between the lines: <br/></p>
<p><a href="https://i.stack.imgur.com/PVopP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | <p>This code "shades" every pixel in a given image to produce your hatched pattern. Don't worry about the math. It's <em>mostly</em> correct. I've checked the edge cases for small and wide lines. The sampling isn't exactly correct but nobody's gonna notice anyway because the imperfection amounts to small frac... | How to draw repeated slanted lines | python|opencv | 0 | 53 | 1 | 72,240,884 | 72,240,884 | 0 | true | 2022-05-13T07:25:15.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to draw repeated slanted lines<p>I need to draw slanted lines like this programmatically using opencv-python, and it has to be similar in terms of the sl... |
72,019,720 | Warning "Each child in a list should have a unique "key" prop' even with the key present (React + Material UI)<p>I am trying to fetch data from a JSON file using map function, but I keep getting this error 'Each child in a list should have a unique "key" prop' even though I set the key={facts.id}. Please how ... | <p>I got it working by adding an index to the map function parameter, and setting the key to equal the index.</p>
<pre><code>
Facts.map((fact, i) => {
return (
<Box sx={{ flexGrow: 1 }} style={{
marginTop:50} key={i}>
</code></pre> | Warning "Each child in a list should have a unique "key" prop' even with the key present (React + Material UI) | reactjs|material-ui | 0 | 286 | 2 | 72,044,278 | 72,044,278 | 0 | true | 2022-04-26T19:48:16.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Warning "Each child in a list should have a unique "key" prop' even with the key present (React + Material UI)<p>I am trying to fetch data from a JSON file u... |
72,236,297 | Parse/Display nested JSON array with Jquery<p>I am looking to pull data from a job board API. I'd like to have headings for the departments (pulled from JSON level 1) and under each department the current open positions (JSON level 2). I have tinkered with this 50 different ways and ran through all the related articles... | <p>The main issue is that you output the <code>h3</code> for each job, but it should only be output once per iteration of the <em>outer</em> loop (not the <em>inner</em> loop).</p>
<p>I would also use more jQuery style for creating the elements, and I would use <code>async</code>/<code>await</code> to flatten a bit the... | Parse/Display nested JSON array with Jquery | javascript|jquery|arrays|json | 0 | 86 | 1 | 72,265,088 | 72,265,088 | 0 | true | 2022-05-13T23:40:25.290Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Parse/Display nested JSON array with Jquery<p>I am looking to pull data from a job board API. I'd like to have headings for the departments (pulled from JSON... |
72,237,589 | I want to display fetched data from api in form columns (auto fill data) in React.js and Mysql<p>i am using onKeyUp event for fire api without submitting the form and i fetched data in response successfully if Mobile number matched. But i don't understand how to display these data as a default value in columns. i also ... | <p>I think that you don't need the <code>customerDataFill</code> state.<br>
Using the <code>customerName</code> state should be enough.<br>
Change your <code>OnKeyUpFunc</code> to set the <code>customerName</code> if a <code>user</code> with <code>contactNo</code> has been found and <code>customerName</code> was not se... | I want to display fetched data from api in form columns (auto fill data) in React.js and Mysql | javascript|mysql|node.js|reactjs|autofill | 0 | 710 | 2 | 72,238,085 | 72,238,085 | 0 | true | 2022-05-14T05:27:35.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to display fetched data from api in form columns (auto fill data) in React.js and Mysql<p>i am using onKeyUp event for fire api without submitting the... |
72,201,009 | MySQL - Get three latest dates from tables<p>I have two tables:</p>
<pre class="lang-sql prettyprint-override"><code>create table product (
productid int,
productname varchar(100),
primary key(productid)
)engine=innodb;
create table purchase (
purchaseid int,
fproductid int,
customerage int,
purchasedate date,
purchas... | <p>You need to understand relationships.
The query could be much simpler:</p>
<pre><code>SELECT * FROM purchase JOIN product ON productid = fproductid
ORDER BY purchasedate DESC, purchasetime DESC LIMIT 3;
</code></pre>
<p>Note: if purchaseid is an auto_increment PK, it's more efficient to <code>ORDER BY purchaseid</co... | MySQL - Get three latest dates from tables | mysql | 0 | 30 | 1 | 72,201,228 | 72,201,228 | 0 | true | 2022-05-11T12:23:43.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MySQL - Get three latest dates from tables<p>I have two tables:</p>
<pre class="lang-sql prettyprint-override"><code>create table product (
productid int,
pr... |
72,186,380 | Flask app crashes with R10 error on Heroku<p>I am trying to deploy my Flask app to Heroku but receive these errors:</p>
<pre><code>2022-05-10T12:13:10.776664+00:00 heroku[web.1]: State changed from crashed to starting
2022-05-10T12:13:15.072537+00:00 heroku[web.1]: Starting process with command `python website/__init__... | <p>The Flask app needs to bind programmatically to the Heroku <code>$PORT</code></p>
<pre><code>port_nr = int(os.environ.get("PORT", 5001))
app.run(port=port_nr, host='0.0.0.0')
</code></pre> | Flask app crashes with R10 error on Heroku | python|flask|heroku | 0 | 57 | 1 | 72,186,697 | 72,186,697 | 0 | true | 2022-05-10T12:32:28.663Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flask app crashes with R10 error on Heroku<p>I am trying to deploy my Flask app to Heroku but receive these errors:</p>
<pre><code>2022-05-10T12:13:10.776664... |
72,161,016 | MacOS Bash - How to label a huge collection of files sequentially and move files to folders in blocks of 150 files?<p>I am using this piece of code to rename my tracks in a unity project for the unity asset store sequentially</p>
<pre><code>ls -v | cat -n | while read n f; do mv -n "$f" "cinematic$n.mp3&... | <p>I'd read all the files into an array:</p>
<pre class="lang-sh prettyprint-override"><code>a=0
b=0
n=150
files=(*.mp3)
while (( ${#files[@]} > 0 )); do
dir="./dir$((++a))"
mkdir -p "$dir"
for f in "${files[@]:0:n}"; do
mv -nv "$f" "$dir/cinematic$(... | MacOS Bash - How to label a huge collection of files sequentially and move files to folders in blocks of 150 files? | bash | 0 | 56 | 2 | 72,164,114 | 72,164,114 | 0 | true | 2022-05-08T12:32:37.193Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MacOS Bash - How to label a huge collection of files sequentially and move files to folders in blocks of 150 files?<p>I am using this piece of code to rename... |
72,200,778 | How to count rows in a table, where a specific column value is in a list of specified values?<p>How do I create a DAX measure to count the number of customers in a customer table <code>dCustomers</code>, where the <code>customerType</code> is either <code>FR</code>, <code>DE</code> or <code>GG</code>?</p>
<p>In SQL, th... | <p>I would suggest using the <code>IN</code> operator, to write it in a more concise manner:</p>
<pre><code>Count (Calculate) =
CALCULATE (
COUNTROWS ( dCustomers ) ,
dCustomers[customerType] IN {"FR", "DE", "GG"}
)
</code></pre>
<p>You can also use <code>COUNTROWS</code> directly... | How to count rows in a table, where a specific column value is in a list of specified values? | powerbi|dax | 0 | 1,157 | 2 | 72,201,326 | 72,201,326 | 0 | true | 2022-05-11T12:05:44.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to count rows in a table, where a specific column value is in a list of specified values?<p>How do I create a DAX measure to count the number of customer... |
72,173,720 | How to check if array that inside an object contains element mongoDB<p>Hi i have this document :</p>
<pre><code>{
"_id" : ObjectId("62792b4a0c9c5a00b6a8e17b"),
"username" : "user_1",
"words" : [
{
"word" : "RATIONAL",... | <p>This should work for you:</p>
<pre><code>db.users.find({"username": "user_1", "words.word": "RATIONAL", "words.subwords": "RAT"})
</code></pre>
<p>You also could use the The <code>$elemMatch</code> operator:</p>
<pre><code>db.users.find({"username"... | How to check if array that inside an object contains element mongoDB | mongodb|mongoose | 0 | 123 | 1 | 72,174,039 | 72,174,039 | 0 | true | 2022-05-09T14:33:37.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to check if array that inside an object contains element mongoDB<p>Hi i have this document :</p>
<pre><code>{
"_id" : ObjectId("62792b... |
72,204,860 | Json response reactnative fetch login data<p>Im trying to fetch my login data using the login fetch method below which raises an error.
I'm not sure why it raises this error and where its going wrong.</p>
<p>i get this error</p>
<pre><code>[Unhandled promise rejection: TypeError: undefined is not an object (evaluating ... | <p>this could help you:</p>
<pre><code>import {Alert} from 'react-native'
login = () => {
if (this.state.username === '') {
Alert.alert('Enter username !')
} else if (this.state.password === '') {
Alert.alert('Enter Password !')
} else {
api
.createUser(this.state.username, thi... | Json response reactnative fetch login data | react-native|fetch | 0 | 234 | 1 | 72,205,264 | 72,205,264 | 0 | true | 2022-05-11T16:53:33.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Json response reactnative fetch login data<p>Im trying to fetch my login data using the login fetch method below which raises an error.
I'm not sure why it r... |
72,148,569 | Apache beam blocked on unbounded side input<p>My question is very similar to another post: <a href="https://stackoverflow.com/q/70561769">Apache Beam Cloud Dataflow Streaming Stuck Side Input</a>.</p>
<p>However, I tried the resolution there (apply GlobalWindows() to the side input), and it did not seem to fix my probl... | <p>Using the example from <a href="https://stackoverflow.com/q/70561769">stackoverflow.com/q/70561769</a> I was able to get the side input and main input working concurrently as expected for certain cases. The answer there was to apply GlobalWindows() to the side_input.</p>
<pre class="lang-py prettyprint-override"><c... | Apache beam blocked on unbounded side input | google-cloud-dataflow|apache-beam | 0 | 248 | 2 | 72,382,559 | 72,382,559 | 0 | true | 2022-05-07T00:29:36.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Apache beam blocked on unbounded side input<p>My question is very similar to another post: <a href="https://stackoverflow.com/q/70561769">Apache Beam Cloud D... |
72,179,492 | Cannot import name 'iterable' from 'matplotlib.cbook'<p>Recently, I updated to Ubuntu 22. I am using python 3.10.</p>
<p>After installing matplotlib and other required libraries for python, I am trying to plot some graphs.</p>
<p>Everytime I am facing this error while running my code.
I followed all the solutions given... | <p>If anyone searching for the answer to solve this issue,</p>
<p>then follow the following steps:</p>
<p>step 1) uninstall matplotlib completely</p>
<p>step 2 ) Then install matplotlib : pip3 install -U matplotlib==3.2</p> | Cannot import name 'iterable' from 'matplotlib.cbook' | python|python-3.x|matplotlib|ubuntu|iterable | 0 | 142 | 2 | 72,212,927 | 72,212,927 | 0 | true | 2022-05-10T00:25:50.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot import name 'iterable' from 'matplotlib.cbook'<p>Recently, I updated to Ubuntu 22. I am using python 3.10.</p>
<p>After installing matplotlib and othe... |
72,184,285 | Can I get simple type parameter from Route attribute and complex type from uri in HttpGet?<p>I'll try to explain my question in example below</p>
<p>if we have url such as this one:</p>
<blockquote>
<p>localhost/api/person/5?FirstName=Adam&LastName=Smith&City=London</p>
</blockquote>
<p>and try to get parameter... | <p>You can use <code>FromQuery</code> Inline Attribute as per below:</p>
<pre><code>[HttpGet]
[Route("person/{someId}")]
public ActionResult Location(string someId,[FromQuery] PersonRequest request)
{
// TODO
}
</code></pre>
<p>By the way, I believe a good practice is to only bind search terms, filters, e... | Can I get simple type parameter from Route attribute and complex type from uri in HttpGet? | api|asp.net-core | 0 | 62 | 1 | 72,184,634 | 72,184,634 | 0 | true | 2022-05-10T10:00:50.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can I get simple type parameter from Route attribute and complex type from uri in HttpGet?<p>I'll try to explain my question in example below</p>
<p>if we ha... |
72,210,128 | IBMMQDotnetClient vs IBMXMSDotnetClient<p>I am working on a project, which needs to connect to IBM MQ using c#, and considering which NuGet package is the best one.</p>
<p>However, there are 2 NuGet packages <strong>IBMMQDotnetClient</strong> and <strong>IBMXMSDotnetClient</strong> and both of them are provided by the ... | <p>IBMMQDotNet provides MQ native APIs in .NET language while IBMXMSDotNet provides JMS style of APIs in .NET. However there is one major difference between the two APIs: IBMXMSDotNet provides asynchronous message consumer while IBMMQDotNet does not. Asynchronous message consumption is a type of consuming messages wher... | IBMMQDotnetClient vs IBMXMSDotnetClient | c#|.net|ibm-mq | 0 | 170 | 1 | 72,210,268 | 72,210,268 | 0 | true | 2022-05-12T04:26:43.663Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
IBMMQDotnetClient vs IBMXMSDotnetClient<p>I am working on a project, which needs to connect to IBM MQ using c#, and considering which NuGet package is the be... |
72,159,047 | How to replace span tags with its own class name inside paragraph<p>I want to replace all <code><span></span></code> tags with their own class name inside the dynamic paragraph.</p>
<p>Example:</p>
<pre><code>My paragraph is: "Welcome <span class="emo 1f4a9"></span> to our home &l... | <pre><code>function replaceSpans(string) {
return string.replace(/<span class="emo (\S+)"><\/span>/g, '$1');
}
</code></pre>
<p>This seems to be giving the results you want.</p>
<p>Putting it into your example:</p>
<pre><code>spantoemo('Welcome <span class="emo 1f4a9"></span... | How to replace span tags with its own class name inside paragraph | javascript|jquery | 0 | 28 | 1 | 72,159,178 | 72,159,178 | 0 | true | 2022-05-08T07:48:28.243Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to replace span tags with its own class name inside paragraph<p>I want to replace all <code><span></span></code> tags with their own class na... |
72,152,131 | How to extract id from json response array<p>How to extract id from this response. I tried like this But return blank page. Below is the response what I'm getting.</p>
<pre><code><?php
$res = json_decode($sentMessage ,true);
echo $rc = $res[0]['updates']['id'];
?>
</code></pre>
<p><strong>Response :</strong></p>... | <p>$tes is not defined.</p>
<pre><code><?php
$res = json_decode($sentMessage ,true);
echo $rc = $res['updates'][0]['id'];
?>
</code></pre>
<p>Here you need to go to updates object, then take the first one (0) and look for its id.</p> | How to extract id from json response array | php|json | 0 | 40 | 1 | 72,152,273 | 72,152,273 | 0 | true | 2022-05-07T11:41:57.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to extract id from json response array<p>How to extract id from this response. I tried like this But return blank page. Below is the response what I'm ge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.