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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73,018,212 | Add ascending numbers to words in a sentence<p>Is it possible to add ascending numbers in order to words in a sentence with a formula?</p>
<p>For example:</p>
<p><a href="https://i.stack.imgur.com/fxp2k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fxp2k.png" alt="enter image description here" /></... | <p>Try below formula-</p>
<pre><code>=TEXTJOIN(" ",1,ArrayFormula(FLATTEN(SPLIT(A1,"/"))&SEQUENCE(LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))+1)))
</code></pre>
<p><a href="https://i.stack.imgur.com/EObp1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EObp1.png" al... | Add ascending numbers to words in a sentence | google-sheets|google-sheets-formula | 0 | 39 | 2 | 73,018,394 | 73,018,394 | 3 | true | 2022-07-18T06:42:33.840Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Add ascending numbers to words in a sentence<p>Is it possible to add ascending numbers in order to words in a sentence with a formula?</p>
<p>For example:</p... |
73,020,464 | Javascript - radio buttons onlick not working<p>I am stuck with a problem. I want to add call functions based on selection in radio button. But one of radio buttons doesn't work at all (not calling the function), other is not checked when clicked. Here is my code:</p>
<pre><code> function clearElement(element_id){
... | <p>It would be better if you made the button element once and just toggled its visibility on demand.</p>
<p>There are also better strategies to compose dynamic html on your DOM instead of using <code>innerHTML</code> like using <code><template></code> or creating elements with <code>document.createElement()</code... | Javascript - radio buttons onlick not working | javascript | 1 | 39 | 1 | 73,020,791 | 73,020,791 | 3 | true | 2022-07-18T10:01:31.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript - radio buttons onlick not working<p>I am stuck with a problem. I want to add call functions based on selection in radio button. But one of radio ... |
73,023,390 | How to convert the values in one column into new columns, the values in another column into rows, indexing values in a third column?<p>Suppose I have the following <code>data.table</code> in <code>R</code>:</p>
<pre><code>> data.table(Group = c(rep(1, 5), rep(2,5), rep(3,5)), Type = c("A","B",&qu... | <p>Using <code>data.table</code> rather than <code>tidyr</code> functions:</p>
<pre class="lang-r prettyprint-override"><code>dt <- data.table(Group = c(rep(1, 5), rep(2,5), rep(3,5)), Type = c("A","B","C","D","E"), Value = c(1:15))
data.table::dcast(dt, Group ~ ... | How to convert the values in one column into new columns, the values in another column into rows, indexing values in a third column? | r|data.table | 1 | 39 | 1 | 73,023,589 | 73,023,589 | 3 | true | 2022-07-18T13:46:44.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to convert the values in one column into new columns, the values in another column into rows, indexing values in a third column?<p>Suppose I have the fol... |
73,004,219 | React js, limiting post shown<p>Hi i am just making a blog using next js and graph cms,i just know how to limit the number posts shown, for example if i have 50 posts in the backend i just need 1 post to show, like how to limit it?</p>
<p>here, this is what i am talking about</p>
<pre><code>const posts = [
{title: ... | <p>you can use <code>slice</code></p>
<pre><code>{
posts.slice(0,1).map((post, index) => (
<div>
<h1>{post.title}</h1>
<p>{post.description}</p>
</div>
))
}
</code></pre> | React js, limiting post shown | reactjs|next.js|graphcms | -1 | 39 | 2 | 73,004,255 | 73,004,255 | 3 | true | 2022-07-16T12:29:06.960Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React js, limiting post shown<p>Hi i am just making a blog using next js and graph cms,i just know how to limit the number posts shown, for example if i have... |
72,816,651 | Forming an array with elements in specific positions from multiple arrays in Python<p>I have an array <code>A</code>. I want to take the first, second,...,ninth elements of each <code>A[0],A[1],A[2]</code> to form a new array <code>B</code>. I present the current and expected outputs.</p>
<pre><code>import numpy as np
... | <p>You can traverse the array, append all values as columns and transpose the resulting matrix:</p>
<pre><code>import numpy as np
A=np.array([np.array([[1, 2, 3],
[4, 5, 6 ],
[7, 8, 9]]),
np.array([[[10, 11, 12],
[13, 14, 15 ],
[16, 17, 18]]]),
np... | Forming an array with elements in specific positions from multiple arrays in Python | python|numpy | 2 | 39 | 3 | 72,816,763 | 72,816,763 | 3 | true | 2022-06-30T13:25:15.263Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Forming an array with elements in specific positions from multiple arrays in Python<p>I have an array <code>A</code>. I want to take the first, second,...,ni... |
72,884,870 | Regex - match number within a text that does not start with a certain string<p>I've searched through multiple answers on SO now, but most of them consider the beginning of the line as the whole string being looked upon, which doesn't serve my case, I think (at least all the answers I tried didn't work).</p>
<p>So, I wa... | <p>You can assert not TC- to the left using negative lookbehind <code>(?<!</code> and omit the <code>{0}</code> quantifier as that makes it optional:</p>
<pre><code>(?<!\bTC-)\b[12]\d{6}\b
</code></pre>
<p><a href="https://regex101.com/r/7Vkq2J/1" rel="nofollow noreferrer">Regex demo</a></p> | Regex - match number within a text that does not start with a certain string | regex | 0 | 39 | 1 | 72,884,952 | 72,884,952 | 3 | true | 2022-07-06T13:56:38.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Regex - match number within a text that does not start with a certain string<p>I've searched through multiple answers on SO now, but most of them consider th... |
72,821,964 | Wrap __init__ of external class to ignore surplus arguments<p>I have a third-party class that takes a number of arguments in its <code>__init__</code> method.</p>
<pre class="lang-py prettyprint-override"><code>class ThirdPartyClass:
def __init__(self, a, b, c):
pass
</code></pre>
<p>I want to be able to in... | <p>If you need a fully general solution, probably the most elegant approach is to write a decorator. This will work with both functions and classes, as they are both callable (you call the class when you instantiate it). You can apply the decorator with <code>@</code> syntax to your own code, or use it as a higher-orde... | Wrap __init__ of external class to ignore surplus arguments | python | 1 | 39 | 3 | 72,822,396 | 72,822,396 | 3 | true | 2022-06-30T20:59:38.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wrap __init__ of external class to ignore surplus arguments<p>I have a third-party class that takes a number of arguments in its <code>__init__</code> method... |
72,784,787 | Postgresql View aggregating data<p>I've got a problem to make this "nice" and efficient, as well as easy to read. Unfortunately it's lacking both properties.</p>
<p>Given a table with <code>date,transaction_type,username</code> and <code>credits</code>, I want to generate a view which summarizes into these fi... | <p>Without knowing some sample data and expected output to try the query, the following can surely taken as a sketch for your complete solution. I guess, the main point here is knowing about the <code>FILTER</code> clause for aggregation functions(*):</p>
<pre><code>CREATE MATERIALIZED VIEW token_usage AS
SELECT
u... | Postgresql View aggregating data | sql|postgresql|view|query-optimization|materialized-views | 3 | 39 | 1 | 72,785,293 | 72,785,293 | 3 | true | 2022-06-28T10:27:31.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Postgresql View aggregating data<p>I've got a problem to make this "nice" and efficient, as well as easy to read. Unfortunately it's lacking both p... |
72,880,544 | How does instanceof operator actually work in JS?<p>I've searched the site for this question and got the following answer:</p>
<pre class="lang-js prettyprint-override"><code>function instance_of(V, F) {
var O = F.prototype;
V = V.__proto__;
while (true) {
if (V === null)
return false;
if (O === V)
... | <p>JavaScript has a feature called autoboxing which <a href="https://stackoverflow.com/a/17217024/19068">converts primitives to Objects</a> when you try to access properties on them.</p>
<p><code>instanceof</code> doesn't autobox and a primitive number is not an instance of the Number class.</p>
<p>You can see, <a href... | How does instanceof operator actually work in JS? | javascript | 0 | 39 | 1 | 72,880,620 | 72,880,620 | 3 | true | 2022-07-06T08:54:14.223Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How does instanceof operator actually work in JS?<p>I've searched the site for this question and got the following answer:</p>
<pre class="lang-js prettyprin... |
72,779,101 | Why do I have to make a 2d array for this<p>I was solving a question online on strings where we had to perform run-length encoding on a given string, I wrote this function to achieve the answer</p>
<pre><code>using namespace std;
string runLengthEncoding(string str) {
vector <char> encString;
int runLength =... | <p><code>std::to_string()</code> returns a <code>std::string</code>. That's what it does, if you check your C++ textbook for a description of this C++ library function that's what you will read there.</p>
<pre><code>encString.push_back( /* something */ )
</code></pre>
<p>Because <code>encString</code> is a <code>std::v... | Why do I have to make a 2d array for this | c++|string|data-structures|stl | -2 | 39 | 1 | 72,779,145 | 72,779,145 | 3 | true | 2022-06-27T23:01:05.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why do I have to make a 2d array for this<p>I was solving a question online on strings where we had to perform run-length encoding on a given string, I wrote... |
72,882,093 | TSQL IF appears to randomly execute code from wrong logic branch<p>I have an idempotent script that brings different database deployments up to the latest revision. The column referenced in the code is actually deleted in a future release, so in order to preserve the script's validity I check if the column exists befo... | <p>None of your statements are run, it isn't skipping the <code>PRINT</code> and <code>RAISERROR</code> and going to the <code>INSERT INTO</code>, instead the entire batch fails due to a compilation error.</p>
<p>Despite some beliefs, T-SQL is <em>parsed</em> and validated before it is executed, and if the statement is... | TSQL IF appears to randomly execute code from wrong logic branch | sql-server|tsql|if-statement|sql-server-2019 | 0 | 39 | 1 | 72,882,281 | 72,882,281 | 3 | true | 2022-07-06T10:40:26.510Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
TSQL IF appears to randomly execute code from wrong logic branch<p>I have an idempotent script that brings different database deployments up to the latest re... |
72,890,021 | How to iterate through values of a dictionary until there is no more values (reached the end of the dictionary)?<p>Let's say I have a dictionary such as</p>
<pre><code>d = {'Item 1': [3,4,5,3], 'Item 2': [2,3,4], 'Item 3': [5,34,75,35,65]}
</code></pre>
<p>What I want to do is calculate the summation of two elements in... | <p>If you have Python 3.10, you can use <code>itertools.pairwise</code>:</p>
<pre><code>from itertools import pairwise, chain
d = {
'Item 1': [3,4,5,3],
'Item 2': [2,3,4],
'Item 3': [5,34,75,35,65]
}
for key, numbers in d.items():
s = sum(chain.from_iterable(pairwise(numbers)))
print(f"{key}:... | How to iterate through values of a dictionary until there is no more values (reached the end of the dictionary)? | python|python-3.x|dictionary | -2 | 39 | 2 | 72,890,084 | 72,890,084 | 3 | true | 2022-07-06T21:24:42.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to iterate through values of a dictionary until there is no more values (reached the end of the dictionary)?<p>Let's say I have a dictionary such as</p>
... |
72,929,956 | Means in Numpy with tuples<p>I have a list of tuples, and for some of the operations I need to do, I need to find the mean, but i'm having a problem that I don't quite understand.</p>
<pre><code># This works
weeks = [(1, 7),
(8, 14),
(15, 21),
(22, 28),
(29, 35),
(36, 44)
... | <p>You could convert <code>weeks</code> to a numpy array and use the <code>mean</code> method:</p>
<pre><code>np.array(weeks).mean()
</code></pre>
<p>Output:</p>
<pre><code>21.666666666666668
</code></pre>
<p>You can also use the <code>axis</code> argument to calculate the mean of the 'rows' and 'columns':</p>
<pre><co... | Means in Numpy with tuples | python|numpy|tuples|mean | 0 | 39 | 4 | 72,929,987 | 72,929,987 | 3 | true | 2022-07-10T16:10:03.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Means in Numpy with tuples<p>I have a list of tuples, and for some of the operations I need to do, I need to find the mean, but i'm having a problem that I d... |
72,850,304 | Wrong data (junk or 0s) returned from pointer array member of struct<p>I'm trying to read some float values as an array to a struct member as shown below:</p>
<pre><code>#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <stdio.h>
#define MAX_IN 10
typedef struct S_t S_t;
stru... | <p>In this line:</p>
<pre><code>inS.sptr = (float *) malloc(n * sizeof(float));
</code></pre>
<p>you cause <code>sptr</code> to point to a malloc'ed region of just the right size for your inputs.
That's good.
But in the very next line:</p>
<pre><code>inS.sptr = fvls;
</code></pre>
<p>you throw the malloc'ed pointer awa... | Wrong data (junk or 0s) returned from pointer array member of struct | arrays|c|pointers|struct | 0 | 39 | 1 | 72,850,326 | 72,850,326 | 3 | true | 2022-07-03T22:26:40.617Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wrong data (junk or 0s) returned from pointer array member of struct<p>I'm trying to read some float values as an array to a struct member as shown below:</p... |
73,017,778 | How to print a python list-of-lists compactly, but still readably?<p>Is there a way to control how json is formatted using <a href="https://docs.python.org/3/library/json.html" rel="nofollow noreferrer"><code>json.dumps</code></a>? The default puts one value on each line, which for a very simple list becomes unreadably... | <p>If you try <a href="https://docs.python.org/3/library/pprint.html" rel="nofollow noreferrer"><code>pprint.pprint()</code></a>:</p>
<pre><code>from pprint import pprint
x = [[1,1,1,1,1] for _ in range(5)]
pprint(x)
</code></pre>
<p>Output:</p>
<pre class="lang-none prettyprint-override"><code>[[1, 1, 1, 1, 1],
[1, ... | How to print a python list-of-lists compactly, but still readably? | python|json | 0 | 39 | 1 | 73,017,793 | 73,017,793 | 3 | true | 2022-07-18T05:44:30.407Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to print a python list-of-lists compactly, but still readably?<p>Is there a way to control how json is formatted using <a href="https://docs.python.org/3... |
72,857,491 | How to calculate average of count per day in MySQL?<p>I have a table called SDON, and a query that counts the total number of pallets on each date of import. I wish to group these together and average the counts per month.</p>
<p>My count query:</p>
<pre><code>SELECT COUNT(`storage unit`) AS `Pallets`, `import_date`
F... | <p>You can group the results of your original query by year and month of the date:</p>
<pre><code>SELECT EXTRACT(YEAR_MONTH FROM import_date) AS import_month
, AVG(day_total) AS average_per_day
FROM (
SELECT import_date
, COUNT(`storage unit`) AS day_total
FROM sdon
GROUP BY import_date
) AS x... | How to calculate average of count per day in MySQL? | mysql|sql|average|aggregate-functions | 0 | 39 | 1 | 72,857,600 | 72,857,600 | 3 | true | 2022-07-04T13:24:43.263Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to calculate average of count per day in MySQL?<p>I have a table called SDON, and a query that counts the total number of pallets on each date of import.... |
72,773,543 | Is there a way to get the variable names passed into a function from within the function?<p>I'd like to know what the variable name was that was passed into a function. Is this possible in Python?</p>
<p>Consider this case:</p>
<pre class="lang-py prettyprint-override"><code>john = 199
def foo(userId:int)->float:
... | <p>Variable names <em>are not</em> passed into a function. Variable <em>values</em> are. Those values may or may not be conveyed via variables at the point of a given call, but if they are, the variable names are not part of the semantics of the call. That is, the names are not available to the code in the function.... | Is there a way to get the variable names passed into a function from within the function? | python | 0 | 39 | 2 | 72,773,678 | 72,773,678 | 4 | true | 2022-06-27T14:12:35.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to get the variable names passed into a function from within the function?<p>I'd like to know what the variable name was that was passed into ... |
72,996,956 | What are the default headers used by http package?<p>What headers does Dart's <a href="https://pub.dev/packages/http" rel="nofollow noreferrer">http package</a> use by default when POST or GET requests made from a Flutter application? Does using a <a href="https://pub.dev/documentation/http/latest/http/Client-class.htm... | <p>I was curious this question myself, so I set up a little client-server example.</p>
<p>From a Simple dart file: I made a get request to my server (also written in Dart using shelf_plus(<a href="https://pub.dev/packages/shelf_plus" rel="nofollow noreferrer">https://pub.dev/packages/shelf_plus</a>) Highly recommend)</... | What are the default headers used by http package? | flutter|dart|flutter-packages|flutter-http|dart-packages | 1 | 39 | 1 | 72,998,252 | 72,998,252 | 4 | true | 2022-07-15T16:20:03.760Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What are the default headers used by http package?<p>What headers does Dart's <a href="https://pub.dev/packages/http" rel="nofollow noreferrer">http package<... |
73,030,612 | check if substring exists in main string per word<p>I have a string I want to check if a substring is in the main string. The code I have below works partially. The problem is I want to check if the substring matches per word to the main string currently it checks per character. To Explain this better say my main strin... | <p>Turn the needle into a regular expression surrounded by word boundaries.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const testString = 'the banana is yellow'
const chec... | check if substring exists in main string per word | javascript | 0 | 39 | 1 | 73,030,619 | 73,030,619 | 4 | true | 2022-07-19T02:54:10.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
check if substring exists in main string per word<p>I have a string I want to check if a substring is in the main string. The code I have below works partial... |
72,950,258 | Type Parameter Panicking in Function Call<p>I have a struct in Go, which represents a state. I now want to be able to compare two states (current & desired),
whereby each field is compared with the other. I define two states as "equal" if all fields are "equal".
However, in some cases, field equ... | <p>I believe this is a bug described here:
<a href="https://github.com/golang/go/issues/53376" rel="nofollow noreferrer">https://github.com/golang/go/issues/53376</a></p>
<p>To fix in current version you can reassign the variables:</p>
<pre><code>func compareTwo[T any](x StateField[T], y T) error {
a := x
b := ... | Type Parameter Panicking in Function Call | go|generics|type-parameter | 2 | 39 | 1 | 72,950,882 | 72,950,882 | 4 | true | 2022-07-12T09:45:08.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Type Parameter Panicking in Function Call<p>I have a struct in Go, which represents a state. I now want to be able to compare two states (current & desir... |
72,787,484 | Are @Input() readonly good practice in Angular?<p>Is it considered a good practice to use the keyword <code>readonly</code> on <code>@Input()</code> fields in Angular ?</p>
<p>Or are there any drawbacks ?</p> | <p>You won't be able to use the <code>@Input()</code> field.</p>
<pre><code>Error: src/app/app.component.html:6:12 - error TS2540: Cannot assign to 'foo' because it is a read-only property.
6 <app-test [foo]="5"></app-test>
~~~
</code></pre>
<p>You can get around this error by removing</... | Are @Input() readonly good practice in Angular? | angular | 0 | 39 | 1 | 72,787,760 | 72,787,760 | 4 | true | 2022-06-28T13:39:03.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Are @Input() readonly good practice in Angular?<p>Is it considered a good practice to use the keyword <code>readonly</code> on <code>@Input()</code> fields ... |
72,965,921 | Basic Example of Lua Table Attribute Misunderstanding<p>I'm trying to create some simple variables which can be used to compare the current direction of a sprite in a game and obtain the opposite and adjacent directions. Such that if the player's direction is set to <code>U</code> by <code>direction=U</code> then I can... | <blockquote>
<p>This example clearly shows i havent understood Lua 101 but I'm intrigued if and how I can get the functionality I want.</p>
</blockquote>
<p>It is possible to fix your code simply by <em>not replacing the tables with new tables</em>, but rather <em>assigning to them</em> (this is in fact the only possib... | Basic Example of Lua Table Attribute Misunderstanding | lua|lua-table | 2 | 39 | 2 | 72,966,057 | 72,966,057 | 4 | true | 2022-07-13T11:59:32.067Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Basic Example of Lua Table Attribute Misunderstanding<p>I'm trying to create some simple variables which can be used to compare the current direction of a sp... |
72,856,844 | Selecting a row where range lies between two columns in mysql<p>I have 4 columns in my table</p>
<pre><code>id , amount_from, amount_to, amount
</code></pre>
<p>My value is lets suppose 350000</p>
<p>The data in the table is:</p>
<p><img src="https://i.stack.imgur.com/ETUMa.png" alt="image of table data" /></p>
<p>i wa... | <p>Normally you would use the keyword 'BETWEEN'</p>
<pre><code>SELECT * FROM table WHERE id=5 AND 350000 BETWEEN amount_from AND amount_to
</code></pre> | Selecting a row where range lies between two columns in mysql | php|mysql|sql|database|range | 0 | 39 | 1 | 72,856,918 | 72,856,918 | 4 | true | 2022-07-04T12:32:58.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Selecting a row where range lies between two columns in mysql<p>I have 4 columns in my table</p>
<pre><code>id , amount_from, amount_to, amount
</code></pre>... |
72,773,365 | Update the version of only one PrimeFaces component<p>I currently use PrimeFaces 7.0 in my project. There are some components in PrimeFaces 10 that are useful for my project.</p>
<p>However to update all the components of PrimeFaces is difficult due to many stylizations that contain in the project.</p>
<p>Is there any ... | <p>Running two versions of PrimeFaces within a project is not possible.</p>
<p>Consider upgrading, regardless styling issues you will need to overcome. Apart from many bug fixes, there are also security fixes! And there will be fixes in the future you can more easily migrate to if you bite the apple now.</p>
<p>And yes... | Update the version of only one PrimeFaces component | jsf|primefaces | 1 | 39 | 1 | 72,773,476 | 72,773,476 | 4 | true | 2022-06-27T13:59:56.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Update the version of only one PrimeFaces component<p>I currently use PrimeFaces 7.0 in my project. There are some components in PrimeFaces 10 that are usefu... |
72,804,091 | How to get a Docker container's IP address from the Windows host<p>How do I detect the IP of a docker container running on Windows host with WSL?</p>
<p>I can see docker container is running:</p>
<pre><code>juergen@DESKTOP4WIN10:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED ... | <p>Open Windows command line and use <em>ipconfig</em></p>
<pre><code>ipconfig
</code></pre>
<p>Find <em>Ethernet-Adapter vEthernet (WSL)</em> (Or similar) there you will see IP4 and IP6.</p>
<p>Screenshot is from a german Windows but I am sure other version look pretty much the same.</p>
<p><a href="https://i.stack.im... | How to get a Docker container's IP address from the Windows host | docker | 0 | 39 | 3 | 72,804,093 | 72,804,093 | -1 | true | 2022-06-29T15:29:56.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get a Docker container's IP address from the Windows host<p>How do I detect the IP of a docker container running on Windows host with WSL?</p>
<p>I ca... |
72,788,888 | Node.JS Page only loads about 50% of the time<p>I have a function called parsedata in my node.js file which is called when a user logs in. After parsedata() is called, the server switches to a new screen. However, this only works every other time. I put an asynchronous wait in between, which made it work about 90% of t... | <p>It has something with the macro and micro tasks.Your code has the same result with the following codes:</p>
<pre class="lang-js prettyprint-override"><code>new Promise((resolve, reject) => {
findCommon().then(dates => {
getMaxStreak(dates).then(maxStreak => {})
})
resolve()
})
.then(() =>... | Node.JS Page only loads about 50% of the time | javascript|node.js | 1 | 39 | 1 | 72,790,278 | 72,790,278 | -1 | true | 2022-06-28T15:03:58.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Node.JS Page only loads about 50% of the time<p>I have a function called parsedata in my node.js file which is called when a user logs in. After parsedata() ... |
72,974,197 | My JavaScript file is not being called by the HTML file when I specify the type as module in the <script> tag<p>I am trying to make a JavaScript file a module, but that stops the html from calling the JavaScript file. When I don't make it a module it calls the code and it works as expect, printing Start Successful in t... | <p>It could be the way the path is written:</p>
<p>If the HTML and javascript files are in the same folder.
Instead of:</p>
<pre><code><script type="module" src="script.js"></script>
</code></pre>
<p>You can try:</p>
<pre><code> <script type="module" src="./script.js... | My JavaScript file is not being called by the HTML file when I specify the type as module in the <script> tag | javascript|html|module | 0 | 39 | 1 | 72,974,220 | 72,974,220 | -1 | true | 2022-07-14T01:15:45.780Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
My JavaScript file is not being called by the HTML file when I specify the type as module in the <script> tag<p>I am trying to make a JavaScript file a modul... |
72,989,343 | How to mock test wait_until logic in a python3 using pytest<p>I am trying to implement a unit test for the wait_until function. However, I don't have api_key. call_api function is auto-generated. Sometimes get_api can have multiple required parameters. I want to test if get_api function can be called using a fake respo... | <p>I believe you can achieve that with <a href="https://pypi.org/project/pytest-mock/" rel="nofollow noreferrer">pytest-mock</a>.</p>
<p>You can write a test like this:</p>
<pre class="lang-py prettyprint-override"><code>def test_call_api(mocker):
mocker.patch(
'my_module.main.api',
return_value=&qu... | How to mock test wait_until logic in a python3 using pytest | python-3.x|pytest|pytest-mock | 0 | 39 | 1 | 72,993,353 | 72,993,353 | -1 | true | 2022-07-15T05:19:12.170Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to mock test wait_until logic in a python3 using pytest<p>I am trying to implement a unit test for the wait_until function. However, I don't have api_key... |
72,769,747 | Concatenating 3 multidimensional arrays in Python<p>I have three arrays <code>I1,I2,I3</code> with shape <code>(1,9,2)</code>. I am trying to append but there is an error. The new array should have shape <code>(3,9,2)</code></p>
<pre><code>import numpy as np
I1 = np.array([[[0, 2],
[2, 3],
[2, 5],
... | <p>Use <code>I=np.concatenate([I1,I2,I3],axis=0)</code> rather than <code>append</code>. Append does what you'd expect from a list (and try not to use it in numpy, anyway, for memory allocation reasons!)`</p> | Concatenating 3 multidimensional arrays in Python | python|numpy | 0 | 40 | 2 | 72,769,819 | 72,769,819 | 0 | true | 2022-06-27T09:24:40.867Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Concatenating 3 multidimensional arrays in Python<p>I have three arrays <code>I1,I2,I3</code> with shape <code>(1,9,2)</code>. I am trying to append but ther... |
72,775,496 | How can I merge aggregate two dataframes in Pandas while subtracting column values?<p>I'm working on a rudimentary inventory system and am having trouble finding a solution to this obstacle. I've got two Pandas dataframes, both sharing two columns: PLU and QTY. PLU acts as an item identifier, and QTY is the quantity of... | <p>here is one way to do that
Using assign and merge</p>
<pre><code>df.assign(QTY = df['QTY'] - df.merge(df2, on='PLU', suffixes=('','_y'), how='left')['QTY_y'].fillna(0))
</code></pre>
<pre><code> PLU QTY
0 12345678 3
1 90123456 4
2 78901234 1
</code></pre> | How can I merge aggregate two dataframes in Pandas while subtracting column values? | python|pandas|dataframe | 0 | 40 | 2 | 72,775,630 | 72,775,630 | 0 | true | 2022-06-27T16:33:31.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I merge aggregate two dataframes in Pandas while subtracting column values?<p>I'm working on a rudimentary inventory system and am having trouble fin... |
72,775,852 | @ConditionalOnBean not work for spring boot test<p>Hy everyone! I'm trying to solve the problem for a very long time.</p>
<p>There is very simple spring boot test</p>
<pre><code>public class ApplicationTest {
@Test
void testContext() {
SpringApplication.run(Application.class);
}
}
</code></pre>
<p>... | <p>To use <code>@ConditionalOnBean</code> correctly, <code>CommonService</code> needs to be an auto-configuration class or defined as a bean by an auto-configured class rather than a service that's found by component scanning. This ensures that the bean on which <code>CommonService</code> is conditional has been define... | @ConditionalOnBean not work for spring boot test | spring|spring-boot|spring-context | 0 | 40 | 1 | 72,776,975 | 72,776,975 | 0 | true | 2022-06-27T17:03:05.943Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
@ConditionalOnBean not work for spring boot test<p>Hy everyone! I'm trying to solve the problem for a very long time.</p>
<p>There is very simple spring boot... |
72,777,431 | Docker-compose network : how to connect to other container?<p>Im running zabbix with docker compose with multiple containers.</p>
<p>I have an issue with connecting two containers to each other (see : <a href="https://stackoverflow.com/questions/72764827/docker-containerized-zabbix-server-monitoring-same-host-running-t... | <p>Use the other container's Compose service name and the port the process inside that container is listening on. In your example, assuming the second <code>ports:</code> numbers are both correct, both containers should be able to access <code>zabbix-server:10051</code> and <code>zabbix-agent:10050</code>. Also see <... | Docker-compose network : how to connect to other container? | docker | 0 | 40 | 1 | 72,778,423 | 72,778,423 | 0 | true | 2022-06-27T19:30:22.690Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Docker-compose network : how to connect to other container?<p>Im running zabbix with docker compose with multiple containers.</p>
<p>I have an issue with con... |
72,778,420 | Django query with conflicting fields returns duplicate answers<p>Query:</p>
<pre class="lang-py prettyprint-override"><code>cameraSystems = DWCloudSystem.objects.filter(isShared=False).filter(company_key=comp)
cameraSystems = cameraSystems | DWCloudSystem.objects.filter(isShared=True).filter(location__owners=comp)
</co... | <p>Use a single filter condition and use <a href="https://docs.djangoproject.com/en/dev/ref/models/querysets/#distinct" rel="nofollow noreferrer"><strong><code>.distinct(…)</code></strong> <sup>[Django-doc]</sup></a> to return distinct <code>DwCloudSystem</code>s:</p>
<pre><code>from django.db.models import Q
DWCloudS... | Django query with conflicting fields returns duplicate answers | python|django|django-models|django-queryset | 1 | 40 | 1 | 72,778,448 | 72,778,448 | 0 | true | 2022-06-27T21:20:47.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django query with conflicting fields returns duplicate answers<p>Query:</p>
<pre class="lang-py prettyprint-override"><code>cameraSystems = DWCloudSystem.obj... |
72,779,916 | How to find out if parent have children in php mysql<p>It have two table parent table and children table</p>
<p><strong>Parent Table</strong></p>
<pre><code>id page-title page-content
</code></pre>
<p><strong>Children Table (where parent_id = id) id from parent table</strong></p>
<pre><code>child_id parent_id ... | <p>I Have no idea in PHP. But you can do this by changing your query.</p>
<pre><code>Select *
from Children c
left Join Parent p on p.id = c.parent_id
</code></pre>
<blockquote>
<p>You can check parent_id value.</p>
</blockquote>
<p><code>If Parent_id value null then no parent avaialble. If it is not null parent is Av... | How to find out if parent have children in php mysql | mysql | 1 | 40 | 3 | 72,779,981 | 72,779,981 | 0 | true | 2022-06-28T01:52:25.457Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to find out if parent have children in php mysql<p>It have two table parent table and children table</p>
<p><strong>Parent Table</strong></p>
<pre><code>... |
72,776,900 | Different image sizes as inputs for Tensorflow 2 Object Detection API<p>When using Tensorflow 2 object detection api when do I normalize images of different sizes. Do I preprocess all the images to be same size then annotate with object bounding box? Or do the models somehow do the resizing internally and adjusts the p... | <p>according to my understanding, it is not required to normalize or all the images do not need to be resized by yourself. API will do the job, all you need to do annotation.</p> | Different image sizes as inputs for Tensorflow 2 Object Detection API | image-processing|tensorflow2.0|object-detection|object-detection-api|image-annotations | 0 | 40 | 1 | 72,781,925 | 72,781,925 | 0 | true | 2022-06-27T18:36:50.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Different image sizes as inputs for Tensorflow 2 Object Detection API<p>When using Tensorflow 2 object detection api when do I normalize images of different ... |
72,782,258 | Creating a chess board that calculates moves in backend in NodeJS<p>This is my first time using NodeJS so I apologize in advance if this is a noob question.</p>
<p>I want to build a NodeJS chess app where the user can play the computer, but the computer's moves are calculated on the backend. I've been trying to get che... | <p>Generally, games have a certain number of things you need to manage like current state, game loops, etc. This state ideally live on the client side and persisted on the serverside periodically. So i feel since there is no backend code and there's isn't much info here, i suggest you start with a simpler game, react w... | Creating a chess board that calculates moves in backend in NodeJS | node.js|chessboard.js | 1 | 40 | 1 | 72,782,354 | 72,782,354 | 0 | true | 2022-06-28T07:23:16.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating a chess board that calculates moves in backend in NodeJS<p>This is my first time using NodeJS so I apologize in advance if this is a noob question.<... |
72,782,689 | Column names of data frame into list<p>I have a data frame with over 700 columns. I wondered if there was any way of creating a new table with a list of these column names and their corresponding column number that I can refer back to?</p> | <p>Something like this?</p>
<pre><code> data.frame(col_no = 1:ncol(iris), variable = names(iris))
col_no variable
1 1 Sepal.Length
2 2 Sepal.Width
3 3 Petal.Length
4 4 Petal.Width
5 5 Species
</code></pre> | Column names of data frame into list | r | -1 | 40 | 2 | 72,782,773 | 72,782,773 | 0 | true | 2022-06-28T07:57:00.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Column names of data frame into list<p>I have a data frame with over 700 columns. I wondered if there was any way of creating a new table with a list of the... |
72,774,768 | Spring Batch: fixed length FlatFileItemReader expect a footer line or fail<p>Having a simple text file with fixed length records and a fixed footer, I want to validate that the footer in fact exists as the last line (in that specific format) and also keep processing in chunks, since the file is very large. If the foote... | <p>You can't do that in a single step because the footer is at the end of the file. I would do that validation in a prior step with a simple tasklet that counts the number of lines and checks if the count matches with the last line (if that line exists at all). The code should obviously try to get that information with... | Spring Batch: fixed length FlatFileItemReader expect a footer line or fail | java|spring|spring-boot|spring-batch|batch-processing | 0 | 40 | 1 | 72,784,027 | 72,784,027 | 0 | true | 2022-06-27T15:37:25.630Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Batch: fixed length FlatFileItemReader expect a footer line or fail<p>Having a simple text file with fixed length records and a fixed footer, I want t... |
72,777,067 | Flask-sqlalchemy table user has no column named email_address<p>I am learning Flask and I am trying to add a user to my database and I get this error.</p>
<pre><code>sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table user has no column named email_address
[SQL: INSERT INTO user (username, email_address, ... | <p>I guess I changed the name of the column at some point after I created the table. After deleting and recreating the table it fixed.</p> | Flask-sqlalchemy table user has no column named email_address | python|sqlalchemy | 0 | 40 | 1 | 72,786,523 | 72,786,523 | 0 | true | 2022-06-27T18:52:14.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flask-sqlalchemy table user has no column named email_address<p>I am learning Flask and I am trying to add a user to my database and I get this error.</p>
<p... |
72,786,296 | Trying to access the name of the object<p>I am trying to access the name of the object (FOI_OMG_101) and extract 101 from the name and display it in output.field</p>
<pre><code> const dataToInsert = {
FOI_OMG_101 : {
name : "jghj.pdf",
value: "base64"
}
};
const output = {
field: dataToIns... | <p>you can do something 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>const dataToInsert = {
FOI_OMG_101: {
name: "jghj.pdf",
value: "base64"
}
};
cons... | Trying to access the name of the object | javascript|reactjs|object | -3 | 40 | 2 | 72,786,836 | 72,786,836 | 0 | true | 2022-06-28T12:18:27.703Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trying to access the name of the object<p>I am trying to access the name of the object (FOI_OMG_101) and extract 101 from the name and display it in output... |
72,788,170 | Create table with multiple timetable sequences when start and end dates are given (Oracle SQL)<p>I'm studying SQL and just started to use it for business. The client has a database with Oracle system.</p>
<p>As a response a query, I have a table as follows,</p>
<pre><code>/* Defined as START_END_DATE_TABLE*/
Members ... | <p>From Oracle 12, you can use a <code>LATERAL</code> join to a hierarchical query:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT members,
day
FROM table_name t
CROSS JOIN LATERAL (
SELECT Start_DT + LEVEL - 1 AS day
FROM DUAL
CONNECT BY Start_DT + LEVEL - 1 &l... | Create table with multiple timetable sequences when start and end dates are given (Oracle SQL) | sql|oracle|date | 0 | 40 | 2 | 72,788,417 | 72,788,417 | 0 | true | 2022-06-28T14:20:14.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create table with multiple timetable sequences when start and end dates are given (Oracle SQL)<p>I'm studying SQL and just started to use it for business. Th... |
72,779,225 | How to use results from mysql built-in functions when inserting via mysql-x-devapi in C++?<p>I am using mysql-x-devapi and need to insert a row to a table and put <code>UNIX_TIMESTAMP()</code> of the server in a column:</p>
<pre><code>sql_client_.getSession().getDefaultSchema()
.getTable("event")
.ins... | <p>I used <code>mysqlx::expr("UNIX_TIMESTAMP()")</code>:</p>
<pre><code>sql_client_.getSession().getDefaultSchema()
.getTable("event")
.insert("title", "time")
.values("event title", mysqlx::expr("UNIX_TIMESTAMP()"))
.execute();
</code></pre>
<... | How to use results from mysql built-in functions when inserting via mysql-x-devapi in C++? | c++|mysql-x-devapi | 0 | 40 | 2 | 72,795,934 | 72,795,934 | 0 | true | 2022-06-27T23:23:50.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use results from mysql built-in functions when inserting via mysql-x-devapi in C++?<p>I am using mysql-x-devapi and need to insert a row to a table an... |
72,799,902 | Cannot write in text file in python program<p>So I am making a python game and everything in the python programs is fine except for the writing part</p>
<p>Here is a part of GameFile2.py:</p>
<pre><code>class lostToss():
def botChoose(self):
print("Bot is choosing between batting and bowling.")
... | <p>Omit the file opening before the <code>with</code> statements. Like this</p>
<pre><code>f = open("GamePoints.txt","w") # remove this line
with open('GamePoints.txt', 'a+') as f:
</code></pre>
<pre><code>file = open("GamePoints.txt","w+") # remove this line
with open('GamePoint... | Cannot write in text file in python program | python|class | 0 | 40 | 1 | 72,799,994 | 72,799,994 | 0 | true | 2022-06-29T10:32:41.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot write in text file in python program<p>So I am making a python game and everything in the python programs is fine except for the writing part</p>
<p>H... |
72,800,757 | Position icon in the middle of the text<p>I am having an issue with positioning in CSS. Now I have an icon and text like this :</p>
<p><a href="https://i.stack.imgur.com/1kl6A.png" rel="nofollow noreferrer">Icon</a></p>
<p>But I want to make the icon go to the middle of the text. How do I do that?</p> | <p>You can use <a href="https://www.w3schools.com/cssref/css3_pr_flex.asp" rel="nofollow noreferrer">Flex</a>.</p>
<p>Live code: <a href="https://codepen.io/amryasser32/pen/mdxdvrj" rel="nofollow noreferrer">Codepen</a></p>
<p>HTML:</p>
<pre><code> <div class='alert'>
<span class='alert-icon'>icon&l... | Position icon in the middle of the text | html|css|css-position | 0 | 40 | 2 | 72,800,936 | 72,800,936 | 0 | true | 2022-06-29T11:36:47.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Position icon in the middle of the text<p>I am having an issue with positioning in CSS. Now I have an icon and text like this :</p>
<p><a href="https://i.sta... |
72,802,101 | BeautifulSoup not working on this website<pre><code>from bs4 import BeautifulSoup
import requests
# HTML From Website
url = "https://myaeon2go.com/product/11073/local-tomato"
#convert soup to readable html
result = requests.get(url)
doc = BeautifulSoup(result.text, "html.parser")
prices = doc.fin... | <p>Problem is modal window (location overlay) with input of postal code which pop-up when script request the page. You can pass cookies which suppress window when requesting like this:</p>
<pre><code>...
cookies = {'hideLocationOverlay': 'true', 'selectedShippingState': 'Pulau Pinang', 'selectedPostalCode': '14000'}
... | BeautifulSoup not working on this website | python|web-scraping|beautifulsoup | -1 | 40 | 1 | 72,802,631 | 72,802,631 | 0 | true | 2022-06-29T13:17:14.813Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
BeautifulSoup not working on this website<pre><code>from bs4 import BeautifulSoup
import requests
# HTML From Website
url = "https://myaeon2go.com/prod... |
72,804,838 | CSS anchor text-align its content center not working<p>Try to align the div in the center of the link, not working. still align left.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override... | <p>Set the <code>margin</code> to <code>auto</code> on the div and remove the <code>text-align</code> rule on the anchor:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>a {
... | CSS anchor text-align its content center not working | css|anchor|text-align | 0 | 40 | 4 | 72,804,875 | 72,804,875 | 0 | true | 2022-06-29T16:26:04.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSS anchor text-align its content center not working<p>Try to align the div in the center of the link, not working. still align left.</p>
<p><div class="snip... |
72,805,193 | Remove duplicates in single column from view in SQL Server?<p>I (beginner SQL user) have a SQL Server view, created with the following statement:</p>
<pre><code>CREATE VIEW dbo.v_LSitesGeo AS
SELECT PS.LSiteID, GEO.geographyColumn
FROM dbo.Project_SiteID_Lookup AS PS INNER JOIN
dbo.Geocodio AS G... | <p>You can use <code>ROW_NUMBER()</code> to identify the first row of each group. Then, filtering out the other rows is easy. For example:</p>
<pre><code>select *
from (
SELECT
PS.LSiteID,
GEO.geographyColumn,
row_number() over(partition by PS.LSiteID order by PS.LSiteID) as rn
FROM dbo.Project_SiteID_L... | Remove duplicates in single column from view in SQL Server? | sql|sql-server|database|duplicates|rdbms | -1 | 40 | 2 | 72,805,489 | 72,805,489 | 0 | true | 2022-06-29T16:57:07.687Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Remove duplicates in single column from view in SQL Server?<p>I (beginner SQL user) have a SQL Server view, created with the following statement:</p>
<pre><c... |
72,802,661 | DirectoryEntry.Exists runs as CLI but not in WebAPI (dotnet c# activedirectory)<p>I'm writing an API to check if an OU exists in ActiveDirectory or not.
To perform this check, in C#, I run:</p>
<pre><code>string ouName = "MyOrg";
bool ouExists = DirectoryEntry.Exists ($"LDAP://OU={ouName},DC=test,DC=loca... | <p>The format of the paths for the DirectoryEntry are wrong.
I can't find a supporting document, but the following is the difference:</p>
<p>I was making the queries like this: <code>LDAP://{DN}</code></p>
<pre><code>LDAP://OU=MyOrg,DC=test,DC=local
</code></pre>
<p>While it seems the correct way to do it is: <code>LDA... | DirectoryEntry.Exists runs as CLI but not in WebAPI (dotnet c# activedirectory) | c#|active-directory|asp.net-core-webapi|windows-server-2016 | 0 | 40 | 1 | 72,806,523 | 72,806,523 | 0 | true | 2022-06-29T13:57:48.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
DirectoryEntry.Exists runs as CLI but not in WebAPI (dotnet c# activedirectory)<p>I'm writing an API to check if an OU exists in ActiveDirectory or not.
To p... |
72,807,840 | How to add a macro to an Excel document?<p>I recently began working with macros and VBA for work however my knowledge is currently very limited so please bear with me. I recently wrote a macro to apply a simple standardized format to all excel documents I send out to others. The macro has been working when I apply the ... | <p>Add your Macro to a Module, and then Export the Module. After exporting the module you can use this python code to add it/import it and run it.</p>
<pre><code>xl = win32com.client.Dispatch("Excel.Application")
xl.Workbooks.Add
wb = xl.ActiveWorkbook
wb.VBProject.VBComponents.Import "Full Path\VBA_Expo... | How to add a macro to an Excel document? | python|excel|vba | 0 | 40 | 1 | 72,807,909 | 72,807,909 | 0 | true | 2022-06-29T21:02:32.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add a macro to an Excel document?<p>I recently began working with macros and VBA for work however my knowledge is currently very limited so please bea... |
72,809,854 | React: TypeError: [function] is not a function<p>I'm currently learning React with a code-along portfolio tutorial course. I'm reaching the end of the course, but I've just hit an error and I can't figure out why it's firing. This particular section involves making a blogging feature that allows you to edit blog entrie... | <p>Seems like you are not passing required <code>props</code> from your calling parent component.</p>
<p>Also I can't see the definition of <code>handleSuccessfulFormSubmission(blog)</code> in your calling component.</p>
<p>If you can define that and pass like below code, it may work.</p>
<pre><code>export default clas... | React: TypeError: [function] is not a function | reactjs | 0 | 40 | 1 | 72,810,037 | 72,810,037 | 0 | true | 2022-06-30T02:58:14.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React: TypeError: [function] is not a function<p>I'm currently learning React with a code-along portfolio tutorial course. I'm reaching the end of the course... |
72,810,130 | How to create a circle div where the clickable area is still square and the hover effect have reduce it's radius<p>So I did was the snippet I've attached but the problem is when hovering on square area and not in the circle area or in the corner it's jittering. I need to somehow keep the square area as clickable. I'm w... | <p>You can use pseudo elements such as <code>::after</code> or <code>::before</code>.</p>
<p>Though they insert content at selected element, <code>::after</code> inserts content <strong>after</strong> the selected element and <code>::before</code> inserts content <strong>before</strong> the selected element.</p>
<p><co... | How to create a circle div where the clickable area is still square and the hover effect have reduce it's radius | html|css | 0 | 40 | 2 | 72,810,262 | 72,810,262 | 0 | true | 2022-06-30T03:52:21.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create a circle div where the clickable area is still square and the hover effect have reduce it's radius<p>So I did was the snippet I've attached but... |
72,810,769 | How to push to an array in useState with multiple field in array element<pre><code>const[data, setDate] = useState({
field1 : [{
f1: "",
f2: "",
}],
field2: [{
f3: "",
f4: "",
}]
})
</code></pre>
<p>In the above how I can update and push new element to... | <pre><code>const [data, setDate] = useState({
field1: [
{
f1: "",
f2: ""
}
],
field2: [
{
f3: "",
f4: ""
}
]
});
useEffect(() => {
let temp = { ...data };
temp.field1.push({ f3: "" })... | How to push to an array in useState with multiple field in array element | javascript|reactjs | 1 | 40 | 2 | 72,810,818 | 72,810,818 | 0 | true | 2022-06-30T05:39:53.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to push to an array in useState with multiple field in array element<pre><code>const[data, setDate] = useState({
field1 : [{
f1: "",
... |
72,807,286 | INDEX not being utilized in MySQL when larger dataset<p>My Query looks like this</p>
<pre><code>EXPLAIN SELECT
r.owner_id,
r.owner_address,
r.owner_platform,
r.updated_at
FROM some_owner_table as r
WHERE
r.updated_at > '2022-09-16 22:16:38.832'
ORDER BY
r.updated_at DESC LIMIT 200;
</... | <p>The query planner in MySQL / MariaDB makes cost-based choices about whether to use indexes. Oversimplifying, it guesses how much CPU and IO time it will take to satisfy the query with or without using indexes, and chooses the smallest guess. Like @BillKarwin said, those choices can be very different for small (hundr... | INDEX not being utilized in MySQL when larger dataset | mysql|query-optimization | 1 | 40 | 2 | 72,813,944 | 72,813,944 | 0 | true | 2022-06-29T20:11:24.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
INDEX not being utilized in MySQL when larger dataset<p>My Query looks like this</p>
<pre><code>EXPLAIN SELECT
r.owner_id,
r.owner_address,
r.... |
72,818,072 | length of varchar store in mysql<blockquote>
<p>Sorry, English isn't my first language... :(</p>
</blockquote>
<p>I want to learn the actual length of varchar how to store in mysql .ibd file. So I deside to make a test like this:</p>
<pre><code>CREATE TABLE record_format_demo (
c1 VARCHAR(10),
c2 VARCH... | <p>Perhaps this:</p>
<ul>
<li>x81 is 01 with the high bit on</li>
<li>The high bit says "this number is continued"</li>
<li>The continuation is x64</li>
<li>Putting the pieces together gives x0164 = decimal 356</li>
</ul>
<p>Have you found where/how the NULL flags show up?</p> | length of varchar store in mysql | mysql|innodb|varchar | 0 | 40 | 1 | 72,819,218 | 72,819,218 | 0 | true | 2022-06-30T15:05:02.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
length of varchar store in mysql<blockquote>
<p>Sorry, English isn't my first language... :(</p>
</blockquote>
<p>I want to learn the actual length of varcha... |
72,819,584 | Importing Functions From Another Directory Using A Function?<p>I'm using Python 3.9</p>
<p>I have the following structure:</p>
<pre><code>parent_folder
|
|-->. useful_functions.py .
|-->. script_folder_1 .
|
|-->. script_1.py
|-->. func... | <p>This doesn't define a function inside function_import.py but it does the job</p>
<hr />
<p><em>function_import.py</em>:</p>
<pre class="lang-py prettyprint-override"><code>import sys
import os
import re
local_dir = os.getcwd()
dir_up = os.path.dirname(local_dir)
sys.path.append(dir_up)
import useful_functions as uf
... | Importing Functions From Another Directory Using A Function? | python|python-3.x|python-import | 0 | 40 | 2 | 72,819,702 | 72,819,702 | 0 | true | 2022-06-30T17:05:25.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Importing Functions From Another Directory Using A Function?<p>I'm using Python 3.9</p>
<p>I have the following structure:</p>
<pre><code>parent_folder
... |
72,821,607 | removing special characters from a column in pandas dataframe<p>I have characters such as " ' . , " in a column in my df, and i cannot remove them using the replace() function. I have tried the following</p>
<pre><code>df.column_name = df.column_name.replace('/[^a-zA-Z ]/g', '')
</code></pre>
<p>But the resul... | <p>Remove the <code>/</code> and <code>g</code>, this syntax is not valid in python:</p>
<pre><code>df['column_name'] = df['column_name'].str.replace(r'[^a-zA-Z ]', '', regex=True)
</code></pre>
<p>output:</p>
<pre><code> id column_name
0 aaa sam
1 bbb joes
</code></pre> | removing special characters from a column in pandas dataframe | python|pandas|dataframe | 0 | 40 | 1 | 72,821,627 | 72,821,627 | 0 | true | 2022-06-30T20:22:50.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
removing special characters from a column in pandas dataframe<p>I have characters such as " ' . , " in a column in my df, and i cannot remove them ... |
72,811,457 | Running a forEach loop for $$ not completing the Promise<p>I'm trying to fetch the value of radio button using forEach array iteration. Even I mentioned the Promise statements [Promise, Promise.all, Promise.resolve], I gets results which shows still promise is not completed.</p>
<p>// First code with Promise.</p>
<pre>... | <p>I was giving Promise.all() statement inside map(). I should have given it outside map()... Statement like await Promise.all(array.map()). Now it waits for all promise to finish inside for-loop. and gives output as expected.</p>
<pre><code>let radioButton = await $$('.radioButton')
console.log('type(radioButton)->... | Running a forEach loop for $$ not completing the Promise | webdriver-io | 0 | 40 | 1 | 72,824,473 | 72,824,473 | 0 | true | 2022-06-30T06:56:04.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Running a forEach loop for $$ not completing the Promise<p>I'm trying to fetch the value of radio button using forEach array iteration. Even I mentioned the ... |
72,826,974 | How to solve component overlapping in React<p>I am trying to write a web application's front end using React.js. And I accomplish a Navigate bar component & an alert component when the user inputs the wrong password. When I render these two components, I found they <strong>overlapped</strong> and I don't know if an... | <p>It seems that your nav tag has position fixed. You should to give padding from top (height of your nav) to tag that wraps your pages. If it will not work, can you provide some css related to nav or what css library is used.</p>
<p>PS. Sry for my english.</p> | How to solve component overlapping in React | javascript|css|reactjs | 0 | 40 | 2 | 72,827,608 | 72,827,608 | 0 | true | 2022-07-01T09:11:54.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to solve component overlapping in React<p>I am trying to write a web application's front end using React.js. And I accomplish a Navigate bar component &a... |
72,827,671 | Should the browser download multiple images when using srcset?<p>my html markup is as follows:</p>
<pre><code><img srcset="https://res.cloudinary.com/xxx/image/upload/c_scale,w_300/v1653408278/notforsquares/ll/DSCF4429.jpg 300w, https://res.cloudinary.com/makingthings/image/upload/c_scale,w_600/v1653408278/notf... | <p>Yes, this is the correct behaviour. By using <code>srcset</code> you're basically setting all the possible image sources the browser can use (and their sizes). You should also use <code>sizes</code> attribute to indicate which image (and it's size) the browser should use on different breakpoints.</p> | Should the browser download multiple images when using srcset? | html | 0 | 40 | 2 | 72,828,504 | 72,828,504 | 0 | true | 2022-07-01T10:08:52.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Should the browser download multiple images when using srcset?<p>my html markup is as follows:</p>
<pre><code><img srcset="https://res.cloudinary.com... |
72,830,492 | Azure search term matching issue<p>I'm using the English.Lucene analyzer, searching for the term 'rocking chairs' correctly returns results such as
rocking chair</p>
<p>but does not return results such as
rocker</p>
<p>What can I do to tune the index so that it returns these results?</p> | <p>You can use a Synonym map <a href="https://docs.microsoft.com/en-us/azure/search/search-synonyms" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/search/search-synonyms</a> and map rocking to rocker so that results with rocker are also returned.</p> | Azure search term matching issue | azure-cognitive-search|azure-search-.net-sdk | 0 | 40 | 2 | 72,831,314 | 72,831,314 | 0 | true | 2022-07-01T14:05:01.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure search term matching issue<p>I'm using the English.Lucene analyzer, searching for the term 'rocking chairs' correctly returns results such as
rocking c... |
72,831,550 | How can I use a Button Child in more than one Parents?<p>I hope someone can help me. I'm pretty sure that it's really easy but most of the time it get me really stuck.</p>
<p>I'm using React and in this example I have two Parents components and one CloseButton Child component that has the function of hide and show the ... | <p>You can select all parents using <code>querySelectorAll</code>. The code you posted was not formatted properly, so this is what I could make out of it.</p>
<pre><code>function close() {
let parents = document.querySelectorAll('.container_blur')'
if ( parents.length < 1 ) return;
parents.forEach(parent... | How can I use a Button Child in more than one Parents? | javascript|html|reactjs|components|parent | 0 | 40 | 1 | 72,831,631 | 72,831,631 | 0 | true | 2022-07-01T15:32:11.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I use a Button Child in more than one Parents?<p>I hope someone can help me. I'm pretty sure that it's really easy but most of the time it get me rea... |
72,819,999 | How to save outlook email attachments with Python, on Virtal Desktop (VMWare)<p>The below code works on my W10 laptop, but not on my w10 or w7 virtual desktop (VMWare).</p>
<p>It reads emails and save attachments from a specific sender to a shared network drive, and moves the email to a sub folder.</p>
<p>I guess I nee... | <p>Oddly running this on a virtual desktop you need to reverse the order, so instead of going for GetLast, using GetFirst resolved this.
Did hit another snag where Outlook brings up a message to allow an programme to emails, of either 1, 2, 5 or 10 minutes.
I couldn't find a way to deactivate this on our VMWare, so hav... | How to save outlook email attachments with Python, on Virtal Desktop (VMWare) | python|outlook|vmware|pywin32 | 0 | 40 | 1 | 72,832,987 | 72,832,987 | 0 | true | 2022-06-30T17:44:18.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to save outlook email attachments with Python, on Virtal Desktop (VMWare)<p>The below code works on my W10 laptop, but not on my w10 or w7 virtual deskto... |
72,844,122 | show and hide select options don't work on modal<p>I'm creating a website using flask, HTML, CSS, and Javascript. I would like to add a function that shows a hidden div when selecting a specific option(In this case, if users select '2' the hidden div is shown). However, this function doesn't work. <br>
<a href="https:/... | <p>I am not a jQuery person, but it seems there is a lot of syntactical error in the code. It's the same with your "onChange" event and "Queryselector".</p>
<p>I have done the minimal changes in the syntax and get the result you want, you can definitely correct the rest of the code according to the ... | show and hide select options don't work on modal | javascript|html|css | 0 | 40 | 1 | 72,844,350 | 72,844,350 | 0 | true | 2022-07-03T05:32:13.167Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
show and hide select options don't work on modal<p>I'm creating a website using flask, HTML, CSS, and Javascript. I would like to add a function that shows a... |
72,846,034 | sessionStorage not available immediately after navigate<p>I am trying to implement an React solution with Strapi as backend where authorization is done using JWT-keys. My login form is implemented using the function below:</p>
<pre><code>const handleLogin = async (e) => {
let responsekey = null
e.pre... | <p><code>export default GetAPI()</code> this is the problematic line. You are running the GetApi function when the module loads. Basically you only get the token when you visit the site and the js files are loaded. Then you keep working with null. When you reload the page it can load the token from the session storage.... | sessionStorage not available immediately after navigate | reactjs|async-await|jwt|strapi|session-storage | 0 | 40 | 1 | 72,846,301 | 72,846,301 | 0 | true | 2022-07-03T11:18:20.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
sessionStorage not available immediately after navigate<p>I am trying to implement an React solution with Strapi as backend where authorization is done using... |
72,845,883 | How can I count distinct only the values in VARCHAR array?<p>I have a VARCHAR column with arrays in it (string as a array) in Oracle sql dialect how can I count the distinct values in it?</p>
<p>for example I have the following rows</p>
<pre><code>ID List
1 ["351","364"]
2 ["364","... | <p>Assuming you're on a recent version of Oracle, you can use JSON functions to extract the elements of the arrays:</p>
<pre><code>select t.id, j.value
from your_table t
outer apply json_table (t.list, '$[*]' columns (value path '$')) j
</code></pre>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
... | How can I count distinct only the values in VARCHAR array? | sql|string|oracle | -2 | 40 | 1 | 72,846,404 | 72,846,404 | 0 | true | 2022-07-03T10:54:19.690Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I count distinct only the values in VARCHAR array?<p>I have a VARCHAR column with arrays in it (string as a array) in Oracle sql dialect how can I co... |
72,851,841 | NextJS: How do I get this component to display width on page load?<p>When running the below code that gets the screen width of the browser I get this error:</p>
<blockquote>
<p>ReferenceError: window is not defined</p>
</blockquote>
<p>The code commented-out works, uses 0 as a default, but correctly updates when the br... | <p>This happens because in the pre rendering that nextjs performs on the window server it is not yet defined, I solved this in my code by adding an if, this is an example code of how it would look</p>
<pre><code>import React, { useState, useEffect } from "react";
const WindowTracker = () => {
const [sho... | NextJS: How do I get this component to display width on page load? | javascript|reactjs|next.js | 1 | 40 | 4 | 72,851,886 | 72,851,886 | 0 | true | 2022-07-04T04:40:57.993Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
NextJS: How do I get this component to display width on page load?<p>When running the below code that gets the screen width of the browser I get this error:<... |
72,781,454 | MAUI support for PAX terminal e800<p>I am new to Android and a little confused. I have a PAX e800 terminal the installed (OS) PayDroid Powered by Android 6.0 + (Q20) Prolin with a Cortex A17 + (Q20) Cortex A7 processor.</p>
<p>I have no problems building and producing a Signed APK. However when I try to install it on t... | <p>add this to the project file</p>
<p>android-arm;android-arm64;android-x86;android-x64</p>
<p>and this
True
</p>
<p>It will produce hardware specific APKs</p> | MAUI support for PAX terminal e800 | android|maui | 0 | 40 | 1 | 72,852,788 | 72,852,788 | 0 | true | 2022-06-28T06:06:35.620Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MAUI support for PAX terminal e800<p>I am new to Android and a little confused. I have a PAX e800 terminal the installed (OS) PayDroid Powered by Android 6.0... |
72,854,765 | how can I separate member functions from class in python?<p>I'm looking for functionality like this in C:</p>
<pre><code>// driver.h
void some_func(struct _struct* prod);
// driver_thisproduct.c
void some_func(struct _struct* prod) {
// do some stuff
}
// driver_thatproduct.c
void some_func(struct _struct* prod) {
//... | <p>You could just rename the module selected by user input:</p>
<pre><code>#this_product.py
def some_func(self):
# do some stuff
# that_product.py
def some_func(self):
# do some stuff
# driver.py
import that_product
import this_product
userSelectedProduct = None
product = input()
if product == 'thisproduct... | how can I separate member functions from class in python? | python | 0 | 40 | 1 | 72,855,019 | 72,855,019 | 0 | true | 2022-07-04T09:47:00.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can I separate member functions from class in python?<p>I'm looking for functionality like this in C:</p>
<pre><code>// driver.h
void some_func(struct _s... |
72,856,099 | Python: Extract column name for earliest and latest columns<p>I have a dataset with multiple date columns as follows</p>
<p><strong>Input Dataframe</strong></p>
<pre><code>> df
Date1 Date2 Date3
2008-08-11 NaT 2005-05-14
2010-06-18 2012-09-04 2003-01-16
NaT 2006-11-05 1999-03-31
</cod... | <p>Use:</p>
<pre><code>cols = ['Date1','Date2','Date3']
df['minDatecol'] = df[cols].fillna(pd.Timestamp.max).idxmin(axis=1)
print (df)
Date1 Date2 Date3 minDatecol
0 2008-08-11 NaT 2005-05-14 Date3
1 2010-06-18 2012-09-04 2003-01-16 Date3
2 NaT 2006-11-05 2009-03-31 Date2
<... | Python: Extract column name for earliest and latest columns | python|pandas|dataframe|date|min | 2 | 40 | 1 | 72,856,110 | 72,856,110 | 0 | true | 2022-07-04T11:38:02.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python: Extract column name for earliest and latest columns<p>I have a dataset with multiple date columns as follows</p>
<p><strong>Input Dataframe</strong><... |
72,855,405 | How to design a decoder circuits with start position and fixed length?<p>I have a task but don't know how to implement it?
I want to generate a fixed length output containing consecutive 1 output using combinatorial logic.
This is an Example:</p>
<pre><code>// input input output
// start_id(0~63) id_nu... | <p>I'll give you an idea and a pseudocode.</p>
<ul>
<li>Each of your ouputs have to be connected to a mux with two options: 0 or 1.</li>
<li>The select logic for the input must be driven by the input.</li>
</ul>
<p>Regarding the logic:</p>
<ul>
<li>Calculate start and end conditions.</li>
<li><code>AND</code> both cond... | How to design a decoder circuits with start position and fixed length? | verilog|system-verilog | 0 | 40 | 1 | 72,857,591 | 72,857,591 | 0 | true | 2022-07-04T10:36:33.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to design a decoder circuits with start position and fixed length?<p>I have a task but don't know how to implement it?
I want to generate a fixed length ... |
72,857,007 | recursive arithmetical operations with scala<p>I have a scala List object with a recursive definition of all operations I have to do with columns of a spark dataframe.
For example, the operations</p>
<p>(C1 - C2) + ( (C3 - C4)- (C5 -C6) )</p>
<p>are defined by the next scala List:</p>
<pre><code>List("addition&... | <p>The way you define the operation is quite strange. You encapsulate column name operands in a list, but not complex operands. Therefore your lists can either have 2 or three elements. How would you define something like <code>(A + (B-C))</code>? I would start by fixing that and write your operation either like this (... | recursive arithmetical operations with scala | scala|apache-spark|recursion | 0 | 40 | 2 | 72,857,657 | 72,857,657 | 0 | true | 2022-07-04T12:45:36.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
recursive arithmetical operations with scala<p>I have a scala List object with a recursive definition of all operations I have to do with columns of a spark ... |
72,858,924 | How can I subtract two integers datewise in SQL Server?<p>I have a table which has years as int, say 202101. I want to get the difference in months with 202205.</p>
<p>For example 202205 - 202101 = 16 (months).</p>
<p>Do you know how can I do that?</p> | <p>Just to expand on Larnu's comment.</p>
<pre><code>select datediff(month
,try_convert(date,concat(202101,'01'))
,try_convert(date,concat(202205,'01'))
)
</code></pre>
<p><strong>Results</strong></p>
<pre><code>16
</code></pre> | How can I subtract two integers datewise in SQL Server? | sql-server | 1 | 40 | 2 | 72,859,013 | 72,859,013 | 0 | true | 2022-07-04T15:17:33.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I subtract two integers datewise in SQL Server?<p>I have a table which has years as int, say 202101. I want to get the difference in months with 2022... |
72,836,781 | Migrating from Jersey client to RestTemplate, but it catch 401 error as HttpClientErrorException but Jersey client was not throwing this error why?<p>In my Service there was Jersey client implementation to call a rest API now I was migrating this code to RestTemplate.
In old code when there was a 401 error that comes a... | <p>I used the default ResponseErrorHandler, by using this it will bypass all the ResponseError exception</p>
<pre><code>RestTemplate rt = restTemplateBuilder.errorHandler(new ResponseErrorHandler(){
@Override
public boolean hasError(ClientHttpResponse response) throws IOException {
... | Migrating from Jersey client to RestTemplate, but it catch 401 error as HttpClientErrorException but Jersey client was not throwing this error why? | spring|spring-boot|exception|jersey-client|spring-resttemplate | 0 | 40 | 2 | 72,859,095 | 72,859,095 | 0 | true | 2022-07-02T05:51:01.377Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Migrating from Jersey client to RestTemplate, but it catch 401 error as HttpClientErrorException but Jersey client was not throwing this error why?<p>In my S... |
72,860,751 | How To Replace Text Inside of a Timeout<p>I'm trying to replace text inside of a timeout while only manipulating the part of the below HTML inside of "YOUR CODE HERE".</p>
<p>A ".innerHTML" should do the trick but I'm running into the element being null.</p>
<p>Any help would be greatly appreciated!... | <p>By "hacking" the function that runs after the timeout, this can be achieved.</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-html lang-html prettyprint-override"><code><!DOCTYPE html>
<html lan... | How To Replace Text Inside of a Timeout | javascript|string|replace|innerhtml|str-replace | -1 | 40 | 2 | 72,860,834 | 72,860,834 | 0 | true | 2022-07-04T18:25:26.107Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How To Replace Text Inside of a Timeout<p>I'm trying to replace text inside of a timeout while only manipulating the part of the below HTML inside of "Y... |
72,860,697 | Filter none null value from object in Java<p>I have a spring boot a application with some endpoints, one of the endpoints is to search for car options, see below</p>
<pre><code>@PostMapping("/searchCarOptions")
public ResponseEntity<Cars> search(
@Parameter(description = "some searchRequest... | <p>What I understand from above is that you are trying to enrich your <code>SearchRequest</code> before passing it to <code>SomeService#search</code>. I think you can implement little bit customised strategy pattern. Let's see how:</p>
<p>Create an interface SearchRequestEnricher like below</p>
<pre><code>public interf... | Filter none null value from object in Java | java|spring|spring-boot|null | 0 | 40 | 1 | 72,862,273 | 72,862,273 | 0 | true | 2022-07-04T18:19:40.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Filter none null value from object in Java<p>I have a spring boot a application with some endpoints, one of the endpoints is to search for car options, see b... |
72,862,227 | Okhttp Websocket, how to get the Socket instance created by its default SSLSocketFactory after connection?<p>I need to have access to the instance of the Socket class created internally by the Okhttp WebSocket, but couldn't find any way to do such a thing.</p>
<p>I used the bellow code for creating the websocket:</p>
<... | <p>Create your own subclass of SSLSocketFactory that delegates to a 'real' implementation. Then keep track of the socket instance you returned.</p> | Okhttp Websocket, how to get the Socket instance created by its default SSLSocketFactory after connection? | websocket|okhttp | 0 | 40 | 1 | 72,862,631 | 72,862,631 | 0 | true | 2022-07-04T21:37:26.670Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Okhttp Websocket, how to get the Socket instance created by its default SSLSocketFactory after connection?<p>I need to have access to the instance of the Soc... |
72,862,290 | Getting 'Uncaught TypeError: $(...).dataTable is not a function' while using datatable in custom wordpress plugin<p>I am using a datatable to load items from database in a custom wordpress plugin. But I keep getting this error 'Uncaught TypeError: $(...).dataTable is not a function'.
This is a common question but all t... | <p>Replacing <code>$</code> with <code>jQuery</code> might help</p>
<pre><code>jQuery('#cur_act_tbl').dataTable(
</code></pre> | Getting 'Uncaught TypeError: $(...).dataTable is not a function' while using datatable in custom wordpress plugin | javascript|jquery|wordpress|datatables | 0 | 40 | 1 | 72,862,929 | 72,862,929 | 0 | true | 2022-07-04T21:47:07.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting 'Uncaught TypeError: $(...).dataTable is not a function' while using datatable in custom wordpress plugin<p>I am using a datatable to load items from... |
72,864,844 | Error resolving template ***, template might not exist or might not be accessible by any of the configured Template Resolvers<p>I have spring boot + thymeleaf project, if I run project on the Intellij Idea, there is no problem, but When I run jar file, I faced this problem.
This is error</p>
<pre><code>org.thymeleaf.ex... | <p>it should be easier with some code, but here is a working example with spring boot and Maven.</p>
<p>I have a template called "myTemplate.html" in the folder src/main/resources/templates.</p>
<p>In one of my class I have :</p>
<pre><code>ClassLoaderTemplateResolver templateResolver = new ClassLoaderTemplat... | Error resolving template ***, template might not exist or might not be accessible by any of the configured Template Resolvers | spring|spring-boot | 0 | 40 | 1 | 72,866,552 | 72,866,552 | 0 | true | 2022-07-05T06:28:15.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error resolving template ***, template might not exist or might not be accessible by any of the configured Template Resolvers<p>I have spring boot + thymelea... |
72,867,086 | Azure Functions ServiceBusQueueTrigger NullPointerException<p>I have an Azure Functions method that is Service Bus Queue Trigger. Method does not have anything but a log line. It starts up fine but when receiving a message it runs in an <strong>Exception</strong> at <strong>Action=ProcessMessageCallback</strong>.
I hav... | <p>Managed to solve it by trial and error. In function.json should have omitted the direction property resulting in:</p>
<pre><code>{
"scriptFile": "ScalaFunction.jar",
"entryPoint": "functions.Service.run",
"bindings": [
{
"type": "serviceB... | Azure Functions ServiceBusQueueTrigger NullPointerException | azure-functions|azure-servicebus-queues | 0 | 40 | 1 | 72,868,047 | 72,868,047 | 0 | true | 2022-07-05T09:31:24.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure Functions ServiceBusQueueTrigger NullPointerException<p>I have an Azure Functions method that is Service Bus Queue Trigger. Method does not have anythi... |
72,865,931 | am adding inputs from the form page but the console shows only the email and other elements calls undefined<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 express = require('... | <h3>Typo alert !</h3>
<p>The attribute names are fName and lName, not firstName/lastName :</p>
<pre><code>var firstName = req.body.fName;
var lastName = req.body.lName;
var email = req.body.email;
console.log(firstName, lastName, email );
</code></pre>
<p>Cheers</p> | am adding inputs from the form page but the console shows only the email and other elements calls undefined | html|node.js | -1 | 40 | 1 | 72,868,958 | 72,868,958 | 0 | true | 2022-07-05T08:00:17.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
am adding inputs from the form page but the console shows only the email and other elements calls undefined<p><div class="snippet" data-lang="js" data-hide="... |
72,869,681 | Does it has to be that in SQL, aggregate function goes hand in hand with grouping?<p>Question in the title. Thanks for the time.</p>
<p>EXAMPLE v</p>
<pre><code>SELECT
customer_id,
SUM(unit_price * quantity) AS total_price
FROM orders o
JOIN order_items oi
ON o.order_id = oi.order_id
GROUP BY customer_id
</code... | <p>Yes, grouping does go hand in hand with aggregate functions, for any resulting column not contained within an aggregate function</p> | Does it has to be that in SQL, aggregate function goes hand in hand with grouping? | sql|postgresql | 0 | 40 | 2 | 72,869,855 | 72,869,855 | 0 | true | 2022-07-05T12:45:17.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does it has to be that in SQL, aggregate function goes hand in hand with grouping?<p>Question in the title. Thanks for the time.</p>
<p>EXAMPLE v</p>
<pre><... |
72,869,204 | Flutter: How to position individual GridView children<p>I am kind of new to flutter and am trying to make a list where all the elements fit on the screen and are evenly and symmetrically placed. I am currently using GridView, but I can't figure out how to change the position of the individual elements. More specificall... | <p>You can use a wrap widget instead which has alignment property</p>
<pre><code>@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Align(
alignment: Alignment.center,
child: Text("Alfabeya Kurdî"),
),
... | Flutter: How to position individual GridView children | flutter|dart|gridview|flutter-layout | 1 | 40 | 1 | 72,872,230 | 72,872,230 | 0 | true | 2022-07-05T12:09:22.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter: How to position individual GridView children<p>I am kind of new to flutter and am trying to make a list where all the elements fit on the screen and... |
72,877,440 | Gotta conflict with... itself in express<p>I've integrated for my bot APIs. I expected they will work very well, but the truth is no...<br>
I still can't figure out how the server gonna abort itself...
This is error output, and the code, screenshot. Just help me...</p>
<pre><code>Error: Request aborted
at onaborte... | <p>If you want to send a static file you can use sendFile method, try this syntax with path.resolve:</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>app.get('/', (req, res) =&g... | Gotta conflict with... itself in express | javascript|express|server|backend | 1 | 40 | 2 | 72,877,543 | 72,877,543 | 0 | true | 2022-07-06T02:49:26.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Gotta conflict with... itself in express<p>I've integrated for my bot APIs. I expected they will work very well, but the truth is no...<br>
I still can't fig... |
72,877,865 | XSLT Avoid namespace in element<p>I met issue when trying to remove namespace in element tag. It is always display in element tag, but other tag is not display
I also use exclude-result-prefixes but it is not work.
I dont know that is the reason
Please help to support to check this issue and explain how does it work
Th... | <p>The attribute exclude-result-prefixes only affects the namespaces generated by a literal result element, and there are no literal result elements in your stylesheet.</p>
<p>The <code>xsl:copy-of</code> instruction copies element nodes unchanged from the input to the output. "Unchanged" means that the fully... | XSLT Avoid namespace in element | xml|xslt|xslt-1.0 | 0 | 40 | 2 | 72,879,875 | 72,879,875 | 0 | true | 2022-07-06T04:10:31.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
XSLT Avoid namespace in element<p>I met issue when trying to remove namespace in element tag. It is always display in element tag, but other tag is not displ... |
72,880,562 | Triggering submit event after change when uploading image on Yii2 framework<p>I am trying to save an image type file by using jquery to trigger the submit. I encountered an issue where it triggers even when the change event is not done.</p>
<p>View create.php:</p>
<pre><code><?php \yii\bootstrap4\ActiveForm::begin([... | <p>Insights from @ChrisG and @CBroe,</p>
<p>The issue was wrapping the input tag in a button tag which will click both button and input at the same time causing the error. An easy fix would be adding <strong>type="button"</strong> in the button tag.</p>
<p>But this is actually a broken HTML as an interactive ... | Triggering submit event after change when uploading image on Yii2 framework | javascript|php|jquery|model-view-controller|yii2-advanced-app | 1 | 40 | 1 | 72,881,110 | 72,881,110 | 0 | true | 2022-07-06T08:55:38.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Triggering submit event after change when uploading image on Yii2 framework<p>I am trying to save an image type file by using jquery to trigger the submit. I... |
72,882,335 | Flutter setState() doesn't reactive to the List data change<p>When I click on the floating button, trying to make the widget change, but no success,why?</p>
<p>The element data of the List has indeed changed, but the widget has not been updated synchronously.</p>
<p>This problem confuses me and don't know how to solve ... | <p>in <code>video_item.dart</code> you are setting the video variable inside the <code>initState</code> which only runs once, so whenever you use <code>setState</code> only the <code>build</code> method gets called again. thus the <code>video</code> variable in the <code>_VideoItemState</code> is never set again, so it... | Flutter setState() doesn't reactive to the List data change | flutter|list|setstate | 1 | 40 | 1 | 72,882,584 | 72,882,584 | 0 | true | 2022-07-06T10:55:45.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter setState() doesn't reactive to the List data change<p>When I click on the floating button, trying to make the widget change, but no success,why?</p>
... |
72,806,622 | How can I show a component after item clicked in react js?<p>So to make things clear and simple :<br />
I have an <strong>AddUser</strong> Component to be shown on my <strong>AdminDash</strong> component after clicking my Add User <strong>Item</strong>, everything is shown on my AdminDash,<br />
My <strong>AdminDash</... | <p>So after a very many tries and long researches, I almost used useContext to do the job, but finally I found the solution, these are the steps :</p>
<ol>
<li>First I added a new component <code><AdminOptions /></code> which contains all the logic of rendering my <code><AddUser /></code> and <code><Dele... | How can I show a component after item clicked in react js? | javascript|reactjs|components | 1 | 40 | 1 | 72,883,102 | 72,883,102 | 0 | true | 2022-06-29T19:06:42.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I show a component after item clicked in react js?<p>So to make things clear and simple :<br />
I have an <strong>AddUser</strong> Component to be s... |
72,879,764 | How to display numbers with decimal part equal to 0 as a whole number in T-SQL?<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column1</th>
<th>Amount</th>
<th>DesiredOutput</th>
</tr>
</thead>
<tbody>
<tr>
<td>Item1</td>
<td>85.00</td>
<td>85</td>
</tr>
<tr>
<td>Item2</td>
<td>52.25</td>
<td>5... | <p>Here is one solution</p>
<pre><code>select *,
case when
amount = floor(amount) then FORMAT(amount, 'N0')
else
FORMAT(amount, 'N2')
end as roundedPrice
from MyTable
</code></pre> | How to display numbers with decimal part equal to 0 as a whole number in T-SQL? | tsql|integer|decimal | 1 | 40 | 1 | 72,883,643 | 72,883,643 | 0 | true | 2022-07-06T07:53:36.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to display numbers with decimal part equal to 0 as a whole number in T-SQL?<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Colum... |
72,889,200 | I want to call a python flask def with html button<p>I have this def on my flask python:</p>
<pre><code>def passGen():
# Definição de caracteres #
letras = string.ascii_letters
numeros = string.digits
especiais = string.punctuation
# Definição de tamanho #
tam = random.randrange(7,13)
# Construção da senha #
Pass =... | <p>You can do following</p>
<pre><code>from flask import Flask, render_template, Response, request, redirect, url_for
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html')
@app.route("/generate_random/", methods=['POST'])
def get_random():
# Definição de c... | I want to call a python flask def with html button | python|html|flask | -1 | 40 | 2 | 72,889,300 | 72,889,300 | 0 | true | 2022-07-06T19:56:50.457Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to call a python flask def with html button<p>I have this def on my flask python:</p>
<pre><code>def passGen():
# Definição de caracteres #
letras = s... |
72,892,158 | Transfer the input on string array then to a char array<p>Im trying to practice for loops and transferring input to arrays. I have a problem on transferring an input to a string array then to a char array (a single letter). I have tried <code>in.next().charAt(t)</code> but I dont know why I am having an error. First I ... | <p>Consider the following code:</p>
<pre><code>//The character array to store the string characters
char[] charArr = new char[range];
//Get the string
System.out.println("Please enter the characters: ");
String string = in.nextLine();
//Copy the string to the character array one letter at a time
for(int t =... | Transfer the input on string array then to a char array | java|arrays|char | -1 | 40 | 2 | 72,892,237 | 72,892,237 | 0 | true | 2022-07-07T04:05:07.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Transfer the input on string array then to a char array<p>Im trying to practice for loops and transferring input to arrays. I have a problem on transferring ... |
72,299,108 | How to change styling of a link which is leads to the page that is currently open? CSS HTML Bootrap Pinegrow<p>I am trying to do something very simple... I want links with the class of PAGE-MENU-LINK to be always black which I succeeded in doing. I also want the link which leads to the page on which it is being viewed ... | <p>the pseudo selector :local-link should do the trick BUT it doesn’t seem to be supported in Chrome (and possibly other major browsers): :local-link - CSS: Cascading Style Sheets | MDN</p>
<p>Can do this with JavaScript code, for example, by adding a special class to all local links and then using that class in the se... | How to change styling of a link which is leads to the page that is currently open? CSS HTML Bootrap Pinegrow | javascript|html|css|twitter-bootstrap | 0 | 40 | 1 | 72,892,899 | 72,892,899 | 0 | true | 2022-05-19T05:34:21.563Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change styling of a link which is leads to the page that is currently open? CSS HTML Bootrap Pinegrow<p>I am trying to do something very simple... I w... |
72,893,598 | How to get a bone's weight using a json file<p>I am trying to get the weight for every bone using a gltf json file but i dont know how</p>
<p>here is the json file i am trying to get the weight from:</p>
<pre><code>{
"accessors": [
{
"bufferView": 0,
"componentType": 5126... | <p>The <a href="https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/figures/gltfOverview-2.0.0b.png" rel="nofollow noreferrer">glTF overview card</a> summarizes it nicely:</p>
<p>Every vertex can be associated with up to 4 joints, each with a given weight.
These are encoded in the components of the JOINTS_... | How to get a bone's weight using a json file | gltf | 0 | 40 | 1 | 72,893,891 | 72,893,891 | 0 | true | 2022-07-07T07:09:19.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get a bone's weight using a json file<p>I am trying to get the weight for every bone using a gltf json file but i dont know how</p>
<p>here is the jso... |
72,897,546 | How can I add the urls in `<img src="..."` to display images in different cards?<p>I'm using bootstrap cards in <code>Next.js</code>; I watched a tutorial about fetching API in <code>Next.js</code> and my code looks like this:</p>
<pre><code> export const getStaticProps=async ()=>{
const res= await fetch('https:... | <pre><code>{test.map(tes=>(<div key={tes.id}>
<div className="card" style={{ width: "18rem" }}>
<img src={tes.url} className="card-img-top" alt="..." />
<div className="card-body">
<h5 className="card-title"... | How can I add the urls in `<img src="..."` to display images in different cards? | reactjs|next.js | 1 | 40 | 2 | 72,897,723 | 72,897,723 | 0 | true | 2022-07-07T12:07:14.300Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I add the urls in `<img src="..."` to display images in different cards?<p>I'm using bootstrap cards in <code>Next.js</code>; I watched a tutorial a... |
72,893,771 | Umbraco Sitemap - error CS1525: Invalid expression term '<'<p>Umbraco newbie here. I'm following the documentation below to create a sitemap in Umbraco 8.1:</p>
<p><a href="https://our.umbraco.com/documentation/tutorials/Creating-an-XML-Site-Map/" rel="nofollow noreferrer">https://our.umbraco.com/documentation/tutorial... | <p>Resolved. I was using the code from Umbraco versions 9 & 10 - i'm using 8 so this worked:</p>
<p><a href="https://our.umbraco.com/Documentation/Tutorials/Creating-an-XML-Site-Map/index-v8" rel="nofollow noreferrer">https://our.umbraco.com/Documentation/Tutorials/Creating-an-XML-Site-Map/index-v8</a></p> | Umbraco Sitemap - error CS1525: Invalid expression term '<' | c#|razor|umbraco|umbraco8 | 1 | 40 | 2 | 72,900,525 | 72,900,525 | 0 | true | 2022-07-07T07:22:00.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Umbraco Sitemap - error CS1525: Invalid expression term '<'<p>Umbraco newbie here. I'm following the documentation below to create a sitemap in Umbraco 8.1:<... |
72,903,854 | how to get values from a table by providing its id as foreign key in another table<p>I have two tables, first 'customers' and second 'linked'. The following are their columns respectively.</p>
<p>id | customer_name | contact_person_name | contact_person_no</p>
<p>id | fk_customer_id | item_image</p>
<p>Now, in my v... | <blockquote>
<p>in my views there is a select box where user will select a customer name and I want that customers item_image</p>
</blockquote>
<p>There may be several customers with the same name (unless you declared customer_name unique, even then I wouldn't count on that not changing in the future). While you displa... | how to get values from a table by providing its id as foreign key in another table | mysql|sql | 0 | 40 | 1 | 72,903,960 | 72,903,960 | 0 | true | 2022-07-07T20:26:28.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to get values from a table by providing its id as foreign key in another table<p>I have two tables, first 'customers' and second 'linked'. The following ... |
72,904,509 | Flutter Execution failed for task ':app:dexBuilderDebug'<p>When i try to run my flutter project i get the "Execution failed for task ':app:dexBuilderDebug'" error.</p>
<p>Does anyone know how to solve this?</p> | <p>Go to android>app>build.gradle and delete 'apply plugin: 'kotlin-android''</p> | Flutter Execution failed for task ':app:dexBuilderDebug' | android|flutter|android-studio|dart | 0 | 40 | 1 | 72,904,760 | 72,904,760 | 0 | true | 2022-07-07T21:38:57.913Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter Execution failed for task ':app:dexBuilderDebug'<p>When i try to run my flutter project i get the "Execution failed for task ':app:dexBuilderDeb... |
72,878,564 | Reason for peculiar / descending triangle latency spike pattern during load tests<p>I am having a hard time to identify the underlying issue for the following latency pattern for the max percentile of my application:
<a href="https://i.stack.imgur.com/ooxwN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur... | <p>This turned out to be a two-part issue:</p>
<ul>
<li>we thought our load test was using keep-alive connection, which it didn't (ssl handshakes are pricey, ephemeral ports run out after some time)</li>
<li>a custom priority based task scheduling system (an earlier request and its subtasks have higher priority than la... | Reason for peculiar / descending triangle latency spike pattern during load tests | spring-boot|kubernetes-ingress|load-testing|gatling|latency | 1 | 40 | 1 | 72,907,446 | 72,907,446 | 0 | true | 2022-07-06T06:00:03.057Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reason for peculiar / descending triangle latency spike pattern during load tests<p>I am having a hard time to identify the underlying issue for the followin... |
72,907,217 | is there a better way to write return statement in javascript<p>I'm creating a sign up page using prompt(), i want to return from the page when a user cancels. i tried using return statement to achieve this but it gave an error _ <strong>illegal return statement</strong>. <em>I wrote the same code without a constructor... | <p>I've made some adjustments to your code to make it work and also simplified some of it. I've tried to reuse your code and logic as much as possible.</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 pret... | is there a better way to write return statement in javascript | javascript|function|constructor|return|prompt | 1 | 40 | 1 | 72,907,507 | 72,907,507 | 0 | true | 2022-07-08T05:59:34.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
is there a better way to write return statement in javascript<p>I'm creating a sign up page using prompt(), i want to return from the page when a user cancel... |
72,905,260 | leaflet does not display the map in my django application<p>I am developing an application with django. In a page of this application I want to display a map with leaflet. I try to display a basic map according to the information I could have on the leaflet site but nothing is displayed. There is not even an error mess... | <p>From reading your code, I suspect there are two things at play:</p>
<ol>
<li><code>onload</code> is not a valid event for a <code>div</code> element</li>
<li><code>height:450;</code> is not valid CSS</li>
</ol>
<p>In short: the map does not get instantiated and has no height.</p>
<p>Please try the following; modify ... | leaflet does not display the map in my django application | django|leaflet | 0 | 40 | 1 | 72,910,399 | 72,910,399 | 0 | true | 2022-07-07T23:36:57.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
leaflet does not display the map in my django application<p>I am developing an application with django. In a page of this application I want to display a map... |
72,908,855 | PowerApps auto numbering<p>I wish to add the numbering by +1 but need to do like below</p>
<p>First Record = MBO0000001</p>
<p>next record = MBO0000002</p>
<p>Sample Code:</p>
<pre><code>Text(Value(Last(Filter(SOP10100,SOPNUMBE = SOGALLERY.Selected.SOPNUMBE)).SOPNUMBE+1),"MBO#,#######")
</code></pre>
<p>any ... | <p>You could get the number by using the Right() function, and strip the first 3 characters (being the "MBO"). Then add one and format it with the rest of the characters.</p>
<pre><code>Text(Right(ThisItem.TestNumber3,Len(ThisItem.TestNumber3)-3)+1,"MBO0000000")
</code></pre>
<p><a href="https://i.s... | PowerApps auto numbering | powerapps|powerapps-formula | 0 | 40 | 1 | 72,914,021 | 72,914,021 | 0 | true | 2022-07-08T08:43:52.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PowerApps auto numbering<p>I wish to add the numbering by +1 but need to do like below</p>
<p>First Record = MBO0000001</p>
<p>next record = MBO0000002</p>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.