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,808,812
How do I extract these XML elements into a List<string>?<p>I have this XML in which I am trying to get the output values of the <code>&lt;Daily&gt;</code> element.</p> <pre class="lang-xml prettyprint-override"><code>&lt;Person&gt; &lt;Man&gt; &lt;Routine&gt; &lt;Entry&gt; &lt;Daily&gt;food&lt;...
<p>you're concatenating the elements value in one string, instead of storing them into a <code>List&lt;string&gt;</code>. Calling <code>ToList</code> instead of <code>Aggregate</code> would do the trick.</p> <pre><code>verb = (from el in root.Elements(&quot;Entry&quot;).Descendants(&quot;Daily&quot;) select(string) e...
How do I extract these XML elements into a List<string>?
c#|.net|xml|linq|linq-to-xml
1
61
1
72,809,159
72,809,159
3
true
2022-06-29T23:22:53.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I extract these XML elements into a List<string>?<p>I have this XML in which I am trying to get the output values of the <code>&lt;Daily&gt;</code> el...
72,852,805
how to check a value exists in array in quasar<pre><code> const myproducts = ref([]) const items = ref([ { id: 1, item: 'Vaporub 50Gm' , barcode: '123456'}, { id: 2, item: 'Herbal Cool Oil (300+100)Ml', barcode: '123456' }, { id: 3, item: 'live Oil Bp 70Ml', barcode: '123456' } ] const selectedProduc...
<p>This is absolutley wrong:</p> <p><code>myproducts.value.push( '{id:'+ id +', qty:'+ 1 +'}' );</code></p> <p>You try to create an object by concatenating strings.</p> <p>Just use an object:</p> <pre><code>myproducts.value.push({ id, qty: 1 }); </code></pre>
how to check a value exists in array in quasar
javascript|vue.js|vuejs3|quasar
1
61
1
72,852,978
72,852,978
3
true
2022-07-04T06:56:46.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to check a value exists in array in quasar<pre><code> const myproducts = ref([]) const items = ref([ { id: 1, item: 'Vaporub 50Gm' , barcode: '123...
72,896,066
I want to eliminate all of these case statements (too messy)<p>I am writing a test program which returns a string &quot;P3-PASS&quot; or &quot;P3-FAIL. In all there are 12 possible tests, P3 to P14 (&quot;P3-FAIL&quot; to &quot;P14-PASS&quot;).</p> <p>I have a button &quot;All_Tests&quot; which calls each test 1 by 1, ...
<p>You can create a dictionary that maps the numbers to the controls, e.g.</p> <pre><code>var controlsByPageNum = new Dictionary&lt;int, Button&gt;() { { 3, Pg3 }, { 4, Pg4 }, { 5, Pg5 }, // ... } </code></pre> <p>When receiving the test results, you can get the control like this:</p> <pre><code>int PageNum = ...
I want to eliminate all of these case statements (too messy)
c#|button|case
1
61
2
72,896,149
72,896,149
3
true
2022-07-07T10:14:59.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want to eliminate all of these case statements (too messy)<p>I am writing a test program which returns a string &quot;P3-PASS&quot; or &quot;P3-FAIL. In al...
72,933,005
How can I insert row to a sheet using cell value of another sheet using apps script?<p>I have a sheet called database (see picture 1) <a href="https://i.stack.imgur.com/by5Yv.png" rel="nofollow noreferrer">1</a>, and each item from the database sheet also have a separate sheets (see picture 2 for example sheet of items...
<p>The <a href="https://developers.google.com/apps-script/reference/spreadsheet/sheet#appendRow(Object)" rel="nofollow noreferrer">appendRow()</a> function is quite useful in this scenario, the rest is just copying and pasting ranges using <a href="https://developers.google.com/apps-script/reference/spreadsheet/range#g...
How can I insert row to a sheet using cell value of another sheet using apps script?
google-apps-script|google-sheets
0
61
1
72,933,599
72,933,599
3
true
2022-07-11T01:42:18.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I insert row to a sheet using cell value of another sheet using apps script?<p>I have a sheet called database (see picture 1) <a href="https://i.stac...
72,932,782
Blazor parameters in root page not working in Azure Static Web Apps<p>I have a Blazor wasm project I am working on and I have the following functionality:</p> <ul> <li>When a user arrives to <strong>mydomain.com/customer</strong> they are redirected to the customer details</li> <li>As expected, all this functionality c...
<p>Static web apps do not have a typical web server, so you have to configure a fallback route</p> <p><a href="https://docs.microsoft.com/en-us/azure/static-web-apps/deploy-blazor#fallback-route" rel="nofollow noreferrer">Docs: Fallback route</a></p> <blockquote> <h1>Fallback route</h1> <p>The application exposes URLs ...
Blazor parameters in root page not working in Azure Static Web Apps
blazor|blazor-webassembly|azure-static-web-app
0
61
2
72,935,346
72,935,346
3
true
2022-07-11T00:38:58.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Blazor parameters in root page not working in Azure Static Web Apps<p>I have a Blazor wasm project I am working on and I have the following functionality:</p...
72,950,706
Make a relative url go one step back<p>I have a url: <a href="http://test.com/test1/test2/" rel="nofollow noreferrer">http://test.com/test1/test2/</a><br /> Is there a way to make a relative url from test2 to test1? Like just one step back?<br /> Without Javascript.<br /> The /test1/ part may change, that's why I need ...
<p>You can link with <code>../</code>. Indeed, if you visit <code>/test1/test2/</code> and the URL contains <code>../</code>, it will move one directory up, so <code>/test1/</code>.</p> <p>This is specified in <a href="https://datatracker.ietf.org/doc/html/rfc3986" rel="nofollow noreferrer">RFC-3986 of the W3 organizat...
Make a relative url go one step back
python|django|django-urls
1
61
1
72,950,798
72,950,798
3
true
2022-07-12T10:19:06.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make a relative url go one step back<p>I have a url: <a href="http://test.com/test1/test2/" rel="nofollow noreferrer">http://test.com/test1/test2/</a><br /> ...
72,994,701
How to convert a vector of parent pointers to another in c++?<p>How to convert two parent pointers in c++? This is the code.</p> <pre><code>// base class class B { public: virtual ~B() {}; // other code }; class A { public: virtual ~A() {}; // other code }; // child class class C1 : publi...
<p>Your code has typos. Missing <code>public</code> in inheritance of <code>B</code> when defining <code>C&lt;x&gt;</code> breaks stuff.</p> <p>After this is fixed sidecast does the job as it should:</p> <p><a href="https://en.cppreference.com/w/cpp/language/dynamic_cast#Explanation" rel="nofollow noreferrer">dynamic_c...
How to convert a vector of parent pointers to another in c++?
c++|inheritance|polymorphism|multiple-inheritance
0
61
1
72,995,350
72,995,350
3
true
2022-07-15T13:22:27.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to convert a vector of parent pointers to another in c++?<p>How to convert two parent pointers in c++? This is the code.</p> <pre><code>// base class cla...
73,006,138
Reverse part of a .csv file using Python<p>I had a csv file looking like this:</p> <pre><code>index label observation groundTruth 0 1 10.00 0 1 3 5.50 0 2 1 18.90 1 --------------------------- 3 1 12.00 1 4 3 23.68 0 5 1 21.45 0 6 ...
<p>If all observations are of length=5 then you can use next example how to move all rows with label=&quot;0&quot; to front:</p> <pre class="lang-py prettyprint-override"><code>import csv from itertools import zip_longest def grouper(iterable, n, fillvalue=None): &quot;Collect data into fixed-length chunks or blo...
Reverse part of a .csv file using Python
python|csv|time-series
1
61
2
73,006,340
73,006,340
3
true
2022-07-16T16:59:47.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reverse part of a .csv file using Python<p>I had a csv file looking like this:</p> <pre><code>index label observation groundTruth 0 1 10.00 0 1...
73,014,634
Installed module via pip, still get ModuleNotFoundError<p>I'm trying to use <code>w3af</code> to start doing some routine security testing on a webapp that I'm using. <a href="http://w3af.org/download" rel="nofollow noreferrer">Install instructions</a> recommend cloning a git repo, then running the python code and seei...
<p><code>ConfigParser</code> is a built in library in Python, but its name was <a href="https://docs.python.org/2.7/library/configparser.html" rel="nofollow noreferrer">changed to <code>configparser</code> in Python 3</a>. It appears like <code>w3af</code> is still using Python 2 (I found <a href="https://github.com/an...
Installed module via pip, still get ModuleNotFoundError
python|pip|pyenv|configparser
0
61
1
73,014,908
73,014,908
3
true
2022-07-17T19:11:47.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Installed module via pip, still get ModuleNotFoundError<p>I'm trying to use <code>w3af</code> to start doing some routine security testing on a webapp that I...
73,025,086
Heatmap a hidden non-feature of :vgplot?<p>Not being a gnuplot expert (last time I used it was like 25 years ago) and having had some useful applications of Common Lisps <code>:vgplot</code> package, this time I wanted to create a heatmap and - to my surprise - I could not find out, how to do it - even after 2 hours of...
<p>You probably want to use the <em>palette-mapped three-dimensional</em> mode <code>pm3d</code> of gnuplot. This mode maps three-dimensional data to a color palette, and you can set the <code>view</code> to the <code>map</code> option to place the viewpoint above the surface.</p> <p>Here is an example from the <a href...
Heatmap a hidden non-feature of :vgplot?
common-lisp
3
61
1
73,041,608
73,041,608
3
true
2022-07-18T15:45:43.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Heatmap a hidden non-feature of :vgplot?<p>Not being a gnuplot expert (last time I used it was like 25 years ago) and having had some useful applications of ...
72,949,323
Extract specific data from an output of shell command in Ansible<p>I would like to create a playbook that extract the <code>used</code> space for <code>/boot</code> through the shell command <code>df -B MB</code>.<br /> For this example, the playbook will show <code>358MB</code> for the controller node.</p> <p>I would ...
<p>This is a typical <a href="https://xyproblem.info" rel="nofollow noreferrer">x/y problem</a> (although it is easy to answer since you have given your root requirement i.e. get used size on a mount point).</p> <p>You don't have to use <code>shell</code> to get that information. It's all available in the target machin...
Extract specific data from an output of shell command in Ansible
linux|unix|ansible
2
61
1
72,950,001
72,950,001
3
true
2022-07-12T08:36:47.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract specific data from an output of shell command in Ansible<p>I would like to create a playbook that extract the <code>used</code> space for <code>/boot...
72,926,596
Type deduction for a member function pointer<p>I know there are similar questions on SO, but the usages there seem different to what I have. Here is my MRE:</p> <pre><code>#include &lt;iostream&gt; #include &lt;functional&gt; using namespace std; void freeFunction() {} struct Foo { void memberFunction() {} }; templa...
<h2>General suggestion for type investigations</h2> <p>I think the easiest way to answer questions like &quot;what is the type of <code>x</code> in <em>this context</em>&quot; is to put a <code>static_assert(std::is_same_v&lt;void, delctype(x)&gt;);</code> in that same context. The compiler will then tell you the <code...
Type deduction for a member function pointer
c++|pointers|templates|c++20
1
61
2
72,926,617
72,926,617
3
true
2022-07-10T06:37:16.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Type deduction for a member function pointer<p>I know there are similar questions on SO, but the usages there seem different to what I have. Here is my MRE:<...
72,856,222
Has my collegue reproduced the exact behavior of Task.WhenAll<TResult>?<p>When reviewing work by a contractor, I came upon the following extension method:</p> <pre class="lang-cs prettyprint-override"><code>public static class TaskExtensions { public static async Task&lt;IEnumerable&lt;TResult&gt;&gt; WhenAllSynchr...
<p>Nope, there are quite a lot of differences between the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.whenall" rel="nofollow noreferrer"><code>Task.WhenAll</code></a> and the <code>WhenAllSynchronousExecution</code>. Here are some of them:</p> <ol> <li>The <code>Task.WhenAll</code> ...
Has my collegue reproduced the exact behavior of Task.WhenAll<TResult>?
c#|async-await|task|wait
1
61
2
72,857,116
72,857,116
3
true
2022-07-04T11:49:31.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Has my collegue reproduced the exact behavior of Task.WhenAll<TResult>?<p>When reviewing work by a contractor, I came upon the following extension method:</p...
72,999,313
Get index of first occurrence of any of range of values in string<p>I'm trying to find the index of the first vowel in a string (English/ASCII only). I need to extract this index to use it later on (returned in this example). This works:</p> <pre><code>let s = String::from(&quot;cats&quot;); let vowels = ['a', 'e', 'i...
<p>Use the <a href="https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.position" rel="nofollow noreferrer"><code>.position()</code></a> method on a <a href="https://doc.rust-lang.org/std/primitive.str.html#method.chars" rel="nofollow noreferrer"><code>.chars()</code></a> iterator:</p> <pre><code>let string =...
Get index of first occurrence of any of range of values in string
string|rust
1
61
1
72,999,441
72,999,441
3
true
2022-07-15T20:30:33.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get index of first occurrence of any of range of values in string<p>I'm trying to find the index of the first vowel in a string (English/ASCII only). I need ...
72,768,698
Image URL from firebase storage to firestore<p>this is how I upload images to firebase storage and get the Download URL in firebase Firestore. Everything works properly how ever I get the 1st URL but not the Second one.</p> <pre><code>Future&lt;void&gt; uploadImage2(image2) async { setState(() { isLoader2 = t...
<p>You can upload image to firebase as below</p> <p>First of all you need to add this plugin in <code>pubspec.yaml</code></p> <p><code>firebase_storage: ^8.0.0</code></p> <pre><code>import 'package:firebase_storage/firebase_storage.dart' as firebase_storage; Future&lt;void&gt; uploadFile(File _image) async { setSt...
Image URL from firebase storage to firestore
flutter|dart
0
61
2
72,768,784
72,768,784
3
true
2022-06-27T07:54:24.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Image URL from firebase storage to firestore<p>this is how I upload images to firebase storage and get the Download URL in firebase Firestore. Everything wor...
72,951,501
Overview over all function objects<p>I have a question which is more about a general understanding of loops and case-structures. Therefor I will not deliver a runable code.</p> <p>Is there somehow an option to iterate over objects of a function? I use a if-elif differentiation to call diffent files of a dataset.</p> <p...
<p>In answer to the question:</p> <blockquote> <p>&quot;Is it possible for the user of this function to make a request about all possible cases the programmer/data base manager offers in this function?&quot;</p> </blockquote> <p>The answer is <strong>yes</strong>. Below are listed two methods in particular, one 'messy...
Overview over all function objects
python|python-3.x|for-loop
1
61
1
72,963,034
72,963,034
3
true
2022-07-12T11:22:20.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Overview over all function objects<p>I have a question which is more about a general understanding of loops and case-structures. Therefor I will not deliver ...
72,918,637
SAS Macros in Datalines<p>I have a two part question about creating datasets in SAS that calls upon macro variables</p> <p><strong>Part 1</strong></p> <p>I'm trying to create a dataset that has one character variable called <em>variable</em> with a length of 100, and 3 observations.</p> <pre><code>%let first_value=10; ...
<p>Your examples do not seem to be worth using macro variables.</p> <p>But if you really need to resolve macro expressions in variable values then use the RESOLVE() function. The RESOLVE() will evaluate all macro code in the text, not just the macro variable references in your example. So any macro function calls and...
SAS Macros in Datalines
syntax|sas|sas-macro
0
61
1
72,918,751
72,918,751
3
true
2022-07-09T03:02:27.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SAS Macros in Datalines<p>I have a two part question about creating datasets in SAS that calls upon macro variables</p> <p><strong>Part 1</strong></p> <p>I'm...
72,915,929
How do I get a comma-delimited list of strings from an XML column in T-SQL?<p>Suppose there is a table (SQL Server 2019) with two columns. Both are nvarchar but the <code>ResultDoc</code> column happens to store xml. Example data:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <t...
<p><strong>Updated</strong> ... moved the aggregate into the OUTER APPLY</p> <p>Since you are on 2019, you can use <code>string_agg()</code></p> <p><strong>Example or <a href="https://dbfiddle.uk/?rdbms=sqlserver_2019&amp;fiddle=b34e81991e0d427e66f038768a884e06" rel="nofollow noreferrer">dbFiddle</a></strong></p> <pre>...
How do I get a comma-delimited list of strings from an XML column in T-SQL?
sql|sql-server|xml|tsql
0
61
1
72,916,113
72,916,113
3
true
2022-07-08T19:02:35.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I get a comma-delimited list of strings from an XML column in T-SQL?<p>Suppose there is a table (SQL Server 2019) with two columns. Both are nvarchar ...
73,024,448
How to plot groups of stacked bars from a dataframe<p>I am creating the plots this way:</p> <pre><code>fig, ax = plt.subplots(figsize=(8,6)) df = pd.concat((data.assign(source=name) for data, name in zip([train_ss_freq_df, train_ss_freq_df], ['train', 'blind']))) df[df['source']=='train'].plot(kind='bar...
<ul> <li>If the plot must be grouped and clustered, there is this <a href="https://stackoverflow.com/a/22845857/7758804">answer</a>. However, it's easier to set a multi-index and plot individual bars.</li> <li>Plot directly with <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html" rel="nofo...
How to plot groups of stacked bars from a dataframe
python|pandas|matplotlib|data-visualization|bar-chart
2
61
1
73,026,408
73,026,408
3
true
2022-07-18T15:01:05.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to plot groups of stacked bars from a dataframe<p>I am creating the plots this way:</p> <pre><code>fig, ax = plt.subplots(figsize=(8,6)) df = pd.concat((...
72,803,162
Dealing with huge pandas data frames<p>I have a huge database (of 500GB or so) an was able to put it in pandas. The databasse contains something like 39705210 observations. As you can imagine, python has hard times even opening it. Now, I am trying to use Dask in order to export it to cdv into 20 partitions like this:<...
<p>Dask dataframes do not support the inplace kwarg, since each partition and subsequent operations are delayed/lazy. However, just like in Pandas, it's possible to assign the result to the same dataframe:</p> <pre class="lang-py prettyprint-override"><code>df = merge_bodytextknown5 # this line is for easier readabili...
Dealing with huge pandas data frames
python|pandas|dataframe|dask|dask-dataframe
2
61
1
72,805,183
72,805,183
3
true
2022-06-29T14:31:18.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dealing with huge pandas data frames<p>I have a huge database (of 500GB or so) an was able to put it in pandas. The databasse contains something like 3970521...
72,987,878
asInstanceOf err in Scala<p><a href="https://i.stack.imgur.com/8tm9O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8tm9O.png" alt="enter image description here" /></a></p> <h3>why it is give me an error</h3> <h4>I already write the code correctly</h4> <blockquote> <h2>code :</h2> </blockquote> <pre...
<p>The problem is that the comment on this line is not correct:</p> <pre><code>x = 1 // true </code></pre> <p><code>1</code> is not <code>true</code> because <code>1</code> is of type <code>Int</code> and <code>true</code> is of type <code>Boolean</code>. Scala is strongly typed so it doesn't automatically convert betw...
asInstanceOf err in Scala
scala|intellij-idea|compiler-errors
0
61
1
72,989,230
72,989,230
4
true
2022-07-15T00:22:16.147Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: asInstanceOf err in Scala<p><a href="https://i.stack.imgur.com/8tm9O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8tm9O.png" alt="enter...
73,026,827
Difference of String(contentsOf: URL).data(using: .utf8) vs. Data(contentsOf: URL)<p>I have been playing with a json file in a playground and I've seen examples of reading the file like this:</p> <pre><code>do { let jsonData = try String(contentsOf: url).data(using: .utf8) } catch { ... } </code></pre> <p>And l...
<p>The difference is that <code>String(contentsOf: url)</code> tries to read <em>text</em> from that URL, whereas <code>Data(contentsOf: url)</code> reads the raw <em>bytes</em>.</p> <p>Therefore, if the file at the URL is not a plain text file, <code>String(contentsOf: url)</code> could throw an error, whereas <code>D...
Difference of String(contentsOf: URL).data(using: .utf8) vs. Data(contentsOf: URL)
swift|swift-string|swift-data
0
61
1
73,027,237
73,027,237
4
true
2022-07-18T18:15:18.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Difference of String(contentsOf: URL).data(using: .utf8) vs. Data(contentsOf: URL)<p>I have been playing with a json file in a playground and I've seen examp...
72,980,392
OWL : Does disjoint "general class axiom" via a property only works if classes themselves are disjointed?<p>For example 1 :</p> <ul> <li>Classes : <strong>A and B</strong>.</li> <li>Property : <strong>hasValue</strong>.</li> <li>Axiom : <strong>hasValue some A disjointWith hasValue some B</strong>.</li> <li>Individual ...
<p>I have tried this now myself and for your first example I get an inconsistency with the following explanation:</p> <p><a href="https://i.stack.imgur.com/zX8tq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zX8tq.png" alt="Explanation of inconsistency" /></a></p> <p>Here is the actual ontology giv...
OWL : Does disjoint "general class axiom" via a property only works if classes themselves are disjointed?
owl|semantic-web|protege
0
61
1
72,986,141
72,986,141
4
true
2022-07-14T12:19:49.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: OWL : Does disjoint "general class axiom" via a property only works if classes themselves are disjointed?<p>For example 1 :</p> <ul> <li>Classes : <strong>A ...
73,015,776
PyQt5: fill all columns of QTableWidget<p>I am trying to solve the sorting issue and found this answer: <a href="https://stackoverflow.com/questions/13074035/qtablewidget-integer">QTableWidget Integer</a></p> <p>So I borrowed the code, and tried to test and fill multiple columns. However, the second column doesn't get ...
<p>The problem is that you enable sorting before adding items to the table. This means that the table is resorted every time a new item is added. If you scroll down to the bottom of the table in your example, you will see that the last row of the second column has a value. So what is happening is that the same cell of ...
PyQt5: fill all columns of QTableWidget
python|sorting|pyqt5|qtablewidget
1
61
2
73,016,224
73,016,224
4
true
2022-07-17T22:26:19.547Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PyQt5: fill all columns of QTableWidget<p>I am trying to solve the sorting issue and found this answer: <a href="https://stackoverflow.com/questions/13074035...
72,871,822
Greek vowels with accents shown as two characters instead of a single one<p>I am handling input in <strong>Greek</strong> language, where vowels can have <strong>accents</strong>.</p> <p>I noticed some strange input in words that contain vowels with accents, sometimes the same vowel with accent seems to be <strong>two ...
<p>The root cause: Sometime there is many different ways to represent the same glyph with Unicode. Usually we convert to a canonical form, but there is two canonical/normalization form (decomposed: NFD and composed: NFC). Apple prefers the first (and it was the original prefered way of Unicode), most of the other opera...
Greek vowels with accents shown as two characters instead of a single one
java|string|character-encoding
0
61
2
72,871,948
72,871,948
5
true
2022-07-05T15:17:35.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Greek vowels with accents shown as two characters instead of a single one<p>I am handling input in <strong>Greek</strong> language, where vowels can have <st...
72,862,894
Python list comprehension to get max() of each list column<p>I have following list of lists:</p> <pre><code>lst = [[1,3], [3,4], [2,7], [6,5]] </code></pre> <p>How do I create &quot;oneliner&quot; to get list of max() of each &quot;column&quot;?</p> <p>So, for the example above, the resulting list should be following: ...
<p>You can use <a href="https://docs.python.org/3/library/functions.html#zip" rel="noreferrer"><strong><code>zip</code></strong></a> which splits the pairs into two separate tuples:</p> <pre><code>&gt;&gt;&gt; lst = [[1,3], [3,4], [2,7], [6,5]] &gt;&gt;&gt; list(zip(*lst)) [(1, 3, 2, 6), (3, 4, 7, 5)] </code></pre> <p...
Python list comprehension to get max() of each list column
python|list-comprehension
-1
61
2
72,862,914
72,862,914
6
true
2022-07-05T00:06:32.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python list comprehension to get max() of each list column<p>I have following list of lists:</p> <pre><code>lst = [[1,3], [3,4], [2,7], [6,5]] </code></pre> ...
72,777,689
Finding median of a list of list of different length<p>here is my problem. I got a list of lists like this:</p> <pre><code>[ [1, 1, 1, 18, 35, 35, 70, 133, 280], [1, 1, 1, 53, 90, 101, 130, 148, 178], [1, 1, 1, 18, 35, 133, 133, 164], [1, 1, 1, 18, 101, 108], [1, 1, 18, 36, 86, 118, 126] ] </code></pre> <p>The list can...
<p>Without the overhead of <em>numpy</em> you could do this:</p> <pre><code>values = [ [1, 1, 1, 18, 35, 35, 70, 133, 280], [1, 1, 1, 53, 90, 101, 130, 148, 178], [1, 1, 1, 18, 35, 133, 133, 164], [1, 1, 1, 18, 101, 108], [1, 1, 18, 36, 86, 118, 126] ] def median(list_): m = len(list_) // 2 ...
Finding median of a list of list of different length
python|list|median
-1
61
1
72,777,820
72,777,820
-1
true
2022-06-27T19:58:27.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Finding median of a list of list of different length<p>here is my problem. I got a list of lists like this:</p> <pre><code>[ [1, 1, 1, 18, 35, 35, 70, 133, 2...
72,974,731
Cannot import components with React<p>So I'm getting into React and I cannot see my components, only my background image of the CSS.</p> <p>Here is my App.jsx:</p> <pre class="lang-jsx prettyprint-override"><code>import React from 'react' import Header from './components/header/Header' import Nav from './components/nav...
<p>Until I do not see the logs from your console I can only assume what I am wrong. <br /> This is a very fresh post and I assume you are using the latest version of react 18. <br/> Hopefully this will help :)</p> <pre><code>// React 17 import ReactDOM from 'react-dom' import App from './App' ReactDOM.render(&lt;App/...
Cannot import components with React
javascript|reactjs
-1
61
1
72,974,991
72,974,991
-1
true
2022-07-14T03:03:19.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot import components with React<p>So I'm getting into React and I cannot see my components, only my background image of the CSS.</p> <p>Here is my App.js...
72,244,447
Rails validation error message not showing<p>I am trying to add a custom error message for my model validation. Seen below:</p> <pre class="lang-rb prettyprint-override"><code>validates :cost, numericality: { greater_than_or_equal_to: 0, message: :custom_error } </code></pre> <p>My en.yml looks like this:</p> <pre><cod...
<p>After some digging I was able to find out that it wasn't related to custom error messages and instead the lack of <code>errors.full_messages</code> always being empty which affected every type of validation error (possibly other types of errors as well).</p> <p>Once I dug into that method I found that it was being o...
Rails validation error message not showing
ruby-on-rails
1
62
2
72,679,634
72,679,634
0
true
2022-05-14T23:07:29.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rails validation error message not showing<p>I am trying to add a custom error message for my model validation. Seen below:</p> <pre class="lang-rb prettypri...
72,769,906
How to make 3 columns in 1 cell in HTML table<p>How to create 3 columns in 1 cell of HTML table like in this image below created from Excel.</p> <p><img src="https://i.stack.imgur.com/QBKka.png" alt="Excel table" /></p> <p>I tried to use unlist method as subtitute but it looks ugly on my table.</p> <p><img src="https:/...
<p>you can use colSpan and rowSpan property to divide the head of table into 2 rows and the body of table into 3 rows :</p> <pre><code> &lt;table style={{ width: &quot;100%&quot; }}&gt; &lt;thead&gt; &lt;tr&gt; &lt;td rowSpan={2}&gt;TYPE OF INTERNSHIP PROGRAM ACTIVITY&lt;/td&gt; &lt...
How to make 3 columns in 1 cell in HTML table
html|reactjs
0
62
1
72,772,964
72,772,964
0
true
2022-06-27T09:34:16.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make 3 columns in 1 cell in HTML table<p>How to create 3 columns in 1 cell of HTML table like in this image below created from Excel.</p> <p><img src=...
72,773,087
How to save contenteditable input to a variable so I can print it on screen<p>I have this code and I want to save a contenteditable text to a variable so i can print it on screen. HTML:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre c...
<p>From what I understand you want this :</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>function saveEdits() { //get the editable element var editElem = document.getE...
How to save contenteditable input to a variable so I can print it on screen
javascript|html
4
62
3
72,773,191
72,773,191
0
true
2022-06-27T13:40:46.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to save contenteditable input to a variable so I can print it on screen<p>I have this code and I want to save a contenteditable text to a variable so i c...
72,779,651
sending email to office 365 email using smtp<p>I have a contact form built with Laravel, and I want to send an email to my company email which is hosted from office 365 and my website hosting is Cloudflare</p> <p>this is the env file configuration</p> <pre><code>MAIL_MAILER=smtp MAIL_DRIVER=sendmail MAIL_HOST=smtp.mail...
<p>I have fixed the problem, Cloudflare needs to add records to the domain to be authenticated by office 365 <a href="https://community.cloudflare.com/t/need-help-with-office-365-error/80501/4" rel="nofollow noreferrer">https://community.cloudflare.com/t/need-help-with-office-365-error/80501/4</a></p>
sending email to office 365 email using smtp
email|office365|laravel-9
-1
62
1
72,785,598
72,785,598
0
true
2022-06-28T00:54:48.147Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sending email to office 365 email using smtp<p>I have a contact form built with Laravel, and I want to send an email to my company email which is hosted from...
72,785,818
Get Minimum element from array then increase by 1 every time getMin() gets called<p>Given an sorted array = {1, 2, 3} provide getMin() method which returns minimum element and increment it by 1.</p> <pre><code>getMin(): return 1 and increment the min no by 1, array = {2, 2, 3} getMin(): return 2 and increment the min n...
<p>We have two states for the array: either (1) the array is sorted, or (2) we have just incremented the first of a group of the smallest element.</p> <p>If we have a smaller element ahead of a larger element, we increment the smaller element and maintain both (adjacent) pointers. If the next element is smaller, we adv...
Get Minimum element from array then increase by 1 every time getMin() gets called
arrays|algorithm|sorting|data-structures
1
62
2
72,789,814
72,789,814
0
true
2022-06-28T11:45:07.483Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get Minimum element from array then increase by 1 every time getMin() gets called<p>Given an sorted array = {1, 2, 3} provide getMin() method which returns m...
72,790,118
How to sum up all numbers entered in prompt<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var num = prompt("Enter a number"); for (var sum = 0; sum &lt;= num; sum++) { sum = su...
<p>The problem with your code is that you're using <code>sum</code> for the loop and for the answer. That's messing everything up. You can use a variable for the loop and another variable for the sum.</p> <p>Maybe that works for you.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-...
How to sum up all numbers entered in prompt
javascript
0
62
3
72,790,160
72,790,160
0
true
2022-06-28T16:27:50.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to sum up all numbers entered in prompt<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snipp...
72,790,488
I need help understanding why am I am not getting any results with below query<p>Using query #1 below I get the the following results</p> <pre><code>select DATE, count (DATE) from TABLE1 group by DATE </code></pre> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>DATE</th> <th>COUNT(DATE)</th> <...
<p>If your column is a <code>DATE</code> data type and you want all the values from one day then:</p> <pre class="lang-sql prettyprint-override"><code>Select * from table_name where date_column &gt;= DATE '2022-06-28' and date_column &lt; DATE '2022-06-29' </code></pre> <p>If you want all the values at a particu...
I need help understanding why am I am not getting any results with below query
sql|oracle
0
62
1
72,791,169
72,791,169
0
true
2022-06-28T16:56:51.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I need help understanding why am I am not getting any results with below query<p>Using query #1 below I get the the following results</p> <pre><code>select D...
72,777,237
Pandas Style to Excel using xlsxwriter as engine<p>I am trying to return background color and font size but it only works when I return only one value, what's wrong in my code ?</p> <p>this one wont work, I get this error :</p> <pre><code>&quot;&quot;&quot; Format cells in Excel file and output to screen if on windows&...
<p>I had to use ; instead of ,(comma) to pass as many paramters as I want.</p> <pre><code>&quot;&quot;&quot; Format cells in Excel file and output to screen if on windows&quot;&quot;&quot; color = 'red' if '&gt;' in str(val) else 'lightgray' font_size = '45px' return f'font-size: {font_size} ; background-color: {color}...
Pandas Style to Excel using xlsxwriter as engine
python|excel|pandas
0
62
1
72,812,373
72,812,373
0
true
2022-06-27T19:09:45.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas Style to Excel using xlsxwriter as engine<p>I am trying to return background color and font size but it only works when I return only one value, what'...
72,801,951
Is it possible to integrate Playwright-Javascript framework to azure devops pipeline?<p>How to integrate Playwright-Javascript Framework with Azure DevOps pipeline for automating the process.</p>
<p>Yes you can do that you have to use two task</p> <ol> <li>npm install</li> <li>command line (script) (command = npx playwright test)</li> </ol>
Is it possible to integrate Playwright-Javascript framework to azure devops pipeline?
javascript|azure-devops|automated-tests|devops|playwright
-2
62
1
72,817,927
72,817,927
0
true
2022-06-29T13:08:16.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to integrate Playwright-Javascript framework to azure devops pipeline?<p>How to integrate Playwright-Javascript Framework with Azure DevOps pi...
72,813,269
Get link of the page that createWindow() opens<p>Im trying to make a tab system</p> <p>This code gives me the link of the page that i am currently on, i would like to get the link of the page i clicked on. In this code if i change <code>return nullptr;</code> to <code>return this;</code>, the clicked page will open in ...
<p>This little change worked for me:</p> <pre><code>QWebEngineView* createWindow(QWebEnginePage::WebWindowType type) { if(type == QWebEnginePage::WebBrowserTab) { MyWebView *webView = new MyWebView(); emit new_tab(webView); return webView; } return nullptr; } </code></pre> <p>this...
Get link of the page that createWindow() opens
c++|qt
-1
62
1
72,820,960
72,820,960
0
true
2022-06-30T09:18:26.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get link of the page that createWindow() opens<p>Im trying to make a tab system</p> <p>This code gives me the link of the page that i am currently on, i woul...
72,822,291
Changing braces in a string with data from a json<p>I have a template string that I want to change words with {{}} around them to data of a similar name from a json file. I am using google apps script for this.</p> <p>Ex. Hello my name is {{First Name}} {{Last Name}}. --&gt; Hello my name is Sherlock Holmes.</p> <p>Jso...
<p>Since your <code>data</code> variable is a dictionary within an array, referencing <code>data[key.replace(/[{}]+/g, &quot;&quot;)]</code> returns <code>undefined</code>. This can be remedied by instead inputting the following for your <code>data</code> variable.</p> <pre class="lang-json prettyprint-override"><code>...
Changing braces in a string with data from a json
javascript|json|regex|string|google-apps-script
0
62
1
72,822,629
72,822,629
0
true
2022-06-30T21:36:57.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Changing braces in a string with data from a json<p>I have a template string that I want to change words with {{}} around them to data of a similar name from...
72,831,331
How to do operations inside pandas dataframe based on conditions<p>I have this pandas dataframe:</p> <p><a href="https://i.stack.imgur.com/2yxDU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2yxDU.png" alt="dataframe i have" /></a></p> <p>I want that</p> <p>IF there is a day that a row of condition...
<p>You can groupby <code>date</code> column and compare the <code>condition</code> by shift</p> <pre class="lang-py prettyprint-override"><code>m = (df.groupby('date', as_index=False, group_keys=False) .apply(lambda g: g['condition_2'].eq('True') &amp; g['condition_1'].shift(-1).eq('True'))) df['condition_2'] = d...
How to do operations inside pandas dataframe based on conditions
python|pandas|dataframe
0
62
1
72,831,672
72,831,672
0
true
2022-07-01T15:14:20.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to do operations inside pandas dataframe based on conditions<p>I have this pandas dataframe:</p> <p><a href="https://i.stack.imgur.com/2yxDU.png" rel="no...
72,813,691
Handling hotfix in gitversion<p>I'm trying to understand how GitVersion works. Here there is a snippet for 'gitversion /showconfig'</p> <pre><code>branches: develop: mode: ContinuousDeployment main: mode: ContinuousDelivery hotfix: mode: ContinuousDelivery ... </code></pre> <p>After shipping the relea...
<p>The right branch was <strong>hotfix</strong> and not <strong>fix</strong></p> <pre><code>&gt; git checkout master &gt; gitversion /showvariable FullSemVer 1.1.0 &gt; git checkout -b hotfix/1.1.1 # Fix &gt; Add-Content -Path EmptyFile7.txt -Value 'Correction' &gt; git add --all; git commit -m &quot;fix(gitversion):...
Handling hotfix in gitversion
semantic-versioning|gitversion
0
62
1
72,831,789
72,831,789
0
true
2022-06-30T09:49:40.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Handling hotfix in gitversion<p>I'm trying to understand how GitVersion works. Here there is a snippet for 'gitversion /showconfig'</p> <pre><code>branches: ...
72,842,307
Measuring packet per second for connected clients IP addresses<p>How can we determine the packet rate of clients connected to our server in case of multi client server using Winsock. The idea I came up with is keeping a frequency map for IP addresses of all the clients and storing the packets count for some arbitrary a...
<p>Per comments:</p> <blockquote> <p>If someone is sending too fast, I'd like to block him permanently rather than receiving his messages less frequently. Something like this is what I'm trying to achieve</p> </blockquote> <p>If this was UDP, I'd 100% be onboard with what you are trying to do and give the code I have. ...
Measuring packet per second for connected clients IP addresses
python|c++|sockets|network-programming|winsock
-1
62
1
72,842,940
72,842,940
0
true
2022-07-02T20:43:18.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Measuring packet per second for connected clients IP addresses<p>How can we determine the packet rate of clients connected to our server in case of multi cli...
72,846,499
How do I create a space around special characters in python?<p>This is what I want the code to do:</p> <pre><code>string = &quot;1+1+1&quot; #insert code here output: &gt;&gt;&gt;1 + 1 + 1 </code></pre> <p>Basically I'm trying to create a &quot; &quot; around the special characters. (In this case it's the plus signs)...
<p>For the above string you can try this as there is only one special character</p> <pre><code>print(' + '.join(S.split(&quot;+&quot;))) </code></pre> <p>or</p> <pre><code>print(S.replace(&quot;+&quot;,&quot; + &quot;)) </code></pre> <p>If you have multiple of them then try something like</p> <pre><code>result = &quot;...
How do I create a space around special characters in python?
python|string|math
0
62
4
72,846,550
72,846,550
0
true
2022-07-03T12:27:20.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I create a space around special characters in python?<p>This is what I want the code to do:</p> <pre><code>string = &quot;1+1+1&quot; #insert code he...
72,845,155
Hiding tab bar with nested navigation<p>I used nested navigation for my problem. Currently, however, the tab bar is only displayed on pages listed in TabNavigator. Is it possible to display on other pages as well? It is possible to display the tab bar also on screen5. I also have screen6 where I don't want to display t...
<p>I think you are aksing about this.</p> <pre><code>const Tab = createBottomTabNavigator(); const Stack = createStackNavigator(); const HomeNavigator = () =&gt; { &lt;Stack.Navigator&gt; &lt;Stack.Screen name=&quot;Screen1&quot; component={Screen1} /&gt; &lt;Stack.Screen name=&quot;Screen2&quot; component={...
Hiding tab bar with nested navigation
react-native|react-native-tabnavigator
0
62
1
72,846,898
72,846,898
0
true
2022-07-03T08:54:47.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hiding tab bar with nested navigation<p>I used nested navigation for my problem. Currently, however, the tab bar is only displayed on pages listed in TabNavi...
72,843,819
What IP to use in order to perform a UDP broadcast?<p>I'm writing a very simple service discovery protocol over LAN. The idea is to broadcast to the entire LAN via UDP the connection data of the server.</p> <p>I am able to pass data from my broadcaster to my listener, but only if I use the address '0.0.0.0'. If I use t...
<p>Broadcast is basically deprecated because it interrupts <em>every host</em> on the LAN, even those not interested, e.g. routers, printers, etc. Broadcast was eliminated from IPv6, so the application could not be ported, and many companies will reject applications using broadcast for security reasons. The modern way ...
What IP to use in order to perform a UDP broadcast?
python|networking|udp|python-asyncio
2
62
2
72,847,447
72,847,447
0
true
2022-07-03T03:54:28.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What IP to use in order to perform a UDP broadcast?<p>I'm writing a very simple service discovery protocol over LAN. The idea is to broadcast to the entire L...
72,847,756
ContentShape placement of button side effect for custom shape?<p>I would like to create a button out of my custom shapes, but it seems the <code>contentShape</code> is not taking effect when applied to the shape itself.</p> <p><a href="https://i.stack.imgur.com/haYFW.gif" rel="nofollow noreferrer"><img src="https://i.s...
<p>I don't see anything &quot;awkward&quot; here... by default button hit-test area is rectangular independently of Label (which is just presented label, button does not care about it).</p> <p>If <code>contentShape</code> at that level confuses you, it is possible to create a modified styles and use it, like</p> <pre><...
ContentShape placement of button side effect for custom shape?
swiftui
0
62
1
72,847,832
72,847,832
0
true
2022-07-03T15:30:06.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ContentShape placement of button side effect for custom shape?<p>I would like to create a button out of my custom shapes, but it seems the <code>contentShape...
72,851,333
Use of 'format' in ARM templates<p>I want to know the meaning of 'format' in Azure ARM templates. For eg. &quot;networkInterfaceName&quot;: &quot;[format('{0}NetInt', parameters('vmName'))]&quot;, what does 'format' do here?</p>
<blockquote> <p>what does 'format' do here?</p> </blockquote> <p><code>format</code> is an in-built <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions" rel="nofollow noreferrer">function</a> available in ARM templates which creates a formatted string based on the input v...
Use of 'format' in ARM templates
azure|azure-active-directory
0
62
1
72,851,367
72,851,367
0
true
2022-07-04T02:51:52.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use of 'format' in ARM templates<p>I want to know the meaning of 'format' in Azure ARM templates. For eg. &quot;networkInterfaceName&quot;: &quot;[format('{0...
72,836,193
C++ "Duplicate definition error", but not sure where<p>I'm trying to make TicTacToe with SFML as a beginner project, to figure stuff out first I tried to display 9 boxes on my window (grid like), but I'm getting a duplicate definition error and I'm not really sure where the problem is to be honest. Would appreciate it ...
<p>To understand what's going on here, we first have to understand how header files and <code>#include</code> work in C++.</p> <p>In C++, if you have the files:</p> <p><code>example.h</code></p> <pre><code>class Example { // ... }; </code></pre> <p><code>example.cpp</code></p> <pre><code>#include &quot;example.h&qu...
C++ "Duplicate definition error", but not sure where
c++|gcc|g++|sfml|tic-tac-toe
0
62
2
72,851,599
72,851,599
0
true
2022-07-02T03:14:25.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C++ "Duplicate definition error", but not sure where<p>I'm trying to make TicTacToe with SFML as a beginner project, to figure stuff out first I tried to dis...
72,845,107
No data scraping a table using Apps Script<p>I'm trying to scrape the first table (FINRA TRACE Bond Market Activity) of this website using Google Apps Script and I'm getting no data. <a href="https://finra-markets.morningstar.com/BondCenter/TRACEMarketAggregateStats.jsp" rel="nofollow noreferrer">https://finra-markets....
<p>This page does a lot of things in the background. First, there is a POST request to <code>https://finra-markets.morningstar.com/finralogin.jsp</code> that initiates the session. Then, XHR requests are made to load the data tables. If you grab the cookie by POST'ing to that login page, you can pass it on the desired ...
No data scraping a table using Apps Script
javascript|google-apps-script|web-scraping
0
62
1
72,853,873
72,853,873
0
true
2022-07-03T08:46:45.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: No data scraping a table using Apps Script<p>I'm trying to scrape the first table (FINRA TRACE Bond Market Activity) of this website using Google Apps Script...
72,856,250
In Python with BeautifulSoup, how do I get the url link but not the href from a soup?<p>Using the following code below:</p> <pre><code>prop_img = prop_lst.find_all('a',{'class':'mpi_img_link'}) </code></pre> <p>I get a list of the following output:</p> <pre><code>[&lt;a class=&quot;mpi_img_link&quot; href=&quot;/homede...
<p>Almost there. Try:</p> <pre><code>for img in prop_img: print(img['style']) </code></pre> <p>To pull out the url part:</p> <pre><code>import re for img in prop_img: url = re.search('\((.*)\)', img['style']).group(1) print(url) </code></pre>
In Python with BeautifulSoup, how do I get the url link but not the href from a soup?
python|html|web-scraping|beautifulsoup
0
62
1
72,856,291
72,856,291
0
true
2022-07-04T11:51:15.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In Python with BeautifulSoup, how do I get the url link but not the href from a soup?<p>Using the following code below:</p> <pre><code>prop_img = prop_lst.fi...
72,824,615
Blazor Drag and Drop broke between .NET Core 3.0 and .NET 6.0<p>I followed <a href="https://chrissainty.com/investigating-drag-and-drop-with-blazor/" rel="nofollow noreferrer">Chris Saintys demo</a> for drag and drop which was very clever. The source can be downloaded from his <a href="https://github.com/chrissainty/Si...
<p>It was the polyfill. Fix for .NET 6.0 can be found here: <a href="https://github.com/dotnet/aspnetcore/issues/41394#issuecomment-1113146280" rel="nofollow noreferrer">#41394 (comment)</a></p>
Blazor Drag and Drop broke between .NET Core 3.0 and .NET 6.0
blazor|blazor-server-side|.net-6.0
1
62
1
72,861,078
72,861,078
0
true
2022-07-01T05:09:21.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Blazor Drag and Drop broke between .NET Core 3.0 and .NET 6.0<p>I followed <a href="https://chrissainty.com/investigating-drag-and-drop-with-blazor/" rel="no...
72,828,471
chart.js gradient background problems with browser zoom<p>I have a gradient in my chart.js as background. This works well if my screen zoom is set to 100%</p> <p>If I change my zoom ([Strg] + [+] or [-]), the gradient doesn't take this in account. What can I do?</p> <p><strong>HTML:</strong></p> <pre class="lang-html p...
<p>Thanks to this guy on youtube: <a href="https://www.youtube.com/c/ChartJS-tutorials" rel="nofollow noreferrer">Chart JS</a> with &quot;<a href="https://www.youtube.com/watch?v=x6JqlI-0CMY" rel="nofollow noreferrer">How to Create Diagonal Gradient Background in ChartArea in Chart JS</a>&quot; my gradient is now worki...
chart.js gradient background problems with browser zoom
javascript|background|gradient
0
62
2
72,867,171
72,867,171
0
true
2022-07-01T11:18:40.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: chart.js gradient background problems with browser zoom<p>I have a gradient in my chart.js as background. This works well if my screen zoom is set to 100%</p...
72,861,694
How can I create a query to display the development of new created ERC-20 contracts on Ethereum with Dune without counting duplicates?<p>I am trying to display the development of new created ERC-20 smart contracts on Ethereum. For this purpose I am using the Analytics platform Dune which provides a several databases fo...
<p>try this:</p> <pre><code>with everything as ( select contract_address as ca, min(date_trunc('quarter', evt_block_time)) as time from erc20.&quot;ERC20_evt_Transfer&quot; group by contract_address ) select time, count(ca) as &quot;Count&quot; from everything group by time </code></pre>
How can I create a query to display the development of new created ERC-20 contracts on Ethereum with Dune without counting duplicates?
sql|blockchain|ethereum|analytics|dune
0
62
1
72,868,462
72,868,462
0
true
2022-07-04T20:21:11.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I create a query to display the development of new created ERC-20 contracts on Ethereum with Dune without counting duplicates?<p>I am trying to displ...
72,851,164
OpenCV Not Properly Writing Adding Frames to Video<p>I'm using mss, numpy, and OpenCV to make my own recording software, but when I record, all of my videos end up with a 258 bytes file size (no matter the length of the video), and I can't view the video. No frames seem to be in my videos. What am I doing wrong?</p> <p...
<p>At last, I finally found my answer. Turns out, this problem had a super simple solution that I somehow missed this entire time.</p> <p>As it turns out, either NumPy or Open Cv (I don't know which of the two), really <em>really</em> hates mss, but really likes Python Pillow, so, all you have to do is convert it to an...
OpenCV Not Properly Writing Adding Frames to Video
python|numpy|opencv|screen-capture|mss
0
62
2
72,877,004
72,877,004
0
true
2022-07-04T02:13:30.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: OpenCV Not Properly Writing Adding Frames to Video<p>I'm using mss, numpy, and OpenCV to make my own recording software, but when I record, all of my videos ...
72,888,153
Passwords are not being encrypted in MYSQL<p>I am currently trying to use bcrypt to encrypt/hash my passwords from my seeds and store them in MYSQL but it keeps giving me the same password. I am using python. Any help would be appreciated!</p> <p>User.py</p> <pre><code>from app.db import Base from sqlalchemy.orm import...
<p>Assuming that:</p> <ul> <li>you have copied the code exactly as in your original file</li> <li>and that the “keeps giving me the same password” means that in database the open text password gets saved and not the hash from validators</li> </ul> <p>If both above is correct, the issue is with the identation, i.e. the ...
Passwords are not being encrypted in MYSQL
python|mysql|bcrypt
2
62
2
72,888,272
72,888,272
0
true
2022-07-06T18:10:56.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Passwords are not being encrypted in MYSQL<p>I am currently trying to use bcrypt to encrypt/hash my passwords from my seeds and store them in MYSQL but it ke...
72,889,500
How to find Spring Boot auto-configuration classes that are activated by adding a specific starter project to pom?<p>How Spring Boot auto-configuration classes are activated based on the maven starter projects that are included in project <code>pom.xml</code> as dependencies?</p> <p>for example, by adding <code>spring-...
<p>Autoconfiguration is one, or maybe the main one, feature of SpringBoot Basically, depending on certain conditions, some configurations or/and beans are made available. In your case here is what happens :</p> <ul> <li><em><a href="https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-securit...
How to find Spring Boot auto-configuration classes that are activated by adding a specific starter project to pom?
spring-boot
0
62
2
72,889,818
72,889,818
0
true
2022-07-06T20:27:19.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to find Spring Boot auto-configuration classes that are activated by adding a specific starter project to pom?<p>How Spring Boot auto-configuration class...
72,845,286
code event[] calendar in laravel 8 not working<p>I created a calendar with laravel 8 and PHP 8,it is running ok in php 7 but I have to upgrade to php 8 because of the demands of the times I have successfully saved data in the database but the data in mysql does not appear in the calendar, even though I have used event[...
<p>I have got the answer, I hope it helps if you want to make a calendar in Laravel</p> <p>my controller :</p> <pre><code>public function store(Request $request) { $model = new K_Jadwal; $model-&gt;kategori = $request-&gt;kategori; $model-&gt;judul = $request-&gt;judul; $model-&gt;ke...
code event[] calendar in laravel 8 not working
javascript|php|mysql|laravel-8
-1
62
1
72,891,848
72,891,848
0
true
2022-07-03T09:14:38.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: code event[] calendar in laravel 8 not working<p>I created a calendar with laravel 8 and PHP 8,it is running ok in php 7 but I have to upgrade to php 8 becau...
72,896,121
RxJS mergeMap: Inner Observable does not get executed<p>I want to upload multiple files. Before the upload can happen, I need to POST a request which returns a personId so I can link this personId to my upload files in the backend.</p> <p>The postOnboardingRequestDto$ creates a record but the files are not saved. The p...
<p>Does this work for you?</p> <pre><code>confirmOnboardingRequest() { this.onboardingRequestIsSubmitted = true; this.postOnboardingRequestDto$(this.onboardingRequestDto).pipe( mergeMap((onboardingRequestDto) =&gt; from(this.selectedFiles).pipe( map(file =&gt; new FormData().append(file.name, fil...
RxJS mergeMap: Inner Observable does not get executed
angular|rxjs|mergemap
0
62
1
72,896,842
72,896,842
0
true
2022-07-07T10:19:41.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: RxJS mergeMap: Inner Observable does not get executed<p>I want to upload multiple files. Before the upload can happen, I need to POST a request which returns...
72,892,763
Need to fix sorting order by name and price<p>I am working on school listing project. I have created database name is <code>school</code> and under I add new table name is <code>schoollist</code> Here I have many school. I have added few column on it bellow the list of column.</p> <pre><code>|-------name---------|----a...
<p>Using the same dataset as yours :</p> <p><a href="https://i.stack.imgur.com/YOXV2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YOXV2.png" alt="enter image description here" /></a></p> <p>You can achieve your goal using this query :</p> <pre><code>SELECT * FROM schoollist WHERE CONCAT(name, addr...
Need to fix sorting order by name and price
php|mysql|sql|search|full-text-search
-1
62
1
72,898,804
72,898,804
0
true
2022-07-07T05:40:29.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Need to fix sorting order by name and price<p>I am working on school listing project. I have created database name is <code>school</code> and under I add new...
72,904,357
I have tried to work around this problem to number of divisors problem but it doesnt work well after certain input<p>Given a positive integer value N. The task is to find how many numbers less than or equal to N have numbers of divisors exactly equal to 3 I have tried putting some fixes didn't worked any quick fixes or...
<p>As you mentioned in your question, there appears to be an issue with your isPrime method, since it's taking 25 as a prime number. I managed to fix it up a bit, by just doing a loop similar to what you did, but hopefully missing the gaps yours may have left:</p> <pre><code>public static boolean isPrime(int N) { i...
I have tried to work around this problem to number of divisors problem but it doesnt work well after certain input
java|debugging|math
0
62
2
72,904,694
72,904,694
0
true
2022-07-07T21:20:30.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I have tried to work around this problem to number of divisors problem but it doesnt work well after certain input<p>Given a positive integer value N. The ta...
72,901,389
Exclude child request of a transaction controller in aggregate report in JMeter<p>Have two question,</p> <ol> <li>While executing the following command,</li> </ol> <p><code>./JMeterPluginsCMD.sh --generate-csv C:\JMeterTool\Report\reportNEW.csv --input-jtl C:\JMeterTool\Report\Report.jtl --plugin-type AggregateReport</...
<p>There are 3 question here,</p> <ol> <li><p>Yes, for installing plugin in JMeter through CMDLine is,</p> <p><code>PluginsManagerCMD &lt;command&gt; [&lt;params&gt;]</code> this is basic syntax.</p> <p><code>PluginsManagerCMD jpgc-synthesis</code> for your plugin</p> <p>details are here <a href="https://jmeter-plugins...
Exclude child request of a transaction controller in aggregate report in JMeter
jmeter
0
62
2
72,905,482
72,905,482
0
true
2022-07-07T16:33:00.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Exclude child request of a transaction controller in aggregate report in JMeter<p>Have two question,</p> <ol> <li>While executing the following command,</li>...
72,905,587
ActiveRecord::RecordNotFound in PostsController#show, Couldn't find Post with 'id'=#<p>I'm coding a simple blog with posts and I can't seem to be able to get the code right for going back to the index page after &quot;destroying&quot; a post. I'm following this tutorial and I'm stuck around minute 14 <a href="https://w...
<pre class="lang-rb prettyprint-override"><code># DELETE /posts/1 def destroy @post.destroy redirect_to posts_url, notice: &quot;Post was successfully destroyed.&quot; end </code></pre> <p>This <em>destroy</em> method works with <code>button_to</code>:</p> <pre><code>&lt;%= button_to &quot;Destroy post&quot;, post...
ActiveRecord::RecordNotFound in PostsController#show, Couldn't find Post with 'id'=#
ruby-on-rails|ruby
1
62
2
72,906,167
72,906,167
0
true
2022-07-08T00:46:22.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ActiveRecord::RecordNotFound in PostsController#show, Couldn't find Post with 'id'=#<p>I'm coding a simple blog with posts and I can't seem to be able to get...
72,904,791
What's the right version of Angular to use that supports ngRx/data?<p>I'm trying to build a project (<a href="https://www.learmoreseekmore.com/2021/07/ngrx-v12-an-angular-state-management-using-ngrx-data.html" rel="nofollow noreferrer">https://www.learmoreseekmore.com/2021/07/ngrx-v12-an-angular-state-management-using-...
<p>You should keep both versions the same.</p> <p>If you're using angular 11, you should use ngrx 11.</p>
What's the right version of Angular to use that supports ngRx/data?
angular|ngrx|angular-ngrx-data|ngrx-data
0
62
1
72,907,099
72,907,099
0
true
2022-07-07T22:16:41.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What's the right version of Angular to use that supports ngRx/data?<p>I'm trying to build a project (<a href="https://www.learmoreseekmore.com/2021/07/ngrx-v...
72,907,886
JS output is NaN<p>Can someone help me with this? I'm new with javascript.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>let x1 = parseInt(document.getElementById("x1").value...
<p>Just putting the <code>value</code> inside your function.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>let x1 = document.getElementById("x1") let x2 = document.getElement...
JS output is NaN
javascript
0
62
2
72,907,942
72,907,942
0
true
2022-07-08T07:09:52.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JS output is NaN<p>Can someone help me with this? I'm new with javascript.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" d...
72,899,644
How do I create a matrix (values possibly empty) from columns and rows?<p>I have a table that contains actual data as well as empty cells. I want to parse it programatically but have some trouble doing so.</p> <p>Example:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>A</th> <th>E</th> </t...
<p>Considering the minimum requirment, where the data in the incomplete column can not be repeated. In this case we can easily fill the table using python with numpy module:</p> <pre><code>import numpy as np A, B, C, E, G, H = 1, 2, 3, 4, 5, 6 rows = np.array([[A, E], [B], [C, G], [H]]) columns = np.array([[A, B, C], ...
How do I create a matrix (values possibly empty) from columns and rows?
python|algorithm|dart|pseudocode
0
62
2
72,910,646
72,910,646
0
true
2022-07-07T14:31:05.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I create a matrix (values possibly empty) from columns and rows?<p>I have a table that contains actual data as well as empty cells. I want to parse it...
72,789,856
Why does the pygame window become unresponsive?<p>In a 'Pygame loop', I'm trying to ask for user input but when I run the program, the pygame window becomes unresponsive if I hover my mouse over it or click anywhere. Does anyone know what's going wrong?</p> <pre class="lang-py prettyprint-override"><code>import pygame ...
<p>Unfortunately, this is just a nature of pygame. When you ask for an input, the program stops and waits for the user to input something, preventing the <code>pygame.diplay.flip()</code> from occuring.</p> <p>There is two ways I can think of to fix this. Using, threads, one for powershell (terminal) and one for pygame...
Why does the pygame window become unresponsive?
pygame
0
62
1
72,925,740
72,925,740
0
true
2022-06-28T16:09:11.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does the pygame window become unresponsive?<p>In a 'Pygame loop', I'm trying to ask for user input but when I run the program, the pygame window becomes ...
72,926,976
Loop over regular expressions using Pandas str.extract<p>I want to extract numeric values from arbitrary strings in a column in my pandas dataframe.</p> <p>Two regexes that shall be looped over the column &quot;watt&quot; using str.extract.</p> <p>The str.extract function shall be applied to all NaN values.</p> <p>On t...
<p>I think you have 2 options within your framework: In both you should mask the <code>NaN</code>s, in the column you're searching in as well as the column you're writing to.</p> <p>Since <code>.str.extract()</code> returns a series with <code>expand=False</code> (default), the writing needs a bit of tuning (using <cod...
Loop over regular expressions using Pandas str.extract
python|regex|pandas
0
62
1
72,929,437
72,929,437
0
true
2022-07-10T07:57:05.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loop over regular expressions using Pandas str.extract<p>I want to extract numeric values from arbitrary strings in a column in my pandas dataframe.</p> <p>T...
72,908,154
How to setup staging, pre-prod for google dataflow jobs?<p>Say we have a dataflow job:</p> <ol> <li>Written in Apache Beam Java SDK which is a Gradle project.</li> <li>Uses pubsub stream as input, writes results to bigtable and writes logs to BigQuery.</li> </ol> <p>As with deploying a server, we can easily have a stag...
<p>The official google docs have an article on this which answered a lot of my questions.</p> <p>Here is the article:</p> <p><a href="https://cloud.google.com/architecture/building-production-ready-data-pipelines-using-dataflow-deploying" rel="nofollow noreferrer">https://cloud.google.com/architecture/building-producti...
How to setup staging, pre-prod for google dataflow jobs?
java|google-cloud-dataflow|apache-beam|google-cloud-bigtable|bigtable
-1
62
1
72,937,622
72,937,622
0
true
2022-07-08T07:34:31.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to setup staging, pre-prod for google dataflow jobs?<p>Say we have a dataflow job:</p> <ol> <li>Written in Apache Beam Java SDK which is a Gradle project...
72,939,460
curl_easy_perform() API crashes<p>I am trying to get the idea about libcurl and I am trying to download simple photo from the url. But my program crashes when it goes inside curl_easy_perform() API. Any idea about it?</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;curl/curl.h&gt; #include &lt;QDebug&gt; #include ...
<p>I wonder if you are using <code>libcurl</code> library as a win32 dll or static library, according to the <code>libcurl</code> official documentation, it says</p> <blockquote> <p>If you are using libcurl as a win32 DLL, you MUST use a CURLOPT_WRITEFUNCTION if you set this option or you will experience crashes.</p> <...
curl_easy_perform() API crashes
c++|libcurl
-1
62
1
72,939,842
72,939,842
0
true
2022-07-11T13:35:44.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: curl_easy_perform() API crashes<p>I am trying to get the idea about libcurl and I am trying to download simple photo from the url. But my program crashes whe...
72,944,728
Background Image is not responsive and stretched in reactjs and tailwindcss<p>I have created this one of the challenges from frontend-mentor that is of a farm-fruits, i did everything correct except for the home page background image. The code for Home.js is following:</p> <pre><code>import { useState } from &quot;reac...
<p>I made a mistake while making it responsive just incase if you are a newbie to working with responsive pages using tailwind css do not mix desktop version images with mobile version images. the little changes are as followed:</p> <pre><code>import React from 'react' import egg from '../assets/images/mobile/image-tra...
Background Image is not responsive and stretched in reactjs and tailwindcss
reactjs|tailwind-css
0
62
1
72,944,831
72,944,831
0
true
2022-07-11T21:12:49.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Background Image is not responsive and stretched in reactjs and tailwindcss<p>I have created this one of the challenges from frontend-mentor that is of a far...
72,944,564
EFCore 5 count child records of a child of a parent<p>I tried to find first, sorry if it's duplicate.</p> <p>I have a &quot;Posts&quot; table, and a &quot;Users&quot; table. Each Post is written by an User. My models looks like:</p> <pre><code>[Table(&quot;Post&quot;)] public class Post { [Key] [DatabaseGenerat...
<p>Im not a big fan of [NotMapped] properties because everytime im trying to use them or to find how to use them i just fail so my answer will be a little different.</p> <p>So, first thing to do</p> <pre><code> [Table(&quot;Post&quot;)] public class Post { [Key] [DatabaseGeneratedAttribute(Da...
EFCore 5 count child records of a child of a parent
c#|entity-framework-core|parent-child|counting
0
62
2
72,945,420
72,945,420
0
true
2022-07-11T20:53:55.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: EFCore 5 count child records of a child of a parent<p>I tried to find first, sorry if it's duplicate.</p> <p>I have a &quot;Posts&quot; table, and a &quot;Us...
72,887,107
How to make a button in swift trigger applescript?<p>I am making a mac menu bar app for myself by modifying the code of this <a href="https://sarunw.com/posts/how-to-make-macos-menu-bar-app/" rel="nofollow noreferrer">program</a></p> <p>I want my swift program to run applescript when the menu bar menu button is pressed...
<p>There are a few options, but I think the &quot;right&quot; way is to use <code>NSAppleScript</code>:</p> <pre class="lang-swift prettyprint-override"><code>import Foundation let ascr = &quot;tell application id \&quot;MACS\&quot; to reveal some item in the first Finder window&quot; var error: NSDictionary? if let s...
How to make a button in swift trigger applescript?
swift|xcode|applescript
0
62
1
72,945,925
72,945,925
0
true
2022-07-06T16:40:22.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a button in swift trigger applescript?<p>I am making a mac menu bar app for myself by modifying the code of this <a href="https://sarunw.com/post...
72,869,720
Using amp-selector inside amp-carousel<p>I am trying to render multiple images using amp-selector inside amp-carousel but the images are not loading. If I try to have amp-carousel inside the amp-selector tag then the images are rendering but that is not my use case.</p> <p>Can someone explain the issue and suggest anot...
<p>You have couple of things done wrong. <code>SRC</code> attribute in <code>AMP-IMG</code> linked to the page, but not to the image, <code>SRC</code> attribute has to end with <code>.jpg</code>, <code>.png</code>, <code>.svg</code> etc... Second thing is that image width and height has to be same as image dimensions. ...
Using amp-selector inside amp-carousel
amp-html
0
62
1
72,953,611
72,953,611
0
true
2022-07-05T12:48:19.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using amp-selector inside amp-carousel<p>I am trying to render multiple images using amp-selector inside amp-carousel but the images are not loading. If I tr...
72,909,659
Angular: Formarray inside Formarray not setting the values on FormControl<p>I have a form that contains a FormArray inside which you can dynamically add values ​​and in this case I can get the values ​​through the FormControl.</p> <pre><code>firstGroup = this._formBuilder.group({ dataArray: new UntypedFormArray([]), }...
<p>After many attempts and read and see lot of examples, i've found the solution.</p> <p>First i've created an aux array.</p> <pre><code> auxDataSource: any = []; </code></pre> <p>When I add a new inner line I turn the auxDataSource in a new MatTableDataSource</p> <pre><code> addInnerLine(i: any) { const control ...
Angular: Formarray inside Formarray not setting the values on FormControl
angular|angular-material|formarray
0
62
1
72,955,196
72,955,196
0
true
2022-07-08T09:53:43.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular: Formarray inside Formarray not setting the values on FormControl<p>I have a form that contains a FormArray inside which you can dynamically add valu...
72,956,224
Matplotlib scatter plot title and axis labels<p>I have written some code that plots the corners of a square and the center with the corrosponding value assigned to that square. The coordinates are stored as two numpy arrays in the following way:</p> <pre><code>coorCenter = np.array([[ 19.99812616, 39.9060875 ], ...
<p>Just before <code>pyplot.show()</code>, add these lines:</p> <pre class="lang-py prettyprint-override"><code>pyplot.title('Title here') pyplot.xlabel('X-Label') pyplot.ylabel('Y-Label') </code></pre>
Matplotlib scatter plot title and axis labels
python|numpy|matplotlib
-2
62
1
72,956,262
72,956,262
0
true
2022-07-12T17:28:28.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Matplotlib scatter plot title and axis labels<p>I have written some code that plots the corners of a square and the center with the corrosponding value assig...
72,956,424
How can I retrieve phone number of caller in Twilio Flex?<p>I am trying to retrieve caller phone number in the Flex plug-in. Using the caller phone number, I need to change the URI of the CRMContainer.</p> <p>I have tried following methods but can't find caller phone number.</p> <p><strong>First</strong> method: functi...
<p>Did you trying looking at the payload:</p> <p><code>payload.task.attributes</code> specifically:</p> <p><code>payload.task.attributes.from</code> ?</p>
How can I retrieve phone number of caller in Twilio Flex?
twilio|twilio-flex
0
62
1
72,957,840
72,957,840
0
true
2022-07-12T17:45:22.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I retrieve phone number of caller in Twilio Flex?<p>I am trying to retrieve caller phone number in the Flex plug-in. Using the caller phone number, I...
72,946,532
BuildFire LocalStorage Not Saving Between Admin and Widget<p>I am having issue in BuildFire that works on my local computer but fails in production when the plugin is uploaded.</p> <p>In my plug-in, I am having the user enter and save values to the buildfire local storage as such in my Content.js:</p> <pre><code>functi...
<p>localStorage is not meant to be shared between Control and Widget as the Widget should be able to run anywhere isolated from Control.</p> <p>If you're looking to use localStorage as a shared communication you can check <a href="https://sdk.buildfire.com/docs/messaging-to-sync-your-control-to-widget/" rel="nofollow n...
BuildFire LocalStorage Not Saving Between Admin and Widget
javascript|reactjs|promise|local-storage|buildfire
1
62
1
72,963,459
72,963,459
0
true
2022-07-12T02:50:52.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: BuildFire LocalStorage Not Saving Between Admin and Widget<p>I am having issue in BuildFire that works on my local computer but fails in production when the ...
72,966,935
CDK: which command should I run after changing my code?<p>I'm running aws serverless using aws cdk and aws-sdk.</p> <p>I wrote my code and then ran the following commands:</p> <pre><code>cdk synth cdk deploy </code></pre> <p>Now I update the code locally on my machine and want to push the changes.</p> <ul> <li>Which co...
<p>Just run the same commands again cdk synth cdk deploy</p>
CDK: which command should I run after changing my code?
aws-lambda|aws-cdk
0
62
3
72,966,972
72,966,972
0
true
2022-07-13T13:12:09.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CDK: which command should I run after changing my code?<p>I'm running aws serverless using aws cdk and aws-sdk.</p> <p>I wrote my code and then ran the follo...
72,948,355
How to replace if else dict python odoo-14<p>I have a set of records. How do I replace all 'if' with 'dict'?</p> <pre><code>department_dict = {} #I'm stuck at this point. for department in reconciliation_act.reconciliation_act_line_ids.mapped(&quot;department_id.name&quot;): if department == 'CPA': .... ...
<p>I found a solution and did it this way</p> <pre><code>sales_cpa = 'Sales CPA' sales_inapp = 'Sales Inapp' sales_alfasearch = 'Sales Alfasearch' sales_new_mb = 'Sales New MB' departments_dict = { 'CPA': sales_cpa, 'New MB': sales_new_mb, 'Alfasearch': sales_alfasearch, 'inApp': sales_inapp, } for rec...
How to replace if else dict python odoo-14
python|odoo-14
0
62
4
72,967,651
72,967,651
0
true
2022-07-12T07:11:15.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to replace if else dict python odoo-14<p>I have a set of records. How do I replace all 'if' with 'dict'?</p> <pre><code>department_dict = {} #I'm stuck a...
72,956,864
blob files are empty when downloaded from mysql using php<p>I am new to php. Written some php code to upload, view and download from mysql db. Everything is working well except download. When downloading a file, its downloaded but empty when opened. I am uploading and downloading directly from db. No local files in fil...
<p>Ok. The problem was with the db. We need to set the table field &quot;content&quot; <strong>type</strong> to <strong>longblob</strong> or the file will get corrupted during upload as it is larger in size and will not fully upload.</p>
blob files are empty when downloaded from mysql using php
php
0
62
3
72,968,864
72,968,864
0
true
2022-07-12T18:28:38.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: blob files are empty when downloaded from mysql using php<p>I am new to php. Written some php code to upload, view and download from mysql db. Everything is ...
72,939,353
Does redis pipelining guarantee repsonse order in cluster mode?<p>I use Spring Data Redis and Redis in cluster-mode. I want to check some parameters for existing.</p> <pre><code> val results = redisTemplate.executePipelined { connection -&gt; keyParams.forEach { params-&gt; val key = generat...
<p>In order to use pipeline you will need all pipeline operations involve keys hashing into same slot. If you do so than yes, you will receive answer with same order of operations responses.</p> <ol> <li>You will have keys to hash to same slot in all operations you perform in pipeline</li> <li>Yes order is guaranteed</...
Does redis pipelining guarantee repsonse order in cluster mode?
java|kotlin|redis|spring-data
2
62
1
72,972,018
72,972,018
0
true
2022-07-11T13:28:09.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does redis pipelining guarantee repsonse order in cluster mode?<p>I use Spring Data Redis and Redis in cluster-mode. I want to check some parameters for exis...
72,960,851
Landscape mode not working in App release (Flutter)<p>I need help, I am using flutter to make App will have 3 interfaces 1- Mobile application (portrait) 2- Tablet/iPad (portrait) 3- Tablet/iPad (Landscape)... during debugging stage this was working perfectly till I made the app release... now the App is detecting the ...
<p>I finally find the solution for the issue, the main cause is <code>SystemChrome</code> since as per my code I wanted the mobile screen to be in the portrait mode always so I added</p> <pre><code> SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); } </code></pre> <p>and for some how the a...
Landscape mode not working in App release (Flutter)
flutter|dart|flutter-dependencies|flutter-test
0
62
2
72,974,379
72,974,379
0
true
2022-07-13T04:11:05.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Landscape mode not working in App release (Flutter)<p>I need help, I am using flutter to make App will have 3 interfaces 1- Mobile application (portrait) 2- ...
72,873,462
How to fix a bug in the catch function Discord.js<p>I am making a code to ban, and I encountered such a problem that the bot does not stop playing the code</p> <p>code</p> <pre><code>message.guild.members.ban(args[0]).catch(err =&gt; { if (err.code === 10013) return message.channel.send({ embeds: [new Messa...
<pre class="lang-js prettyprint-override"><code>message.guild.members.ban(args[0]).then(banu =&gt; { message.reply({ embeds: [new MessageEmbed().setTitle('Ban').setDescription(`User - ${banu} ban\Mod - ${message.author}\nReson - ${args.slice(1).join(' ')}`)] }) }).catch(err =&gt; { if (err.code === 10013) r...
How to fix a bug in the catch function Discord.js
javascript|node.js|discord.js
0
62
1
72,979,983
72,979,983
0
true
2022-07-05T17:33:37.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to fix a bug in the catch function Discord.js<p>I am making a code to ban, and I encountered such a problem that the bot does not stop playing the code</...
72,980,821
How to change Elevated button's title and color onpressed<p>I'm developing an app to make meal reservations, and I have an <code>ElevatedButton</code> that opens an alert when pressed. This alert is where the user is able to confirm the reservation. So, the alert has 2 text buttons, and I need that when the &quot;sim&q...
<p>To change the state of a widget you can use setState</p> <pre><code>enum StatusReserva { y, n } Color statusToColor(StatusReserva value) { Color color = Colors.green; switch (value) { case StatusReserva.n: break; case StatusReserva.y: color = Colors.red; break; } return color; } c...
How to change Elevated button's title and color onpressed
flutter|dart|button
0
62
3
72,981,360
72,981,360
0
true
2022-07-14T12:50:45.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change Elevated button's title and color onpressed<p>I'm developing an app to make meal reservations, and I have an <code>ElevatedButton</code> that o...
72,968,411
Custom Angular button component needs to fire event<p><strong>TL;DR:</strong> I have created a button component in Angular and I want to utilise the best practice reactive behaviour in this button firing behaviour in whichever component decides to use it. I don't know what that best practice is.</p> <p>I have created a...
<p>The best code I have come up with so far is this:</p> <pre><code>import { Component, ElementRef, EventEmitter, Input, Output, ViewChild } from &quot;@angular/core&quot;; import { combineLatest, fromEvent, Observable, Subject } from &quot;rxjs&quot;; import { debounceTime, distinctUntilChanged, filter, map, takeUntil...
Custom Angular button component needs to fire event
angular|button|rxjs|reactive
0
62
1
72,983,358
72,983,358
0
true
2022-07-13T14:57:35.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Custom Angular button component needs to fire event<p><strong>TL;DR:</strong> I have created a button component in Angular and I want to utilise the best pra...
72,977,524
No preview for the image I uploaded from nodejs code to salesforce system<p>According to <a href="https://www.pjgalbraith.com/uploading-files-to-salesforce-using-jsforce/" rel="nofollow noreferrer">this</a> blog, I'm trying to upload a file to salesforce.</p> <p>This is part of ny code:</p> <pre><code>const base64Conte...
<p>I found the problem. The image should be buffer and not base64...</p> <pre><code>const buffer = fs.readFileSync('/home/***/Desktop/version.png'); </code></pre>
No preview for the image I uploaded from nodejs code to salesforce system
javascript|node.js|base64|salesforce|tobase64string
1
62
1
72,985,378
72,985,378
0
true
2022-07-14T08:29:57.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: No preview for the image I uploaded from nodejs code to salesforce system<p>According to <a href="https://www.pjgalbraith.com/uploading-files-to-salesforce-u...
72,985,977
No Hidden Layer Neural Network Doesn't Equal Logistic Regression<p>In theory, a no-hidden layer neural network should be the same as a logistic regression, however, we collect wildly varied results. What makes this even more bewildering is that the test case is incredibly basic, yet the neural network fails to learn.</...
<p>A simple way to determine if this is actually a bug is to let the number of epochs in your perceptron go to some arbitrary large number (say, 5000). You'll note that the decision boundary approaches that of your logistic regression model.</p> <p>The natural question is why LR needs fewer iterations to achieve a near...
No Hidden Layer Neural Network Doesn't Equal Logistic Regression
python|numpy|tensorflow|machine-learning|keras
0
62
1
72,986,928
72,986,928
0
true
2022-07-14T19:53:09.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: No Hidden Layer Neural Network Doesn't Equal Logistic Regression<p>In theory, a no-hidden layer neural network should be the same as a logistic regression, h...
72,989,294
react-router-dom all routes are not working<p>I am new to reactjs. I am trying to use react-router-dom but it doesn't work. Please help. or could you give me a hint? I have no idea about what can I do.</p> <p>I am only uploading a code of NotFound.js in routes but all of them are not working.</p> <pre><code> &quot;r...
<p>Since RRDv6, the <code>Route</code> component takes an <code>element</code> prop instead of <code>component</code> to render the corresponding JSX element for each path:</p> <pre><code>import React from 'react'; import { BrowserRouter, Routes, Route } from 'react-router-dom'; import Top from './Top'; import Main fr...
react-router-dom all routes are not working
reactjs
0
62
1
72,989,396
72,989,396
0
true
2022-07-15T05:10:18.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: react-router-dom all routes are not working<p>I am new to reactjs. I am trying to use react-router-dom but it doesn't work. Please help. or could you give me...
72,979,943
How to call a middleware function from inside a middleware function?<p>Noob question here. I am using Node.JS and Express (with JWT Auth) and am really struggling with the middleware. Sometimes I need to know if a user is logged in, but don't need to force them to be logged in (such as authorize middleware). For this, ...
<p>You try to find out whether a user is logged in and <em>then</em> validate their login credentials, which leads to much duplicated code. Instead, you should always try to <code>authorize()</code> the user and for certain views that don't require a logged-in user catch the <code>UnauthorizedError</code> that <code>ex...
How to call a middleware function from inside a middleware function?
node.js|express|jwt|express-jwt
0
62
1
72,990,587
72,990,587
0
true
2022-07-14T11:43:51.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to call a middleware function from inside a middleware function?<p>Noob question here. I am using Node.JS and Express (with JWT Auth) and am really strug...
72,992,202
StorageAccountAlreadyTaken - but for how long?<p>I created a <strong>Storage Account</strong> in one Azure subscription, I deleted the storage account, and now I am trying to create a new <strong>Storage Account</strong> in another Azure subscription with the same name, but I get the error <strong>StorageAccountAlready...
<p>It seems that between tenents one can expect <strong>7-8 days</strong> according to this other <a href="https://stackoverflow.com/questions/72867938/storage-account-name-already-taken-after-being-deleted-from-another-tenant">thread</a>, while it is almost instant within a tenent. I suspect that the roof is <strong>1...
StorageAccountAlreadyTaken - but for how long?
azure|azure-storage-account
0
62
1
72,993,424
72,993,424
0
true
2022-07-15T09:53:43.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: StorageAccountAlreadyTaken - but for how long?<p>I created a <strong>Storage Account</strong> in one Azure subscription, I deleted the storage account, and n...
72,996,861
Replace all the value except for the one a specified index of a numpy matrix with zero<p>I have the following array</p> <pre><code>graph2 = [[0, 10, 15, 20], [10, 0, 35, 25], [15, 35, 0, 30], [20, 25, 30, 0]] </code></pre> <p>I want to replace all to zero except for values at a specific index. L...
<p>Remember that list index <strong>Starts at 1</strong> not at 0. So your list indexes are wrong. I fixed them below</p> <pre><code>graph2 = [[0, 10, 15, 20], [10, 0, 35, 25], [15, 35, 0, 30], [20, 25, 30, 0]] skip = [(0, 3), (3, 2), (2,0)] for i in range(len(graph2)): for j in range(len(gr...
Replace all the value except for the one a specified index of a numpy matrix with zero
python|numpy
-1
62
3
72,997,230
72,997,230
0
true
2022-07-15T16:12:12.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replace all the value except for the one a specified index of a numpy matrix with zero<p>I have the following array</p> <pre><code>graph2 = [[0, 10, 15, 20],...
72,984,643
WP_Query Ajax pagination get 0 as result instead of load more posts<p>I have a custom loop with wp_query, this is a table showing the orders placed by a user. Everything works fine, content displayed, pagination and data are ok.</p> <p>To test I am showing 4 results per page, what I am trying to do is dynamically load ...
<p>For now I have found a solution even if it was not what I was trying to do, maybe I was wrong from the beginning. The idea was to go to page 2 without reloading the page. With the code below, instead of going to page 2, other elements are simply added to the already existing elements.</p> <p>Also, if I wanted to add...
WP_Query Ajax pagination get 0 as result instead of load more posts
javascript|php|jquery|ajax|wordpress
0
62
1
72,997,495
72,997,495
0
true
2022-07-14T17:42:38.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WP_Query Ajax pagination get 0 as result instead of load more posts<p>I have a custom loop with wp_query, this is a table showing the orders placed by a user...
73,006,557
Django signup form doesn't submit data or save in database or valid and invalid errors working<p>$ I was trying to submit this following codes , it never submit or saved in database or give any reaction , even the warnings or (valid and invalid of bootsrap5.2 in not working) , i need support, thank you alot</p> <p>$ th...
<p>Just looking at the HTML I can see that here:</p> <pre><code>&lt;form class=&quot;row g-3&quot; metho=&quot;POST&quot; action=&quot;&quot;&gt; </code></pre> <p>you have a typo in <code>metho=&quot;POST&quot;</code>, it should be <code>method=&quot;POST&quot;</code>, and assign the url of the endpoint to <code>action...
Django signup form doesn't submit data or save in database or valid and invalid errors working
python|django|forms|django-forms|backend
0
62
1
73,006,865
73,006,865
0
true
2022-07-16T18:03:14.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django signup form doesn't submit data or save in database or valid and invalid errors working<p>$ I was trying to submit this following codes , it never sub...
73,004,465
LUA, table.insert and nested tables, with the condition to only insert tables if not already there<p>So this is basically what i'm dealing with</p> <pre><code>datavalues={{VALUE=896},{VALUE=965},{VALUE=569}} </code></pre> <p>I do need nested table, because i'm going to modify each nested table with an added timestamp l...
<p>Error marked in code:</p> <pre class="lang-lua prettyprint-override"><code>datavalues = { } function addtotable(id) if #datavalues==0 then table.insert(datavalues,{VALUE=id}) end if #datavalues&gt;0 then for i=1,#datavalues do if datavalues[i].VALUE==id then br...
LUA, table.insert and nested tables, with the condition to only insert tables if not already there
lua|lua-table
0
62
1
73,006,926
73,006,926
0
true
2022-07-16T13:05:39.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LUA, table.insert and nested tables, with the condition to only insert tables if not already there<p>So this is basically what i'm dealing with</p> <pre><cod...
73,011,471
Android Wi-fi Connected through App but NOT Working<p>i am developing an android application (single-mode) in which app is connected to wifi programmatcally. Everything works and i get a message &quot;Connected&quot; But when i use internet in the application, it is not working. I have attached code and sample image. p...
<p>i was able to figure out the problem by adding the following line of code in onAvailble function</p> <pre><code>cm.bindProcessToNetwork(network); </code></pre>
Android Wi-fi Connected through App but NOT Working
android|android-studio|wifi|android-wifi
0
62
1
73,011,554
73,011,554
0
true
2022-07-17T11:43:25.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android Wi-fi Connected through App but NOT Working<p>i am developing an android application (single-mode) in which app is connected to wifi programmatcally....
73,012,953
TypeScript check if variable is a tuple or array of tuples<p>Given the following code for example purposes only:</p> <pre class="lang-js prettyprint-override"><code>type tuple = [key: string, value: number]; function foo(arg: tuple | Array&lt;tuple&gt;) { const arr = Array.isArray(arg[0]) ? arg : [arg]; // The typ...
<p>The compiler only sees that you're assigning either <code>arg</code> or <code>[arg]</code> to <code>arr</code>. It doesn't change what it thinks the type of <code>arg</code> is based on <code>Array.isArray(arg[0])</code>, so <code>arr</code>'s type is the union of the types of <code>arg</code> and <code>[arg]</code>...
TypeScript check if variable is a tuple or array of tuples
arrays|typescript|tuples|narrowing
0
62
1
73,013,251
73,013,251
0
true
2022-07-17T15:15:56.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TypeScript check if variable is a tuple or array of tuples<p>Given the following code for example purposes only:</p> <pre class="lang-js prettyprint-override...
73,006,970
iText7 AbstractITextEvent is only for internal usage<p>I am trying to create a new PDF file in the public Documents folder. iTex7 is launched directly from a Dialog created by an external library com.afollestad.materialdialogs.MaterialDialog.</p> <pre><code> lateinit var writer : PdfWriter path = Environment.getEx...
<p>If you are using Proguard then add a line to &quot;proguard-rules.pro&quot; (app module):</p> <pre><code>-keep public class com.itextpdf.** </code></pre> <p><a href="https://i.stack.imgur.com/86KGt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/86KGt.png" alt="enter image description here" /></a>...
iText7 AbstractITextEvent is only for internal usage
android|itext7
1
62
1
73,013,343
73,013,343
0
true
2022-07-16T19:08:05.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: iText7 AbstractITextEvent is only for internal usage<p>I am trying to create a new PDF file in the public Documents folder. iTex7 is launched directly from a...
72,869,462
coverage fails to generate coverage.lcov<p>I'm having trouble generating <code>coverage.lcov</code> <br /> running <code>github action</code> in a monorepo (using <a href="https://pub.dev/packages/melos" rel="nofollow noreferrer">melos</a>) <br /> I think the problem may be caused by <a href="https://pub.dev/packages/c...
<p>it turned out the commands<br /> <code>dart test --coverage=&quot;coverage&quot;</code><br /> and<br /> <code>flutter test --coverage</code><br /> already output a <code>lcov.info</code> file <br /> (I'm quite sure that wasn't always the case)<br /> so no need to run <code>format_coverage</code> at all</p> <p>(and <...
coverage fails to generate coverage.lcov
flutter|dart|code-coverage|lcov
0
62
2
73,021,564
73,021,564
0
true
2022-07-05T12:29:20.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: coverage fails to generate coverage.lcov<p>I'm having trouble generating <code>coverage.lcov</code> <br /> running <code>github action</code> in a monorepo (...
73,021,629
Laravel 9 Exception on tests and config:cache: RecursiveDirectoryIterator::__construct(): Argument #1 ($directory) cannot be empty<p>I am currently working on a Laravel REST Api. I wanted to write some tests but they fail after the second test-function due to the following error:</p> <pre class="lang-php prettyprint-ov...
<p>It seems to have something to do with a key I've set in the <code>.env</code> file. The key <code>APP_BASE_PATH</code> seems to be used by Laravel and therefore overwrites. I found a reference to it in the <code>bootstrap\app.php</code> file. Renaming the key in the <code>.env</code> file solved the issue.</p>
Laravel 9 Exception on tests and config:cache: RecursiveDirectoryIterator::__construct(): Argument #1 ($directory) cannot be empty
php|laravel|laravel-artisan
0
62
1
73,023,807
73,023,807
0
true
2022-07-18T11:30:07.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel 9 Exception on tests and config:cache: RecursiveDirectoryIterator::__construct(): Argument #1 ($directory) cannot be empty<p>I am currently working o...
72,910,059
HERE MAP add new point in clicked place on polyline<p>I really beg about help because I'm trying to do some things for a few days, and I really don't know how. I want to do road manipulate by hold and drag . I think I need to start with adding new point in polyline geometry exaclly in the pointer place (or linestring, ...
<p>See please this example: <a href="https://demo.support.here.com/examples/v3/fleet" rel="nofollow noreferrer">https://demo.support.here.com/examples/v3/fleet</a> - you can drag-n-drop there</p> <p>and src code of it : <a href="https://demo.support.here.com/javascripts/examples/v3/fleet.js" rel="nofollow noreferrer">h...
HERE MAP add new point in clicked place on polyline
here-api|polyline
0
62
1
73,024,242
73,024,242
0
true
2022-07-08T10:27:16.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: HERE MAP add new point in clicked place on polyline<p>I really beg about help because I'm trying to do some things for a few days, and I really don't know ho...