question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
72,957,495
Matplotlib Wedge artists in legend<p>I am generating a plot with a collection of wedges using matplotlib.patches.Wedge(). The wedges are different colors and with different angles subtended. I would like to include Wedge artists in a legend, but the following MWE is resulting in Line artists in the legend instead of We...
<p>You'll need to create your own <code>Handler</code> that tells <code>matplotlib</code> how to take a specific <code>Artist</code> and transform it to appear in a legend. Often times things need to be resized or transformed in some manner to appear better on a legend.</p> <p>To create a handler, all you need to do is...
Matplotlib Wedge artists in legend
python|matplotlib
1
55
1
72,957,708
72,957,708
3
true
2022-07-12T19:32:53.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Matplotlib Wedge artists in legend<p>I am generating a plot with a collection of wedges using matplotlib.patches.Wedge(). The wedges are different colors and...
72,787,855
How to keep NULL values in STRING_SPLIT<p>Please excuse formatting, this is my first post.</p> <p>I have a table like the one below:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>code</th> <th>Fig</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>AAA</td> <td>MB010@2-1-2-5A@2-2-...
<p>Your <code>WHERE</code> clause filters NULLs out.</p> <p><code>NULL LIKE 'MB%'</code> is &quot;unknown&quot;, which is not &quot;true&quot; in the context of the <code>WHERE</code> clause, so these rows are filtered out.</p> <p><code>NULL NOT LIKE 'MB%'</code> is still &quot;unknown&quot;, which is still not &quot;t...
How to keep NULL values in STRING_SPLIT
sql|sql-server|split
2
55
3
72,788,001
72,788,001
3
true
2022-06-28T14:00:12.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to keep NULL values in STRING_SPLIT<p>Please excuse formatting, this is my first post.</p> <p>I have a table like the one below:</p> <div class="s-table-...
72,993,152
How to call async function inside Observable method sequentially?<p>I have the following method:</p> <pre><code> public classMethod( payload: Payload, ): Observable&lt;Result&gt; { const { targetProp } = payload; let target; return this.secondClass.secondClassMethod({ targetProp }).pipe( delay...
<p>You can convert the promise to an observable using <a href="https://www.learnrxjs.io/learn-rxjs/operators/creation/from" rel="nofollow noreferrer"><code>from</code></a> and use <a href="https://www.learnrxjs.io/learn-rxjs/operators/transformation/switchmap" rel="nofollow noreferrer"><code>switchMap</code></a></p> <p...
How to call async function inside Observable method sequentially?
javascript|node.js|async-await|rxjs
2
55
1
72,993,394
72,993,394
3
true
2022-07-15T11:16:29.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to call async function inside Observable method sequentially?<p>I have the following method:</p> <pre><code> public classMethod( payload: Payload, ...
72,805,187
Segmentation fault through mutable references<p>I've been experimenting with some unsafe code, and just recently hit an interesting observation. The following code creates some values and stores them in a vector. It also creates raw pointers which point to the values. Later on, it attempts to read the values again by u...
<p>Your code exhibits undefined behavior since it accesses memory after it has been freed.</p> <p>A vector does not immediately have space for all 1,000,000 elements; it will grow exponentially when <code>.push()</code>-ing a value beyond its capacity. When this happens it will allocate a new region of memory, move exi...
Segmentation fault through mutable references
rust|segmentation-fault
0
55
2
72,805,377
72,805,377
3
true
2022-06-29T16:56:49.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Segmentation fault through mutable references<p>I've been experimenting with some unsafe code, and just recently hit an interesting observation. The followin...
72,844,556
Why is unsafe read sbyte -> byte inconsistent in Release mode: *(byte*)(&sbyteValue)?<p>While writing conversion of <a href="https://stackoverflow.com/a/72838343/2094687">generic enum to int</a> strange things happened around unsafe read of sbyte type to byte.</p> <p>The folloging examples were tested with .Net 6.0 on ...
<p><strong>Example 1: Inconsistency Debug vs. Release</strong></p> <ol> <li><p>You should know that the overload method chosen by the compiler in this example is <code>WriteLine(int)</code>. So if you call <code>WriteLine((uint)byteValue)</code> or <code>WriteLine(byteValue.ToString())</code>, you'll get the result <co...
Why is unsafe read sbyte -> byte inconsistent in Release mode: *(byte*)(&sbyteValue)?
c#|byte|release|unsafe|sbyte
1
55
1
72,845,236
72,845,236
3
true
2022-07-03T07:08:58.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is unsafe read sbyte -> byte inconsistent in Release mode: *(byte*)(&sbyteValue)?<p>While writing conversion of <a href="https://stackoverflow.com/a/7283...
72,926,460
Why does a trait on a reference raise "cannot borrow as mutable because it is also borrowed as immutable" when a trait on an object does not?<p>Consider a function</p> <pre class="lang-rust prettyprint-override"><code>fn clear_non_empty&lt;T&gt;(collection: &amp;mut Vec&lt;T&gt;) { if !collection.is_empty() { ...
<p>The problem is with the way you've declared the lifetime you want to use:</p> <pre class="lang-rust prettyprint-override"><code>fn clear_non_empty&lt;'a, Collection&gt;(collection: &amp;'a mut Collection) where &amp;'a mut Collection: Clear, &amp;'a Collection: IsEmpty, { if !collection.is_empty() { ...
Why does a trait on a reference raise "cannot borrow as mutable because it is also borrowed as immutable" when a trait on an object does not?
rust|traits
2
55
2
72,929,184
72,929,184
3
true
2022-07-10T06:05:46.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does a trait on a reference raise "cannot borrow as mutable because it is also borrowed as immutable" when a trait on an object does not?<p>Consider a fu...
72,912,293
How do I get the size of a merged Excel cell in perl?<p>I'm trying to implement code in Perl to parse a large Excel sheet as the below Excel example:</p> <p><a href="https://i.stack.imgur.com/upcwT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/upcwT.png" alt="My Excel example image" /></a></p> <p>F...
<p>The <a href="https://metacpan.org/pod/Spreadsheet::ParseExcel" rel="nofollow noreferrer">Spreadsheet::ParseExcel</a> module has a <code>get_cell</code> method which returns a <a href="https://metacpan.org/pod/Spreadsheet::ParseExcel::Cell" rel="nofollow noreferrer">Cell</a> object. The Cell object does not look lik...
How do I get the size of a merged Excel cell in perl?
excel|perl
2
55
1
72,912,585
72,912,585
3
true
2022-07-08T13:40:23.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I get the size of a merged Excel cell in perl?<p>I'm trying to implement code in Perl to parse a large Excel sheet as the below Excel example:</p> <p>...
73,011,816
Excel vba : Convert Unix Timestamp to Date Time<p>I know this has been asked quite a bit, but for some reason none of the solutions seem to work for me.</p> <p>I have a unix time stamp (for example purposes use 1637402076084)</p> <p>On my excel sheet I can convert that fine using = (C2/ 86400000) + DATE(1970,1,1) <a hr...
<p>There are two types of UNIX timestamps. 10 digits and <strong>13 digits</strong>. The function you try using is for 10 digits type. To convert the 13 digits type, you should create another function, exactly as you use in the cell:</p> <pre><code>Function fromUNIX13Digits(uT) As Date fromUNIX13Digits = CDbl(uT) / ...
Excel vba : Convert Unix Timestamp to Date Time
excel|vba
0
55
1
73,012,724
73,012,724
3
true
2022-07-17T12:34:14.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel vba : Convert Unix Timestamp to Date Time<p>I know this has been asked quite a bit, but for some reason none of the solutions seem to work for me.</p> ...
72,937,994
Unpack multiple dictionaries as functional arguments without repeating double asterisk<p>I use API with long name of argument parameters. Consequently, I create following dictionaries for most common combinations of values which are then unpacked in function calls.</p> <pre><code>a_T = {'API parameter a': True} a_F = {...
<p>You can actually use <code>|</code> for Python 3.9+ to combine all the dictionaries then send unpacked version.</p> <pre class="lang-py prettyprint-override"><code>def fun(**kwargs): print(kwargs) &gt;&gt;&gt; fun(**a_F| b_100| hello| bye) {'API parameter a': False, 'API parameter b': 100, 'API parameter c': 'h...
Unpack multiple dictionaries as functional arguments without repeating double asterisk
python|dictionary|unpack|argument-unpacking
1
55
2
72,938,101
72,938,101
3
true
2022-07-11T11:39:22.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unpack multiple dictionaries as functional arguments without repeating double asterisk<p>I use API with long name of argument parameters. Consequently, I cre...
72,899,348
Modify an array of objects with for in<p>I'm trying to format a date inside an object.</p> <p>I'm currently have the next array of objects:</p> <pre><code> [ { date: 2022-01-03T05:00:41.560Z }, { date: 2022-01-03T22:54:33.980Z }, { date: 2022-01-03T22:50:26.920Z }, { date: 2022-01-03T22:32:29...
<p>I recommend to use Array.map for this transformation:</p> <pre><code>const data = [ { date: '2022-01-03T05:00:41.560Z' }, { date: '2022-01-03T22:54:33.980Z' }, { date: '2022-01-03T22:50:26.920Z' }, { date: '2022-01-03T22:32:29.660Z' }, { date: '2022-01-03T22:22:58.480Z' } ]; const res = data.map( ({ dat...
Modify an array of objects with for in
javascript
0
55
2
72,899,392
72,899,392
3
true
2022-07-07T14:10:57.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Modify an array of objects with for in<p>I'm trying to format a date inside an object.</p> <p>I'm currently have the next array of objects:</p> <pre><code> ...
72,964,651
How to optimize RXJS operator to avoid messy code?<p>I try to avoid messy code using RXjs. There is a following code:</p> <pre class="lang-typescript prettyprint-override"><code>combineLatest([ this.usersService.userRightsObs$, this.layersService.flatLayersObs$, ]) .pipe(debounceTime(300)) .subscribe(([userRights, ...
<p>welcome to the StackOverflow. In your case, there's not much to upgrade, really. You can move mapping to the operator and use anonymous functions to shorten the code though.</p> <pre class="lang-typescript prettyprint-override"><code>combineLatest([ this.usersService.userRightsObs$, this.layersService.flatLayers...
How to optimize RXJS operator to avoid messy code?
angular|rxjs
0
55
1
72,964,889
72,964,889
4
true
2022-07-13T10:21:07.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to optimize RXJS operator to avoid messy code?<p>I try to avoid messy code using RXjs. There is a following code:</p> <pre class="lang-typescript prettyp...
72,999,879
How do I inline elements in JavaFX?<p>How do I inline elements in JavaFX? I have the following fxml</p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;?import javafx.geometry.Insets?&gt; &lt;?import javafx.scene.control.Button?&gt; &lt;?import java...
<p>Use HBox instead of VBox. HBoxes are used to arrange the elements horizontally</p> <pre><code>&lt;?xml version = &quot;1.0&quot; encoding = &quot;UTF-8&quot;?&gt; &lt;?import java.lang.*?&gt; &lt;?import java.util.*?&gt; &lt;?import javafx.geometry.Insets?&gt; &lt;?import javafx.scene.*?&gt; &lt;?import javafx.scene...
How do I inline elements in JavaFX?
java|javafx|fxml
0
55
1
73,002,127
73,002,127
4
true
2022-07-15T21:46:51.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I inline elements in JavaFX?<p>How do I inline elements in JavaFX? I have the following fxml</p> <pre class="lang-xml prettyprint-override"><code>&lt;...
73,018,757
Setting width inside of a flex row div<p>I have the following css:</p> <pre><code>#app { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 20px; margin: 20px auto 20px auto; max-hei...
<p>I think you wanna change the <code>.result</code> box to 400px, if so you can try this</p> <pre class="lang-css prettyprint-override"><code>.result { +++ flex-shrink: 0; } </code></pre> <p>this is a <a href="https://i.stack.imgur.com/dmD1f.png" rel="nofollow noreferrer">screenshot</a></p> <p>#app is a flex container...
Setting width inside of a flex row div
css
1
55
4
73,019,585
73,019,585
4
true
2022-07-18T07:36:54.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Setting width inside of a flex row div<p>I have the following css:</p> <pre><code>#app { display: flex; flex-direction: row; ...
73,019,676
Angular - Validation for pattern<p>I'm trying to use a pattern validator for an imdb title id, I tested my pattern on the Angular docs online example and it worked. But somehow it doesn't work on my app.</p> <p>This is what I have:</p> <pre class="lang-js prettyprint-override"><code>this.showForm = this.fb.group({ .....
<p>You need to escape the &quot;\&quot; character with another backslash.</p> <pre class="lang-js prettyprint-override"><code>Validators.pattern('^tt\\d{1,}$') </code></pre> <p><a href="https://stackblitz.com/edit/angular-ivy-ev5gjr?file=src/app/app.component.ts" rel="nofollow noreferrer">Sample StackBlitz Demo</a></p>
Angular - Validation for pattern
angular|regex|typescript|validation|angular-reactive-forms
1
55
1
73,019,815
73,019,815
4
true
2022-07-18T08:55:35.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular - Validation for pattern<p>I'm trying to use a pattern validator for an imdb title id, I tested my pattern on the Angular docs online example and it ...
72,937,841
justify the paragraph in terms & condition checkbox using html css<p>How can Ijustify the paragraph in terms &amp; condition with checkbox using css. I can't find the simple way on how to justify it. I'm new in HTML/CSS, and I'm still having a hard time figuring it out.</p> <p><div class="snippet" data-lang="js" data-h...
<p>I've restructured the HTML structure and provided styles according to the design image. Hope it will help you.</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>.container {...
justify the paragraph in terms & condition checkbox using html css
html|css|visual-studio-code
-2
55
2
72,937,960
72,937,960
4
true
2022-07-11T11:27:47.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: justify the paragraph in terms & condition checkbox using html css<p>How can Ijustify the paragraph in terms &amp; condition with checkbox using css. I can't...
72,806,079
Getting random numbers on vector operation c++<p>I'm getting weird numbers as output in this code :</p> <pre><code>#include &lt;iostream&gt; #include &lt;vector&gt; int main(){ std::vector&lt;std::vector&lt;int&gt;&gt; vec = {{0,1},{2,3}}; vec.push_back({4,5}); vec.push_back({5,6}); for (int i...
<p>The output you are seeing is due to <strong>undefined behavior</strong> in your code.</p> <p>The outer <code>vector</code> object has 4 inner <code>vector&lt;int&gt;</code> objects added to it. Each of those inner <code>vector&lt;int&gt;</code> objects is holding 2 <code>int</code> values.</p> <p>Your inner <code>fo...
Getting random numbers on vector operation c++
c++|vector
-2
55
1
72,806,134
72,806,134
4
true
2022-06-29T18:15:02.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting random numbers on vector operation c++<p>I'm getting weird numbers as output in this code :</p> <pre><code>#include &lt;iostream&gt; #include &lt;ve...
72,870,678
How to pass struct containing matrices in Cuda<p>As the titles says , i'm trying to pass a struct containing 4 matrices to a Cuda Kernel. The problem is that i get no errors, but the program crashes goes nuts whenever i try to execute it.All of the values returned are 0 and the clock value overflows. Here's what i've ...
<p>There (at least) are 2 errors in your code.</p> <ol> <li><p>You have not allocated a correct size for the device struct:</p> <pre><code>cudaMalloc((void**)&amp;dev_data, sizeof(data)); ^ </code></pre> <p>just like you did in your <code>calloc</code> call, that should be <code>siz...
How to pass struct containing matrices in Cuda
cuda|sobel
0
55
1
72,871,163
72,871,163
4
true
2022-07-05T13:56:31.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass struct containing matrices in Cuda<p>As the titles says , i'm trying to pass a struct containing 4 matrices to a Cuda Kernel. The problem is tha...
72,990,360
How does colorZilla manage to pick color on webpages?<p>I'd like to know how colorZilla(the browser extension) does to get the color of every pixel within web pages. It even succeeded to get the color of a character within a <strong>TEXT_NODE</strong>.</p> <p><a href="https://i.stack.imgur.com/REZNb.png" rel="nofollow ...
<p>ColorZilla has 2 pieces of code working together, <em>ContentScript</em> and <em>BackgroundScript</em>.</p> <p><em>ContentScript</em> has access to current page's DOM context. It can add event listeners, can create DOM element (the toolbar UI), and it can also talk to the <em>BackgroundScript</em> via message passin...
How does colorZilla manage to pick color on webpages?
javascript|colors|color-picker
1
55
1
72,990,966
72,990,966
5
true
2022-07-15T07:20:06.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How does colorZilla manage to pick color on webpages?<p>I'd like to know how colorZilla(the browser extension) does to get the color of every pixel within we...
72,951,902
Why does removing items from an arraylist that fullfill one of the two conditions not work?<p>Ok so I have an integer ArrayList from which I want to remove the entries that are either odd or are bigger than 100. My code, however, does not work and I do not really get why?</p> <pre><code>list.add(1); list.add(89...
<h1><code>List#removeIf</code></h1> <p>Use the <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html#removeIf(java.util.function.Predicate)" rel="nofollow noreferrer"><code>Collection#removeIf</code></a> method, inherited by <code>List</code>. Pass a <code>Predicate</code> with...
Why does removing items from an arraylist that fullfill one of the two conditions not work?
java|list|arraylist
-2
55
2
72,952,103
72,952,103
5
true
2022-07-12T11:55:52.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does removing items from an arraylist that fullfill one of the two conditions not work?<p>Ok so I have an integer ArrayList from which I want to remove t...
72,841,143
Why do I get this TypeError while using Python's copy.deepcopy?<p>I've just run into this error with <code>copy.deepcopy</code>:</p> <pre><code>import copy import datetime class Hours(datetime.timedelta): # Using __new__ because timedelta is immutable # See https://stackoverflow.com/a/22531773/3358488. de...
<p>Add a <code>*args</code> to your <code>__new__</code> and add a <code>print</code> so you can see what arguments it's getting called with:</p> <pre><code>import copy import datetime class Hours(datetime.timedelta): def __new__(cls, hours, *args): print(cls, hours, *args) return datetime.timedel...
Why do I get this TypeError while using Python's copy.deepcopy?
python|deep-copy
1
55
1
72,841,182
72,841,182
5
true
2022-07-02T17:30:31.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why do I get this TypeError while using Python's copy.deepcopy?<p>I've just run into this error with <code>copy.deepcopy</code>:</p> <pre><code>import copy i...
72,779,022
Zsh function to check if git branches exist and then delete those git branches<p>I'm trying to write a simple zsh function to delete all git branches with a specific pattern. The function contains a simple conditional that checks if any branches need to be deleted. If so, it deletes them. If not, it echos that there ar...
<p>put the assignment directly into the <code>if</code> like this:</p> <pre><code>if dependabot_branches=$(git branch | grep '^\*\?\s*dependabot/') then this else that fi </code></pre> <p>but your script's got worse problems, <code>git branch</code> isn't really intended for scripting use and you're going to wind up ex...
Zsh function to check if git branches exist and then delete those git branches
git|shell|zsh
1
55
1
72,779,091
72,779,091
6
true
2022-06-27T22:47:54.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Zsh function to check if git branches exist and then delete those git branches<p>I'm trying to write a simple zsh function to delete all git branches with a ...
72,803,317
Pass data child->parent only when parent presses button<p>I have a UWP app using MVVM Toolkit. I have a parent ViewModel and a child UserControl. Everyone says I should pass data from child to parent using Observer pattern. Which is good. MVVM Toolkit provides some classes and methods Send/Receive.</p> <h2>Question</h2...
<p>Managed to do it using Messenger's request feature. When the parent sends an event, the children replies with the object required.</p> <p><strong>MainViewModel.cs</strong></p> <pre><code>private void CreateFile() { // Request data from children user controls var metadataRequested = WeakReferenceMessenger.Def...
Pass data child->parent only when parent presses button
performance|mvvm|uwp|parent-child|observer-pattern
-1
55
2
72,856,497
72,856,497
-1
true
2022-06-29T14:41:24.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass data child->parent only when parent presses button<p>I have a UWP app using MVVM Toolkit. I have a parent ViewModel and a child UserControl. Everyone sa...
72,879,079
Select from where MySQL Data in C#<p>i have select query which i made a method off so i can call it anywhere instead of writing query command again and again</p> <pre><code>public string mysql_execute_selectfromwhere(string select ,string from, string where, string equalsto) { ConnMySql.Open(); ...
<p>Try:</p> <pre class="lang-cs prettyprint-override"><code> com.CommandText = String.Format(&quot;SELECT {0} FROM {1} WHERE {2}=@equalsto&quot;, select, from, where); command.Parameters.Add(&quot;@equalsto&quot;, SqlDbType.Int); command.Parameters[&quot;@equalsto&quot;].Value = equalsto; </code></pre>
Select from where MySQL Data in C#
c#|mysql
-1
55
2
72,879,410
72,879,410
-1
true
2022-07-06T06:54:57.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Select from where MySQL Data in C#<p>i have select query which i made a method off so i can call it anywhere instead of writing query command again and again...
72,962,285
How can I send signal from the server to the client upon receiving os.Interrupt<p>In my code, I've the below that is listening to <code>os.Interrupt</code> before closing</p> <pre class="lang-golang prettyprint-override"><code>package main import ( &quot;net/http&quot; &quot;os&quot; &quot;os/signal&quot; ...
<p>I found the solution, it was trivial, just pass date to the <code>parser</code> which is defined as global variable within the os.interupt scope, as:</p> <pre class="lang-golang prettyprint-override"><code> &lt;-c if client.IsConnected() { passer.data &lt;- sseData{ event: &quot;notifica...
How can I send signal from the server to the client upon receiving os.Interrupt
go
0
55
1
72,962,417
72,962,417
-1
true
2022-07-13T07:15:01.583Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I send signal from the server to the client upon receiving os.Interrupt<p>In my code, I've the below that is listening to <code>os.Interrupt</code> b...
72,882,134
jQuery's .children() is not a function with jQuery installed<p>I want to join nav tabs with enum-based function. I have found a good example of the latter here: <a href="https://www.aspsnippets.com/Articles/Using-Switch-Case-with-Enum-in-JavaScript.aspx" rel="nofollow noreferrer">https://www.aspsnippets.com/Articles/Us...
<p>Please replace code HTML:</p> <pre><code>&lt;ul class=&quot;nav nav-tabs&quot; id=&quot;menu&quot;&gt; &lt;li class=&quot;nav-item&quot; onclick=&quot;number_switch(this)&quot;&gt; &lt;a class=&quot;nav-link&quot; id=&quot;one&quot; data-toggle=&quot;tab&quot; number=&quot;1&quot;&gt;1&lt;/a&gt; &lt;/li&gt; ...
jQuery's .children() is not a function with jQuery installed
html|jquery
0
55
1
72,883,154
72,883,154
-1
true
2022-07-06T10:42:38.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: jQuery's .children() is not a function with jQuery installed<p>I want to join nav tabs with enum-based function. I have found a good example of the latter he...
72,987,718
how to get false if array have string value of index in javascript<pre><code> function SummPositive( numbers ) { var negatives = []; var sum = 0; for(var i = 0; i &lt; numbers.length; i++) { if(numbers[i] &lt; 0) { negatives.push(numbers[i]); }else{ sum += numbers[i]; } } console.log...
<p>By using of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some" rel="nofollow noreferrer"><code>Array.some()</code></a> method you can easily find out if array contains any string value or not based on the <code>type</code> checking. It will return true if any of the...
how to get false if array have string value of index in javascript
javascript|arrays
-2
55
3
72,989,964
72,989,964
-1
true
2022-07-14T23:47:11.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get false if array have string value of index in javascript<pre><code> function SummPositive( numbers ) { var negatives = []; var sum = 0; for(...
72,995,233
How can I get values one day later (one row below) depending on the largest values in a row of another dataframe with the same shape<p>I have two data frames with the same date index and column names. I want to search after the n largest values each row, then go back to the other dataframe and search for the values one...
<p>We'll apply a custom function that matches the 3 largest per row of <code>df</code> with a shifted version of <code>df1</code>, and then takes only the values.</p> <p>We can use <code>result_type='expand'</code> to shape the values into a DataFrame, and then shift the result back to match what we wanted.</p> <pre><c...
How can I get values one day later (one row below) depending on the largest values in a row of another dataframe with the same shape
python|pandas|dataframe
2
55
2
73,001,229
73,001,229
-1
true
2022-07-15T14:03:38.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I get values one day later (one row below) depending on the largest values in a row of another dataframe with the same shape<p>I have two data frames...
72,770,335
How do I remove _ Character(0) _ Character(0) from column header in R<p>I'm working on a df in R and the <strong>column headers</strong> are getting <code> _ character(0) _ character(0)</code> values too. I want to replace/remove them either with &quot;NA&quot; or &quot;&quot; so that I can <strong>trimws()</strong> t...
<p>You will need to escape this character to make it work: <code>(</code></p> <pre><code>df &lt;- data.frame(`A _ character(0)_ character(0)` = 1, check.names = F) df </code></pre> <blockquote> </blockquote> <pre><code> A _ character(0)_ character(0) 1 1 </code></pre> <bl...
How do I remove _ Character(0) _ Character(0) from column header in R
r|dplyr
1
56
1
72,770,485
72,770,485
0
true
2022-06-27T10:09:27.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I remove _ Character(0) _ Character(0) from column header in R<p>I'm working on a df in R and the <strong>column headers</strong> are getting <code> ...
72,771,194
Updating property in object results to updating all properties<p>My code :</p> <pre><code>n_machines = global.get(&quot;n_machines&quot;); endtime = []; running = []; time_left = []; types = [&quot;delayed_output_timer&quot;,&quot;startup_timer&quot;]; timer = {}; for(i = 0 ; i &lt; types.length ; i++){ key...
<p>You should probably move the variables <code>endtime</code>, <code>running</code>, and <code>time_left</code> to the scope of the loop. Otherwise if you keep them global, each timer uses that single global object declared at the top.</p> <pre class="lang-js prettyprint-override"><code>n_machines = global.get(&quot;n...
Updating property in object results to updating all properties
javascript
1
56
1
72,771,309
72,771,309
0
true
2022-06-27T11:17:25.493Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Updating property in object results to updating all properties<p>My code :</p> <pre><code>n_machines = global.get(&quot;n_machines&quot;); endtime = []; run...
72,771,016
Using Tkinter to draw and track a mouse pointer<p>im still learning to use Python and Tkinter. I have created a bit of code which (i thought) should create a canvas with 2 dots on and afterwards continuously printers the position of the mouse curser</p> <pre><code> from tkinter import * from win32 import win32gui wi...
<p><code>win.mainloop()</code> will block the while loop until the main window is closed.</p> <p>You can use <code>.after()</code> to replace the while loop:</p> <pre class="lang-py prettyprint-override"><code>... def mouse_pos(): # no need to use external module to get the mouse position #flags, hcursor, (x, y...
Using Tkinter to draw and track a mouse pointer
python|tkinter|mouse
0
56
1
72,771,686
72,771,686
0
true
2022-06-27T11:01:36.587Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Tkinter to draw and track a mouse pointer<p>im still learning to use Python and Tkinter. I have created a bit of code which (i thought) should create a...
72,768,580
how to get specific formula using RadioButton() in python<pre><code>r_value= StringVar() r_value.set(&quot;R &lt;= 10k&quot;) def less10k(): enrvalue0 = Vp/0.001 #enr formula for 1 mA return enrvalue0 Radiobutton(in_frame, text=&quot;Resistance Less than or Equal to 10k&quot;,variable=r_value, value=&quot;R &...
<p>You can specify a default when you declare the r_value. The specific formula is run after the command triggers the function.</p> <pre><code>import tkinter as tk root = tk.Tk() Vp = 0.09 r_value = tk.StringVar(None, &quot;R &lt;= 10k&quot;) root.result = tk.Label(root, fg='white', width=10, height=5) root.result.g...
how to get specific formula using RadioButton() in python
python|tkinter
1
56
1
72,771,781
72,771,781
0
true
2022-06-27T07:45:11.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get specific formula using RadioButton() in python<pre><code>r_value= StringVar() r_value.set(&quot;R &lt;= 10k&quot;) def less10k(): enrvalue0 =...
72,788,096
Recyclerview not showing items Kotlin<p>My App is just shows an Empty Screen and <code>RecyclerView</code> is not showing anything or is not working but there are no compile time or run time errors.</p> <p>It would be great help if I get an answer ... I have been making an app that uses a <code>RecyclerView</code> but ...
<p>Update your <code>CharacterResponse</code> model class to parse data accordingly.</p> <pre><code>data class CharacterResponse( val info: Info, val results: List&lt;Characters&gt; ) </code></pre>
Recyclerview not showing items Kotlin
android|kotlin|android-recyclerview|pagination
1
56
1
72,790,955
72,790,955
0
true
2022-06-28T14:15:35.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Recyclerview not showing items Kotlin<p>My App is just shows an Empty Screen and <code>RecyclerView</code> is not showing anything or is not working but ther...
72,798,580
Difference between @PostMapping and @PutMapping?<p>What is the actual difference between those two? Both can use request bodies I believe.</p> <p>I read that PutMapping is used to update data and PostMapping to post new data. Is it more for readable purposes?</p> <hr />
<p>POST:</p> <p>Used to modify and update a resource</p> <p>POST /questions/&lt;existing_question&gt; HTTP/1.1 Host: <a href="http://www.example.com/" rel="nofollow noreferrer">www.example.com/</a></p> <p>PUT:</p> <p>Used to create a resource, or overwrite it. While you specify the resources new URL.</p> <p>For a new r...
Difference between @PostMapping and @PutMapping?
java|spring
0
56
2
72,798,667
72,798,667
0
true
2022-06-29T08:58:34.613Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Difference between @PostMapping and @PutMapping?<p>What is the actual difference between those two? Both can use request bodies I believe.</p> <p>I read that...
72,771,799
Nestjs TypeError: applicationConfig.getVersioning is not a function<pre> I have reinstalled @nestjs/swagger and swagger-ui-express. All my dependencies are up to date. But I get this error: applicationConfig.getVersioning is not a function at SwaggerExplorer.exploreRoutePathAndMethod I have updated metadata tags in t...
<p>need to upgrade @nestjs/core as well –</p>
Nestjs TypeError: applicationConfig.getVersioning is not a function
swagger|nestjs
0
56
1
72,803,070
72,803,070
0
true
2022-06-27T12:04:54.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nestjs TypeError: applicationConfig.getVersioning is not a function<pre> I have reinstalled @nestjs/swagger and swagger-ui-express. All my dependencies are u...
72,812,711
angular table , cell with<p>Is there a way we can extend the card which is on the cell up to the end of the table ? that there will be no padding , as you can see on the arrow on the screenshot, I wanted to extend the card up to end .</p> <p><a href="https://i.stack.imgur.com/x6P1b.png" rel="nofollow noreferrer"><img s...
<p>You can add a class to set the padding zero to your <code>mat-cell</code> element something like</p> <pre><code>&lt;mat-cell *matCellDef=&quot;let model&quot; class=&quot;p-0&quot;&gt; </code></pre> <p>then in css</p> <pre><code>.p-0 { padding: 0 !important; } </code></pre> <p>Working <a href="https://stackblitz....
angular table , cell with
javascript|css|angular|typescript|angular-material
2
56
1
72,813,481
72,813,481
0
true
2022-06-30T08:37:35.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: angular table , cell with<p>Is there a way we can extend the card which is on the cell up to the end of the table ? that there will be no padding , as you ca...
72,800,157
Firebase collection query change if user has admin custom claim<p>Looking for some help with structuring a Firebase query in Angular. I have a collection of documents, each with an array field containing a list of the userIds that are permitted to view the document.</p> <p>This query works great for bringing back all t...
<p>I don't think your solution is clunky. Just add a short comment like &quot;fetch all documents if admin, otherwise fetch all documents authorized to read&quot;.</p>
Firebase collection query change if user has admin custom claim
angular|typescript|firebase|google-cloud-firestore|firebase-security
0
56
1
72,815,629
72,815,629
0
true
2022-06-29T10:52:22.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Firebase collection query change if user has admin custom claim<p>Looking for some help with structuring a Firebase query in Angular. I have a collection of ...
72,816,589
Cant use dictionary outside function<p>Situation is as following: I am trying to use an dictionary in C# (.NET Framework in Visual Studio) point is that whenever I put the Dictionary outside of an function it does not seem to work.</p> <p>This is how I would want it to be:</p> <pre class="lang-cs prettyprint-override">...
<p>The add method call has to be inside a method or constructor. You could add it as part of your dictionary initializer.</p> <pre><code>public Form1() { InitializeComponent(); countriesMap.Add(&quot;Parijs&quot;, &quot;7,13&quot;); } Dictionary&lt;string, string&gt; countriesMap = new Dictionary&lt;string, st...
Cant use dictionary outside function
c#|.net
-3
56
1
72,816,641
72,816,641
0
true
2022-06-30T13:21:09.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cant use dictionary outside function<p>Situation is as following: I am trying to use an dictionary in C# (.NET Framework in Visual Studio) point is that when...
72,817,398
Json.NET Schema fails in not validating json based on schema<p>I'm trying to use Json.NET Schema to validate some JSONs against a schema I constructed and validated using JSON Schema Validator - <a href="https://www.jsonschemavalidator.net/" rel="nofollow noreferrer">https://www.jsonschemavalidator.net/</a>, which is a...
<p><code>if</code>/<code>then</code> is a better alternative than <code>oneOf</code>, but you can't use it with a draft-04 schema. If you can upgrade to draft-07, you can use the conditional statements. You can do this by changing the value of the <code>$schema</code> keyword. Just change the &quot;4&quot; to a &quot;7...
Json.NET Schema fails in not validating json based on schema
json|.net|validation|json.net|jsonschema
0
56
1
72,818,285
72,818,285
0
true
2022-06-30T14:16:26.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Json.NET Schema fails in not validating json based on schema<p>I'm trying to use Json.NET Schema to validate some JSONs against a schema I constructed and va...
72,809,880
Python scraping email protection address from href link<p>I want to get email adresses from : [1]: <a href="https://thenationalweddingdirectory.com.au/suppliers/wedding-venues/queensland/the-dock-mooloolaba-events/" rel="nofollow noreferrer">https://thenationalweddingdirectory.com.au/suppliers/wedding-venues/queensland...
<p><strong>Email</strong>, telephone is on the page, there are one json with all info you need.<br /> Also you have some &quot;ajax&quot; request to get all <strong>URLs</strong> to visit.</p> <pre class="lang-py prettyprint-override"><code>import json from bs4 import BeautifulSoup import requests import re params = {...
Python scraping email protection address from href link
python|email|web-scraping|href|data-extraction
-1
56
1
72,822,387
72,822,387
0
true
2022-06-30T03:03:45.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python scraping email protection address from href link<p>I want to get email adresses from : [1]: <a href="https://thenationalweddingdirectory.com.au/suppli...
72,827,465
Buttons don't work after creating a Modal<p>I'm working on a project and I need to add a modal to it, before creating my modal, Buttons were working fine and functions were executing normaly, but after creating the modal, only the modal buttons are working, and the page buttons don't, I tried removing the html of the m...
<p>I solved the problem by changing the css of my modal</p> <pre><code>.modal{ background: white; border: 1px solid white; border-radius: 15px; padding: 30px; width: 60%; position: absolute; top: 100%; left: 50%; z-index: 10; transform: translate(-50%, -50%) scale(0); } .modal.active{ transform: translate(-50%, -50%) ...
Buttons don't work after creating a Modal
javascript|html|css|frontend
1
56
1
72,828,182
72,828,182
0
true
2022-07-01T09:50:23.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Buttons don't work after creating a Modal<p>I'm working on a project and I need to add a modal to it, before creating my modal, Buttons were working fine and...
72,828,103
I am facing an issue of "Could not load file or assembly" in mvc core project<p>In my local host the project runs fine without any error but when I have deployed the project to the Server there is an issue with one of the assembly files. The error thrown is :</p> <blockquote> <p>Could not load file or assembly 'System....
<p>The error is providing you the information you need. The assembly of</p> <blockquote> <p>System.Linq.Dynamic.Core</p> </blockquote> <p>was not found, the file is missing. So, if you use a package manager, like NuGet, then you can make sure that the given assembly is properly deployed.</p> <p>If you do this by hand, ...
I am facing an issue of "Could not load file or assembly" in mvc core project
c#|asp.net-core|.net-core
-2
56
1
72,828,369
72,828,369
0
true
2022-07-01T10:46:03.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I am facing an issue of "Could not load file or assembly" in mvc core project<p>In my local host the project runs fine without any error but when I have depl...
72,829,416
pushing data inside an existing empty array<p>Basically I have an main object dataToMovie, I have empty arrays. I want to display the content of the arr variable into mov[] and the content of the arr2 into ser[]. I have attempted to do something as you can see. I am looking to do this seperately for each array as I wil...
<p>You are close. if the arrays are empty you can just do:</p> <pre><code>dataToMovie.links.mov = arr dataToMovie.links.ser= arr2 </code></pre> <p>If the arrays have items in them and you just want to add to them, you can use the spread operator</p> <pre><code>dataToMovie.links.mov = [...dataToMovie.links.mov, ...arr] ...
pushing data inside an existing empty array
javascript|reactjs
0
56
2
72,829,497
72,829,497
0
true
2022-07-01T12:40:44.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pushing data inside an existing empty array<p>Basically I have an main object dataToMovie, I have empty arrays. I want to display the content of the arr vari...
72,828,999
I need to create unit tests for my urls in a django project<p>I have this url which returns the json data of my models but I don't know how to create a unit test for a url like this</p> <pre><code>path(&quot;list/&quot;, views.json_list, name=&quot;json_list&quot;), </code></pre>
<p>I'm not really sure what is being asked. A test like this</p> <pre><code>url = reverse('myapp:json_list') response = client.get( url) body = response.content.decode() </code></pre> <p>is going to fail if anything is wrong with the url definition. (Specifically, <code>reverse</code> will fail if the name doesn't exis...
I need to create unit tests for my urls in a django project
python|django|unit-testing|testing|automated-tests
0
56
1
72,829,641
72,829,641
0
true
2022-07-01T12:03:16.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I need to create unit tests for my urls in a django project<p>I have this url which returns the json data of my models but I don't know how to create a unit ...
72,843,404
update set values with dictionary with multiple values per key<p>I have a sqldb table looking like this below</p> <pre><code>| tag | unit | description| |:---- |:------:| -----:| | 1a | % | mass flow | | 2a | * | head flow | </code></pre> <p>and I want to update values into the table with a dictionary below</p> <...
<p>You could do this:</p> <pre><code>for tag in d: cursor.execute(&quot;UPDATE tag_metadata SET unit = ? , description = ? where tag_name = ?&quot;, d[tag][0], d[tag][1], tag) cursor.commit() </code></pre> <p>This would update all the records mentioned in <code>d</code> with the values as you de...
update set values with dictionary with multiple values per key
python|sql|pyspark|apache-spark-sql
0
56
3
72,843,741
72,843,741
0
true
2022-07-03T01:20:27.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: update set values with dictionary with multiple values per key<p>I have a sqldb table looking like this below</p> <pre><code>| tag | unit | description| |:--...
72,850,895
React: StrictMode causing my variable to increment twice<p>I am new to React development and at loss with StrictMode functionality that would invoke/re-render the component twice.</p> <p>For example, I did some Todo App and want to increment my <em><strong>globalID</strong></em> variable everytime user clicked <em><str...
<p>Instead of a mutable integer which starts at <code>0</code> and that you increment for each generation, use a UUID: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID" rel="nofollow noreferrer"><code>Crypto.randomUUID()</code></a>. This will also allow you to solve a potential future issue (...
React: StrictMode causing my variable to increment twice
reactjs
0
56
1
72,850,942
72,850,942
0
true
2022-07-04T01:06:04.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React: StrictMode causing my variable to increment twice<p>I am new to React development and at loss with StrictMode functionality that would invoke/re-rende...
72,835,099
Hibernate search does not remove old value from lucene index when the object is deleted via an @NoRepositoryBean Jpa method<p>I have a <code>NoRepositoryBean</code> Jpa interface that has one custom jpa method called <code>deleteAllByIdIn(...)</code> which is inherited by some concrete JpaRepositories. For some reason ...
<p>Hibernate Search detects entity change events happening in your Hibernate ORM <code>Session</code>/<code>EntityManager</code>. This excludes <code>insert</code>/<code>update</code>/<code>delete</code> statements that you wrote yourself in JPQL or native SQL queries.</p> <p>The limitation is documented here: <a href=...
Hibernate search does not remove old value from lucene index when the object is deleted via an @NoRepositoryBean Jpa method
spring|lucene|hibernate-search
1
56
1
72,852,525
72,852,525
0
true
2022-07-01T22:22:35.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hibernate search does not remove old value from lucene index when the object is deleted via an @NoRepositoryBean Jpa method<p>I have a <code>NoRepositoryBean...
72,834,070
C# SQL Server Integrated Security error when running executeable from network directory, works fine when running from a local copy of the exe<p>I am querying a SQL Server database with the following C# code:</p> <pre><code>SqlConnectionStringBuilder sqlCSB = new SqlConnectionStringBuilder(); sqlCSB[&quot;Data Source&qu...
<p>The answer to my question can be found here: <a href="https://stackoverflow.com/questions/50172067">SqlConnection Error if EXE is executed from network path</a></p> <p>&quot;Finally I found the problem: in the server with the shared folder, SMBv2 is disabled (I don't know why) so only SMBv1 is active; the same progr...
C# SQL Server Integrated Security error when running executeable from network directory, works fine when running from a local copy of the exe
c#|sql|sql-server|integrated-security
0
56
1
72,856,275
72,856,275
0
true
2022-07-01T19:52:31.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# SQL Server Integrated Security error when running executeable from network directory, works fine when running from a local copy of the exe<p>I am querying...
72,861,354
Rails text fields without submit button (auto-submit on input change)<p>I am writing a Rails application that has the user entering a 1-digit number, and that number is compared to an &quot;answer&quot; in the database to see if it is correct. I want the comparison to happen instantaneously, as soon as the user enters ...
<p>I don't see a way to do this without js. Try something like:</p> <pre><code>&lt;%= f.number_field :answer, value: '', onchange: &quot;this.form.submit()&quot; %&gt; </code></pre> <p>Or maybe use <code>onkeyup</code> instead of <code>onchange</code>.</p>
Rails text fields without submit button (auto-submit on input change)
mysql|ruby-on-rails|ruby
1
56
2
72,862,105
72,862,105
0
true
2022-07-04T19:41:24.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rails text fields without submit button (auto-submit on input change)<p>I am writing a Rails application that has the user entering a 1-digit number, and tha...
72,782,834
Java. Scanner requests an additional line but does not print it<p>just entered this community and this is my first question here, so please bear with a noob. I created two classes, first is Student, a basic one with fields, constructor and getters. The second one has the main method, a LinkedList, a multiple-entry Scan...
<ol> <li><p>courseAttend should be a <code>List&lt;Student&gt; courseAttend = new ...List&lt;&gt;();</code> like your methode argument <code>printList(List&lt;Student&gt; students)</code> because both could be also a ArrayList and it is the normal way to in implement variables if they have not to be sepciefied, like in...
Java. Scanner requests an additional line but does not print it
java|loops|java.util.scanner
-1
56
1
72,862,244
72,862,244
0
true
2022-06-28T08:07:28.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java. Scanner requests an additional line but does not print it<p>just entered this community and this is my first question here, so please bear with a noob....
72,864,653
Gatsby Replace regular Anchor Tag with Link component on build time<p>we have created our design system with a few regular anchor tags in the components. now the problem is, while using those components in gatsby, the whole page is getting reloaded while Navigating to a new page due to regular anchor tags. I know that ...
<p>After a few hours of searching through the internet, finally, I found the solution for the above issue, I have tried <a href="https://www.gatsbyjs.com/plugins/gatsby-plugin-catch-links/" rel="nofollow noreferrer">gatsby-plugin-catch-links</a> this plugin internally uses an anchor tag with the event.preventDefault() ...
Gatsby Replace regular Anchor Tag with Link component on build time
reactjs|react-router|gatsby
0
56
1
72,865,758
72,865,758
0
true
2022-07-05T06:05:41.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Gatsby Replace regular Anchor Tag with Link component on build time<p>we have created our design system with a few regular anchor tags in the components. now...
72,865,402
Updating array values<p>I'm putting together a quiz with A/B questions. Every answer has 5 parameters that have to be updated as the user advances through the quiz to show a final results page.</p> <p>It's very simple but I can't figure out why the parameters aren't updating. This is my first Javascrips project, can so...
<p>When you place <code>totalOrg</code> in the array <code>totalParameters</code>, you are not placing a pointer to the first variable, but the <em>value</em>, i.e. 2. So the final line of code is no different from:</p> <pre><code>let totalParameters = [2, 2, 0, 2, 2]; </code></pre> <p>This will clarify why that array ...
Updating array values
javascript
0
56
2
72,865,947
72,865,947
0
true
2022-07-05T07:18:18.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Updating array values<p>I'm putting together a quiz with A/B questions. Every answer has 5 parameters that have to be updated as the user advances through th...
72,873,593
React (typescript) hooks order of execution<p>I'm struggling with a language switching feature. The home page of my app at / should pickup a previously localstorage setting, <code>'preferredLanguage'</code>, or pick up a default language from <code>navigator.language</code> if no preference is set. It should be able to...
<p>I wasn't using hooks correctly. Now I defined a function within it and returned it, confining effectful code into that function.</p> <pre class="lang-js prettyprint-override"><code>import {useTranslation} from 'react-i18next'; export const useLang = () =&gt; { const { t, i18n } = useTranslation() const setLang...
React (typescript) hooks order of execution
javascript|reactjs|typescript|react-hooks
1
56
2
72,876,781
72,876,781
0
true
2022-07-05T17:48:19.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React (typescript) hooks order of execution<p>I'm struggling with a language switching feature. The home page of my app at / should pickup a previously local...
72,873,984
R fabletools accuracy() first argument should be a forecast object or a time series<p>I'm trying to pull diagnostics for 3 models at once using the accuracy() function from fabletools. I get this error:</p> <pre><code>Error in accuracy.default(rec_fore, df) : First argument should be a forecast object or a time seri...
<p>This error is coming from the <code>forecast::accuracy.default()</code> method. To evaluate test-set forecast accuracy you would use the <code>accuracy()</code> function with a <code>&lt;fable&gt;</code> object.</p> <p>Something like this should work:</p> <pre class="lang-r prettyprint-override"><code>rec_fit %&gt;%...
R fabletools accuracy() first argument should be a forecast object or a time series
r|forecast|fable-r
0
56
1
72,877,195
72,877,195
0
true
2022-07-05T18:26:18.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R fabletools accuracy() first argument should be a forecast object or a time series<p>I'm trying to pull diagnostics for 3 models at once using the accuracy(...
72,885,454
Excel not sorting numbers correctly on pivot table<p>It's as the title says, my excel pivot table is not sorting numbers corretly.</p> <p>When I create the pivot table from my dataset, the goal is to have the data sorted by year, week number, and the Keys sorted by the PM_Value (decreasing order) as shown here. The &qu...
<p>I don't know if the correct procedure is to delete the question or not (If it is, can any moderator delete it please? sorry). But while I was writing I thought of a solution, and if anyone has this problem here it is:</p> <p>The problem was that the calculation of &quot;PM_Value&quot; is a division, and some of the ...
Excel not sorting numbers correctly on pivot table
excel|sorting|pivot-table|excel-pivot
0
56
1
72,885,673
72,885,673
0
true
2022-07-06T14:37:22.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel not sorting numbers correctly on pivot table<p>It's as the title says, my excel pivot table is not sorting numbers corretly.</p> <p>When I create the p...
72,884,097
realm data structure for workout tracking app<p>First time asking a question on StackOverflow, so forgive me if it isn't worded perfectly. I'm in the process of trying to build a fitness tracking iOS app. I'm attempting to use realm to handle the database side of things as I like how easy it is to use/update/etc. That ...
<p>I think your well on your way an on the right track. Based on the info in your question, you're got some static data the app will provide and then some data the user will enter.</p> <p>The static data is the Workouts and Exercises</p> <pre><code>class Workout: Object { @Persisted(primaryKey: true) var _id: Objec...
realm data structure for workout tracking app
ios|swift|realm
0
56
1
72,887,607
72,887,607
0
true
2022-07-06T13:05:35.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: realm data structure for workout tracking app<p>First time asking a question on StackOverflow, so forgive me if it isn't worded perfectly. I'm in the process...
72,889,670
React dispatch action updates state after second click<p>I have got my own <code>AuthContext</code> and one of its method is <code>signUp</code> Here is the reducer</p> <pre><code>const authReducer = (state, action) =&gt; { switch (action.type) { case 'signIn': return {errorMessage: '', token: a...
<p>Thanks for more insight. As I can see you're checking context state value in the <code>promise.then</code>, but I think it's not gonna be there at this point of time, because <code>promise.then</code> is triggered just after the call. At this point of time state is not updated. On second click it's already updated, ...
React dispatch action updates state after second click
reactjs|react-native|react-hooks
0
56
1
72,889,965
72,889,965
0
true
2022-07-06T20:45:45.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React dispatch action updates state after second click<p>I have got my own <code>AuthContext</code> and one of its method is <code>signUp</code> Here is the ...
72,893,073
The return type 'Object' isn't a 'Widget', as required by the closure's context<p>I try to build with List.generate but they has error The return type 'Object' isn't a 'Widget', as required by the closure's context. But when i use ListView.builder, my application work fine.</p> <pre><code>Here my code List.generate...
<p>You getting this error because you have defined list type in widget tree. instead of that you need to define listview. For solve this error you need to put below code</p> <pre><code>ListView.builder( itemCount: data.length, itemBuilder: (context, i) { return GestureDetector( ...
The return type 'Object' isn't a 'Widget', as required by the closure's context
flutter|dart
0
56
1
72,893,222
72,893,222
0
true
2022-07-07T06:17:36.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The return type 'Object' isn't a 'Widget', as required by the closure's context<p>I try to build with List.generate but they has error The return type 'Objec...
72,897,618
Resource 'appid or objectid' does not exist or one of its queried reference-property objects are not present<p>I am trying to associate a claimmappingpolicy with a main service from the graph api: <a href="https://i.stack.imgur.com/xlDHd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xlDHd.png" alt=...
<p>You are looking at the app registration, which means you are looking at ids of the Application object. You need the service principal objectId instead.</p> <p>You can click &quot;Managed application in local directory&quot; from the app registration or go to &quot;Enterprise applications&quot; and find your service ...
Resource 'appid or objectid' does not exist or one of its queried reference-property objects are not present
azure|azure-ad-graph-api|azure-service-principal
0
56
1
72,897,708
72,897,708
0
true
2022-07-07T12:12:38.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Resource 'appid or objectid' does not exist or one of its queried reference-property objects are not present<p>I am trying to associate a claimmappingpolicy ...
72,897,249
Orbit of the Earth - numerical methods leapfrog<p>edit: I get these plots now from earths orbit. However, total energy looks not right. Should it not be oscillating between 0?</p> <p>Thanks again!</p> <p><a href="https://i.stack.imgur.com/yNMtM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yNMtM.pn...
<p>There should be no integration in part b), you use the result from part a) to compute the energies at each point.</p> <pre class="lang-python prettyprint-override"><code> x,y,vx,vy = z_vec.T r = np.hypot(x,y) E_kin = 0.5*m*(vx**2+vy**2) E_pot = -G*M*m/r E = E_kin+E_pot plt.plot(t,E) </code></p...
Orbit of the Earth - numerical methods leapfrog
python|physics|numerical-methods
1
56
1
72,898,060
72,898,060
0
true
2022-07-07T11:46:48.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Orbit of the Earth - numerical methods leapfrog<p>edit: I get these plots now from earths orbit. However, total energy looks not right. Should it not be osci...
72,885,431
Unable to Export Sqlite database from SpecialFolder.ApplicationData to SD Card Xamarin Forms<p>I am currently developing an app that uses the sqlite-net database. I am trying to copy/export the database to my SD Card. When I run the code I get a <strong>System.NullRefrenceException:</strong> 'Object reference not set t...
<p>The issue was the path address. I fixed it by checking for the directory first to see if it exists, then I copy the database to the directory in a new/existing file. The issue I have now is that the file saves to phone but not the SD card, but I am just happy that the backup file is finally saving. Below is the code...
Unable to Export Sqlite database from SpecialFolder.ApplicationData to SD Card Xamarin Forms
xamarin|export|sqlite-net
0
56
2
72,900,003
72,900,003
0
true
2022-07-06T14:35:25.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to Export Sqlite database from SpecialFolder.ApplicationData to SD Card Xamarin Forms<p>I am currently developing an app that uses the sqlite-net data...
72,902,635
Find the size of max perfect subset of a given set of integers<p>Give a list of distinct integers&gt;=2. Take any subset of it with size&gt;=2. A subset is called perfect if after arranging the numbers in ascending order. It satisfies a[i]*a[i]=a[i+1] for all elements in the subset. We have to return the size of a perf...
<p>This sounds like a variation on the <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;ved=2ahUKEwic1t_duOf4AhWWl2oFHYYWBusQFnoECAwQAQ&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FLongest_increasing_subsequence&amp;usg=AOvVaw3ZffMTu9kCVvGtCZS8h6Pz" rel="nofollow norefe...
Find the size of max perfect subset of a given set of integers
algorithm
0
56
1
72,902,899
72,902,899
0
true
2022-07-07T18:28:38.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find the size of max perfect subset of a given set of integers<p>Give a list of distinct integers&gt;=2. Take any subset of it with size&gt;=2. A subset is c...
72,856,824
Remove Hyperlinks using Office Scripts<p>i'm kind of a begginer at office scripts and i would like to translate this code from vba that elimante all hyperlinks in a every worksheet in a excel file ( please note that the file is very big and the code needs to be optimised)</p> <p>VBA code used :</p> <pre><code>sub Remov...
<p>You can try the code below. It removes hyperlinks from all of the worksheets in the workbook:</p> <pre><code>function main(workbook: ExcelScript.Workbook) { workbook.getWorksheets().forEach(sh=&gt;{ sh.getUsedRange()?.clear(ExcelScript.ClearApplyTo.removeHyperlinks) }) } </code></pre>
Remove Hyperlinks using Office Scripts
excel|vba|office-scripts
0
56
2
72,904,609
72,904,609
0
true
2022-07-04T12:31:28.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove Hyperlinks using Office Scripts<p>i'm kind of a begginer at office scripts and i would like to translate this code from vba that elimante all hyperlin...
72,904,888
SQL query combine rows based on common id<p>I have a table with the below structure:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>MID</th> <th>FromCountry</th> <th>FromState</th> <th>FromCity</th> <th>FromAddress</th> <th>FromNumber</th> <th>FromApartment</th> <th>ToCountry</th> <th>ToCi...
<p>On the assumption there are no more than 2 rows per <code>MID</code> then you can implement a simple row_number() solution.</p> <p>You need to join one row for each MID to the other, so assign a unique value to each using row_number - there's nothing I can immediately see that indicates which row should be the &quot...
SQL query combine rows based on common id
sql|sql-server|row
2
56
1
72,905,267
72,905,267
0
true
2022-07-07T22:31:40.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL query combine rows based on common id<p>I have a table with the below structure:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr>...
72,903,980
Hide certain search results using JQuery<p>I have a basic search bar with about 25 options to be searched, what I need to do is hide 2 of those options from the user. Initially, the modal with the options loads like this:</p> <p><a href="https://i.stack.imgur.com/Uui6R.jpg" rel="nofollow noreferrer"><img src="https://i...
<p>I don't know livewire or alpine, but it seems that jquery is showing what alpine hid.</p> <p>See if this works for you, I tried to make a similar html structure, with the 2 lines starting hidden, and skip these 2 lines when searching the others:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script src=&quot;htt...
Hide certain search results using JQuery
javascript|jquery|laravel-livewire|alpine.js
0
56
1
72,905,432
72,905,432
0
true
2022-07-07T20:40:50.797Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hide certain search results using JQuery<p>I have a basic search bar with about 25 options to be searched, what I need to do is hide 2 of those options from ...
72,906,836
\r\n not splitting string in javascript<p>I have a string which is multiline. I update this on SFL case object field. When i extract the same from database using SOQL, it appends \r\n\r\n whenever multiline text is found. I tried using different regex expressions with split(\r\n) or split(\r\n) and some more as suggest...
<p>Use a character set in the regular expression separator.</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 string = 'This is line 1\r\n\r\nThis is line 2' const result =...
\r\n not splitting string in javascript
javascript|string|split|newline|aura-framework
0
56
2
72,906,959
72,906,959
0
true
2022-07-08T05:00:47.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: \r\n not splitting string in javascript<p>I have a string which is multiline. I update this on SFL case object field. When i extract the same from database u...
72,908,051
convert a dataframe column of comma separted value to string with different format<p>I hava a pandas dataframe column with string</p> <pre><code>parameters param1,param2 param1,param2,param3 param1,param2,param3,param4 </code></pre> <p>I want the column to be converted to string like</p> <pre><code>parameters [{&quot...
<p>Alternative solution:</p> <pre class="lang-py prettyprint-override"><code>df = pd.DataFrame({&quot;parameters&quot;: [np.nan, &quot;param1,param2&quot;, &quot;param1,param2,param3&quot;, &quot;param1,param2,param3,param4&quot;]}) ( df[&quot;parameters&quot;].fillna('').str.split(&quot;,&quot;) .apply(lambda...
convert a dataframe column of comma separted value to string with different format
python|pandas|dataframe|series
1
56
2
72,908,445
72,908,445
0
true
2022-07-08T07:25:05.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: convert a dataframe column of comma separted value to string with different format<p>I hava a pandas dataframe column with string</p> <pre><code>parameters ...
72,908,453
JS Selection sort failing<p>I have this code to do selection sort.</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>function selectionSort(array) { for(let j = 0; j &lt; arr...
<p>Let's fix it. As the algorithm says,</p> <ul> <li>j is running from the start to end</li> <li>i is running from j+1 to the end looking for smallest</li> <li>after this, we swap the smallest (at smallest_index) with the original[j]</li> <li>advanced to next j</li> </ul> <p><div class="snippet" data-lang="js" data-hid...
JS Selection sort failing
javascript
-1
56
3
72,908,609
72,908,609
0
true
2022-07-08T08:07:23.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JS Selection sort failing<p>I have this code to do selection sort.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babe...
72,899,557
Cannot get cookiecutter to run properly on amazon linux<p>When running this command locally on mac, this works fine. However when running the same command on <strong>amazon linux</strong>, i get this issue:</p> <p>command:</p> <pre><code>cookiecutter -f -v --no-input --config-file config.yaml https://bitbucket.org/proj...
<p>This fixed it for me</p> <pre><code>source ~/.bash_profile export PATH=&quot;~/.local/bin:$PATH&quot; python3 -m pip install &quot;cookiecutter==2.1.1&quot; </code></pre> <p>I was originally doing this:</p> <pre><code>pip install --user cookiecutter </code></pre>
Cannot get cookiecutter to run properly on amazon linux
amazon-web-services|amazon-linux|cookiecutter
0
56
1
72,909,336
72,909,336
0
true
2022-07-07T14:25:06.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot get cookiecutter to run properly on amazon linux<p>When running this command locally on mac, this works fine. However when running the same command on...
72,909,233
Error: invalid use of incomplete type 'class Move' / undefined reference to Move::NONE<p>Please, I don't know why this simple code is rejected.</p> <p>It give me 2 compilation errors. Help me please. </p> <p>I use <strong>Code::Blocks 20.03</strong></p> <p>My compiler is <strong>GNU GCC</strong></p> <p><strong>---move....
<p>You should provide an out-of-class definition for the static data member <code>NONE</code> in the source file(like move.cpp) which will work because at that point the class is complete as shown below:</p> <p><strong>move.hpp</strong></p> <pre><code>#pragma once class Move { public: Move(); Move(...
Error: invalid use of incomplete type 'class Move' / undefined reference to Move::NONE
c++|class
0
56
2
72,911,178
72,911,178
0
true
2022-07-08T09:17:00.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error: invalid use of incomplete type 'class Move' / undefined reference to Move::NONE<p>Please, I don't know why this simple code is rejected.</p> <p>It giv...
72,917,151
How to add a variable with each array element in php?<p>I want to add variables with each array item but I do not have clue what to do? Here is my code. Can anyone help me, please? Thanks</p> <pre><code>$str = &quot;Ice Cream has&quot;; $optional= &quot;flavor&quot;; $items = array(&quot;vanilla&quot;,&quot;chocolate&q...
<p>You need to concatenate <code>$optional</code> to all elements of the array, not just the result of <code>implode()</code>. You can use <code>array_map()</code> to create a new array with <code>$optional</code> added to each element.</p> <pre><code>$str = &quot;Ice Cream has&quot;; $optional= &quot;flavor&quot;; $it...
How to add a variable with each array element in php?
php
1
56
2
72,917,217
72,917,217
0
true
2022-07-08T21:26:43.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add a variable with each array element in php?<p>I want to add variables with each array item but I do not have clue what to do? Here is my code. Can ...
72,916,023
Joi validation with dollar sign in the number text<p>Is it possible to extend joi to allow for a '$' in the number() validation?</p> <p>My input is a string like &quot;$12.34&quot;. When I attempt to validate this using Joi.number() I receive an error &quot;{Field} must be a number&quot;. All I need is to remove the ...
<p>The short answer is to extend number with a custom prepare method.</p> <p>After trying everything I could think of I looked at the source on github and found this <a href="https://github.com/sideway/joi/blob/83092836583a7f4ce16cbf116b8776737e80d16f/test/extend.js#L1417" rel="nofollow noreferrer">test</a></p> <pre><c...
Joi validation with dollar sign in the number text
joi
0
56
2
72,921,385
72,921,385
0
true
2022-07-08T19:12:54.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Joi validation with dollar sign in the number text<p>Is it possible to extend joi to allow for a '$' in the number() validation?</p> <p>My input is a string ...
72,909,457
Is there a way to put a anchor component in an context menu in vaadin 14?<p>Im trying to get a vaadin anchor component inside of an context menu, but I cant get it to work. I tried it like following:</p> <pre><code>this.contextMenu.add(anchorFile); </code></pre> <p>But the menu item inside of the context menu wont appe...
<p>Have you set the text content for your <code>Anchor</code> component?</p> <p>The proper way to add the Anchor as menu item is this.</p> <pre><code> ContextMenu menu = new ContextMenu(targetComponent); Anchor vaadin = new Anchor(&quot;https://vaadin.com/&quot;,&quot;Vaadin&quot;); menu.addItem(vaadin); </c...
Is there a way to put a anchor component in an context menu in vaadin 14?
java|anchor|contextmenu|vaadin14|vaadin-grid
0
56
1
72,924,019
72,924,019
0
true
2022-07-08T09:35:58.413Z
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 put a anchor component in an context menu in vaadin 14?<p>Im trying to get a vaadin anchor component inside of an context menu, but I cant ...
72,925,053
Osmdroid (open street map) marker slow to draw after click to map<p>I'm brand new to <code>Open Street Map</code> and have successfully added a map to my activity at the user's location and implemented an <code>onClickListener</code> that upon a click shows a marker and retrieves the latitude and longitude of that poin...
<p>add</p> <pre><code>mapView.postInvalidate() </code></pre> <p>to force a redraw</p>
Osmdroid (open street map) marker slow to draw after click to map
android|kotlin|openstreetmap|osmdroid
0
56
1
72,928,442
72,928,442
0
true
2022-07-09T22:40:03.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Osmdroid (open street map) marker slow to draw after click to map<p>I'm brand new to <code>Open Street Map</code> and have successfully added a map to my act...
72,930,163
copy and insert row in same table with new primary key+php<p>my project: <strong>PHP</strong></p> <p>i have a table. i want copy one row into same table with diffrent primary key.</p> <p>sql code: INSERT INTO messages SELECT * FROM messages WHERE id='$id'</p> <p>when i click on submit show : Error: INSERT INTO messages...
<p>Because you're trying to insert <em>every field</em> in that row, which includes the primary key. If you want to specify a subset of fields, specify a subset of fields:</p> <pre><code>INSERT INTO messages (ColumnA, ColumnB, Etc) SELECT ColumnA, ColumnB, Etc FROM messages WHERE id='$id' </code></pre> <p>That way you...
copy and insert row in same table with new primary key+php
php|sql|copy|row
0
56
1
72,930,181
72,930,181
0
true
2022-07-10T16:38:15.147Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: copy and insert row in same table with new primary key+php<p>my project: <strong>PHP</strong></p> <p>i have a table. i want copy one row into same table with...
72,929,939
Azure DNS remove NS records<p>We want to transfer a site from Azure AppServices to an external host because of cost.</p> <p>The domain is managed through Azure. When I try to update the NS records, I can't remove the Azure ones, they're grayed out.</p> <p>Do I have to delete the AppService first? I'd rather not have an...
<blockquote> <p>When I try to update the NS records, I can't remove the Azure ones, they're grayed out.</p> </blockquote> <p><em>You can't <strong>modify</strong> or <strong>Remove</strong> the pre-populated <strong>NS records</strong> as per this <a href="https://docs.microsoft.com/en-us/azure/dns/dns-operations-recor...
Azure DNS remove NS records
azure|dns
-1
56
1
72,934,064
72,934,064
0
true
2022-07-10T16:08:18.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure DNS remove NS records<p>We want to transfer a site from Azure AppServices to an external host because of cost.</p> <p>The domain is managed through Azu...
72,940,285
Android :switch between Layouts dynamically every 10 seconds<p>android beginner here. any help is much appreciated .</p> <p>I am working on an app that can do a simple experiment. the app displays images and asks users to rate it from 1 to 10. I have 1 activity and two layouts experiment begins. I have two layouts merg...
<p>try this and apply viewbinding</p> <pre><code> lateinit var runnable: Runnable private fun startSlider() { Handler(Looper.getMainLooper()).apply { var flag = 0 var index = 0 runnable = Runnable { if (flag == 0) { img_presenter.setImageResource(imgList[...
Android :switch between Layouts dynamically every 10 seconds
android|kotlin|android-layout|runnable
0
56
1
72,941,021
72,941,021
0
true
2022-07-11T14:37:05.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android :switch between Layouts dynamically every 10 seconds<p>android beginner here. any help is much appreciated .</p> <p>I am working on an app that can d...
72,942,309
How to use RegEx on Requests<p>I am trying to extract all the prices available for search term on ebay for Page 1. However I can't seem to be able to get the prices.</p> <pre><code>import re import requests search_result = requests.get('https://www.ebay.co.uk/sch/i.html?_from=R40&amp;_trksid=p2380057.m570.l1313&amp;_n...
<p>You don't get the results because the page is not static but it is dynamic. This means that the data is not present within the basic html code of the page, but is dynamically generated. For dynamic website scraping you should use <a href="https://selenium-python.readthedocs.io/" rel="nofollow noreferrer">Selenium</a...
How to use RegEx on Requests
python|regex|python-requests
-2
56
1
72,942,403
72,942,403
0
true
2022-07-11T17:15:50.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use RegEx on Requests<p>I am trying to extract all the prices available for search term on ebay for Page 1. However I can't seem to be able to get the...
72,934,625
Browsing H2 Database for WSO2 Streaming Integrator (WSO2 SI)<p>I am using WSO2 Streaming Integrator (WSO2 SI) with default deployment settings which is based on H2 database, but I am not able to find a way to browse H2 database from http://localhost:8082</p> <p>As I know, I have to configure it in deployment.yaml file ...
<p>You don't have to rely on the inbuild H2 browser to connect to the Local H2 DB. You can use a client like <a href="https://dbeaver.io/" rel="nofollow noreferrer">DBeaver</a> to connect to the DB. You can get the necessary paramerters from the datasource configurations.</p>
Browsing H2 Database for WSO2 Streaming Integrator (WSO2 SI)
wso2|h2|wso2-streaming-integrator
1
56
2
72,942,518
72,942,518
0
true
2022-07-11T06:43:08.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Browsing H2 Database for WSO2 Streaming Integrator (WSO2 SI)<p>I am using WSO2 Streaming Integrator (WSO2 SI) with default deployment settings which is based...
72,952,239
csv file not workinf properly<p>so I created a simple code to read a csv file in python 3.0 using pandas</p> <pre><code>import pandas as pd df = pd.read_csv('https://www.goodreads.com/review_porter/export/153331182/goodreads_export.csv', on_bad_lines= 'skip') print(df) </code></pre> <pre><code>and instead of the csv ...
<p>Thats because that link need you to be authenticated before you can access the csv file. Since you have not passed any authentication it just read the sign up page and displaying the HTML format.</p> <p>You can try this:</p> <pre><code>import requests response = requests.get(url, auth=(username, password), verify=Fa...
csv file not workinf properly
python|pandas|csv
1
56
1
72,952,471
72,952,471
0
true
2022-07-12T12:22:12.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: csv file not workinf properly<p>so I created a simple code to read a csv file in python 3.0 using pandas</p> <pre><code>import pandas as pd df = pd.read_csv...
72,951,553
Why does in my code json pop dont work? (In python)<p>Let me explain my problem!</p> <p>I code a Python Discord Bot and it saves the channel id and the owner id!</p> <p>And if the ticket got closed it need to pop ticket!</p> <p>My code looks so:</p> <pre class="lang-py prettyprint-override"><code>with open(&quot;data/t...
<p>First of all, your json script is missing a brace. It should be:</p> <pre><code>{ &quot;channel id 1&quot;: { &quot;author&quot;: 256820568024, &quot;claimed&quot;: null }, &quot;channel id 2&quot;: { &quot;author&quot;: 43251524366254, &quot;claimed&quot;: null } } </...
Why does in my code json pop dont work? (In python)
python|json|discord.py|pycord
-2
56
1
72,953,740
72,953,740
0
true
2022-07-12T11:26:05.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does in my code json pop dont work? (In python)<p>Let me explain my problem!</p> <p>I code a Python Discord Bot and it saves the channel id and the owner...
72,943,249
Error in UseMethod "predict" when running Random Forest model<p>Looking for feedback on the error below. I built a Random Forest classification model a couple years ago, and now I'm simply trying to run it again in rStudio on a new set of data. Hoping someone can educate me on the error.</p> <pre><code> #load librar...
<p>I was able to make that command work after reinstalling <strong>rtools</strong> and <strong>rlang</strong>. I also installed caret but I'm not sure if that necessary.</p> <p>At any rate, I think rtools was lacking or not found.</p>
Error in UseMethod "predict" when running Random Forest model
r|random-forest|predict
0
56
1
72,957,265
72,957,265
0
true
2022-07-11T18:44:36.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error in UseMethod "predict" when running Random Forest model<p>Looking for feedback on the error below. I built a Random Forest classification model a coupl...
72,912,794
How to change from WSDL reference when switching environments from dev to production, for example<p>My team is building an API which interfaces with another API with many endpoints. Our app is in .net core, so we've been using the connected services wizard for each reference. This means we had to specify the URI's for ...
<p>Extending ConfigureEndpoint for each connected service works. The path cannot not include the ?wsdl at the end. The extension code (for one of my files) is below.</p> <pre><code> public partial class CreateOrderPortTypeClient { const string uriSuffix = &quot;(last part of URI without ?wsdl)&quot;; ...
How to change from WSDL reference when switching environments from dev to production, for example
c#|.net|wpf|wsdl|service-reference
0
56
1
72,957,662
72,957,662
0
true
2022-07-08T14:19:08.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change from WSDL reference when switching environments from dev to production, for example<p>My team is building an API which interfaces with another ...
72,958,139
How to generate small lists from continous data list based on a condition such that new lists replicate continuity Peak-Trough-Peak pattern in them<pre><code>my_list = [{'Filename': '20211004T105041236.jpg', 'Speed': '0.1', 'Time': '2021-10-04T10:50:41.236Z'}, {'Filename': '20211004T105044302.jpg', 'Speed': '0.1...
<p>This is not a technically complicated problem. You just start gathering records into a sublist, and every time you hit 10.0, you start a new sublist.</p> <pre><code>from pprint import pprint my_list = [...] sublists = [[]] for row in my_list: if float(row['Speed']) &gt;= 10.0: if sublists[-1]: ...
How to generate small lists from continous data list based on a condition such that new lists replicate continuity Peak-Trough-Peak pattern in them
python|dataframe|machine-learning
-1
56
2
72,958,231
72,958,231
0
true
2022-07-12T20:41:22.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate small lists from continous data list based on a condition such that new lists replicate continuity Peak-Trough-Peak pattern in them<pre><code...
72,958,898
How can I see the json generated from Ktor?<p>I want to see the json result of the body but I have no idea how, I am recieving a 400 bad request and I am pretty sure the issue comes from <code>&quot;listOf(PostInvoiceResultInsideLineItems(&quot;API&quot;, 1, furiousInvoice.amount_inc_tax, &quot;1&quot;, &quot;FR_200&qu...
<p>You can install the <a href="https://ktor.io/docs/client-logging.html" rel="nofollow noreferrer">Logging</a> plugin with the <code>LogLevel.BODY</code> level to observe a serialized request body. Here is an example:</p> <pre><code>val client = HttpClient(Apache) { install(ContentNegotiation) { json() ...
How can I see the json generated from Ktor?
kotlin|ktor
0
56
1
72,961,616
72,961,616
0
true
2022-07-12T22:10:49.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I see the json generated from Ktor?<p>I want to see the json result of the body but I have no idea how, I am recieving a 400 bad request and I am pre...
72,928,585
FlatList does not show data and screen keeps loading<p>I'm trying to fetch documents from a collection in Firestore and show it through a FlatList. But it shows a loading circle (IDK what it is actually called)!</p> <p>I am using my own phone to test the app if it makes any difference. (I am quite new to this)</p> <p>H...
<p>I referenced the images incorrectly in the firebase. I used the path of the local storage where the images are stored rather than using the given URL of the image.</p>
FlatList does not show data and screen keeps loading
javascript|firebase|react-native|google-cloud-firestore|react-native-flatlist
2
56
1
72,965,760
72,965,760
0
true
2022-07-10T12:49:22.147Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: FlatList does not show data and screen keeps loading<p>I'm trying to fetch documents from a collection in Firestore and show it through a FlatList. But it sh...
72,966,465
How to filter pandas dataframe with more than 2 conditions?<p>I have a dataframe with multiple columns. I want to filter the dataframe based on two columns. For one column there is one condition and for the other column there are 3 conditions.</p> <p>This code for the one condition in each column works fine:</p> <pre><...
<pre><code>filtered_df = df[(df['col1'] == 'cond1') &amp; (df['col2'] == 'cond2) &amp; (df['col2'] == 'cond3) &amp; (df['col2'] == 'cond4)] </code></pre> <p>please be careful... in your code there are four condition that contradictory:</p> <p><code>col2</code> can not be <code>cond2</code> and <code>cond3</code> and <c...
How to filter pandas dataframe with more than 2 conditions?
python|pandas|dataframe
-2
56
3
72,966,598
72,966,598
0
true
2022-07-13T12:39:26.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to filter pandas dataframe with more than 2 conditions?<p>I have a dataframe with multiple columns. I want to filter the dataframe based on two columns. ...
72,966,166
Using JavaScript onclick function to change innerHTML to form field<p>I am trying to use the JavaScript onclick() function to change a piece of HTML to a Django Model Form field when clicked?</p> <p>Using the code below, I would expect that when the <code>{{ tasks.owner }}</code> is clicked, the html with id &quot;task...
<p>The error was coming for enclosing ``` {{ task_update_form.owner }}`` in &quot;&quot; and can be solved using backticks to create a template literal (<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/Ja...
Using JavaScript onclick function to change innerHTML to form field
javascript|html|django|django-models|django-forms
0
56
1
72,967,544
72,967,544
0
true
2022-07-13T12:17:28.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using JavaScript onclick function to change innerHTML to form field<p>I am trying to use the JavaScript onclick() function to change a piece of HTML to a Dja...
72,972,881
Missing libraries while installing MySQL on RHEL<p>I am trying to instlal mysql on RHEL and followed below steps :</p> <ol> <li><p>sudo yum localinstall <a href="https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm" rel="nofollow noreferrer">https://dev.mysql.com/get/mysql57-community-release-el7-9.noar...
<p>When I was installing MySQL5.7.31 from mysql-5.7.31-1.el7.x86_64.rpm-bundle.tar, I had the similar problem. I was using CentOS then.Try the following steps:(Note:Some of them are redundant, which can be skipped. But I haven't got round to the testing.) <br> 1.Uninstall mariadb libs:<br></p> <pre><code>yum remove mar...
Missing libraries while installing MySQL on RHEL
mysql
0
56
1
72,974,579
72,974,579
0
true
2022-07-13T21:34:13.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Missing libraries while installing MySQL on RHEL<p>I am trying to instlal mysql on RHEL and followed below steps :</p> <ol> <li><p>sudo yum localinstall <a h...
72,974,150
How to init a list?<p>I use List to store my data, but the compiler says &quot;Index was out of range. Must be non-negative and less than the size of the collection.&quot;</p> <p>how can I init the list like myvector3 = new Vector3[65];</p> <p>I use</p> <p>public Vector3[] myvector3;</p> <p>public Quaternion[] myQuater...
<p>You create the list variable with</p> <pre><code>public List&lt;Vector3&gt; myvector3; </code></pre> <p>but it's null after that, because you didn't assign it anything. You can make a new empty list later with</p> <pre><code>myvector3 = new List&lt;Vector3&gt;(); </code></pre> <p>and you can also give it a <em>capac...
How to init a list?
c#|unity3d
-1
56
2
72,974,653
72,974,653
0
true
2022-07-14T01:03:25.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to init a list?<p>I use List to store my data, but the compiler says &quot;Index was out of range. Must be non-negative and less than the size of the col...
72,977,739
How to remove backslash from exception message in SpringBoot?<p>I have this exception message:</p> <pre><code> public CityDto getCityByName(String name) throws DataNotFoundException { CityEntity cityEntity = cityRepository.findByName(name); if (cityEntity == null){ throw new DataNotFoundException(&quot;...
<p>do this <code>throw new DataNotFoundException(&quot;city with name '&quot; + name + &quot;' not found!&quot;)</code></p>
How to remove backslash from exception message in SpringBoot?
java|json|spring-mvc
0
56
2
72,977,819
72,977,819
0
true
2022-07-14T08:46:41.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove backslash from exception message in SpringBoot?<p>I have this exception message:</p> <pre><code> public CityDto getCityByName(String name) thro...
72,882,844
Oracle Database problem "Invalid PathException"<p>I am trying to connect to oracle java with jdbc but the problem ist that I got the error of invalid path!! it shows a gap in the url but I actually do not give a link to the java but a long oracleJdbcUrl, like this:</p> <pre><code>&quot;jdbc:oracle:thin:@&quot; + &quo...
<p>I could solve the problem with changing the Version of OJDBC to the older one! now I am using ojdbc8 and it works! it seems that was incompatible with something else!</p>
Oracle Database problem "Invalid PathException"
java|oracle|ojdbc
0
56
1
72,978,429
72,978,429
0
true
2022-07-06T11:30:30.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Oracle Database problem "Invalid PathException"<p>I am trying to connect to oracle java with jdbc but the problem ist that I got the error of invalid path!! ...
72,977,233
Ruby on Rails what is "say" method?<p>I was taking a look at the template file <a href="https://github.com/excid3" rel="nofollow noreferrer">@excid3</a> did for his great tool <a href="https://github.com/excid3/jumpstart" rel="nofollow noreferrer">Jumpstart</a> (the public one). Taking a look at the <a href="https://gi...
<p>This method is an instance method of the class <a href="https://rubygems.org/gems/thor/versions/0.19.1?locale=en" rel="nofollow noreferrer">Thor</a>.</p> <p>You can take a look to a clear example <a href="https://github.com/rails/thor/issues/526" rel="nofollow noreferrer">here</a>.</p> <p>How to use it standalone? W...
Ruby on Rails what is "say" method?
ruby-on-rails|ruby
1
56
1
72,979,310
72,979,310
0
true
2022-07-14T08:09:25.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ruby on Rails what is "say" method?<p>I was taking a look at the template file <a href="https://github.com/excid3" rel="nofollow noreferrer">@excid3</a> did ...
72,980,749
Grid view in asp is not showing in the webapp<p><strong>This is the Employee.aspx file</strong></p> <pre><code>&lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;Employee.aspx.cs&quot; Inherits=&quot;Azure_Migrated_App.Employee&quot; %&gt; &lt;!DOCTYPE html&gt; &lt;h...
<p>Hum, I would suggest you use the connection builder. If you create a setting, then it is automatic placed in web.config for you.</p> <p>So, say this:</p> <p><a href="https://i.stack.imgur.com/bzsIV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bzsIV.png" alt="enter image description here" /></a...
Grid view in asp is not showing in the webapp
html|sql|asp.net
0
56
1
72,984,182
72,984,182
0
true
2022-07-14T12:45:44.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Grid view in asp is not showing in the webapp<p><strong>This is the Employee.aspx file</strong></p> <pre><code>&lt;%@ Page Language=&quot;C#&quot; AutoEventW...
72,987,374
<router-outlet> is displaying and entire page even when not called<p>I'm working on a blog project and am inexperienced when it comes to angular routing, however, I am pretty sure this is not supposed to happen. When I put my in the home component or home.component.html, it displays the page again so that I have like ...
<p>You have your <code>AppComponent</code> Component listed as your default <code>''</code> route. So it basically renders the <code>AppComponent</code> inside itself, thus repeating the <code>AppHome</code> Component.</p> <p>To mitigate this, you could delete the <code>&lt;app-home&gt;</code> component from your <code...
<router-outlet> is displaying and entire page even when not called
angular
0
56
1
72,987,485
72,987,485
0
true
2022-07-14T22:44:31.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: <router-outlet> is displaying and entire page even when not called<p>I'm working on a blog project and am inexperienced when it comes to angular routing, how...
72,990,155
How to add a Vertical line at the end of a percentage bar HTML/Javascript<p>I am using the following HTML/Javascipt code to make the classic percentage bar.</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...
<p>For the vertical bar I used an added div nested inside the #Progress_Status container. It's styled to be absolute positioned and to change its offset in % in sync with the progress bar width.</p> <p>For it to work, its container was set to <code>position:relative</code> as the reference frame.</p> <p><div class="sni...
How to add a Vertical line at the end of a percentage bar HTML/Javascript
javascript|html
0
56
2
72,990,383
72,990,383
0
true
2022-07-15T07:01:47.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add a Vertical line at the end of a percentage bar HTML/Javascript<p>I am using the following HTML/Javascipt code to make the classic percentage bar.<...
72,978,695
Brightness of image on canvas Iphone 13 pro<p>I'm trying to get image from phone camera to canvas to save it later.</p> <p>My problem is when i use iPhone 13 Pro then the image on canvas is brighter than it should be. This happens only when i draw image on iPhone 13 Pro, other ios and android phones do not have this pr...
<p>It was problem with <code>width: 1920, height: 1020,</code> params in getUserMedia. I deleted it and it works fine now.</p>
Brightness of image on canvas Iphone 13 pro
javascript|html|ios|iphone|webrtc
-1
56
1
72,994,532
72,994,532
0
true
2022-07-14T10:01:01.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Brightness of image on canvas Iphone 13 pro<p>I'm trying to get image from phone camera to canvas to save it later.</p> <p>My problem is when i use iPhone 13...
72,996,399
Cannot Show BehaviorSubject Variable in view in Angular<p>I have created this service</p> <blockquote> <p>Service File :</p> </blockquote> <pre><code>InfoDetails=new BehaviorSubject&lt;any&gt;(''); getsInfo(data: any): Observable&lt;any&gt; { return this.http.post&lt;any&gt;(`${environment.url}/Info`, data) } </co...
<p>When you want to render in HTML, you can just do the following.</p> <p>Add a getter for the Subject. But I strongly advice, you convert the subject to an observable as shown below.</p> <pre><code>import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; @Injectable() export cla...
Cannot Show BehaviorSubject Variable in view in Angular
angular|typescript|observable|behaviorsubject
-1
56
1
72,996,576
72,996,576
0
true
2022-07-15T15:34:27.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot Show BehaviorSubject Variable in view in Angular<p>I have created this service</p> <blockquote> <p>Service File :</p> </blockquote> <pre><code>InfoDet...
72,974,735
Blazor with LinkedIn OAuth 2 "The redirect_uri does not match the registered value" or "Err too many redirections"<p>I'm trying to implement LinkedIn Sign In OAuth 2 with Blazor Server Side.</p> <p>But I have a problem.</p> <p>When I declare the authorized redirect URLs for my app as &quot;https://localhost:7167/signin...
<p>Ok, there is a weird behavior with Blazor routing. Blazor add the callback path to the current path. There is nothing to do.</p> <p>I just add a controller with routing, and it works. The callback path is added to base uri.</p>
Blazor with LinkedIn OAuth 2 "The redirect_uri does not match the registered value" or "Err too many redirections"
.net-core|oauth-2.0|blazor|linkedin|blazor-server-side
0
56
1
72,997,165
72,997,165
0
true
2022-07-14T03:03:47.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Blazor with LinkedIn OAuth 2 "The redirect_uri does not match the registered value" or "Err too many redirections"<p>I'm trying to implement LinkedIn Sign In...
73,001,695
How to order in SQL by name with latest id?<p>I have a problem. I have big data table with 300+ users (as <code>garazas_id</code>) for every user I have multiple rows created over the past 3 years. I will order it by <code>garazas_id</code> and will see only record with latest id for every row (or with latest date it w...
<p>It seems you may be using MySQ, the following should work in all versions of that</p> <pre><code>select ea.* from `elektr_apmaks` as ea inner join ( SELECT max(id) as id , garazas_id FROM `elektr_apmaks` GROUP BY garazas_id ) as mx on ea.id = mx.id ORDER BY garazas_id </co...
How to order in SQL by name with latest id?
sql|select
0
56
2
73,001,813
73,001,813
0
true
2022-07-16T05:12:36.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to order in SQL by name with latest id?<p>I have a problem. I have big data table with 300+ users (as <code>garazas_id</code>) for every user I have mult...
72,994,462
XML Validation against XSD 1.1 gives error with XERCES library<p>I need to validate XML files against XSD 1.1 schema. My question is: Does the Xerces library supports now XSD 1.1?</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;xerces&lt;/groupId&gt; &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt; ...
<p>The blog article <a href="https://blog.adamretter.org.uk/xerces-xsd11-maven/" rel="nofollow noreferrer">https://blog.adamretter.org.uk/xerces-xsd11-maven/</a> describes the dilemma and explains that the author set up <a href="https://search.maven.org/artifact/org.exist-db.thirdparty.xerces/xercesImpl/2.12.2/jar" rel...
XML Validation against XSD 1.1 gives error with XERCES library
xml|validation|xsd-1.1|xerces2-j
1
56
1
73,002,569
73,002,569
0
true
2022-07-15T13:05:32.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XML Validation against XSD 1.1 gives error with XERCES library<p>I need to validate XML files against XSD 1.1 schema. My question is: Does the Xerces library...