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,817,370
Pandas.read_csv() Decoding Error tokenizing data because of a comma in data<p>I am having trouble reading in a csv that contains a comma within a row value.</p> <p>An example row including the data causing the issue (afaik) is as follows:</p> <p>['true',47,'y','descriptive_evidence','n','true',66,[81,65]]</p> <p>I <em>...
<p>You could try <code>sep</code> with regex but it will be using <strong>python</strong> <code>engine</code> and not <strong>c</strong> and it can be memory/time consuming. Here is the solution if you would like to go with this:</p> <pre><code>1,2,3,4,5,6,7,8 'true',47,'y','descriptive_evidence','n','true',66,[81,65] ...
Pandas.read_csv() Decoding Error tokenizing data because of a comma in data
python|pandas|csv|decoding
0
49
2
72,817,691
72,817,691
1
true
2022-06-30T14:14:27.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas.read_csv() Decoding Error tokenizing data because of a comma in data<p>I am having trouble reading in a csv that contains a comma within a row value.<...
72,818,708
Is it really necessary to stop the Maria DB Server when performing the restoration?<p>I was going through the official documentation for database backup and restoration for MariaDB: <a href="https://mariadb.com/kb/en/full-backup-and-restore-with-mariabackup/" rel="nofollow noreferrer">https://mariadb.com/kb/en/full-bac...
<p>Yes, it's necessary for mysqld to be shut down to restore a physical backup.</p> <p>There's no way to copy back all the data files atomically, and also synchronize with in-memory buffers.</p> <p>Here's an analogy: have you ever been editing the same file with a colleague? (I don't mean Google Docs, I mean like a Wor...
Is it really necessary to stop the Maria DB Server when performing the restoration?
mysql|mariadb|relational-database|backup|database-backups
1
49
1
72,818,888
72,818,888
1
true
2022-06-30T15:52:12.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it really necessary to stop the Maria DB Server when performing the restoration?<p>I was going through the official documentation for database backup and ...
72,818,254
Collapse specific multiindex columns pandas dataframe<p>I'm importing an Excel file which has the following structure:</p> <pre><code>| | Cat 1 | | | | Cat 2 | | | Total | |code| a | b | c | d | a | b | c | | |data| data |data|data|data| data |data|data| data | </code></pre> <p>I...
<p>You can re-create the MultiIndex and put the existing name in level 0 for all columns where any level contains <code>Unnamed</code>:</p> <pre><code>df.columns = pd.MultiIndex.from_tuples( [(c[1],'') if 'Unnamed' in c[0] else (c[0],'') if 'Unnamed' in c[1] else c for c in df.columns.to_list()]) <...
Collapse specific multiindex columns pandas dataframe
python|pandas|dataframe|multi-index
1
49
1
72,819,472
72,819,472
1
true
2022-06-30T15:18:11.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Collapse specific multiindex columns pandas dataframe<p>I'm importing an Excel file which has the following structure:</p> <pre><code>| | Cat 1 | | ...
72,820,140
multiply two value from textfield by using core data in swiftui<p>i try to make an invoice app by using core data, i have 4 attribute: Article String, Price String , Quantity String and Taxe String and i try to make a fonction to multiply price * quantity and the result of them i want to make another function for calc...
<p>You can use an <code>extension</code></p> <pre><code>extension FacturationCoreData{ var prixQuantite : Double { let prix = self.prix ?? &quot;&quot; let quan = self.quantite ?? &quot;&quot; let sum = ((Double(prix) ?? 00) * (Double(quan) ?? 00)) return sum } var calculeTva...
multiply two value from textfield by using core data in swiftui
core-data|swiftui
0
49
1
72,820,309
72,820,309
1
true
2022-06-30T17:57:02.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: multiply two value from textfield by using core data in swiftui<p>i try to make an invoice app by using core data, i have 4 attribute: Article String, Price ...
72,823,760
No ServiceType registered<p>Getting up to speed with .NET 6 and trying to get a working example using DI and a console app. When starting up I get an error trying to get a reference to my service class. What am I missing?</p> <p>System.InvalidOperationException: 'No service for type 'ConsoleEfcore.StoreCtxFactory' has...
<p>You registered with the abstraction</p> <pre><code>//... .AddScoped&lt;IStoreFactory, StoreCtxFactory&gt;() //... </code></pre> <p>but try to resolve with the implementation.</p> <pre><code>StoreCtxFactory store = provider.GetRequiredService&lt;StoreCtxFactory&gt;(); </code></pre> <p>Refactoring to use the registe...
No ServiceType registered
.net-core|dependency-injection
1
49
1
72,823,940
72,823,940
1
true
2022-07-01T02:16:49.683Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: No ServiceType registered<p>Getting up to speed with .NET 6 and trying to get a working example using DI and a console app. When starting up I get an error ...
72,825,086
typescript how to assign class to json object array<p>Let say if I have a array of JSON object, how to cast or assign the class (Report class) to it?</p> <pre><code>console.log('jsonBody ' + jsonBody); //print jsonBody [object Object],[object Object] console.log('jsonBody ' + JSON.stringify(jsonBody)); //print jsonBod...
<p>Create a constructor that accepts an object of the json type:</p> <pre class="lang-js prettyprint-override"><code>class Report { created_at!: Date; updated_at!: Date; constructor({created_at, updated_at}: {created_at: string, updated_at: string}) { this.created_at = new Date(created_at); this.up...
typescript how to assign class to json object array
json|typescript|ecmascript-6
0
49
1
72,825,252
72,825,252
1
true
2022-07-01T06:13:59.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: typescript how to assign class to json object array<p>Let say if I have a array of JSON object, how to cast or assign the class (Report class) to it?</p> <pr...
72,825,995
How to get the x-axis to intercept the y-axis at zero in ggplot2<p>I have a simple line graph, that contains points less than zero on the y-axis. The x-axis is at the bottom of the graph, and thus does not intercept the y-axis at y = 0.</p> <p>How can I get the x=axis to intercept at y=0 in ggplot2?</p> <p><strong>Exam...
<p>Option 1: Limit the y-axis display with <code>coord_cartesian</code></p> <pre><code>df &lt;- data.frame(x=c(-5, 15), y=c(-25, 25)) ggplot(df, aes(x,y)) + geom_line() + geom_hline(yintercept = 0, linetype = &quot;solid&quot;, color = &quot;black&quot;) + coord_cartesian(ylim=c(0,50)) </code></...
How to get the x-axis to intercept the y-axis at zero in ggplot2
r|ggplot2
0
49
1
72,826,099
72,826,099
1
true
2022-07-01T07:47:12.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get the x-axis to intercept the y-axis at zero in ggplot2<p>I have a simple line graph, that contains points less than zero on the y-axis. The x-axis ...
72,829,143
Why the xpath method is not working here?<p>I am trying to find an element on page using xpath but every time I am getting element not found what's wrong here kindly suggest</p> <pre><code>Url - https://multi-verse-js.herokuapp.com/main.html Xpath Value I am using for query - xpath: //a[@class='active'][text()='Web-S...
<p>You can use partial linkText</p> <pre><code>partial Linktext: Web-Search xPath = //a[contains(text(), 'Web-Search')] </code></pre>
Why the xpath method is not working here?
python|selenium|xpath
-3
49
2
72,829,250
72,829,250
1
true
2022-07-01T12:17:15.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why the xpath method is not working here?<p>I am trying to find an element on page using xpath but every time I am getting element not found what's wrong her...
72,829,234
Blur face in face detection in vision kit<p>I'm using Apple tutorial about face detection in vision kit in a live camera feed, not an image.</p> <p><a href="https://developer.apple.com/documentation/vision/tracking_the_user_s_face_in_real_time" rel="nofollow noreferrer">https://developer.apple.com/documentation/vision/...
<p>You could try placing a <code>UIVisualEffectView</code> on top of your video feed, and then adding a masking CAShapeLayer to that <code>UIVisualEffectView</code>. I don't know if that would work or not.</p> <p>The docs on <code>UIVisualEffectView</code> say:</p> <blockquote> <p>When using the UIVisualEffectView clas...
Blur face in face detection in vision kit
swift|visionkit
0
49
1
72,829,678
72,829,678
1
true
2022-07-01T12:24:50.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Blur face in face detection in vision kit<p>I'm using Apple tutorial about face detection in vision kit in a live camera feed, not an image.</p> <p><a href="...
72,828,658
How to make legend.display as false for a particular dataset in chart js<pre><code> var myBarChart = new Chart('myChart', { type: 'bar', data: { labels: [&quot;Single Drive Mode&quot;, &quot;Dual Drive Mode&quot;], datasets: [ { type: 'bar', label: &quot;Recordings&quot;, backg...
<p>You can use the filter callback to filter out the legend items you dont want to show:</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>var options = { type: 'line', data:...
How to make legend.display as false for a particular dataset in chart js
angular|chart.js|bar-chart|linechart
1
49
2
72,830,835
72,830,835
1
true
2022-07-01T11:35:58.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make legend.display as false for a particular dataset in chart js<pre><code> var myBarChart = new Chart('myChart', { type: 'bar', data: { labe...
72,828,472
NgRx reducer function with condition<p>I have a side effect that detects the browser language and dispatches a <code>browserLanguageSupported</code> action if it is a language that my application can handle.</p> <p>Now I have following reducer function that only updates the states <code>preferredLanguage</code> propert...
<p>I would to this the same way, so you get a from me. Adding a slice of the state into the effect just adds needless complexity. The reducer contains the state, and it's OK to add logic to see if state needs to be updated or not.</p> <p>Also, let's say you need to add this logic into another action/effect. Having it ...
NgRx reducer function with condition
ngrx|ngrx-store|ngrx-effects
0
49
1
72,832,919
72,832,919
1
true
2022-07-01T11:18:48.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NgRx reducer function with condition<p>I have a side effect that detects the browser language and dispatches a <code>browserLanguageSupported</code> action i...
72,832,841
Use python variables aggregating Spark dataframe<p>I have a dataframe and a list of variables which is called <code>customerids</code>:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>customerid</th> <th>createdate</th> <th>personid</th> <th>birthday</th> <th>genders</th> <th>lastupdated</t...
<p>Dataframe:</p> <pre class="lang-py prettyprint-override"><code>from datetime import datetime, timedelta from pyspark.sql import functions as F df = spark.createDataFrame( [(1028598965607080, '2022-06-20 15:03:01'), (1020304050607099, '2022-06-20 15:03:01'), (8423413884965465, '2022-06-20 15:03:01'), ...
Use python variables aggregating Spark dataframe
dataframe|apache-spark|datetime|pyspark|aggregation-framework
0
49
1
72,833,503
72,833,503
1
true
2022-07-01T17:33:10.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use python variables aggregating Spark dataframe<p>I have a dataframe and a list of variables which is called <code>customerids</code>:</p> <div class="s-tab...
72,833,073
Unclear why comparator in stream violates general contract<p>I'm getting the following error when sorting a collection.</p> <pre><code>Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeLo(TimSort.java:777) at java.util.TimSort.mergeAt(TimSo...
<p>So, this was probably very stupid on my part, but the problem was in an already existing comparator in the 'Site' class that I didn't verify.</p> <pre><code> @Override public int compareTo(Site other) { if (this.code &lt; other.getCode()) { return -1; } else { return 1;...
Unclear why comparator in stream violates general contract
java|stream|comparator
0
49
1
72,836,621
72,836,621
1
true
2022-07-01T17:59:34.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unclear why comparator in stream violates general contract<p>I'm getting the following error when sorting a collection.</p> <pre><code>Caused by: java.lang.I...
72,836,070
Speeding up boost::iostreams::filtering_streambuf<p>I am new to the C++ concept of streams and want to ask for some general advice to speed up my code in <a href="https://data.lhncbc.nlm.nih.gov/public/Visible-Human/Male-Images/70mm/fullbody/index.html" rel="nofollow noreferrer">image processing</a>. I use a stream buf...
<p>You can use blockwise IO</p> <pre><code>char buf[4096]; inflated.read(buf, sizeof(buf)); std::for_each(buf, buf + inflated.gcount(), _fill_); </code></pre> <p>However, I also think considerable time might be wasted in <code>_fill_</code> where some dimensions are reshaped. That feels arbitrary.</p> <p>Note that seve...
Speeding up boost::iostreams::filtering_streambuf
c++|boost|stream|iterator|gzip
1
49
1
72,838,182
72,838,182
1
true
2022-07-02T02:29:33.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Speeding up boost::iostreams::filtering_streambuf<p>I am new to the C++ concept of streams and want to ask for some general advice to speed up my code in <a ...
72,774,470
getting the attributeerror:__enter__ error<p>ok I am getting the attribute Error:<strong>enter</strong> with statement. trying to have python check for next Mondays date and if there is that date move forward then if there is change it to Tuesday then if there is not print out error: there is no starting next week... b...
<p>You don't need a context manager to use <code>pd.read_excel</code> since this functions returns a DataFrame or dict of DataFrames, from <a href="https://pandas.pydata.org/docs/reference/api/pandas.read_excel.html" rel="nofollow noreferrer">documentation</a>:</p> <blockquote> <p>Returns:    <strong>DataFrame or dict ...
getting the attributeerror:__enter__ error
python|pandas|datetime|python-dateutil
1
49
1
72,840,256
72,840,256
1
true
2022-06-27T15:14:12.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: getting the attributeerror:__enter__ error<p>ok I am getting the attribute Error:<strong>enter</strong> with statement. trying to have python check for next ...
72,835,135
Compute day of the month and monthly averages in R and add as column<p>I have a data frame stored with daily data within a year and I want to compute monthly averages as well as day of the week averages and add those values as additional columns. Here is a MWE of my data frame</p> <pre><code>df &lt;- tibble(Date = seq(...
<p>Instead of <code>summarize()</code>ing an entire group into one row, we can <code>mutate()</code> all rows to add the group mean:</p> <pre class="lang-r prettyprint-override"><code>result &lt;- df %&gt;% group_by(month) %&gt;% mutate(monthly_avg = mean(Daily_sales)) %&gt;% group_by(dow) %&gt;% mutate(dow_avg = m...
Compute day of the month and monthly averages in R and add as column
r|dataframe|dplyr|tidyverse
1
49
1
72,843,000
72,843,000
1
true
2022-07-01T22:29:22.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Compute day of the month and monthly averages in R and add as column<p>I have a data frame stored with daily data within a year and I want to compute monthly...
72,848,286
Add averages to existing plot with pandas.DataFrame<p>I have a pandas data-frame of the form</p> <pre><code> date N 0 2022-06-14 15:00:00 54 1 2022-06-14 15:03:00 55 2 2022-06-14 15:09:00 56 3 2022-06-14 15:13:00 54 4 2022-06-14 15:19:00 56 ... ... ... 2793 2022-07-03 16:0...
<p>Consider assigning the weekday average as a separate new column with <a href="https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.DataFrameGroupBy.transform.html" rel="nofollow noreferrer"><strong><code>groupby.transform</code></strong></a>. Then plot both columns on same x-axis in a <a href="https://pa...
Add averages to existing plot with pandas.DataFrame
python|pandas|dataframe|time-series
0
49
1
72,849,819
72,849,819
1
true
2022-07-03T16:45:39.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add averages to existing plot with pandas.DataFrame<p>I have a pandas data-frame of the form</p> <pre><code> date N 0 2022-06-14 15:00:00 54 1 ...
72,849,963
Why TIFFReadRGBAImage() throws an exception when raster is smaller than image?<p>I'm using libtiff to read Image data into an array. I have the following code</p> <pre><code> std::vector &lt;uint32&gt;&gt; image; uint32 width; uint32 height; TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &amp;widt...
<p>You just changed the number of elements in allocated buffer, but still try to read the image of original size, thus you get access violation since the buffer is overflown. To get the cropping you should pass correct width and height to <code>TIFFReadRGBAImageOriented</code> as well:</p> <pre><code>uint32 nwidth = wi...
Why TIFFReadRGBAImage() throws an exception when raster is smaller than image?
c++|libtiff
0
49
1
72,850,125
72,850,125
1
true
2022-07-03T21:14:18.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why TIFFReadRGBAImage() throws an exception when raster is smaller than image?<p>I'm using libtiff to read Image data into an array. I have the following cod...
72,850,720
How to only allow a certain number of click events per column? And also per page? With only Vanilla JavaScript<p>Making a connect 4 using vanilla JavaScript. Using an event listener &quot;click&quot; to insert a colored disk into a column. The disks keep stacking infinitely. I need it to stop after 6. And then 42 total...
<p>You could just count how many child elements are in the column.</p> <pre><code>let column0 = document.querySelector(&quot;#column0&quot;); column0.addEventListener(&quot;click&quot;, function () { if ( column0.querySelectorAll( 'span' ).length &lt; 7 ) { // do game logic here only if there aren't 6 spans...
How to only allow a certain number of click events per column? And also per page? With only Vanilla JavaScript
javascript|loops|conditional-statements
1
49
2
72,850,749
72,850,749
1
true
2022-07-04T00:14:10.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to only allow a certain number of click events per column? And also per page? With only Vanilla JavaScript<p>Making a connect 4 using vanilla JavaScript....
72,852,129
Textarea box will only allow one line of input- I want it to have multiple lines<p>I am going nuts trying to get this box to work. I am using React 18.</p> <p>Here is code that applies to this particular text box in various areas of my application:</p> <p>In render part of component:</p> <pre class="lang-js prettyprint...
<p>You might be looking for a textarea element instead of an input element. Here is a small demo on using textarea in react.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>cons...
Textarea box will only allow one line of input- I want it to have multiple lines
javascript|html|css|reactjs|jsx
-1
49
3
72,852,195
72,852,195
1
true
2022-07-04T05:31:27.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Textarea box will only allow one line of input- I want it to have multiple lines<p>I am going nuts trying to get this box to work. I am using React 18.</p> <...
72,856,272
For-each loop with fn:tokenize<p>I want to take the value of variable, tokenize it, and loop through the different tokens. My solutions does not work as expected. I must be misunderstanding what tokenize() actually does.</p> <pre><code>&lt;xsl:variable name=&quot;topicCode&quot;&gt;1.2.3.4&lt;/xsl:variable&gt; &lt;xsl:...
<p>You at least need <code>&lt;xsl:variable name=&quot;tokenizedTopicCode&quot; select=&quot;tokenize($topicCode,'\.')&quot;/&gt;</code> instead of <code>&lt;xsl:variable name=&quot;tokenizedTopicCode&quot;&gt;&lt;xsl:value-of select=&quot;tokenize($topicCode,'\.')&quot;/&gt;&lt;/xsl:variable&gt;</code>.</p> <p>I don't...
For-each loop with fn:tokenize
xslt|foreach|xslt-2.0|tokenize|saxon
0
49
3
72,856,428
72,856,428
1
true
2022-07-04T11:53:07.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: For-each loop with fn:tokenize<p>I want to take the value of variable, tokenize it, and loop through the different tokens. My solutions does not work as expe...
72,857,426
Remove the async/await warning CS1998, when implementing interface<p>Suppose I implement an interface where there are two methods: <code>Create</code> and <code>CreateAsync</code>. The Async method in my case is not really async, and it uses the syncronous <code>Create</code> method to return the created object:</p> <p...
<p>I believe this is just a case of a tired Visual Studio and 1) a recompile or 2) VS restart will fix the issue.</p>
Remove the async/await warning CS1998, when implementing interface
c#|.net|async-await|web-applications|.net-5
-1
49
1
72,857,805
72,857,805
1
true
2022-07-04T13:19:34.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove the async/await warning CS1998, when implementing interface<p>Suppose I implement an interface where there are two methods: <code>Create</code> and <c...
72,858,055
How to save data in react-native<p>I want to save data from a page of my react native project. From what I've searched, I must use :</p> <pre><code>import DefaultPreference from 'react-native-default-preference'; ... DefaultPreference.get('my key').then(function(value) {console.log(value)}); DefaultPreference.set('my k...
<p>You can take <a href="https://www.npmjs.com/package/@react-native-async-storage/async-storage" rel="nofollow noreferrer">this lib</a> as more popular.</p> <p>For example code:</p> <pre><code>import AsyncStorage from '@react-native-async-storage/async-storage'; await AsyncStorage.setItem(key, value); const value = ...
How to save data in react-native
reactjs|react-native
0
49
1
72,858,688
72,858,688
1
true
2022-07-04T14:08:04.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to save data in react-native<p>I want to save data from a page of my react native project. From what I've searched, I must use :</p> <pre><code>import De...
72,860,558
Import Module Error when building a Docker Container with Python for AWS Lambda<p>I'm trying to build a Docker container that runs Python code on AWS Lambda. The build works fine, but when I test my code, I get the following error:</p> <pre><code>{&quot;errorMessage&quot;: &quot;Unable to import module 'function': No m...
<p>The Dockerfile statement <code>COPY . .</code> copies all files to the working directory, which given your previous <code>WORKDIR</code>, is <code>/</code>.</p> <p>To resolve the Python import issue, you need to move the Python module to the right directory:</p> <pre><code>COPY utils.py ${LAMBDA_TASK_ROOT} </code></...
Import Module Error when building a Docker Container with Python for AWS Lambda
python|amazon-web-services|docker|aws-lambda
1
49
1
72,861,484
72,861,484
1
true
2022-07-04T18:03:37.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Import Module Error when building a Docker Container with Python for AWS Lambda<p>I'm trying to build a Docker container that runs Python code on AWS Lambda....
72,861,491
How To Get Previous Data-Color Attribute?<p>The question is:</p> <p>Write code in YOUR CODE HERE that logs the current and previous values of the data-color attribute on the #cro-headline element each time that the attribute changes. Your log statement should look something like this: <code>console.log('Current color: ...
<p>I've added just a <code>previousColor = currentColor</code>.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; ...
How To Get Previous Data-Color Attribute?
javascript|attributes
0
49
1
72,861,718
72,861,718
1
true
2022-07-04T19:59:04.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How To Get Previous Data-Color Attribute?<p>The question is:</p> <p>Write code in YOUR CODE HERE that logs the current and previous values of the data-color ...
72,861,192
Why am I Unable to access CSS for Href<p>Im attempting to get the Href information from the following site using Power query:</p> <p><a href="https://hpvchemicals.oecd.org/ui/SIDS_Details.aspx?id=fc1ced8a-ce14-45fa-b003-dfeda5e38075" rel="nofollow noreferrer">https://hpvchemicals.oecd.org/ui/SIDS_Details.aspx?id=fc1ced...
<p>It is using an iframe. Try this.</p> <pre><code>let Source = Table.FromColumns({Lines.FromBinary(Web.Contents(&quot;https://hpvchemicals.oecd.org/ui/SidsOrganigrame.aspx?SIDSNo=fc1ced8a-ce14-45fa-b003-dfeda5e38075&amp;id=000c31fa-483a-4e5b-a8bb-c26c3148e464&amp;Key=1c143ab1-b132-4b57-b34d-559b07c845f2&amp;I...
Why am I Unable to access CSS for Href
excel|vba|powerbi|powerquery
0
49
1
72,861,757
72,861,757
1
true
2022-07-04T19:21:23.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why am I Unable to access CSS for Href<p>Im attempting to get the Href information from the following site using Power query:</p> <p><a href="https://hpvchem...
72,862,596
How to Delete row based on a duplicate value from range in another sheet?<p>I have 2 sheets in a spreadsheet, I want to check if in Sheet 1 ('QualityCheck') in column D are same Unique IDs as in Sheet 2 ('Dubs') column A3:A, delete the rows from Sheet 1 ('QualityCheck').</p> <p>Here's what I have, but is not working.</...
<p><code>getDataRange</code> has no arguments. I think that an error occurs by this. From your question, <code>var values2 = s2.getRange(&quot;A3:A&quot; + s2.getLastRow()).getValues();</code> might be useful. When this is reflected in your script, it becomes as follows.</p> <h3>From:</h3> <pre><code>var values2 = s2.g...
How to Delete row based on a duplicate value from range in another sheet?
google-apps-script|google-sheets|spreadsheet|script
1
49
1
72,862,735
72,862,735
1
true
2022-07-04T22:49:21.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Delete row based on a duplicate value from range in another sheet?<p>I have 2 sheets in a spreadsheet, I want to check if in Sheet 1 ('QualityCheck') ...
72,869,056
Exitcode 139 in C<p>I want to add a new element in my LinkedList. It can be added in the middle or in the end of it. Here is a part of the code, where my debugger shows the error:</p> <pre><code>//... linkedElement * newElem; newElem-&gt;next = prevElement-&gt;next; //This line creates the error /...
<blockquote> <pre><code>//... linkedElement * newElem; newElem-&gt;next = prevElement-&gt;next; //This line creates the error //... </code></pre> </blockquote> <p>You first make <code>newElem</code> be a pointer that doesn't point anywhere valid.</p> <p>And then use that &quot;nowhere valid&quot; ...
Exitcode 139 in C
c|linked-list|runtime-error|exit-code
-3
49
1
72,869,131
72,869,131
1
true
2022-07-05T11:58:27.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Exitcode 139 in C<p>I want to add a new element in my LinkedList. It can be added in the middle or in the end of it. Here is a part of the code, where my deb...
72,858,561
Feed ProcessPoolExecutor with results from asyncio<p>I have a bunch of online data that I want to download and process efficiently. Downloading already takes some time but cpu-bound processing takes much longer. I struggle to implement a combination of async and ProcessPoolExecutor.</p> <pre><code>import asyncio import...
<p>You should submit the <code>self.process</code> inside after the coroutine ends. For that, you can have a separate asynchronous method that will await the <code>download</code> method and submit the <code>process</code> to <code>ProcessPoolExecutor</code>.</p> <pre class="lang-py prettyprint-override"><code>class We...
Feed ProcessPoolExecutor with results from asyncio
python-3.x|parallel-processing|python-asyncio|concurrent.futures
0
49
1
72,869,179
72,869,179
1
true
2022-07-04T14:48:07.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Feed ProcessPoolExecutor with results from asyncio<p>I have a bunch of online data that I want to download and process efficiently. Downloading already takes...
72,870,836
Django - using HTML href to link to another view<p>In my home page i have 2 links that i would like to bring the user to different pages. How would i make the href link to a view i have created in views.py? Putting in the html file name in as the href and clicking it would make the url in the search bar appear as <cod...
<p>You need to redirect to your views, not your templates. To do that, your href should be under the form <code>{% url 'your_view_name' %}</code>.</p> <p>So in your case the end result would be something like that :</p> <pre><code>&lt;div id=&quot;nav_bar&quot;&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=&quot;{% u...
Django - using HTML href to link to another view
django|django-views|django-templates|django-urls
-1
49
1
72,870,922
72,870,922
1
true
2022-07-05T14:06:58.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django - using HTML href to link to another view<p>In my home page i have 2 links that i would like to bring the user to different pages. How would i make th...
72,874,328
Program does not contain a suitable 'Main' method for entry point<p>I accidentally deleted the auto generated main entry point of my project. The problem is that I did not realised that and saved the changes and exit de program. Now I have the same error even if I create a new class and a new Main method. The error poi...
<p>Just create a new Project and if you need the Code of the Program where the Error was copy it and paste it in the new Project</p> <p>Edit: If it's an WPF Projects copy the XAML codes</p>
Program does not contain a suitable 'Main' method for entry point
c#|program-entry-point|csc
-2
49
1
72,874,379
72,874,379
1
true
2022-07-05T18:59:55.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Program does not contain a suitable 'Main' method for entry point<p>I accidentally deleted the auto generated main entry point of my project. The problem is ...
72,874,588
JAVA Do/while loop not returning the value<p>I'm new at stackoverflow and coding. I'm trying to make a method for validating the user input. The user is only allowed to answer, add, show or exit. But I keep getting stuck in the first while loop. I tried to change it to !userChoice.equals.. but it is not working. What a...
<p>Your posted code has three loops – two &quot;while&quot; loops, and an outer &quot;do&quot; loop. It isn't necessary to use more than one loop.</p> <p>Taking a step back, you are describing a method that should:</p> <ul> <li>accept user input</li> <li>check if the input is &quot;allowed&quot; or not – must be one of...
JAVA Do/while loop not returning the value
java|return|return-value
0
49
1
72,874,827
72,874,827
1
true
2022-07-05T19:27:31.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JAVA Do/while loop not returning the value<p>I'm new at stackoverflow and coding. I'm trying to make a method for validating the user input. The user is only...
72,870,148
how to call php page with 3 arguments from powershell<p>below is my PS1 code to call PHP. But I want to know how to call the PHP page with 3 arguments and how to get it in PHP.</p> <pre><code>$workflow_id = 170 $task_num = 3 $next_script = 'testing.php' $PhpExe = &quot;C:\Admin\bin\php\php7.4.26\php.exe&quot; $PhpFile...
<p>Your attempt to call your PHP script from PowerShell is flawed in two respects:</p> <ul> <li><p><code>$PhpArgs</code> is a <em>single</em> string, which is therefore passed as a <em>single</em> argument, whereas you need to pass <code>-f</code> and the PHP script file name/path as <em>individual</em> arguments.</p> ...
how to call php page with 3 arguments from powershell
php|powershell|arguments
1
49
1
72,875,709
72,875,709
1
true
2022-07-05T13:18:49.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to call php page with 3 arguments from powershell<p>below is my PS1 code to call PHP. But I want to know how to call the PHP page with 3 arguments and ho...
72,870,881
How to combine multi-subscription and multi-region functionality for Azure alert creation in Bicep<p>the code below is my attempt at creating a template allowing easy deployment of a static alert rule to multiple Azure subscriptions. To achieve this, I am looping through an array containing the subscriptions I want to ...
<p>Ideally you would create nested loops but it s not supported for the moment as explained <a href="https://stackoverflow.com/a/72739394/4167200">here</a>.</p> <p>By creating a module, you will be able to create an alert per subscription per region.</p> <p><code>alerts-per-region.bicep</code> file. It s the same as yo...
How to combine multi-subscription and multi-region functionality for Azure alert creation in Bicep
azure|azure-resource-manager|azure-bicep
0
49
1
72,876,287
72,876,287
1
true
2022-07-05T14:10:43.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to combine multi-subscription and multi-region functionality for Azure alert creation in Bicep<p>the code below is my attempt at creating a template allo...
72,877,978
Prevent default select of current day with Ant Calendar<p>I'm trying to create custom Calendar based on Ant Calendar. Ant Calendar adds class '.ant-fullcalendar-selected-day' by default for current day, but how to avoid it?</p> <p><a href="https://codesandbox.io/s/r809w9" rel="nofollow noreferrer">https://codesandbox.i...
<p>Ok, I've found this easy solution after investigation</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> useEffect(() =&gt; { const selectedDay = document.querySelector('...
Prevent default select of current day with Ant Calendar
reactjs|antd
3
49
1
72,878,445
72,878,445
1
true
2022-07-06T04:30:29.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Prevent default select of current day with Ant Calendar<p>I'm trying to create custom Calendar based on Ant Calendar. Ant Calendar adds class '.ant-fullcalen...
72,878,602
Linux Bash, get only single word with grep<p>I have a large textfile and I have to find all of the &quot;KNR&quot;-alias. I removed all comments and empty lines with this:</p> <pre><code>cat file | grep -v ^# | grep -v ^$ &gt;&gt; Test.txt </code></pre> <p>How can I only get this one word, that I need to write out of t...
<p>As per comments:</p> <pre><code>grep -ohE 'KNR[^ ]*' file </code></pre> <p>will use <code>grep</code> to match your pattern as I understand it. <code>[^ ]</code> means anything but a space.</p> <p>Other possibilities are <code>sed</code>:</p> <pre><code>sed -nE &quot;s/.*(KNR.*) .*/\1/p </code></pre> <p>or @F.Hauri'...
Linux Bash, get only single word with grep
bash
-1
49
2
72,878,776
72,878,776
1
true
2022-07-06T06:04:03.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Linux Bash, get only single word with grep<p>I have a large textfile and I have to find all of the &quot;KNR&quot;-alias. I removed all comments and empty li...
72,878,455
Excel: Sum columns, multiply with column and sum rows<p>we are using excel to do our capacity planning in the team. We have a bunch of people (P1-P3) that fill in a table. For each day they put if they work the entire day (1), work half-day (0.5) or are off (0). Some people have additional responsibilities and are not ...
<p>You just need to multiply the percentage column by the days matrix and add the results up. If you anchor the percentage column, it will be applied to the following week as you copy the formula across:</p> <pre><code>=SUM($C6:$C8*D6:H8) </code></pre> <p><a href="https://i.stack.imgur.com/xVrqQ.png" rel="nofollow nore...
Excel: Sum columns, multiply with column and sum rows
excel|sumproduct
1
49
1
72,878,872
72,878,872
1
true
2022-07-06T05:45:29.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel: Sum columns, multiply with column and sum rows<p>we are using excel to do our capacity planning in the team. We have a bunch of people (P1-P3) that fi...
72,878,695
Trying to change custom dialog Background color<p>Ok so I am trying change my background of my dialog box from white to a dark blue. However when I long press on one of the grid elements the dialog box looks like this:</p> <p><a href="https://i.stack.imgur.com/wgJcP.jpg" rel="nofollow noreferrer"><img src="https://i.st...
<p>I think you should use Dialog instead of AlertDialog. Alert Dialog has its own Title and Button.</p> <p>With Dialog you will have the benefit of defining your Title and Buttons.</p> <p>Create a Layout as your design needs and set it in Dialog.</p> <pre><code>class ABC(context: Context) : Dialog(context) { override ...
Trying to change custom dialog Background color
java|android|xml|android-studio|android-layout
1
49
2
72,879,289
72,879,289
1
true
2022-07-06T06:15:41.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to change custom dialog Background color<p>Ok so I am trying change my background of my dialog box from white to a dark blue. However when I long pres...
72,881,064
Swift: Remove object from array if timestamp is within certain range of previous timestamp?<p>I have an array of objects that contain a timestamp. I want to drop all the objects that are in 6 hours chunks. Eg, reducing the following [Obj(00:00), Obj(04:00), Obj(06:01), Obj(07:00), Obj(12:00)] to [Obj(00:00), Obj(06:01)...
<p>With a simple for loop:</p> <pre><code>var withForLoop: [Entry] = [] for anEntry in initialArray { // If it's empty, we add it if there is really a timestamp guard let lastEntry = withForLoop.last, let lastEntryDate = lastEntry.timestamp else { withForLoop.append(anEntry); continue } // If there is no t...
Swift: Remove object from array if timestamp is within certain range of previous timestamp?
arrays|swift
-3
49
1
72,882,086
72,882,086
1
true
2022-07-06T09:30:59.213Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Swift: Remove object from array if timestamp is within certain range of previous timestamp?<p>I have an array of objects that contain a timestamp. I want to ...
72,883,531
Which profile does Intellij use when you do Run Application?<p>I have two maven profiles.One is Dev which has a dependency on embedded Tomcat</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;...
<p>The <code>provided</code> scope means that this dependency is supposed to be provided by the external environment that runs your application, e.g. the application server, in case you deploy it as a war file. In your case, when you run it in the development environment, there is noone to provide this dependency, so s...
Which profile does Intellij use when you do Run Application?
spring|spring-boot|maven|tomcat|intellij-idea
0
49
1
72,883,749
72,883,749
1
true
2022-07-06T12:24:56.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Which profile does Intellij use when you do Run Application?<p>I have two maven profiles.One is Dev which has a dependency on embedded Tomcat</p> <pre><code>...
72,886,695
Filter array object by type and compare key<p>I have two arrays, in one (aux) I get key and value. In the second array of objects (result)</p> <p><a href="https://i.stack.imgur.com/alrje.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/alrje.png" alt="enter image description here" /></a></p> <p>I have...
<p>You can loop through result array and check if <code>array_element[&quot;correlative&quot;]</code> exists in aux array as key. So,...</p> <pre><code>// Your 2 arrays let result = [] let aux = [] let ans = [] result.forEach(ele=&gt;{ expected_key = res[&quot;correlative&quot;]; // check if above key is prese...
Filter array object by type and compare key
javascript|arrays|typescript|object|nestjs
0
49
1
72,886,984
72,886,984
1
true
2022-07-06T16:02:58.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filter array object by type and compare key<p>I have two arrays, in one (aux) I get key and value. In the second array of objects (result)</p> <p><a href="ht...
72,832,057
Proguard rule for Huawei push client<p>I have <code>Unable to create application im.app.android.core.AppDemoApplication: e3.b: com.pushserver.android.huaweiPushClient cant cast com.myApp.android.push_lib.huawei.HcmPushClient to PushClient</code> error</p> <p>What proguard rule should I add? I have tried <code>-keep cl...
<p>Not really an answer, but too long for a comment. I'll update this answer in case we make progress.</p> <h3>1. What is the &quot;normal bug&quot;?</h3> <p><code>can't cast com.myApp.android.push_lib.huawei.HcmPushClient to PushClient</code></p> <p>This means that somewhere in your code you are assigning/passing an i...
Proguard rule for Huawei push client
android|proguard
0
49
1
72,888,583
72,888,583
1
true
2022-07-01T16:13:59.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Proguard rule for Huawei push client<p>I have <code>Unable to create application im.app.android.core.AppDemoApplication: e3.b: com.pushserver.android.huaweiP...
72,890,538
How to pass the state value of a component to another component?<p>I'm adding a search bar to a page in my movie review application. The page displays all the review posts for one specific movie. The prop &quot;reviews&quot; contains all the existing reviews. I was stuck with figuring out how to pass the value of the s...
<p>You need to move <code>const { onChange, textValue, filteredResults } = useSearch({ reviews })</code> to Parent component and from Parent pass props <code>onChange, textValue</code> to <code>ReviewSearchBar</code> and prop <code>filteredResults</code> to <code>ReviewPosts</code> component</p>
How to pass the state value of a component to another component?
reactjs|state
1
49
2
72,890,725
72,890,725
1
true
2022-07-06T22:34:49.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass the state value of a component to another component?<p>I'm adding a search bar to a page in my movie review application. The page displays all th...
72,891,210
When doing an embedded software update, should you wipe the entire application code, or only update the application partially?<p>When a company updates a product's embedded C code application firmware (via a bootloader on the microcontroller, or JTAG, etc.), do they normally flash a whole new .hex/.bin file that contai...
<p>You can't really update the program partially unless you have designed certain parts of it as position-independent code and then linked those parts starting at fixed addresses. It can be done, but adds extra complexity during design.</p> <p>Otherwise if you haven't designed your program like this, the machine code w...
When doing an embedded software update, should you wipe the entire application code, or only update the application partially?
c|embedded|bootloader|firmware|jtag
0
49
3
72,893,531
72,893,531
1
true
2022-07-07T00:50:56.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When doing an embedded software update, should you wipe the entire application code, or only update the application partially?<p>When a company updates a pro...
72,889,346
Bitstream Encryption<p>I have a question related to bitstream encryption using eFUSE option. If my FPGA has bitstream encryption key stored in the eFUSE, how Vivado will know the encryption key when generating new encrypted bitstream? Does Vivado has a method to readback the key from eFUSE and use it for encryption?</p...
<h3> How can Vivado know the encryption key? </h3> <p>Vivado uses an <code>NKY</code> file that is generated when setting the encryption key. For instance when executing</p> <pre><code> set_property BITSTREAM.ENCRYPTION.KEY0 56’h12345678ABCDDCBA12345678ABCDDCBA12345678ABCDDCBA12345678ABCDDCBA current_design] </code></p...
Bitstream Encryption
fpga|hdl|vivado|bitstream
2
49
1
72,894,582
72,894,582
1
true
2022-07-06T20:12:09.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bitstream Encryption<p>I have a question related to bitstream encryption using eFUSE option. If my FPGA has bitstream encryption key stored in the eFUSE, how...
72,894,366
Flatten List without using Flat() function in Javascript<p>I am trying to flatten a given data without using flat() function. here is my implementation</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js pret...
<p>The error you see is because you are trying to interpret <code>This is a string</code> as JSON. What you should do, if you want to interpret JSON values, is to try-catch the <code>JSON.parse</code> that way the error will be silenced. Here's the modified code.</p> <p><div class="snippet" data-lang="js" data-hide="fa...
Flatten List without using Flat() function in Javascript
javascript|arrays
0
49
2
72,894,677
72,894,677
1
true
2022-07-07T08:10:22.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flatten List without using Flat() function in Javascript<p>I am trying to flatten a given data without using flat() function. here is my implementation</p> <...
72,893,448
MongoDB - slow query on old documents (aggregation and sorting)<p>I have two DBs for testing and each contains thousands/hundreds of thousand of documents. But with the same Schemas and CRUD operations.</p> <p>Let's call DB1 and DB2.</p> <p>I am using Mongoose Suddenly DB1 became really slow during:</p> <pre class="lan...
<p><strong>Short answer:</strong></p> <p>You should create following index:</p> <pre><code>{ &quot;userId&quot;: 1, &quot;serverId&quot;: 1, &quot;sort&quot;: 1 } </code></pre> <p><strong>Longer answer</strong></p> <p>Based on your code (i see that you have <code>.allowDiskUse(true)</code>) it looks like mongo is tryin...
MongoDB - slow query on old documents (aggregation and sorting)
javascript|mongodb|mongoose
0
49
1
72,895,267
72,895,267
1
true
2022-07-07T06:54:26.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MongoDB - slow query on old documents (aggregation and sorting)<p>I have two DBs for testing and each contains thousands/hundreds of thousand of documents. B...
72,886,759
Can't pass a format parameter to uctNow() function<p>I try to create an azure policy that appends a <code>created-on : dd/mm/yyyy</code> tag on newly created resources.</p> <p>I'm using the following default policy :</p> <pre class="lang-json prettyprint-override"><code>{ &quot;properties&quot;: { &quot;displayNa...
<p>Some of the ARM template functions are not allowed to use in policy definition. You can check it <a href="https://docs.microsoft.com/en-us/azure/governance/policy/concepts/definition-structure#policy-functions" rel="nofollow noreferrer">here</a>.</p> <p>utcNow() - Unlike an ARM template, this property can be used ou...
Can't pass a format parameter to uctNow() function
azure|azure-policy
0
49
1
72,895,336
72,895,336
1
true
2022-07-06T16:07:55.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't pass a format parameter to uctNow() function<p>I try to create an azure policy that appends a <code>created-on : dd/mm/yyyy</code> tag on newly created...
72,896,569
TextField loses focus on each keystroke<p>I have an MUI textfield inside a Dialog. On each keystroke, the whole dialog is re-rendered and focus is lost on the textField. Each new character I add is persistent.</p> <p>This is my dialog where the textfield and <code>onChange</code> are located.</p> <pre><code>const [ac...
<p>Is there a reason your state variables are declared outside the <code>ActionDialog</code> component? Is that because the <code>ActionDialog</code> component is declared inside another parent component? If that is the case, every time the state variable changes, it will create a new instance of the ActionDialog compo...
TextField loses focus on each keystroke
javascript|reactjs|material-ui
1
49
1
72,896,777
72,896,777
1
true
2022-07-07T10:55:39.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TextField loses focus on each keystroke<p>I have an MUI textfield inside a Dialog. On each keystroke, the whole dialog is re-rendered and focus is lost on t...
72,896,902
How to subtract multiple rows in sql<p>I have a table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>Value</th> <th>date</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>741.4</td> <td>10 October</td> </tr> <tr> <td>1</td> <td>752.7</td> <td>9 October</td> </tr> <tr> <td>1</td> ...
<p><em>Assuming</em> that <code>date</code> is a actual date and time value (as a string value in the format <code>d MMMM</code> is not a valid date) then you could use <code>LAG</code> within a Common Table Expression (CTE), and the filter your data to give the non-<code>NULL</code> values:</p> <pre class="lang-sql pr...
How to subtract multiple rows in sql
sql|sql-server
-1
49
1
72,897,073
72,897,073
1
true
2022-07-07T11:20:36.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to subtract multiple rows in sql<p>I have a table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>Value</th> <th...
72,891,796
Node JavaScript Heroku - CORS Works Successfully With All API calls Exept When Uploading Image API<p>Our web app has many apis that fetch from a node server deployed on heroku. All the apis work successfully except for one of the api which allow users to upload images to the node server. It worked fine in localhost but...
<p>This issue is something developers face a lot and it could be for various reasons. Based on your question I think you installed and are using the cors package properly. So this has to do something with your server image api route. Is the folder in which you store your images empty when you deploy it? If so, try addi...
Node JavaScript Heroku - CORS Works Successfully With All API calls Exept When Uploading Image API
javascript|node.js|heroku
1
49
1
72,901,405
72,901,405
1
true
2022-07-07T02:52:54.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Node JavaScript Heroku - CORS Works Successfully With All API calls Exept When Uploading Image API<p>Our web app has many apis that fetch from a node server ...
72,898,178
AWS Lambda - Fluentd instead of CloudWatch possible?<p>I want to move my logging for AWS Lambda from CloudWatch to Elasticsearch and Kibana, using Fluentd. I understand that I need to use Lambda outputs as an input to Fluentd, which I already have set up. All my Lambda functions are in Python.</p> <p>Is it possible to ...
<p>You won't be able to do it without additional 'plugins' but you can do it with a Lambda Extension.</p> <p>This code sample gives you an example.</p> <p><a href="https://github.com/aws-samples/aws-lambda-extensions/tree/main/python-example-elasticsearch-extension" rel="nofollow noreferrer">https://github.com/aws-samp...
AWS Lambda - Fluentd instead of CloudWatch possible?
amazon-web-services|elasticsearch|logging|aws-lambda|fluentd
0
49
1
72,904,424
72,904,424
1
true
2022-07-07T12:54:04.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWS Lambda - Fluentd instead of CloudWatch possible?<p>I want to move my logging for AWS Lambda from CloudWatch to Elasticsearch and Kibana, using Fluentd. I...
72,888,845
Captioning all frames of a gif<p>I have a simple bash script to caption still images (jpg, png...) but it completely fails when given an <strong>animated</strong> gif. The error is <code>convert: unable to write pixel cache '/tmp/magick-[random chars]': No space left on device @ error/cache.c/WritePixelCachePixels/5854...
<p>You can also do this in Imagemagick.</p> <pre><code>convert anim.gif -coalesce \ -gravity north -background white \ -splice 0x18 -font Arial -pointsize 12 -annotate +0+0 'THIS IS A TEST OF CAPTIONING TEXT' \ -layers Optimize anim3.gif </code></pre> <p><a href="https://i.stack.imgur.com/HtsoE.gif" rel="nofollow noref...
Captioning all frames of a gif
image-processing|imagemagick|gif|animated-gif|imagemagick-convert
1
49
2
72,905,559
72,905,559
1
true
2022-07-06T19:20:17.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Captioning all frames of a gif<p>I have a simple bash script to caption still images (jpg, png...) but it completely fails when given an <strong>animated</st...
72,895,571
Shopware 6 CMS form - Clear input fields after submit<p>I have a standard newsletter form from the shopware6 CMS. <a href="https://i.stack.imgur.com/IHxbE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IHxbE.png" alt="Shopware 6 Newsletter Form" /></a></p> <p>Now people can register and get a succes...
<p>The Shopware standard behavior is indeed a bit confusing here. Especially due to the success message being shown below the form, it might get unnoticed.</p> <p>But instead of clearing the form, I would suggest to hide the form and just show the success message in it's place.</p> <p>This might be also a good take for...
Shopware 6 CMS form - Clear input fields after submit
shopware|shopware6
0
49
1
72,907,162
72,907,162
1
true
2022-07-07T09:39:13.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shopware 6 CMS form - Clear input fields after submit<p>I have a standard newsletter form from the shopware6 CMS. <a href="https://i.stack.imgur.com/IHxbE.pn...
72,910,884
How can I declare two different configurations to .stylelint<p>I use Stylelint on my project to check styles. I'm using a plugin that should only run on one folder. And the main configuration that is done for the whole project. <strong>.stylelint</strong> file:</p> <pre><code>{ &quot;extends&quot;: &quot;stylelint-...
<p>You can use the <a href="https://stylelint.io/user-guide/configure/#overrides" rel="nofollow noreferrer"><code>overrides</code> configuration property</a> to modify a Stylelint config for a specified set of files.</p> <p>For example, to additionally run the stylelint-no-px plugin on the <code>*.scss</code> files in ...
How can I declare two different configurations to .stylelint
styles|stylelint|scss-lint
0
49
1
72,911,189
72,911,189
1
true
2022-07-08T11:43:18.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I declare two different configurations to .stylelint<p>I use Stylelint on my project to check styles. I'm using a plugin that should only run on one ...
72,867,436
How to return values only after useEffect completes its execution in custom hook react<p>I have a custom hook, where based on the length of data and connector, it's set the layout of grid. But initially, its sending as empty values for which the layout is broken initially and getting displayed correctly in few seconds....
<p>useEffect can't be called before first render, so it's impossible to calculate things before first render.</p> <p>In your case you have few options:</p> <ol> <li>Handle case with empty values (prevent your layout from being broken)</li> <li>Use something like react-skeleton to show user at least some UI while correc...
How to return values only after useEffect completes its execution in custom hook react
javascript|reactjs|redux|react-hooks|frontend
-1
49
1
72,912,637
72,912,637
1
true
2022-07-05T09:57:06.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to return values only after useEffect completes its execution in custom hook react<p>I have a custom hook, where based on the length of data and connecto...
72,913,382
I have two default routes on my Windows, from which interface are my packets leaving?<p>I have two default routes on my Windows :</p> <pre><code>&gt; Get-NetRoute -DestinationPrefix 0.0.0.0/0 ifIndex DestinationPrefix NextHop RouteMetric ifMetric PolicyStor...
<pre><code>Get-NetRoute -DestinationPrefix &quot;0.0.0.0/0&quot;|Select IfIndex,DestinationPrefix,RouteMetric </code></pre> <p>It probably depend of -AutomaticMetric -InterfaceMetric parameter</p> <p>Specifies the value for automatic metric calculation. Automatic metric determines whether TCP/IP automatically calculate...
I have two default routes on my Windows, from which interface are my packets leaving?
powershell|routes
0
49
1
72,913,983
72,913,983
1
true
2022-07-08T15:03:38.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I have two default routes on my Windows, from which interface are my packets leaving?<p>I have two default routes on my Windows :</p> <pre><code>&gt; Get-Net...
72,913,432
apply pallete in geom_bar ggplot<p>I am trying to apply a pallete to a geom_bar with facets.</p> <p>Here is my code</p> <pre><code>est21 &lt;- structure(list(Zona = c(&quot;Urbana&quot;, &quot;Urbana&quot;, &quot;Urbana&quot;, &quot;Rural&quot;, &quot;Urbana&quot;, &quot;Urbana&quot;, &quot;Urbana&quot;, &quot;Rural&q...
<p>The <a href="https://github.com/EmilHvitfeldt/paletteer" rel="nofollow noreferrer">paletteer package</a> is a nice option as it makes many palettes available in one R package.</p> <p>Use <code>fill = Sector</code> inside the <code>aes</code>, and add <code>scale_fill_paletteer_d(&quot;vapoRwave::jazzCup&quot;)</code...
apply pallete in geom_bar ggplot
r|ggplot2|geom-bar
0
49
2
72,914,121
72,914,121
1
true
2022-07-08T15:06:33.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: apply pallete in geom_bar ggplot<p>I am trying to apply a pallete to a geom_bar with facets.</p> <p>Here is my code</p> <pre><code>est21 &lt;- structure(list...
72,924,130
Is it possible to reset the console output color just using SetConsoleTextAttribute() on windows?<p>I'm looking for a way to use SetConsoleTextAttribute() to reset the output color of the windows console, doing what <code>\033[0m</code> does on Mac and Linux. Is there any way of doing this? I'm looking to avoid extern...
<p>I don't think there is a reset function, you just have to save the attributes when your program starts.</p> <blockquote> <p>To determine the current color attributes of a screen buffer, call the GetConsoleScreenBufferInfo function.</p> </blockquote> <p>cmd.exe works the same way:</p> <pre><code>color 09 cmd /k color...
Is it possible to reset the console output color just using SetConsoleTextAttribute() on windows?
c|windows|console
-1
49
1
72,925,129
72,925,129
1
true
2022-07-09T19:37:55.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to reset the console output color just using SetConsoleTextAttribute() on windows?<p>I'm looking for a way to use SetConsoleTextAttribute() to...
72,924,746
Get right week from date<p>Lets say i have date 2022-01-02 and when I want to get week of year I´ve got 52. But its the 52 week of year 2021, not 2022. So question is how can I get the right year of week from this date?</p> <pre><code>$date = &quot;2022-01-02 00:00:00&quot;; $week = (float) date(&quot;W&quot;, strtotim...
<p>Week 52 of year 2021 started at 2021-12-27 (a Monday) and ended at 2022-01-02 (a Sunday). Week 1 of year 2022 started at 2022-01-03 (a Monday). This is the definition by ISO 8601. Such a numbering of the weeks is used, for example, in international merchandise management.</p> <p>For this, <code>date()</code> support...
Get right week from date
php|date
0
49
1
72,925,437
72,925,437
1
true
2022-07-09T21:28:12.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get right week from date<p>Lets say i have date 2022-01-02 and when I want to get week of year I´ve got 52. But its the 52 week of year 2021, not 2022. So qu...
72,926,352
Getting SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" for rabbitmq<p>I am trying to learn rabbitmq with it's JAVA APIs.</p> <h2>Producer</h2> <pre class="lang-java prettyprint-override"><code>package org.rabbitmq.org.rabbitmq.helloworld; import com.rabbitmq.client.ConnectionFactory; import com.rabbit...
<p>Firstly, it's worth pointing out that the message from SLF4J isn't the real problem here. That's just a warning saying that SLF4J couldn't find a suitable logging library to use to write logs.</p> <p>The real problem here is the <code>UnknownHostException</code>. I believe the problem is caused by this line:</p> <pr...
Getting SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" for rabbitmq
java|xml|maven|rabbitmq
0
49
1
72,926,623
72,926,623
1
true
2022-07-10T05:37:13.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" for rabbitmq<p>I am trying to learn rabbitmq with it's JAVA APIs.</p> <h2>Producer</h...
72,928,222
what is different of set vs append<p>In Javascript, <strong>URLSearchParams</strong> Is it different &quot;set&quot; between &quot;append&quot;?</p> <pre class="lang-js prettyprint-override"><code>const test = new URLSearchParams(); test.append(&quot;name&quot;, &quot;Harry Potter&quot;); </code></pre> <pre class="lang...
<p>The difference becomes easy to see when you call the methods twice. With <code>append</code>, both values are included in the URL, while with <code>set</code>, any present value will be overridden.</p> <pre class="lang-js prettyprint-override"><code>const url = new URLSearchParams() url.append(&quot;name&quot;, &quo...
what is different of set vs append
javascript|urlsearchparams
0
49
1
72,928,278
72,928,278
1
true
2022-07-10T11:41:55.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: what is different of set vs append<p>In Javascript, <strong>URLSearchParams</strong> Is it different &quot;set&quot; between &quot;append&quot;?</p> <pre cla...
72,925,354
Renaming all text files in a directory<p>I altered some code for powershell:</p> <pre><code>Get-ChildItem -Filter *.txt | ForEach-Object { # Loop over files of interest $newName = (Get-Content $_.FullName -Head 1)[-1] # Extract 1st line $_ | Rename-Item -NewName $newName # Rename input file } </code></pre> <p>...
<p>Use <code>(Get-Content $_.FullName -First 1)</code> instead of <code>(Get-Content $_.FullName -Head 1)[-1]</code></p> <p><code>-First</code> has been introduced in PowerShell 3.0.</p>
Renaming all text files in a directory
powershell
0
49
1
72,928,742
72,928,742
1
true
2022-07-09T23:58:13.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Renaming all text files in a directory<p>I altered some code for powershell:</p> <pre><code>Get-ChildItem -Filter *.txt | ForEach-Object { # Loop over files...
72,899,922
X11: XGetWindowAttributes: window position has offset<p>I'm using Gnome on Ubuntu 20.04. When I use <code>XGetWindowAttributes()</code>, the window position I get has an offset, as if the window has a thick (invisible) margin, but the offset is different for different windows.</p> <p>I looked at the component <code>bor...
<p>After rummaging around in the heap of stuff that is my <code>~/misc</code> directory I actually found a WIP of that X11 window tree traversal program I did mention in the comments. I originally wrote this to visualize the different ways in which window managers create decorations and place their clients within. Esse...
X11: XGetWindowAttributes: window position has offset
x11
1
49
1
72,930,273
72,930,273
1
true
2022-07-07T14:48:10.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: X11: XGetWindowAttributes: window position has offset<p>I'm using Gnome on Ubuntu 20.04. When I use <code>XGetWindowAttributes()</code>, the window position ...
72,933,120
Why can't hit the index when i use cast or convert in mysql<p>Edit after @Behrang answer:</p> <p>Ty for answer! This is my mistake. I mistakenly thought that only one column would reproduce the problems I encountered.</p> <p>Therefore, I gave a table creation statement with only one column without testing. According to...
<p>I tried all the queries and they all hit the index.</p> <p>First I recreated your table:</p> <pre><code>CREATE TABLE `test1` ( `num` varchar(11) NOT NULL DEFAULT '', KEY `num` (`num`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8; INSERT INTO test1 VALUES ('1'), ('2'), ('3'), ('4'); </code...
Why can't hit the index when i use cast or convert in mysql
mysql|sql
0
49
2
72,933,208
72,933,208
1
true
2022-07-11T02:13:49.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why can't hit the index when i use cast or convert in mysql<p>Edit after @Behrang answer:</p> <p>Ty for answer! This is my mistake. I mistakenly thought that...
72,938,105
Django - separated settings by environment. Not finding variable from base settings<p>I've split my django environment as per <a href="https://stackoverflow.com/a/54292952/4916945">this post</a>.</p> <p>In <code>settings/base.py</code> I have <code>BASE_DIR</code> specified:</p> <pre><code>BASE_DIR = Path(__file__).res...
<p>You have to import the <code>.base</code> setting in your test settings to make them available in <code>test.py</code></p> <pre class="lang-py prettyprint-override"><code>from .base import * # ... your other test settings </code></pre> <p>The second thing is to choose which settings you like in the <code>__init__.py...
Django - separated settings by environment. Not finding variable from base settings
django|django-settings|django-3.2
0
49
1
72,938,660
72,938,660
1
true
2022-07-11T11:48:11.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django - separated settings by environment. Not finding variable from base settings<p>I've split my django environment as per <a href="https://stackoverflow....
72,943,339
Regex match unless string is found<p>Can someone give me a hand in creating a regex string to match the first 3 entries, but omit the one that includes &quot;_Classes&quot;.</p> <p>Sample data set</p> <p>S-1-5-21-1562028002-2160284861-498729489-2544<br> S-1-5-21-1562028002-2160284861-498729489-5555<br> S-1-5-21-1562028...
<pre><code>^\D-\d{1}-\d{1}-\d{2}-\d{10}-\d{10}-\d{9}-\d{4}$ </code></pre> <p>The <code>^</code> and <code>$</code> are added to force the string being matched to start and end at exactly those points. Since <code>_Classes</code> would cause the string to end further ahead, it will no longer be matched thanks to the <co...
Regex match unless string is found
regex|powershell
0
49
2
72,943,379
72,943,379
1
true
2022-07-11T18:53:08.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Regex match unless string is found<p>Can someone give me a hand in creating a regex string to match the first 3 entries, but omit the one that includes &quot...
72,943,875
Download report from POST Request with Python?<p>I am trying to download a CSV file generated from a report at <a href="https://lee.county-taxes.com/public/reports/real_estate" rel="nofollow noreferrer">This</a> website.</p> <p>Below is the request I am trying to replicate.</p> <p><a href="https://i.stack.imgur.com/AJE...
<p>The following works:</p> <pre> from httpx import Client from bs4 import BeautifulSoup data = { 'base_url':'public/reports/real_estate', 'parent_request_id':'4C4ACC20-0155-11ED-9D24-CAB03D8B3709', 'session_id':296334053076598741934874852698924119209, 'app_url':'/tcb/app', 'page_url':'public/repor...
Download report from POST Request with Python?
python|web-scraping|post|python-requests
0
49
1
72,944,319
72,944,319
1
true
2022-07-11T19:45:35.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Download report from POST Request with Python?<p>I am trying to download a CSV file generated from a report at <a href="https://lee.county-taxes.com/public/r...
72,941,891
VSTO Async/Await - unable to cancel a long running operation<p>I'm developing a search tool for Word in C# with VSTO and WPF (MVVM).</p> <p>I'm using the Microsoft.Office.Interop.Word.Find() method and iterating through the document to find matches. Some of the document I need to process are in excess of 300,000 charac...
<blockquote> <p>how could one allow a button to remain operational if the UI Thread is kept busy by an interop method?</p> </blockquote> <p>Short answer: you can't. If the UI thread is kept busy doing tons of UI updates, then it can't <em>also</em> be properly responsive.</p> <p>The only real answer is to not interrupt...
VSTO Async/Await - unable to cancel a long running operation
c#|wpf|vsto|office-interop|office-addins
0
49
3
72,945,689
72,945,689
1
true
2022-07-11T16:41:25.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VSTO Async/Await - unable to cancel a long running operation<p>I'm developing a search tool for Word in C# with VSTO and WPF (MVVM).</p> <p>I'm using the Mic...
72,947,066
Adding ScrollOut animation to headings using CSS and JS<p>This <a href="https://codepen.io/shshaw/pen/YOPqLb" rel="nofollow noreferrer">Codepen</a> script uses SCSS to acheive animation to headings during scrolling of the webpage.</p> <p>I converted it to CSS format and it does not seems to be working when added to a w...
<p>You missed external CSS and Js library call,</p> <pre><code>&lt;link rel='stylesheet' href='https://unpkg.com/splitting/dist/splitting.css' type='text/css' /&gt; &lt;style&gt; h1.splitting { color: #84a8ff; } h1.splitting .char { transition: transform 0.3s cubic-bezier(0.3, 0, 0.3, 1), op...
Adding ScrollOut animation to headings using CSS and JS
javascript|html|css
0
49
2
72,947,456
72,947,456
1
true
2022-07-12T04:32:03.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding ScrollOut animation to headings using CSS and JS<p>This <a href="https://codepen.io/shshaw/pen/YOPqLb" rel="nofollow noreferrer">Codepen</a> script us...
72,947,323
Issues with large MySQL XtraBackup stream to S3<p>We have a bespoke database backup solution that will be causing us problems in the near future. I'll explain. S3 has a single file limit of ~5TB. Our backup solution utilizes xtrabackup with the xbstream option which is then piped into an 'aws s3 cp' command to store it...
<p>Regarding your specific question of:</p> <blockquote> <p>Is there a way to &quot;chunk&quot; the stream so that it writes a new file/stream every X bytes?</p> </blockquote> <p>Your best bet for adapting your current workflow to &quot;chunk&quot; your backup file would be to use <a href="https://www.gnu.org/software/...
Issues with large MySQL XtraBackup stream to S3
mysql|amazon-s3|backup
0
49
2
72,947,615
72,947,615
1
true
2022-07-12T05:14:18.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issues with large MySQL XtraBackup stream to S3<p>We have a bespoke database backup solution that will be causing us problems in the near future. I'll explai...
72,946,686
dplyr to detect groups with identical composition<p>Reprex:</p> <pre><code>library(dplyr) library(tibble) test &lt;- tribble(~id_group, ~id_member, ~txt_member, ~id_component, 'A', 1, 'aa', 40, 'A', 2, 'ff', 30, ...
<p>An alternative tidyverse approach could be:</p> <p>(<code>ungroup</code> at the end if you need to.)</p> <pre class="lang-r prettyprint-override"><code>library(tidyverse) # Sample data test &lt;- tribble( ~id_group, ~id_member, ~txt_member, ~id_component, &quot;A&quot;, 1, &quot;aa&quot;, 40, &quot;A&quot;, 2...
dplyr to detect groups with identical composition
r|dplyr
1
49
2
72,949,659
72,949,659
1
true
2022-07-12T03:22:46.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: dplyr to detect groups with identical composition<p>Reprex:</p> <pre><code>library(dplyr) library(tibble) test &lt;- tribble(~id_group, ~id_member, ~txt_mem...
72,949,678
Next.js multiple class scss from different files<p>A long search for information about this did not lead to success, so I would like to ask...</p> <p>I have a component for creating &quot;h1-h6&quot; tags with their own styles:</p> <pre><code>import {HTagProps} from './HTag.props' import styles from './HTag.module.scss...
<p>You can concat 2 className together</p> <pre><code> export const HTag = ({children, className h, ...props}: HTagProps) =&gt; { switch (h) { case 'h1': return (&lt;h1 className={`${styles.h1} ${className}`} {...props}&gt;{children}&lt;/h1&gt;) case 'h2': return (&lt;h2 clas...
Next.js multiple class scss from different files
reactjs|sass|next.js|react-component
1
49
2
72,949,772
72,949,772
1
true
2022-07-12T09:03:42.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Next.js multiple class scss from different files<p>A long search for information about this did not lead to success, so I would like to ask...</p> <p>I have ...
72,948,701
How to add "formControlName" to angular reactive forms "formGroup" from child components?<p>I have dynamic components in form and I want to connect fields with angular reactive forms.</p> <p>for example we have</p> <p>first-component.html</p> <pre><code>&lt;form [formGroup]=&quot;myform&quot;&gt; ... &lt;second-comp...
<p>You should pass the formGroup as @input to the child components, and then before the html input specify the relative formGroup</p> <p>Another method is that you specify the formControl itself, like this:</p> <pre><code>&lt;input [formControl]=&quot;formGroup.get('inputName')&quot; type text&gt; </code></pre> <p>See ...
How to add "formControlName" to angular reactive forms "formGroup" from child components?
angular|angular-reactive-forms|primeng
1
49
1
72,950,934
72,950,934
1
true
2022-07-12T07:43:37.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add "formControlName" to angular reactive forms "formGroup" from child components?<p>I have dynamic components in form and I want to connect fields wi...
72,951,095
How to retrieve real time changes from Firestore document in Flutter?<p>I'm trying to work with realtime changes in firebase. I found <a href="https://firebase.google.com/docs/firestore/query-data/listen#dart" rel="nofollow noreferrer">this doc</a> but it only applies to collections. I'd like to grab data from a single...
<p>Maybe I found a solution, it seems working</p> <pre class="lang-dart prettyprint-override"><code>StreamBuilder&lt;DocumentSnapshot&lt;Map&lt;String, dynamic&gt;&gt;&gt;( stream: FirebaseFirestore.instance.collection('Users').doc(documentId).snapshots(), builder: (BuildContext context, AsyncSnapshot&l...
How to retrieve real time changes from Firestore document in Flutter?
flutter|dart|google-cloud-firestore
1
49
1
72,951,225
72,951,225
1
true
2022-07-12T10:51:11.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to retrieve real time changes from Firestore document in Flutter?<p>I'm trying to work with realtime changes in firebase. I found <a href="https://fireba...
72,952,038
How to add two time in coldfusion<p>I am trying to find end time with duration and start time using ColdFusion. What I have tried is :</p> <pre><code>&lt;cfset st_time=timeFormat(&quot;05:00:00&quot;,'hh:mm:ss tt')&gt; &lt;cfset s_d=listToArray(duration,&quot;:&quot;)&gt; &lt;cfset hours=s_d[1]&gt; &lt;cfset min=s_d[2]...
<p>Step 1 - Covert your duration to seconds.</p> <p>Step 2 - Use ColdFusion's <code>DateAdd</code> function to calculate the end time.</p>
How to add two time in coldfusion
datetime|time|coldfusion|coldfusion-2016|time-format
0
49
2
72,952,241
72,952,241
1
true
2022-07-12T12:07:03.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add two time in coldfusion<p>I am trying to find end time with duration and start time using ColdFusion. What I have tried is :</p> <pre><code>&lt;cfs...
72,898,663
Set height of Fullcalendar.io events in a resourceTimeline<p>i want to set the height of my events, so they fill the full blank space of their time slot. Events should completely occupy the shaded space. There is always only one event in a time slot. My resources are on the y-axis and the time is displayed on the x-axi...
<p>I needed to overwrite an inline style with square brackets and !important.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>.fc-event-container[style] { height: 59% !i...
Set height of Fullcalendar.io events in a resourceTimeline
html|css|fullcalendar|fullcalendar-5
0
49
1
72,954,062
72,954,062
1
true
2022-07-07T13:24:51.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set height of Fullcalendar.io events in a resourceTimeline<p>i want to set the height of my events, so they fill the full blank space of their time slot. Eve...
72,957,008
No module named 'google trans'<p>I've got warning while installing the <code>pip googletrans</code>.</p> <p>The warning says in the picture:</p> <p><img src="https://i.stack.imgur.com/tN5Ot.png" alt="The warning says in the picture" /></p> <p>Does it affect my code? the error says &quot;No module named 'google trans'?<...
<p>Check if the directory of the googletrans module and make sure it's within the list. You can check the directories that python reads with:</p> <pre><code>import sys sys.path </code></pre> <p>You can add the directory of googletrans with:</p> <pre><code>sys.path.append('/Users/name/Documents') </code></pre>
No module named 'google trans'
python|nlp|importerror
1
49
1
72,957,091
72,957,091
1
true
2022-07-12T18:43:03.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: No module named 'google trans'<p>I've got warning while installing the <code>pip googletrans</code>.</p> <p>The warning says in the picture:</p> <p><img src=...
72,960,279
How to prevent Bootstrap 5 dropdown menu from closing when click inside<p>I am trying to prevent Bootstrap5 dropdown menu from closing when clicked inside. With Bootstrap 3 the code below works fine but with Bootstrap 5 it's not working.</p> <pre><code>//stop all bootstrap dropdown menu from closing on click inside $(d...
<p>In bootstrap 5, the option <strong>auto-close</strong> defines what happens on click. In your case, you can add <strong>data-bs-auto-close=&quot;outside&quot;</strong> to your dropdown.</p> <p>See below:</p> <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false"> <div class="s...
How to prevent Bootstrap 5 dropdown menu from closing when click inside
bootstrap-5
0
49
1
72,960,498
72,960,498
1
true
2022-07-13T02:31:46.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to prevent Bootstrap 5 dropdown menu from closing when click inside<p>I am trying to prevent Bootstrap5 dropdown menu from closing when clicked inside. W...
72,960,882
Find if data in column fulfills a datatype condition in sql<p>I have a table product with a column product id which is string datatype as below.</p> <pre><code>Product_id 101 102 102a </code></pre> <p>I would like to know if there is any way to take all values in product_id which cannot fill the condition of integer ...
<p>In snowflake:</p> <pre><code>select column1 as Product_id from values ('101'), ('102'), ('102a') where try_to_number(Product_id) is null; </code></pre> <p>gives</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>PRODUCT_ID</th> </tr> </thead> <tbody> <tr> <td>102a</td> </tr> </...
Find if data in column fulfills a datatype condition in sql
postgresql|snowflake-cloud-data-platform|teradatasql
1
49
2
72,960,970
72,960,970
1
true
2022-07-13T04:16:36.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find if data in column fulfills a datatype condition in sql<p>I have a table product with a column product id which is string datatype as below.</p> <pre><co...
72,957,994
BeginBinaryImport in a transaction<p>As far as I can tell, the <code>COPY</code> command in Postgres supports transactions, but I don't see a way to specify a transaction with <code>NpgsqlConnection.BeginBinaryImport</code>. Is it not supported?</p>
<p>BeginBinaryImport implicitly participates in a transaction started before it. So just do NpgsqlConnection.BeginTransaction first, and then call BeginBinaryImport.</p>
BeginBinaryImport in a transaction
postgresql|npgsql
0
49
1
72,961,654
72,961,654
1
true
2022-07-12T20:23:50.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: BeginBinaryImport in a transaction<p>As far as I can tell, the <code>COPY</code> command in Postgres supports transactions, but I don't see a way to specify ...
72,961,666
Do the # in front of success and failure in Kubectl pod Describe (Kubernetes) mean something?<p>Does the # in front of success and failure in a Kubectl describe (refer picture) meant to represent something?</p> <p>All of the elements in each of those probes represent a config element for the probe but success and failu...
<p>It appears to be just be embedded into the print statement:</p> <p><a href="https://github.com/kubernetes/kubernetes/blob/b1e130fe83156783153538b6d79821c2fdaa85bb/staging/src/k8s.io/kubectl/pkg/describe/describe.go#L1956" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/blob/b1e130fe83156783153538b...
Do the # in front of success and failure in Kubectl pod Describe (Kubernetes) mean something?
kubernetes|kubernetes-health-check|readinessprobe|livenessprobe|startup-probe
1
49
2
72,962,362
72,962,362
1
true
2022-07-13T06:12:47.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Do the # in front of success and failure in Kubectl pod Describe (Kubernetes) mean something?<p>Does the # in front of success and failure in a Kubectl descr...
72,966,905
Compare two symbols that have almost 100% inverse correlation to identify the bars both tickers closed positive or negative<p>I am trying to compare two symbols, that have almost 100% inverse correlation, to identify the days both tickers closed positive or negative (where they lose the inverse correlation).</p>
<p>We can get the close of both symbols and display bars wherever the close is in same direction. Example</p> <pre><code>//@version=5 indicator(title=&quot;Indicator Merge By Rohit&quot;,overlay=true) symbol1 = input.symbol(&quot;ZN1!&quot;,&quot;Symbol1&quot;) symbol2 = input.symbol(&quot;ED1!&quot;,&quot;Symbol2&quot...
Compare two symbols that have almost 100% inverse correlation to identify the bars both tickers closed positive or negative
pine-script
-1
49
1
72,967,435
72,967,435
1
true
2022-07-13T13:09:15.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Compare two symbols that have almost 100% inverse correlation to identify the bars both tickers closed positive or negative<p>I am trying to compare two symb...
72,967,282
How to show nested JSON data in VueJS?<p>I've been studying VueJS and I wanted to draw a table using a JSON file. I was able to make a table as below, but I just cannot figure out how I can remove those 3 empty rows above the actual data.</p> <p>Is there anything I can do here?</p> <p><a href="https://i.stack.imgur.com...
<p>Do not iterable <code>&lt;tbody&gt;</code>, in one table use one tag <code>&lt;tbody&gt;</code> (<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody</a>)</p> <p>empty rows appears becouse you itagble <code...
How to show nested JSON data in VueJS?
json|vue.js
0
49
3
72,969,419
72,969,419
1
true
2022-07-13T13:37:30.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to show nested JSON data in VueJS?<p>I've been studying VueJS and I wanted to draw a table using a JSON file. I was able to make a table as below, but I ...
72,958,960
Lit: Overriding child component CSS given an @property field<p>I have a lit component (e.g tc-tooltip) where in some cases I'd like to remove its arrow by overriding its CSS as described in the <a href="https://shoelace.style/components/tooltip?id=remove-arrows" rel="nofollow noreferrer">shoelace docs</a></p> <p>Is the...
<p>It's hard to say without seeing the full code with what <code>styles</code> is and how <code>removeArrow()</code> is being called.</p> <p>One potential source of problem could be that boolean reactive properties should not be defaulted true as they may have unintended behavior and may not turn false. So you should d...
Lit: Overriding child component CSS given an @property field
javascript|css|typescript|lit|shoelace
0
49
1
72,970,245
72,970,245
1
true
2022-07-12T22:20:19.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Lit: Overriding child component CSS given an @property field<p>I have a lit component (e.g tc-tooltip) where in some cases I'd like to remove its arrow by ov...
72,970,130
Add a column of length matching that of another dataframe AND adjust the value of that column in each row depending on a filename<p>I have datasets formatted in a way represented by the set below:</p> <pre><code>FirstName Letter Alexsmith A1 ThegreatAlex A6 AlexBobJones1 A7 Bobsmiles222 A1 Christ...
<p>Assuming you want them all in the same data frame, my suggestion would be to use the functions <code>purrr::map_dfr</code> and <code>fs::dir_ls</code>. The files will need to be in the same format for this to work.</p> <p>Put the files in their own folder, then do</p> <pre class="lang-r prettyprint-override"><code>l...
Add a column of length matching that of another dataframe AND adjust the value of that column in each row depending on a filename
r|dplyr
0
49
1
72,970,499
72,970,499
1
true
2022-07-13T17:09:14.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add a column of length matching that of another dataframe AND adjust the value of that column in each row depending on a filename<p>I have datasets formatted...
72,971,195
Python df.loc with regex<p>Dateframe that I am changing values of rows based on conditions.</p> <p>Current Dataframe:</p> <pre><code>import pandas as pd import re data = [['ACK_ID','TEXT',30], ['TOT_ACTIVE_PARTCP_CNT','NUMERIC'], ['ADMIN_SIGNED_DATE', &quot;TEXT&quot;, 30], ['BENEF_RCVG_BNFT_CNT...
<p>You can use simple <code>.str.contains</code>:</p> <pre class="lang-py prettyprint-override"><code>df.loc[df[&quot;FIELD_NAME&quot;].str.contains(&quot;DATE&quot;), &quot;TYPE&quot;] = &quot;DATE&quot; print(df) </code></pre> <p>Prints:</p> <pre class="lang-none prettyprint-override"><code> FIELD_NAME ...
Python df.loc with regex
python|regex|python-re
1
49
2
72,971,266
72,971,266
1
true
2022-07-13T18:45:45.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python df.loc with regex<p>Dateframe that I am changing values of rows based on conditions.</p> <p>Current Dataframe:</p> <pre><code>import pandas as pd impo...
72,978,338
ConditionExpression for PutItem not evaluating to false<p>I am trying to guarantee uniqueness in my DynamoDB table, across the partition key and other attributes (but not the sort key). Something is wrong with my <code>ConditionExpression</code>, because it is evaluating to true and the same values are getting inserted...
<p>The documentation <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html</a> says the following:</p> <blockquote> <p>attribute_n...
ConditionExpression for PutItem not evaluating to false
amazon-dynamodb
0
49
1
72,978,747
72,978,747
1
true
2022-07-14T09:33:54.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ConditionExpression for PutItem not evaluating to false<p>I am trying to guarantee uniqueness in my DynamoDB table, across the partition key and other attrib...
72,978,430
How to get results from web chrome to activity android<p>I am working with payment using net banking and doing payment from web chrome now when i back to the activity i want to check that payment is done or cancelled... how to check this in my activity when i came back from web in my android application project?</p>
<p>You can use <a href="https://developer.android.com/training/app-links/index.html" rel="nofollow noreferrer">applinks</a>.</p> <p>When you have done with payment your backend redirects to custom urls and you can listen them with intent-filters.</p> <pre><code>&lt;intent-filter android:autoVerify=&quot;true&quot;&gt; ...
How to get results from web chrome to activity android
android|kotlin|web|payment
0
49
1
72,981,218
72,981,218
1
true
2022-07-14T09:41:10.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get results from web chrome to activity android<p>I am working with payment using net banking and doing payment from web chrome now when i back to the...
72,982,770
google protobuf - PB_BYTES_ARRAY_T(n) - what is the use of .size field?<p>My protobuf file is</p> <pre><code>message Msg{ // User Authentication data as bytes. bytes MsgData = 1 [(nanopb).max_size = 2048]; } </code></pre> <p>When I generate the <strong>C</strong> API, the relevant parts are:</p> <pre><code>#de...
<blockquote> <p>Since the size of the payload is known - 2048 in this case - shouldn't pb_size_t size always by 2048?</p> </blockquote> <p>When you set <code>(nanopb).max_size = 2048</code>, it is the maximum size. The actual size of the data can be anything from 0 to 2048 bytes.</p> <p>The <code>.size</code> field sho...
google protobuf - PB_BYTES_ARRAY_T(n) - what is the use of .size field?
c|protocol-buffers|nanopb
0
49
1
72,983,870
72,983,870
1
true
2022-07-14T15:07:34.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: google protobuf - PB_BYTES_ARRAY_T(n) - what is the use of .size field?<p>My protobuf file is</p> <pre><code>message Msg{ // User Authentication data as ...
72,983,985
Terraform "vpc" module "private_subnets" value after "apply"<p>I have created a vpc using module &quot;vpc&quot; , Please clarify how the variable private_subnets or public_subnets be assigned with Subnet ID after &quot;apply&quot; BUT my question is, in &quot;resource&quot; block these variables are assigned CIDR bloc...
<p>A module contains multiple resources and when you take a look at the code of the <a href="https://github.com/terraform-aws-modules/terraform-aws-vpc" rel="nofollow noreferrer">terraform-aws-modules/vpc/aws</a> module you will see that the private_subnets and public_subnets are used to create <code>aws_subnet</code> ...
Terraform "vpc" module "private_subnets" value after "apply"
amazon-web-services|terraform
-1
49
1
72,984,176
72,984,176
1
true
2022-07-14T16:43:32.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Terraform "vpc" module "private_subnets" value after "apply"<p>I have created a vpc using module &quot;vpc&quot; , Please clarify how the variable private_su...
72,982,197
Show Intellisense in Umbraco Controller 9<p>What I would like to do is to access all of the properties of the rootContent with Intellisense. I get these backoffice objects (generated with modelsbuilder) via Umbraco.Helper.ContentAtRoot(); method, but the only way to see the backoffice properties is while debugging. Tha...
<p>If your generated ModelsBuilder files are part of your project, you should be able to cast the rootContent:</p> <p><code>var rootContent = UmbracoHelper.ContentAtRoot().FirstOrDefault() as WhateverClassYourRootNodeIs;</code></p> <p>That should get you Intellisense. Is that what you mean?</p>
Show Intellisense in Umbraco Controller 9
c#|.net|asp.net-core-mvc|umbraco|umbraco9
0
49
1
72,985,537
72,985,537
1
true
2022-07-14T14:29:08.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Show Intellisense in Umbraco Controller 9<p>What I would like to do is to access all of the properties of the rootContent with Intellisense. I get these back...
72,985,266
How can I fetch the results from the first and last row of each partition?<p>I can't figure out how to write an efficient query that merges results with the same identifier and uses information from the first and last result.</p> <p>I have the following table (Only the trades with a buy and sell action):</p> <div class...
<p>I prefer to use the EXISTS clause in this case, because personally I feel like the logic is easier to follow.</p> <pre><code>SELECT DISTINCT ON (position) position, symbol, action, first_value(executed_at) OVER w as opened_at, last_value(executed_at) OVER w as closed_at, first_value(price) OVER w as ...
How can I fetch the results from the first and last row of each partition?
sql|postgresql|window-functions
0
49
1
72,986,050
72,986,050
1
true
2022-07-14T18:39:40.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I fetch the results from the first and last row of each partition?<p>I can't figure out how to write an efficient query that merges results with the ...
72,983,437
Evaluating Azure Devops Expressions within Powershell<p>I want to be able to invoke the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops#counter" rel="nofollow noreferrer">Counter expression</a> within a template but I am unsure how to do so; my current template yml...
<blockquote> <p>Evaluating Azure Devops Expressions within Powershell</p> </blockquote> <p>Just as Daniel said that:</p> <blockquote> <p>The powershell script you're trying to run is getting finalized during compile time. This line: $revision1 = $[counter($minor, 1)] cannot possibly work. You are trying to take the res...
Evaluating Azure Devops Expressions within Powershell
powershell|azure-devops
1
49
1
72,988,924
72,988,924
1
true
2022-07-14T15:57:42.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Evaluating Azure Devops Expressions within Powershell<p>I want to be able to invoke the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/proc...
72,990,301
Enabling account deletion on nats server<p>I was trying to prune some users from my nats server by doing:</p> <pre><code>nsc push --system-account SYS -u nats://localhost:4222 -P </code></pre> <p>but I got the following error:</p> <blockquote> <p>server nats-comm-2 responded with error: delete accounts request by SOME_...
<p>I found documentation in the resolver section, <a href="https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_intro/jwt/resolver#nats-based-resolver" rel="nofollow noreferrer">here</a>, showing that I could add <code>allow_delete: true</code> to the config, but as the YAML format is in camel-c...
Enabling account deletion on nats server
nats.io
1
49
1
72,990,654
72,990,654
1
true
2022-07-15T07:15:07.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Enabling account deletion on nats server<p>I was trying to prune some users from my nats server by doing:</p> <pre><code>nsc push --system-account SYS -u nat...
72,990,545
cant get drop down menu to position under button clicked on in the navbar?<p>No matter what i do, just cant seem to get the dropdown menu to appear under the buttons clicked on in the navbar, unless i use position absolute with the left property but then if I adjust the viewable area by readjusting the browser it gets ...
<p>The main issue why &quot;position:relative&quot; doesnt work, is because you use &quot;overflow:hidden&quot; on the topbar.</p> <p>The code below fixes your issue by removing some overflow hidden, and i added a media query so that on mobile the dropdown menu goes in the center of the page.</p> <pre class="lang-html ...
cant get drop down menu to position under button clicked on in the navbar?
html|css|menu|dropdown
0
49
2
72,990,710
72,990,710
1
true
2022-07-15T07:36:10.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: cant get drop down menu to position under button clicked on in the navbar?<p>No matter what i do, just cant seem to get the dropdown menu to appear under the...
72,990,483
how to filter already selected option from select reactjs?<p>I have a mapped <code>Select</code> component that has a list of names. I need to filter out the name that has been already selected in one <code>Select</code> Component and not show in others. (i.e only show non-selected values in other <code>Select</code> C...
<p>You can store, the selected names in a list, just update the list accordingly in <code>onChange</code>, like this:</p> <pre><code>onChange={(value) =&gt; { const array = [...selected]; array[index] = value; setSelected(array); }}; </code></pre> <p>Check it working <a href="ht...
how to filter already selected option from select reactjs?
reactjs
0
49
1
72,990,817
72,990,817
1
true
2022-07-15T07:30:20.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to filter already selected option from select reactjs?<p>I have a mapped <code>Select</code> component that has a list of names. I need to filter out the...
72,996,344
Adding EMA with Signal on Smoothed RSI<p>I am trying to add an EMA with Smoothing Line on Cyclic Smoothed RSI. The EMA is pine-script version 5, and the Cyclic Smoothed RSI is version 4. But even if I downgrade the EMA to version 4, I am still having the following error -</p> <blockquote> <p>Syntax error: Arguments of ...
<p>You can change below line and remove input option on source</p> <pre><code>esrc = input(csrsi, title=&quot;Source&quot;) </code></pre> <p>To</p> <pre><code>esrc = csrsi </code></pre>
Adding EMA with Signal on Smoothed RSI
pine-script
0
49
1
72,996,385
72,996,385
1
true
2022-07-15T15:30:50.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding EMA with Signal on Smoothed RSI<p>I am trying to add an EMA with Smoothing Line on Cyclic Smoothed RSI. The EMA is pine-script version 5, and the Cycl...
72,914,383
How to do the reversed eight queen problems (check if any pair can eat ea other)?<p>Give the position of 8 queens on the chessboard. Print YES if at least one pair of queens hit each other. If not print out NO.</p> <p>so here's my code but when checking if these queens can hit ea other diagonally, python says</p> <pre>...
<p>So you'll basically convert everything into a list so it will be easier to check</p> <pre><code>rows = [] cols = [] for _ in range(8): r, c = [int(v) for v in input().split()] rows.append(r) cols.append(c) count = 0 for i in range(8): for j in range(i+1, 8): if rows[i] == rows[j] or cols[i]==...
How to do the reversed eight queen problems (check if any pair can eat ea other)?
python|coordinates|chess|python-chess
1
49
2
72,996,669
72,996,669
1
true
2022-07-08T16:30:30.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to do the reversed eight queen problems (check if any pair can eat ea other)?<p>Give the position of 8 queens on the chessboard. Print YES if at least on...
72,901,058
Twilio conversation js sdk Conversation.create() is depreceated<p>Working with <a href="https://github.com/TwilioDevEd/conversations-demo/blob/master/src/ConversationsApp.js" rel="nofollow noreferrer">Twilio conversation-demo</a> app, but <br/> <code>ConversationsClient.create(this.state.token);</code><br/> <code>.crea...
<p>with <code>&quot;@twilio/conversations&quot;: &quot;^2.1.0&quot;,</code> creating chat token from the <code>ConversationsClient.create</code> is deprecated. you should be creating a <code>token</code> from a <a href="https://www.twilio.com/docs/conversations/create-tokens" rel="nofollow noreferrer">server</a> before...
Twilio conversation js sdk Conversation.create() is depreceated
react-hooks|twilio|twilio-conversations
0
49
1
72,997,093
72,997,093
1
true
2022-07-07T16:07:55.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Twilio conversation js sdk Conversation.create() is depreceated<p>Working with <a href="https://github.com/TwilioDevEd/conversations-demo/blob/master/src/Con...