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,232,340 | Passing Angular component to another one<p>I know this has been asked before but I don't understand those answer to be honest. I want to make something simple:</p>
<p>Basically I have this:</p>
<pre><code><div class="carousel">
<ul class="carousel__track">
<li ngFor="let s... | <p>Yes you can</p>
<pre><code><li *ngFor="let slide of slides" class="carousel__slide">
<!-- Rename inputName by the actual input name you want-->
<app-slideHtml [inputName]="slide.someData"></app-slideHtml>
</li>
</code></pre>
<p>Where <code>inputName... | Passing Angular component to another one | javascript|html|angular|typescript | 0 | 54 | 1 | 72,232,670 | 72,232,670 | 1 | true | 2022-05-13T15:55:31.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Passing Angular component to another one<p>I know this has been asked before but I don't understand those answer to be honest. I want to make something simpl... |
72,232,345 | How to extract ROS parameters from bag file and save them in xlsx format?<p>I have record a ROS bag file. But when I play it one terminal with</p>
<blockquote>
<p>rosbag play my_file.bag</p>
</blockquote>
<p>and in the another terminal I do</p>
<blockquote>
<p>rosparam list</p>
</blockquote>
<p>its only shows these</p>... | <p>This is because you never actually recorded params and your bag file doesn’t contain them. <code>rosbag record</code> only records topic data and not things stored on the param sever. There isn’t currently a standard way to roll param recording into a bag file. If you want that done you’ll have to write code to do i... | How to extract ROS parameters from bag file and save them in xlsx format? | parameters|extract|ros|bag | 0 | 169 | 1 | 72,232,676 | 72,232,676 | 1 | true | 2022-05-13T15:55:49.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to extract ROS parameters from bag file and save them in xlsx format?<p>I have record a ROS bag file. But when I play it one terminal with</p>
<blockquot... |
72,232,130 | avoid scrolling when interacting with canvas on mobile<p>I'm trying to allow drawing using touch on the HTML canvas, but it scrolls the window when I try to draw. I've tried using preventDefault() on the event functions, but I get the error: Unable to preventDefault inside passive event listener invocation.</p>
<p>My c... | <p>You may try without <code>touch</code> actions, here is a refactor of <code>canvas</code> code using <code>pointer</code> events and a style rule for disabling <code>touch</code> actions:</p>
<pre><code><canvas
onPointerDown={drawStart}
onPointerUp={drawEnd}
onPointerMove={draw}
ref={canvasRef}
style={{... | avoid scrolling when interacting with canvas on mobile | javascript|reactjs|canvas|html5-canvas | 0 | 40 | 1 | 72,232,682 | 72,232,682 | 1 | true | 2022-05-13T15:36:50.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
avoid scrolling when interacting with canvas on mobile<p>I'm trying to allow drawing using touch on the HTML canvas, but it scrolls the window when I try to ... |
72,214,443 | Get notebook outline in sagemaker studio like in Visual Studio Code<p>When I use visual studio code with jupyter notebook, I have an "outline" tab in the left panels that display the Markdown section of my notebook for quick access.</p>
<p>But in Sagemaker studio I don't have this and I would like to add it.<... | <p>The 'Outline' tab (Table of Contents extension in Jupyter) is not available for Studio yet.</p>
<p><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/nbi.html" rel="nofollow noreferrer">SageMaker notebook instances</a> come with the extension prebuilt.</p> | Get notebook outline in sagemaker studio like in Visual Studio Code | python|jupyter-notebook|jupyter-lab|amazon-sagemaker | 0 | 164 | 1 | 72,232,763 | 72,232,763 | 1 | true | 2022-05-12T11:06:44.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get notebook outline in sagemaker studio like in Visual Studio Code<p>When I use visual studio code with jupyter notebook, I have an "outline" tab ... |
72,201,381 | PostgreSQL C function to get values<p>I am trying to write a PostgreSQL function in C.</p>
<p>My goal is finding minimum value of a list. So, my function will be executed like these:</p>
<pre><code>SELECT min_to_max(val) FROM (VALUES(1),(2),(3)) x(val);
SELECT min_to_max(val) FROM my_table;
</code></pre>
<p>Here is my ... | <p>With the help of @Laurenz Albe(thanks to him again), I found the solution. Also, I checked out:</p>
<ol>
<li><a href="https://hoverbear.org/blog/postgresql-aggregates-with-rust/" rel="nofollow noreferrer">https://hoverbear.org/blog/postgresql-aggregates-with-rust/</a></li>
<li><a href="https://hashrocket.com/blog/po... | PostgreSQL C function to get values | c|postgresql|postgresql-extensions | 0 | 52 | 2 | 72,232,768 | 72,232,768 | 1 | true | 2022-05-11T12:50:20.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PostgreSQL C function to get values<p>I am trying to write a PostgreSQL function in C.</p>
<p>My goal is finding minimum value of a list. So, my function wil... |
72,231,979 | How to get navigation properties with [Owned] attribute Tracked in Entity Framework Core<p>I got EF tracking turned off by default on my project.</p>
<p>I got a DB model class UserModel:</p>
<pre><code>public class UserModel : BaseAdminDbModel
{
[Key]
public int UserId { get; set; }
[NotMap... | <p>After some time I came up to solve this issue. Drakk L solution is good if you have tracking turned on by default and want to rely on real objects.</p>
<p>I wanted more abstract way to achieve this:</p>
<pre><code>var navigationOwnedProps = _dbContext
.Entry(model)
.Navigations
... | How to get navigation properties with [Owned] attribute Tracked in Entity Framework Core | c#|entity-framework-core | 0 | 107 | 2 | 72,232,790 | 72,232,790 | 1 | true | 2022-05-13T15:24:41.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get navigation properties with [Owned] attribute Tracked in Entity Framework Core<p>I got EF tracking turned off by default on my project.</p>
<p>I go... |
72,232,593 | Generate array with values A1, A2, A3, B1, B2, B3... etc?<p>I'm trying to generate an array of objects where it outputs an array looking like this:</p>
<pre><code>[
{
_id: 2,
label: 'A1'
},
{
_id: 3,
label: 'A2'
},
{
_id: 4,
label: 'A3'
},
{
_id: 5,
... | <p>You appear to start the <code>_id</code> from 2, but I've assumed this is a typo. If not, then just <code>i+2</code> instead of <code>i+1</code> on line 8.</p>
<p>You also have different property names between what you say you want, and what your code is attempting to produce. This matches what you said you wanted... | Generate array with values A1, A2, A3, B1, B2, B3... etc? | javascript|ecmascript-6 | 0 | 118 | 3 | 72,232,827 | 72,232,827 | 1 | true | 2022-05-13T16:16:24.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Generate array with values A1, A2, A3, B1, B2, B3... etc?<p>I'm trying to generate an array of objects where it outputs an array looking like this:</p>
<pre>... |
72,232,430 | Netlogo plot of breeds-own variable of multiple turtles<p>I'm busy trying to plot the number of children (turtle breed 1) treated by an organisation (turtle breed 2). The organisations have a turtles-own variable called <code>children-treated</code> where all the children are stored which are being treated.</p>
<p>In t... | <p>As you can see <a href="https://ccl.northwestern.edu/netlogo/docs/dictionary.html#plot" rel="nofollow noreferrer">here</a>, the syntax for <code>plot</code> is <strong>plot <em>number</em></strong>, without square brackets (that in NetLogo identify a list or a block of commands). Your <code>length children-treated</... | Netlogo plot of breeds-own variable of multiple turtles | plot|netlogo | 0 | 40 | 1 | 72,232,832 | 72,232,832 | 1 | true | 2022-05-13T16:02:36.617Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Netlogo plot of breeds-own variable of multiple turtles<p>I'm busy trying to plot the number of children (turtle breed 1) treated by an organisation (turtle ... |
72,210,869 | How to add #[payload] as value in the query params Mule 3<p>Unfortunately I haven't been able to solve it yet. I'd really appreciate it if someone could look into it. thanks everyone</p>
<p>I run into an issue with Mule 3 is that the payload is not recognized within the query params inside the HTTP request connector se... | <p>You can add query Param like this. It will resolve the value of the payload and will not send the literal "#[payload] in the query param</p>
<pre class="lang-xml prettyprint-override"><code><http:request config-ref="HTTP_Request_Configuration" path="/request/change/serviceRequest" method=... | How to add #[payload] as value in the query params Mule 3 | mule|esb|mulesoft|mule-esb | 0 | 158 | 1 | 72,232,867 | 72,232,867 | 1 | true | 2022-05-12T06:16:38.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add #[payload] as value in the query params Mule 3<p>Unfortunately I haven't been able to solve it yet. I'd really appreciate it if someone could look... |
72,230,435 | Use a derived mapping function to modify s?<p>I've read this entire paper multiple times, and I've found a way to make everything in python... Except this (Article II, section C). They want me to upscale the saturation values with a new min of 2.589 times the old min, and a new max of 0.9 times the old max. How do i ac... | <p>In Python/OpenCV/Numpy/Skimage, you can use np.amin() and np.amax() to get the min and max values in the image. Then compute the new min and max from your " 2.589 times the old min, and a new max of 0.9 times the old max" in Python simple math. Then use skimage.exposure.rescale_intensity() to do the proces... | Use a derived mapping function to modify s? | python|opencv|image-processing | 0 | 38 | 1 | 72,232,925 | 72,232,925 | 1 | true | 2022-05-13T13:34:40.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use a derived mapping function to modify s?<p>I've read this entire paper multiple times, and I've found a way to make everything in python... Except this (A... |
72,231,061 | remove a check on a duplication of the tarif<p>I would like to know if it is possible via code to remove this control?</p>
<p><a href="https://i.stack.imgur.com/moIBp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/moIBp.png" alt="enter image description here" /></a></p> | <p>This validation is executed in <code>CheckForDuplicateDetails</code> method.
You can override the method.
Make sure there is no bad side effects down the line if you remove this validation.</p>
<pre><code>namespace PX.Objects.AP
{
public class APPriceWorksheetMaint_Extension : PXGraphExtension<APPriceWorksheetM... | remove a check on a duplication of the tarif | acumatica | 0 | 27 | 1 | 72,232,955 | 72,232,955 | 1 | true | 2022-05-13T14:17:31.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
remove a check on a duplication of the tarif<p>I would like to know if it is possible via code to remove this control?</p>
<p><a href="https://i.stack.imgur.... |
72,232,570 | How to convert object notation to a string<p>Let's say we have an object</p>
<pre><code>export const hello = {
a: 1,
b: 2
}
</code></pre>
<p>and we import it and have a function</p>
<pre><code>import { hello } from ...
function printVarName(x) {
...
}
printVarName(hello.b)
</code></pre>
<p>How can we convert hello... | <p>This is impossible. See the answer to: <a href="https://stackoverflow.com/questions/3404057/determine-original-name-of-variable-after-its-passed-to-a-function">Determine original name of variable after its passed to a function</a></p>
<p>There's no way to know what the original name of a variable is after its value ... | How to convert object notation to a string | javascript | 0 | 45 | 1 | 72,233,228 | 72,233,228 | 1 | true | 2022-05-13T16:14:51.663Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to convert object notation to a string<p>Let's say we have an object</p>
<pre><code>export const hello = {
a: 1,
b: 2
}
</code></pre>
<p>and we import ... |
72,233,125 | Exploding multiple dict columns and concatenating with original Pandas data frame<p>I export a Postgres SQL query to create a Pandas data frame <code>df</code> similar to the following:</p>
<pre><code>df = pd.DataFrame({
'employee_id' : [123, 456, 789],
'country_code' : ['US', 'CAN', 'MEX'],
'sales' : [{'fo... | <p>You may use <a href="https://pandas.pydata.org/docs/reference/api/pandas.concat.html" rel="nofollow noreferrer"><code>concat</code></a> along axis=1 with <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html" rel="nofollow noreferrer"><code>json_normalize</code></a>:</p>
<pre... | Exploding multiple dict columns and concatenating with original Pandas data frame | pandas | 0 | 28 | 2 | 72,233,271 | 72,233,271 | 1 | true | 2022-05-13T17:04:10.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Exploding multiple dict columns and concatenating with original Pandas data frame<p>I export a Postgres SQL query to create a Pandas data frame <code>df</cod... |
72,233,262 | Gitlab CI: why do I get an error when I try to define the pages stage?<p>I'm trying to publish a create-react-app on Gitlab, using its CI.</p>
<p>This is my <code>.gitlab-ci.yml</code> file:</p>
<pre><code>stages:
- build
- pages
build:
image: node:16
stage: build
script:
- npm install
- npm build
... | <p>You need to change your stages.</p>
<p>You have:</p>
<pre class="lang-yaml prettyprint-override"><code>stages:
- build
- pages
</code></pre>
<p>but define:</p>
<pre class="lang-yaml prettyprint-override"><code>pages:
image: alpine:latest
stage: deploy
</code></pre>
<p>The stage needs to match:</p>
<pre class... | Gitlab CI: why do I get an error when I try to define the pages stage? | reactjs|gitlab|continuous-integration|gitlab-ci|create-react-app | 0 | 374 | 1 | 72,233,326 | 72,233,326 | 1 | true | 2022-05-13T17:15:49.077Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Gitlab CI: why do I get an error when I try to define the pages stage?<p>I'm trying to publish a create-react-app on Gitlab, using its CI.</p>
<p>This is my ... |
72,232,202 | Issue centering a QR square<p>I am writing an Android test app to see how to handle QR codes.
This is the code for the main activity (MainActivity.kt) and a question is following.</p>
<pre><code>package me.software.myTestApp
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.... | <p>The <em>ConstraintSet</em> doesn't know about the QR code view, so any attempts to constrain it will fail since it is unknown to the <em>ConstraintSet</em>. The <em>ConstraintSet</em> is populated with a call to <em>ConstraintSet#clone(ConstraintLayout)</em></p>
<p>Change the code to the following:</p>
<pre><code>co... | Issue centering a QR square | android|kotlin|android-layout|android-constraintlayout | 0 | 30 | 1 | 72,233,413 | 72,233,413 | 1 | true | 2022-05-13T15:43:03.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Issue centering a QR square<p>I am writing an Android test app to see how to handle QR codes.
This is the code for the main activity (MainActivity.kt) and a ... |
72,233,327 | Could you share with me information about [...] in Dart?<p>I've solved several solutions on Codewars and saw that one solution uses [...], I tried to google what it is, but google only finds how to create arrays (List a = [1, 2, 3]), how to get the second element, etc.</p>
<p>Solution: <code>List<int> reverseList... | <p>in Dart when we use the three dots (...) it means that we are unpacking one and taking its values and throwing it, so when we have</p>
<pre><code>List<int> reverseList(List<int> list)=>[...list.reversed]
</code></pre>
<p>means that we take the reverse <code>list</code>, unpack it and throw it in anoth... | Could you share with me information about [...] in Dart? | arrays|flutter|dart | 0 | 36 | 1 | 72,233,420 | 72,233,420 | 1 | true | 2022-05-13T17:20:05.993Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Could you share with me information about [...] in Dart?<p>I've solved several solutions on Codewars and saw that one solution uses [...], I tried to google ... |
72,179,079 | Multiply 2x2 Matrix in Python Recursively? No nested loops or numpy<p>I'm having a difficult time finding a very simple program that multiplies two 2x2 matrices recursively. Can anyone help me out? Just need to multiply <code>X</code> and <code>Y</code> without <code>numpy</code> or using nested loops.</p>
<pre><code>X... | <p>Here's the answer in the event anyone is ever looking for a recursive solution to multiplying two matrices that are 2x2... or 3x3, 4x4 whatever. You would just have to change your number of rows/columns and add additional for-loops. It's not the prettiest, but it works. Maybe someone out there can make it even bette... | Multiply 2x2 Matrix in Python Recursively? No nested loops or numpy | python|recursion|matrix|multiplication | 0 | 99 | 1 | 72,233,455 | 72,233,455 | 1 | true | 2022-05-09T23:08:05.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multiply 2x2 Matrix in Python Recursively? No nested loops or numpy<p>I'm having a difficult time finding a very simple program that multiplies two 2x2 matri... |
72,229,802 | Create reasoner does not work on Tomcat deployment<p><strong>Context:</strong> I am working on a Java Spring Boot web application that manipulates OWL and RDF data for various tasks (ontology loading, consistency checking, inconsistency explanations generations and querying thru SPARQL). I am using OWLAPI, HermiT, OWLE... | <p>The error stack trace refers to Guice issues, but Guice has been removed from OWLAPI 5.1.6 and newer.</p>
<p>Your pom shows OWLAPI 5.1.20, so this implies there are multiple OWLAPI versions in the Tomcat classpath for your deployed app.</p>
<p>Depending on your IDE, you might be able to see what versions of OWLAPI a... | Create reasoner does not work on Tomcat deployment | tomcat9|owl-api|hermit | 0 | 31 | 1 | 72,233,492 | 72,233,492 | 1 | true | 2022-05-13T12:42:44.160Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create reasoner does not work on Tomcat deployment<p><strong>Context:</strong> I am working on a Java Spring Boot web application that manipulates OWL and RD... |
72,220,957 | CSS Style Disappears on Form Button Click<p>I have a side panel menu that is styled how I want, along with a top nav bar. When I press the add button the form gets submitted but the style disappears on the side panel menu. See pictures and code:</p>
<p>Here is the style that I expect to see with the side bar.
<a href="... | <p>I've found my issue. First by putting the contents of my css into the head of associate.html the CSS was retained. So it had to do with the link to my css file. Here is what the line of code I had and what I replaced with.</p>
<p>old:</p>
<pre><code><link rel="stylesheet" type="text/css" href=... | CSS Style Disappears on Form Button Click | python|html|css|flask | 0 | 45 | 2 | 72,233,512 | 72,233,512 | 1 | true | 2022-05-12T19:10:25.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSS Style Disappears on Form Button Click<p>I have a side panel menu that is styled how I want, along with a top nav bar. When I press the add button the for... |
72,233,525 | Executing multiple commands with ssh, including evaluation of environment variables on the remote machine<p>I sometimes use ssh to run multiple commands on a remote host like this:</p>
<p><code>ssh my_user@my_host "command1; command2"</code></p>
<p>utilizing double quotes to send both commands to the remote m... | <p>Just escape the $ using \.</p>
<pre><code>ssh my_user@my_host "echo \$USER; echo \$HOSTNAME"
</code></pre> | Executing multiple commands with ssh, including evaluation of environment variables on the remote machine | bash|ssh|environment-variables|double-quotes|single-quotes | 0 | 225 | 3 | 72,233,576 | 72,233,576 | 1 | true | 2022-05-13T17:39:04.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Executing multiple commands with ssh, including evaluation of environment variables on the remote machine<p>I sometimes use ssh to run multiple commands on a... |
72,233,555 | Count number of rows that fulfill multiple conditions in R<p>I have a dataframe:</p>
<pre><code>df <- data.frame (ID = c(1:20),
Ethnicity = c(rep(c("White", "Asian", "Black", "Hispanic", "Other"), times=20/5)),
Age = c(1:20),
... | <p>Depends on what you're measure of efficiency is but</p>
<pre><code>sum(df$Ethnicity== 'Asian' & df$Set == 3)
</code></pre> | Count number of rows that fulfill multiple conditions in R | r|tidyverse|data-wrangling | 0 | 235 | 1 | 72,233,593 | 72,233,593 | 1 | true | 2022-05-13T17:42:44.307Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Count number of rows that fulfill multiple conditions in R<p>I have a dataframe:</p>
<pre><code>df <- data.frame (ID = c(1:20),
Ethnici... |
72,231,716 | z3py: How to convert a formula into NNF format?<p>I wanted to convert a formula to its NNF format using z3py. For e.g.,</p>
<p>Given</p>
<pre><code>Or(Not(And(i1, Not(And(i0, i4, i1, i2)))), And(i3, i1, i2))
</code></pre>
<p>I want</p>
<pre><code>Or(Not(i1), And(i0, i4, i1, i2), And(i3, i1, i2))
</code></pre>
<p>Thanks... | <p>You can use the <code>nnf</code> tactic, followed by <code>simplify</code>:</p>
<pre class="lang-py prettyprint-override"><code>from z3 import *
i0, i1, i2, i3, i4 = Bools("i0 i1 i2 i3 i4")
g = Goal()
g.add(Or(Not(And(i1, Not(And(i0, i4, i1, i2)))), And(i3, i1, i2)))
print(g)
t = Then(Tactic('nnf'), Tacti... | z3py: How to convert a formula into NNF format? | smt|z3py|negation | 0 | 38 | 1 | 72,233,646 | 72,233,646 | 1 | true | 2022-05-13T15:04:54.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
z3py: How to convert a formula into NNF format?<p>I wanted to convert a formula to its NNF format using z3py. For e.g.,</p>
<p>Given</p>
<pre><code>Or(Not(An... |
72,222,189 | Why I get Unknown column problem with CTE in MySQL<p>I am getting the next error with a select query. If I get rid off the update clause the error disappears:</p>
<pre><code>Error Code: 1054. Unknown column 'CTE.id' in 'where clause'
</code></pre>
<p>// SQL</p>
<pre><code>with CTE as (
select T1.id,T1.pvalor_re... | <p>Your update syntax is incorrect:</p>
<pre><code>with CTE as (
select id, pvalor_recebido
<cte sql not relevant>
)
update cl_tiss_sadt, cte
set cl_tiss_sadt.valor_recebido = CTE.pvalor_recebido
where cl_tiss_sadt.id = CTE.id
</code></pre>
<p>See <a href="https://www.db-fiddle.com/f/w5SWSnfCcoPLAWuowVzj5... | Why I get Unknown column problem with CTE in MySQL | mysql | 0 | 45 | 1 | 72,233,674 | 72,233,674 | 1 | true | 2022-05-12T21:22:51.393Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why I get Unknown column problem with CTE in MySQL<p>I am getting the next error with a select query. If I get rid off the update clause the error disappears... |
72,232,729 | Can the SuperTokens Core Api layer be scaled?<p>We are doing a POC with SuperTokens for authentication. We require Passwordless, Email/Password, and Social Login functionality. With that functionality required, is the SuperTokens Core Api layer scalable? If so, what is the recommended approach for scaling?</p> | <p>SuperTokens has two sets of APIs:</p>
<ul>
<li>Core driver interface (CDI): The API exposed via the SuperTokens Core microservice.</li>
<li>Frontend driver interface (FDI): The API exposed via our backend SDK.</li>
</ul>
<p>Your app's frontend only calls the FDI APIs and in turn, our backend SDK calls the CDI APIs. ... | Can the SuperTokens Core Api layer be scaled? | scaling | 0 | 85 | 1 | 72,233,697 | 72,233,697 | 1 | true | 2022-05-13T16:29:49.063Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can the SuperTokens Core Api layer be scaled?<p>We are doing a POC with SuperTokens for authentication. We require Passwordless, Email/Password, and Social ... |
72,233,659 | Concat rows based on condition<p>I'm working with a table that has values like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>123</td>
<td>Size</td>
<td>1</td>
</tr>
<tr>
<td>123</td>
<td>Size</td>
<td>2</td>
</tr>
<... | <p>You can use <a href="https://www.postgresql.org/docs/14/functions-aggregate.html" rel="nofollow noreferrer"><code>string_agg</code></a>:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT id, name, string_agg(value, ',')
FROM a
GROUP BY id, name
ORDER BY 1,2
</code></pre>
<p>Output:</p>
<div class="s-ta... | Concat rows based on condition | postgresql | 0 | 24 | 1 | 72,233,742 | 72,233,742 | 1 | true | 2022-05-13T17:52:05.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Concat rows based on condition<p>I'm working with a table that has values like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
... |
72,233,559 | How to add multiple array items as HTML content?<p>I need to extract some words from a string of text, insert every character of that words inside a span element and then replace the extracted words with the span elements. I have been able to convert characters into span elements but I can't figure out how to replace t... | <p>Here is one way to do it:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const ttl=document.querySelector("h1.title"),
txt=ttl.textContent;
function spanifyWords(beg... | How to add multiple array items as HTML content? | javascript|html|arrays | 0 | 29 | 1 | 72,233,851 | 72,233,851 | 1 | true | 2022-05-13T17:43:07.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add multiple array items as HTML content?<p>I need to extract some words from a string of text, insert every character of that words inside a span ele... |
72,230,181 | How allow to fit read_only field for new record in TabularInline class in Django<p>I want to have a field readonly when record already saved but if admin adds a new record field must to be editable.</p>
<p>How I can achieve it?</p> | <p>You can use ModelAdmin's <a href="https://docs.djangoproject.com/en/4.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_readonly_fields" rel="nofollow noreferrer">get_readonly_fields</a> method for this purpose. When the object is created, the obj is set to None. By overriding the method, you can change the r... | How allow to fit read_only field for new record in TabularInline class in Django | django|django-admin | 0 | 27 | 1 | 72,233,925 | 72,233,925 | 1 | true | 2022-05-13T13:13:38.697Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How allow to fit read_only field for new record in TabularInline class in Django<p>I want to have a field readonly when record already saved but if admin add... |
72,222,382 | How do I do a multiple level Nested Loop Join?<p>I'm sure this must be a common coding question, but I don't even know what to call it.</p>
<p>For any given Person, I want to find their team - now there may be teams inside of teams, or maybe there are not - it's not predictable.</p>
<p>So I can just do nested loops whi... | <p>You will need to use a recursive CTE. Read this and see if you can apply it to your case: <a href="https://blog.sqlauthority.com/2012/04/24/sql-server-introduction-to-hierarchical-query-using-a-recursive-cte-a-primer/" rel="nofollow noreferrer">https://blog.sqlauthority.com/2012/04/24/sql-server-introduction-to-hie... | How do I do a multiple level Nested Loop Join? | python|sql-server-2012|hierarchical-data | 0 | 74 | 1 | 72,233,944 | 72,233,944 | 1 | true | 2022-05-12T21:44:36.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I do a multiple level Nested Loop Join?<p>I'm sure this must be a common coding question, but I don't even know what to call it.</p>
<p>For any given ... |
72,233,662 | Type Error: How do I get a method to execute like a function in Javascript?<p>I was trying to create a Javascript function in HTML,which should create a rectangle and set the size to the likings of the user with this code:</p>
<pre><code>class Rectangle{
constructor(height, width){
this.height = height;
this.... | <p>You may want to revisit how you're approaching this. Classes have methods so you can't just add a function to them (<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes" rel="nofollow noreferrer">here's the documentation</a>). Additionally, maybe keep DOM manipulations out the class its... | Type Error: How do I get a method to execute like a function in Javascript? | javascript|html | 0 | 29 | 1 | 72,233,947 | 72,233,947 | 1 | true | 2022-05-13T17:52:25.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Type Error: How do I get a method to execute like a function in Javascript?<p>I was trying to create a Javascript function in HTML,which should create a rect... |
72,233,849 | Buffered reader does not flush characters to buffer when reaching EOF<p>I have a buffered reader using read(buffer, off, len). The reader is reading a txt file into a buffer of 2048 characters. It reads and prints whats in the buffer fine until it reaches the end and returns -1. At that point it not longer flushes the ... | <p>Note that <code>br.read(buffer, off, 2048)</code> returns the number of characters read in.</p>
<p>For the very last iteration of the loop, numRead might be less than <code>buffer.length</code> so <code>buffer</code> will contain characters from last AND second last row:</p>
<pre><code> System.out.println(buffer);
<... | Buffered reader does not flush characters to buffer when reaching EOF | java|file|bufferedreader | 0 | 40 | 2 | 72,234,004 | 72,234,004 | 1 | true | 2022-05-13T18:12:02.757Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Buffered reader does not flush characters to buffer when reaching EOF<p>I have a buffered reader using read(buffer, off, len). The reader is reading a txt fi... |
72,233,641 | type mismatch in nested functions<p>Objective:-
Retrieve json object from aws s3 bucket. Retry on failure.
If retry attempts are exhausted, send the error message to azure's event hub.</p>
<p>//Retry function</p>
<pre><code>def retry[T](n: Int, id: String)(fn: => T): Option[T] = {
Try(fn) match {
c... | <p>In terms of types <code>retry</code> look's okay. You need to adapt your other method.</p>
<p>Either make it return a <code>Option[String]</code> or use <code>getOrElse(..)</code> if you want to fallback to some other value.</p>
<pre class="lang-scala prettyprint-override"><code> def getS3Object(s3ObjectName: String... | type mismatch in nested functions | scala|apache-spark|amazon-s3|databricks | 0 | 30 | 1 | 72,234,051 | 72,234,051 | 1 | true | 2022-05-13T17:50:08.717Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
type mismatch in nested functions<p>Objective:-
Retrieve json object from aws s3 bucket. Retry on failure.
If retry attempts are exhausted, send the error me... |
72,234,002 | cannot convert 'LinkedList::filter(void (*)(Node*))::<lambda(Node*)>' to 'void (*)(Node*)'<p>Im trying to implement a simple LinkedList class, but this error shows up and I don't understand why.</p>
<pre><code>struct Node {
public:
int val;
Node* next;
Node(int v) : val(v), next(nullptr) {}
};
struct Linke... | <p>As mentioned in the comments, a capturing lambda is not the same as a function pointer. Instead, behind the scenes, it is a fully-fledged object (because it has state).</p>
<p>Fortunately, there's an easy fix - you can use the magical powers of <a href="https://en.cppreference.com/w/cpp/utility/functional/function"... | cannot convert 'LinkedList::filter(void (*)(Node*))::<lambda(Node*)>' to 'void (*)(Node*)' | c++|function|pointers | 0 | 25 | 1 | 72,234,106 | 72,234,106 | 1 | true | 2022-05-13T18:27:34.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
cannot convert 'LinkedList::filter(void (*)(Node*))::<lambda(Node*)>' to 'void (*)(Node*)'<p>Im trying to implement a simple LinkedList class, but this error... |
72,233,900 | Container volume not mounting to local path<p>Python Code:</p>
<pre><code>with open("/var/lib/TestingVolume.txt", "r") as outFile:
data = outFile.read()
with open("/var/lib/TestingVolume.txt", "w") as outFile:
outFile.write("Hi, Hello")
</code></pre>
<p>Dockerfi... | <p>You mount to <code>/var/lib/data</code> but write to <code>/var/lib</code> so the path you write to is not at or below the mounted path.</p>
<p>The easiest way to fix it is probably to change your code so you write to <code>/var/lib/data</code> like this</p>
<pre><code>with open("/var/lib/data/TestingVolume.txt... | Container volume not mounting to local path | docker|visual-studio-code|docker-compose|containers | 0 | 282 | 1 | 72,234,129 | 72,234,129 | 1 | true | 2022-05-13T18:15:49.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Container volume not mounting to local path<p>Python Code:</p>
<pre><code>with open("/var/lib/TestingVolume.txt", "r") as outFile:
da... |
72,207,414 | Clone nodes while expanding flat to hierarchical XML using Microsoft XSLT 1.0<p>TL;DR: Here is my Fiddle: <a href="https://xsltfiddle.liberty-development.net/6qtiBn6/2" rel="nofollow noreferrer">https://xsltfiddle.liberty-development.net/6qtiBn6/2</a></p>
<p>Expanding on the answer to <a href="https://stackoverflow.com... | <p>The format of your input is very inconvenient.</p>
<p>Moreover, there is something very strange in your added requirement: according to your description, the element:</p>
<pre><code><field style="element" level="count" target="param">3</field>
</code></pre>
<p>indicates that... | Clone nodes while expanding flat to hierarchical XML using Microsoft XSLT 1.0 | xml|xslt|xslt-1.0 | 0 | 66 | 1 | 72,234,181 | 72,234,181 | 1 | true | 2022-05-11T20:46:04.687Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Clone nodes while expanding flat to hierarchical XML using Microsoft XSLT 1.0<p>TL;DR: Here is my Fiddle: <a href="https://xsltfiddle.liberty-development.net... |
72,232,532 | Problem with VSC , live server and media queries<p><a href="https://streamable.com/45i2mw" rel="nofollow noreferrer">simple video of my problem</a></p>
<p>My media queries wont work at all so I create the most simple test to show up my issue.
but its work here with the snippet ... but not locally with VSC ...
Why ? and... | <p>The code seems to work correctly when I check it in Device Tool Bar of Chrome. Try it in dev tools(f12).
Chrome documentation : <a href="https://developer.chrome.com/docs/devtools/device-mode/" rel="nofollow noreferrer">https://developer.chrome.com/docs/devtools/device-mode/</a></p>
<p>Latest browsers don't go less ... | Problem with VSC , live server and media queries | css|visual-studio-code|media-queries | 0 | 36 | 1 | 72,234,294 | 72,234,294 | 1 | true | 2022-05-13T16:12:12.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Problem with VSC , live server and media queries<p><a href="https://streamable.com/45i2mw" rel="nofollow noreferrer">simple video of my problem</a></p>
<p>My... |
72,233,678 | Type argument at moment of use<p>I'm trying to build a generic tool for handling the response to <a href="https://react-query.tanstack.com/typescript" rel="nofollow noreferrer">React Query</a> <code>useQuery</code> requests in my app, and build this out using TypeScript, so that the data is correctly typed.</p>
<p>In a... | <p>The <code>ReactQueryLoader</code> function needs to be generic here, as well as the props type.</p>
<p>That might look something like this:</p>
<pre><code>interface ReactQueryLoaderProps<T extends UseQueryResult<unknown, Error>> {
useQueryResult: T;
handleError?: (error: Error) => void;
children... | Type argument at moment of use | reactjs|typescript|react-query | 0 | 156 | 1 | 72,234,329 | 72,234,329 | 1 | true | 2022-05-13T17:54:25.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Type argument at moment of use<p>I'm trying to build a generic tool for handling the response to <a href="https://react-query.tanstack.com/typescript" rel="n... |
72,226,500 | Spring Data Elasticsearch: ClassCastException thrown in existsBy* repository method<p>I've got this trivial index in ES:</p>
<pre class="lang-json prettyprint-override"><code>{
"dynamic": "strict",
"properties": {
"_class": {
"type": "text",
... | <p>This is a bug, currently the fact that it is a <em>exists</em> method is not taken into account, and as the return type is no <code>Collection</code> a normal query for the parameters is executed and the first result returned. Which leads to the error you see.</p>
<p>As a workaround change your method to do a count ... | Spring Data Elasticsearch: ClassCastException thrown in existsBy* repository method | java|elasticsearch|spring-data-elasticsearch | 0 | 100 | 1 | 72,234,370 | 72,234,370 | 1 | true | 2022-05-13T08:22:26.020Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Data Elasticsearch: ClassCastException thrown in existsBy* repository method<p>I've got this trivial index in ES:</p>
<pre class="lang-json prettyprin... |
72,233,983 | How to call a element from Layout without use findViewId() in Kotlin?<p>I didn't know this was possible, but I was following an example and I see this piece of code:</p>
<pre><code>import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState... | <p>What you saw is <code>Kotlin synthetics</code> and has been <code>deprecated</code> in favor of <code>ViewBinding</code> and is heavily discouraged to use. You should use <code>ViewBinding</code> instead.</p>
<p>Enable <code>ViewBinding</code> for your project by setting <code>viewBinding</code> build feature to <co... | How to call a element from Layout without use findViewId() in Kotlin? | java|android|android-studio|kotlin|intellij-idea | 0 | 58 | 1 | 72,234,410 | 72,234,410 | 1 | true | 2022-05-13T18:25:54.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to call a element from Layout without use findViewId() in Kotlin?<p>I didn't know this was possible, but I was following an example and I see this piece ... |
72,234,231 | (JavaScript) Best was to check for multiple conditions and end execution as soon as one returns false?<p>I am currently working on a duty rota App. I need to calculate which employee can work on every particular day of the month. This must also be updated "on the fly" since if someone gets assigned to work on... | <p><code>&&</code> will shortcircuit if the first value is <code>false</code>. Try this out:</p>
<pre class="lang-js prettyprint-override"><code>function foo() {
console.log('called foo');
return false;
}
function bar() {
console.log('called bar');
return true;
}
foo() && bar()
</code></pre>
<p... | (JavaScript) Best was to check for multiple conditions and end execution as soon as one returns false? | javascript|node.js|ecmascript-6|web-applications | 0 | 182 | 1 | 72,234,455 | 72,234,455 | 1 | true | 2022-05-13T18:50:33Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
(JavaScript) Best was to check for multiple conditions and end execution as soon as one returns false?<p>I am currently working on a duty rota App. I need to... |
72,232,732 | parse value from datagrid to button name<p>I'm building a form that has many buttons, all buttons do the same thing: add 1 every time they are clicked. Every pressed button is sent to a datagridview along with the time they are pressed. Datagrid values look like this:</p>
<p><code>a_1_serv (button name), 18:05:00(tim... | <p>Don't store your program state in your UI</p>
<p>Create a data structure to hold the information, and let the DataGridView be a "view", not treating it as a variable. You will save yourself headaches vs using the UI as a variable.</p>
<p>That said, create a class to represent your information</p>
<pre clas... | parse value from datagrid to button name | vb.net | 0 | 35 | 1 | 72,234,459 | 72,234,459 | 1 | true | 2022-05-13T16:30:00.230Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
parse value from datagrid to button name<p>I'm building a form that has many buttons, all buttons do the same thing: add 1 every time they are clicked. Every... |
72,234,302 | R st_join return polygon with point attributes<p>Let's say I have the below data along with the code. The code returns <code>point</code> data but I want a <code>polygon</code>.</p>
<p>How can I do a <code>spatial join</code> such that it returns a <code>polygon</code> with both the <code>point</code> and <code>polygon... | <p>The geometry type returned by <code>sf::st_join()</code> is driven by the functions first argument.</p>
<p>Consider flipping the two - <code>st_join(poly, pts)</code>.</p>
<p>The difference in output should be only in geometry type (and ordering of columns).</p> | R st_join return polygon with point attributes | r|sf | 0 | 128 | 1 | 72,234,501 | 72,234,501 | 1 | true | 2022-05-13T18:57:29Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R st_join return polygon with point attributes<p>Let's say I have the below data along with the code. The code returns <code>point</code> data but I want a <... |
72,233,387 | Output counts grouped by field values by for date in Splunk<p>I have a Splunk index named <code>http_logs</code> with the following fields:</p>
<ul>
<li>_time</li>
<li>status_code</li>
<li>status_text</li>
<li>requester</li>
</ul>
<p>I'm trying to use this data to create a table that looks like this:</p>
<div class="s-... | <p>Splunk tables usually have one value in each cell. To put multiple values in a cell we usually concatenate the values into a single value.</p>
<p>To get counts for different time periods, we usually run separate searches and combine the results.</p>
<p>Note the use of <code>sum</code> instead of <code>count</code> ... | Output counts grouped by field values by for date in Splunk | splunk|splunk-query | 0 | 2,362 | 1 | 72,234,786 | 72,234,786 | 1 | true | 2022-05-13T17:24:53.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Output counts grouped by field values by for date in Splunk<p>I have a Splunk index named <code>http_logs</code> with the following fields:</p>
<ul>
<li>_tim... |
72,228,178 | jq wildcard as object in getpath split<p>Given a basic json</p>
<pre class="lang-json prettyprint-override"><code>{
"notKnown": {
"alpha" : {
"hello":"world"
}
}
}
</code></pre>
<p>and then using <code>getpath</code> with a wildcard as an ob... | <p><code>getpath</code> doesn't take some query, but a list of keys.</p>
<p>You are effectively calling</p>
<pre><code>getpath( [ "notKnown[]", "hello" ] )
</code></pre>
<p>This is equivalent to</p>
<pre><code>.[ "notKnown[]" ][ "hello" ]
</code></pre>
<p>You could use</p>
<pre><... | jq wildcard as object in getpath split | jq | 0 | 69 | 3 | 72,234,807 | 72,234,807 | 1 | true | 2022-05-13T10:33:34.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jq wildcard as object in getpath split<p>Given a basic json</p>
<pre class="lang-json prettyprint-override"><code>{
"notKnown": {
&qu... |
72,234,659 | Elif and if statement not working in and out of function<p>The code:</p>
<pre><code>class Car:
y = 0
x = 0
x_miles = y / 5280
y_miles = x / 5280
direction = 0
speed = 100
fps = speed * 1.467
Cords = {x}, {y}
Cords_miles = x_miles, y_miles
def driving(self):
drv = 'start'
while drv != 'stop':
if Car.dir... | <p>You are missing brackets after you <code>.lower</code>. As you can read <a href="https://stackoverflow.com/a/21786508/13428616">here</a>, without the brackets you are just setting a reference to the lower method but do not actually call it.</p> | Elif and if statement not working in and out of function | python|if-statement | 0 | 48 | 1 | 72,234,847 | 72,234,847 | 1 | true | 2022-05-13T19:39:03.883Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Elif and if statement not working in and out of function<p>The code:</p>
<pre><code>class Car:
y = 0
x = 0
x_miles = y / 5280
y_miles = x / 5280
direction = ... |
72,234,941 | Python tuple to dict - ValueError: too many values to unpack<p>Here's the tuple I'm trying to convert to a dict:</p>
<pre class="lang-py prettyprint-override"><code>rule_tuple = tuple((('rule1', 'col1', 'val1'), ('rule1', 'col2', 'val2'), ('rule1', 'col3', 'val3'), ('rule2', 'col1', 'val1'), ('rule2', 'col2', 'val2')))... | <p>You can loop through and set the default value for the outer keys to an empty dict and then just assign:</p>
<pre><code>rule_tuple = (('rule1', 'col1', 'val1'), ('rule1', 'col2', 'val2'), ('rule1', 'col3', 'val3'), ('rule2', 'col1', 'val1'), ('rule2', 'col2', 'val2'))
d = {}
for k1, k2, v in rule_tuple:
d.setde... | Python tuple to dict - ValueError: too many values to unpack | python|dictionary | 0 | 32 | 2 | 72,234,978 | 72,234,978 | 1 | true | 2022-05-13T20:10:22.923Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python tuple to dict - ValueError: too many values to unpack<p>Here's the tuple I'm trying to convert to a dict:</p>
<pre class="lang-py prettyprint-override... |
72,171,636 | If date field is blank return blank but if it has a date return the day in week<p>I have am using this formula which returns the correct day of the week based on date in cells A2:A</p>
<p>=ArrayFormula(switch(WEEKDAY(A3),"","",1,"Sunday",2,"Monday",3,"Tuesday",4,"W... | <p>Solved it :)</p>
<pre><code>=IF(P3="","",(switch(WEEKDAY(P3),1,"Sunday",2,"Monday",3,"Tuesday",4,"Wednesday",5, "Thursday",6,"Friday",7,"Saturday")))
</code></pre> | If date field is blank return blank but if it has a date return the day in week | date | 0 | 35 | 1 | 72,234,979 | 72,234,979 | 1 | true | 2022-05-09T11:58:28.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
If date field is blank return blank but if it has a date return the day in week<p>I have am using this formula which returns the correct day of the week base... |
72,229,894 | How do I handle res.download(pathname) on frontend(ReactJS)<p>I have written a code on my server(NodeJS) that will send a .csv file to the frontend with express res.download(path). I would like to know how I can handle the response with fetch API that will allow the frontend to download the file(.csv) sent.</p>
<p>I am... | <p>I was able to solve this by using the <a href="https://www.npmjs.com/package/downloadjs" rel="nofollow noreferrer">downloadJs</a> on my frontend</p>
<pre><code>import download from 'downloadjs'
...
//get request
fetch(url).then(res => res.blob())
.then(blob => download(blob, 'name of file', 'data type')) // th... | How do I handle res.download(pathname) on frontend(ReactJS) | javascript|node.js|reactjs|express|fetch | 0 | 92 | 1 | 72,235,030 | 72,235,030 | 1 | true | 2022-05-13T12:49:56.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I handle res.download(pathname) on frontend(ReactJS)<p>I have written a code on my server(NodeJS) that will send a .csv file to the frontend with expr... |
72,233,650 | R matrix - how to convert data from data frame columns into 1/0 matrix<p>I'm preparing a master's degree project and stuck with basic data manipulation. I'm importing several data from the Prestashop database to R, one of those is a data frame with carts IDs and products included in it (see below).</p>
<p><a href="http... | <p>You are looking for creating an adjacency matrix from a bipartite network from which you have the nodes list. You can directly use the package <code>igraph</code> to create the adjacency matrix from the node list and simplify it.</p>
<p>From <code>x</code>:</p>
<pre><code> order_id product_id
1 12 123
... | R matrix - how to convert data from data frame columns into 1/0 matrix | r | 0 | 46 | 1 | 72,235,041 | 72,235,041 | 1 | true | 2022-05-13T17:51:45.243Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R matrix - how to convert data from data frame columns into 1/0 matrix<p>I'm preparing a master's degree project and stuck with basic data manipulation. I'm ... |
72,234,810 | Match timestamps in WebVTT files with sed<p>I have the following PCRE2 regex that works to match and remove timestamp lines in a .webVTT subtitle file (the default for YouTube):</p>
<pre><code>^[0-9].:[0-9].:[0-9].+$
</code></pre>
<p>This changes this:</p>
<pre><code>00:00:00.126 --> 00:00:10.058
How are you today?
... | <p>Using your regex with <code>sed</code></p>
<pre><code>$ sed -En '/^[0-9].:[0-9].:[0-9].+$/!p' file
How are you today?
Not bad, you?
Been better.
</code></pre>
<p>Or, do not match lines that end with an integer</p>
<pre><code>$ sed -n '/[0-9]$/!p' file
How are you today?
Not bad, you?
Been better.
</code></pre> | Match timestamps in WebVTT files with sed | regex|text|sed|subtitle|webvtt | 0 | 54 | 2 | 72,235,060 | 72,235,060 | 1 | true | 2022-05-13T19:54:48.303Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Match timestamps in WebVTT files with sed<p>I have the following PCRE2 regex that works to match and remove timestamp lines in a .webVTT subtitle file (the d... |
72,229,451 | SQL rank counting occurences<p>In my table I have data from employee contracts like this:
<a href="https://i.stack.imgur.com/xdTdv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xdTdv.png" alt="enter image description here" /></a></p>
<p>And I want to get job position in time periods, something like... | <p>This sounds like a "Gaps and Islands" problem. One way of approaching it is to identify and assign rankings to each "island" (or date ranges for each JobPosition).</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">login</th>
<th style="text-al... | SQL rank counting occurences | sql|rank|dense-rank | 0 | 41 | 1 | 72,235,148 | 72,235,148 | 1 | true | 2022-05-13T12:15:00.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL rank counting occurences<p>In my table I have data from employee contracts like this:
<a href="https://i.stack.imgur.com/xdTdv.png" rel="nofollow norefer... |
72,217,485 | How to count the same rows between multiple CSV files in Pandas?<p>I merged 3 different CSV(D1,D2,D3) Netflow datasets and created one big dataset(df), and applied KMeans clustering to this dataset.
To merge them I did not use pd.concat because of memory error and solved with Linux terminal.</p>
<pre><code>df = pd.read... | <pre><code>cluster0_D1 = pd.merge(D1, cluster_0, how ='inner')
number_of_rows_D1 = len(cluster0_D1)
cluster0_D2 = pd.merge(D2, cluster_0, how ='inner')
number_of_rows_D2 = len(cluster0_D2)
cluster0_D3 = pd.merge(D3, cluster_0, how ='inner')
number_of_rows_D3 = len(cluster0_D3)
print("How many samples belong to ... | How to count the same rows between multiple CSV files in Pandas? | python|pandas|data-science|cluster-analysis|netflow | 0 | 104 | 2 | 72,235,150 | 72,235,150 | 1 | true | 2022-05-12T14:30:44.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to count the same rows between multiple CSV files in Pandas?<p>I merged 3 different CSV(D1,D2,D3) Netflow datasets and created one big dataset(df), and a... |
72,235,112 | unity isn't registering the collsion between my player and the obstacles<p>I have tried for some time to fix the problem I'm having, I've looked at tons of different websites and I can't find what is wrong with my script. The player (Where the script is located) has a box collider 2d and a rigidbody 2d while the spike ... | <p>Languages can be case sensitive void OnCollisionEnter2D(Collision2D collision).
2d - 2D</p> | unity isn't registering the collsion between my player and the obstacles | c#|2d|physics|collider | 0 | 17 | 1 | 72,235,189 | 72,235,189 | 1 | true | 2022-05-13T20:27:42.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
unity isn't registering the collsion between my player and the obstacles<p>I have tried for some time to fix the problem I'm having, I've looked at tons of d... |
72,231,867 | Accessing groupby value based on id?<p>I have an array which has id and weight information, I want to groupby the array based on the id regarding min and max weight:</p>
<pre><code>a= pd.Series(weight).groupby(id).agg(["min", "max"])
</code></pre>
<p>I want to access each min/ max element based on... | <p>If I understand you correctly, you can use <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_dict.html#pandas-dataframe-to-dict" rel="nofollow noreferrer"><code>.to_dict()</code></a> and then you can access your values by key (in this case <code>id</code>):</p>
<pre class="lang-... | Accessing groupby value based on id? | python|pandas|group-by | 0 | 95 | 1 | 72,235,208 | 72,235,208 | 1 | true | 2022-05-13T15:15:56.660Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Accessing groupby value based on id?<p>I have an array which has id and weight information, I want to groupby the array based on the id regarding min and m... |
72,235,304 | Custom Text in a href<p>Can someone help me how i can manage to support this to work with translation text option.</p>
<pre class="lang-html prettyprint-override"><code><a
href="{{url('account/my-review/delete/'.$value->id)}}"
onclick="return confirm('Are you sure you want to delete this r... | <p>Did you wrap with single quotes the blade bindings(<code>{{}}</code>)? It should work like this:</p>
<pre><code>onclick="return confirm('{{ trans('plugins/real-estate::dashboard.no_review') }}');"
</code></pre>
<p>If not, then probably need to use laravel's <code>__('plugins/real-estate::dashboard.no_revie... | Custom Text in a href | javascript|php | 0 | 38 | 1 | 72,235,350 | 72,235,350 | 1 | true | 2022-05-13T20:51:31.703Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Custom Text in a href<p>Can someone help me how i can manage to support this to work with translation text option.</p>
<pre class="lang-html prettyprint-over... |
72,235,111 | Create a new column based on multiple conditions in other columns in R<p>I have a data frame that has this structure:</p>
<pre><code>dat <- data.frame(col1 = sample(0:3, 10, replace = TRUE),
col2 = sample(0:3, 10, replace = TRUE))
</code></pre>
<p>How can I create another column that says 1 if both... | <p>using <code>case_when</code> dplyr to solve would be like:</p>
<pre><code>dat %>%
mutate(col3 = case_when(
col1 != 0 & col2 != 0 ~ 1,
TRUE ~ 2
))
</code></pre> | Create a new column based on multiple conditions in other columns in R | r|dplyr|data-wrangling | 0 | 91 | 1 | 72,235,471 | 72,235,471 | 1 | true | 2022-05-13T20:27:39.320Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a new column based on multiple conditions in other columns in R<p>I have a data frame that has this structure:</p>
<pre><code>dat <- data.frame(col... |
72,232,148 | bad_alloc when attempting to print string that was assigned to member of $$ struct<p>During our compiler's intermediate code generation phase, and more specifically while testing the arithmetic expressions and assignment rules, I noticed that although the respective quads are constructed successfully, when printing the... | <p>Debugging by eyeballing your code is probably a useful skill, but it's far from the most productive form of debugging. These days, it's much less necessary, since there are lots of good tools which you can use to detect problems. (Here, I do mean "you", specifically. <em>I</em> can't use any of those tools... | bad_alloc when attempting to print string that was assigned to member of $$ struct | c++|bison|intermediate-code | 0 | 80 | 1 | 72,235,496 | 72,235,496 | 1 | true | 2022-05-13T15:38:34.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
bad_alloc when attempting to print string that was assigned to member of $$ struct<p>During our compiler's intermediate code generation phase, and more speci... |
72,231,791 | comment SQL query with variables in python<p>I'm working with Cloud Function. I have the following query working correctly:</p>
<pre><code># this is working
q = """ SELECT col1, col2
FROM `my_table`
WHERE col1 = {} AND col2 = '{}'""".format(var1, var2)
</code></pre>
<p>how... | <p>As stated in the <a href="https://stackoverflow.com/questions/72231791/comment-sql-query-with-variables-in-python#comment127618801_72231791">comments</a> by @Jaytiger:</p>
<blockquote>
<p>you need to escape a curly brace in your comment by adding one more curly brace like this :</p>
<pre class="lang-py prettyprint-o... | comment SQL query with variables in python | sql|python-3.x|google-bigquery | 0 | 57 | 1 | 72,235,714 | 72,235,714 | 1 | true | 2022-05-13T15:10:41.560Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
comment SQL query with variables in python<p>I'm working with Cloud Function. I have the following query working correctly:</p>
<pre><code># this is working
... |
72,235,715 | Graalvm not found within Java application<p>I have an Apache Tomcat servlet in which I would like to run some <em>other</em> language - for this purpose, I would like to try to get <strong>Graalvm</strong> functionality working within <strong>OpenJDK 17</strong>.</p>
<p>I added the following dependency to my <code>buil... | <p>hey there please try to see if you are required to add compiler for that, if yes then add to your plugins section in build.gradle</p>
<pre><code> id "org.graalvm.plugin.compiler" version "0.1.0-alpha2"
</code></pre>
<p>btw,i run the code you got i have no issue and i can access to them, try to... | Graalvm not found within Java application | java|gradle|graalvm | 0 | 123 | 1 | 72,235,776 | 72,235,776 | 1 | true | 2022-05-13T21:46:06.503Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Graalvm not found within Java application<p>I have an Apache Tomcat servlet in which I would like to run some <em>other</em> language - for this purpose, I w... |
72,235,794 | Inserting multiple values into a string<p>I am trying to run this command but need to insert new two variables for every time I run this command. I think the right approach is to loop through a dictionary and add in the two variables each loop. Ive never looped through a dictionary where there were multiple values per ... | <p>I'm not sure exactly what you want to achieve, but iterating through a dictionary in the way you did will actually iterate over the keys, not the values. To iterate over just values, you can use:</p>
<pre class="lang-py prettyprint-override"><code>for value in sample_dict.values():
...
</code></pre>
<p>To iterat... | Inserting multiple values into a string | python|python-3.x|dictionary|for-loop | 0 | 63 | 2 | 72,235,817 | 72,235,817 | 1 | true | 2022-05-13T22:00:04.893Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Inserting multiple values into a string<p>I am trying to run this command but need to insert new two variables for every time I run this command. I think the... |
72,235,735 | child is not fully visible inside an "overflow-x: visible" parent<p>two questions in the example below:</p>
<ul>
<li>why <code>grida</code> is not centered horizontally -<code>margin: 0 auto</code></li>
<li>why <code>cins</code> is not fully visible - parent is <code>overflow-x:visible</code></li>
</ul>
<p><div class="... | <blockquote>
<p>why <code>grida</code> is not centered horizontally -<code>margin: 0 auto</code></p>
</blockquote>
<p><code>grida</code> is the full viewport width, so centering it horizontally within the viewport is sort of nonsensical.</p>
<blockquote>
<p>why slide is not fully visible - parent is <code>overflow-x:vi... | child is not fully visible inside an "overflow-x: visible" parent | html|css | 0 | 33 | 2 | 72,235,930 | 72,235,930 | 1 | true | 2022-05-13T21:50:22.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
child is not fully visible inside an "overflow-x: visible" parent<p>two questions in the example below:</p>
<ul>
<li>why <code>grida</code> is not centered h... |
72,221,417 | Github Workflow: How to map input option to value<p>I have the following input set up for my Github Workflow</p>
<pre><code>on:
workflow_dispatch:
inputs:
environment:
type: choice
description: Environment
options:
- Development
- QA
- UAT
- Pr... | <p>There are some ways to map your input to env variable - you can either use an action that does just that:</p>
<pre class="lang-yaml prettyprint-override"><code>- uses: kanga333/variable-mapper@master
id: export
with:
key: "${{ github.event.inputs.environment }}"
map: |
{
"Dev... | Github Workflow: How to map input option to value | github|github-actions | 0 | 433 | 2 | 72,235,996 | 72,235,996 | 1 | true | 2022-05-12T19:53:07.503Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Github Workflow: How to map input option to value<p>I have the following input set up for my Github Workflow</p>
<pre><code>on:
workflow_dispatch:
inpu... |
72,202,503 | Wrap a call in a task, to add a timeout?<p>We have an SDK that we are using from a 3rd-party. We have no access or insight into the code at all, or ability to change anything with it.</p>
<p>We're running into a problem where we make a bunch of updates to an object in the SDK, and then when we call their <code>.Commit(... | <blockquote>
<p>I'm wondering if there is a way that I can use async/await stuff to essentially add a timeout to the call to their Commit.</p>
</blockquote>
<p>Well... sort of.</p>
<p>You can wrap the call into a <code>Task.Run</code> and then use <code>WaitAsync</code> to create a cancelable wait, as such:</p>
<pre><c... | Wrap a call in a task, to add a timeout? | async-await|timeout | 0 | 37 | 1 | 72,236,023 | 72,236,023 | 1 | true | 2022-05-11T14:06:49.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wrap a call in a task, to add a timeout?<p>We have an SDK that we are using from a 3rd-party. We have no access or insight into the code at all, or ability t... |
72,227,644 | XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection<p>I'm attempting to connect into a SQL Server DB I have hosted on my Linux VM. I'm running xampp on my development windows machine and the connection is coming from a php site I'm building. I figured I'd need to use <code>sqlsrv</code> to... | <p>Solved. There were two problems.</p>
<ol>
<li><p>My Xampp installation was corrupt. It wouldn't recognize ANY new DLLs I noticed from using <code>echo phpinfo();</code> on my page.</p>
</li>
<li><p>The ini file configuration was attempting to use the x86 dll's instead of the x64's for some reason, even when the exte... | XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection | php|sql-server|pdo|xampp|sqlsrv | 0 | 391 | 1 | 72,236,051 | 72,236,051 | 1 | true | 2022-05-13T09:52:44.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection<p>I'm attempting to connect into a SQL Server DB I have hosted on my Linux ... |
72,219,600 | Slicing a dataframe using matches to build a new dataframe with Pandas?<p>I am trying to get my code to take in a dataframe, find all occurrences of "START:", then iterate through each occurrence to create 'slices' (Where the first row is the "START:" match, and captures all the rows between where t... | <p><code>pd.concat()</code> can be expensive! Try populating a list of dfs and do one <code>pd.concat()</code> at the end.</p> | Slicing a dataframe using matches to build a new dataframe with Pandas? | python-3.x|pandas|dataframe|filter | 0 | 35 | 1 | 72,236,125 | 72,236,125 | 1 | true | 2022-05-12T17:04:54.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Slicing a dataframe using matches to build a new dataframe with Pandas?<p>I am trying to get my code to take in a dataframe, find all occurrences of "ST... |
72,235,399 | Github problems with project files<p><a href="https://i.stack.imgur.com/8psOI.png" rel="nofollow noreferrer">Screen</a></p>
<p>What's wrong with this file? I tried add .obj to gitignore file but that's doesn't helped.
Also i don't even changed anything in this file i think that's automatilcly changed.</p> | <p>if you have committed before adding the obj folder to the '.gitignore' file, you need to add the obj folder '.gitignore' and delete the obj folder as well, otherwise the obj folder will continue to be versioned <a href="https://stackoverflow.com/questions/25436312/gitignore%20-not-working">a similar question</a></p> | Github problems with project files | c#|file|github | 0 | 45 | 1 | 72,236,174 | 72,236,174 | 1 | true | 2022-05-13T21:02:53.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Github problems with project files<p><a href="https://i.stack.imgur.com/8psOI.png" rel="nofollow noreferrer">Screen</a></p>
<p>What's wrong with this file? I... |
72,235,695 | cypress test asserting a filtering operation on array of objects expecting undefined<p>I have a cypress test over an API. When I do</p>
<pre><code>cy.getUnits(u.email)
</code></pre>
<p>I'm expecting a 200 OK response similar to this in the body of the response</p>
<pre><code>{
“units”: [
{
“store: “US_12345678... | <p>You want to check the filtered array length</p>
<pre class="lang-js prettyprint-override"><code>.should(units => {
expect(units.length).to.equal(2)
const filtered = units.filter(unit =>
unit.email === u.email &&
unit.role === u.role &&
unit.store === u.store
)
expect(filtere... | cypress test asserting a filtering operation on array of objects expecting undefined | javascript|node.js|typescript|cypress | 0 | 48 | 1 | 72,236,186 | 72,236,186 | 1 | true | 2022-05-13T21:42:51.870Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
cypress test asserting a filtering operation on array of objects expecting undefined<p>I have a cypress test over an API. When I do</p>
<pre><code>cy.getUnit... |
72,205,231 | Test ignored and failing when running IT test in Spring Boot (MongoDB Test Container)<p>I am trying to run an IT test using a MongoDB test container. However, I get the following error when I run the test</p>
<p><em><strong>com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message&quo... | <p>You did likely run into this issue:
<a href="https://github.com/testcontainers/testcontainers-java/issues/5121" rel="nofollow noreferrer">https://github.com/testcontainers/testcontainers-java/issues/5121</a></p>
<p>As a workaround, login to Docker Hub using this URL:</p>
<pre><code>docker login index.docker.io
</cod... | Test ignored and failing when running IT test in Spring Boot (MongoDB Test Container) | mongodb|spring-boot|maven|integration-testing|testcontainers | 0 | 607 | 1 | 72,236,199 | 72,236,199 | 1 | true | 2022-05-11T17:25:44.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Test ignored and failing when running IT test in Spring Boot (MongoDB Test Container)<p>I am trying to run an IT test using a MongoDB test container. However... |
72,236,175 | I don't know how to query certain data from my DynamoDB table using Boto3<p>This is my first time using boto3 to query items from my DynamoDB and I can't figure out how to grab a certain value.</p>
<p>My table has a primary key of "Company" and a sort key of "DailyPrice".
I looked at the boto3 docs ... | <p>Your life will be easier with boto3.resource than boto3.client because you don't need all that 'S' type stuff around.</p>
<p>Here's a repo with sample code:</p>
<p><a href="https://github.com/aws-samples/aws-dynamodb-examples/blob/master/DynamoDB-SDK-Examples/python/WorkingWithQueries/query_equals.py" rel="nofollow ... | I don't know how to query certain data from my DynamoDB table using Boto3 | amazon-dynamodb|boto3|dynamodb-queries | 0 | 364 | 1 | 72,236,283 | 72,236,283 | 1 | true | 2022-05-13T23:13:14.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I don't know how to query certain data from my DynamoDB table using Boto3<p>This is my first time using boto3 to query items from my DynamoDB and I can't fig... |
72,236,238 | Shell script to create a yml file removes data after "$"<p>I am trying to create a yml file from a shell script which includes a sql query.
This is the sample script</p>
<pre><code>cat <<EOF>/test/queryTest.yml
This is a test
sql: "select * from schema.table$name"
</code></pre>
<p>After I run the sh... | <p>Escape ("\") the $ sign.</p>
<pre><code>cat <<EOF>/test/queryTest.yml
This is a test
sql: "select * from schema.table\$name"
</code></pre> | Shell script to create a yml file removes data after "$" | vi|cat | 0 | 13 | 1 | 72,236,301 | 72,236,301 | 1 | true | 2022-05-13T23:28:08.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Shell script to create a yml file removes data after "$"<p>I am trying to create a yml file from a shell script which includes a sql query.
This is the sampl... |
72,236,299 | Property 'isMounted' does not exist on type 'ErrorBoundary'<p>I'm practicing typescript and I've run into this bug that won't let me move forward: <code>Property 'isMounted' does not exist on type 'ErrorBoundary'</code>.</p>
<p>I have the following Boundary component</p>
<p><div class="snippet" data-lang="js" data-hide... | <p>Add <code> public isMounted: boolean;</code> to the component to declare it (<em>the <code>public</code> is optional</em>)</p>
<pre><code>export default class ErrorBoundary extends React.PureComponent<ChildrenProp, BoundaryState> {
public isMounted: boolean;
constructor(props:ChildrenProp) {
...
... | Property 'isMounted' does not exist on type 'ErrorBoundary' | reactjs|typescript|react-typescript | 0 | 17 | 1 | 72,236,355 | 72,236,355 | 1 | true | 2022-05-13T23:40:37.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Property 'isMounted' does not exist on type 'ErrorBoundary'<p>I'm practicing typescript and I've run into this bug that won't let me move forward: <code>Prop... |
72,226,016 | Pass parameter from list in file<p>i'm struggling with this topic: I've a file with a list of IDs, something like this:</p>
<pre><code>34
23
478
12579
342356
</code></pre>
<p>On the other side, i've a command that i want to run, to show me the details for each object of the list (no much to say on this, is a specific c... | <p>From <a href="https://mywiki.wooledge.org/BashFAQ/001" rel="nofollow noreferrer">https://mywiki.wooledge.org/BashFAQ/001</a></p>
<pre><code>#!/bin/bash
while IFS= read -r id
do
echo "command-o-get-details str $id"
done < "ids.txt"
</code></pre>
<p>Remove the echo to use your specific comm... | Pass parameter from list in file | bash|loops|shell | 0 | 46 | 1 | 72,236,402 | 72,236,402 | 1 | true | 2022-05-13T07:40:30.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pass parameter from list in file<p>i'm struggling with this topic: I've a file with a list of IDs, something like this:</p>
<pre><code>34
23
478
12579
342356... |
72,236,378 | what is the type of i18next " t " variable (TYPESCRIPT)<p>I use i18next and I want to pass the t function prop to my interface.</p>
<p>exp:</p>
<pre><code>const { t } = useTranslation();
export interface ITranslate {
translate: ... type?
}
</code></pre>
<p>what is the type of the " t " variable ?</p> | <p>You can use <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype" rel="nofollow noreferrer"><code>ReturnType</code></a> utility type:</p>
<pre><code>export interface ITranslate {
translate: ReturnType<typeof useTranslation>['t']
}
</code></pre> | what is the type of i18next " t " variable (TYPESCRIPT) | reactjs|react-native|i18next | 0 | 271 | 1 | 72,236,404 | 72,236,404 | 1 | true | 2022-05-14T00:00:20.813Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
what is the type of i18next " t " variable (TYPESCRIPT)<p>I use i18next and I want to pass the t function prop to my interface.</p>
<p>exp:</p>
<pre><code>co... |
72,233,201 | Makefile error trying to use a template to compile multiple programs with similar steps<p>I am trying to create a makefile that can compile multiple programs. It has a list of programs and will compile each one separately. Every program has pretty much exactly the same template so I tried this solution:</p>
<pre><code>... | <p>Here:</p>
<pre><code>$(programs): src/$@.c
...
</code></pre>
<p>You can't use <a href="https://www.gnu.org/software/make/manual/make.html#Automatic-Variables" rel="nofollow noreferrer">automatic variables</a> like <code>$@</code> in the prerequisite list that way. The rule gets expanded before a target has been ... | Makefile error trying to use a template to compile multiple programs with similar steps | makefile | 0 | 11 | 1 | 72,236,406 | 72,236,406 | 1 | true | 2022-05-13T17:10:00.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Makefile error trying to use a template to compile multiple programs with similar steps<p>I am trying to create a makefile that can compile multiple programs... |
72,236,356 | Why are "--slave" and "--no-restore" being used by commandArgs when I call my R file with Rscript<p>I am running an R script using <em>Rscript</em> from the command line (linux) like this:</p>
<pre><code>Rscript myscript.R inputfile1.csv inputfile.csv integerArg
</code></pre>
<p>My command args are structured like this... | <p>"That's just the way it is" with <code>Rscript</code>.</p>
<p>One fix: use <code>commandArgs(trailingOnly=TRUE)</code></p>
<p>Another fix: use <code>littler</code> (see <a href="https://cloud.r-project.org/package=littler" rel="nofollow noreferrer">littler at CRAN</a> which prunes the arguments similar to ... | Why are "--slave" and "--no-restore" being used by commandArgs when I call my R file with Rscript | r|linux|command-line-interface|command-line-arguments|rscript | 0 | 74 | 1 | 72,236,407 | 72,236,407 | 1 | true | 2022-05-13T23:53:48.943Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why are "--slave" and "--no-restore" being used by commandArgs when I call my R file with Rscript<p>I am running an R script using <em>Rscript</em> from the ... |
72,227,159 | Where does mount API implemented in Linux source code?<p>I am newbie for Linux kernel, I cloned the Linux source from its repo on GitHub. I cannot find the file <code>sys/mount.h</code> nor the <code>mount</code> function.</p>
<p>Do you know where is this file located in source code? Where can I find its implementation... | <p>If you don't know where a system call is implemented in the kernel, there's a general sequence of steps you can use to find it. You will need to download the kernel source to your machine.</p>
<p>Begin by finding the number of parameters the syscall requires. eg. <a href="https://man7.org/linux/man-pages/man2/mount.... | Where does mount API implemented in Linux source code? | linux|linux-kernel|embedded-linux | 0 | 73 | 1 | 72,236,477 | 72,236,477 | 1 | true | 2022-05-13T09:14:52.567Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Where does mount API implemented in Linux source code?<p>I am newbie for Linux kernel, I cloned the Linux source from its repo on GitHub. I cannot find the f... |
72,236,401 | SQLITE_BUSY The database file is locked<p>I'm getting the error <code>[SQLITE_BUSY] The database file is locked (database is locked)</code>, even though I close my connection and the statements. Not sure what else to try.</p>
<pre><code> public void getTeams() throws SQLException {
Connection c = DriverManager.get... | <p>You are closing the first connection (c) - but not the second connection (c2).</p>
<p>Is there a reason you're creating two connections? Why not simply create both statements on the first connection, then close the first connection (c) after the second statement? Then you could avoid the second connection entirely ... | SQLITE_BUSY The database file is locked | java|sqlite|db-browser-sqlite | 0 | 98 | 1 | 72,236,525 | 72,236,525 | 1 | true | 2022-05-14T00:04:42.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQLITE_BUSY The database file is locked<p>I'm getting the error <code>[SQLITE_BUSY] The database file is locked (database is locked)</code>, even though I c... |
72,227,731 | NEAR Rest API: How to generate a sign URL with Batch Transactions?<p>I want to generate a sign URL using the <a href="https://github.com/near-examples/near-api-rest-server" rel="nofollow noreferrer">NEAR API Rest Server</a></p>
<p>This is the Sign URL API:-
<a href="https://i.stack.imgur.com/tvpnu.png" rel="nofollow no... | <p>This function is not designed to execute a set of methods right now, it can be improved.</p>
<p>Are you sure <code>storage_deposit</code> call is needed before every <code>nft_approve</code> action? I checked the <a href="https://github.com/near/near-sdk-rs/blob/master/near-contract-standards/src/non_fungible_token... | NEAR Rest API: How to generate a sign URL with Batch Transactions? | nearprotocol | 0 | 94 | 1 | 72,236,536 | 72,236,536 | 1 | true | 2022-05-13T09:59:02.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
NEAR Rest API: How to generate a sign URL with Batch Transactions?<p>I want to generate a sign URL using the <a href="https://github.com/near-examples/near-a... |
72,236,357 | how to prevent getting multiple responses in Axios react native?<p>I want to get data from database.
the function <strong>CurrentUserId</strong> get the details of the current user.
i need to get data using <strong>GetTemplate</strong> function
the problem is that i get multiple response contains the same data.
I don't... | <p>I think we should call <code>GetTemplates()</code> only after <code>id</code> is present. Currently you are calling <code>GetTemplates()</code> on initial render in <code>useEffect</code> even before <code>id</code> is set.</p>
<pre class="lang-js prettyprint-override"><code>const [id, setId] = useState(""... | how to prevent getting multiple responses in Axios react native? | reactjs|react-native|axios | 0 | 100 | 1 | 72,236,591 | 72,236,591 | 1 | true | 2022-05-13T23:54:11.367Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to prevent getting multiple responses in Axios react native?<p>I want to get data from database.
the function <strong>CurrentUserId</strong> get the deta... |
72,229,445 | The distributed version of Milvus 2.0 loads data without load balancing<p>For the distributed version of Milvus 2.0.2, I tested to increase the number of querynodes online. It seems that the data will not be load balanced, and the memory usage of newly started nodes is very low. It will be balanced after restarting the... | <p>How much data do you have? each 512M data is a segment, and it only balanced by segment level.</p>
<p>If you have smaller data amount and you want to scale your qps, memory replica is exactly you are looking for and we will release on 2.1</p> | The distributed version of Milvus 2.0 loads data without load balancing | load-balancing|milvus | 0 | 34 | 1 | 72,236,831 | 72,236,831 | 1 | true | 2022-05-13T12:14:34.160Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
The distributed version of Milvus 2.0 loads data without load balancing<p>For the distributed version of Milvus 2.0.2, I tested to increase the number of que... |
72,191,100 | Blazor server not scaling (zoomed) on mobile<p>I made a small sensor application in Blazor server.</p>
<p>However, when I view the app on my phone, it shows these scrolling bars (I always need to pinch/zoom out my page to make the scrolling bars disappear and show the app like it should).
It looks like the app is zoome... | <p>It doesn't matter what framework you're using. At the end of the day, it all renders with either inline styles or CSS rules. If you want something to shrink with the window, then either the item or one of its parents needs its size to be set in relation to the window.</p>
<p>By default, Blazor has Bootstrap built in... | Blazor server not scaling (zoomed) on mobile | css|blazor|blazor-server-side|mudblazor | 0 | 229 | 2 | 72,236,887 | 72,236,887 | 1 | true | 2022-05-10T18:04:54.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Blazor server not scaling (zoomed) on mobile<p>I made a small sensor application in Blazor server.</p>
<p>However, when I view the app on my phone, it shows ... |
72,235,799 | Simple way to convert time text strings to ints for numeric operation in Qliksense data load editor<p><code>TimeTemp</code> displays as such <code>168@06:43:23AM</code></p>
<p><code>stationTime</code> displays opening and closing times of service area stations as such <code>6AM-10AM</code></p>
<p>I’ve separated <code>T... | <p>Consider the script below. (ive split it in multiple steps/loads just for clarity)</p>
<pre><code>RawData:
Load
// convert to time
Time(Time#( openingTime, 'h:mm:ss')) as openingTime,
Time(Time#( closingTime, 'h:mm:ss')) as closingTime
;
Load
// "convert" to time looking string
// 6AM will be 6... | Simple way to convert time text strings to ints for numeric operation in Qliksense data load editor | string|timestamp|integer|qliksense | 0 | 51 | 1 | 72,236,930 | 72,236,930 | 1 | true | 2022-05-13T22:01:05.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Simple way to convert time text strings to ints for numeric operation in Qliksense data load editor<p><code>TimeTemp</code> displays as such <code>168@06:43:... |
72,222,513 | could not initiate GSSAPI security context on Postgres 14 logical replication<p>I am following this <a href="https://computingforgeeks.com/enable-ssl-encryption-password-authentication-postgresql/" rel="nofollow noreferrer">post</a> to enable ssl on Postgres 14 for logical replication. Then try to make connection on cl... | <p>Mostly people just use serve certs. Using client certs is unusual, I would say especially in the case of a logical replication subscriber. But if you do actually want the publisher to demand client certs, it is not configured incorrectly to that purpose (or at least, not that we can tell from the current data). T... | could not initiate GSSAPI security context on Postgres 14 logical replication | postgresql|ssl|database-replication | 0 | 658 | 1 | 72,236,970 | 72,236,970 | 1 | true | 2022-05-12T22:03:29.167Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
could not initiate GSSAPI security context on Postgres 14 logical replication<p>I am following this <a href="https://computingforgeeks.com/enable-ssl-encrypt... |
72,236,490 | How to load videos from Firebase Storage and return them as React component?<p>I have a video stored in my firebase storage and and I'm able to access it's download URL from firebase and trying to do this:</p>
<pre><code>const App = () => {
var videoRef = storage.ref('myVideo.mp4')
return (
<video width=&... | <p>if it is only one video you want to play, you can go to your firebase storage where you saved that video. Click on it, to your right you will see Name property. Right click on link below and copy link address.
You can then do this:</p>
<pre><code><source src="put the link here" />
</code></pre> | How to load videos from Firebase Storage and return them as React component? | reactjs|firebase|video-streaming|firebase-storage | 0 | 175 | 1 | 72,236,979 | 72,236,979 | 1 | true | 2022-05-14T00:27:28.227Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to load videos from Firebase Storage and return them as React component?<p>I have a video stored in my firebase storage and and I'm able to access it's d... |
72,236,427 | Dataclasses - AttributeError: type object 'Arguments' has no attribute 'column_names'<p>I am trying to use dataclasses to create a list of strings that can be used in a function. I am getting an attribute error when trying to access the information normally as I would with something like <code>my_int: Optional[int] = f... | <p>It seems like you are trying to use <code>column_names</code> as a class variable, rather than a dataclass field. That is, in your case above you would need to first instantiate an instance of <code>Arguments</code> such as <code>Arguments(column_names=...)</code> to be able to access <code>column_names</code> attri... | Dataclasses - AttributeError: type object 'Arguments' has no attribute 'column_names' | python|attributes|python-dataclasses|data-class | 0 | 398 | 1 | 72,237,014 | 72,237,014 | 1 | true | 2022-05-14T00:11:35.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dataclasses - AttributeError: type object 'Arguments' has no attribute 'column_names'<p>I am trying to use dataclasses to create a list of strings that can b... |
72,225,148 | Rounded corners not shown for QPushButton in Qt Designer<p>I want to the corners to be rounded and hover for a QPushButton in Qt designer. Changing the style sheet has no effect. What am doing wrong?</p>
<pre class="lang-css prettyprint-override"><code> QPushButton#pushButton_3{
background: rgb(170, 170, 255... | <h2>TL;DR</h2>
<p>Use smaller values for <code>border-radius</code>, usually half of a standard font size (2 <= radius <= 10).</p>
<h2>Further explanation</h2>
<p>The QSS border radius <em>must</em> have a reasonable value.</p>
<p>The private QStyleSheetStyle <em>normalizes</em> the border radius (or, better, all... | Rounded corners not shown for QPushButton in Qt Designer | python-3.x|pyqt5|qt-designer|qtstylesheets|qpushbutton | 0 | 235 | 1 | 72,237,077 | 72,237,077 | 1 | true | 2022-05-13T06:12:58.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Rounded corners not shown for QPushButton in Qt Designer<p>I want to the corners to be rounded and hover for a QPushButton in Qt designer. Changing the style... |
72,235,677 | ElasticsearchException invalid missing tagline - Opensearch<p>Currently trying to start my app but unable because of this exception being thrown when starting app</p>
<pre><code>Caused by: org.springframework.data.elasticsearch.UncategorizedElasticsearchException: Invalid or missing tagline [The OpenSearch Project: htt... | <p>You're probably using a REST client version that is above 7.10.2 (version at which Opensearch made the fork).</p>
<p>If you downgrade your client to 7.10.2 or use the appropriate <a href="https://opensearch.org/docs/latest/clients/java-rest-high-level/" rel="nofollow noreferrer">Opensearch REST client</a>, it will w... | ElasticsearchException invalid missing tagline - Opensearch | java|spring|spring-boot|opensearch | 0 | 211 | 1 | 72,237,262 | 72,237,262 | 1 | true | 2022-05-13T21:41:33.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ElasticsearchException invalid missing tagline - Opensearch<p>Currently trying to start my app but unable because of this exception being thrown when startin... |
72,231,703 | How to test specific hSpec property using `--match` and cabal<p>I have a bunch of test modules and I can run a specific one using cabal test.</p>
<pre><code>cabal test Module.Name.Here
</code></pre>
<p>The module contains many tests and one of them fails and it gives the following message.</p>
<pre><code> To rerun use... | <p>Run it like this:</p>
<pre><code>cabal test —test-options=—match=/Module.Name.Here/hspecDescribeString/hspecPropName/
</code></pre> | How to test specific hSpec property using `--match` and cabal | unit-testing|haskell|testing|cabal|hspec | 0 | 82 | 1 | 72,237,547 | 72,237,547 | 1 | true | 2022-05-13T15:04:11.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to test specific hSpec property using `--match` and cabal<p>I have a bunch of test modules and I can run a specific one using cabal test.</p>
<pre><code>... |
72,237,323 | How to add eye symbol in JPasswordField?<p>How can I add an eye symbol in my java application using java swing?</p> | <p>You can implement this several ways. In the below code, I create a <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JPanel.html" rel="nofollow noreferrer">JPanel</a> which contains a <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/passwordfield.html" rel="nofol... | How to add eye symbol in JPasswordField? | java|swing | 0 | 111 | 1 | 72,237,620 | 72,237,620 | 1 | true | 2022-05-14T04:20:42.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add eye symbol in JPasswordField?<p>How can I add an eye symbol in my java application using java swing?</p> |
72,237,556 | Can I use expo packages in react native cli?<blockquote>
<p>Can I use expo packages in react native cli ? <br/></p>
</blockquote> | <p>Yes you can.</p>
<p>You can read the full article here:
<a href="https://blog.expo.dev/you-can-now-use-expo-apis-in-any-react-native-app-7c3a93041331" rel="nofollow noreferrer">https://blog.expo.dev/you-can-now-use-expo-apis-in-any-react-native-app-7c3a93041331</a></p> | Can I use expo packages in react native cli? | reactjs|react-native|package|expo | 0 | 58 | 1 | 72,237,635 | 72,237,635 | 1 | true | 2022-05-14T05:19:59.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can I use expo packages in react native cli?<blockquote>
<p>Can I use expo packages in react native cli ? <br/></p>
</blockquote> |
72,237,358 | How to convert an activity to fragment in Android studio<p>Can someone tell me how i do that or someone can change this activity to fragment for me.
i have very few experiance in cooding right now, so i can't do this my self.</p>
<pre><code>public class SplashActivity extends AppCompatActivity {
FirebaseAuth auth;
Fir... | <p>I would start by understanding their lifecycles (activity and fragment). We can then have a good idea of where to move your code from onCreate() in activity to onViewCreated() in Fragment. Also notice that activity extends AppCompatActivity while Fragment extends Fragment class. With those two observations we can no... | How to convert an activity to fragment in Android studio | android|android-fragments|android-activity | 0 | 90 | 1 | 72,237,746 | 72,237,746 | 1 | true | 2022-05-14T04:28:45.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to convert an activity to fragment in Android studio<p>Can someone tell me how i do that or someone can change this activity to fragment for me.
i have v... |
72,237,315 | Vuetify carousel not taking up full width-height<p>I want to make a carousel that takes up the full width and height of a viewport.
I'm using Vuetify in a vue.js 2 project.
Here's my code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pr... | <ol>
<li><p>Remove the padding from <code>v-container</code> by applying a <code>class</code> of <code>pa-0</code> (sets <b><code>p</code></b>adding on <b><code>a</code></b>ll sides to <b><code>0</code></b>).</p>
</li>
<li><p>Remove margin and max-width from <code>v-container</code> by setting its <code>fluid</code> pr... | Vuetify carousel not taking up full width-height | javascript|html|css|vue.js|vuetify.js | 0 | 154 | 1 | 72,237,817 | 72,237,817 | 1 | true | 2022-05-14T04:18:01.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Vuetify carousel not taking up full width-height<p>I want to make a carousel that takes up the full width and height of a viewport.
I'm using Vuetify in a vu... |
72,237,111 | height inherit not working with absolute position<p>I have an absolute element that is the background. I can't set it as the div's background because it is animated and it requires 2 css classes. I simplified it to let you understand the problem.</p>
<p>I would like to set the height of this absolute element same of it... | <p>To fix this, you need to <strong>correctly position the <code>.stars</code> div absolutely by positioning its parent div <code>.main-content</code> relatively</strong>. (Absolutely positioned elements need their parents to be relatively positioned otherwise they will be positioned absolutely to the body element). Th... | height inherit not working with absolute position | html|css|absolute | 0 | 132 | 2 | 72,237,881 | 72,237,881 | 1 | true | 2022-05-14T03:26:10.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
height inherit not working with absolute position<p>I have an absolute element that is the background. I can't set it as the div's background because it is a... |
72,236,701 | Reading Latitude and longitude from CSV file and display in google map after applying filtering to a column<p>I managed to fetch long and lat values from CSV and loop them to display all values in google map .Now i need to filter column Fuel_Type = "Unleaded 91" how to add this to while loop ?
<em>while( (lin... | <p>you can check if <code>line</code> contains your fuel type or not, like this:</p>
<pre><code>while( (line = reader.readLine()) != null) // Read until end of file
{
if(line.contains("YOUR_FUEL_TYPE"){
double lat = Double.parseDouble(line.split(",")[7]);
double lon =... | Reading Latitude and longitude from CSV file and display in google map after applying filtering to a column | android|csv|google-maps|arraylist | 0 | 113 | 1 | 72,237,883 | 72,237,883 | 1 | true | 2022-05-14T01:29:49.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reading Latitude and longitude from CSV file and display in google map after applying filtering to a column<p>I managed to fetch long and lat values from CSV... |
72,232,402 | cannot read property navigate of undefined<p>I am getting this error <code>cannot read the property of navigate</code> when try to <code>navigate</code> to the <code>SignInScreen</code></p>
<p>this is the splash screen that have created</p>
<pre><code>import React from 'react';
import {
View,
Text,
Touch... | <p>Looks like you missed to wrap main Navigation container and then drawer this can work :</p>
<pre><code> import * as React from 'react';
import { Button, View } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/... | cannot read property navigate of undefined | react-native|react-navigation | 0 | 166 | 1 | 72,238,068 | 72,238,068 | 1 | true | 2022-05-13T16:00:02.363Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
cannot read property navigate of undefined<p>I am getting this error <code>cannot read the property of navigate</code> when try to <code>navigate</code> to t... |
72,220,023 | Is it possible to download the first 100 lines of a big file with millions of lines from S3?<p>I have multiple 100MB raw files with series of user activities in CSV format. I only want to download the first 100 lines of the files.</p>
<p>The problem is that each file may have different CSV header columns, and data valu... | <p><strong>There is no built-in way, <a href="https://docs.aws.amazon.com/whitepapers/latest/s3-optimizing-performance-best-practices/use-byte-range-fetches.html" rel="nofollow noreferrer">byte-range fetches</a> are the best way forward.</strong></p>
<p>As you're not sure of the header or line length in each case, down... | Is it possible to download the first 100 lines of a big file with millions of lines from S3? | java|csv|kotlin|amazon-s3 | 0 | 176 | 2 | 72,238,388 | 72,238,388 | 1 | true | 2022-05-12T17:42:36.670Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it possible to download the first 100 lines of a big file with millions of lines from S3?<p>I have multiple 100MB raw files with series of user activities... |
72,237,548 | getting this error Error: Must request at least one colour from a hue palette<p><a href="https://i.stack.imgur.com/gcad6.jpg" rel="nofollow noreferrer">enter image description here</a>Im trying to stack the above given formula to use on my code, but i keep getting this error
Error: Must request at least one colour from... | <p>Beginning with provided dataframe as picture:</p>
<pre><code>df <- structure(list(Continent = c("Africa", "Asia", "Europe", "North America",
"Oceania", "South America"), sumCumDeaths = c(829L, 10864L, 42563L,
42896L, 25L, 6198L), sumCumRecovered = c(92... | getting this error Error: Must request at least one colour from a hue palette | r|ggplot2 | 0 | 87 | 1 | 72,238,493 | 72,238,493 | 1 | true | 2022-05-14T05:19:17.923Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
getting this error Error: Must request at least one colour from a hue palette<p><a href="https://i.stack.imgur.com/gcad6.jpg" rel="nofollow noreferrer">enter... |
72,234,808 | Jackson serialization/deserialization problems when using @JsonTypeInfo. Can someone explain to me how this is working?<p>Say I have these classes</p>
<pre><code>public abstract class Shape {}
public class Circle extends Shape{
private int r;
...
}
public class Main {
public static void main(String [] arg... | <p>It's working as expected. When you add the <code>JsonTypeInfo</code> and <code>JsonSubTypes</code> annotations to your <code>Shape</code> class like you have done below:</p>
<pre><code>@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
property = "type")
@JsonSubTypes({
@JsonSubTypes.Type(v... | Jackson serialization/deserialization problems when using @JsonTypeInfo. Can someone explain to me how this is working? | java|json|serialization|jackson|annotations | 0 | 213 | 1 | 72,238,749 | 72,238,749 | 1 | true | 2022-05-13T19:54:44.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Jackson serialization/deserialization problems when using @JsonTypeInfo. Can someone explain to me how this is working?<p>Say I have these classes</p>
<pre><... |
72,217,648 | I have 2 scrolls bar on my page , can't figure out why<p>I'm creating a website at the moment for quite a long time now. The last thing I did with it was to make it responsive on my second smaller laptop with media queries. However, I'm noting that another scrollbar appeared when I opened the site on my main computer. ... | <p>So basically you were having overflow enabled on your div and the default is of body.
therefore you saw 2 scrollbars. One of div and one of body.</p>
<p>That's great if you've solved it by disabling the default body scrollbar and keeping the div overflowable in the y-axis.</p> | I have 2 scrolls bar on my page , can't figure out why | html|css|scrollbar | 0 | 36 | 3 | 72,238,752 | 72,238,752 | 1 | true | 2022-05-12T14:40:40.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I have 2 scrolls bar on my page , can't figure out why<p>I'm creating a website at the moment for quite a long time now. The last thing I did with it was to ... |
72,236,589 | FontAwesome icons are not showing, Why? (Font-awesome/4.2.0)<p>Fontawesome icons are not showing up .I want to add them inside the footer .My css and html file's are in the same directory.But the icon's are still invisible.(And also page takes longer than usual to load,i guess i added enoguh information but the site st... | <p>I managed to reproduce your problem by running the code you gave directly, locally in my browser.</p>
<p>The SO snippet system does add things (like doctype, body element if it's not there already etc) to the code so something was being done that allowed the FA icons to load in the snippet system but not in the raw ... | FontAwesome icons are not showing, Why? (Font-awesome/4.2.0) | html|css|frontend|font-awesome | 0 | 222 | 2 | 72,238,774 | 72,238,774 | 1 | true | 2022-05-14T00:57:11.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
FontAwesome icons are not showing, Why? (Font-awesome/4.2.0)<p>Fontawesome icons are not showing up .I want to add them inside the footer .My css and html fi... |
72,229,712 | SQLAlchemy: Using sessionmaker as contextmanger forces to expunge manually<p>I'm using SQLAlchemy and trying to use the sessionmaker as a context manager for my transaction (following the <a href="https://docs.sqlalchemy.org/en/14/orm/session_api.html#sqlalchemy.orm.sessionmaker.begin" rel="nofollow noreferrer">documen... | <p>In the second, "working" example, the context manager is the <code>SessionTransaction</code> object returned by <code>session.begin</code>, not the session itself. The session is not closed before accessing the attribute and therefore there is no <code>DetachedInstanceError</code>: the instance is never e... | SQLAlchemy: Using sessionmaker as contextmanger forces to expunge manually | python|sqlalchemy|contextmanager | 0 | 78 | 1 | 72,238,841 | 72,238,841 | 1 | true | 2022-05-13T12:36:04.540Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQLAlchemy: Using sessionmaker as contextmanger forces to expunge manually<p>I'm using SQLAlchemy and trying to use the sessionmaker as a context manager for... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.