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,828,925
How to reset/delete Qcustomplot's axis ticker setting?<p>I have a QcustomPlot widget that I want to reuse it for plotting all kinds of plot. But there is a case that I need to set the xAxis ticker to DateTime.So I did this:</p> <pre><code>QSharedPointer&lt;QCPAxisTickerDateTime&gt; dateTicker(new QCPAxisTickerDateTime)...
<p>ui-&gt;customPlot-&gt;xAxis-&gt;setTicker(QSharedPointer(new QCPAxisTicker)); - this will return them to their standard state</p>
How to reset/delete Qcustomplot's axis ticker setting?
c++|qt|plot|qcustomplot
0
75
1
73,251,112
73,251,112
0
true
2022-07-01T11:57:27.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to reset/delete Qcustomplot's axis ticker setting?<p>I have a QcustomPlot widget that I want to reuse it for plotting all kinds of plot. But there is a c...
72,377,311
How to get a field on string data in Ruby for Redis?<p>I have a dataset with the name of <code>table1</code> in Redis like below:</p> <pre><code>[ { &quot;column-name1&quot;: &quot;10.1.10.1&quot;, &quot;column-name2&quot;: &quot;range(100,200)&quot;, &quot;column-name3&quot;: &quot;nam3&quot; }, { ...
<p>Frist, you should parse json data from stored string in Redis. For parsing json in Ruby you can do something like below:</p> <pre><code>require &quot;redis&quot; require &quot;json&quot; red = Redis.new(host: &quot;127.0.0.1&quot;, port: 6379, db: 1) &lt;-- connect to redis table1 = red.get(&quot;table1&quot;) &lt...
How to get a field on string data in Ruby for Redis?
ruby|redis|unmarshalling
0
75
1
73,342,840
73,342,840
1
true
2022-05-25T12:04:14.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get a field on string data in Ruby for Redis?<p>I have a dataset with the name of <code>table1</code> in Redis like below:</p> <pre><code>[ { &q...
72,256,740
what is the best way to read US region GCS bucket to write the data into Europe region bucket<p>The need is to read GCS bucket(bucket 1) mapped to US region and then write into Europe region GCS bucket(bucket 2). I would like to find the best solution to achieve the requirement. I thought to implement bucket-1 as multi...
<p>This is how I made it work. I have created a bucket-1 in US multi regional and bucket-2 in europe-west3 regional. That's all, my cloud function able to read from bucket-1 and written into bucket-2 successfully.</p>
what is the best way to read US region GCS bucket to write the data into Europe region bucket
google-cloud-platform|google-cloud-storage|gcs
0
75
2
72,259,117
72,259,117
0
true
2022-05-16T09:10:48.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: what is the best way to read US region GCS bucket to write the data into Europe region bucket<p>The need is to read GCS bucket(bucket 1) mapped to US region ...
72,250,010
mongodb - compound unique index using spring data not working<p>I am trying to create unique compound index in mongodb using spring data.<br /> But I see that the index is <strong>not</strong> created and the <strong>duplicate document</strong> is created in the DB.</p> <p>My entity class:</p> <pre><code>@Document @Get...
<p>As @Saxon mentioned:</p> <blockquote> <p>Spring Data MongoDB 3.0, automatic index creation is turned off by default.</p> </blockquote> <p>Instead of adding code, I am able to create the index by adding the spring data configuration in <code>application.properties</code></p> <pre><code>spring.data.mongodb.auto-index-...
mongodb - compound unique index using spring data not working
mongodb|spring-data|unique-index|compound-index
1
75
2
72,261,430
72,261,430
0
true
2022-05-15T16:10:42.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: mongodb - compound unique index using spring data not working<p>I am trying to create unique compound index in mongodb using spring data.<br /> But I see tha...
72,278,002
DraftSight Lisp - Find Excel Sheet<p>I'm trying to use Lisp to reach the cell level to manipulate the values in a sheet. I'm currently working from <a href="https://github.com/yyxuxyy/autolisp/blob/master/GetExcel.lsp" rel="nofollow noreferrer">this code</a> over on GitHub. However, I'm running into an issue in pulling...
<p>Instead of using <code>(vlax-for Worksheet (vlax-get-property workbook &quot;Sheets&quot;)</code> to pull each sheet, call for the <code>&quot;Item&quot;</code> and add a number to the end of the <code>vlax-get-property</code> function to pull each sheet from the list of sheets. The updated section of code is shown ...
DraftSight Lisp - Find Excel Sheet
excel|lisp|cad|autolisp
0
75
1
72,290,824
72,290,824
0
true
2022-05-17T16:59:10.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: DraftSight Lisp - Find Excel Sheet<p>I'm trying to use Lisp to reach the cell level to manipulate the values in a sheet. I'm currently working from <a href="...
72,298,287
Does the App Service Plans in Azure get moved when i move resources in a Resource Group?<p>I am trying to move resources from a resource group in one subscription to another in Azure. Im using Powershell as follows:</p> <p>Validate</p> <pre><code>Invoke-AzResourceAction -Action validateMoveResources ` -ResourceId &quot...
<p>If you move the resources across the Subscriptions/ Resource group, you have to move the entire resources which you want to move.</p> <p><strong>If your move requires setting up new dependent resources, you'll experience an interruption in those services until they've been re-configured</strong>.</p> <blockquote> <p...
Does the App Service Plans in Azure get moved when i move resources in a Resource Group?
azure|powershell
0
75
1
72,298,806
72,298,806
0
true
2022-05-19T03:25:57.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does the App Service Plans in Azure get moved when i move resources in a Resource Group?<p>I am trying to move resources from a resource group in one subscri...
72,303,801
PrestaShop/Smarty change {$image. based on filter $q=Color-Black -- please<p>I am kind of new on PrestaShop and I would like to learn more about Smarty templates and .tpl files.</p> <p>I have a problem with changing <code>{$image.bySize.home_default.url}</code> inside <em>products.tpl</em></p> <p>I'll try to explain my...
<p>I also want to share that the. Tpl files are Smarty Template Engine. It's a a kind of HTML+PHP mixture.</p> <p>The php $_GET can be used in Smarty with {$smarty.get.key}</p> <p>I hope it helped you a bit.</p>
PrestaShop/Smarty change {$image. based on filter $q=Color-Black -- please
php|templates|prestashop|smarty
1
75
1
72,323,169
72,323,169
0
true
2022-05-19T11:33:42.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PrestaShop/Smarty change {$image. based on filter $q=Color-Black -- please<p>I am kind of new on PrestaShop and I would like to learn more about Smarty templ...
72,326,182
Why I'm getting this error: The argument type 'String' can't be assigned to the parameter type 'int'?<p>This is the response of the statusCode and body if the user enters the wrong email and password. <code>I/flutter (20074): 200 I/flutter (20074): {&quot;code&quot;:1,&quot;message&quot;:&quot;invalid username or passw...
<p>The object <code>response.body</code> is a string. To access individual objects within the response, you first need to decode the json.</p> <pre><code>var response = await http.post(Uri.parse(&quot;url&quot;), headers: headers, body: jsonEncode( myBody )); final data = json.decode(response.body); if (response.st...
Why I'm getting this error: The argument type 'String' can't be assigned to the parameter type 'int'?
flutter|android-studio
0
75
1
72,326,253
72,326,253
0
true
2022-05-21T02:09:52.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why I'm getting this error: The argument type 'String' can't be assigned to the parameter type 'int'?<p>This is the response of the statusCode and body if th...
72,336,590
one hot encoding classification<p>I am having a CSV file like this</p> <pre><code>F1 | F2 | F3 | F4 | Label </code></pre> <p>I used the <code>get_dummies</code> to change the label to a one-hot encoding representation, the data contains 3 different labels, so the file now looks like</p> <pre><code>F1 | F2 ...
<p>You can try <code>iloc</code> or with <code>filter</code></p> <pre class="lang-py prettyprint-override"><code>x = df.iloc[:, :4] y = df.iloc[:, 4:] # or x = df.filter(like='F') y = df.filter(like='Label') </code></pre> <pre><code>print(x) F1 F2 F3 F4 0 1 2 3 4 1 1 2 3 4 2 1 2 3 4 pr...
one hot encoding classification
python|pandas|numpy|one-hot-encoding
0
75
1
72,336,688
72,336,688
0
true
2022-05-22T10:10:41.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: one hot encoding classification<p>I am having a CSV file like this</p> <pre><code>F1 | F2 | F3 | F4 | Label </code></pre> <p>I used the <code>get_d...
72,354,367
How to use Method param as variable in ruby<p>Hello i have a problem in ruby mine it says that my param isn't initialized can you help me? I need to sum all the subjects</p> <pre><code>class Student attr_accessor :name, :english, :math, :science, :french, :pe def initialize(name, english, math, science, french, pe...
<p>You're trying to access a method based on a <em>name</em> passed into a method.</p> <pre><code>class Student attr_accessor :name, :english, :math, :science, :french, :pe def initialize(name, english, math, science, french, pe) @name = name @english = english @math = math @science = science @...
How to use Method param as variable in ruby
ruby
0
75
3
72,355,038
72,355,038
0
true
2022-05-23T20:15:17.620Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use Method param as variable in ruby<p>Hello i have a problem in ruby mine it says that my param isn't initialized can you help me? I need to sum all ...
72,366,436
I am getting a non-descript Gitlab CI error. Can anyone help me try to get a better error statement?<p>I have this non-descript CI error is it possible to get something more descript?</p> <p>Code Snippet below:</p> <pre><code>$ semgrep-agent | versions - semgrep 0.81.0 on Python 3.9.10 | environment - running in envi...
<p>What could be happening is that you are setting the <strong>git_depth</strong> variable to something too low:</p> <pre><code>variables: GIT_DEPTH: 1 </code></pre> <p>Semgrep needs to fetch commit history to do a diff-aware scan between the source and target branch, so limiting the <strong>git_depth</strong> might...
I am getting a non-descript Gitlab CI error. Can anyone help me try to get a better error statement?
continuous-integration|gitlab-ci|semgrep
0
75
1
72,366,437
72,366,437
0
true
2022-05-24T16:34:07.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I am getting a non-descript Gitlab CI error. Can anyone help me try to get a better error statement?<p>I have this non-descript CI error is it possible to ge...
72,371,004
Returning Observable Metadata Instead of Expected Objects on nested snapshotchanges maps<p>I'm trying to resolve a user ID to a displayname and add it to a service return. It seems like it's working through console.log, but the actual return in the calling TS file returns observable nonsense.</p> <p><strong>Service 1</...
<p>I was so close, just needed to use the mergemap properly on 2 snapshotChanges to get what I needed:</p> <pre><code> getEventList(pid: string, sid: string) { return this.afs.collection(this.partyCollectionPath + pid + this.sessionCollectionPath + sid + this.eventCollectionPath, ref =&gt; ref.orderBy('time...
Returning Observable Metadata Instead of Expected Objects on nested snapshotchanges maps
angular|firebase|rxjs|observable
0
75
1
72,371,495
72,371,495
0
true
2022-05-25T01:11:13.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Returning Observable Metadata Instead of Expected Objects on nested snapshotchanges maps<p>I'm trying to resolve a user ID to a displayname and add it to a s...
72,370,335
How can I implement paging logic in C#?<p>I am requesting data from an API with built in paging. I am successfully able to request data (100 rows at a time) and insert it into my database. In cases where more than 100 rows are available, I am not getting the full dataset.</p> <p>Basically paging is handled by making a ...
<p>With the help of @hina10531 I was able to rewrite the task with success. The issue I am now running into is too many requests (429) as my tier of access to this API only allows 60 calls per minute - another question, another post.</p> <p>Answer below:</p> <pre><code> private static async Task&lt;List&lt;Emplo...
How can I implement paging logic in C#?
c#|api|cursor|paging
0
75
2
72,382,458
72,382,458
0
true
2022-05-24T23:05:59.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I implement paging logic in C#?<p>I am requesting data from an API with built in paging. I am successfully able to request data (100 rows at a time) ...
72,376,479
Cannot inject @Test annotated Method [over] with [class io.appium.java_client.AppiumDriver]<p>Cannot inject @Test annotated Method [over] with [class io.appium.java_client.AppiumDriver].</p> <p>getting this error</p> <p><a href="https://i.stack.imgur.com/O57y8.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
<p>You marked your class with <code>@Test</code> annotation which made all the methods in the class to be test methods.</p> <p>You cannot just define any parameter within your test method. You have to deal with injection mechanism.</p> <ul> <li><p>Either to use <a href="https://testng.org/doc/documentation-main.html#de...
Cannot inject @Test annotated Method [over] with [class io.appium.java_client.AppiumDriver]
java|eclipse|annotations|automated-tests|testng
0
75
1
72,387,732
72,387,732
0
true
2022-05-25T11:06:15.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot inject @Test annotated Method [over] with [class io.appium.java_client.AppiumDriver]<p>Cannot inject @Test annotated Method [over] with [class io.appi...
72,394,510
Use CTE in the WHERE clause without JOIN<p>I want to search through a list of values in the WHERE clause. The list is in another table and can be returned via CTE. Example:</p> <p>References table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ref_number</th> <th>Other irrelevant columns</...
<p>You can't just say &quot;IN CTE&quot;, you have to say &quot;IN (select x from CTE)&quot; or simply JOIN the CTE to the rest of the query if appropriate.</p>
Use CTE in the WHERE clause without JOIN
sql
0
75
1
72,394,558
72,394,558
0
true
2022-05-26T15:45:02.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use CTE in the WHERE clause without JOIN<p>I want to search through a list of values in the WHERE clause. The list is in another table and can be returned vi...
72,347,435
Value cannot be null error casting Generic list to F# List / Array<p>My Code is ( using Microsoft playwright to scrape a web page )</p> <pre><code>let bpl = page.Locator(&quot;//tr[@title]&quot;) let! links = bpl.EvaluateAllAsync(&quot;(tr) =&gt; tr.map(element =&gt; element.getAttribute(\&quot;title\&quot;))&quot...
<p>I managed to fix this using unbox</p> <pre><code>let bpl = page.Locator(&quot;//tr[@title]&quot;) let! links = bpl.EvaluateAllAsync(&quot;(tr) =&gt; tr.map(element =&gt; element.getAttribute(\&quot;title\&quot;))&quot;) |&gt; Async.AwaitTask let blogPagelinks = ...
Value cannot be null error casting Generic list to F# List / Array
f#
0
75
1
72,399,881
72,399,881
0
true
2022-05-23T10:59:38.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Value cannot be null error casting Generic list to F# List / Array<p>My Code is ( using Microsoft playwright to scrape a web page )</p> <pre><code>let bpl = ...
72,401,482
How to disable CSS caching in development, working with a PHP back end?<p>I'm working on php/css project through localhost and nearly every time I change css and reload page, css remains unchenged until I delete cookies, cache and other site data (somethimes even then it doesn't work straight away). Css is linked corre...
<p>All the comments and answers were helpful, but none of them solved the problem long term.</p> <p>After some experimenting, I found an answer: disable saving cookies and cache for given site, in</p> <p><code>chrome settings &gt; advanced &gt; Privacy and security &gt; Sites that can never use cookies</code></p>
How to disable CSS caching in development, working with a PHP back end?
php|css|browser-cache
0
75
2
72,402,830
72,402,830
0
true
2022-05-27T06:47:16.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to disable CSS caching in development, working with a PHP back end?<p>I'm working on php/css project through localhost and nearly every time I change css...
72,342,506
Take two different values from a single SQL query<p>Is there a way to simplify/optimise this mysql/mariadb query? Ultimately I need two individual pieces of data from a single query: the latest transaction name and sum of all transaction payment amounts.</p> <p>This works but is ugly because it repeats the JOINS and WH...
<p>Thanks to D-Shih for the suggestion and intro to window functions which I didn't know existed. I simplified and ended up with this.</p> <p>For other scenarios where you need more than one result row due to partitioning, the <code>ROW_NUMBER()</code> will be required.</p> <pre><code>SELECT * FROM ( SELECT ...
Take two different values from a single SQL query
mysql|mariadb
-1
75
2
72,419,336
72,419,336
0
true
2022-05-23T01:49:44.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Take two different values from a single SQL query<p>Is there a way to simplify/optimise this mysql/mariadb query? Ultimately I need two individual pieces of ...
72,363,275
Authorization Error from beginCopyFromURL API from Javascript library (@azure/storage-blob) when executed from minikube<p>I have application registered in Azure and it has Storage Account Contributor role. I am trying to copy content from one account to another in same subscription by using SAS token. Below is code sni...
<p>Thank you <a href="https://github.com/EmmaZhu" rel="nofollow noreferrer">EmmaZhu-MSFT</a> for providing the solution. Simmilar issue also raise in <a href="https://github.com/Azure/azure-sdk-for-js/issues/21977" rel="nofollow noreferrer">github</a> Posting this as an answer to help other community member.</p> <block...
Authorization Error from beginCopyFromURL API from Javascript library (@azure/storage-blob) when executed from minikube
azure|azure-blob-storage|azure-node-sdk
0
75
1
72,430,081
72,430,081
0
true
2022-05-24T12:54:03.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Authorization Error from beginCopyFromURL API from Javascript library (@azure/storage-blob) when executed from minikube<p>I have application registered in Az...
72,346,618
Format date/time in line plot - matplotlib<p>I'm having some trouble formatting the x-axis label. I'd like to format the label to show the dates to show the hours but also the date in a YYYY-MM-DD.</p> <p>Code:</p> <pre><code>df1.plot.line(y='val1', ax=ax1); df2.plot.line(y='val1', ax=ax2, legend=False); plt.suptitle('...
<p>Inspired by the answer above, I found a way to adjust the formatting as well as the frequency of x-ticks for a line plot when dealing with time series.</p> <pre><code>ax.xaxis.set_major_locator(md.HourLocator(interval=8)) ax.xaxis.set_major_formatter( md.DateFormatter(&quot;%Y-%d-%m %H:%M&quot;) ) ax.set_xlim(pd...
Format date/time in line plot - matplotlib
python|pandas|date|matplotlib
1
75
2
72,515,432
72,515,432
0
true
2022-05-23T09:58:00.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Format date/time in line plot - matplotlib<p>I'm having some trouble formatting the x-axis label. I'd like to format the label to show the dates to show the ...
72,382,568
vectorized way to multiply and add specific axes in numpy array (convolutional layer backprop)<p>I was wondering how it would be possible to vectorize the following quadruple for-loops (this is t do with backprop in a convolutional layer).</p> <pre><code>W = np.ones((2, 2, 3, 8)) # just a toy example dW = np.zeros(W.sh...
<p>OK, turns out the error was to do with several things:</p> <ol> <li><code>dZ</code> needed to be dilated relative to the stride in the forward propagation</li> <li>the window function used for windowing <code>dZ</code> (done after dilation of <code>dZ</code>) needed to be called with stride 1 (no matter the stride c...
vectorized way to multiply and add specific axes in numpy array (convolutional layer backprop)
numpy|convolution|numpy-slicing|elementwise-operations
0
75
1
72,559,499
72,559,499
0
true
2022-05-25T18:26:36.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: vectorized way to multiply and add specific axes in numpy array (convolutional layer backprop)<p>I was wondering how it would be possible to vectorize the fo...
72,367,600
CPLEX with MATLAB using cplexmiqp<p>Hello my matlab code calls a cplexmiqp function to optimize a performance index.</p> <p>The MATLAB code I am using calls a miqp function as from cplex [v, fval, exitflag, output] = cplexmiqp(H, f, G, h, [], [], [], [], [], [], [], ctype );</p> <p>I would be using the function &quot;M...
<p>same question at</p> <p><a href="https://www.mathworks.com/matlabcentral/answers/1725610-using-cplex-with-matlab-newest-version/?s_tid=ans_lp_feed_leaf" rel="nofollow noreferrer">https://www.mathworks.com/matlabcentral/answers/1725610-using-cplex-with-matlab-newest-version/?s_tid=ans_lp_feed_leaf</a></p> <p>The Matl...
CPLEX with MATLAB using cplexmiqp
matlab|cplex
0
75
1
72,373,529
72,373,529
0
true
2022-05-24T18:11:34.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CPLEX with MATLAB using cplexmiqp<p>Hello my matlab code calls a cplexmiqp function to optimize a performance index.</p> <p>The MATLAB code I am using calls ...
72,312,112
add a column to a dataset from the split of two other columns<p>I have the following dataset in ubuntu and I would like to make an iteration (while or for) in bash in order to generate a new column with the quotient between failed and passed subjects.</p> <pre><code>id, name, country, Continent, grade, passed, failed 1...
<p>I refactored your code a bit and came up with the following:</p> <pre><code>#!/bin/bash # create new header header=$(awk 'NR==1 {print}' s.dat) printf &quot;%s, new\n&quot; &quot;${header}&quot; # read data file data rows while IFS=, read a b c d e passed failed; do newcolumn=0 # avoid divide-by-zero ...
add a column to a dataset from the split of two other columns
bash|ubuntu
-1
75
3
72,312,467
72,312,467
0
true
2022-05-19T23:36:19.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: add a column to a dataset from the split of two other columns<p>I have the following dataset in ubuntu and I would like to make an iteration (while or for) i...
72,364,564
Pass data between component in Angular<p>I have this page structure</p> <p><a href="https://i.stack.imgur.com/2NgrN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2NgrN.png" alt="enter image description here" /></a></p> <blockquote> <p>app.component.html</p> </blockquote> <pre><code>&lt;app-header&g...
<p>The 0xBobby's answer works fine with parent-child components but in more complex scenarios (with routing, for example) I would recommend using a shared service and <code>BehaviorSubject</code> for communication between components. Chech this Stackblitz example based loosely on your code: <a href="https://stackblitz....
Pass data between component in Angular
angular
1
75
2
72,365,917
72,365,917
0
true
2022-05-24T14:18:33.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass data between component in Angular<p>I have this page structure</p> <p><a href="https://i.stack.imgur.com/2NgrN.png" rel="nofollow noreferrer"><img src="...
72,374,369
How can I take a partial screenshot of my Xamarin.Forms app and save it into my gallery?<p>I am using 2 packages for this:</p> <p>1- ImageFromXamarinUI : &quot;Extension methods for capturing images from UI&quot; ( I use x:Name=&quot;ScreenshotThis&quot; and then write code in C# to take a screenshot of the specific th...
<p>You need to use a stream in the <code>MediaGallery.SaveAsync</code> method. Such as:</p> <pre><code>await MediaGallery.SaveAsync(MediaFileType.Image,imageStream, &quot;myScreenshot.png&quot;); </code></pre> <p>You can check the official document about how to use the MediaGallery plugin:<a href="https://github.com/di...
How can I take a partial screenshot of my Xamarin.Forms app and save it into my gallery?
c#|android|xaml|xamarin.forms|screenshot
0
75
1
72,374,645
72,374,645
0
true
2022-05-25T08:34:09.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I take a partial screenshot of my Xamarin.Forms app and save it into my gallery?<p>I am using 2 packages for this:</p> <p>1- ImageFromXamarinUI : &qu...
72,394,903
having problems connecting to sybase using quarkus with vert.x jdbc client<p>finally I am starting to migrate some monolith code to quarkus/vert.x reactive services.</p> <p>I am starting simple with a small service connecting to an exsiting DB. our DB currently is sybase (asa which is a relational one and IQ which is a...
<p>it seems like upgrade from jconn3 driver to jconn4 driver AND only using the jdbc client approach (now depracated) worked for me... thanks</p> <p>update: there's a jconn42.jar driver which is a jdbc4.2 implementation. the LogUtils class inside calls a method that is not allowed by the jboss logging system so quarkus...
having problems connecting to sybase using quarkus with vert.x jdbc client
quarkus|vert.x
0
75
1
72,405,313
72,405,313
0
true
2022-05-26T16:14:19.613Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: having problems connecting to sybase using quarkus with vert.x jdbc client<p>finally I am starting to migrate some monolith code to quarkus/vert.x reactive s...
72,396,621
How to add scrolling to the list using Gtk.jl (Julia)?<p>I'm trying to create a list of some data and need scrolling. I've tryed:</p> <pre><code>MainWindow1 = GtkScrolledWindow(&quot;ECG database&quot;, 900, 450) </code></pre> <p>These don't work: <a href="https://i.stack.imgur.com/b5q83.png" rel="nofollow noreferrer">...
<p>The GtkScrolledWindow should create its scrollbars automatically when it has content within it that is larger than will fit within its assigned size to show. Have you tried putting things in the scrolled window yet? For example, try adding a GtkTextView containing a GtkTextBuffer with lots of text in it.</p> <p>Exa...
How to add scrolling to the list using Gtk.jl (Julia)?
julia|gtk|gtk.jl
1
75
1
72,413,015
72,413,015
0
true
2022-05-26T18:47:21.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add scrolling to the list using Gtk.jl (Julia)?<p>I'm trying to create a list of some data and need scrolling. I've tryed:</p> <pre><code>MainWindow1 ...
72,355,603
Why am I getting ActiveRecord::Fixture::FixtureError error when loading name-spaced fixtures?<p>I am getting the following error <code>ActiveRecord::Fixture::FixtureError: table &quot;customers_database_configs&quot; has no columns named &quot;customers_database_cluster&quot;.</code> when I try <code>rails db:fixtures:...
<p><code>belongs_to</code> association is not set up properly:</p> <pre><code>&gt;&gt; CustomersDatabase::Config.create!(cluster: CustomersDatabase::Cluster.create!) ... Traceback (most recent call last): 1: from (irb):1 ActiveModel::MissingAttributeError (can't write unknown attribute `cluster_id`) </code></pr...
Why am I getting ActiveRecord::Fixture::FixtureError error when loading name-spaced fixtures?
ruby-on-rails|ruby
2
75
1
72,356,663
72,356,663
0
true
2022-05-23T23:00:27.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why am I getting ActiveRecord::Fixture::FixtureError error when loading name-spaced fixtures?<p>I am getting the following error <code>ActiveRecord::Fixture:...
72,239,466
Check if substring with leading and trailing whitespaces is in string<p>Imagine I need to check if in</p> <pre><code>longString = &quot;this is a long sting where a lo must be detected.&quot; </code></pre> <p>the substring <code>lo</code> as a word is contained. I need to use the leading and trailing whitespace to dete...
<p>You can use regex....</p> <pre><code>import re seq = [&quot; lo &quot;, &quot;bar&quot;] pattern = re.compile(r&quot;^\s*?lo\s*?$&quot;) for i in seq: result = pattern.search(i) if result: # does match ... do something else: # does not match con...
Check if substring with leading and trailing whitespaces is in string
python
1
75
2
72,239,682
72,239,682
1
true
2022-05-14T10:45:39.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if substring with leading and trailing whitespaces is in string<p>Imagine I need to check if in</p> <pre><code>longString = &quot;this is a long sting ...
72,261,759
How to scroll down in side menu<p>I am new to selenium python, how to scroll down to the bottom of the filter in swiggy. When I tried the background page is getting scroll instead of filter. <a href="https://i.stack.imgur.com/9SNCU.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>First you have to be sure to target the correct element, in this case the side menu, then with javascript you can edit its scroll level. Run the last line of the code below many times if you want to scroll more</p> <pre><code>from selenium import webdriver from selenium.webdriver.common.by import By from selenium.we...
How to scroll down in side menu
python|selenium|testing|automation|scroll
1
75
1
72,262,661
72,262,661
1
true
2022-05-16T15:30:46.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to scroll down in side menu<p>I am new to selenium python, how to scroll down to the bottom of the filter in swiggy. When I tried the background page is ...
72,282,149
How to describe and code an algorithm to check if two binary trees are identical or not?<p>Their quality standards require me to use proper grammar and write what I have already tried but I have really no information. It just asks me to do that and I have no idea how to start.</p> <blockquote> <p>identical</p> </blockq...
<p>If you want to check if two trees are <strong>identical</strong>, you can simply simultaneously traverse the two trees. When traversing the two trees, if a node exists on one tree but not on the other, then the trees are not identical.</p> <p>You can take the recursive approach described here: <a href="https://www.g...
How to describe and code an algorithm to check if two binary trees are identical or not?
python|algorithm|tree|binary-tree
0
75
1
72,282,179
72,282,179
1
true
2022-05-18T00:55:47.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to describe and code an algorithm to check if two binary trees are identical or not?<p>Their quality standards require me to use proper grammar and write...
72,285,491
Weird cursor behavior: Almost always the resize cursor. (win32 api)<p>I'm working with the win32 API, and am using it to make a window. This window works, but when I open it, the cursor is a loading cursor, and every time I bring my cursor to the edge to resize it, the cursor gets 'stuck' as that resizing cursor, it do...
<p>Set <code>wc.hCursor</code> to something other than null. <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-wndclassw" rel="nofollow noreferrer">If it's null, the operating system will leave the cursor alone when it enters your window, and you're supposed to set it to the cursor you want...
Weird cursor behavior: Almost always the resize cursor. (win32 api)
c++|windows|winapi|window
0
75
1
72,285,855
72,285,855
1
true
2022-05-18T08:15:51.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Weird cursor behavior: Almost always the resize cursor. (win32 api)<p>I'm working with the win32 API, and am using it to make a window. This window works, bu...
72,290,280
What is the difference between ```lo == 0, hi == len(cards) - 1``` and ```lo, hi = 0, len(cards) - 1```<p>I am currently practicing binary search and I'm having trouble understanding the difference in syntax between <code>lo == 0, hi == len(cards) - 1</code> and <code>lo, hi = 0, len(cards) - 1</code>. The code works w...
<p>A double equal-sign (<code>==</code>) is the operator to compare two object to see if they are equal. <code>lo == 0, hi == len(cards) - 1</code> will compare <code>lo</code> to <code>0</code> and <code>hi</code> to <code>len(cards)-1</code>.</p> <p><code>lo, hi = 0, len(cards) - 1</code> is the same as writeing</p> ...
What is the difference between ```lo == 0, hi == len(cards) - 1``` and ```lo, hi = 0, len(cards) - 1```
python|algorithm|data-structures|binary-search
-4
75
3
72,290,365
72,290,365
1
true
2022-05-18T13:38:02.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the difference between ```lo == 0, hi == len(cards) - 1``` and ```lo, hi = 0, len(cards) - 1```<p>I am currently practicing binary search and I'm hav...
72,290,100
Comunication between drawer menu and pageview [flutter]<p>I would like to: when user tapped drawer menu item, change the pageview's index which is located at main screen.</p> <p>I tried to change index from another file but I couldn't</p> <p>drawer menu code</p> <pre><code>InkWell( onTap: () { ...
<pre><code>HomeApp().openMyGloves(); </code></pre> <p>Here you are calling <code>openMyGloves()</code> from a new instance of the HomeApp which is not the one that exists in the widget tree</p> <p>to solve this you have to access the same HomeApp which is built in the widget tree, this will be done by these steps:</p> ...
Comunication between drawer menu and pageview [flutter]
flutter|dart
0
75
2
72,290,671
72,290,671
1
true
2022-05-18T13:27:00.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Comunication between drawer menu and pageview [flutter]<p>I would like to: when user tapped drawer menu item, change the pageview's index which is located at...
72,287,809
Check if user input for date ranges has been made in consecutive, chronological pairs<p>With <a href="https://github.com/pywebio/PyWebIO" rel="nofollow noreferrer">PyWebIO</a> I have created a user form that takes up to six dates, each pair composing a date range from start date <code>sdt</code> to end date <code>edt</...
<p>Since the first pair is required and the remaining two pairs are optional, you should enforce that logic.</p> <pre><code>def check_form(data): required_pairs = {1} # Specify all the required pairs in this set max_pairs = 3 # Max numbber of pairs data_lst = [] for i in range(1, max_pairs+1): ...
Check if user input for date ranges has been made in consecutive, chronological pairs
python|python-3.x
1
75
2
72,292,729
72,292,729
1
true
2022-05-18T10:50:58.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if user input for date ranges has been made in consecutive, chronological pairs<p>With <a href="https://github.com/pywebio/PyWebIO" rel="nofollow noref...
72,299,363
Pyspark Increment the timestamp column based on row_number value<p>I am pulling the data from eventhub and I am getting 10 records in each packet and a timestamp is coming on each packet. I want to explode the packet consisting of 10 records and I want to add the packet timestamp to each record incrementing by 1 sec wh...
<p>I was able to resolve the above task by making use of Windowing functions.</p> <p>steps:</p> <ol> <li>add the row_number for partitionBy columns and add substract by 1 so that row_number starts by 0 instead of 1.</li> <li>make use of lag function and create a new column nw_datetime_pkt.</li> <li>make use of unix_tim...
Pyspark Increment the timestamp column based on row_number value
apache-spark|pyspark|databricks
0
75
1
72,299,364
72,299,364
1
true
2022-05-19T06:03:01.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pyspark Increment the timestamp column based on row_number value<p>I am pulling the data from eventhub and I am getting 10 records in each packet and a times...
72,284,690
Cannot access global variable inside a parent class (python)<p>So I have this code (parent class in <em><strong>file_1.py</strong></em>):</p> <pre><code>class do_something(): def __init__(self, day, month, year): self.day = day self.month = month self.year = year def set_mes...
<p>Your code would be correct if <code>var_1_global</code> was defined in <code>file_1.py</code>. Here your <code>global var_1_global</code> statement has no effect since <code>var_1_global</code> is not in your global scope. Since it belongs to another file you have to import it from <code>file_2</code>.</p> <p>Howe...
Cannot access global variable inside a parent class (python)
python-3.x
0
75
1
72,300,237
72,300,237
1
true
2022-05-18T07:16:19.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot access global variable inside a parent class (python)<p>So I have this code (parent class in <em><strong>file_1.py</strong></em>):</p> <pre><code>clas...
72,305,622
Creating dummy variable based on value counts in a function<p>I'm trying to assign 0 to string that is more frequent and 1 to less frequent string in a function. My idea is that it should take any column with binary string and based on value count assign 0 and 1. How can i do that?</p> <pre><code> data = {'status':[&qu...
<p>You can use:</p> <pre><code>df['binary'] = df['status'].ne(df['status'].mode().iloc[0]).astype(int) </code></pre> <p><code>mode</code> gets the most frequent value, and <code>iloc[0]</code> gets the first one (in case of equality). Then we identify the values that are <strong>NOT</strong> this string (<code>True</co...
Creating dummy variable based on value counts in a function
python|pandas|dataframe|function|dummy-variable
-1
75
1
72,305,739
72,305,739
1
true
2022-05-19T13:39:43.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating dummy variable based on value counts in a function<p>I'm trying to assign 0 to string that is more frequent and 1 to less frequent string in a funct...
72,315,309
How to write md5 signature apk to upload on xiaomi store<p>I just wanted to upload my app on xiaomi app store and steps to create a signature build is not clear on develop dashboard there. I googled but couldn't fine anything useful, can someone please help me to find any doc or steps I need to follow in order to creat...
<p>Following are the steps to get the signature from <a href="https://dev.mi.com/console/doc/detail?pId=882" rel="nofollow noreferrer">MI dev</a> website.</p> <p>1.jarsigner signature method</p> <p>You can use the jarsigner tool that comes with the JDK to complete the signing. The command format of the jarsigner tool i...
How to write md5 signature apk to upload on xiaomi store
android|apk|md5|xiaomi
0
75
1
72,315,522
72,315,522
1
true
2022-05-20T07:46:47.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to write md5 signature apk to upload on xiaomi store<p>I just wanted to upload my app on xiaomi app store and steps to create a signature build is not cl...
72,317,250
Generic C# Repository, service and controller design<p>Im learning about generics and was wondering about how a generic controller, service and ef core repo design would look like.</p> <p>My case: lets say an incomming post request to add Smartphone and keyboard object to smartphone and keyboard tables</p> <p>My reposi...
<p>Ok, so your approach is completely valid, i would not worry about initializing two repositories, since they're essentially empty memory vise since they just take reference to existant DbContext which by default is registered with <strong>Scoped</strong> lifecycle.</p> <p>There will be a time when you need to use sev...
Generic C# Repository, service and controller design
c#|entity-framework|rest|generics
1
75
1
72,317,401
72,317,401
1
true
2022-05-20T10:18:23.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generic C# Repository, service and controller design<p>Im learning about generics and was wondering about how a generic controller, service and ef core repo ...
72,328,702
Does calling a static void method with empty body do anything?<p>There is a Java class with just an static method with an empty body.</p> <pre><code>package com; public class MyClass { public static void EmptyMethod() { } } </code></pre> <p>would calling this method in another class do anything, for example l...
<p>I would say that it does indeed have an effect and here is why.</p> <p>With the code call to the static method inside the someMethod() - the program will still call the EmptyMethod() - this is executed, taking a minimal amount of time like @David Weber says.</p> <p>If there was 'no effect' somehow Java would determi...
Does calling a static void method with empty body do anything?
java|android
1
75
2
72,329,414
72,329,414
1
true
2022-05-21T10:28:39.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does calling a static void method with empty body do anything?<p>There is a Java class with just an static method with an empty body.</p> <pre><code>package ...
72,366,177
Click on a button for another to be clicked<p>I'm trying to click on a button (<code>sbtn2</code>) so that another is triggered (<code>sbtn1</code>). I try:</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-...
<p>Currently, your code makes it so that when you click on button 2, an event handler for button 1 is set up so that you could then click button 1 and see the hidden message.</p> <p>To make it so that when button 2 is clicked, it performs the same action that button 1 would do, simply set up a handler on button 2 that ...
Click on a button for another to be clicked
javascript|html|jquery
0
75
2
72,366,298
72,366,298
1
true
2022-05-24T16:14:05.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Click on a button for another to be clicked<p>I'm trying to click on a button (<code>sbtn2</code>) so that another is triggered (<code>sbtn1</code>). I try:<...
72,375,509
StreamBuilder that waits for a stream on a future to emit<pre><code>return ref.watch(findStoreProvider).when( data: (store) { _store = store; return _map; }, error: (error, stackTrace) =&gt; Text(error.toString()), loading: () =&gt; VpLoadingPa...
<p>If you need a <code>Stream</code> that should wait on a <code>Future</code> to complete, you might want to look into <strong>async generators</strong> and the <code>async*</code> and <code>yield*</code> keywords.</p> <p>Here's a short example:</p> <pre><code>Stream&lt;MyObject&gt; getStreamThatWaitsOnFuture() async*...
StreamBuilder that waits for a stream on a future to emit
flutter|flutter-futurebuilder|rxdart|flutter-streambuilder
0
75
1
72,375,633
72,375,633
1
true
2022-05-25T09:57:18.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: StreamBuilder that waits for a stream on a future to emit<pre><code>return ref.watch(findStoreProvider).when( data: (store) { _stor...
72,386,578
How to use dplyr to return the grouped sum of all numeric columns when there are NA values?<p>I'm was attempting to sum all numeric columns using dplyr's group_by and summarise functions as below. I didn't understand the error returned from the summarise function and cannot seem to find a similar example on stack over...
<p>It's best to avoid defining a vector with different data types because R will convert the vector to a single data type.</p> <p>I think you might want to create your data like this:</p> <pre><code>tmp = tibble( ID = c('X', 'X', 'Y', 'Y', 'Z', 'Z'), A = c(1, NA, 1, 1, NA, 1), B = c(NA, 1, 1,...
How to use dplyr to return the grouped sum of all numeric columns when there are NA values?
r|dplyr
0
75
1
72,386,713
72,386,713
1
true
2022-05-26T04:09:24.703Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use dplyr to return the grouped sum of all numeric columns when there are NA values?<p>I'm was attempting to sum all numeric columns using dplyr's gro...
72,387,728
Change column value from character to number or duplicate row in R<p>I'm having an issue with a variable in some data that I have in R. I have a table that looks something like this,</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Variable X</th> <th>Variable Y</th> </tr> </thead> <tbody> <...
<p>You can first remove the square brackets and then <code>separate_rows</code>:</p> <pre><code>library(dplyr) library(tidyr) df %&gt;% mutate(Y = gsub(&quot;\\[|\\]&quot;, &quot;&quot;, Y)) %&gt;% separate_rows(Y, sep = &quot;,&quot;) # A tibble: 6 × 2 X Y &lt;dbl&gt; &lt;chr&gt; 1 11 1 2 15 ...
Change column value from character to number or duplicate row in R
r|duplicates|rows
1
75
3
72,388,238
72,388,238
1
true
2022-05-26T06:38:23.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change column value from character to number or duplicate row in R<p>I'm having an issue with a variable in some data that I have in R. I have a table that l...
72,392,011
Flutter - Instance of Future<int> returned from the function instead of the value<p>In the code provided the print function returns the correct number of friends that should be printed, but when I try to return it, it returns (Instance of Future ) and does not return the real value (the number)</p> <pre><code>Future&lt...
<p><strong>You have to use future builder for this</strong></p> <pre><code> class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: FutureBuilder&lt;int&gt;( future: FriendsNumber(), ...
Flutter - Instance of Future<int> returned from the function instead of the value
flutter
-2
75
3
72,392,119
72,392,119
1
true
2022-05-26T12:43:39.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter - Instance of Future<int> returned from the function instead of the value<p>In the code provided the print function returns the correct number of fri...
72,783,922
How connect to an existing Azure SQL database with ASP.NET CORE MVC using Entity Framework Core with migrations?<p>I have an app using Azure App Services with SQL server and SQL database that are connect to my web app on asp MVC. I've used Distributed Sql Server Cache as a table on my database and so far everything is ...
<ul> <li><strong>Add entity framework to my app (I already have the database and connection string)</strong></li> </ul> <p>Use below code for add Entity framework and upload to azure app service and run migration command to migrate database.</p> <p>DBcontext file in project.</p> <pre class="lang-html prettyprint-overr...
How connect to an existing Azure SQL database with ASP.NET CORE MVC using Entity Framework Core with migrations?
sql-server|azure|entity-framework|web-applications|azure-web-app-service
0
75
1
72,801,151
72,801,151
1
true
2022-06-28T09:26:40.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How connect to an existing Azure SQL database with ASP.NET CORE MVC using Entity Framework Core with migrations?<p>I have an app using Azure App Services wit...
72,819,802
SQL : Join rows on dynamic keys<p>I have a table with products that can be identified via a composite key of three keys <code>refi</code>, <code>refj</code> and <code>refk</code>. refi can not be null, refj and refk can be null. The keys have an order in trustworthiness power. Therefore refi has the lowest thrustworthi...
<p>You can work separately on each &quot;<em>ref</em>&quot; by applying self joins on the same &quot;<em>ref</em>&quot; value, then apply a <code>UNION</code> to the results, though fixing priority according to the one pointed in the post (k &gt; j &gt; i).</p> <pre><code>WITH cte_refk AS ( SELECT t1.t AS ...
SQL : Join rows on dynamic keys
mysql|sql|join|window-functions
0
75
1
72,820,884
72,820,884
1
true
2022-06-30T17:27:28.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL : Join rows on dynamic keys<p>I have a table with products that can be identified via a composite key of three keys <code>refi</code>, <code>refj</code> ...
72,817,171
Apache Flink typed KafkaSource<p>I implemented a connection to a kafka stream as described <a href="https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/connectors/datastream/kafka/" rel="nofollow noreferrer">here</a>. Now I attempt to write the data into a postgres database using a <a href="https://nightlie...
<p>In Java you might do something like this:</p> <pre class="lang-java prettyprint-override"><code>KafkaSource&lt;Event&gt; source = KafkaSource.&lt;Event&gt;builder() .setBootstrapServers(&quot;localhost:9092&quot;) .setTopics(TOPIC) .setStartingOffsets(OffsetsInitializer.earlie...
Apache Flink typed KafkaSource
scala|apache-kafka|apache-flink
0
75
1
72,822,417
72,822,417
1
true
2022-06-30T14:00:38.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apache Flink typed KafkaSource<p>I implemented a connection to a kafka stream as described <a href="https://nightlies.apache.org/flink/flink-docs-release-1.1...
72,800,399
ListView cant access last element of the list<p>I have a list of objects I want to list on the screen and im using a ListView with an adapter. And I have added a listViewItem click event like this:</p> <pre><code>lstViewData.ItemClick += OnListViewItemClicked; </code></pre> <p>The event itself:</p> <pre><code> priva...
<p>The <code>GetChildAt(index)</code> method can only access visible elements of the <code>ListView</code>. Try this in the for loop:</p> <pre><code>for (int i = 0; i &lt;= f_listView.getLastVisiblePosition() - f_listView.getFirstVisiblePosition(); i++) </code></pre>
ListView cant access last element of the list
c#|xamarin|xamarin.android
0
75
1
72,825,758
72,825,758
1
true
2022-06-29T11:10:44.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ListView cant access last element of the list<p>I have a list of objects I want to list on the screen and im using a ListView with an adapter. And I have add...
72,830,654
How to dynamically infer type in Typescript?<p>How can I make the compiler understand that the return type of the <code>parse</code> method is linked to the input of the <code>serialize</code> method and it is dynamic?</p> <pre><code>type QUESTION = { parse: (value: string) =&gt; any serialize: (value: ReturnType&l...
<p>I don't think what you're trying to achieve is doable without some helper functions or making it excessively verbose. Make a function that could help determine what <code>T</code> should be.</p> <pre><code>type QUESTION&lt;T&gt; = { parse: (value: string) =&gt; T serialize: (value: T) =&gt; string } function QU...
How to dynamically infer type in Typescript?
typescript
0
75
2
72,832,845
72,832,845
1
true
2022-07-01T14:18:54.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to dynamically infer type in Typescript?<p>How can I make the compiler understand that the return type of the <code>parse</code> method is linked to the ...
72,855,744
Why does this function of C# have an argument of type this?<pre class="lang-cs prettyprint-override"><code>public static T GetResult&lt;T&gt;(this RpcResponseMessage response, bool returnDefaultIfNull = true, JsonSerializerSettings settings = null) { if (response.Result == null) { if (!returnDefaultIfNu...
<p>The type of argument is RpcResponseMessage. &quot;This&quot; is added before the type tells the compiler you want to use it as an extension method.</p> <p>So you can call it like that (without or without &quot;this&quot;):</p> <pre><code>var response = new RpcResponseMessage(); GetResult&lt;string&gt;(response); </c...
Why does this function of C# have an argument of type this?
c#|vb.net
0
75
1
72,856,653
72,856,653
1
true
2022-07-04T11:06:29.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does this function of C# have an argument of type this?<pre class="lang-cs prettyprint-override"><code>public static T GetResult&lt;T&gt;(this RpcRespons...
72,856,434
DB2 - ERRORCODE=-4229, SQLSTATE=null<p>I'm using a batch class in EJB to <code>INSERT</code> more than 100 rows in the same commit using the command line <code>executeBatch</code> in the DB2.</p> <p>When I execute the command shows this error: <code>ERRORCODE=-4229, SQLSTATE=null</code>.</p> <p>The ID sequence is IDENT...
<p>It's not an answer, but a suggestion to handle Db2 exceptions to have an ability to deal with such errors.<br /> If you are unable to rewrite your error handling, the only thing you can to is to enable JDBC trace on the client or/and set the Db2 dbm cfg <code>DIAGLEVEL</code> parameter to 4.</p> <pre><code>PreparedS...
DB2 - ERRORCODE=-4229, SQLSTATE=null
sql|db2|websphere
0
75
1
72,857,515
72,857,515
1
true
2022-07-04T12:04:31.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: DB2 - ERRORCODE=-4229, SQLSTATE=null<p>I'm using a batch class in EJB to <code>INSERT</code> more than 100 rows in the same commit using the command line <co...
72,852,406
Autocomplete search box from MySQL that displays multiple columns<p>I've been trying to make an autocomplete search box from a MySQL database that displays multiple columns of data when searching.(ie. Searching for an item #, at it displays the item number, manufacturer, and price)</p> <p>Below is what I have currently...
<p>You can override the default autocomplete style this way, so you can use html br tags and your own css stylesheet :</p> <pre><code>&lt;script type=&quot;text/javascript&quot;&gt; $(function() { $( &quot;#term&quot; ).autocomplete({ source: 'ajax-db-search.php', select: function(event, ui) { ...
Autocomplete search box from MySQL that displays multiple columns
php|html|mysql
0
75
1
72,857,822
72,857,822
1
true
2022-07-04T06:13:34.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Autocomplete search box from MySQL that displays multiple columns<p>I've been trying to make an autocomplete search box from a MySQL database that displays m...
72,858,980
How to create a common error handling mechanism for multiple C libraries?<p>Each source file of my library (libA) includes an in_err.h file.<br /> This file defines an enum for every possible error, and an array of string describing the corresponding error.<br /> There is a function get_err_mess() which returns the err...
<p>Basic idea: return a 16-byte struct (<code>UNIFORM_ERROR</code> below) on the stack.</p> <p><code>err.h</code>:</p> <pre><code>#pragma once typedef const char *(*err_msg_func)(int err); typedef struct { err_msg_func err_to_msg; const char *name; } ERR_SRC; typedef struct { int code; const ERR_SRC* ...
How to create a common error handling mechanism for multiple C libraries?
c|error-handling|libraries
2
75
1
72,861,517
72,861,517
1
true
2022-07-04T15:21:49.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create a common error handling mechanism for multiple C libraries?<p>Each source file of my library (libA) includes an in_err.h file.<br /> This file ...
72,837,683
A problem about the return value of C function<p>I use ctypes to call C functions in Python with dll.</p> <p>In c:</p> <pre class="lang-c prettyprint-override"><code>typedef struct StructPointerTest* StructPointer; struct StructPointerTest { int x; int y; int* z; }; StructPointer testy() { StructPointe...
<p>As comments mention, the <code>d</code> array is a local variable so it is no longer available when the function returns. Instead, that array should be allocated as well:</p> <p><strong>test.c</strong></p> <pre class="lang-c prettyprint-override"><code>#include &lt;stdlib.h&gt; #ifdef _WIN32 # define API __decls...
A problem about the return value of C function
python|c|ctypes
0
75
1
72,864,499
72,864,499
1
true
2022-07-02T08:39:57.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: A problem about the return value of C function<p>I use ctypes to call C functions in Python with dll.</p> <p>In c:</p> <pre class="lang-c prettyprint-overrid...
72,874,905
how to use a list in another class?<p>I want to create a list, add blocks to it and then use it in a BlockBreakEvent to check if the block is in the list and cancel the event if it's not. But I can't seem to create and add things in it any other way than in the actual event itself (which looks to me like it would creat...
<p>You can make allowedBlocks List a class field and fill it with elements inside of the constructor.</p> <pre><code>public class YourClass { private List&lt;Material&gt; allowedBlocks = new ArrayList&lt;&gt;(); public YourClass() { allowedBlocks.add(Material.STONE); //repeat this 10-50 tim...
how to use a list in another class?
java|minecraft|spigot
-2
75
4
72,875,247
72,875,247
1
true
2022-07-05T19:57:58.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to use a list in another class?<p>I want to create a list, add blocks to it and then use it in a BlockBreakEvent to check if the block is in the list and...
72,812,247
MySQL InnoDB Cluster config - configure node address<p>I'm setting up an InnoDB Cluster using <code>mysqlsh</code>. This is in Kubernetes, but I think this question applies more generally.</p> <p>When I use <code>cluster.configureInstance()</code> I see messages that includes:</p> <blockquote> <p>This instance reports ...
<p>Apparently this value has to be set at startup. The option for my setup was</p> <pre><code>--report-host=${HOSTNAME}.cluster </code></pre> <p>when starting the MySQL instances resolved the issue.</p> <p>Specifically for Kubernetes, an example is at <a href="https://github.com/adamelliotfields/kubernetes/blob/master/...
MySQL InnoDB Cluster config - configure node address
mysql|kubernetes|innodb|mysql-innodb-cluster
0
75
1
72,876,527
72,876,527
1
true
2022-06-30T08:00:45.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL InnoDB Cluster config - configure node address<p>I'm setting up an InnoDB Cluster using <code>mysqlsh</code>. This is in Kubernetes, but I think this q...
72,873,493
How to properly use version control tag in Azure Devops<p>Thats my current yml file:</p> <pre><code>pool: name: Azure Pipelines steps: - task: Docker@2 inputs: containerRegistry: 'blabla' repository: 'blabla' command: 'buildAndPush' Dockerfile: '**/Dockerfile' buildContext: '$(Build.Repository.L...
<blockquote> <p>How to properly use version control tag in Azure Devops</p> </blockquote> <p>You can define your own counter for the tag, like:</p> <pre><code>variables: internalBuildNumber: 1 semanticBuildNumber: $[counter(variables['internalBuildNumber'], 0)] - task: Docker@2 inputs: containerRegistry: 'bl...
How to properly use version control tag in Azure Devops
azure-devops|version-control|azure-pipelines
-1
75
1
72,877,152
72,877,152
1
true
2022-07-05T17:37:16.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to properly use version control tag in Azure Devops<p>Thats my current yml file:</p> <pre><code>pool: name: Azure Pipelines steps: - task: Docker@2 i...
72,881,677
Convert 2 collections to a dictionary<p>I have one collection called &quot;rembs&quot;. Another called &quot;cols&quot;, and an empty dictionary called &quot;pairs&quot;. I'd like to pass rembs as the keys of the dictionary and cols as the items. I used a loop to set the keys but I don't know about setting the items. A...
<h2>Loop Through Collections and Dictionaries</h2> <pre class="lang-vb prettyprint-override"><code>Option Explicit Sub CollsToDict() Const nCount As Long = 10 ' Populate the collections. Dim rembs As Collection: Set rembs = New Collection Dim cols As Collection: Set cols = New Collection...
Convert 2 collections to a dictionary
excel|vba
1
75
2
72,882,506
72,882,506
1
true
2022-07-06T10:12:39.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Convert 2 collections to a dictionary<p>I have one collection called &quot;rembs&quot;. Another called &quot;cols&quot;, and an empty dictionary called &quot...
72,890,161
Typescripting a ForwardedRef in MUI?<p>I am using a customized, forwarded checkbox so I can pass that as a component to a <code>DataGrid</code>.</p> <pre><code>const CustomCheckbox = ({ checkboxRef, ...props }: { checkboxRef: React.ForwardedRef&lt;unknown&gt;; }) =&gt; ( &lt;Checkbox {...props} ref={che...
<ol> <li>Change <code>checkboxRef</code> type to <code>React.ForwardRef&lt;HTMLButtonElement&gt;</code>, as it seems this is the only element you wish to allow for this property</li> <li>Use <code>forwardRef&lt;HTMLButtonElement&gt;</code> to explicitly define the type of reference this component accepts</li> </ol> <pr...
Typescripting a ForwardedRef in MUI?
reactjs|typescript|material-ui
0
75
1
72,890,659
72,890,659
1
true
2022-07-06T21:41:20.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typescripting a ForwardedRef in MUI?<p>I am using a customized, forwarded checkbox so I can pass that as a component to a <code>DataGrid</code>.</p> <pre><co...
72,896,272
IntentFilter in Xamarin gives error "java.exe exited with code 1"<p>I'm trying to understand how actions in xamarin work and i tried to add some of them to my activity. It builds with error &quot;java.exe exited with code 1&quot;. I found that the same code works in my main launcher activity, but it doesn't compile whe...
<p>I added &quot;Exported = false&quot; to Attributes of my extra Activity and it worked.</p> <p>the code will be like that:</p> <pre><code> [Activity(Label = &quot;Data/Time info&quot;, Exported = false)] [IntentFilter(new[] { &quot;en.startandroid.intent.action.showtime&quot;,&quot;en.startandroid.intent.action.s...
IntentFilter in Xamarin gives error "java.exe exited with code 1"
c#|android|xamarin|android-activity|intentfilter
1
75
1
72,897,544
72,897,544
1
true
2022-07-07T10:34:03.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: IntentFilter in Xamarin gives error "java.exe exited with code 1"<p>I'm trying to understand how actions in xamarin work and i tried to add some of them to m...
72,899,881
Ingress Nginx external IP set not working<p>I'm trying to make Ingress use external IP i have created in Azure</p> <p>First I have created an IP in the portal and added my AKS service as network contributor, then added it in the values file used by HELM</p> <pre><code># -- List of IP addresses at which the controller s...
<p>Exposing the Service of your ingress controller with your public ip can be done like this:</p> <pre><code>apiVersion: v1 kind: Service metadata: annotations: service.beta.kubernetes.io/azure-load-balancer-resource-group: myResourceGroup # only needed if the LB is in another RG name: ingress-nginx-controller ...
Ingress Nginx external IP set not working
azure|azure-aks|nginx-ingress
0
75
1
72,903,951
72,903,951
1
true
2022-07-07T14:45:57.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ingress Nginx external IP set not working<p>I'm trying to make Ingress use external IP i have created in Azure</p> <p>First I have created an IP in the porta...
72,905,904
How(Where) to get the these icons of Chrome Developer tools?<p><a href="https://i.stack.imgur.com/H5Eox.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H5Eox.png" alt="enter image description here" /></a></p> <p>I want to get these SVG icons for my purpose of use, How (or Where) I can get them? Is th...
<p>You can use <a href="https://stackoverflow.com/q/12291138">devtools-on-devtools</a> to inspect the UI of devtools and then search the <a href="https://source.chromium.org/" rel="nofollow noreferrer">source code</a>.<br /> The icons: <a href="https://crsrc.org/third_party/devtools-frontend/src/front_end/Images/src/la...
How(Where) to get the these icons of Chrome Developer tools?
google-chrome|google-chrome-extension|google-chrome-devtools|chromium|chrome-devtools-protocol
0
75
1
72,906,790
72,906,790
1
true
2022-07-08T01:53:12.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How(Where) to get the these icons of Chrome Developer tools?<p><a href="https://i.stack.imgur.com/H5Eox.png" rel="nofollow noreferrer"><img src="https://i.st...
72,905,721
Is there a good way to make vscode intellisense detect g++ gcm files generated from -xc++-system-header flag for importing?<p>I'm trying to dabble with the c++20 modules feature and would like to import the standard library headers as modules. Currently I have</p> <pre><code>import &lt;iostream&gt;; int main() { s...
<p>This is the known IntelliSense <a href="https://developercommunity.visualstudio.com/t/When-importing-a-C20-module-or-header-/1550846" rel="nofollow noreferrer">issue</a>.</p> <blockquote> <p>When importing C++20 modules or header units in C++ source:</p> <ul> <li>You may not see IntelliSense completions or colorizat...
Is there a good way to make vscode intellisense detect g++ gcm files generated from -xc++-system-header flag for importing?
c++|visual-studio-code|intellisense|c++20|c++-modules
1
75
1
72,906,890
72,906,890
1
true
2022-07-08T01:16:17.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a good way to make vscode intellisense detect g++ gcm files generated from -xc++-system-header flag for importing?<p>I'm trying to dabble with the c...
72,919,173
Presto: avoid null entries in maps and arrays<p>I am new to presto and I have a table with a json column:</p> <pre><code>json-column {&quot;key-array&quot;:&quot;[\&quot;AAA\&quot;,\&quot;BBB\&quot;,\&quot;CCC\&quot;]&quot;, &quot;value-array&quot;:&quot;[\&quot;123\&quot;,\&quot;456\&quot;,\&quot;789\&quot;]&quo...
<p>Whoever double encoded the array should be punished a bit =). In this example the issue is that one property is double encoded and another one - is not, so for the second one <code>json_parse</code> fails cause it can't parse empty string (i.e. <code>select json_parse('')</code> will fail). If we don't want to dive ...
Presto: avoid null entries in maps and arrays
sql|presto
1
75
1
72,919,890
72,919,890
1
true
2022-07-09T05:27:44.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Presto: avoid null entries in maps and arrays<p>I am new to presto and I have a table with a json column:</p> <pre><code>json-column {&quot;key-array&q...
72,911,590
Ruby Script fails while invoked via xinetd<p>This is my first post on stack overflow and it's a bummer, so please bear with me.</p> <p>I have a ruby script which has worked flawlessly for years on an Ubuntu 14.04 Server. I set up a new Ubuntu 22.04 Server and migrated the Script, but it doesn't work anymore, and it fai...
<p><strong>Solved!</strong></p> <p>After much tinkering the problem turned out to be a simple case of Broken Pipe! A simple <code>$stdout = File.new( '/dev/null', 'w' )</code> at the start of the script solved the problem and now the script is working as intended.</p> <p>This was obviously no problem of the ruby versio...
Ruby Script fails while invoked via xinetd
ruby|linux|shell|xinetd
1
75
1
72,920,966
72,920,966
1
true
2022-07-08T12:41:12.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ruby Script fails while invoked via xinetd<p>This is my first post on stack overflow and it's a bummer, so please bear with me.</p> <p>I have a ruby script w...
72,781,450
Recursive nested initializer list taking variant<p>I want an object <code>obj</code> to be initialized from an <code>initializer_list</code> of pairs. However, the second value of the pair is a variant of bool, int and again the <code>obj</code>. gcc reports trouble finding the right constructors I guess. Can I make th...
<p>As Igor noted, without any changes to your type or constructor, your code can compile fine with an explicit type specified for your subobject:</p> <pre class="lang-cpp prettyprint-override"><code>obj O = { { &quot;level1_1&quot;, true }, { &quot;level1_2&quot;, 1 }, { &quot;level2&quot;, obj { { &qu...
Recursive nested initializer list taking variant
c++|nested|c++17|initializer-list|braced-init-list
2
75
2
72,925,857
72,925,857
1
true
2022-06-28T06:05:55.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Recursive nested initializer list taking variant<p>I want an object <code>obj</code> to be initialized from an <code>initializer_list</code> of pairs. Howeve...
72,921,463
Bucket Customers based on Points<p>I have a customer table. I am trying to filter each ParentCustomerID based on multiple points they have and select a row based on the below conditions:</p> <ul> <li><p>IF 0 points &amp; negative points, select the row with the highest negative point (i.e. -30 &gt; -20)</p> </li> <li><...
<h2>Code</h2> <pre><code>df['abs'] = df['Points'].abs() df['pri'] = np.sign(df['Points']).replace(0, -2) ( df.sort_values(['pri', 'abs']) .drop_duplicates('ParentCustomerID', keep='last') .drop(['pri', 'abs'], axis=1) .sort_index() ) </code></pre> <h2>How this works</h2> <ul> <li>Assign a tempora...
Bucket Customers based on Points
python|pandas|dataframe|pandas-groupby
0
75
2
72,928,015
72,928,015
1
true
2022-07-09T12:43:37.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bucket Customers based on Points<p>I have a customer table. I am trying to filter each ParentCustomerID based on multiple points they have and select a row b...
72,922,202
Combine batch data to delta format in a data lake using synapse and pyspark?<p>I currently have a data lake with several daily interval tables of data in the bronze layer of a data lake. They are in csv format and regularly new daily csv tables are ingested to the bronze folder.</p> <p>I would like to transform them e....
<p>I am doing something similar. I ingest CSV files for different entities into Delta Lake bronze layer. For each entity I have a separate delta lake table. In the bronze layer I add additional columns as audit columns to capture filename, fileloaddate etc. Then use the latest fileloaddate to load data from bronze to s...
Combine batch data to delta format in a data lake using synapse and pyspark?
pyspark|azure-synapse|delta-lake|azure-data-lake-gen2|delta
0
75
1
72,931,526
72,931,526
1
true
2022-07-09T14:31:24.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Combine batch data to delta format in a data lake using synapse and pyspark?<p>I currently have a data lake with several daily interval tables of data in the...
72,930,761
Azure Firewall with Policy Rule collection loop<p>I am trying to deploy the Azure Firewall Premium with Policies enabled and need to add a load of network rule collections.</p> <p>I have the rule collections in the parameters file and need to cycle through each and add to the policy.</p> <pre><code>&quot;FirewallSettin...
<p>Few things here:</p> <ul> <li><p>The <code>rules</code> property inside <code>networkRuleCollections</code> is defined as an array. So you would need to query it like that: <code>${firewallSettings.networkRuleCollections[i].rules[0]</code> (assuming there is only one rule).</p> </li> <li><p>The rule properties defin...
Azure Firewall with Policy Rule collection loop
azure|azure-resource-manager|azure-bicep
0
75
1
72,932,325
72,932,325
1
true
2022-07-10T18:08:29.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure Firewall with Policy Rule collection loop<p>I am trying to deploy the Azure Firewall Premium with Policies enabled and need to add a load of network ru...
72,924,539
Why does Samsung TV IR sensor ignore repeat codes?<p>Hey there trusty SO community,</p> <p>I'm working on a project for my new Samsung &quot;The Frame&quot; TV using a IR remote controller. I am trying to send a &quot;repeating&quot; command (when a button is held continuously). I have no problem sending single command...
<p>It turns out that version 3.7.1 and earlier of Arduino-IRremote library implements a &quot;special&quot; repeat handling message. After comparing the repeat protocol to a Samsung Brand remote control, it was found that the repeat messages are actually identical to the single message.</p> <p>An update was made to <a ...
Why does Samsung TV IR sensor ignore repeat codes?
arduino|samsung
1
75
1
72,932,354
72,932,354
1
true
2022-07-09T20:48:37.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does Samsung TV IR sensor ignore repeat codes?<p>Hey there trusty SO community,</p> <p>I'm working on a project for my new Samsung &quot;The Frame&quot; ...
72,887,166
Complexheatmap with multiple files plotting<p>I would like to use Complexheatmap for multiple files for plotting individual data frame or files .</p> <p>So far I was able to do this as for small subset of files.</p> <p><strong>Reading files as list</strong></p> <pre><code>list_of_files &lt;- list.files('Model_hmap/',pa...
<p>Using the code you provided I made the following function (<code>make_heatmap</code>). Some of the read in statements are altered to match what I was working with on my machine. I also only used 2 of your files but it should work with all 4 that you're using.</p> <p>This function will allow you to pass the counts ma...
Complexheatmap with multiple files plotting
r|lapply|complexheatmap
0
75
1
72,941,377
72,941,377
1
true
2022-07-06T16:44:41.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Complexheatmap with multiple files plotting<p>I would like to use Complexheatmap for multiple files for plotting individual data frame or files .</p> <p>So f...
72,941,449
operator aligned new/delete vs operator aligned new[]/delete[]<p>I was writing an aligned operator for vector and I realize that I don't know the difference between operator <strong>aligned</strong> new/delete vs operator <strong>aligned</strong> new[]/delete[].</p> <p>Both seem only de/allocate memory, not call de/con...
<blockquote> <p>Both seem only de/allocate memory, not call de/constructor, both take the size in byte. So what the point having both ?</p> </blockquote> <p>They do the same thing because you called the default operators, which <em>do</em> the same thing. In fact the default <code>operator new[]</code> just calls <code...
operator aligned new/delete vs operator aligned new[]/delete[]
c++|c++17|new-operator
1
75
2
72,942,838
72,942,838
1
true
2022-07-11T16:03:02.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: operator aligned new/delete vs operator aligned new[]/delete[]<p>I was writing an aligned operator for vector and I realize that I don't know the difference ...
72,872,503
An exception occurred while executing a query: SQLSTATE[23000]<p>I've got a problem. When I want to create an article, it shows me this error. And when I want to edit one, it doesn't change anything. It was working before, but then I've added category and comment section. Can you help me ? here is my Controller:</p> <p...
<p>I succeeded. In the controllers, I just added:</p> <pre><code>$this-&gt;createForm(ArticleType::class, $article); </code></pre>
An exception occurred while executing a query: SQLSTATE[23000]
php|forms|symfony|doctrine-orm|doctrine
-1
75
1
72,950,596
72,950,596
1
true
2022-07-05T16:07:03.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: An exception occurred while executing a query: SQLSTATE[23000]<p>I've got a problem. When I want to create an article, it shows me this error. And when I wan...
72,943,647
Save user credentials to database with Google Web Authorization Broker<p>I have successfully user the <code>GoogleWebAuthorizationBroker</code> to save user credentials to a file. But I want my app to be a little more secure. So I am trying to save the credentials to my my sqlite database. I have followed some informat...
<p>The constructor takes a connection string.</p> <pre><code> public static UserCredential InstalledCredential(string credFilePath, string[] scopes, string userName, string connectionString) { return GoogleWebAuthorizationBroker.AuthorizeAsync(GoogleClientSecrets.FromFile(credFilePath).Secrets, ...
Save user credentials to database with Google Web Authorization Broker
c#|entity-framework|google-api|google-oauth|google-api-dotnet-client
2
75
1
72,951,968
72,951,968
1
true
2022-07-11T19:23:08.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Save user credentials to database with Google Web Authorization Broker<p>I have successfully user the <code>GoogleWebAuthorizationBroker</code> to save user ...
72,950,198
Kivy: my application isn't hardware accelerated<p>At the moment I'm building a Kivy application to control custom hardware that opens and closes lockers. To accomplish this, I'm using a Raspberry Pi 3B+ along with a custom 10&quot; touchscreen which is connected to my raspberry. The OS I'm using is Raspberry Pi OS (32-...
<p>you need to compile SDL2 from source if you want to make a kivy app hardware accelerated on a console and not on a desktop environment. <a href="https://kivy.org/doc/stable/installation/installation-rpi.html#raspberry-pi-4-headless-installation-on-raspbian-buster" rel="nofollow noreferrer">Follow this instruction</a...
Kivy: my application isn't hardware accelerated
python|raspberry-pi|kivy
1
75
1
72,952,941
72,952,941
1
true
2022-07-12T09:41:18.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Kivy: my application isn't hardware accelerated<p>At the moment I'm building a Kivy application to control custom hardware that opens and closes lockers. To ...
72,947,855
Difference between playing webm vs HLS video over AWS<p>Im building an webapp which does screen recording, have it stored and played back on demand.</p> <p>The recording is happening as .webm which is being streamed to S3 bucket via a multipart upload. I'm using AWS MediaConvert to convert .webm to HLS format for the v...
<p>As you initially alluded to, your current approach is a viable option however there are bandwidth and bitrate considerations to keep in mind. One potential caveat / 'gottcha' as well is that you may have to set the content type and disposition to &quot;video/webm&quot; and &quot;inline&quot; in order for the webm. f...
Difference between playing webm vs HLS video over AWS
amazon-web-services|http-live-streaming|webm|aws-media-convert
0
75
1
72,953,204
72,953,204
1
true
2022-07-12T06:23:00.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Difference between playing webm vs HLS video over AWS<p>Im building an webapp which does screen recording, have it stored and played back on demand.</p> <p>T...
72,953,287
H2 refuses to create auto_increment for Postgres emulated database<p>I created an in memory H2 database with JDBC URL</p> <pre><code>jdbc:h2:~/test;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DEFAULT_NULL_ORDERING=HIGH </code></pre> <p>The H2 web console refuses to let me do an auto_increment. I've seen serial for Postgres,...
<p>You can use the SQL Standard's generation clause <code>GENERATED ALWAYS AS IDENTITY</code>. For example:</p> <pre><code>create table test ( id bigint generated always as identity, name varchar(10) ); </code></pre> <p>See <a href="https://dbfiddle.uk/?rdbms=postgres_14&amp;fiddle=a4a34b31744c862b69f62eab2750e104...
H2 refuses to create auto_increment for Postgres emulated database
sql|postgresql|h2
0
75
1
72,953,713
72,953,713
1
true
2022-07-12T13:40:18.547Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: H2 refuses to create auto_increment for Postgres emulated database<p>I created an in memory H2 database with JDBC URL</p> <pre><code>jdbc:h2:~/test;MODE=Post...
72,955,652
Laravel: is there an easy way to force login?<p>I want to implement user authentication (require login to visit any page) for a Laravel project (Laravel 7.x/8.x) that is currently open to any visitor without login. With Auth::routes() in web.php, every thing works as expected with respect to login process if a user acc...
<p>Yes, youu need to use the auth middleware on all the routes that you want to forced be logged, or tou could only group them in one.</p> <pre><code>// Auth is required to acces these routes Route::middleware(['auth'])-&gt;group(function () { Route::get('/home', 'HomeController@index'); Route::get('any_route',...
Laravel: is there an easy way to force login?
laravel|laravel-8
-1
75
1
72,955,849
72,955,849
1
true
2022-07-12T16:38:04.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel: is there an easy way to force login?<p>I want to implement user authentication (require login to visit any page) for a Laravel project (Laravel 7.x/...
72,954,085
Is it possible to use async/await syntax for UIActivityViewController's completionWithItemsHandler property?<p>I have this function:</p> <pre><code>struct Downloader { static func presentDownloader( in viewController: UIViewController, with urls: [URL], _ completion: @escaping (Bool) -&gt; V...
<p>Yes, you can do that but you need to write yourself little wrapper over it. So it will look something like that:</p> <pre><code>@MainActor func askToShareFile(url: URL) async { let avc = UIActivityViewController(activityItems: [url], applicationActivities: nil) present(avc, animated: true) return await w...
Is it possible to use async/await syntax for UIActivityViewController's completionWithItemsHandler property?
async-await|uikit
0
75
1
72,965,183
72,965,183
1
true
2022-07-12T14:36:35.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to use async/await syntax for UIActivityViewController's completionWithItemsHandler property?<p>I have this function:</p> <pre><code>struct Do...
72,869,667
How to visualise .obj files in colab?<p>I have a generated obj file which I want to visualise in google colab.</p> <p>What's the easiest way to visualise it directly in google colab?</p> <p>A (admittely mild) google search did not return much...</p>
<p>You can use Open3D &amp; Plotly to achieve this. Here is a notebook with various examples <a href="https://colab.research.google.com/drive/1CR_HDvJ2AnjJV3Bf5vwP70K0hx3RcdMb?usp=sharing" rel="nofollow noreferrer">https://colab.research.google.com/drive/1CR_HDvJ2AnjJV3Bf5vwP70K0hx3RcdMb?usp=sharing</a>. The visualizat...
How to visualise .obj files in colab?
3d|google-colaboratory|visualization|object-files
0
75
1
72,965,484
72,965,484
1
true
2022-07-05T12:44:18.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to visualise .obj files in colab?<p>I have a generated obj file which I want to visualise in google colab.</p> <p>What's the easiest way to visualise it ...
72,997,026
Solve system of coupled differential equations using scipy's solve_bvp<p>I want to solve a boundary value problem consisting of 7 coupled 2nd order differential equations. There are 7 functions, <code>y1(x),...y7(x)</code>, and each of them is described by a differential equation of the form</p> <pre><code>d^2yi/dx^2 =...
<p>For the boundary condition, <code>bc</code> returns the residuals of the equations. That is, transform the equations so that the right side is zero, and then return the vector of the left sides. <code>ya,yb</code> are the state vectors at the points <code>x=a,b</code>.</p> <p>For the initial state, it could be anyth...
Solve system of coupled differential equations using scipy's solve_bvp
python|scipy|ode
1
75
1
73,002,005
73,002,005
1
true
2022-07-15T16:25:05.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Solve system of coupled differential equations using scipy's solve_bvp<p>I want to solve a boundary value problem consisting of 7 coupled 2nd order different...
73,003,150
How to color the CSS loader?<p>I have working code for a CSS preloader at <a href="https://js.do/sun21170/css-issue-with-child-widths" rel="nofollow noreferrer">CSS preloader sample</a></p> <p>I would like the animated preloader to be colored. I tried adding the style <code>color: red !important;</code> to various styl...
<p><code>#fff</code> in the line marked below can be changed to set the loader's color.</p> <pre class="lang-css prettyprint-override"><code>.lds-ripple div { position: absolute; border: 4px solid #fff; /* edit this line */ opacity: 1; border-radius: 50%; animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) ...
How to color the CSS loader?
html|css|preloader
-1
75
2
73,003,199
73,003,199
1
true
2022-07-16T09:42:24.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to color the CSS loader?<p>I have working code for a CSS preloader at <a href="https://js.do/sun21170/css-issue-with-child-widths" rel="nofollow noreferr...
72,986,422
How to asynchronously run functions within a for-loop in Python?<p>Hi I was wondering how to asynchronously call a function within a for-loop in Python, allowing the for-loop to execute more quickly. bar() in this case is a time intensive function, which is why I want the calls to it to be nonblocking. Here is what I w...
<p>If your tasks are really async you can do it the following way:</p> <pre class="lang-py prettyprint-override"><code>import asyncio async def bar(item: int) -&gt; int: # manipulate item print(&quot;Started&quot;) await asyncio.sleep(5) print(&quot;Finished&quot;) return item ** 2 async def foo...
How to asynchronously run functions within a for-loop in Python?
python|async-await|python-asyncio
3
75
1
73,005,109
73,005,109
1
true
2022-07-14T20:39:44.270Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to asynchronously run functions within a for-loop in Python?<p>Hi I was wondering how to asynchronously call a function within a for-loop in Python, allo...
73,008,744
C# How to Iterate in an IEnumerable<object><p>I have a table where I want to display the data that I get from the database but can't find a way to iterate with a foreach.</p> <pre><code>public IEnumerable&lt;object&gt; ObtenerTodos() { var pacientes = from p in _context.Pacientes fro...
<p>Maybe you can try to set <code>List&lt;Paciente&gt;</code> as the model of the view.Here is a simple demo:</p> <p>action:</p> <pre><code>public IActionResult ObtenerTodos() { var pacientes = from p in _context.Pacientes from p1 in _context.Personas where p....
C# How to Iterate in an IEnumerable<object>
asp.net|entity-framework|asp.net-core|razor-pages
0
75
1
73,009,767
73,009,767
1
true
2022-07-17T01:44:54.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# How to Iterate in an IEnumerable<object><p>I have a table where I want to display the data that I get from the database but can't find a way to iterate wi...
73,017,855
add "std::mutex" as a member field into an only-movable class without manually code "move constructor" (std::unique_ptr<> is ugly)<p>By design, class <code>B</code> is uncopiable but movable.</p> <p>Recently, I <strong>enjoy</strong> that <code>B</code> has <strong>automatically</strong>-generated move constructor and ...
<blockquote> <p>I enjoy that B has automatically-generated move constructor</p> </blockquote> <p>Why don't rename <code>class B</code> and use it as a base class?</p> <pre><code>#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;vector&gt; #include &lt;mutex&gt; class C{ public: C(){} public: C(C&am...
add "std::mutex" as a member field into an only-movable class without manually code "move constructor" (std::unique_ptr<> is ugly)
c++|c++17|mutex|move
-1
75
1
73,017,935
73,017,935
1
true
2022-07-18T05:58:16.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: add "std::mutex" as a member field into an only-movable class without manually code "move constructor" (std::unique_ptr<> is ugly)<p>By design, class <code>B...
73,010,851
How to get field value in GORM<p>I have a function that outputs all <code>Product</code> data to the <code>data array</code>, but I also need to display 5 products from the same <code>category</code> in the <code>relatives array</code>.</p> <p>Function:</p> <pre><code>func GetProductsById(c *gin.Context) { var Pro...
<p>i think your id is integer, and c.Query(&quot;prod_id&quot;) returns string. you must be cast it to integer by</p> <pre><code>intVar, err := strconv.Atoi(c.Query(&quot;prod_id&quot;)) </code></pre> <p>if code has not error:</p> <pre><code>config.DB.Where(&quot;cat_id&quot;, func(tx *gorm.DB) *gorm.DB { return co...
How to get field value in GORM
go|go-gorm|go-gin
1
75
1
73,018,967
73,018,967
1
true
2022-07-17T10:00:36.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get field value in GORM<p>I have a function that outputs all <code>Product</code> data to the <code>data array</code>, but I also need to display 5 pr...
73,019,353
Can IEnumerable and IQueryable be Union?<p>I tried to Union IQueryable and IEnumerable but got this error</p> <p><em>Union(__p_2)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'To...
<p>The <code>IQueryable&lt;T&gt;</code> interface already implements <code>IEnumerable&lt;T&gt;</code>, you just need to cast to <code>IEnumerable&lt;T&gt;</code> to ensure you use the linq-to-objects implementation.</p> <pre><code>var users = GetUsersByXXX(XXX, YYY).AsEnumerable() // &quot;cast&quot; it .Union(Get...
Can IEnumerable and IQueryable be Union?
c#|entity-framework|linq
0
75
3
73,019,489
73,019,489
1
true
2022-07-18T08:25:50.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can IEnumerable and IQueryable be Union?<p>I tried to Union IQueryable and IEnumerable but got this error</p> <p><em>Union(__p_2)' could not be translated. E...
72,825,137
ModuleNotFoundError: No module named<p>I keep having this issue with the code I had written, I cant figure out why.</p> <p>My project structure:</p> <pre><code>├──code | ├── Bot_Tracker | | ├── __init__.py | | ├── matchhistory.py | | ├── discordUI.py | ├── Tests | | ├── __init__.py | | └── test_matchhi...
<p>This was a simple problem related to how Python works out where packages are stored. If the package is not in the python path, then python won't be able to access it on the import.</p> <p>To solve this I needed to add the package directory and the parent to the package directory to the system path.</p> <p>The code I...
ModuleNotFoundError: No module named
python|module|package
0
75
1
73,163,835
73,163,835
1
true
2022-07-01T06:23:27.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ModuleNotFoundError: No module named<p>I keep having this issue with the code I had written, I cant figure out why.</p> <p>My project structure:</p> <pre><co...
72,845,260
In Kate text editor, how to open new files in new windows by default?<p>I find terribly confusing to work with different files grouped in the same window: my mind needs to actually see <em>different files</em> floating in <em>different windows</em>.</p> <p>I know that I can have multiple Kate windows open, and show dif...
<p>It is enough to launch Kate with the option -n (or --new) parameter, as explained in this page: <a href="https://forums.opensuse.org/showthread.php/502871" rel="nofollow noreferrer">Kate editor behaviour</a></p>
In Kate text editor, how to open new files in new windows by default?
linux|window|editor|kate
0
75
1
73,184,791
73,184,791
1
true
2022-07-03T09:09:46.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In Kate text editor, how to open new files in new windows by default?<p>I find terribly confusing to work with different files grouped in the same window: my...
72,866,312
PlanExecutor error during aggregation :: caused by :: $arrayToObject requires an object keys of 'k' and 'v'. Found incorrect number of keys:1<p>I have created an aggregation query <a href="https://mongoplayground.net/p/VXWSVeRrkvX" rel="nofollow noreferrer">on mongo playground</a> as also shown with the following data:...
<p>You can use the <a href="https://www.mongodb.com/docs/manual/reference/operator/aggregation/ifNull/" rel="nofollow noreferrer">$ifNull</a> operator to provide a default value and then post-process your results after aggregation is done:</p> <pre><code>{ $group: { _id: { topic:...
PlanExecutor error during aggregation :: caused by :: $arrayToObject requires an object keys of 'k' and 'v'. Found incorrect number of keys:1
mongodb|mongodb-query|nosql|aggregation-framework|aggregation
1
75
1
72,866,386
72,866,386
1
true
2022-07-05T08:31:56.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PlanExecutor error during aggregation :: caused by :: $arrayToObject requires an object keys of 'k' and 'v'. Found incorrect number of keys:1<p>I have create...
72,772,697
Adding secondary y axis using python matplotlib with metpy<p>I know this question seems similar to a lot of other questions here, but I've tried them and unfortunately none of them are addressing the problem I'm currently facing when trying to add a secondary y-axis.</p> <p>The problem is quite simple, but I can't find...
<p>This is most easily accomplished now using Matplotlib's &quot;experimental&quot; (since 3.1) API for adding a <a href="https://matplotlib.org/stable/gallery/subplots_axes_and_figures/secondary_axis.html" rel="nofollow noreferrer">secondary axis</a>. It uses MetPy's standard atmosphere calculation functions to transf...
Adding secondary y axis using python matplotlib with metpy
python|python-3.x|matplotlib|plot|metpy
1
75
1
72,777,719
72,777,719
1
true
2022-06-27T13:11:18.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding secondary y axis using python matplotlib with metpy<p>I know this question seems similar to a lot of other questions here, but I've tried them and unf...
72,918,076
Is there a way to use variables to control the ID of html tags for a code-behind page in VB.NET?<p>I'm making a simple form. I have Default.aspx, Default.aspx.vb, and Default.aspx.designer.vb.<br /> Default.aspx.vb contains a <code>Public jsonItems As List(Of JsonItem)</code>, where a <code>JsonItem</code> is just an o...
<p>Injection of asp.net controls into a page does not tend to work very well at all.</p> <p>You can inject HTML, but then again , you now writing your own code anyway, and again that not a huge help.</p> <p>As a general approach?</p> <blockquote> <p>Should I be building the entire form in the.. code-behind</p> </blockq...
Is there a way to use variables to control the ID of html tags for a code-behind page in VB.NET?
asp.net|vb.net|code-behind
1
75
1
72,918,391
72,918,391
1
true
2022-07-09T00:18:39.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way to use variables to control the ID of html tags for a code-behind page in VB.NET?<p>I'm making a simple form. I have Default.aspx, Default.asp...
72,771,421
Div dissapear on click outside of it<p>So i have this <strong>searchbar</strong> ,that when the user types any letter that's been contained in any of my articles,the <strong>div pops up</strong> and show the related articles,but then,unless i backspace,it offcourse stays there,so i would like it to <strong>dissapear af...
<p>You can use this custom hook, to execute callback function when you click outside the target element.</p> <p><em><strong>Code with javascript</strong></em></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-...
Div dissapear on click outside of it
javascript|html|css|reactjs|components
-1
75
2
72,771,742
72,771,742
1
true
2022-06-27T11:34:41.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Div dissapear on click outside of it<p>So i have this <strong>searchbar</strong> ,that when the user types any letter that's been contained in any of my arti...
72,932,687
heroku[web.1]: State changed from up to crashed<p>this is my command prompt:</p> <pre><code>2022-07-10T23:36:17.323791+00:00 heroku[web.1]: Process exited with status 1 2022-07-10T23:36:17.574484+00:00 heroku[web.1]: State changed from up to crashed 2022-07-10T23:36:17.578331+00:00 heroku[web.1]: State changed from cra...
<p>I'm assuming you are using mongodB atlas. You need to whitelist your IP address. To do that, head over to your <code>network access</code> tab, and include an IP address <code>0.0.0.0/0</code>. This is a wild card IP address that would allow all IP addresses with the correct credentials to access your DB.</p> <p>As ...
heroku[web.1]: State changed from up to crashed
javascript|node.js|heroku
1
75
1
72,932,777
72,932,777
1
true
2022-07-11T00:12:12.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: heroku[web.1]: State changed from up to crashed<p>this is my command prompt:</p> <pre><code>2022-07-10T23:36:17.323791+00:00 heroku[web.1]: Process exited wi...
72,816,495
React Router Dom, redirect with an error message to login page and show the message there<p>I am using React Router <code>v6</code> in my application. The user should be redirected to the login page when not logged in and an error message should be shown. So far the redirection part is working well and it takes the use...
<p>You can access it like this:</p> <pre><code>import { useLocation } from &quot;react-router-dom&quot;; </code></pre> <p>Then:</p> <pre><code>const { state } = useLocation(); return &lt;div&gt;{state.alert}&lt;/div&gt;; </code></pre>
React Router Dom, redirect with an error message to login page and show the message there
javascript|reactjs|react-router
2
75
2
72,816,677
72,816,677
1
true
2022-06-30T13:14:55.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Router Dom, redirect with an error message to login page and show the message there<p>I am using React Router <code>v6</code> in my application. The us...
72,770,117
Using ksqlDB to implement CDC using multiple event types in a single topic?<p>I have the following situation where I have an Apache Kafka topic containing numerous record types.</p> <p>For example:</p> <ol> <li>UserCreated</li> <li>UserUpdated</li> <li>UserDeleted</li> <li>AnotherRecordType</li> <li>...</li> </ol> <p>I...
<p>The general pattern is to not have different schema types; just <code>User</code>. Then, the first record of any unique key (userid, for example) is an insert. Afterwards any non null values for the same key are updates (generally requiring all fields to be part of the value, effectively going a &quot;replace&quot; ...
Using ksqlDB to implement CDC using multiple event types in a single topic?
apache-kafka|ksqldb|cdc
0
75
1
72,773,438
72,773,438
1
true
2022-06-27T09:53:26.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using ksqlDB to implement CDC using multiple event types in a single topic?<p>I have the following situation where I have an Apache Kafka topic containing nu...
73,010,998
How to fetch json data without bugs?<p>I want to fetch in react using useEffect hook but there is an issue <br> this is my code from a landing-page.jsx file :</p> <pre><code>import &quot;./landing-page.css&quot;; import { useState, useEffect } from &quot;react&quot;; export default function Landing_page() { const [dat...
<p>You should place the db.json file inside the public folder because during runtime the &quot;/&quot; path is going to be the public folder and not the src folder. Alternatively you can import the db.json file if it's in your src folder. import db from './db.json'.</p> <p>As others have stated. In a real DB fetch situ...
How to fetch json data without bugs?
reactjs|react-hooks|fetch|use-effect
-1
75
3
73,011,404
73,011,404
1
true
2022-07-17T10:24:42.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to fetch json data without bugs?<p>I want to fetch in react using useEffect hook but there is an issue <br> this is my code from a landing-page.jsx file ...
72,833,517
Boost spirit x3 - lazy parser with compile time known parsers, referring to a previously matched value<p>Inspired from sehe's answer at <a href="https://stackoverflow.com/questions/60171119/boost-spirit-x3-lazy-parser/60176802#60176802">Boost spirit x3 - lazy parser</a> I tried to adapt it to one of my own problem (whi...
<blockquote> <p>Well, it doesn't compile and hence I do not know if it would work this way.</p> </blockquote> <p>Where to start. Let me recommend: Baby steps. X3 is not the framework to throw together a bunch of code and expect it to <em>just compile</em> let alone <em>do what you want</em>.</p> <p>Some notes:</p> <ul>...
Boost spirit x3 - lazy parser with compile time known parsers, referring to a previously matched value
c++|parsing|boost|boost-spirit|boost-spirit-x3
1
75
1
72,842,419
72,842,419
1
true
2022-07-01T18:48:18.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Boost spirit x3 - lazy parser with compile time known parsers, referring to a previously matched value<p>Inspired from sehe's answer at <a href="https://stac...