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,170,310
Change background color of a Fragment from DialogFragment ColorPicker using Mutablelivedata not working<p>My app should be able to change color of one part of my screen in a Fragment (called Color Preview) from Color Picker that is DialogFragment and appears once a Button is clicked. I used the same ViewModel with Muta...
<p>I found a solution. In Kotlin, data is not shared if viewModels() is instantiated without activityViewModels(). So I changed my code, instead of:</p> <pre><code>private val viewModel: MainViewModel by lazy { getViewModel { LightmvpViewModel() } } </code></pre> <p>I wrote:</p> <pre><code>private val v...
Change background color of a Fragment from DialogFragment ColorPicker using Mutablelivedata not working
android|kotlin|android-fragments|android-dialogfragment|mutablelivedata
0
56
1
72,172,180
72,172,180
0
true
2022-05-09T10:11:32.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change background color of a Fragment from DialogFragment ColorPicker using Mutablelivedata not working<p>My app should be able to change color of one part o...
72,172,024
TypeError in my code. Using selection sort to sort values at a certain index<p>I want my selection sort to sort the values in a certain column (index 3) however I get this message when I run my code.</p> <p>The error I receive is:</p> <p><a href="https://i.stack.imgur.com/dxG2G.png" rel="nofollow noreferrer">https://i....
<p>First, it is much better to copy/paste your error text into the question so that it is immediately visible and also searchable for future users of the questions.</p> <p>To understand the error message &quot;'int' object is not subscriptable:&quot;</p> <ul> <li>The 'int' object here is <code>i</code></li> <li><code>[...
TypeError in my code. Using selection sort to sort values at a certain index
python|algorithm|sorting|selection-sort|columnsorting
0
21
1
72,172,209
72,172,209
0
true
2022-05-09T12:27:57.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TypeError in my code. Using selection sort to sort values at a certain index<p>I want my selection sort to sort the values in a certain column (index 3) howe...
72,171,994
Terminal Concentrate Program's output to string?<p>In terminal I used to run:</p> <pre><code>wget https://chromedriver.storage.googleapis.com/101.0.4951.41/chromedriver_linux64.zip </code></pre> <p>suppose I have a python script called <code>test.py</code> which outputs version number, how can I insert that version ins...
<p>You can redirect the output of test.py into your url following this pattern:</p> <pre class="lang-sh prettyprint-override"><code>echo 101.0.4951.41 | (read var; wget https://chromedriver.storage.googleapis.com/$var/chromedriver_linux64.zip) </code></pre> <p>Outputs:</p> <pre><code>*file download logs* </code></pre> ...
Terminal Concentrate Program's output to string?
python|linux|ubuntu|terminal
0
42
2
72,172,236
72,172,236
0
true
2022-05-09T12:26:38.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Terminal Concentrate Program's output to string?<p>In terminal I used to run:</p> <pre><code>wget https://chromedriver.storage.googleapis.com/101.0.4951.41/c...
72,162,102
How do you import a network using a confusion matrix?<p>I have a confusion matrix (I think), which looks like this:</p> <p>I want to make this network on cytoscape so I can run some modelling, but I am not sure how to.</p> <p>Any ideas?</p>
<p>To my limited knowledge of Cytoscape, there are no straightforward ways to import a confusion matrix into Cytoscape. Maybe some applications do support it though.</p> <p>The most straightforward thing to do would be to convert your matrix to a suitable format, like using the following script for instance.<br /> Then...
How do you import a network using a confusion matrix?
cytoscape
0
27
2
72,172,237
72,172,237
0
true
2022-05-08T14:44:17.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you import a network using a confusion matrix?<p>I have a confusion matrix (I think), which looks like this:</p> <p>I want to make this network on cyt...
72,172,244
Cross join with addition<p>I am currently trying to cross join two lists with addition and I'm not entirely sure how to do that.</p> <p>Suppose I have to two lists:</p> <pre><code>list1 = [5,2,8] list2 = [11,6,3] sum_list = [] </code></pre> <p>my expected output would be:</p> <pre><code>print (sum_list) Output [16,11,...
<pre><code>sum_list= [x+y for x in list1 for y in list2] </code></pre> <p>It is just the nested loops.</p> <p>Or</p> <pre><code>for x in list1: for y in list2: sum_list.append(x+y) #output [16, 11, 8, 13, 8, 5, 19, 14, 11] </code></pre>
Cross join with addition
python
0
22
1
72,172,309
72,172,309
0
true
2022-05-09T12:45:05.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cross join with addition<p>I am currently trying to cross join two lists with addition and I'm not entirely sure how to do that.</p> <p>Suppose I have to two...
72,169,134
Why does stripe create successive payments after checkout?<p>I'm new to stripe and I'm trying to update the checkout of an existing website to the new version of stripe. After some hardship I've been (almost) successful but now I see that something in my code is making stripe make several subscriptions (like several pe...
<p>When creating a Checkout Session in subscription mode, the payment method will be attached to the customer and the Subscription will be created. Which is why you don’t need to handle any of this in the webhook endpoint.</p> <p>To make it clear, what’s happening here is that you’re webhook endpoint code is listening ...
Why does stripe create successive payments after checkout?
node.js|stripe-payments
0
58
1
72,172,368
72,172,368
0
true
2022-05-09T08:37:44.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does stripe create successive payments after checkout?<p>I'm new to stripe and I'm trying to update the checkout of an existing website to the new versio...
72,172,074
make empty table before adding elements<p>im trying to make a table that fills some space before adding rows... i tried making an empty row with a height of like 500px but this dosnt seems to work as intended.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div clas...
<p>You could use a row of empty td that has your height set to 500px and uses a repeating background linear gradient. Below the <code>nth-child</code> code is for when you have actual rows of data and the <code>:first-child:last-child</code> is for when you don't have any data as the row will be the only child:</p> <p...
make empty table before adding elements
javascript|html|css
0
110
3
72,172,398
72,172,398
0
true
2022-05-09T12:32:09.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: make empty table before adding elements<p>im trying to make a table that fills some space before adding rows... i tried making an empty row with a height of ...
72,163,465
Documentation of Helidon MP configuration options<p>Is there a documentation that lists all configuration options of Helidon MP, what they control, their default and allowed values?</p> <p>The official <a href="https://helidon.io/docs/v2/#/mp/jaxrs/02_server-configuration" rel="nofollow noreferrer">Configuring the Serv...
<p>We currently don't have a single documentation which list all possible config option for Helidon MP and are working on providing that as part of <a href="https://github.com/oracle/helidon/issues/3463" rel="nofollow noreferrer">https://github.com/oracle/helidon/issues/3463</a></p> <p>The doc you linked is giving exam...
Documentation of Helidon MP configuration options
java|configuration|microprofile|helidon
0
97
2
72,172,490
72,172,490
0
true
2022-05-08T17:20:46.063Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Documentation of Helidon MP configuration options<p>Is there a documentation that lists all configuration options of Helidon MP, what they control, their def...
72,168,973
Selenium - StaleElementReferenceException - element is not attached to the page document (C#)<p>I appreciate this has been asked many times before, but when you feel like you have tried every solution ever posted on stack overflow, then its time to ask a question...</p> <p>I am receiving a <code>StaleElementReferenceEx...
<p>I have resolved this in the following ways. Whether this is best practice or not, I'm not too sure, but this is honestly the only solution that has worked for me. I have tried everything else with no luck.</p> <pre><code> List&lt;IWebElement&gt; aHrefs = driver.FindElements(By.XPath(&quot;/html/body/div[4]/table[2]...
Selenium - StaleElementReferenceException - element is not attached to the page document (C#)
c#|selenium|selenium-webdriver|automation|staleelementreferenceexception
0
92
1
72,172,587
72,172,587
0
true
2022-05-09T08:24:24.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Selenium - StaleElementReferenceException - element is not attached to the page document (C#)<p>I appreciate this has been asked many times before, but when ...
72,142,148
Give another account ability to transfer portion of SOL - Solana<p>In SPL Token there is a function called Approve which gives the delegate account the ability to transfer an amount of tokens. So far I can only see this working for a custom token.</p> <p>Is it possible to give the delegate account the ability to transf...
<p>Your best bet is to wrap your SOL into an SPL token account (mint <code>So11111111111111111111111111111111111111112</code>) and use the SOL as an SPL token, e.g.:</p> <pre><code>$ spl-token wrap 1 Wrapping 1 SOL into GJTxcnA5Sydy8YRhqvHxbQ5QNsPyRKvzguodQEaShJje Signature: 4f4s5QVMKisLS6ihZcXXPbiBAzjnvkBcp2A7KKER7k9D...
Give another account ability to transfer portion of SOL - Solana
solana|solana-web3js
0
323
1
72,172,999
72,172,999
0
true
2022-05-06T13:21:00.620Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Give another account ability to transfer portion of SOL - Solana<p>In SPL Token there is a function called Approve which gives the delegate account the abili...
72,170,947
How to use OrdinalEncoder() to set custom order?<p>I have a column in my Used cars price prediction dataset named &quot;Owner_Type&quot;. It has four unique values which are ['First', 'Second', 'Third', 'Fourth']. Now the order that makes the most sense is First &gt; Second &gt; Third &gt; Fourth as the price decreases...
<p><a href="https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OrdinalEncoder.html" rel="nofollow noreferrer">OrdinalEncoder</a> have a parameter categories which can accept list of array of categories. here a code example:</p> <pre><code>from sklearn.preprocessing import OrdinalEncoder enc = Ordin...
How to use OrdinalEncoder() to set custom order?
python|machine-learning|categorical-data|feature-engineering
0
504
1
72,173,042
72,173,042
0
true
2022-05-09T11:05:12.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use OrdinalEncoder() to set custom order?<p>I have a column in my Used cars price prediction dataset named &quot;Owner_Type&quot;. It has four unique ...
72,173,092
how to get "@microsoft.graph.downloadUrl" from json because @ is a keyword and canno be used for variables. @microsoft.graph.downloadUrl cant declare<p>import Foundation import UIKit</p> <p>struct OnedriveItemsData: Decodable {</p> <pre><code>let value : [Value] </code></pre> <p>}</p> <p>struct Value: Decodable {</p> <...
<p>First give a name of the property like <code>downloadUrl</code>. To match it with server response add the property to <code>CodingKeys</code> enum. For more information please check <a href="https://developer.apple.com/documentation/foundation/archives_and_serialization/encoding_and_decoding_custom_types" rel="nofol...
how to get "@microsoft.graph.downloadUrl" from json because @ is a keyword and canno be used for variables. @microsoft.graph.downloadUrl cant declare
ios|swift|objective-c|microsoft-graph-api
0
59
1
72,173,158
72,173,158
0
true
2022-05-09T13:51:36.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get "@microsoft.graph.downloadUrl" from json because @ is a keyword and canno be used for variables. @microsoft.graph.downloadUrl cant declare<p>impor...
72,170,426
Apollo Client: Mutation optional parameter without changing db entries of none set variables to null<p>I'm using Apollo Client with (hasura as backend if that matters) and have the following mutation:</p> <pre><code> mutation SetArbitrarySubset( $id: String! $foo: String $bar: String ) { update_table...
<p>Unfortunately if you don't leave the values blank they are going to be set to null based on the definition for your mutation. There are few options you could consider:</p> <ul> <li>Make individual mutations</li> <li>If you have access to the original values for <code>$foo</code> and <code>$bar</code> when you are ca...
Apollo Client: Mutation optional parameter without changing db entries of none set variables to null
reactjs|graphql|apollo|apollo-client|hasura
0
152
1
72,173,182
72,173,182
0
true
2022-05-09T10:20:44.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apollo Client: Mutation optional parameter without changing db entries of none set variables to null<p>I'm using Apollo Client with (hasura as backend if tha...
72,170,979
Why is an in used function still shown in usage.txt of proguard output?<p>I have the following code</p> <pre><code>class MainActivity : AppCompatActivity() { private val obfuscatedClass = MyObfuscatedClass() override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ...
<p>Apparently the odd behavior of scenario 2 above only happen when using</p> <pre><code>buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } </code></pre> <p>If I use the non-optimize default proguard, then it'...
Why is an in used function still shown in usage.txt of proguard output?
android|proguard|android-r8
0
50
1
72,173,224
72,173,224
0
true
2022-05-09T11:07:09.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is an in used function still shown in usage.txt of proguard output?<p>I have the following code</p> <pre><code>class MainActivity : AppCompatActivity() {...
72,171,267
Cypress screenshotOnRunFailure not working<p>According to Cypress documentation, Screenshots are automatic upon run failure. This doesn't seem to be happening, however screenshots are recording in my file when I use <code>cy.screenshot()</code> directly in a test. I do not want to have to add this to every test.</p> <p...
<p>What do you have in package.json under</p> <p>&quot;scripts&quot;: { &quot;cypress&quot;: &quot;?&quot; },</p> <p>&quot;npm run cypress&quot; (which runs your script called &quot;cypress&quot; from &quot;scripts&quot; section in package.json) is different from &quot;cypress run&quot; (which runs Cypress tests. By de...
Cypress screenshotOnRunFailure not working
automation|cypress|screenshot
0
310
1
72,173,312
72,173,312
0
true
2022-05-09T11:30:16.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cypress screenshotOnRunFailure not working<p>According to Cypress documentation, Screenshots are automatic upon run failure. This doesn't seem to be happenin...
72,172,957
ESP-IDF I2C register read with two-byte address<p>I am struggling with swapping from Arduino/Wire library to ESP-IDF's I2C driver. I got stuck at the very first stage, trying to simply read the register. The function I use is <code>esp_err_t i2c_master_write_read_device(i2c_port_t i2c_num, uint8_t device_address, const...
<p>You need to pass to the function a pointer to the buffer and the size of that buffer.</p> <p>If you want to write a simple uint16_t variable:</p> <pre><code>uint8_t *write_buffer = (uint8_t*)&amp;old_buffer; size_t write_size = 2 </code></pre> <p>Take into consideration that you are responsible to accomodate the mem...
ESP-IDF I2C register read with two-byte address
c|arduino|embedded|esp-idf
0
241
1
72,173,392
72,173,392
0
true
2022-05-09T13:41:36.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ESP-IDF I2C register read with two-byte address<p>I am struggling with swapping from Arduino/Wire library to ESP-IDF's I2C driver. I got stuck at the very fi...
72,173,414
NodeJS: Cookie is undefined<p>I'm trying to make a simple GET request to my localhost:8080. When I make the GET request with Postman, I set a simple cookie. Now, in the main file, I've:</p> <pre><code>var express = require('express'); var app = express(); const cookieParser = require('cookie-parser'); app.use(cookiePa...
<p>you should be accessing the property <code>request.cookies</code> instead of <code>request.Cookie</code></p>
NodeJS: Cookie is undefined
javascript|node.js|express|cookies
0
65
1
72,173,459
72,173,459
0
true
2022-05-09T14:12:43.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NodeJS: Cookie is undefined<p>I'm trying to make a simple GET request to my localhost:8080. When I make the GET request with Postman, I set a simple cookie. ...
72,164,021
How to put overflowed widgets in the next column in flutter?<p>I have a list of Widgets and I'm representing them in a row. Now the list is quite large so I want the overflowed widgets to be shown in the next line, and repeat the same in the next line. How can i do it without using ListView.</p> <p>My code:</p> <pre><c...
<p>Use <code>Wrap</code> widget.</p> <pre><code>Wrap( direction: Axis.horizontal, children: tags), </code></pre>
How to put overflowed widgets in the next column in flutter?
flutter|flutter-layout
0
58
1
72,173,576
72,173,576
0
true
2022-05-08T18:29:00.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to put overflowed widgets in the next column in flutter?<p>I have a list of Widgets and I'm representing them in a row. Now the list is quite large so I ...
72,156,650
math : template specialization =0 for any other classes<p>I explain my problem. I want to code math with template general thing. So far I've made two classes. I have a</p> <pre><code>template&lt;typename T&gt; class rational{ T numerator; T denominator; operators and constructors } </code></pre> <p>And I ha...
<blockquote> <p>I want to define a function Derivative that returns 0 everytime, but I want my derivative to return something computed for the class polynomial and for the class fractional. That's my only problem now.</p> </blockquote> <p>You can do that by overloading the derivative function:</p> <pre><code>#include&l...
math : template specialization =0 for any other classes
templates|math|specialization|levels
0
49
1
72,173,584
72,173,584
0
true
2022-05-07T22:01:46.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: math : template specialization =0 for any other classes<p>I explain my problem. I want to code math with template general thing. So far I've made two classes...
72,172,930
detect the service's project package name at runtime<p>I have built two <a href="https://nestjs.com/" rel="nofollow noreferrer">NestJS</a> projects written in TypeScript. Each project is a microservice.</p> <p>I have also developed a shared library project in typescript. The two microservices projects mentioned above ...
<p>You could import the <code>package.json</code> directly, though be warned that can mess with the <code>dist</code> output due to how Typescript works (instead of <code>dist/main</code> you get <code>dist/src/main</code>). The other option would be to use <code>JSON.parse()</code> and <code>readFile</code> from the <...
detect the service's project package name at runtime
node.js|nestjs
0
23
1
72,173,627
72,173,627
0
true
2022-05-09T13:39:48.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: detect the service's project package name at runtime<p>I have built two <a href="https://nestjs.com/" rel="nofollow noreferrer">NestJS</a> projects written i...
72,172,558
Sort & render an array of objects using a select in ReactJS<p>I need your help. I have one js file with a code in which i have one component - <code>Home</code>. In this component i am trying to take objects from array <code>users</code> and sort them in ascending and descending order using <code>select</code> tag and ...
<p>Lots of issues as pointed by David. You need to use <code>state</code> to manage the users &amp; <code>update state</code> whenever sort direction is changed in the select. It's pretty straight forward. Working sample -</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true...
Sort & render an array of objects using a select in ReactJS
reactjs|sorting|conditional-rendering
0
682
2
72,173,772
72,173,772
0
true
2022-05-09T13:12:17.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sort & render an array of objects using a select in ReactJS<p>I need your help. I have one js file with a code in which i have one component - <code>Home</co...
72,144,463
"Bad Request-Error" when trying to connect to Azure Data Lake with Airflow<p>I try to connect to Azure Data Lake using Airflow. I use Airflow connection via the Web UI.</p> <p>When I try to connect using the test button, I get an error Bad Request. As seen below</p> <p><a href="https://i.stack.imgur.com/t6krF.png" rel=...
<p>I was trying to get the connection running using the Airflow implementation. My impression was that it was buggy and did not work out well. The above situation happened with Airflow 2.2.5. When I upgraded to Airflow 2.3.0, the test button was grayed out.</p> <p>The final solution was to use Access Tokens instead.</p...
"Bad Request-Error" when trying to connect to Azure Data Lake with Airflow
airflow|azure-data-lake
0
137
2
72,173,870
72,173,870
0
true
2022-05-06T16:05:45.587Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: "Bad Request-Error" when trying to connect to Azure Data Lake with Airflow<p>I try to connect to Azure Data Lake using Airflow. I use Airflow connection via ...
72,146,926
creating a list from a column with multiple lines<p>I have a Pandas data frame that in one column called SourceDocument I have multiple lines of data in each cell (separated by \n).</p> <p>SourceDocuments</p> <p>PRDS-002039\nPRDS-001952\nPRDS-001956</p> <p>I would like to run a for loop that reads each row and then sep...
<p>Thanks, Everyone for their help, and my apologies for not being straight clear on my Q. Here is the answer put together with the community's help.</p> <pre><code>SourceDocumentID=np.arange(1001,1001+ABP215.shape[0],1) SourceDocumentID=list(SourceDocumentID) keyz=[] for i in range(0,len(SourceDocumentID)): # buildin...
creating a list from a column with multiple lines
python-3.x|pandas|list|for-loop|split
0
55
1
72,173,928
72,173,928
0
true
2022-05-06T20:16:23.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: creating a list from a column with multiple lines<p>I have a Pandas data frame that in one column called SourceDocument I have multiple lines of data in each...
72,172,729
MySQL need to return table with NULL id's<p>I have a table same to this</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">id</th> <th style="text-align: center;">number</th> <th style="text-align: right;">id_user</th> </tr> </thead> <tbody> <tr> <td style="text-align...
<p>you should use a left join to include null values:</p> <pre><code>select * from user left join incident on incident.id_user=user.id </code></pre> <p>alternatively:</p> <pre><code>select number from user, incident where incident.id_user(+) = user.id </code></pre>
MySQL need to return table with NULL id's
mysql
0
31
1
72,174,059
72,174,059
0
true
2022-05-09T13:25:42.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL need to return table with NULL id's<p>I have a table same to this</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="t...
72,173,557
Error trying to manually create Gaussian Filter in Python<p>I created a Python code based on a MATLAB code I already had to implement the Gaussian Filter. But when I run the project, I get the following error:</p> <pre><code>Traceback (most recent call last): File &quot;C:\Users\gisla\Scilab_PDI\gaussianFilter.py&quo...
<p>In the line <code>Im = np.pad(img, [2,2])</code> you use the padding on the <code>img</code> variable, which is your color image with shape <code>(X, Y, 3)</code> (3 dimensions for R, G and B). If greyscale images is what you want to work with, I think instead you probably want to use your <code>I</code> variable wi...
Error trying to manually create Gaussian Filter in Python
python|matlab|image-processing
0
27
2
72,174,100
72,174,100
0
true
2022-05-09T14:21:55.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error trying to manually create Gaussian Filter in Python<p>I created a Python code based on a MATLAB code I already had to implement the Gaussian Filter. Bu...
72,157,831
AWS Cloudwatch alarm for fluctuating datapoints<p>I am monitoring a Fargate service on ECS and want to know when containers are bouncing a lot (come up, fail healthcheck, get killed by ECS and a new one gets scheduled and does the same)</p> <p>I replicated the scenario I'm interested in and using the &quot;Sample count...
<p>You can do something like this with metric math: <code>RUNNING_SUM(ABS(DIFF(myMetric)))</code></p> <p>This will return a rolling sum of all the absolute changes in the metric for your period. You can then create an alarm based on this, adjusting the desired period and threshold.</p>
AWS Cloudwatch alarm for fluctuating datapoints
amazon-web-services|amazon-cloudwatch
0
59
1
72,174,105
72,174,105
0
true
2022-05-08T03:24:22.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWS Cloudwatch alarm for fluctuating datapoints<p>I am monitoring a Fargate service on ECS and want to know when containers are bouncing a lot (come up, fail...
72,173,470
Meaning of -nt operator in shell script (zsh completion)<p>I stumbled upon a Z shell (<code>zsh</code>) completion file, and I can't figure out what the <code>-nt</code> operator does.</p> <pre><code>if ! [ -r $cache -a -s $cache ] || [ &quot;$squeezy&quot; -nt $cache ] </code></pre> <p>What is the explanation? Is this...
<p>Running <code>man zshall</code> and searching for <code>-nt</code> shows:</p> <blockquote> <pre><code>file1 -nt file2 </code></pre> <p>true if <code>file1</code> exists and is newer than <code>file2</code>.</p> </blockquote>
Meaning of -nt operator in shell script (zsh completion)
shell|operators|zsh|completion
0
44
1
72,174,138
72,174,138
0
true
2022-05-09T14:15:55.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Meaning of -nt operator in shell script (zsh completion)<p>I stumbled upon a Z shell (<code>zsh</code>) completion file, and I can't figure out what the <cod...
72,173,887
Retrieving missing data from within the same table<p>I'm importing CSV files with missing data into a MariDB table. I need to find all codes that don't have a corresponding <code>place = 2</code>.</p> <pre><code>Table cityX | id | code | place | value | description | subcode | | 1 | 001x | 1 | 6.00 | unique str ...
<p>This solution avoids EXCEPT which doesn't work in every RDBMS (not sure about mysql)</p> <pre><code>SELECT CODES.code, CODE_W_1.place AS place_1, CODE_W_2.place AS place_2 FROM (SELECT code FROM cityx GROUP BY code) AS CODES LEFT OUTER JOIN (SELECT code, ...
Retrieving missing data from within the same table
mysql|mariadb
0
32
2
72,174,155
72,174,155
0
true
2022-05-09T14:44:56.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Retrieving missing data from within the same table<p>I'm importing CSV files with missing data into a MariDB table. I need to find all codes that don't have ...
72,173,790
How to calculate average of all rows by excluding a few columns based on a condition<p>I have a tricky data cleaning requirement using pandas. I have a following dataframe with just binary value. Each row refers a customer's response to survey questions. Below df has two questions (q1 &amp; q2) and their response is de...
<p>Here's one way using <code>melt</code>. The idea is, we filter the relevant part of the DataFrame and <code>melt</code> it; then filter out the customers with all 0 answers to a question (build a filter transforming <code>all</code> by <code>groupby.transform</code>); then for the remaining customers, find the <code...
How to calculate average of all rows by excluding a few columns based on a condition
python|pandas|dataframe|pandas-groupby
0
48
2
72,174,170
72,174,170
0
true
2022-05-09T14:38:06.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to calculate average of all rows by excluding a few columns based on a condition<p>I have a tricky data cleaning requirement using pandas. I have a follo...
72,168,844
MS Word macro to delete all empty paragraphs leaving sections interruptions<p>I'm written this macro in MS Word to remove all empty paragraphs. It works well but, if document contains more than one section, the macro deletes the interruption and merges all sections into one.</p> <pre><code>Dim i As Long With ActiveDocu...
<p>Unless your document has tables preceded by empty paragraphs, you don't even need VBA for this! All you need is a <em>wildcard</em> Find/Replace, where:</p> <pre><code>Find = [^13]{2,} Replace = ^p </code></pre> <p>Of course, this could be incorporated into a macro, with code like:</p> <pre><code>With ActiveDocument...
MS Word macro to delete all empty paragraphs leaving sections interruptions
vba|ms-word
0
93
2
72,174,229
72,174,229
0
true
2022-05-09T08:12:36.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MS Word macro to delete all empty paragraphs leaving sections interruptions<p>I'm written this macro in MS Word to remove all empty paragraphs. It works well...
72,171,741
Add a user who can add collaborators to shared repository on GitHub<p>I was wondering if it was possible at all, in GitHub, to add a user or a collaborator, to my repo who would also have the privilege to add other collaborators ?</p> <p>I have added three collaborators to three of my repos, however, one of these colla...
<p>You'd need to change your namespace from &quot;yours&quot; to an <a href="https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/about-organizations" rel="nofollow noreferrer">organization</a> and from there you can create <a href="https://docs.github.com/en/organizations/managing-access...
Add a user who can add collaborators to shared repository on GitHub
github|collaboration
0
19
2
72,174,258
72,174,258
0
true
2022-05-09T12:06:53.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add a user who can add collaborators to shared repository on GitHub<p>I was wondering if it was possible at all, in GitHub, to add a user or a collaborator, ...
72,168,431
Plotly table cell color depending on cell data<p>Good day everyone, please can i be assisted in anyway possible. I am trying to code cell colour depending on the answer to my functions.</p> <pre><code>b = df['Supertrend'] a = b[-1] def main(a): if a !=True: return 'Bearish' else: return 'Bullish' poes = ...
<p>Since if statements cannot be written in the list, it is possible to create a color list in advance and specify it to color-code the cells.</p> <pre><code>TF = ['1 Minute', '5 Minutes', '15 Minutes', '1 Hour', 'Daily'] BB = [doos, poes, naai, tiet, kak] colors = ['#ff2d5d' if c == 'Bearish' else '#04b29b' for c in ...
Plotly table cell color depending on cell data
python|pandas|dataframe|function|plotly
0
132
1
72,174,342
72,174,342
0
true
2022-05-09T07:35:09.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Plotly table cell color depending on cell data<p>Good day everyone, please can i be assisted in anyway possible. I am trying to code cell colour depending on...
72,173,659
this.props.history.push has undefined state<p>I am trying to send some data from my <code>SignInForm</code> class to another component through <code>this.history.push</code> using the state parameter.</p> <p>However, when I look over in the <code>AdminPage</code> class, the props for state are <code>undefined</code>.</...
<pre><code> this.props.history.push({pathname: &quot;adminPage&quot;, state : { user : my_user}}); </code></pre> <p>change into</p> <pre><code> this.props.history.push(&quot;/adminPage&quot;, { state: user}); </code></pre> <p><a href="https://stackoverflow.com/questions/44121069/how-to-pass-params-with-history-push...
this.props.history.push has undefined state
reactjs
0
187
1
72,174,369
72,174,369
0
true
2022-05-09T14:29:29.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: this.props.history.push has undefined state<p>I am trying to send some data from my <code>SignInForm</code> class to another component through <code>this.his...
72,173,669
Cannot add KeyVault Secret-scoped role assignment with Azure Bicep<p>I am deploying something in the <code>dev</code> ressource group. Something in it has a dependency on a key-vault secret which is stored in a different ressource group <code>main</code>. From the main.bicep I am calling a <strong>role-assignment-secre...
<p>Oh well, there was an obvious oversight on my part. Instead of explicitly providing the scope property WITHIN the role-assignment-secret.bicep template, I should have injected it from outside when calling the module from the main.bicep. Working now. Apologies.</p>
Cannot add KeyVault Secret-scoped role assignment with Azure Bicep
azure-resource-manager|azure-bicep
0
263
1
72,174,395
72,174,395
0
true
2022-05-09T14:30:17.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot add KeyVault Secret-scoped role assignment with Azure Bicep<p>I am deploying something in the <code>dev</code> ressource group. Something in it has a ...
72,171,037
Nginx serving Angular returns 404<p>I'm trying to run a production-built <strong>Angular</strong> app through <strong>nginx</strong>. Currently, I can serve the index.html just fine but the issue is for all the *.js and *css referenced as sources inside the index itself, those return a 404 error. I've been going back a...
<p>Since all the necessary files are inside <code>customer-ui</code> directory, it's better to point all paths there, like so:</p> <pre><code> root /apps/customer-ui; index index.html; location / { try_files $uri $uri/ /index.html =404; } </code></pre> <p>Alternativel...
Nginx serving Angular returns 404
angular|nginx
0
117
1
72,174,698
72,174,698
0
true
2022-05-09T11:11:40.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nginx serving Angular returns 404<p>I'm trying to run a production-built <strong>Angular</strong> app through <strong>nginx</strong>. Currently, I can serve ...
72,173,466
Provider doesn't update class data<p><code>P</code> is an class to save user information.</p> <pre><code>class P extends ChangeNotifier(){ String? username; void upd(String str){ userName = str; notifyListener(); } } </code></pre> <p>Updating data by doing;</p> <pre><code>context.read&lt;P&g...
<p>As <a href="https://stackoverflow.com/users/18309290/user18309290">@user18309290</a> said, just complementing with a more complete code.</p> <p>If you want to, you can try it on <a href="https://dartpad.dev/" rel="nofollow noreferrer">https://dartpad.dev/</a> (Just push the FloatingActionButton once at least.</p> <p...
Provider doesn't update class data
flutter|dart
0
32
2
72,174,704
72,174,704
0
true
2022-05-09T14:15:40.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Provider doesn't update class data<p><code>P</code> is an class to save user information.</p> <pre><code>class P extends ChangeNotifier(){ String? userna...
72,159,552
Angular - My angular application stopped working after I installed package FortAwesome<p>I have an angular application which worked fine but since I installed FortAwesome using</p> <pre><code>ng add @fortawesome/angular-fontawesome </code></pre> <p>The application has stopped working, the error I get is</p> <pre><code>...
<p>I had totally overlooked the compatibility matrix at <a href="https://github.com/FortAwesome/angular-fontawesome" rel="nofollow noreferrer">https://github.com/FortAwesome/angular-fontawesome</a>. I was installing the latest version which was not compatible with my Angular version. I have now rolled back the version ...
Angular - My angular application stopped working after I installed package FortAwesome
angular|font-awesome
0
66
1
72,174,732
72,174,732
0
true
2022-05-08T09:11:37.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular - My angular application stopped working after I installed package FortAwesome<p>I have an angular application which worked fine but since I installe...
72,174,574
Export groups and username of a user in Active Directory<p>I am trying to find out the Active Directory groups all our <em>active</em> users are in and want to export it to a CSV file. However the following command presents garbage in the related CSV file.</p> <p>This is my code failing:</p> <pre><code>Import-Module Ac...
<p>Write-Host only writes text to the console window. It doesn't output anything useful to pipe through to Export-Csv.<br /> Also, unless you add switch <code>-Append</code>, you should set the <code>Export-Csv</code> cmdlet as last line in the code, otherwise you will overwrite it in every iteration.</p> <p>Try</p> <p...
Export groups and username of a user in Active Directory
powershell|active-directory|export-csv
0
245
1
72,174,918
72,174,918
0
true
2022-05-09T15:32:46.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Export groups and username of a user in Active Directory<p>I am trying to find out the Active Directory groups all our <em>active</em> users are in and want ...
72,174,515
How to pass csv file data to WebDriver Sampler and how separate request use separate data from csv file<p>I wrote one javascript using selenium (WebDriver Sampler) for login. I want to log in to the same site using separate 30 users{user1,user2...user30). I want to check the performance of the site when the number of d...
<ol> <li><p>With the default configuration of the <a href="https://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config" rel="nofollow noreferrer">CSV Data Set Config</a> it will read next line from the .csv file on each iteration of each virtual user. The behaviour can be amended using <a href="ht...
How to pass csv file data to WebDriver Sampler and how separate request use separate data from csv file
jmeter
0
59
1
72,174,952
72,174,952
0
true
2022-05-09T15:28:37.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass csv file data to WebDriver Sampler and how separate request use separate data from csv file<p>I wrote one javascript using selenium (WebDriver Sa...
72,148,190
passing function variables to another file python<p>I need to pass data_connection into my main.py engine because that variable is where the data from mysql string is being stored. In main.py it says parameter data_connection unfilled but I can only enter 'data_connection=' I'm confused what I'm supposed to do...</p> <...
<p><code>data_connection</code> is a local variable in load_file.py that is destroyed when the function exits. You also have a like-named parameter in download_files. These are two different, unique variables created on each call to the function. They happen to have the same name, but in different namespaces so do not ...
passing function variables to another file python
python|variables
0
54
1
72,174,989
72,174,989
0
true
2022-05-06T23:07:20.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: passing function variables to another file python<p>I need to pass data_connection into my main.py engine because that variable is where the data from mysql ...
72,146,760
How to use "oneOf" in this schema?<p>I'd like to have either A or B, but not both (mutual exclusive.)</p> <p>I have to use whatever is avaliable in Draft 3, even though it says 4 on the top. Reason being, when using array for &quot;required&quot;, it throws an error that it can't convert an array to a boolean. If I rem...
<p>Draft 3 does <em>not</em> support <code>OneOf</code> or any of the likes as <a href="https://stackoverflow.com/users/3744182/dbc">@dbc</a> mentioned in a comment.</p> <p><code>[Newtonsoft.Json.Schema.JsonSchema]</code> uses draft 3 to prase the JSON file. Hence why it was ignoring <code>OneOf</code> AND throwing an ...
How to use "oneOf" in this schema?
javascript|json|json.net|schema|jsonschema
0
169
1
72,175,020
72,175,020
0
true
2022-05-06T19:56:31.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use "oneOf" in this schema?<p>I'd like to have either A or B, but not both (mutual exclusive.)</p> <p>I have to use whatever is avaliable in Draft 3, ...
72,174,769
how to sort a table based on a specific column (both scending and descending) in python<p>I need your help to sort a table based on a specific column in ascending and descending order.</p> <p>For example I have this table saved in a file called &quot;test.txt&quot;</p> <p>which contains the following:</p> <ul> <li><p>N...
<p>use sorted() if you want to sort data in descending order, just add reverse=True in sorted function but it allows you to sort only one column at a time.</p> <pre><code>from prettytable import from_csv import csv, operator with open('test.txt', 'r') as open_file: table_file = from_csv(open_file) print(table_file) ...
how to sort a table based on a specific column (both scending and descending) in python
python-3.x
0
48
1
72,175,057
72,175,057
0
true
2022-05-09T15:48:31.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to sort a table based on a specific column (both scending and descending) in python<p>I need your help to sort a table based on a specific column in asce...
72,173,919
QTableView with QSortFilterProxyModel don't find correct row because is ordered<p>I have an application in which I am experiencing a problem.</p> <p>In order to explain the problem I have simplified it to the maximum to be able to expose it here.</p> <p>My problem is the following:</p> <ul> <li><p>I have a <code>QTable...
<p>With @musicamante comments, the correct code is:</p> <pre><code>from PyQt5.uic import loadUiType, loadUi from PyQt5.QtWidgets import (QApplication, QPushButton,QComboBox,QMainWindow) from PyQt5.QtWidgets import (QTableView,QAbstractItemView,QVBoxLayout,QLineEdit,QWidget) from PyQt5.QtGui import QStandardItemModel,QS...
QTableView with QSortFilterProxyModel don't find correct row because is ordered
qt|pyqt|qtableview|qsortfilterproxymodel
0
74
1
72,175,078
72,175,078
0
true
2022-05-09T14:46:57.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: QTableView with QSortFilterProxyModel don't find correct row because is ordered<p>I have an application in which I am experiencing a problem.</p> <p>In order...
72,174,860
Extract and group by type env variables from k8s deployments with jq<p>I am trying to extract the list of k8s deployment environment variables and merge the environment variables into a group of categories using jq and regex.</p> <p><strong>Example</strong></p> <p>k8s deployment:</p> <pre><code>apiVersion: apps/v1 kind...
<p>Here's one rewrite with several duplicates factored out. Decide for yourself if this meets your requirement for elegance:</p> <pre class="lang-sh prettyprint-override"><code>( .metadata | {namespace, name} ) + ( .spec.template.spec.containers[].env | { databases: map(select(.name | contains (&quot;DB&quot;))...
Extract and group by type env variables from k8s deployments with jq
json|bash|kubernetes|jq
0
64
1
72,175,285
72,175,285
0
true
2022-05-09T15:55:14.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract and group by type env variables from k8s deployments with jq<p>I am trying to extract the list of k8s deployment environment variables and merge the ...
72,171,137
Cannot play audio in replit<p>I am creating a Bash program using Replit and it needs to play sound. What should I do? I surfed through the docs but they were of no use.</p>
<ol> <li><a href="https://blog.replit.com/system-audio#how-to-opt-in" rel="nofollow noreferrer">Create a secret</a> called <code>VNC_ENABLE_EXPERIMENTAL_AUDIO</code> with a value of 1</li> <li>Trigger the <a href="https://docs.replit.com/hosting/streaming-native-graphics-vnc" rel="nofollow noreferrer">VNC</a> screen by...
Cannot play audio in replit
bash|audio|replit
0
31
2
72,175,357
72,175,357
0
true
2022-05-09T11:20:17.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot play audio in replit<p>I am creating a Bash program using Replit and it needs to play sound. What should I do? I surfed through the docs but they were...
72,175,258
Remove schema name from DBeaver's query<p>I am new to DBeaver and I am using it for the postgres client. I was using Navicat before and in navicat the query simply used to run without schema name as <code> SELECT * FROM TABLE_NAME</code> . However, I am having issues with the Navicat and I recently switched on DBeaver(...
<p>In your connection settings in dbeaver unter Initialization you can set a default schema:</p> <p><a href="https://i.stack.imgur.com/DKSWu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DKSWu.png" alt="dbeaver settings" /></a></p>
Remove schema name from DBeaver's query
sql|postgresql|dbeaver
0
235
1
72,175,478
72,175,478
0
true
2022-05-09T16:26:29.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove schema name from DBeaver's query<p>I am new to DBeaver and I am using it for the postgres client. I was using Navicat before and in navicat the query ...
72,175,402
how to get the expected output in list format<p>below are 2 lst1 and lst2 and expected output is in output as below.</p> <pre><code>lst1 = ['q','r','s','t','u','v','w','x','y','z'] lst2 =['1','2','3'] </code></pre> <p>Output expected</p> <pre><code> [['q','1'], ['r','2'], ['s','3'], ['t','1'],['u','2'],['v','3'],['w'...
<p>This is a very simple approach to this problem.</p> <pre><code>lst1 = ['q','r','s','t','u','v','w','x','y','z'] lst2 = ['1','2','3'] new_list = [] for x in range(len(lst1)): new_list.append([lst1[x], lst2[x % 3]]) print(new_list) # [['q', '1'], ['r', '2'], ['s', '3'], ['t', '1'], ['u', '2'], ['v', '3'], ['w',...
how to get the expected output in list format
python-3.x
0
16
2
72,175,514
72,175,514
0
true
2022-05-09T16:36:58.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get the expected output in list format<p>below are 2 lst1 and lst2 and expected output is in output as below.</p> <pre><code>lst1 = ['q','r','s','t','...
72,172,966
Load pure Python module from in-memory zipfile<p>From <a href="https://stackoverflow.com/a/39136473/17920058">this</a>, I was able to make this:</p> <pre><code>import os import types import zipfile import sys import io class ZipImporter(object): def __init__(self, zip_file): self.zfile = zip_file s...
<p>I found the answer --- PEP 302 says that:</p> <blockquote> <p>Note that the module object must be in sys.modules before the loader executes the module code. This is crucial because the module code may (directly or indirectly) import itself; adding it to sys.modules beforehand prevents unbounded recursion in the wors...
Load pure Python module from in-memory zipfile
python-3.x|sys|python-zipfile|python-importlib
0
29
1
72,175,632
72,175,632
0
true
2022-05-09T13:42:18.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Load pure Python module from in-memory zipfile<p>From <a href="https://stackoverflow.com/a/39136473/17920058">this</a>, I was able to make this:</p> <pre><co...
72,175,126
Blank page ASP.NET Core MVC<p>I want to run my project with Visual Studio, but I'm getting a blank page, actually I have no idea what to do. I didn't change any routes, it worked before, but now it's not working for some &quot;magic&quot; reason.</p> <p>Layout:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;e...
<p>Okay, I'm completely f*cked up. I had</p> <blockquote> <p>app.MapControllerRoute( name: &quot;default&quot;, pattern: &quot;{controller=Home}/{<strong>actions</strong>=Index}&quot;);</p> </blockquote> <p>Instead of</p> <blockquote> <p>app.MapControllerRoute( name: &quot;default&quot;, pattern: &quot;{controller=Home...
Blank page ASP.NET Core MVC
asp.net-core|asp.net-core-mvc
0
201
1
72,175,669
72,175,669
0
true
2022-05-09T16:14:51.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Blank page ASP.NET Core MVC<p>I want to run my project with Visual Studio, but I'm getting a blank page, actually I have no idea what to do. I didn't change ...
72,175,379
How do I rename files if they match with names within a csv column?<p>I'm working in a directory in which I have a lot (about 100) of BAM file with a specific name. In the same directory I have also a csv file containing 4 column: <code>FileID, File.name, Donor, Type</code></p> <p>Let's say that my bam files in the dir...
<p>Assuming your file is something like that:</p> <pre><code>$ cat file.csv 01;file01;part1;part2 02;file02;part3;part4 </code></pre> <p>You can try it</p> <pre><code>while read -r line; do file=$(echo $line | cut -d&quot;;&quot; -f2) newName=$(echo $line | cut -d&quot;;&quot; -f3)_$(echo $line | cut -d&quot...
How do I rename files if they match with names within a csv column?
bash|shell
0
191
4
72,175,677
72,175,677
0
true
2022-05-09T16:35:17.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I rename files if they match with names within a csv column?<p>I'm working in a directory in which I have a lot (about 100) of BAM file with a specifi...
72,173,578
Hide button if text found on page, but not if this text is also found on page<p>I have this working code which hides the &quot;next&quot; button on my checkout if customers have 'session 1 of 5', '2 of 5', '3 of 5' or '4 of 5'in their basket. Because I need them to add all 5 sessions to their basket before they can cli...
<p>This is usually something you would integrate with the basket logic directly but it looks like you are using a plugin so I'm going to guess this isn't possible in your specific case, hence your question.</p> <p>The below snippet will give you an idea how you could check that all sessions are present using the <code>...
Hide button if text found on page, but not if this text is also found on page
javascript|jquery
0
65
1
72,175,717
72,175,717
0
true
2022-05-09T14:23:42.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hide button if text found on page, but not if this text is also found on page<p>I have this working code which hides the &quot;next&quot; button on my checko...
72,175,667
how to change a list according to screen size(less than 500px)<p>my user is showing 4 educational titles. I want it to only show 1 on mobile screen(less than 500px); How can I Accomplish this in react? below is the code and how it looks on a normal wide screen resolution and how Id like it to look</p> <pre><code>return...
<p>use some conditioned rendering</p> <pre class="lang-js prettyprint-override"><code>let show1 = window.innerWidth &lt;= 500; return ( &lt;div className=&quot;educations-section&quot;&gt; { Show1 &amp;&amp; &lt;div key={user.educations[0]._id}&gt;{user.educations[0].degree}&lt;/div&gt;} ...
how to change a list according to screen size(less than 500px)
javascript|reactjs
0
31
1
72,175,739
72,175,739
0
true
2022-05-09T16:57:11.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to change a list according to screen size(less than 500px)<p>my user is showing 4 educational titles. I want it to only show 1 on mobile screen(less than...
72,158,562
Unable to resolve identifier<p>Being a beginner i have written this code in xc8 compiler but its showing warning on include file and error on port and tris register(Unable to resolve Identifier).Also When i execute this code in Proteus it only blink led on RB0 except on whole port.I tried alot from past two days but al...
<p>When compiling with XC8 include the XC8 header by adding the line <code>#include &lt;xc.h&gt;</code>. Writing 1 to PORTB will only set bit 0 and turn on RB0. To turn on RB0 through RB7 set all 8 bits by writing <code>PORT B = 0b11111111</code> (255 decimal).</p>
Unable to resolve identifier
compiler-errors|xc8|mplab-x
0
146
1
72,175,781
72,175,781
0
true
2022-05-08T06:12:17.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to resolve identifier<p>Being a beginner i have written this code in xc8 compiler but its showing warning on include file and error on port and tris r...
72,150,074
How to store custom java objects with ArrayLists in Firebase realtime database<p>I am trying to store custom java objects in Firebase. These objects have ArrayLists and other object references inside them such as Location. When I try to write these object to the database AndroidStudio gives two errors:</p> <ol> <li>Cus...
<p>Figured it out. I had an object which is called Route. It also had a List which holds Stop objects. When a stop is added to a route, a reference of the Route was also added to Stop to show that, that specific Stop exists in this Route. However, for some reason adding Route(this) reference to Stop and adding Stop to ...
How to store custom java objects with ArrayLists in Firebase realtime database
java|firebase
0
29
1
72,175,791
72,175,791
0
true
2022-05-07T06:35:03.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to store custom java objects with ArrayLists in Firebase realtime database<p>I am trying to store custom java objects in Firebase. These objects have Arr...
72,158,241
Entity Framework .net 5.0 Cascading delete doesn't seem to work in this case<p>I have a simple three entity relationship (EF Core 5.0), Customer has 0..n Invoices which has 0..n InvoiceLines. All running on SQL Server.</p> <pre><code> namespace TestEF { public class Customer { public ...
<p>The documentation link specifies the FK must be required for cascade delete to be the inferred configuration. If the FK allows nulls, the default delete behavior is to set the FK to null. That's why people asked to see the OnModelCreating and the exact entity configuration.</p>
Entity Framework .net 5.0 Cascading delete doesn't seem to work in this case
c#|entity-framework-core
0
46
1
72,175,867
72,175,867
0
true
2022-05-08T05:09:06.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Entity Framework .net 5.0 Cascading delete doesn't seem to work in this case<p>I have a simple three entity relationship (EF Core 5.0), Customer has 0..n Inv...
72,175,795
POSTGRESQL: query that returns a column named valid with a boolean value that tells whether the limited ( name of role ) role password has expired<p>Like in Title, I have made so far</p> <pre class="lang-sql prettyprint-override"><code>SELECT rolvaliduntil AS &quot;valid&quot; FROM pg_authid WHERE rolname = 'limited' ...
<p>Just add it to the SELECT list:</p> <pre><code>SELECT rolvaliduntil &gt; now() AS &quot;valid&quot; FROM pg_authid WHERE rolname = 'limited' </code></pre>
POSTGRESQL: query that returns a column named valid with a boolean value that tells whether the limited ( name of role ) role password has expired
sql|postgresql|validation|boolean|roles
0
21
1
72,175,877
72,175,877
0
true
2022-05-09T17:07:50.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: POSTGRESQL: query that returns a column named valid with a boolean value that tells whether the limited ( name of role ) role password has expired<p>Like in ...
72,171,544
Reminder Application C# (Mongodb) : How to filter the data from mongodb and compare them specially datetime and timespan and give a small message box<p>Hi Guys im New to coding and i just want some help or advice on creating a simple c# winforms reminder app</p> <p>I want to create a reminder application which imputs d...
<p>I'd propose to store the reminder date and time as a single field in MongoDB. This simplifies comparing because you only have to compare one field:</p> <pre><code>public class remindermodel { public string remindername { get; set; } public DateTime reminderdate { get; set; } // Not needed: public TimeSpa...
Reminder Application C# (Mongodb) : How to filter the data from mongodb and compare them specially datetime and timespan and give a small message box
c#|mongodb
0
38
2
72,175,931
72,175,931
0
true
2022-05-09T11:51:43.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reminder Application C# (Mongodb) : How to filter the data from mongodb and compare them specially datetime and timespan and give a small message box<p>Hi Gu...
72,149,103
can't start solana validator node,can't connect<p>I have used SSR, and the viewer can access the node</p> <pre><code>get_cluster_shred_version failed: 108.160.170.41:8001, connection timed out ..... [2022-05-07T01:25:37.984950553Z INFO solana_validator] Contacting 128.242.240.212:8001 to determine the validator's publ...
<p>This error happens when it isn't possible for the software to figure out what its public ip address is for the gossip protocol at this line: <a href="https://github.com/solana-labs/solana/blob/8d0134e0fdede539cf8ab89ef0ce794f1d41f9dc/validator/src/main.rs#L2819" rel="nofollow noreferrer">https://github.com/solana-la...
can't start solana validator node,can't connect
solana
0
157
1
72,175,954
72,175,954
0
true
2022-05-07T02:50:04.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: can't start solana validator node,can't connect<p>I have used SSR, and the viewer can access the node</p> <pre><code>get_cluster_shred_version failed: 108.16...
72,175,873
ECS Fargate with ALB challenges<p>I am currently exploring AWS ECS with Fargate. At first, I thought that it is a good feature that can do autoscaling and save cost, as well as without server maintenance overhead.</p> <p>But when I look further onto it, the more I see the pain into it.</p> <ol> <li>Fargate does not pro...
<blockquote> <ol> <li>Anyone have an alternative of dealing with issue (1) and (2)? a way that can overcome it for cost saving purposes and at the same time retaining an elastic IP</li> </ol> </blockquote> <p>A load balancer (ALB or NLB) is really your only option. Your statement about health checks preventing Fargate ...
ECS Fargate with ALB challenges
amazon-web-services|amazon-ecs|aws-fargate
0
186
1
72,175,956
72,175,956
0
true
2022-05-09T17:15:23.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ECS Fargate with ALB challenges<p>I am currently exploring AWS ECS with Fargate. At first, I thought that it is a good feature that can do autoscaling and sa...
72,175,646
dropdown form in a navigation bar<p>i am trying to have a dropdown box with a form so i can change any settings in case of a misspell and, after a few research i can't find the root of the problem. I need the icon to be on the navigation bar. I already tryed to change de z-index of the settings container with no succes...
<p>Removing <code>overflow: hidden</code> from your navbar should fix the issue.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.row::after{ content: ""; clear: both...
dropdown form in a navigation bar
html|css
0
50
2
72,175,982
72,175,982
0
true
2022-05-09T16:55:31.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: dropdown form in a navigation bar<p>i am trying to have a dropdown box with a form so i can change any settings in case of a misspell and, after a few resear...
72,175,892
How to filter json data while Fetching in Vuejs<p>Hi I want to filter datas when fetching. For example: in to do list I want to filter only finished datas. Here is part of my fetch code:</p> <p>Json db: http://localhost:3000/yapilacaklar.</p> <pre><code>&lt;script&gt; mounted(){ fetch('http://localhost:3000/yapila...
<p>You can use the computed for this:</p> <pre><code>computed: { // a computed getter yapilaFinished () { // `this` points to the component instance return this.yapilacaklar.filter((data)=&gt; data.finished === true) } } </code></pre> <p>or just when you get the data filter the data:</p> <pre><c...
How to filter json data while Fetching in Vuejs
vuejs3
0
46
1
72,175,992
72,175,992
0
true
2022-05-09T17:17:05.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to filter json data while Fetching in Vuejs<p>Hi I want to filter datas when fetching. For example: in to do list I want to filter only finished datas. H...
72,165,647
How to open files in different ChangeList(s) into default change list?<p>Let's say I have few files under CL: 123 and few files under CL:456 . How do I open all the files together in one changelist or into a default changelist so that I can submit them together ?</p>
<p>In the P4 client:</p> <pre><code>p4 reopen -c &lt;changelist#&gt; //path/to/file </code></pre> <p>...will put it in your default changelist</p> <p>In P4V, select all of the files you want to move to another changelist. You can either drag-n-drop them to the preferred changelist, or right-click and choose <em>Move to...
How to open files in different ChangeList(s) into default change list?
perforce
0
149
1
72,176,070
72,176,070
0
true
2022-05-08T23:02:53.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to open files in different ChangeList(s) into default change list?<p>Let's say I have few files under CL: 123 and few files under CL:456 . How do I open ...
72,168,527
Viewport of nested svg doesn't work properly<p>I want to position nested SVG without margin. In this situation, I can find out that there's too much margin, and if I decrease the height, the shape is disappeared. How can I solve this problem?</p> <pre><code>&lt;svg width=&quot;300&quot; height=&quot;100&quot; viewBox=&...
<p>Your <code>&lt;line&gt;</code> elements are placed with some margins/padding due to their <code>x/y</code> properties:</p> <pre><code> &lt;line x1=&quot;10&quot; x2=&quot;275&quot; y1=&quot;100&quot; y2=&quot;100&quot; fill=&quot;grey&quot;/&gt; </code></pre> <p>translates to:</p> <ul> <li>start the line at x=...
Viewport of nested svg doesn't work properly
css
0
44
1
72,176,076
72,176,076
0
true
2022-05-09T07:43:28.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Viewport of nested svg doesn't work properly<p>I want to position nested SVG without margin. In this situation, I can find out that there's too much margin, ...
72,176,008
Problem: Pandas - Slicing a datetime64[ns] column returns a list of 19-digit integers<p>I am trying to convert a column of dates in a dataframe to a list, but something is happening when I slice it that turns the dates into 19-digit integers. This is the original df along with the column dtypes:</p> <pre><code> ...
<p><code>pd.to_datetime('1970-01-01').value</code> returns the UNIX timestamp and <code>df[datetimecolumn].values.tolist()</code> seems returns the UNIX timestamp directly.</p> <p>You can avoid by calling <code>tolist</code> on Series directly.</p> <pre class="lang-py prettyprint-override"><code>def slice_single_datafr...
Problem: Pandas - Slicing a datetime64[ns] column returns a list of 19-digit integers
python|pandas|datetime|pandas-loc
0
52
1
72,176,185
72,176,185
0
true
2022-05-09T17:28:13.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem: Pandas - Slicing a datetime64[ns] column returns a list of 19-digit integers<p>I am trying to convert a column of dates in a dataframe to a list, bu...
72,175,381
'Post' object is not iterable even though i'm using filter<p>I'm trying to get all posts for a certain Vehicle and this is the code that i have:</p> <pre><code> *vehicles/views.py* class UserVehicleListView(ListView): model = Vehicle template_name = 'vehicles/vehicles.html' # &lt;app&gt;/&lt;model&gt;_&lt;view...
<p>Found out the problem, i was passing as DetailView instead of ListView</p>
'Post' object is not iterable even though i'm using filter
django|django-views|django-templates
0
69
1
72,176,252
72,176,252
0
true
2022-05-09T16:35:27.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 'Post' object is not iterable even though i'm using filter<p>I'm trying to get all posts for a certain Vehicle and this is the code that i have:</p> <pre><co...
72,145,822
Remove specific HTML div when click on delete button using vuejs<p>So I have some input fields which are repetitive to fill different data. For every repetition, I also have a delete button. If I click on this delete button, then all the input fields related to this delete button should be removed. But this delete butt...
<p>In the discussion in comments above, I was not understanding that you're trying to control the visibility of individual rows separately.</p> <p>The basic answer is still the same: have your &quot;delete&quot; button set a state variable, and use that state variable to control the visibility of the element you want ...
Remove specific HTML div when click on delete button using vuejs
javascript|html|css|vue.js|frontend
0
325
1
72,176,474
72,176,474
0
true
2022-05-06T18:17:33.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove specific HTML div when click on delete button using vuejs<p>So I have some input fields which are repetitive to fill different data. For every repetit...
72,176,328
How to append search query to url from search page in react?<p>My header search bar works by navigating to &quot;search?q=&quot; on button press, reading params from the search page's URL and processing them, but when I am searching from the search page the URL takes this form &quot;search/search?q=&quot;. How can I sk...
<p>Change your code like this. I've added onSubmit on form tag. And made a little change in <code>search()</code>.</p> <p>Also, I've added a useEffect to get params from url.</p> <pre><code>import React, { useEffect, useState } from &quot;react&quot;; import { useLocation, useNavigate, useParams } from &quot;react-rout...
How to append search query to url from search page in react?
javascript|reactjs|navigation
0
329
1
72,176,592
72,176,592
0
true
2022-05-09T17:56:56.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to append search query to url from search page in react?<p>My header search bar works by navigating to &quot;search?q=&quot; on button press, reading par...
72,166,532
What happens when you run the “build” script in parcel?<p>I’m a confused on what exactly the build script does and how it relates to deployment.</p> <p>I know it it makes your project small by renaming variables, trimming white space, etc… but how does it work with deployment?</p> <p>Do you only push the files that are...
<p><code>parcel build</code> is used to create a production-ready bundle of files that can be deployed in various ways.</p> <p>A very common workflow is to point parcel at an <code>html</code> file to build a client-side application that can be delivered by a file server (e.g. <code>parcel build src/index.html</code>)....
What happens when you run the “build” script in parcel?
javascript|node.js|npm|npm-scripts|parceljs
0
148
1
72,176,637
72,176,637
0
true
2022-05-09T02:51:59.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What happens when you run the “build” script in parcel?<p>I’m a confused on what exactly the build script does and how it relates to deployment.</p> <p>I kno...
72,176,375
Why is an excel formula calculating incorrectly?<p>I have a formula in a worksheet I created that seems to be calculating incorrectly. The formula looks for the difference between two values. The formula should always evaluate to zero as it is comparing entered sales figures against the total sales for the department. ...
<p>This isn't a Microsoft bug, this is the problem with how the computer industry does floating point math. Basically, because of how fractional parts of numbers are stored and handled, there <em>will</em> be error with many, many non-whole values. Extremely tiny errors, but still there.</p> <p>See <a href="https://doc...
Why is an excel formula calculating incorrectly?
excel
0
33
1
72,176,643
72,176,643
0
true
2022-05-09T18:01:54.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is an excel formula calculating incorrectly?<p>I have a formula in a worksheet I created that seems to be calculating incorrectly. The formula looks for ...
72,176,425
Create frequent number sqlite queries<p>Good evening. I created a database with 9 columns and 605 rows. On column 3, 4, 5, 6, 7 there are numbers ranging from 1 to 90 random. Now I would like to create a query that tells me on each line how many times a number is frequent. The table is divided into 11 lines: Bari, Cagl...
<p>When you post SQL questions, it often helps to tell us what database system you're using, because the syntax is often slightly different between systems.</p> <p>However, here is a query which (I think) does what you expect for most systems. You might have to tweak it.</p> <pre><code>WITH CTE_ESTR1 AS ( SELECT ES...
Create frequent number sqlite queries
sql
0
53
2
72,176,680
72,176,680
0
true
2022-05-09T18:06:32.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create frequent number sqlite queries<p>Good evening. I created a database with 9 columns and 605 rows. On column 3, 4, 5, 6, 7 there are numbers ranging fro...
72,176,262
What exactly does 'Include In Project' and 'Exclude From Project' mean in Visual Studio?<p>I'm looking for some clarity on Visual Studio include and exclude from project flags. Does it simply mean that the file/folder will be included at build time? I'm referring to static assets rather than <code>.cs</code> files.</p>
<p>This refers to the files which will be explicitly included in your project's <code>.csproj</code> file. This is more visible with code files impacting what is included/excluded when building, but it also can impact what files are copied to an output folder, etc. See <a href="https://docs.microsoft.com/en-us/aspnet/w...
What exactly does 'Include In Project' and 'Exclude From Project' mean in Visual Studio?
.net|visual-studio
0
137
1
72,176,778
72,176,778
0
true
2022-05-09T17:51:45.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What exactly does 'Include In Project' and 'Exclude From Project' mean in Visual Studio?<p>I'm looking for some clarity on Visual Studio include and exclude ...
72,176,830
How to add column values of another df to present df based on the column value?<p>I have two data frames.</p> <pre class="lang-py prettyprint-override"><code>import pandas import numpy as np data = {'Name': ['Tom', 'Joseph', 'Krish', 'John','rack','rox','selena','jha'], 'Age': [20, 21,np.nan , 18,20,30,np.nan,np.nan]...
<p>Use <code>how=left</code></p> <pre class="lang-py prettyprint-override"><code>dfinal = df.merge(df1, left_on=&quot;Age&quot;,right_on='Age', how = 'left') </code></pre> <pre><code>print(dfinal) Name Age Named 0 Tom 20.0 Raj 1 Joseph 21.0 kir 2 Krish NaN NaN 3 John 18.0 cena 4 rack 2...
How to add column values of another df to present df based on the column value?
python|pandas|dataframe|merge
0
41
2
72,176,866
72,176,866
0
true
2022-05-09T18:44:35.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add column values of another df to present df based on the column value?<p>I have two data frames.</p> <pre class="lang-py prettyprint-override"><code...
72,145,670
Roblox Item is lagging<p>I add a mesh to follow the player where ever he goes. But the mesh is lagging a bit when the player runs. I understand that it is not rendering quickly enough, but anyone know how to add a mesh without it lagging?</p> <pre><code>local humanoidRootPart = character:WaitForChild('HumanoidRootPart'...
<p>Ok, for others struggling with having a pet(mesh) follow you smoothly and always stay on your back. I have now spent several hours on this subject and finally got it to work. This is how you do it:</p> <pre><code>local character = player.Character local humanoidRootPart = character:WaitForChild('HumanoidRootPart') ...
Roblox Item is lagging
lua|roblox
0
39
2
72,176,903
72,176,903
0
true
2022-05-06T18:00:32.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Roblox Item is lagging<p>I add a mesh to follow the player where ever he goes. But the mesh is lagging a bit when the player runs. I understand that it is no...
72,176,844
Some questions about Docker Hub<p>I am fairly new to using Docker and I went to Docker Hub to select a base image, but I have some questions. In particular, I want to use a non-alpine amazoncorretto:latest, and am wondering:</p> <ul> <li><p>If I use &quot;amazoncorretto:latest&quot; in a Dockerfile, e.g.:</p> <p>FROM ...
<p>This isn't really a Docker question: how would you normally tell what version of Correto you're using? It looks as if <code>java -version</code> provides this information, so you can just run that command in a container:</p> <pre><code>$ docker run --rm docker.io/amazoncorretto:latest java -version openjdk version &...
Some questions about Docker Hub
docker|dockerhub
0
82
1
72,176,933
72,176,933
0
true
2022-05-09T18:46:20.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Some questions about Docker Hub<p>I am fairly new to using Docker and I went to Docker Hub to select a base image, but I have some questions. In particular,...
72,176,779
How to return objects of different types from RcppArmadillo function<p>l would like to return objects of different types from the function <code>RcppArmadillo</code>.</p> <p>For example, below is a code where I've tried returning both a vector and function using <code>std::tuple</code>.</p> <pre><code>#include &lt;Rcpp...
<p>I'm not sure what you mean by &quot;tried unsuccessfully&quot; to use <code>List::create</code>. Does the following work for you?</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;RcppArmadillo.h&gt; // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::export]] Rcpp::List test_tuple(arma::vec avec, arma::...
How to return objects of different types from RcppArmadillo function
c++|r|rcpp|rcpparmadillo
0
55
1
72,176,955
72,176,955
0
true
2022-05-09T18:39:16.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to return objects of different types from RcppArmadillo function<p>l would like to return objects of different types from the function <code>RcppArmadill...
72,175,105
Can we suppress nested type object in ES on query time<p>abcInfo column is of type = nested and is indexed in ES.</p> <pre><code>abcInfo = [ { &quot;number&quot;: &quot;1&quot;, &quot;status&quot;: &quot;Yes&quot; }, { &quot;number&quot;: &quot;2&quot;, &quot;status&quot;:...
<p>Index your content as nested and non-nested in two fields. You cannot control the behavior of a nested object in runtime.</p>
Can we suppress nested type object in ES on query time
elasticsearch|nested-lists|elasticsearch-dsl
0
22
1
72,176,965
72,176,965
0
true
2022-05-09T16:14:02.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can we suppress nested type object in ES on query time<p>abcInfo column is of type = nested and is indexed in ES.</p> <pre><code>abcInfo = [ { &...
72,175,690
In Django how to retrieve substring till ocurrence of a dot, from a model, to show in a template<p>I have the following model:</p> <pre><code>class News(models.Model): news_text = models.TextField(null=True) ... # other fields </code></pre> <p>with the following view:</p> <pre><code>def news(r): news= News....
<p>Django has a limited set of <a href="https://docs.djangoproject.com/en/4.0/ref/templates/builtins/" rel="nofollow noreferrer">builtin template filters</a> and there is no <code>split</code> filter.</p> <p>Also in Django templates you can access object's attributes or methods like <code>{{my_dict.keys}}</code>, but y...
In Django how to retrieve substring till ocurrence of a dot, from a model, to show in a template
python|django|split|model
0
53
1
72,177,001
72,177,001
0
true
2022-05-09T16:59:39.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In Django how to retrieve substring till ocurrence of a dot, from a model, to show in a template<p>I have the following model:</p> <pre><code>class News(mode...
72,175,941
React Native Root Element, deciding on async call<p>I'm currently writing an App in React-Native, which also includes a login. I use AsyncStorage for saving the credentials. Now I want to show the user different Screens (Navigators) whether he is logged in or not. To check if he is logged in, I check if there are crede...
<p>Give this a try</p> <pre><code>import { ActivityIndicator } from &quot;react-native&quot;; const RootElement = () =&gt; { const [loggedIn, setLoggedIn] = useState(false); const [loading, setLoading] = useState(true); useEffect(() =&gt; { (async () =&gt; { try { const data = await getLoginS...
React Native Root Element, deciding on async call
react-native
0
59
1
72,177,015
72,177,015
0
true
2022-05-09T17:21:47.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Native Root Element, deciding on async call<p>I'm currently writing an App in React-Native, which also includes a login. I use AsyncStorage for saving ...
72,176,535
Layout trouble in React Native<p>I'm having a terrible time with layout in one spot. I'd like the View with the buttons to get a consistent amount of space, and then the rest of the space goes to the box with ingredient names on the left.</p> <p>Here's a screenshot, using Expo Go on iPhone.</p> <p><a href="https://i.st...
<p>I found my issue - I needed to apply the nameView style to the TouchableOpacity also. That gets the text to wrap, although now the rows are too short.</p>
Layout trouble in React Native
react-native|expo
0
42
2
72,177,037
72,177,037
0
true
2022-05-09T18:17:29.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Layout trouble in React Native<p>I'm having a terrible time with layout in one spot. I'd like the View with the buttons to get a consistent amount of space, ...
72,176,802
Why doesn't the width of the frame show once ran?<p>I specified a width for a frame, then I grid a button in it asking for it to be the widest it can using</p> <pre class="lang-py prettyprint-override"><code>from tkinter import * root = Tk() frame = Frame(root, width=100, height=100, background=&quot;#ffffff&quot;) fra...
<p>This is what the commentors were telling you to do. Tell your frame not to propagate to grid.</p> <pre><code>from tkinter import * root = Tk() frame = Frame(root, width=500, height=500, background=&quot;red&quot;) frame.pack() frame.grid_propagate(0) # this fixes the frame issue you are having btn = Button(frame, t...
Why doesn't the width of the frame show once ran?
python|tkinter
0
37
2
72,177,047
72,177,047
0
true
2022-05-09T18:41:12.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why doesn't the width of the frame show once ran?<p>I specified a width for a frame, then I grid a button in it asking for it to be the widest it can using</...
72,170,990
Handling specific personalised exceptions / conditions ( FastAPI , Pydantic Models , Prediction Model deployment )<p>I'm using <strong>Pydantic models</strong> for data validation with <strong>FastAPI</strong> to deploy a <strong>Machine Learning model for predictions</strong>, so I want to handle the following excepti...
<p>You can do this by decoding the submitted JSON and handling the list yourself. You can then catch the <code>ValidationError</code> raise by Pydantic when there's a mismatch between expected and submitted data types.</p> <pre class="lang-py prettyprint-override"><code>from fastapi import FastAPI, Request from pydanti...
Handling specific personalised exceptions / conditions ( FastAPI , Pydantic Models , Prediction Model deployment )
python|validation|exception|fastapi|pydantic
0
210
1
72,177,115
72,177,115
0
true
2022-05-09T11:08:05.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Handling specific personalised exceptions / conditions ( FastAPI , Pydantic Models , Prediction Model deployment )<p>I'm using <strong>Pydantic models</stron...
72,172,047
Azure App Configuration Tags not showing up in Cost Analysis<p>We have an Azure App Configuration deployed in our subscription and we have put 2 tags to every resource ('costType' and 'environment'). All resources are tagged and appearing when we pull the Cost Analysis report by Tags except the App Configuration. They ...
<p>The billing support for resource tags is not available at this point. Please feel free to open an issue in the GitHub repo (<a href="https://github.com/Azure/AppConfiguration/issues" rel="nofollow noreferrer">https://github.com/Azure/AppConfiguration/issues</a>) of Azure App Configuration so you can get updated when...
Azure App Configuration Tags not showing up in Cost Analysis
azure|cost-management|azure-app-configuration
0
57
1
72,177,197
72,177,197
0
true
2022-05-09T12:29:24.270Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure App Configuration Tags not showing up in Cost Analysis<p>We have an Azure App Configuration deployed in our subscription and we have put 2 tags to ever...
72,148,885
Checking for Whether Both Expression Strings Contain the Variable<p>I had made a fully functioning method that would grab a variable string like <em>x</em> or <em>var</em> for the equation as so:</p> <pre class="lang-java prettyprint-override"><code>// Equation Variable Getter public String getVar(){ String...
<p>First, I need to thank the people that have assisted with finding the solution to this problem. Apparently, there was, in fact, an issue with the getVar() method getting double variables from equation strings with multiple instances of the variable.</p> <p>What I did to resolve the issue was to overload the getVar()...
Checking for Whether Both Expression Strings Contain the Variable
java|string|if-statement|contains|boolean-expression
0
49
1
72,177,249
72,177,249
0
true
2022-05-07T01:54:21.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Checking for Whether Both Expression Strings Contain the Variable<p>I had made a fully functioning method that would grab a variable string like <em>x</em> o...
72,177,076
Retrieve specific values in a Realtime Database - Firebase<p>My aim is to be able to retrieve certain values from a realtime database on firebase via javascript. I have everything configured and it works perfectly,but I don't know how to retrieve the individual fields when I click a simple button.</p> <p><a href="https...
<p>you can try using this example I always implement, note my main file is users, then my key value as id is userId then I have the attributes username and useremail. Try this:</p> <pre><code>I want to obtain a name: const dbRef=ref(db, 'users/'+userId); onValue(dbRef, (snapshot)=&gt;{ const data=snapshot; for(let...
Retrieve specific values in a Realtime Database - Firebase
javascript|firebase
0
30
1
72,177,299
72,177,299
0
true
2022-05-09T19:07:16.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Retrieve specific values in a Realtime Database - Firebase<p>My aim is to be able to retrieve certain values from a realtime database on firebase via javascr...
72,177,665
Reshaping dataframes in pandas<p>I have the following dataframe for my experiment result : <a href="https://i.stack.imgur.com/WuOAH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WuOAH.png" alt="enter image description here" /></a></p> <p>How can I reshape it to look like this table :</p> <p><a href...
<p>Based on the data you've provided you should be able to use <code>.unstack()</code> to do this:</p> <pre class="lang-py prettyprint-override"><code>print(df['counts'].unstack(level=['Model_1', 'Winloss'])) </code></pre>
Reshaping dataframes in pandas
python|pandas|dataframe
0
141
1
72,177,795
72,177,795
0
true
2022-05-09T20:06:32.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reshaping dataframes in pandas<p>I have the following dataframe for my experiment result : <a href="https://i.stack.imgur.com/WuOAH.png" rel="nofollow norefe...
72,174,037
PySpark write to Trino with JDBC connector<p>I am trying to read data from a table in Trino using a JDBC connector with PySpark, however, I keep getting the error <code>&quot;Unknown type 'TEXT' for column X&quot;</code> whenever I try to write a string / VARCHAR column. It works fine with double, for example.</p> <p>T...
<p>Add this option to your write:</p> <pre><code>.option(&quot;createTableColumnTypes&quot;, &quot;brandname VARCHAR(200)&quot;) </code></pre> <p>The start of the Rabbit hole that leads to this being the likely answer: <a href="https://stackoverflow.com/q/47636867/11865956">here</a> and <a href="https://spark.apache.or...
PySpark write to Trino with JDBC connector
python|apache-spark|jdbc|pyspark|trino
0
415
1
72,177,800
72,177,800
0
true
2022-05-09T14:56:35.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PySpark write to Trino with JDBC connector<p>I am trying to read data from a table in Trino using a JDBC connector with PySpark, however, I keep getting the ...
72,176,758
SQL Query to return last week's data<p>I am trying to run a sql query that will return last week's data to the date. For example, today is Monday. I want to return last Monday's data only. The prior week to the day. What I am doing is getting last week's ARAging Snapshot for my company. (What the data was last Monday, ...
<p>It might be that your <code>ReportRunDate</code> is a datetime rather than a datew. So, with times included, comparing to just the date will only shows records run at midnight.</p> <p>Try casting both side of the comparison to <code>Date</code> datatypes, this will remove the time portion and give you the matches yo...
SQL Query to return last week's data
sql|ssis|ssrs-2008
0
34
1
72,177,882
72,177,882
0
true
2022-05-09T18:37:02.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Query to return last week's data<p>I am trying to run a sql query that will return last week's data to the date. For example, today is Monday. I want to ...
72,177,433
Antlr4 tree parser I have problems with numbers like (9-34)*9<p>I have created a tree with antlr4.The tree performs the calculation steps, for +, -., * and /. The tree works perfectly for positive numbers, my problem is, for negative numbers, like when I enter (9-40)*10 or so, it doesn't work anymore.</p> <p>My code is...
<p>(please be careful to verify your source before your post. The grammar, as posted, is not valid ANTLR. Probably because you changed rule names to <code>a</code>, <code>b</code>, etc. and forgot to keep Lexer rules uppercase.)</p> <p>If I assume to be the case, here's a modified grammar to address your problem.</p>...
Antlr4 tree parser I have problems with numbers like (9-34)*9
regex|antlr4
0
47
1
72,177,978
72,177,978
0
true
2022-05-09T19:43:06.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Antlr4 tree parser I have problems with numbers like (9-34)*9<p>I have created a tree with antlr4.The tree performs the calculation steps, for +, -., * and /...
72,177,777
SSRS multiple iif statements rounds instead of keeping 2 decimal calculation<p>I have the following statement in a calculated field that will only return whole numbers instead of a 2 decimal dollar amount. If I only use one of the 3 iif conditions it works fine but as soon as I add the second or all 3 it will not retur...
<p>You can't write and <code>IIF</code> like that, you would need to nest you <code>IIF</code>s which would get a bit messy.</p> <p>You might find it easier to use a <code>SWITCH</code> statement which is a bit easier to read.</p> <p>I might not have understood your logic properly but it should be close enough. Note th...
SSRS multiple iif statements rounds instead of keeping 2 decimal calculation
reporting-services
0
16
1
72,177,999
72,177,999
0
true
2022-05-09T20:18:13.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SSRS multiple iif statements rounds instead of keeping 2 decimal calculation<p>I have the following statement in a calculated field that will only return who...
72,178,018
Python reverse dictionary lookup in list comprehension<p>I have the following dictionary:</p> <pre><code>d = {} d[1] = 'a' d[2] = 'b' d[3] = 'c' d[4] = 'd' </code></pre> <p>I'd like to perform a reverse dictionary lookup for each character in a string:</p> <pre><code>input_string = &quot;bad&quot; </code></pre> <p>I ge...
<p>In order to mimic the traditional loop, the outer loop should be over <code>input_string</code> and the inner loop should be over <code>d</code> in the list comprehension:</p> <pre class="lang-py prettyprint-override"><code>out = [k for i in input_string for k,v in d.items() if i==v] </code></pre> <p>Output:</p> <pr...
Python reverse dictionary lookup in list comprehension
python-3.x|dictionary
0
116
1
72,178,044
72,178,044
0
true
2022-05-09T20:43:17.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python reverse dictionary lookup in list comprehension<p>I have the following dictionary:</p> <pre><code>d = {} d[1] = 'a' d[2] = 'b' d[3] = 'c' d[4] = 'd' <...
72,177,899
Assigning flags in imap_tools<p>I am using imap_tools and I am getting errors saying <code>NameError: name 'imap_tools' is not defined</code>. I thought it was maybe the way I imported it, but I have copied it directly from their repo and it isn't working. Has anyone come across this?</p> <pre><code>from imap_tools imp...
<p>You have imported two parts of imap_tools, specifically MailBox &amp; AND functions, so you can use these in your workspace, however you've not actually imported the imap_tools module itself. If you add <code>import imap_tools</code> at the top of your script you should be able to access the rest of the module.</p> ...
Assigning flags in imap_tools
python|imap-tools
0
91
1
72,178,072
72,178,072
0
true
2022-05-09T20:30:10.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Assigning flags in imap_tools<p>I am using imap_tools and I am getting errors saying <code>NameError: name 'imap_tools' is not defined</code>. I thought it w...
72,176,019
Converting 1-minute market data into 5-minute data<p>This is the data frame I have:</p> <p><img src="https://i.stack.imgur.com/Bsetl.png" alt="1" /></p> <p>This is how I need it to be:</p> <p><img src="https://i.stack.imgur.com/WyFkR.png" alt="2" /></p> <p>This is what <code>.groupby(pd.Grouper(freq='5min')).agg({&quot...
<p>I'm not sure I completely understand your issue, but why dont you change the index timestamp after your grouper operation ? Something like</p> <pre><code>tmp.index=tmp.index.floor(freq='5min')+pd.Timedelta(minutes=5) </code></pre> <p>So you make sure to floor your existing timestamp to the nearest 5 minutes of the b...
Converting 1-minute market data into 5-minute data
python|pandas|yfinance
0
261
1
72,178,155
72,178,155
0
true
2022-05-09T17:28:58.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Converting 1-minute market data into 5-minute data<p>This is the data frame I have:</p> <p><img src="https://i.stack.imgur.com/Bsetl.png" alt="1" /></p> <p>T...
72,178,110
i want to show all images in homepage , when i click in home button it automatically goes to another page<pre><code>const Home = () =&gt; { const navigate = useNavigate(); navigate(`/inventory`); return ( &lt;div&gt; &lt;Banner&gt;&lt;/Banner&gt; &lt;InventoryItems&gt;&lt;/...
<p>You have <code>navigate(&quot;/inventory&quot;);</code> in the function body of your code. That is why your code goes to another page on load. To fix this, simply remove that line.</p>
i want to show all images in homepage , when i click in home button it automatically goes to another page
reactjs
0
40
1
72,178,210
72,178,210
0
true
2022-05-09T20:53:54.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: i want to show all images in homepage , when i click in home button it automatically goes to another page<pre><code>const Home = () =&gt; { const navig...
72,177,869
Adding words in bold to table using python-docx<p>I'm new here (and to python) so any feedback on my post is welcome.</p> <p>I have some code which asks for an input and then adds it to an entry in various tables.</p> <p>e.g</p> <pre><code>import docx doc = docx.Document('ABC.docx') length = len(doc.tables) name = inp...
<p>Not sure this is the perfect way to do this, but it works. Basically you store the current cell text in a variable then clear the cell. After that, get the first <code>paragraph</code> of the cell and add formatted <code>runs</code> of text to it, as follows:</p> <pre class="lang-python prettyprint-override"><code>i...
Adding words in bold to table using python-docx
python-docx
0
99
1
72,178,240
72,178,240
0
true
2022-05-09T20:26:39.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding words in bold to table using python-docx<p>I'm new here (and to python) so any feedback on my post is welcome.</p> <p>I have some code which asks for ...
72,178,175
Excel VBA attaching emails within an email<p>I am working on a project where I need to &quot;draft&quot; 5 emails, attach them to another email, and then send this nested email to a coworker.</p> <p>My issue is that the 5 attached emails do not show a subject line. I wrote a little tester where the subject lines are al...
<p>You need to save the message being added as an attachment before it is attached:</p> <pre><code>EmailSub.Save EmailMain.Attachments.Add EmailSub </code></pre>
Excel VBA attaching emails within an email
excel|vba|outlook
0
28
1
72,178,274
72,178,274
0
true
2022-05-09T20:59:53.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel VBA attaching emails within an email<p>I am working on a project where I need to &quot;draft&quot; 5 emails, attach them to another email, and then sen...
72,175,735
buddypress pass an argument in a button<p>I use wordpress with the buddypress plugin. I am making a plugin in which I have a button.</p> <pre><code>function bpbc_add_custom_buttons() { global $bp; $new_contact_button_args = array( 'id' =&gt; 'bpbc_new_contact', 'component' ...
<p>Try:</p> <pre><code>function contacts_screen_content() { if ( isset( $_GET['id'] ) ) { echo 'id: ' . $_GET['id']; } } </code></pre>
buddypress pass an argument in a button
wordpress|buddypress
0
19
1
72,178,599
72,178,599
0
true
2022-05-09T17:03:27.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: buddypress pass an argument in a button<p>I use wordpress with the buddypress plugin. I am making a plugin in which I have a button.</p> <pre><code>function ...
72,178,366
Using Variables Passing Into MSSQL Stored Proc as part of queries<p>I want to use the value from variables that is passed into the stored proc. Is that allow?</p> <p>For example, I want to pass CID=5,SID=4 Into an Update Stored Proc</p> <p>and it looks like this:</p> <pre><code>CREATE PROCEDURE Update @CID nvarchar(4),...
<p>You must use dynamic SQL. To do it safely, ensure the created object name is properly delimited using the <a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/quotename-transact-sql?msclkid=cd5d41d4cfe511ec95c80eb8f5278178&amp;view=sql-server-ver15" rel="nofollow noreferrer">quotename</a> function.</p> <p>...
Using Variables Passing Into MSSQL Stored Proc as part of queries
sql|sql-server|stored-procedures
0
26
1
72,178,755
72,178,755
0
true
2022-05-09T21:25:51.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Variables Passing Into MSSQL Stored Proc as part of queries<p>I want to use the value from variables that is passed into the stored proc. Is that allow...
72,175,828
Weirdly slow Mysql Query on OR<p>I have the following query that takes 3 seconds</p> <pre><code>SELECT SQL_NO_CACHE e.Id FROM `Email` e LEFT JOIN basedb.emailconnections ec ON ec.id = e.EmailConnectionId LEFT JOIN historydb.`event` ev ON ev.EmailId = e.Id Where e.UserId = 228 OR ev.Partner...
<ul> <li><p><code>AND</code> is usually faster than <code>OR</code>.</p> </li> <li><p>The tests for one table will be used first, then it will &quot;join&quot; to the other table and filter by it. This limits the efficiency of a <code>JOIN</code> and <code>WHERE</code>.</p> </li> <li><p>Check this;</p> <pre><code>Wher...
Weirdly slow Mysql Query on OR
mysql|sql|performance
0
52
1
72,178,784
72,178,784
0
true
2022-05-09T17:11:30.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Weirdly slow Mysql Query on OR<p>I have the following query that takes 3 seconds</p> <pre><code>SELECT SQL_NO_CACHE e.Id FROM `Email` e LEFT JOIN ...
72,178,675
MS SQL - Trying to use FOR JSON to output with square brackets for each value<p>I am using MSSQL to try to get a JSON output in a specific format, with square brackets around individual values. Here is part of the query:</p> <pre><code>SELECT DISTINCT (SELECT Email_Address AS fieldValues FROM table1 FOR ...
<p>Serializing of JSON arrays in SQL server is a little bit cumbersome and requires things like using <a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/json-query-transact-sql" rel="nofollow noreferrer">JSON_QUERY()</a> over <a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/string-agg-transact-s...
MS SQL - Trying to use FOR JSON to output with square brackets for each value
sql|arrays|json|sql-server
0
27
1
72,178,934
72,178,934
0
true
2022-05-09T22:06:47.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MS SQL - Trying to use FOR JSON to output with square brackets for each value<p>I am using MSSQL to try to get a JSON output in a specific format, with squar...
72,148,629
unable to run docker within docker<p>I am using gitlab and need to build a docker image within the container image. Every-time I am trying to do that I am getting error : <code>Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</code></p> <p>Below is my dockerfile which is...
<p>Found the solution to my problem. Solution was to define DOCKER_HOST variable for my gitlab pipeline and the configuration looked like this</p> <pre><code> image: docker:latest services: - name: docker:dind entrypoint: [&quot;env&quot;, &quot;-u&quot;, &quot;DOCKER_HOST&quot;] command: [&quot;dock...
unable to run docker within docker
docker
0
162
2
72,178,983
72,178,983
0
true
2022-05-07T00:45:41.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: unable to run docker within docker<p>I am using gitlab and need to build a docker image within the container image. Every-time I am trying to do that I am ge...