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,859,557
Typing dataclass that can only take enum values<p>I have a dataclass that can take values that are part of an enum.</p> <pre class="lang-py prettyprint-override"><code>class MyEnum(Enum): A = &quot;valueA&quot; B = &quot;valueB&quot; @dataclass class MyDataclass: value: MyEnum </code></pre> <p>When creatin...
<p>Your class is <em>typed</em> correctly if you really want <code>MyDataclass().value</code> to be a <code>MyEnum</code> value. The problem is that <em>you</em>, as the person instantiating <code>MyDataclass</code>, are responsible for actually passing a value of type <code>MyEnum</code> to <code>__init__</code>.</p> ...
Typing dataclass that can only take enum values
python|enums|python-typing|typing
2
81
1
72,861,037
72,861,037
3
true
2022-07-04T16:13:56.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typing dataclass that can only take enum values<p>I have a dataclass that can take values that are part of an enum.</p> <pre class="lang-py prettyprint-overr...
72,866,064
Insert multiple rows, but for each row check if it does not already exist<p>I am looking to insert multiple rows if they don't <code>EXIST</code> in the target table. But I'm not sure how do this with the following code:</p> <pre><code>INSERT INTO sales.promotions( promotion_name, discount, start_date, ...
<p>It is possible to use <a href="https://docs.microsoft.com/en-us/sql/t-sql/queries/table-value-constructor-transact-sql?view=sql-server-ver16" rel="nofollow noreferrer">table value constructor</a> with <code>exists</code>:</p> <pre><code>INSERT INTO sales.promotions(promotion_name, discount, start_date, expired_date)...
Insert multiple rows, but for each row check if it does not already exist
sql|sql-server|sql-insert
0
81
1
72,866,325
72,866,325
3
true
2022-07-05T08:11:51.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Insert multiple rows, but for each row check if it does not already exist<p>I am looking to insert multiple rows if they don't <code>EXIST</code> in the targ...
72,899,176
SQL Queries Count with a condition<p>I'm using SQL Queries for the first time and learning it. I've got a table like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>yearName</th> <th>productcompanyID</th> </tr> </thead> <tbody> <tr> <td>2001</td> <td>ID 1</td> </tr> <tr> <td>2001</td>...
<p>You actually need to combine count and distinct, something like this:</p> <pre><code>select productcompanyID, count(distinct yearName) as distinctYears from mydatabase group by productcompanyID </code></pre>
SQL Queries Count with a condition
sql|sql-server
2
81
2
72,899,224
72,899,224
3
true
2022-07-07T13:59:20.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Queries Count with a condition<p>I'm using SQL Queries for the first time and learning it. I've got a table like this:</p> <div class="s-table-container"...
72,919,058
pd.merge multiple dataframes with same column name on one specific column<p>I have multiple data frames with different columns names that I would like to merge, but they have the same column name for one specific column, which is called <code>user</code></p> <p>df1</p> <pre><code> user books groceries 0 ...
<p>You can use <a href="https://docs.python.org/3/library/functools.html" rel="nofollow noreferrer">functools</a>:</p> <pre><code>import functools dfs = [df1[['user', 'books']], df2[['user', 'animal']], df3[['user', 'place']]] df_final = functools.reduce(lambda left, right: pd.merge(left,right,on='user'), dfs) print(d...
pd.merge multiple dataframes with same column name on one specific column
python|python-3.x|pandas|dataframe
1
81
3
72,919,104
72,919,104
3
true
2022-07-09T04:58:35.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pd.merge multiple dataframes with same column name on one specific column<p>I have multiple data frames with different columns names that I would like to mer...
72,970,394
why annotating with @Configuration and @EnableWebSecurity at the same time<p>I'm reading Spring in Action 5th Edition. in part 4 (securing spring), he wanted to overide the security autoconfigured by spring boot... so he created a config class called it SecurityConfig as follow:</p> <pre><code>@Configuration @EnableWeb...
<p>There is no need to annotate your <code>@EnableWebSecurity</code> class with <code>@Configuration</code> since <a href="https://github.com/spring-projects/spring-security/commit/3171cc4364d953d880e4f5ca0f696e0af383d7b8#diff-80d0bdc1f06d2c405ab60d14c26a7c9039c1f8c760246e3b23594dada42c3ee8" rel="nofollow noreferrer">t...
why annotating with @Configuration and @EnableWebSecurity at the same time
java|spring|spring-boot|spring-security|java-annotations
0
81
1
72,970,844
72,970,844
3
true
2022-07-13T17:31:59.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why annotating with @Configuration and @EnableWebSecurity at the same time<p>I'm reading Spring in Action 5th Edition. in part 4 (securing spring), he wanted...
72,943,039
return JSON with children postgresql<p>I have a table in Postgres that returns this data<a href="https://i.stack.imgur.com/Af6PS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Af6PS.png" alt="enter image description here" /></a></p> <p>I would like it to be returned to me in a Json ordered with its ...
<p>If your table data is at most two levels deep, then you only need to use several non-recursive subqueries to produce the desired result; however, if your data is <code>n</code> levels deep, you will need to use a recursive <code>cte</code> to build up the nesting:</p> <pre class="lang-sql prettyprint-override"><code...
return JSON with children postgresql
sql|json|typescript|postgresql
2
81
2
72,944,633
72,944,633
3
true
2022-07-11T18:24:58.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: return JSON with children postgresql<p>I have a table in Postgres that returns this data<a href="https://i.stack.imgur.com/Af6PS.png" rel="nofollow noreferre...
72,955,139
Error when going from dataframe to excel file in Julia<p>I am trying to export a dataframe to xlsx</p> <pre><code>df |&gt; XLSX.writexlsx(&quot;df.xlsx&quot;) </code></pre> <p>and am getting this error:</p> <pre><code>ERROR: Unsupported datatype String31 for writing data to Excel file. Supported data types are Union{Mi...
<p>It seems that currently this is a limitation of XSLX.jl. I have opened <a href="https://github.com/felipenoris/XLSX.jl/issues/201" rel="nofollow noreferrer">an issue</a> proposing to fix it.</p> <p>I assume your <code>df</code> is not huge, in which case the following solution should work for you:</p> <pre><code>to_...
Error when going from dataframe to excel file in Julia
excel|dataframe|julia|xlsx
2
81
2
72,955,640
72,955,640
3
true
2022-07-12T15:54:20.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error when going from dataframe to excel file in Julia<p>I am trying to export a dataframe to xlsx</p> <pre><code>df |&gt; XLSX.writexlsx(&quot;df.xlsx&quot;...
72,832,718
Find and detect a pattern in a string<p>I'm looking for a function that detects repeated patterns on a string, for example, if the input is:</p> <pre class="lang-js prettyprint-override"><code>var string = &quot;HelloHelloHelloHelloHelloHello&quot;; var string2 = &quot;Hello this is a repeated pattern Hello this is a r...
<p>A regex that would work is the following:</p> <pre><code>^(.+?)( ?\1)+$ </code></pre> <p>This will match:</p> <ul> <li><code>^</code>: start of string</li> <li><code>(.+?)</code>: the least amount of characters (at least one), followed by</li> <li><code>( ?\1)+</code>: an optional space and the very same characters ...
Find and detect a pattern in a string
javascript|regex|string
1
81
1
72,832,783
72,832,783
3
true
2022-07-01T17:20:30.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find and detect a pattern in a string<p>I'm looking for a function that detects repeated patterns on a string, for example, if the input is:</p> <pre class="...
72,889,377
How to cast integer as tuple of bool<p>I have an integer, and would like to cast it as a tuple of boolean-likes— <code>{0, 1}</code> specifically. The way which comes to mind is <code>tuple(int(b) for b in bin(my_int)[2:])</code>, but feels off. What is the idiomatic/canonical way perform this?</p> <p>Edit: for clarity...
<p>I don't think your way is bad, but I found another one:</p> <pre class="lang-py prettyprint-override"><code>def to_binary(num): result = [] while num &gt;= 1: result.insert(0, num%2) num//=2 return result print(to_binary(5)) &gt;&gt;&gt; [1, 0, 1] </code></pre> <p>Or you can add via appen...
How to cast integer as tuple of bool
python
2
81
1
72,889,551
72,889,551
3
true
2022-07-06T20:15:10.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to cast integer as tuple of bool<p>I have an integer, and would like to cast it as a tuple of boolean-likes— <code>{0, 1}</code> specifically. The way wh...
72,774,210
sprintf_s problems. It worked on Windows, but not on Xcode<pre><code>sprintf_s(colorBuffer, 255, &quot;%.2X&quot;, getAlpha()); result.append(colorBuffer); </code></pre> <p>The error is:</p> <blockquote> <p>Use of undeclared identifier 'sprintf_s'</p> </blockquote>
<p><code>sprintf_s</code> is part annex K of the C11 standard, titled <em>&quot;bounds-checking interfaces&quot;</em>. Annex K is optional.</p> <p>Annex K hasn't been successful. <a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm" rel="nofollow noreferrer">N1967 Field Experience With Annex K — Bounds C...
sprintf_s problems. It worked on Windows, but not on Xcode
c++|xcode|api
0
81
1
72,778,221
72,778,221
3
true
2022-06-27T14:56:55.260Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sprintf_s problems. It worked on Windows, but not on Xcode<pre><code>sprintf_s(colorBuffer, 255, &quot;%.2X&quot;, getAlpha()); result.append(colorBuffer); <...
72,967,220
How to write a wrapper around a templated class that modifies the template parameters in C++?<p>We have a templated class <code>A</code> and derived classes <code>A1</code> and <code>A2</code>:</p> <pre><code>template&lt;typename T&gt; class A { }; template&lt;typename T&gt; class A1: public A&lt;T&gt;{ }; template&l...
<p>You do not need to explicitly state <code>int</code> as argument. The template and its argument can be dissected from a given instantiation by partial specialization (provided that all derived have same number of arguments). The fact that there is a base class <code>A</code> is actually not that relevant when the de...
How to write a wrapper around a templated class that modifies the template parameters in C++?
c++|generics|design-patterns
0
81
2
72,967,387
72,967,387
3
true
2022-07-13T13:33:24.587Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to write a wrapper around a templated class that modifies the template parameters in C++?<p>We have a templated class <code>A</code> and derived classes ...
72,979,574
Check if a string representing float/unsigned int is too big<p>I have a file containing strings representing <code>float</code> and <code>uint64_t</code> values.</p> <p>I know exactly which string contains <code>float</code> values and which contains <code>uint64_t</code> values - that is not the problem I'm facing.</p...
<p><code>strtoull</code> provides an indication that the value is out of range. Consider this code:</p> <pre><code>#include &lt;errno.h&gt; … errno = 0; // Set error code to zero before call. unsigned long long x = strtoull(t, &amp;v, 10); if (errno == ERANGE) { // Handle out-of-range error. } </code></pre> <p>This...
Check if a string representing float/unsigned int is too big
c|strtoull
1
81
3
72,979,828
72,979,828
3
true
2022-07-14T11:11:54.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if a string representing float/unsigned int is too big<p>I have a file containing strings representing <code>float</code> and <code>uint64_t</code> val...
72,770,505
Deserialization JSON object vs. array<p>I get the following JSON-Message as a return from a REST-API:</p> <pre><code>{ &quot;result&quot;:{ &quot;CONTACT&quot;:[ 102565, 523652 ], &quot;COMPANY&quot;:[ 30302 ] } } </code></pre> <p>for deserializing I use Newtons...
<p>I don't think that you need any converters, it would be enough just to add a json constructor to your class</p> <pre><code>public class DuplicateResponseBody { [JsonProperty(&quot;result&quot;)] public ContactCompany Result { get; set; } [Newtonsoft.Json.JsonConstructor] public DuplicateRespon...
Deserialization JSON object vs. array
c#|json|json.net|deserialization
3
81
2
72,771,979
72,771,979
4
true
2022-06-27T10:22:13.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Deserialization JSON object vs. array<p>I get the following JSON-Message as a return from a REST-API:</p> <pre><code>{ &quot;result&quot;:{ &quot;CO...
73,006,046
Check if type implements interface directly. Not from inheritance<p>From list of types A, B, C, ANotState, BNotState I want to get A, B,C that are marked with the interface. But if do get interfaces from ANotState or BNotState I've got only isState which is inherited from C (from ANotState in BNotState case).</p> <p>Is...
<p>There's a solution which <em>partially</em> works. You can retrieve the interfaces implemented by the current type, then the interfaces implemented by its parent type, and then subtract those two sets. Like this:</p> <pre><code>public HashSet&lt;Type&gt; GetDirectlyImplementedInterfaces&lt;T&gt;() { // interface...
Check if type implements interface directly. Not from inheritance
c#|inheritance|interface
1
81
2
73,007,013
73,007,013
4
true
2022-07-16T16:48:12.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if type implements interface directly. Not from inheritance<p>From list of types A, B, C, ANotState, BNotState I want to get A, B,C that are marked wit...
73,027,739
.onChange(of: ) for multiple @State properties at once?<p>Is there a way I can use <code>.onChange</code> to detect the change of multiple <code>@State</code> properties at once? I know I could just chain 2 <code>.onChange</code> modifiers but it would be better if I could just detect all at once and run some code.</p>...
<p>For this case here is the simplest I think</p> <pre><code>.onChange(of: width + height) { _ in print(&quot;Changed&quot;) } </code></pre> <p><strong>Update:</strong> as I wrote above is 'simplest' (and for specific scenarios can be enough), but of course other variants, &quot;more smart/heavy/generic/etc&quot;, ...
.onChange(of: ) for multiple @State properties at once?
ios|swift|swiftui
4
81
2
73,027,768
73,027,768
4
true
2022-07-18T19:38:04.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: .onChange(of: ) for multiple @State properties at once?<p>Is there a way I can use <code>.onChange</code> to detect the change of multiple <code>@State</code...
72,957,264
SQL Server : GETDATE not returning today's date<p>Below is my query. Everything is working except for the <code>GETDATE</code> function in the <code>WHERE</code> clause. It won't return today's date if I put the date in there like this: 7/12/22. It is a <code>DATETIME</code> column in the backend. Thanks in advance.</p...
<p>Well, when you say <code>SELECT GETDATE();</code> what do you see? There is a time component there too, so if the data in the table is <code>2022-07-12 15:12</code> and you run the query at <code>2022-07-12 15:13</code>, that's not a match.</p> <p>If you want data from today, you need a range query:</p> <pre><code>W...
SQL Server : GETDATE not returning today's date
sql|sql-server|tsql
-2
81
2
72,957,289
72,957,289
4
true
2022-07-12T19:08:56.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Server : GETDATE not returning today's date<p>Below is my query. Everything is working except for the <code>GETDATE</code> function in the <code>WHERE</c...
72,897,214
Problem with showing/outputting Nat type in a function that converts integers to Nats<p>I am currently learning about types in Haskell, and a given example in the book is to define the data of Nat by two constructors, one for zero, and another one for a constructor. As depicted here:</p> <pre><code>data Nat = Zero| Suc...
<blockquote> <p>“No instance for <code>(Show T)</code>” means “I don't know how values of type <code>T</code> should be converted to string so I can print them”. Often, declaring the type <code>T</code> with <code>... deriving (Show)</code> is enough to provide a basic conversion. – <a href="https://stackoverflow.com/u...
Problem with showing/outputting Nat type in a function that converts integers to Nats
function|haskell|types|error-handling
1
81
1
72,897,595
72,897,595
4
true
2022-07-07T11:43:45.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem with showing/outputting Nat type in a function that converts integers to Nats<p>I am currently learning about types in Haskell, and a given example i...
72,990,775
defgeneric with optional and keyword arguments<p>I want to define a generic function in CL that takes an optional and a keyword argument both of which have a default value. I tried</p> <pre><code>(defgeneric read-one (buffer &amp;optional (sz 1) &amp;key (signed '())) </code></pre> <p>but this throws Invalid &amp;OPTI...
<p>afaik you can't provide defaults in defgeneric. You would have to do this in the concrete implementation (<code>defmethod</code>)</p> <pre><code>(defgeneric read-one (buffer &amp;optional sz &amp;key signed)) (defmethod read-one (buffer &amp;optional (sz 1) &amp;key (signed '())) (format t &quot;~a, ~a, ~a~%&quot...
defgeneric with optional and keyword arguments
common-lisp|clos
2
81
2
72,992,262
72,992,262
5
true
2022-07-15T07:55:41.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: defgeneric with optional and keyword arguments<p>I want to define a generic function in CL that takes an optional and a keyword argument both of which have a...
72,966,577
Generic way to make a template on nested typename<p>Motivation:</p> <p>Given a class hierarchy (and using CRTP technique with mixin tp. classes, but it is omitted here for the sake of simplicity), I would like to generically address a nested type with a known identifier, but possibly with &quot;unknown&quot; parent cla...
<p>You can't pass names around and look up types based on them without writing entire libraries or using compile-time reflection (which looks like <a href="/questions/tagged/c%2b%2b26" class="post-tag" title="show questions tagged &#39;c++26&#39;" rel="tag">c++26</a> at this point).</p> <p>But you want to be able to pa...
Generic way to make a template on nested typename
c++|templates|c++17
2
81
1
72,967,845
72,967,845
5
true
2022-07-13T12:46:49.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generic way to make a template on nested typename<p>Motivation:</p> <p>Given a class hierarchy (and using CRTP technique with mixin tp. classes, but it is om...
72,848,176
SQL Server Split using XML - illegal name character<p>I am using the following to spilt comma separated string into columns (SQL Server 2014):</p> <pre><code>function [dbo].[splitString](@input Varchar(max), @Splitter Varchar(99)) returns table as Return SELECT Split.a.value('.', 'NVARCHAR(max)') AS Data FROM (...
<p>Please try the following solution.</p> <p>Notable points:</p> <ul> <li><em>CData</em> section protects against XML entities like ampersand and the like.</li> <li><code>text()</code> inside <code>.nodes()</code> method is for performance reasons.</li> <li><code>TRY_CAST()</code> will return NULL, but will not error o...
SQL Server Split using XML - illegal name character
sql-server|split
0
81
1
72,848,654
72,848,654
5
true
2022-07-03T16:28:31.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Server Split using XML - illegal name character<p>I am using the following to spilt comma separated string into columns (SQL Server 2014):</p> <pre><code...
72,924,612
Is it possible to access objects from a method which have just raised an exception?<p>E.g. this code:</p> <pre><code>def foo(): x = 5 raise def bar(): try: foo() except: # access x here </code></pre> <p>is it possible to access x somehow? Thanks.</p>
<p>Depending on your use case, the more sensible approach would be to create a custom exception and give it the data:</p> <pre class="lang-py prettyprint-override"><code>class MyException(Exception): def __init__(self, x, *args, **kwargs): super().__init__(*args, **kwargs) self.x = x def foo(): ...
Is it possible to access objects from a method which have just raised an exception?
python|exception
0
81
2
72,924,736
72,924,736
5
true
2022-07-09T21:01:19.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to access objects from a method which have just raised an exception?<p>E.g. this code:</p> <pre><code>def foo(): x = 5 raise def bar(...
72,851,920
Parameters on LIMIT and OFFSET not working<p>Im trying to implement pagination by parameterized my limit from request URL unfortunately I'm having error.</p> <p><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''25'' at line 1</c...
<p>The <code>limit</code> parameter is being passed as a string by default, whereas the database requires an integer value. Try specifying the type:</p> <pre><code>queryExecute(&quot;SELECT * FROM TABLE_NAME LIMIT :limit&quot;,{limit:{value:rc.limit,sqltype:&quot;integer&quot;}}); </code></pre>
Parameters on LIMIT and OFFSET not working
coldfusion|lucee|coldbox
3
81
1
72,852,635
72,852,635
7
true
2022-07-04T04:55:35.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Parameters on LIMIT and OFFSET not working<p>Im trying to implement pagination by parameterized my limit from request URL unfortunately I'm having error.</p>...
72,960,537
Calling Method/Function outside a Class but on the same namespace in c++/cli<p>I have a very simple and yet complicated (atleast for me) question on how to call a method/function outside a class but on a same namespace in c++/cli.</p> <p>I know that you need to create an instance of an object before you can call a meth...
<p><strong>There are 2 issues in your code:</strong></p> <ol> <li>Missing <code>;</code> at the end of the definition for <code>ref class MyClass</code>.</li> <li><code>Register()</code> should be defined (or at least declared) before calling it.</li> </ol> <p><strong>Fixed version:</strong></p> <pre><code>namespace Ca...
Calling Method/Function outside a Class but on the same namespace in c++/cli
visual-c++|c++-cli
-1
81
1
72,961,031
72,961,031
-2
true
2022-07-13T03:16:53.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calling Method/Function outside a Class but on the same namespace in c++/cli<p>I have a very simple and yet complicated (atleast for me) question on how to c...
72,379,870
Serenity + Maven Failsafe ignores tests and adds @Manual tag on them<p>So basically my problem is Serenity with Cucumber sometimes 'ignores' results of tests. Tests seem to be executed on the report, but still result is ignored. Also, on the report, it shows @Manual tag is added, but it is not added in the feature file...
<p>The problem seems to be in the @manual tag, probably a bug in the framework. It is fixed by adding 'and not @manual' when executing tests.</p>
Serenity + Maven Failsafe ignores tests and adds @Manual tag on them
java|maven|cucumber|maven-failsafe-plugin|cucumber-serenity
0
82
1
72,700,181
72,700,181
0
true
2022-05-25T14:50:31.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Serenity + Maven Failsafe ignores tests and adds @Manual tag on them<p>So basically my problem is Serenity with Cucumber sometimes 'ignores' results of tests...
72,776,530
RxJS finalize operator vs tap({ finalize: () => {} })<p>Is there any difference between A and B? Are there any cases where one would behave differently than the other?</p> <p><strong>A)</strong></p> <pre><code>observableHere .pipe( finalize(() =&gt; { // Do stuff here }) ) </code></p...
<p>Tap lets you hook into a bunch of events on the source observable</p> <pre class="lang-ts prettyprint-override"><code>interface TapObserver&lt;T&gt;: { next: (value: T) =&gt; void; error: (err: any) =&gt; void; complete: () =&gt; void; subscribe: () =&gt; void; unsubscribe: () =&gt; void; finalize:...
RxJS finalize operator vs tap({ finalize: () => {} })
rxjs|tap|finalize
0
82
2
72,777,035
72,777,035
0
true
2022-06-27T18:01:30.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: RxJS finalize operator vs tap({ finalize: () => {} })<p>Is there any difference between A and B? Are there any cases where one would behave differently than ...
72,775,940
How to denoise (noise removing) from image without losing the scale (original range of values) of pxiel<p>I'm trying to remove noise from the image, a DICOM image, the range of pixel value in this type of image is between (-1000, 30000), I want to keep this range after the noise removal, for further calculation (such a...
<p>If you have filtering functions that work either in the 16 bits unsigned range (0-65535), or in the 0-1 range, floating-point (single precision), you can rescale the input values to match the requirements of the function. And after filtering, revert to the desired range.</p> <p>In these two cases, there will be litt...
How to denoise (noise removing) from image without losing the scale (original range of values) of pxiel
python|image-processing|noise|noise-reduction
0
82
1
72,778,032
72,778,032
0
true
2022-06-27T17:11:09.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to denoise (noise removing) from image without losing the scale (original range of values) of pxiel<p>I'm trying to remove noise from the image, a DICOM ...
72,784,637
Material UI define in themes tabs indicatorColor and textColor<p>I have a Tabs component:</p> <p>import Tabs from '@mui/material/Tabs';</p> <pre><code>&lt;Tabs value={value} indicatorColor=&quot;secondary&quot; textColor=&quot;secondary&quot; onChange={handleChange} aria-label=&quot;status window tabs&quot; style...
<p>For a complete styling solution for styling the <code>Tabs</code> and <code>Tab</code> components for the <code>selected</code> indicator, <code>default</code> colour, <code>hover</code>, and <code>selected</code> colour, You should be able to do it in this way in your components object in your theme:</p> <pre><cod...
Material UI define in themes tabs indicatorColor and textColor
reactjs|material-ui|themes
0
82
2
72,785,837
72,785,837
0
true
2022-06-28T10:16:48.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Material UI define in themes tabs indicatorColor and textColor<p>I have a Tabs component:</p> <p>import Tabs from '@mui/material/Tabs';</p> <pre><code>&lt;Ta...
72,791,119
firestore delete a specific document using Java<p>Connected to the Firestore database using below code,</p> <pre><code>Query query = dbFirestore.collection(&quot;collectionName&quot;).whereEqualTo(&quot;columnName ==&quot;,XXX); ApiFuture&lt;QuerySnapshot&gt; apiFutureResults = query.get(); </code></pre> <p>From ApiFut...
<p>To delete the list of documents one by one, you can use the delete() function as in the following example:</p> <pre><code>// [START firestore_data_delete_doc] // asynchronously delete a document ApiFuture&lt;WriteResult&gt; writeResult = db.collection(&quot;cities&quot;).document(&quot;DC&quot;).delete(); // ... ...
firestore delete a specific document using Java
java|firebase|firebase-realtime-database|google-cloud-firestore
0
82
1
72,805,682
72,805,682
0
true
2022-06-28T17:55:58.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: firestore delete a specific document using Java<p>Connected to the Firestore database using below code,</p> <pre><code>Query query = dbFirestore.collection(&...
72,779,887
what is equivalent with sequelize-auto in spring framework?<p>I want to implement database schema work in mysqlworkbench and sync the database model to spring framework with JPA. I did the same when I made server side application with Node.js. by using sequelize-auto as below command.</p> <pre><code>sequelize-auto -h &...
<p>You can find Hibernate Tools here:</p> <p><a href="https://github.com/hibernate/hibernate-tools" rel="nofollow noreferrer">https://github.com/hibernate/hibernate-tools</a></p>
what is equivalent with sequelize-auto in spring framework?
java|spring|spring-boot|jpa|sequelize-auto
0
82
1
72,815,609
72,815,609
0
true
2022-06-28T01:48:17.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: what is equivalent with sequelize-auto in spring framework?<p>I want to implement database schema work in mysqlworkbench and sync the database model to sprin...
72,823,688
How to turn date values in a column into multiple columns of dates<p>I need to unpivot this table using T-SQL in SSMS. I don't need to aggregate anything and I am not able to predict the update dates for each ticket. I am using <code>row_number() over partition by</code> to force the sort in the first table and I need ...
<pre><code>SELECT ticket, [dt1], [dt2], [dt3] FROM (SELECT ticket, Concat('DT', rownum) AS Col, updated FROM TEST) Src PIVOT ( Max(updated) FOR col IN ( [DT1], [DT2], [DT3] ) ) Pvt </...
How to turn date values in a column into multiple columns of dates
sql-server|pivot
-1
82
1
72,824,370
72,824,370
0
true
2022-07-01T02:01:38.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to turn date values in a column into multiple columns of dates<p>I need to unpivot this table using T-SQL in SSMS. I don't need to aggregate anything and...
72,837,210
How do I add a legend to a scatter plot on matplotlib (the points are colour coded according to an array of 0s and 1s)?<p>I am working in Python 3 Jupyter Notebook. I have a 3-column table (price, size and view). I have created a scatter plot of &quot;price&quot; against &quot;size&quot; but I colour coded the dots acc...
<p>To do what you need, you will need to assign the view - 0 or 1 to a color, so that the right color is mapped. This can be done using map. The handle for the legend will need to have the custom text added, so that the blue and red colors are assigned and show with the correct labels. I have used random numbers as dat...
How do I add a legend to a scatter plot on matplotlib (the points are colour coded according to an array of 0s and 1s)?
python|matplotlib|legend
0
82
1
72,838,219
72,838,219
0
true
2022-07-02T07:17:18.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I add a legend to a scatter plot on matplotlib (the points are colour coded according to an array of 0s and 1s)?<p>I am working in Python 3 Jupyter No...
72,819,453
Check if record has inactivity in last 4 hours<p>Below is my scenario :</p> <ul> <li>Case gets created in salesforce using Email-To-Case and default owner is assigned as Queue.</li> <li>Now if case stays with Queue and does not get assigned to any user (Meaning inactivity on that record) for 4 hours, I need to send an...
<p>Just make a record trigger flow to execute after 4 hours after creation under your conditions. Then set a checkbox to true and use that as your alarm to fire your logic. Or even better yet, not do the checkbox at all and just fire the email. should be like 2 or 3 nodes altogether. no code</p>
Check if record has inactivity in last 4 hours
salesforce|apex|soql|salesforce-service-cloud
-1
82
1
72,841,130
72,841,130
0
true
2022-06-30T16:54:14.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if record has inactivity in last 4 hours<p>Below is my scenario :</p> <ul> <li>Case gets created in salesforce using Email-To-Case and default owner is...
72,847,061
How to convert multiple binary columns into a single character column?<p>I would like to convert data frame df1 into data frame df2.</p> <pre><code>id &lt;- c(1,2,3) outcome_1 &lt;- c(1,0,1) outcome_2 &lt;- c(1,1,0) df1 &lt;- data.frame(id,outcome_1,outcome_2) </code></pre> <pre><code>id &lt;- c(1,2,3) outcome &lt;- c...
<p>Here is one more <code>tidyverse</code> approach:</p> <pre><code>library(dplyr) library(tidyr) df1 %&gt;% mutate(across(-id, ~case_when(. == 1 ~ cur_column()), .names = 'new_{col}'), .keep=&quot;unused&quot;) %&gt;% unite(outcome, starts_with('new'), na.rm = TRUE, sep = ', ') %&gt;% mutate(outcome = gsub('...
How to convert multiple binary columns into a single character column?
r
2
82
5
72,847,418
72,847,418
0
true
2022-07-03T13:55:26.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to convert multiple binary columns into a single character column?<p>I would like to convert data frame df1 into data frame df2.</p> <pre><code>id &lt;- ...
72,849,632
How to find occurrences of a pair in a multimap<p>I have been trying to write a program that finds the occurrences of a pair in a multimap. So far I am thinking of using multimap::equal_range.</p> <p>For example, if my multimap is {(BO, MA), (CL, SC), (DA, TX), (FL, MI), (FL, MI), (MI, FL), (OR, FL)} and I search for a...
<p>I suggest using a <code>std::unordered_map&lt;std::string, std::unordered_map&lt;std::string, unsigned&gt;&gt;</code> instead. You then get 2 fast lookups and the count without iterating.</p> <p>Example:</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt; #include &lt;iterator&gt; #include...
How to find occurrences of a pair in a multimap
c++|data-structures|iterator|multimap
0
82
1
72,849,787
72,849,787
0
true
2022-07-03T20:20:30.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to find occurrences of a pair in a multimap<p>I have been trying to write a program that finds the occurrences of a pair in a multimap. So far I am think...
72,854,846
Is it safe to use ThreadLocal in Spring Boot with embeded Tomcat for holding data per request<p>I'm using Spring Boot 2.7.0 with embeded Tomcat. And for holding user context for every request i'm using following approach:</p> <ol> <li>I have UserContext POJO</li> </ol> <pre><code>import lombok.Getter; import lombok.Set...
<blockquote> <p>and only one request will be processed at the same time in particular thread?</p> </blockquote> <p>At the same time — yes, the execution inside the same thread is sequential, so it won't process multiple requests at the same time. However, it will be reused for future requests of different users, since ...
Is it safe to use ThreadLocal in Spring Boot with embeded Tomcat for holding data per request
java|spring|tomcat|thread-local
1
82
1
72,855,006
72,855,006
0
true
2022-07-04T09:53:48.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it safe to use ThreadLocal in Spring Boot with embeded Tomcat for holding data per request<p>I'm using Spring Boot 2.7.0 with embeded Tomcat. And for hold...
72,860,433
EXCELJS - adding an image above the column headers in exceljs<p>I am using exceljs library in react application. I am inserting my company logo on top of my data (and their headers), but my code just inserts it on top of everything.</p> <pre><code>const imageId2 = workbook.addImage({ base64: myBase64Image, ...
<p><a href="https://github.com/exceljs/exceljs/issues/433" rel="nofollow noreferrer">https://github.com/exceljs/exceljs/issues/433</a> row headers looks like this:</p> <pre><code>const rowHeader = [ { key: 'xxx' }, { key: 'adsff' }, { key: 'ff' }, { key: 'ffff' }, { key: 'sdfasdf' }, { key: 'fasdfads' }, ...
EXCELJS - adding an image above the column headers in exceljs
exceljs
0
82
1
72,863,440
72,863,440
0
true
2022-07-04T17:51:14.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: EXCELJS - adding an image above the column headers in exceljs<p>I am using exceljs library in react application. I am inserting my company logo on top of my ...
72,794,830
Uploaded images in React rotating when uploading on iPhone<p>I am uploading photos in a Next.js web app. It works as expected, but when uploading an image on an iphone the image rotates 90 degrees anti-clockwise.</p> <p>Is there a way I can stop the image rotating?</p>
<p>This easiest way I found to fix this was by using the following package: <a href="https://www.npmjs.com/package/blueimp-load-image" rel="nofollow noreferrer">https://www.npmjs.com/package/blueimp-load-image</a></p> <p>The issue is when uploading images on an iPhone using the image type Heif (which is the default typ...
Uploaded images in React rotating when uploading on iPhone
reactjs|file-upload|next.js
-1
82
1
72,864,626
72,864,626
0
true
2022-06-29T01:33:30.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Uploaded images in React rotating when uploading on iPhone<p>I am uploading photos in a Next.js web app. It works as expected, but when uploading an image on...
72,868,135
Razor Page ignores DisplayFormat<p>I'm saving a date in a model like this:</p> <pre><code>[Display(Name = &quot;Eintrittsdatum&quot;)] [DisplayFormat(DataFormatString = &quot;{0:dd.MM.yyyy}&quot;, ApplyFormatInEditMode = false)] [Required] public DateOnly EntryDate { get; set; } </code></pre> <p><a href="https://i.stac...
<p>To format the display of a <code>DateTime</code>, you can simply provide a format string to the <code>ToString</code> method (as well as the salary):</p> <pre><code>@foreach (var item in Model.Employee) { &lt;td&gt; @item.EntryDate.ToString(&quot;dd.MM.yyyy&quot;) &lt;/td&gt; &lt;td&gt; @...
Razor Page ignores DisplayFormat
asp.net|razor-pages
0
82
1
72,868,823
72,868,823
0
true
2022-07-05T10:47:47.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Razor Page ignores DisplayFormat<p>I'm saving a date in a model like this:</p> <pre><code>[Display(Name = &quot;Eintrittsdatum&quot;)] [DisplayFormat(DataFor...
72,871,792
Click multiple divs with same class name using for loop<p>I'm trying to click on multiple div with same class name. Parse the HTML page, extract some information and get back to same page. On this <a href="https://blinkit.com/cn/masala-oil-more/whole-spices/cid/1557/930" rel="nofollow noreferrer">page</a>.</p> <ol> <li...
<p>We don't need to use BeautifulSoup to parse the data. Selenium has methods that will be sufficient for our use case.</p> <pre><code>from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait ...
Click multiple divs with same class name using for loop
python|selenium|selenium-webdriver|web-scraping
-1
82
1
72,875,087
72,875,087
0
true
2022-07-05T15:15:12.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Click multiple divs with same class name using for loop<p>I'm trying to click on multiple div with same class name. Parse the HTML page, extract some informa...
72,848,772
FindWindowEx random failures getting child window handle<p>I have a VB.NET 4.6.1 desktop app that has been using <code>FindWindow</code> and <code>FindWindowEx</code> for over 2 years with no issue to locate a MDI child window and capture the window caption text, it has worked flawlessly until recent.<br /> The behavio...
<p>The solution for me was, based on the above suggestion, to use UI Automation, I had never worked with it before, however after looking it over I gave a go and found that it did indeed simplify my needs to capture window text from a 3rd party application window with MDI Client Interface.</p> <p>Below is a lessor vers...
FindWindowEx random failures getting child window handle
vb.net|winforms|winapi
1
82
1
72,880,382
72,880,382
0
true
2022-07-03T17:59:12.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: FindWindowEx random failures getting child window handle<p>I have a VB.NET 4.6.1 desktop app that has been using <code>FindWindow</code> and <code>FindWindow...
72,845,442
How to set default value in multiselect dropdown in multistep form with react-select<p>I am currently working on a multistep form with multiselect dropdowns with react-select. Everything works so far, except when switching between steps, the dropdown fields are not filled with the values of the current state.</p> <pre ...
<p>I found the error in the handleChange function. It should save the state as an object with value and label instead of an array:</p> <pre class="lang-js prettyprint-override"><code> const handleChange = (name) =&gt; (e) =&gt; { setSelectedValue((prevState) =&gt; ({ ...prevState, [name]: e.map((x) =&g...
How to set default value in multiselect dropdown in multistep form with react-select
javascript|reactjs|forms|state|react-select
0
82
1
72,880,567
72,880,567
0
true
2022-07-03T09:39:56.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set default value in multiselect dropdown in multistep form with react-select<p>I am currently working on a multistep form with multiselect dropdowns ...
72,888,060
How can I set different visualization parameters in Google Earth Engine in a foreach<p>I want to set different visualization parameters for the four different bands I am including in the map in the script below. I tried to request that by using a list with different viz parameters like this:</p> <pre><code>var visParam...
<p>It was actually way easier than I thought. By adding the parameters to the MAP_PARAMS I could request the visualization parameters from there instead of using the function getVisualization</p> <pre><code>var MAP_PARAMS = { 'Img1': ['treecover2000',{&quot;bands&quot;:&quot;treecover2000&quot;,&quot;min&quot;:0,&quo...
How can I set different visualization parameters in Google Earth Engine in a foreach
google-earth-engine
0
82
1
72,895,386
72,895,386
0
true
2022-07-06T18:01:51.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I set different visualization parameters in Google Earth Engine in a foreach<p>I want to set different visualization parameters for the four differen...
72,891,806
Null object Access debug in systemverilog<p>confused about the debug message, The object at dereference depth 2 is being used before it was allocated</p> <p><code>extip_axi4_uvc.wr_master.driver.m_write_addr_delay_shaper.set_periodic_profile(150);</code></p> <p>what does dereference depth 2 mean? is that means the driv...
<p>You can ether set a breakpoint and examine each member in the path for <em>nullness</em>, or add checks</p> <pre><code>if (extip_axi4_uvc == null) $error(&quot;extip_axi4_uvc is null); else if (extip_axi4_uvc.wr_master == null) $error(&quot;extip_axi4_uvc.wr_master is null); else if ... </code></pre>
Null object Access debug in systemverilog
system-verilog
0
82
1
72,901,020
72,901,020
0
true
2022-07-07T02:54:52.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Null object Access debug in systemverilog<p>confused about the debug message, The object at dereference depth 2 is being used before it was allocated</p> <p>...
72,901,909
Create random values in dataframe with different weights by condition<p>I have been trying to create a simulated dataframe with the sex and education as features, generating the data according to some proportions I already know.</p> <p>Something like this:</p> <pre><code>weight_sex = [0.55, 0.45] options_sex = [0, 1] #...
<p>Expanding on your code you can do this:</p> <pre><code>options_work = [0, 1, 2] # 0 = Unemployed, 1 = informal work, 2 = formal work weight_educ = [0.2, 0.3, 0.5] weight_other = [0.3, 0.4, 0.3] # create two dataframes for both choices «educated» and «other» work_educ = pd.DataFrame(random.choices(options_work, weig...
Create random values in dataframe with different weights by condition
python|pandas|random|conditional-statements|weighted
1
82
1
72,902,624
72,902,624
0
true
2022-07-07T17:16:05.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create random values in dataframe with different weights by condition<p>I have been trying to create a simulated dataframe with the sex and education as feat...
72,908,334
How to add a button at the end of a recycler view (kotlin)?<p>I'm gonna add a button at the end of my recycler view and i don't know how to do it . i will appreciate you if you teach me .</p> <p>this is my main activity code :</p> <pre><code>class MainActivity : AppCompatActivity() { private var number: Int = 0 private...
<p>You will achieve this by adding the <code>RecyclerView</code> in a parent <code>NestedScrollView</code> and then place the <code>Button</code> below the <code>RecyclerView</code>.</p> <p>So your code should look like this</p> <pre><code>&lt;androidx.core.widget.NestedScrollView xmlns:android=&quot;http://schemas.and...
How to add a button at the end of a recycler view (kotlin)?
android|xml|kotlin
0
82
3
72,909,573
72,909,573
0
true
2022-07-08T07:55:14.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add a button at the end of a recycler view (kotlin)?<p>I'm gonna add a button at the end of my recycler view and i don't know how to do it . i will ap...
72,918,870
Error initializing MongoEmbebbed. MongoClientSettings not found<p>I can't manage to get the Mongo Embebbed running. I'm using Spring Boot with Flapdoodle and jirutka</p> <p>I'm not sure if there is a problem with the versions or what I need to change. This is the log of the error:</p> <pre><code>Error creating bean wit...
<p>Solved updating all the dependencies to the most recent ones.</p> <p>Always check every dependency and see if there is any issue. Most likely compatibility issues are solved on upgrades. This case was Spring boot 2.6.1 -&gt; 2.7.1</p>
Error initializing MongoEmbebbed. MongoClientSettings not found
java|spring|mongodb|spring-boot|flapdoodle-embed-mongo
0
82
1
72,918,981
72,918,981
0
true
2022-07-09T04:06:09.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error initializing MongoEmbebbed. MongoClientSettings not found<p>I can't manage to get the Mongo Embebbed running. I'm using Spring Boot with Flapdoodle and...
72,863,415
Doctrine Migrations not creating join table<p>I'm trying to create a join table between two entities using Doctrine ORM and the Symfony maker bundle.</p> <p>The two entities are <code>User</code> and <code>Member</code>. A <code>User</code> should be able to reference multiple <code>Member</code> entities, and <code>Me...
<p>Finally got this to work. Even though PHP 8.1 supports nested attributes, and <code>#[JoinTable]</code> has <code>joinColumns</code> and <code>inverseJoinColumns</code> parameters, you <strong>must</strong> specify <code>#[JoinColumn]</code> and <code>#[InverseJoinColumn]</code> as top-level attributes.</p> <p>The f...
Doctrine Migrations not creating join table
php|symfony|doctrine-orm|doctrine-migrations
0
82
2
72,920,790
72,920,790
0
true
2022-07-05T02:22:44.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Doctrine Migrations not creating join table<p>I'm trying to create a join table between two entities using Doctrine ORM and the Symfony maker bundle.</p> <p>...
72,920,870
Why this dark mode toogle is working just with the background and not the text?<p>I'm building a website with cargo collective and I need a dark mode toggle that switch the background color on click but ever the text color. For the moment is just working with the background and it's not affecting the text.</p> <p>the t...
<p>One way to do this that would helps you write less CSS code is to to use <code>*</code> selector to make every element inherit the <code>body</code> color. And then if there is a need change for some specific element like so: <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false...
Why this dark mode toogle is working just with the background and not the text?
javascript|html|css
1
82
2
72,920,929
72,920,929
0
true
2022-07-09T11:11:34.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why this dark mode toogle is working just with the background and not the text?<p>I'm building a website with cargo collective and I need a dark mode toggle ...
72,922,268
How to check through Firebase Firestore that such a name already exists? - Java<p>I need that if a person registers and enters a nickname that exists, it is checked and written that such a nickname already exists:</p> <p><a href="https://i.stack.imgur.com/tDo7j.png" rel="nofollow noreferrer"><img src="https://i.stack.i...
<p>To check if the name &quot;Creator&quot; is already taken or not, please use the following lines of code:</p> <pre><code>FirebaseFirestore rootRef = FirebaseFirestore.getInstance(); CollectionReference usersRef = rootRef.collection(&quot;users&quot;); Query userNameQuery = usersRef.whereEqualTo(&quot;name&quot;, &qu...
How to check through Firebase Firestore that such a name already exists? - Java
java|android|firebase|google-cloud-platform|google-cloud-firestore
0
82
1
72,926,793
72,926,793
0
true
2022-07-09T14:40:03.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check through Firebase Firestore that such a name already exists? - Java<p>I need that if a person registers and enters a nickname that exists, it is ...
72,935,697
set "read more..." button to dangerouslySetInnerHTML - React<p>I reveive some HTML from an API call, and I would like to display for example the 200 first characters, and create a read more button to display more.</p> <p>I am using React with TypeScript.</p> <p>Here is my code :</p> <pre><code>&lt;p dangerouslySetInner...
<p>Try this first check length of the content and if greater than 200 then slice the content if not then show the content as it is the second condition for if the content length is greater than 200 then show the button.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">...
set "read more..." button to dangerouslySetInnerHTML - React
reactjs|dangerouslysetinnerhtml
0
82
1
72,936,018
72,936,018
0
true
2022-07-11T08:31:12.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: set "read more..." button to dangerouslySetInnerHTML - React<p>I reveive some HTML from an API call, and I would like to display for example the 200 first ch...
72,931,736
Why 'DiscreteNorm' object has no attribute '_vmin'?<p>I have an issue while doing a contourf with proplot (advanced Matplotlib in a certain way). I have attached an example of proplot documentation (<a href="https://proplot.readthedocs.io/en/latest/2dplots.html" rel="nofollow noreferrer">cells 3 and 4</a>) which is not...
<p>There was something wrong between libraries (proplot installed quickly with <code>!pip install proplot</code>), I think between Matplotlib and Proplot.</p> <p>I double checked creating new environment with conda and the error disappeared. Anyway, better to pass by <strong>conda</strong> to build the environment than...
Why 'DiscreteNorm' object has no attribute '_vmin'?
python|pandas|matplotlib|contour|python-xarray
0
82
1
72,939,962
72,939,962
0
true
2022-07-10T20:37:48.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why 'DiscreteNorm' object has no attribute '_vmin'?<p>I have an issue while doing a contourf with proplot (advanced Matplotlib in a certain way). I have atta...
72,941,107
Using Azure Redis Cache Instances across App Services<p>We are planning to use Azure Cache for Redis service to avoid multiple database operations and improve performance of our Web Apps. We have a few App Services - they are not big and typically run in just a couple of instances. We are wondering if we should create ...
<p>Same REDIS Cache can be used across multiple web apps, but one important consideration to keep in mind is that REDIS is a single threaded service !</p>
Using Azure Redis Cache Instances across App Services
azure|redis|azure-appservice|azure-redis-cache
0
82
1
72,941,699
72,941,699
0
true
2022-07-11T15:36:22.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Azure Redis Cache Instances across App Services<p>We are planning to use Azure Cache for Redis service to avoid multiple database operations and improv...
72,946,658
How to hide api links & React JS code from Dev tools?<p>I've built a web app using React JS which is getting data from an API</p> <p><a href="https://i.stack.imgur.com/M0fw0.jpg" rel="nofollow noreferrer">Screenshot of the app</a></p> <p>If I go to &quot;Inspect Elements&quot; and go to sources, I'm able to see my code...
<p>You can't hide this code as far as I know.</p> <p>You can use webpack (which I saw you already use in your app) to make your code not readable. I suggest you'll use webpack to make <a href="https://webpack.js.org/guides/getting-started/#creating-a-bundle" rel="nofollow noreferrer">a bundle of your js code into one f...
How to hide api links & React JS code from Dev tools?
javascript|reactjs|api|google-chrome-devtools
0
82
1
72,947,607
72,947,607
0
true
2022-07-12T03:15:39.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to hide api links & React JS code from Dev tools?<p>I've built a web app using React JS which is getting data from an API</p> <p><a href="https://i.stack...
72,960,337
Uncaught TypeError: this.props.history is undefined<p>learning on Udemy part of the course work isnt working for me despite using the same codes as the video. The code should allow me to do a search based on username with option to go directly to the profile or a database of results. But I am getting Uncaught TypeError...
<p>your <code>props</code> are empty and don't have <code>instance</code> of <code>history</code> , to provide <code>history</code> instance you need to wrap your component with <code>export default withRouter(Main)</code></p> <p>but <code>withRouter</code> has been deprecated in <code>react-router-dom v6</code> so if ...
Uncaught TypeError: this.props.history is undefined
reactjs|react-router
0
82
1
72,960,713
72,960,713
0
true
2022-07-13T02:40:20.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Uncaught TypeError: this.props.history is undefined<p>learning on Udemy part of the course work isnt working for me despite using the same codes as the video...
72,932,310
Oracle apex form doesent INSERT/UPDATE or Create entry in database<p>Hi everyone so I have a problem with Oracle Apex, I created a master-detail with a from and everything worked fine. Then I created another page within the same app but nothing connected to the page mentioned before, and now nothing on the first page w...
<p><em>Close dialog</em> process in the form page was missing, recreated it from a different form, and now everything works!</p>
Oracle apex form doesent INSERT/UPDATE or Create entry in database
oracle-apex
0
82
1
72,973,174
72,973,174
0
true
2022-07-10T22:36:43.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Oracle apex form doesent INSERT/UPDATE or Create entry in database<p>Hi everyone so I have a problem with Oracle Apex, I created a master-detail with a from ...
72,974,135
Collect all the Keys from a HashMap associated with the Lowest into a List<p>How to sort HashMap entries by Value and print all the Keys mapped the Lowest Value</p> <p>Here is my <code>HashMap</code>.</p> <pre><code>HashMap&lt;String, Integer&gt; map = new HashMap&lt;&gt;(); map.put(&quot;John&quot;, 1); map.put(&quot;...
<p>Collect the entries into a <code>Map&lt;Integer, List&lt;Map.Entry&gt;&gt;</code> grouping by their values, get the entries that correspond to the minimum value, then convert those entries to a list of their keys:</p> <pre class="lang-java prettyprint-override"><code>List&lt;String&gt; lowestValuedNames = map.entryS...
Collect all the Keys from a HashMap associated with the Lowest into a List
java|java-stream
-1
82
2
72,985,651
72,985,651
0
true
2022-07-14T01:00:30.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Collect all the Keys from a HashMap associated with the Lowest into a List<p>How to sort HashMap entries by Value and print all the Keys mapped the Lowest Va...
72,909,047
How to insert data from OpenSearch to Excel using python<p>I have already written code but still having some trouble with below two scenarios.</p> <ol> <li>Inserting More than 10k records</li> <li>Setting up incremental load</li> </ol> <p>Reference: opensearch-py can be used as a python client</p> <p>Sample Code:</p> <...
<p>This can be achieved using <strong>scan</strong>!</p> <pre><code>from opensearchpy import OpenSearch from opensearchpy.helpers import scan host = '' port = auth = ('', '') # Create the client with SSL/TLS enabled, but hostname verification disabled. client = OpenSearch( hosts = [{'host': host, 'port': port}]...
How to insert data from OpenSearch to Excel using python
python|opensearch
0
82
1
73,007,824
73,007,824
0
true
2022-07-08T09:00:28.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to insert data from OpenSearch to Excel using python<p>I have already written code but still having some trouble with below two scenarios.</p> <ol> <li>I...
73,011,237
How to define a "base url" for resources when creating a zeep client?<p>I'm trying to parse a WSDL file using zeep.</p> <pre class="lang-py prettyprint-override"><code>import zeep zeep.Client('https://sede.agenciatributaria.gob.es/static_files/Sede/Procedimiento_ayuda/G417/FicherosSuministros/V_1_1/WSDL/SuministroFact...
<p>That service WSDL is broken.</p> <p>The <code>schemaLocation</code> indicates the same folder as the WSDL document, but the XSDs are actually located at the address of the <code>namespace</code>.</p> <p>Zeep does the correct thing, but it won't work with a broken WSDL.</p> <p>If you have access to the provider of th...
How to define a "base url" for resources when creating a zeep client?
python|xml|soap|zeep
0
82
1
73,013,345
73,013,345
0
true
2022-07-17T11:07:05.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to define a "base url" for resources when creating a zeep client?<p>I'm trying to parse a WSDL file using zeep.</p> <pre class="lang-py prettyprint-overr...
73,002,695
How can i get parameters from Construct before finishing of creation stack<p>Can you help me please? I create DatabaseInstanceEngine and eks secret and want to put <code>db_instance_endpoint_address</code> to this secret</p> <pre><code>self.cluster.add_manifest('my-secret-env', { &quot;kind&quot;: &quot;Secret&qu...
<p>Solved. I changed python's <code>base64</code> to <code>Fn.base64</code> and problem was solved because resolve Fn.base64 tokens. Unfortunately this way is not good for <code>DatabaseInstance .secret.secret_value_from_json('password').unsafe_unwrap()</code></p> <p>I recieve this using Customresource</p>
How can i get parameters from Construct before finishing of creation stack
amazon-web-services|aws-cdk|aws-cdk-python
0
82
2
73,013,748
73,013,748
0
true
2022-07-16T08:26:04.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i get parameters from Construct before finishing of creation stack<p>Can you help me please? I create DatabaseInstanceEngine and eks secret and want ...
73,023,055
How can I configure url rewrite to redirect from splash.aspx?page=3 to splash3.aspx?<p>I have already created a topic about query strings, unfortunately the question was closed and no one answers anymore.</p> <p>For example, I want to redirect from splash.aspx?page=3 to a simpler url e.g. to splash3.aspx. I unfortunate...
<p>In your web.config, add the following nodes:</p> <pre><code>&lt;rewrite&gt; &lt;rule name=&quot;Redirect splash page 3&quot; stopProcessing=&quot;true&quot;&gt; &lt;match url=&quot;splash\.aspx$&quot; /&gt; &lt;conditions&gt; &lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;page=3&quot; /&gt; ...
How can I configure url rewrite to redirect from splash.aspx?page=3 to splash3.aspx?
asp.net|iis|query-string|url-rewrite-module|iis-8.5
-1
82
1
73,026,315
73,026,315
0
true
2022-07-18T13:25:15.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I configure url rewrite to redirect from splash.aspx?page=3 to splash3.aspx?<p>I have already created a topic about query strings, unfortunately the ...
72,952,035
How to Add OR Condition in Laravel Sphinx query?<p>I am using the <code>fobia/laravel-sphinx</code> package and want to add a condition like <code>city != 0 or state != 0</code> but the <code>or</code> condition is not working and gives tjis error:</p> <blockquote> <p>&quot;Syntax error or access violation: 1064 sphinx...
<p>If you have a version of sphinx/manticore server that is not supporting OR conditions, have to 'fake' using a fake attribute/expression.</p> <p>Need to add a column. Want SphinxQL somewhat like</p> <pre><code>SELECT *, (state_id!=0)+(city_id!=0) as filter FROM index WHERE filter &gt; 0 </code></pre> <p>... ie will o...
How to Add OR Condition in Laravel Sphinx query?
php|laravel|sphinx|sphinxql
0
82
3
73,034,277
73,034,277
0
true
2022-07-12T12:06:46.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Add OR Condition in Laravel Sphinx query?<p>I am using the <code>fobia/laravel-sphinx</code> package and want to add a condition like <code>city != 0 ...
73,008,370
How to get SignalR to reconnect on Console Client<p>I am trying to write a console application that receives changes from my website and does something when triggered. I got it to connect and work just fine, however should the website go down for any reason and for any duration of time, the client never reconnects. Her...
<p>So it would seem that the <code>connection.Closed</code> event only fires when it is done retrying. Not 100% sure on this but I think its how it works.</p> <p>There is a <code>connection.Reconnected</code> method that fires when a connection is lost. which only fires once, so here you can pug logs that a connection ...
How to get SignalR to reconnect on Console Client
c#|signalr|.net-6.0|signalr.client|asp.net-core-signalr
2
82
1
73,071,430
73,071,430
0
true
2022-07-16T23:51:02.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get SignalR to reconnect on Console Client<p>I am trying to write a console application that receives changes from my website and does something when ...
72,972,146
How to disable "unnecessary test for null" warning in NetBeans 14?<h2>Short Version</h2> <p>How do i disable the &quot;unnecessary test for null&quot; warning in NetBeans 14 IDE?</p> <p><a href="https://i.stack.imgur.com/Hw9Tf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hw9Tf.png" alt="enter imag...
<p>The answer is: it cannot be done.</p> <p>NetBeans provides no way to disable the <strong>unnecessary test for null</strong> warning.</p> <h2>Workaround</h2> <p>As other people in other answers have noted:</p> <ul> <li>the value <strong>can</strong> be null</li> <li>NetBeans is wrong thinking it cannot be null</li> <...
How to disable "unnecessary test for null" warning in NetBeans 14?
java|netbeans|null-check|netbeans-14
2
82
2
73,114,500
73,114,500
0
true
2022-07-13T20:17:51.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to disable "unnecessary test for null" warning in NetBeans 14?<h2>Short Version</h2> <p>How do i disable the &quot;unnecessary test for null&quot; warnin...
72,771,300
Flink AggregateFunction in TumblingWindow is automatically splitted in two windows for big window size<p>I'm calculating a simple mean on some records, using different windows sizes. Using <strong>1 hour</strong> and <strong>1 week windows</strong> there are no problems, and the results are computed correctly.</p> <pre...
<h1>Solution</h1> <p>Thanks to @david-anderson suggestion, i solved the problem. Using a 31 days window for a dataset with values for May 2022, the flink window was starting from <code>14-04-2022</code> to <code>15-05-2022</code>, instead of <code>01-05-2022</code> to <code>31-05-2022</code>. This is because (as @david...
Flink AggregateFunction in TumblingWindow is automatically splitted in two windows for big window size
java|docker|apache-kafka|apache-flink|stream-processing
2
82
3
72,784,720
72,784,720
0
true
2022-06-27T11:24:36.260Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flink AggregateFunction in TumblingWindow is automatically splitted in two windows for big window size<p>I'm calculating a simple mean on some records, using...
72,856,395
Splitting consecutive similar characters of a specific length in an array of strings<p>I have an array</p> <pre><code>[&quot;ejjjjmmtthh&quot;, &quot;zxxuueeg&quot;, &quot;aanlljrrrxx&quot;, &quot;dqqqaaabbb&quot;, &quot;oocccffuucccjjjkkkjyyyeehh&quot;] </code></pre> <p>and need to extract consecutive characters in ea...
<p>This solution is more readable and not too long. It works for k &gt; 0.</p> <pre><code>s = [&quot;ejjjjmmtthh&quot;, &quot;zxxuueeg&quot;, &quot;aanlljrrrxx&quot;, &quot;dqqqaaabbb&quot;, &quot;oocccffuucccjjjkkkjyyyeehhh&quot;] k = 3 output = [] for element in s: state = &quot;&quot; #State variable (reset on e...
Splitting consecutive similar characters of a specific length in an array of strings
python
-1
82
4
72,857,665
72,857,665
0
true
2022-07-04T12:01:53.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Splitting consecutive similar characters of a specific length in an array of strings<p>I have an array</p> <pre><code>[&quot;ejjjjmmtthh&quot;, &quot;zxxuuee...
72,830,410
Java Error in Flutter - Visual Studio Code<p>Today while compiling a project Flutter, it gave me this error. As I understand it is a Java problem.</p> <ul> <li>Java JDK 11 is installed on the PC,</li> <li>but Visual Studio Code doesn't seem to see it.</li> </ul> <p>Searching on the internet I didn't find how to do it (...
<p>SOLVED!!! Try to add this line in gradle.properties</p> <pre><code>org.gradle.java.home=C:/Program Files/Java/jdk-17.0.3.1 </code></pre> <p>N.B: &quot;jdk-17.0.3.1&quot; here give your jdk version number</p>
Java Error in Flutter - Visual Studio Code
java|flutter|gradle|visual-studio-code
0
82
1
72,844,468
72,844,468
0
true
2022-07-01T13:58:11.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java Error in Flutter - Visual Studio Code<p>Today while compiling a project Flutter, it gave me this error. As I understand it is a Java problem.</p> <ul> <...
72,872,608
Unit testing C# with protected methods and Mocking fields<p>Below is code from a NuGet package which is used by our main project, MyClass is called via the main project with authentication. The method GetMyAppStoreConfig() will only work when calling from the main project via authentication.</p> <pre><code> public cla...
<p>Below code worked for me. Needed to make getData virtual and create a no argument constructor in MyAppStore.</p> <pre><code> [TestClass()] public class MyClassTests { private MyClass _myClass; private PrivateObject privateObject; [TestInitialize()] public void init() ...
Unit testing C# with protected methods and Mocking fields
c#|.net|unit-testing|.net-framework-version
0
82
1
72,883,728
72,883,728
0
true
2022-07-05T16:15:15.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unit testing C# with protected methods and Mocking fields<p>Below is code from a NuGet package which is used by our main project, MyClass is called via the m...
72,790,137
C GTK - How to set :display.screen for gtk application window to appear<p>I am using gtk.h for a C application under GNU/Linux and I would like to open my gtk window under a specific display.screen without exporting any environmental variables. The reason I don't want to set the DISPLAY variable and export it is I don'...
<p>It was in the gtk documentation after all, I guess I missed it because I was trying to find a native xlib solution. Here is the related documentation page:</p> <p>For GTK 4: <a href="https://docs.gtk.org/gtk4/method.Window.set_display.html" rel="nofollow noreferrer">https://docs.gtk.org/gtk4/method.Window.set_displa...
C GTK - How to set :display.screen for gtk application window to appear
c|gtk|xlib
0
82
1
72,810,200
72,810,200
0
true
2022-06-28T16:29:29.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C GTK - How to set :display.screen for gtk application window to appear<p>I am using gtk.h for a C application under GNU/Linux and I would like to open my gt...
72,903,611
Azure IoT Hub Rest API returns "InvalidProtocolVersion;Bad Request"<p>I'm new to Azure IoT Hub</p> <p>What I'm trying to do is remove pending commands for a device in the IoT Hub by using Azure IoT Hub's REST API as shown here <a href="https://docs.microsoft.com/en-us/rest/api/iothub/service/cloud-to-device-messages/pu...
<blockquote> <p>I added a SAS Token in the header and changed the api-version parameter but nothing works.</p> </blockquote> <p>According to <a href="https://docs.microsoft.com/en-us/rest/api/iothub/?WT.mc_id=IoT-MVP-5004034#common-parameters-and-headers" rel="nofollow noreferrer">documentation</a>:</p> <ul> <li>DELETE...
Azure IoT Hub Rest API returns "InvalidProtocolVersion;Bad Request"
azure|rest|azure-iot-hub
0
82
1
72,906,521
72,906,521
0
true
2022-07-07T20:02:17.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure IoT Hub Rest API returns "InvalidProtocolVersion;Bad Request"<p>I'm new to Azure IoT Hub</p> <p>What I'm trying to do is remove pending commands for a ...
72,884,533
Manipulate CSV file using groovy and java<p>Newbie here with a question. I have the following .csv file as an example:</p> <pre><code>10;06.07.2022;This is test; 08;01.07.2020;This is test; 15;06.07.2021;This is test; 09;06.07.2021;This is test; </code></pre> <p>So its multiple rows with the same setup. I want to de...
<p>Given the input file <code>projects/test.csv</code> containing these lines:</p> <pre><code>10;06.07.2022;This is test; 08;01.07.2020;This is test; 15;06.07.2021;This is test; 09;06.07.2021;This is test; </code></pre> <p>The following Groovy script:</p> <pre><code>import java.time.format.DateTimeFormatter import java...
Manipulate CSV file using groovy and java
java|csv|groovy
0
82
3
72,886,426
72,886,426
0
true
2022-07-06T13:36:14.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Manipulate CSV file using groovy and java<p>Newbie here with a question. I have the following .csv file as an example:</p> <pre><code>10;06.07.2022;This is t...
72,823,701
adding arrow keys to a keyboard in android studio<p>I've been trying to program my own keyboard on android using android studio. One thing I wanted to add are some arrow keys to move the cursor. My current code for the layout of the keyboard follows this format</p> <pre><code>&lt;Row&gt; &lt;Key android:keyLabe...
<p>First off- I wouldn't be using this approach at all. KeyboardView is deprecated. The reason is that no serious keyboard uses it (not even Google's own), so they decided not to maintain it further.</p> <p>Secondly- I don't think you can do that via this method. Codes are unicode characters. Unicode doesn't have...
adding arrow keys to a keyboard in android studio
android|android-studio|android-softkeyboard|keyboard-events
0
82
1
72,824,258
72,824,258
0
true
2022-07-01T02:05:10.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: adding arrow keys to a keyboard in android studio<p>I've been trying to program my own keyboard on android using android studio. One thing I wanted to add ar...
72,811,987
How to do dynamic entry data validation in Excel<p>[Example of one Table][2]</p> <p>I have a structure of an Excel Project with 5 tables that are being updated regularly. I am currently working on finding a way to validate entered data and set a frame and a specific datatype for certain columns. If there is a wrong ent...
<p>Put this in your worksheet module:</p> <pre><code>Private Sub Worksheet_Change(ByVal Target As Range) 'Declarations. Dim RngNameColumn As Range Dim RngLenghtColumn As Range Dim RngWidthColumn As Range Dim RngHeightColumn As Range Dim RngIntersection As Range Dim RngCell As Range ...
How to do dynamic entry data validation in Excel
excel|vba|dynamic|verification
0
82
1
72,909,916
72,909,916
0
true
2022-06-30T07:41:15.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to do dynamic entry data validation in Excel<p>[Example of one Table][2]</p> <p>I have a structure of an Excel Project with 5 tables that are being updat...
72,823,125
Promise.all fetch continue executing after throwing error?<p>I am trying to fetch JSON data from the WordPress Developer Reference site. I need to search a keyword without knowing if it's a function, class, hook, or method, which is part of the url I need to fetch. So I'm using Promise.all to cycle through all possible...
<p>I would recommend encapsulating the success / failure logic for individual requests, then you can determine all the resolved and rejected responses based on the result of that encapsulation.</p> <p>For example</p> <pre class="lang-js prettyprint-override"><code>const checkKeyword = async (ref, keyword) =&gt; { con...
Promise.all fetch continue executing after throwing error?
javascript|promise|fetch-api
1
82
3
72,823,232
72,823,232
0
true
2022-06-30T23:53:26.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Promise.all fetch continue executing after throwing error?<p>I am trying to fetch JSON data from the WordPress Developer Reference site. I need to search a k...
72,771,512
Chrome does not prompt user for camera and/or microphone access even in secure context<p>I have a webpage served via <code>https</code> with the following script:</p> <pre><code>const userMediaConstraints = { video: true, audio: true }; navigator.mediaDevices.getUserMedia(userMediaConstraints) .then(stream...
<p>It turns out, having video with autoplay attribute in HTML or similar lines on page load in Javascript prevent Chrome from showing the prompt.</p> <p>HTML that causes this problem:</p> <pre><code>&lt;video autoplay=&quot;true&quot;&gt;&lt;/video&gt; </code></pre> <p>Javascript that causes this problem:</p> <pre><cod...
Chrome does not prompt user for camera and/or microphone access even in secure context
javascript|google-chrome|mediadevices
1
82
2
72,993,823
72,993,823
0
true
2022-06-27T11:42:24.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Chrome does not prompt user for camera and/or microphone access even in secure context<p>I have a webpage served via <code>https</code> with the following sc...
72,979,051
Why might HmsInstanceId.deleteToken and HmsInstanceId.getToken not work?<p>On some devices, <code>HmsInstanceId.deleteToken</code> throws &quot;com.huawei.hms.common.ApiException: 907135000: arguments invalid&quot; while <code>HmsInstanceId.getToken</code> returns an empty string?</p> <p>I have several huawei devices w...
<p><strong>Update:</strong></p> <p>Check whether the system version is earlier than EMUI 10.0.</p> <p>If the EMUI version of a Huawei device is <strong>earlier than 10.0</strong>, the token is returned through the onNewToken(String token, Bundle bundle) method. For details, kindly refer to <a href="https://developer.hu...
Why might HmsInstanceId.deleteToken and HmsInstanceId.getToken not work?
android|push-notification|huawei-mobile-services
1
82
2
72,980,715
72,980,715
0
true
2022-07-14T10:27:52.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why might HmsInstanceId.deleteToken and HmsInstanceId.getToken not work?<p>On some devices, <code>HmsInstanceId.deleteToken</code> throws &quot;com.huawei.hm...
72,981,854
Getting rid of a nested for loop to improve performance<p>I have a function thats supposed to be merge two objects together based on certain conditions. the vitalsArray is an array of objects that are unsorted that may or may not have corresponding values (i.e systolic to diastolic and vice versa). Basically if certain...
<p>Your input only shows a single patient on a single date but here is an example that extrapolates from that a little to provide a result that is grouped by <code>patient_id</code> and then further grouped by <code>taken_on</code> within that.</p> <p>The result is of the following shape:</p> <pre><code>[ { &quo...
Getting rid of a nested for loop to improve performance
javascript|arrays|data-structures|grouping
0
82
3
72,982,585
72,982,585
0
true
2022-07-14T14:05:04.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting rid of a nested for loop to improve performance<p>I have a function thats supposed to be merge two objects together based on certain conditions. the ...
72,777,359
What do these Square Brackets C# syntax mean infront of Function Parameters? It looks like attributes<p>I'm trying to work out what this code does. It's part of the .NET framework and MS Azure; I have a C++ background, but (obviously) C# is a different animal.</p> <p>Having spent much time googling &quot;square bracket...
<p>Those are <a href="https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/" rel="nofollow noreferrer">Attributes</a>. There is an entire article about them in C#</p> <p>Aside from many &quot;built-in&quot; (based on nuget packages), you can also freely define your own <a href="https://d...
What do these Square Brackets C# syntax mean infront of Function Parameters? It looks like attributes
c#|.net|azure
-1
82
1
72,777,399
72,777,399
1
true
2022-06-27T19:22:23.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What do these Square Brackets C# syntax mean infront of Function Parameters? It looks like attributes<p>I'm trying to work out what this code does. It's part...
72,791,713
Issues with infinite grid in OpenGL 4.5 with GLSL<p>I've been toying around with an infinite grid using shaders in OpenGL 4.5, following this tutorial <a href="https://asliceofrendering.com/scene%20helper/2020/01/05/InfiniteGrid/" rel="nofollow noreferrer">here</a>. Since the tutorial was written for Vulkan and a highe...
<p><a href="https://www.khronos.org/opengl/wiki/Blending" rel="nofollow noreferrer">Blending</a> only works when the <a href="https://www.khronos.org/opengl/wiki/Depth_Test" rel="nofollow noreferrer">Depth Test</a> is disabled or the objects are drawn from back to front. When the depth test is enabled (with its default...
Issues with infinite grid in OpenGL 4.5 with GLSL
c++|opengl|glsl|glm-math|opengl-4
1
82
1
72,792,127
72,792,127
1
true
2022-06-28T18:46:25.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issues with infinite grid in OpenGL 4.5 with GLSL<p>I've been toying around with an infinite grid using shaders in OpenGL 4.5, following this tutorial <a hre...
72,786,414
Flutter widget test EasyLocalization is enable to initialize<p>I m trying the simplest test has possible and when I ensureInitialized EasyLocalization the test never stops.</p> <p>If I don't ensureInitialized EasyLocalization the test crash with <code>The following LateError was thrown attaching to the render tree: Lat...
<p>I was only missing this line that need to be done before</p> <pre class="lang-dart prettyprint-override"><code>WidgetsFlutterBinding.ensureInitialized(); </code></pre> <p>My understanding of this is that <code>EasyLocalization</code> is not runned in <code>TestWidgetsFlutterBinding</code> and need a real app initial...
Flutter widget test EasyLocalization is enable to initialize
flutter|flutter-test
3
82
1
73,758,526
73,758,526
0
true
2022-06-28T12:26:48.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter widget test EasyLocalization is enable to initialize<p>I m trying the simplest test has possible and when I ensureInitialized EasyLocalization the te...
72,829,140
How to prepopulate realm file in Kotlin SDK?<p>In Java SDK, I was creating Realm.Configuration object with the realm file that located in asset folder. I couldn't find any equivalent property in Realm Kotlin SDK</p> <p>in java SDK:</p> <pre><code>val populatedRealmConfiguration = RealmConfiguration.Builder() .schem...
<p>In Kotlin SDK, assetFile feature isn't available. See : <a href="https://github.com/realm/realm-kotlin/issues/927" rel="nofollow noreferrer">https://github.com/realm/realm-kotlin/issues/927</a></p>
How to prepopulate realm file in Kotlin SDK?
android|kotlin|realm
2
82
2
73,385,149
73,385,149
1
true
2022-07-01T12:16:55.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to prepopulate realm file in Kotlin SDK?<p>In Java SDK, I was creating Realm.Configuration object with the realm file that located in asset folder. I cou...
72,348,171
PineScript: Print the bar time in exchange timezone<p>In my pinescript (version:5), I am trying to add a label that will display the current bar's high, RSI and the bar closing time.</p> <p>The time is coming in UTC. How can I convert it to GMT:5:30 or &quot;Asia/Kolkata&quot; timezone?</p> <p>My code snippet is this:<...
<p>You can do this:</p> <pre><code>//@version=5 strategy('Opening high/low', overlay=true) //label.new(bar_index, high, tostring(time_close - timenow)) printTable(txt) =&gt; var table t = table.new(position.middle_right, 1, 1) table.cell(t, 0, 0, txt, text_halign = text.align_right, bgcolor = color.yellow) ...
PineScript: Print the bar time in exchange timezone
pine-script|algorithmic-trading
0
82
1
73,824,582
73,824,582
1
true
2022-05-23T11:59:02.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PineScript: Print the bar time in exchange timezone<p>In my pinescript (version:5), I am trying to add a label that will display the current bar's high, RSI ...
72,266,270
GitLab upgrade from 9.5.10 to 10.8.7 unsuccessful<p>After installing the package for 10.8.7, which is the next supported upgrade path per <a href="https://docs.gitlab.com/ee/update/#upgrade-paths" rel="nofollow noreferrer">https://docs.gitlab.com/ee/update/#upgrade-paths</a>, <code>gitlab-ctl reconfigure</code> fails w...
<p>In my case, I was able to successfully upgrade to <code>10.8.7</code> by selecting an arbitrary intermediate version (in my case, <code>10.5.8</code>). Not sure why directly upgrading as per the upgrade path did not work. I will continue my journey to GitLab 14 now!</p>
GitLab upgrade from 9.5.10 to 10.8.7 unsuccessful
gitlab|gitlab-omnibus|gitlab-ee
0
82
1
72,267,068
72,267,068
0
true
2022-05-16T22:28:31.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GitLab upgrade from 9.5.10 to 10.8.7 unsuccessful<p>After installing the package for 10.8.7, which is the next supported upgrade path per <a href="https://do...
72,283,424
( Nuxt's Vue-router ) How to differentiate path ending with "/" and without<p>Using the <a href="https://nuxtjs.org/docs/configuration-glossary/configuration-router/#extendroutes" rel="nofollow noreferrer"><code>extendRoutes</code></a> attribute for nuxt's router, I am attempting to differentiate paths ending with a sl...
<p>Have you tried this?</p> <pre class="lang-js prettyprint-override"><code>const router = createRouter({ history: createWebHistory(), routes: [ { name: 'articles', path: '/articles/:category', strict: true, component: resolve(__dirname, 'pages/-overview.vue') }, ... ] }) </...
( Nuxt's Vue-router ) How to differentiate path ending with "/" and without
vue.js|nuxt.js|vue-router
1
82
1
72,283,459
72,283,459
0
true
2022-05-18T05:00:30.380Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ( Nuxt's Vue-router ) How to differentiate path ending with "/" and without<p>Using the <a href="https://nuxtjs.org/docs/configuration-glossary/configuration...
72,308,106
Bootstrap carousel and column will not stay next to each other<p><strong>Goal:</strong> I would like to create a bootstrap row where there is a carousel on the left and text blocks on the right. I have labeled these &quot;Left Column&quot; and &quot;Right Column&quot; respectively within the HTML comments.</p> <p><stro...
<p>After digging around even further, I discovered that I accidentally added an extra <code>&lt;/div&gt;</code> which caused my row to end before the right column could be added into the row.</p>
Bootstrap carousel and column will not stay next to each other
html|css|twitter-bootstrap|bootstrap-4
0
82
1
72,309,275
72,309,275
0
true
2022-05-19T16:32:13.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bootstrap carousel and column will not stay next to each other<p><strong>Goal:</strong> I would like to create a bootstrap row where there is a carousel on t...
72,312,246
C++ - Undefined reference to octomap::OcTree::OcTree(double)'<p>I'm trying to use the library octomap and have installed according to the instructions in their <a href="https://github.com/OctoMap/octomap" rel="nofollow noreferrer">GitHub</a>. However, when I try to build and run this simple code with VSCode build task ...
<p>your problem is the program wasn't linked with octomap library</p> <p>use cmake and include some lines like:</p> <pre><code>find_package(octomap REQUIRED) include_directories(${OCTOMAP_INCLUDE_DIRS}) target_link_libraries(${OCTOMAP_LIBRARIES}) </code></pre> <p>or from command line with <code>g++ &lt;source files&gt;...
C++ - Undefined reference to octomap::OcTree::OcTree(double)'
c++|octomap
0
82
1
72,312,468
72,312,468
0
true
2022-05-20T00:06:49.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C++ - Undefined reference to octomap::OcTree::OcTree(double)'<p>I'm trying to use the library octomap and have installed according to the instructions in the...
72,310,540
Use of Natvis framework to observe value pointed by pointer<p>My goal is to observe a container of value which is pointed by a pointer. I am recommended to use <a href="https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects?view=vs-2022" rel="nofollow noreferrer"><code>natvis</code...
<p>Finally, found the <a href="https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects?view=vs-2022#BKMK_ArrayItems_expansion" rel="nofollow noreferrer"><strong>solution</strong></a> though came lots of other questions which will post in new post. I was wrongly interpreting the synt...
Use of Natvis framework to observe value pointed by pointer
c++|pointers|visual-studio-code|natvis
1
82
1
72,324,796
72,324,796
0
true
2022-05-19T20:08:58.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use of Natvis framework to observe value pointed by pointer<p>My goal is to observe a container of value which is pointed by a pointer. I am recommended to u...
72,311,988
Best way to find all documents with 2 fields in mongoDb<p>i need help in finding documents in mongodb. My schema is like below:</p> <pre><code>const users = new Schema({ _id: ObjectId, facebookId: String, ..... ..... }) </code></pre> <p>I have 2 arrays for query like below:</p> <pre><code>const ...
<p>Assuming you have 3 users in the collection with facebookId and another 3 without facebookId. You already have the facebookId of the first 3 data and _id of the last 3 data.</p> <pre><code> [ { _id: 1, facebookId: 10, }, { _id: 2, facebookId: 20, }, { _id: 3, facebookId: 10...
Best way to find all documents with 2 fields in mongoDb
node.js|mongoose
1
82
1
72,343,641
72,343,641
0
true
2022-05-19T23:12:20.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Best way to find all documents with 2 fields in mongoDb<p>i need help in finding documents in mongodb. My schema is like below:</p> <pre><code>const users = ...
72,343,940
How can I render sidebar depend on user<p>I have 5 types of users and all users access sidebar depending on which users are they. I shared with you the user details in the screenshot. you can check walletClasList, and also issuerAccess, userAccess, macAccess, nodeAccess.</p> <p>If you have any query or questions so you...
<p>You should divide all menus in to different components. and then render those conditionally.</p> <p>Like for whole sidebar create a Component <code>&lt;SideBar&gt;&lt;/SideBar&gt;</code> then for each menu create components <code>&lt;wallet&gt;&lt;/wallet&gt;</code> <code>&lt;issuer&gt;&lt;/issuer&gt;</code> etc</p>...
How can I render sidebar depend on user
javascript|node.js|reactjs
1
82
1
72,345,774
72,345,774
0
true
2022-05-23T06:09:39.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I render sidebar depend on user<p>I have 5 types of users and all users access sidebar depending on which users are they. I shared with you the user ...
72,261,259
QEMU loader device - load bare metal binary in same address space<p>For reference, I'm running bare-metal QEMU-6.1.0 on aarch64 using the <a href="https://github.com/Xilinx/qemu" rel="nofollow noreferrer">Xilinx fork</a>.</p> <p>I am loading a monolithic bare-metal binary into <code>qemu-system-aarch64</code> using the...
<p>I resolved this by using the exported <code>address_space_memory</code> reference in <code>cpu_address_space_init</code> instead of the <code>AddressSpace</code> reference that was being assigned by default.</p> <pre class="lang-c prettyprint-override"><code>void cpu_address_space_init(CPUState *cpu, int asidx, ...
QEMU loader device - load bare metal binary in same address space
arm|qemu|xilinx|firmware|bare-metal
0
82
1
72,348,518
72,348,518
0
true
2022-05-16T14:56:36.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: QEMU loader device - load bare metal binary in same address space<p>For reference, I'm running bare-metal QEMU-6.1.0 on aarch64 using the <a href="https://gi...
72,351,797
Update value in dialog<p>I want to show the progress value in <code>Dialog</code> while data are fetching from the server. When one item is fetched, it should show 5%, and if second item is fetched, it shows 10% until 100% (total of 20 items)</p> <pre><code>showSyncDialog( BuildContext context, Repository r...
<p>Use StatefulBuilder to use setState inside Dialog and update Widgets only inside of it. Here is an example.</p> <pre><code>showDialog( context: context, builder: (context) { String contentText = &quot;Content of Dialog&quot;; return StatefulBuilder( builder: (context, setState) { return Ale...
Update value in dialog
flutter|dart|dialog
0
82
1
72,357,948
72,357,948
0
true
2022-05-23T16:20:45.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Update value in dialog<p>I want to show the progress value in <code>Dialog</code> while data are fetching from the server. When one item is fetched, it shoul...
72,364,333
Kentico 13: Page Builder Widgets: Restrict usage for User Role<p>I've tried to find some info on this in the official Kentico 13 (.Net Core) Documentation without success. I am wondering if there is a way to restrict the use of page builder widgets by user role (either allow or deny widget usage for role). Thanks! -Dav...
<p>There's a package created by MVP DevTrev that should handle this for you. I'd recommend checking this package out.</p> <p><a href="https://github.com/KenticoDevTrev/XperienceCommunity.WidgetFilter" rel="nofollow noreferrer">https://github.com/KenticoDevTrev/XperienceCommunity.WidgetFilter</a></p>
Kentico 13: Page Builder Widgets: Restrict usage for User Role
kentico
0
82
1
72,364,559
72,364,559
0
true
2022-05-24T14:02:32.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Kentico 13: Page Builder Widgets: Restrict usage for User Role<p>I've tried to find some info on this in the official Kentico 13 (.Net Core) Documentation wi...
72,367,667
javascript on click event target image display<p>In the example code below, an X or an O is going to be placed on a mouse click. I want to change this to an image. positive.png for the X and negative.png for the O How can I modify this?</p> <pre><code>var tabelKolommen = document.querySelectorAll('td') var aanDeBeurt ...
<pre><code>var oImage = document.createElement('img'); oImage.src = '/link-to-O-image.png'; var xImage = document.createElement('img'); xImage.src = '/link-to-X-image.png'; var tabelKolommen = document.querySelectorAll('td') var aanDeBeurt = 1; tabelKolommen.forEach(function(td) { td.addEventListener('click', do...
javascript on click event target image display
javascript
0
82
2
72,367,892
72,367,892
0
true
2022-05-24T18:17:05.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: javascript on click event target image display<p>In the example code below, an X or an O is going to be placed on a mouse click. I want to change this to an ...
72,365,144
How to force a column to be on top of another column (to overlap)<p>I have two grid columns that contain images, and I'd like to force them to be on top of each other, like it's shown in the design here:<br /> <a href="https://i.stack.imgur.com/vkkdZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vk...
<p>Found a simple solution!<br /> Just use <code>offset=&quot;-12&quot;</code> on the second column like this:</p> <pre><code>&lt;ion-row&gt; &lt;ion-col&gt; &lt;img src=&quot;assets/images/planet-ring.svg&quot;&gt; &lt;/ion-col&gt; &lt;ion-col offset=&quot;-12&quot;&gt; &lt;img src=&quot;assets/imag...
How to force a column to be on top of another column (to overlap)
html|css|twitter-bootstrap|ionic-framework|sass
0
82
2
72,382,300
72,382,300
0
true
2022-05-24T14:57:06.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to force a column to be on top of another column (to overlap)<p>I have two grid columns that contain images, and I'd like to force them to be on top of e...
72,384,460
How to add a bool to request.security()?<p>How i can add a bool to request.security? So I can try to choose between a and b examples:</p> <pre><code>a = request.security(symbol, timeframe, expression, gaps, lookahead, ignore_invalid_symbol) b = request.security(symbol, timeframe, expression, gaps, lookahead, ignore...
<p>You can use the <a href="https://www.tradingview.com/pine-script-docs/en/v5/language/Operators.html#ternary-operator" rel="nofollow noreferrer">ternary operator</a> for that.</p> <pre><code>bool choose_a = true a = request.security(symbol, timeframe, expression, gaps, lookahead, ignore_invalid_symbol) b = reque...
How to add a bool to request.security()?
pine-script|pinescript-v5
0
82
1
72,387,575
72,387,575
0
true
2022-05-25T21:42:04.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add a bool to request.security()?<p>How i can add a bool to request.security? So I can try to choose between a and b examples:</p> <pre><code>a = requ...
72,394,141
Check for duplicate rows for a subset of columns in a Pandas DataFrameGroupBy object<p>Suppose I have a groupby object (grouped on Col1) like below:</p> <pre><code>Col1 Col2 Col3 Col4 Col5 ---------------------------------------- AAA 001 456 846 239 row1 002 374 ...
<p>You can try <code>groupby</code> column <code>Col1</code> then use <code>duplicated()</code> to check if there are any duplicated from <code>Col3</code> to <code>Col5</code></p> <pre class="lang-py prettyprint-override"><code>out = (df.groupby('Col1') .apply(lambda g: g[['Col3','Col4','Col5']].duplicated().an...
Check for duplicate rows for a subset of columns in a Pandas DataFrameGroupBy object
python|pandas|pandas-groupby
0
82
1
72,394,261
72,394,261
0
true
2022-05-26T15:18:22.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check for duplicate rows for a subset of columns in a Pandas DataFrameGroupBy object<p>Suppose I have a groupby object (grouped on Col1) like below:</p> <pre...
72,378,087
Changing value in database for specific cell<p>working on something and stuck at this:</p> <p>My Razor Page looks like this:</p> <pre><code>&lt;tbody&gt; @foreach(var item in Model.Terminy) { &lt;tr&gt; &lt;form method=&quot;post&quot;&gt; &lt;td&gt; &lt;center&gt;&lt;button class=&quot;btn ...
<p>Ok, so i am done with it.</p> <p>My solution is: After clicking button my backend update value in database, so my view will automatically render button with &quot;None&quot; value.</p> <p>After this my implementation will check if value is equal &quot;None&quot; and if yes mark this button as</p> <pre><code> &lt;but...
Changing value in database for specific cell
c#|asp.net|razor-pages|model-binding
0
82
1
72,400,854
72,400,854
0
true
2022-05-25T12:56:06.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Changing value in database for specific cell<p>working on something and stuck at this:</p> <p>My Razor Page looks like this:</p> <pre><code>&lt;tbody&gt; ...
72,332,256
file not found while running pyspark program<p>im new to pyspark and i want to lunch a pyspark program in standalone cluster, i followed the steps on this <a href="https://towardsdatascience.com/installing-apache-pyspark-on-windows-10-f5f0c506bea1#:%7E:text=In%20order%20to%20work%20with,back%20to%20the%20Command%20Prom...
<p>Python, via Numpy, (not Spark) is trying to read the file from where you run your Python interpreter,</p> <p>The word count example in the link reads the README.md file next to the bin folder, so if that's where you start the command, that's where your file needs to be. Otherwise, cd down into the example folder whe...
file not found while running pyspark program
python|apache-spark|pyspark
0
82
1
72,415,825
72,415,825
0
true
2022-05-21T18:28:03.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: file not found while running pyspark program<p>im new to pyspark and i want to lunch a pyspark program in standalone cluster, i followed the steps on this <a...
72,278,109
How to change opacity of text widget to 0.7 with flutter extension?<p>I need change style of Text Widget in flutter with an extension. this extension must be change opacity of Text Widget to 0.7 . when i used in on Text widget , i can change opacity of widget to 0.7.</p> <p><strong>UPDATE:</strong> if Text widget has ...
<p>ok. I change this extension for text style and solved , answer is :</p> <pre><code> extension TextStyleOpacity on TextStyle?{ TextStyle colorOpacity ({required BuildContext context}){ Color? color =this==null?DefaultTextStyle.of(context).style.color: this?.color; if(this==null){ return DefaultTex...
How to change opacity of text widget to 0.7 with flutter extension?
flutter|flutter-test
0
82
1
72,474,599
72,474,599
0
true
2022-05-17T17:08:27.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change opacity of text widget to 0.7 with flutter extension?<p>I need change style of Text Widget in flutter with an extension. this extension must be...
72,326,117
Association tables with multiple foreign-key relationships on one column in SQLAlchemy + SQLite<p><strong>tldr;</strong> In the SQLAlchemy ORM Mapper class <a href="https://docs.sqlalchemy.org/en/14/orm/basic_relationships.html#many-to-many" rel="nofollow noreferrer">docs</a>, an example is provided for how to create a...
<p>The solution was to simply treat the <code>keyword</code>, <code>question</code>, <code>pattern</code>, <code>solution</code> ORM mapper classes as parent tables, and the <code>data_lineage</code> ORM mapper like child tables, all of which share the same association table, <code>data_lineage_lookup</code>.</p> <p>So...
Association tables with multiple foreign-key relationships on one column in SQLAlchemy + SQLite
python|sqlite|sqlalchemy
0
82
1
72,523,402
72,523,402
0
true
2022-05-21T01:54:30.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Association tables with multiple foreign-key relationships on one column in SQLAlchemy + SQLite<p><strong>tldr;</strong> In the SQLAlchemy ORM Mapper class <...
72,364,020
bs4: splitting text with same class - python<p>I am web scraping for the first time, and ran into a problem: some classes have the same name.</p> <p>This is the code:</p> <pre><code>testlink = 'https://www.ah.nl/producten/product/wi387906/wasa-volkoren' r = requests.get(testlink) soup = BeautifulSoup(r.content, 'html....
<p>You can select all of dd tags with class value <code>product-info-definition-list_value__kspp6</code> and list slicing</p> <pre><code>import requests from bs4 import BeautifulSoup url='https://www.ah.nl/producten/pasta-rijst-en-wereldkeuken?page={page}' for page in range(1,11): req = requests.get(url.format(page...
bs4: splitting text with same class - python
python|web-scraping|beautifulsoup
0
82
1
72,364,416
72,364,416
0
true
2022-05-24T13:43:06.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: bs4: splitting text with same class - python<p>I am web scraping for the first time, and ran into a problem: some classes have the same name.</p> <p>This is ...