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,223,522 | Adding New Relationships in Neo4j Database using apoc.periodic.iterate<p>I have a Neo4j database with two kinds of nodes - Authors and Articles. Some of the articles have more than one author. I am trying to create an undirected relationship between the authors who worked together on an article. My current non-function... | <p>The problem stems from your first statement:</p>
<pre><code>MATCH (a:Author)
WHERE (a)-[:WROTE]->()<-[:WROTE]-(b:Author)
RETURN a,b
</code></pre>
<p>Cypher does not allow introducing new variables on the <code>WHERE</code> part of the query, so your <code>(b:Author)</code> will not be allowed since it's locate... | Adding New Relationships in Neo4j Database using apoc.periodic.iterate | neo4j|neo4j-apoc | 0 | 21 | 1 | 72,224,299 | 72,224,299 | 0 | true | 2022-05-13T01:16:52.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Adding New Relationships in Neo4j Database using apoc.periodic.iterate<p>I have a Neo4j database with two kinds of nodes - Authors and Articles. Some of the ... |
72,223,987 | how can i add inline javascripts to navigation template in Google App Scripts<p>I am trying to develop a navigational menu being referenced to different pages in my app.
am using Materialize css as a ui and placed the nav codes in a separate file</p>
<pre><code> <div id="navigation">
<nav&... | <p>Instead of creating an <code>HtmlOutput</code>, you should create an <code>HtmlTemplate</code> object and <code>evaluate</code> it.</p>
<p>Reference: <a href="https://developers.google.com/apps-script/reference/html/html-template" rel="nofollow noreferrer">Class HtmlTemplate</a></p>
<blockquote>
<p>A template object... | how can i add inline javascripts to navigation template in Google App Scripts | javascript|google-apps-script | 0 | 29 | 1 | 72,224,310 | 72,224,310 | 0 | true | 2022-05-13T02:57:15.727Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can i add inline javascripts to navigation template in Google App Scripts<p>I am trying to develop a navigational menu being referenced to different page... |
72,223,510 | I cannot concatenate a variable + string + variable this line of code gives me a error "None of the following functions can called with the argument s<p>I'm a newcomer in this, and I'm learning kotlin in android studio, and I'm stacked in this error, "None of the following functions can be called with the argument... | <p>Try String Templates in Kotlin</p>
<p>String templates allow you to include variable references and expressions into strings. When the value of a string is requested, all references and expressions are substituted with actual values.</p>
<blockquote>
<p>Take this kotlin example. <a href="https://play.kotlinlang.org/... | I cannot concatenate a variable + string + variable this line of code gives me a error "None of the following functions can called with the argument s | java|android|kotlin | 0 | 44 | 2 | 72,224,369 | 72,224,369 | 0 | true | 2022-05-13T01:13:03.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I cannot concatenate a variable + string + variable this line of code gives me a error "None of the following functions can called with the argument s<p>I'm ... |
72,207,875 | Strong consistency and replication factor<p>I am trying to improve my knowledge in distributed databases and the various levels of consistency that could be achieved. First, let me define some terms I will use (please, tell me if I am wrong):</p>
<p><strong>strong consistency</strong>: as reported by dr. Kleppmann in &... | <p>The way you described the systems - having a leader and a success is when a majority of nodes accepted a write - this implies you are using single leader replication based on consensus. (please, ask if this requires explanation)</p>
<p>In a consensus based model, all nodes will be updated in the same order, but ther... | Strong consistency and replication factor | database-replication|consistency|distributed-database|cap-theorem | 0 | 107 | 1 | 72,224,415 | 72,224,415 | 0 | true | 2022-05-11T21:39:18.327Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Strong consistency and replication factor<p>I am trying to improve my knowledge in distributed databases and the various levels of consistency that could be ... |
72,190,572 | Login error for admin SQL Server during terraform plan<p>I'm building an Azure infrastructure with terraform. I need to create a specific user of the DB for each DB in the server. To create the users I use the provider "betr-io / mssql", to create the users I use the following script:</p>
<pre><code>resource ... | <p>The only solution I have found is to destroy the users and recreate them with the databases.
Unfortunately I haven't found a way to add devops to the sql server whitelist.</p> | Login error for admin SQL Server during terraform plan | terraform|azure-sql-server | 0 | 139 | 1 | 72,224,498 | 72,224,498 | 0 | true | 2022-05-10T17:18:05.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Login error for admin SQL Server during terraform plan<p>I'm building an Azure infrastructure with terraform. I need to create a specific user of the DB for ... |
72,218,878 | how do I get the position of a certain point from BoxGeometry?<p>There is a regular <strong>BoxGeometry</strong> whose dimensions are set relative to a group of objects.<br />
How to get the position of a certain point in this <strong>BoxGeometry</strong> (x:1, y:1, z:1), relative to the world.</p>
<p><a href="https://... | <p>I wrote such a function.</p>
<pre><code>const getBoxVertexPos = (box, side) => {
box = new THREE.Box3().setFromObject(box);
let size = box.getSize(new THREE.Vector3()),
center = box.getCenter(new THREE.Vector3());
return {
x: side[0] > 0 ? (center.x + (size.x / 2)) : (center.x - (size.x / 2)),
... | how do I get the position of a certain point from BoxGeometry? | three.js | 0 | 49 | 1 | 72,224,527 | 72,224,527 | 0 | true | 2022-05-12T16:07:39.157Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how do I get the position of a certain point from BoxGeometry?<p>There is a regular <strong>BoxGeometry</strong> whose dimensions are set relative to a group... |
72,224,512 | How do you search database record with multiple words?<p>So, say i have a record in database like "Something with corn".</p>
<p>if i use sql like "SELECT * FROM table WHERE column LIKE '%Something corn%'", the record wont show.</p>
<p>is there a way so when i search "Something Corn", i can... | <pre><code>SELECT * FROM table WHERE column LIKE '%Something%corn%';
</code></pre> | How do you search database record with multiple words? | sql|ms-access | 0 | 28 | 1 | 72,224,547 | 72,224,547 | 0 | true | 2022-05-13T04:37:42.607Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do you search database record with multiple words?<p>So, say i have a record in database like "Something with corn".</p>
<p>if i use sql like &... |
72,221,650 | How to pass parameters in Next.js without SSR?<p>I try pass params as docs says here: <a href="https://nextjs.org/docs/routing/dynamic-routes" rel="nofollow noreferrer">https://nextjs.org/docs/routing/dynamic-routes</a></p>
<p>but the received params are not string??!! How could it be string array? I understand a bit w... | <p>Since when using query parameters you can pass either 0 value, 1 value or multiple values for the same parameter.</p>
<pre><code>http://www.youtube.com/action?id=a&id=b
http://www.youtube.com/action?id=a,b
http://www.youtube.com/action
</code></pre>
<p>So any query param you are extracting can either be a string... | How to pass parameters in Next.js without SSR? | reactjs|typescript|next.js | 0 | 345 | 2 | 72,224,618 | 72,224,618 | 0 | true | 2022-05-12T20:18:28.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to pass parameters in Next.js without SSR?<p>I try pass params as docs says here: <a href="https://nextjs.org/docs/routing/dynamic-routes" rel="nofollow ... |
72,224,623 | Firebase, Changing User password via Email with unique password requirements<p>Currently, Firebase offers the option to send an email to a users email who wishes to change their password. Unfortunately, Firebase does not allow you to edit their password requirements which I believe is locked at requiring only 6 charact... | <p>To solve this problem, the only answer is to create your own mailer service with your own basic mailer service, host website, and API.</p>
<p>What you need:
An application which uses Firebase.
A hosted API which uses Firebase and a 3rd party Mailer such as Node with NodeMailer - hosted on Heroku
A React app which ca... | Firebase, Changing User password via Email with unique password requirements | reactjs|firebase|firebase-authentication | 0 | 110 | 1 | 72,224,624 | 72,224,624 | 0 | true | 2022-05-13T04:54:14.247Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firebase, Changing User password via Email with unique password requirements<p>Currently, Firebase offers the option to send an email to a users email who wi... |
72,211,579 | service.acknowledge is undefined using Digital Goods API with Google Play in TWA<p>I have an web app in development to which I am trying to add Google Play Billing on Android and Chrome OS. My implementation is basically the same as in <a href="https://developer.chrome.com/docs/android/trusted-web-activity/receive-pay... | <p>Apparently that is because they changed the API and just <a href="https://github.com/GoogleChrome/developer.chrome.com/issues/1631" rel="nofollow noreferrer">have not yet updated that page of documentation</a>. Apparently <code>service.acknowledge</code> was removed, and they now require passing the purchase token ... | service.acknowledge is undefined using Digital Goods API with Google Play in TWA | android|google-play|progressive-web-apps|trusted-web-activity|payment-request-api | 0 | 38 | 1 | 72,224,657 | 72,224,657 | 0 | true | 2022-05-12T07:25:32.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
service.acknowledge is undefined using Digital Goods API with Google Play in TWA<p>I have an web app in development to which I am trying to add Google Play B... |
72,224,744 | Type '{ author: Author; }' is not assignable to type 'IntrinsicAttributes & Author'<p>I am totally new to TS and react and I ran into a problem. I tried searching many places and can't seem to fix it. The whole error message is:
Type '{ author: Author; }' is not assignable to type 'IntrinsicAttributes & Author'.
Pr... | <p>You declare <code>Avatar</code> as this:</p>
<pre><code>const Avatar:React.FC<Author> = ({
</code></pre>
<p>And the <code>Author</code> type as this:</p>
<pre><code>interface Author{
avatarUrl: string;
name: string;
}
</code></pre>
<p>Which means that <code>Avatar</code> will expect two props <code>avatarU... | Type '{ author: Author; }' is not assignable to type 'IntrinsicAttributes & Author' | javascript|reactjs|typescript | 0 | 62 | 1 | 72,224,791 | 72,224,791 | 0 | true | 2022-05-13T05:15:36.330Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Type '{ author: Author; }' is not assignable to type 'IntrinsicAttributes & Author'<p>I am totally new to TS and react and I ran into a problem. I tried sear... |
72,171,162 | Obtaining access to Graph API without user interaction<p>I'm new to graph API. I'm creating an app that can access user email using Graph API. I've been using the device token method which is used <a href="https://docs.microsoft.com/en-us/graph/tutorials/dotnet-core?tutorial-step=3" rel="nofollow noreferrer">here</a>.<... | <p>After reading @Marc and @Jeremy Lakeman I rewrote the code using IConfidentialClientApplication. And used <a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-daemon-app-configuration?tabs=dotnet" rel="nofollow noreferrer">this</a> as a guide from Microsoft guides.</p>
<p>And came up wit... | Obtaining access to Graph API without user interaction | c#|.net|microsoft-graph-api | 0 | 482 | 2 | 72,224,841 | 72,224,841 | 0 | true | 2022-05-09T11:22:12.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Obtaining access to Graph API without user interaction<p>I'm new to graph API. I'm creating an app that can access user email using Graph API. I've been usin... |
72,221,602 | NextJS props shown warning<p>I've just started to learn Next, have some question.
When I'm trying to send props from parent to child and I'm receiveng some error:
<br /><em>Type '({ name }: { name: any; }) => JSX.Element' is not assignable to type 'NextPage<{}, {}>'.
Type '({ name }: { name: any; }) => JSX.... | <p>You have to create the property type for NextPage using the generic provided.</p>
<pre><code>
interface Props {
name: any;
}
const PositionData: NextPage<Props> = ({name}:Props) =>{
</code></pre> | NextJS props shown warning | typescript|next.js | 0 | 63 | 1 | 72,224,879 | 72,224,879 | 0 | true | 2022-05-12T20:14:02.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
NextJS props shown warning<p>I've just started to learn Next, have some question.
When I'm trying to send props from parent to child and I'm receiveng some e... |
72,210,234 | How to use Unicode chars with Nokogiri::XML::DocumentFragment<p>I want to use Unicode char with <code>Nokogiri::XML::DocumentFragment</code>.</p>
<pre><code>frag = Nokogiri::XML::DocumentFragment.parse("<foo>ü</foo>")
=> <foo>&#xFC;</foo>
</code></pre>
<p>The unicode char is esc... | <p>According to the documentation <a href="https://nokogiri.org/tutorials/parsing_an_html_xml_document.html#encoding" rel="nofollow noreferrer">here</a> the text is internally stored as UTF-8 already.</p>
<blockquote>
<p>Strings are always stored as UTF-8 internally. Methods that return text values will always return U... | How to use Unicode chars with Nokogiri::XML::DocumentFragment | ruby|xml|nokogiri | 0 | 47 | 1 | 72,224,903 | 72,224,903 | 0 | true | 2022-05-12T04:46:34.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use Unicode chars with Nokogiri::XML::DocumentFragment<p>I want to use Unicode char with <code>Nokogiri::XML::DocumentFragment</code>.</p>
<pre><code>... |
72,163,245 | How to soft delete a selected row in a DataGrid View using a button<p>So I have a DataGridView called MyMovieDataDrid which is connected to a sql server, and I already have my IsDeleted property, and a delete repository which is shown below, by the way my IsDeleted property automatically shows up as a checkbox so if th... | <p>I like Karen's approach for being more "how it should be done", but it's quite a far cry from what you've written and I suspect you might not want to change your current code massively</p>
<p>The basic problem with your approach is you don't get the movie id from the row that was clicked, you make a new mo... | How to soft delete a selected row in a DataGrid View using a button | c#|sql-server|winforms|datagridview|soft-delete | 0 | 113 | 2 | 72,225,067 | 72,225,067 | 0 | true | 2022-05-08T16:53:35.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to soft delete a selected row in a DataGrid View using a button<p>So I have a DataGridView called MyMovieDataDrid which is connected to a sql server, and... |
72,216,544 | Can't apply overflow in a flexbox<p>I'm struggling to make <code>overflow-y</code> works within <code>flex</code>.</p>
<pre class="lang-html prettyprint-override"><code><div class="flex h-full flex-col">
<mark class="bg-red-900 p-2 font-semibold text-white"> Warning message </mark&g... | <p>One should add <code>min-h-0</code> to <code><main></code>.. I swear I tried everything.</p> | Can't apply overflow in a flexbox | html|css|flexbox|tailwind-css | 0 | 56 | 2 | 72,225,099 | 72,225,099 | 0 | true | 2022-05-12T13:30:59.833Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't apply overflow in a flexbox<p>I'm struggling to make <code>overflow-y</code> works within <code>flex</code>.</p>
<pre class="lang-html prettyprint-over... |
72,161,546 | C# DbContext Connection Type and Server<p>I have a WinForm application developed on one laptop connected to an SQL server on the same laptop.</p>
<p>I have a new laptop and have created a docker setup for an SQL server. I am looking to change the code base to use the new SQL server.</p>
<p>The new server is using SQL S... | <p>The database context class is generated code inheriting as far as I can tell on System.Data.Linq.DataContext, as shown by this code from my application.</p>
<pre><code>[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="Blah")]
public partial class BlahDBDataContext : System.Data.Linq.DataContext
{
<... | C# DbContext Connection Type and Server | c#|sql-server | 0 | 50 | 1 | 72,225,229 | 72,225,229 | 0 | true | 2022-05-08T13:36:10.440Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
C# DbContext Connection Type and Server<p>I have a WinForm application developed on one laptop connected to an SQL server on the same laptop.</p>
<p>I have a... |
72,224,321 | Application Load Balancer Target Group Register/Deregister Infinite Loop<h2>Setup</h2>
<h4>Security Groups</h4>
<ul>
<li><p>ALB (inbound rules)</p>
<ul>
<li><code>HTTPS:443 from 0.0.0.0/0 & ::/0</code></li>
<li><code>HTTP:80 from 0.0.0.0/0 & ::/0</code></li>
</ul>
</li>
<li><p>Cluster (inbound rules)</p>
<ul>
<... | <p>After enabling AWS CloudWatch logs in my task definition's container specs, I was able to see that the issue was actually with an AWS RDS instance.</p>
<p>The RDS instances' SG was accepting traffic from an old cluster SG (which no longer exists), so that clears up why a health check wasn't being performed and the r... | Application Load Balancer Target Group Register/Deregister Infinite Loop | amazon-web-services|docker|amazon-ecs | 0 | 243 | 1 | 72,225,245 | 72,225,245 | 0 | true | 2022-05-13T04:07:14.580Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Application Load Balancer Target Group Register/Deregister Infinite Loop<h2>Setup</h2>
<h4>Security Groups</h4>
<ul>
<li><p>ALB (inbound rules)</p>
<ul>
<li>... |
72,223,515 | Handling the Optional which doesn't expected to be empty<p>I have the following method</p>
<pre><code>private Invoice createInvoice(SomeParameter someParameter) {
Invoice invoice = new Invoice();
Optional<Customer> customer = customerRepository.findByCode(someParameter.getCustomerCode());
invoice.Cust... | <pre><code>private Invoice createInvoice(SomeParameter someParameter) {
Invoice invoice = new Invoice();
Optional<Customer> customer = customerRepository.findByCode(someParameter.getCustomerCode());
//1.invoice.Customer(resource.orElse(null));
//2.resource.ifPresent(res->invoice.Customer(res));... | Handling the Optional which doesn't expected to be empty | java|option-type | 0 | 91 | 3 | 72,225,358 | 72,225,358 | 0 | true | 2022-05-13T01:13:24.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Handling the Optional which doesn't expected to be empty<p>I have the following method</p>
<pre><code>private Invoice createInvoice(SomeParameter someParamet... |
72,225,119 | Angular drop down giving same value for other two options in mat form<p>I am trying to get selected option in angular through below code. But when I select 1 drop down option then other two gets same as shown in pic. How can I fix this.</p>
<pre><code> <div *ngFor="let candidate of candidates">
<di... | <p>Because you need to use the same variable <code>selectedValue</code>. You better define the array of selected values.</p>
<pre><code>let selectedArray: number[] = candidates.map(_ => 0);
</code></pre>
<p>And then, add the index variable in ngFor loop.</p>
<pre><code><div *ngFor="let candidate of candidate... | Angular drop down giving same value for other two options in mat form | angular|mat-form-field | 0 | 44 | 1 | 72,225,367 | 72,225,367 | 0 | true | 2022-05-13T06:09:18.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular drop down giving same value for other two options in mat form<p>I am trying to get selected option in angular through below code. But when I select 1... |
72,223,654 | pywintypes.com_error: (-2147352567,'Exception occured.', (0, None, None, None, 0, -2147352566)<p>Background:
I am using xlwings to open an xlsx file and use a list (tuple) to receive all the data of the table. The code is as follows.</p>
<pre class="lang-py prettyprint-override"><code>def get_excel_all_data(path: strin... | <p>Oh my god! I know what happend!</p>
<p>I use the dichotomous method to find the specific ranks where the problem occurs.</p>
<p>Then I find some data is displayed as horizontal lines. Excel tells me that this is the date format, but the value is too large, so it shows up as #######.</p>
<p>When I changed it to the c... | pywintypes.com_error: (-2147352567,'Exception occured.', (0, None, None, None, 0, -2147352566) | python|python-3.x|xlsx|xlwings | 0 | 1,850 | 1 | 72,225,397 | 72,225,397 | 0 | true | 2022-05-13T01:48:14.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pywintypes.com_error: (-2147352567,'Exception occured.', (0, None, None, None, 0, -2147352566)<p>Background:
I am using xlwings to open an xlsx file and use ... |
72,175,067 | Stripping mapping such as colour and line type from an existing ggplot2 object to re-do it<p>Within a Shiny application, I would like to provide users the option to select a regression method and then show the fit on their data on an existing <em>ggplot2</em> graph (showing the original data as a geom_step) --> so t... | <p>Next to the answer from Allan, I also want to provide this simple solution I found the other day:</p>
<pre><code>p1 + scale_colour_manual('', values = rep(c('red', 'red', 'blue', 'blue'),2),
breaks = c(unique(DF$combined), unique(predDF$method))) +
scale_linetype_manual('', values = rep(... | Stripping mapping such as colour and line type from an existing ggplot2 object to re-do it | r|ggplot2 | 0 | 21 | 2 | 72,225,403 | 72,225,403 | 0 | true | 2022-05-09T16:10:49.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Stripping mapping such as colour and line type from an existing ggplot2 object to re-do it<p>Within a Shiny application, I would like to provide users the op... |
72,224,591 | Is it possible to print in the same line from right to left in Crossterm<p>I try to print a couple of words from right to left but my last word overwrite previous and erase line to the end. I got in my output just Second word, What I'm doing wrong ? Thank you.</p>
<pre><code>fn render(&self, stdout: &mut Stdout... | <p>Your program is likely exiting just after printing "Second" and your shell is overwriting everything after the current position of the cursor, which is just after the text "Second" because that's the last thing the function does. If you add a sleep call before exiting:</p>
<pre class="lang-rust p... | Is it possible to print in the same line from right to left in Crossterm | rust|crossterm | 0 | 127 | 1 | 72,225,474 | 72,225,474 | 0 | true | 2022-05-13T04:49:03.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it possible to print in the same line from right to left in Crossterm<p>I try to print a couple of words from right to left but my last word overwrite pre... |
72,224,831 | ANSI escape codes not moving cursor horizontally<p>I am trying to make a text editor in the terminal with node and typescript but the ansi escape codes aren't moving the cursor horizontally. THe cursor moves vertically correctly but it just wont move horizontally.</p>
<p>Code: (index.ts)</p>
<pre><code>var width = proc... | <p>Nevermind I was just dumb and didn't just try a different package.
Installing <code>terminal-kit</code> fixed my problem.</p> | ANSI escape codes not moving cursor horizontally | javascript|node.js|typescript | 0 | 28 | 1 | 72,225,508 | 72,225,508 | 0 | true | 2022-05-13T05:30:38.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ANSI escape codes not moving cursor horizontally<p>I am trying to make a text editor in the terminal with node and typescript but the ansi escape codes aren'... |
72,223,173 | Laravel Inertia prop not passing values<p>When calling an edit function the prop mealService is passing null values and will not populate form fields with values. It looks like the controller isn't loading the model to query the single record. The Create and Store functions work fine.</p>
<p>First time posting. And ver... | <p>In your edit function you are using <code>meal_service</code> while in your route you use <code>mealService</code></p>
<p>Try naming the one in the edit function <code>mealService</code> too</p> | Laravel Inertia prop not passing values | laravel|vuejs3|inertiajs | 0 | 216 | 1 | 72,225,523 | 72,225,523 | 0 | true | 2022-05-12T23:53:50.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Laravel Inertia prop not passing values<p>When calling an edit function the prop mealService is passing null values and will not populate form fields with va... |
72,224,204 | Why does my mousefollow method not work on different browsers<p>Here is a link to the code pen
<a href="https://codepen.io/shahman28/pen/mdXraRE" rel="nofollow noreferrer">https://codepen.io/shahman28/pen/mdXraRE</a></p>
<p>This is a part of a larger project that I am working on. I am attempting to place circles when t... | <p>The problem is that at one point the canvas is set to have fixed px dimensions and at another point it is set to have the dimensions of the viewport.</p>
<p>This snippet removes the settings in the stylesheet and just uses viewport dimensions. It seems to work fine (tested on Windows10 Edge/Chrome and Firefox).</p>
... | Why does my mousefollow method not work on different browsers | javascript|html|css|html5-canvas | 0 | 40 | 1 | 72,225,560 | 72,225,560 | 0 | true | 2022-05-13T03:41:16.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does my mousefollow method not work on different browsers<p>Here is a link to the code pen
<a href="https://codepen.io/shahman28/pen/mdXraRE" rel="nofoll... |
72,183,597 | How to display only results matching a certain condition in SQL?<p>I would appreciate your help very much as I’m still at beginner level in SQL. Thank you :)</p>
<p>I have tables representing counties, vendors and their respective sales of stationery products. I have to display only the counties where the sum of all sa... | <p>Finally, I managed it :)</p>
<p>Here is my answer if anybody has to struggle with the same problem:</p>
<pre><code>WITH sales_wo_randall_greater_100 AS
(SELECT
sa.county_key,
SUM(sa.sales)
FROM
Sales sa
WHERE sa.date = '2022-01-01' AND sa.vendor_key <> '2'
GROUP BY
sa.county_key
HAVING SUM(sa.s... | How to display only results matching a certain condition in SQL? | sql|pgadmin | 0 | 73 | 2 | 72,225,614 | 72,225,614 | 0 | true | 2022-05-10T09:12:02.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to display only results matching a certain condition in SQL?<p>I would appreciate your help very much as I’m still at beginner level in SQL. Thank you :)... |
72,173,921 | How to convert scala.some to scala.mutable.Map?<p>i am trying to write code to mask nested json fields..</p>
<pre><code> def maskRecursively(map :mutable.Map[String,Object]):mutable.Map[String,Object] ={
val maskColumns = PII_Data.getPIIData()
for((k,v) <- map){
if(v.isInstanceOf[Map[String,Object]]){
maskRecu... | <p>After some digging , i was able to solve this..</p>
<pre><code> def maskJson(jsonStr: String): String = {
implicit val formats = org.json4s.DefaultFormats
val mapper = new ObjectMapper()
mapper.registerModule(DefaultScalaModule)
val result = mapper.readValue(jsonStr, classOf[Map[String, Object]])
... | How to convert scala.some to scala.mutable.Map? | json|scala|recursion|logging|data-masking | 0 | 84 | 2 | 72,225,657 | 72,225,657 | 0 | true | 2022-05-09T14:47:00.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to convert scala.some to scala.mutable.Map?<p>i am trying to write code to mask nested json fields..</p>
<pre><code> def maskRecursively(map :mutable.Map... |
72,219,716 | Set default value for Radio Choice - Wicket<p>I want to set my Radio Choice to "Sim" by default, how can I do that?</p>
<p>My custom Radio Choice class:</p>
<pre><code>package com.sges.web.components;
import java.util.ArrayList;
import java.util.Arrays;
import org.apache.wicket.ajax.form.AjaxFormChoiceCompo... | <ol>
<li></li>
</ol>
<pre><code>super(id, model, new ArrayList<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)), new BooleanChoiceRenderer());
</code></pre>
<p>Here you say that the RadioChoice may have two possible values: <code>TRUE</code> and <code>FALSE</code></p>
<p>2.</p>
<pre><code>dispoeGeradoresEmerg... | Set default value for Radio Choice - Wicket | java|radio-button|wicket | 0 | 80 | 1 | 72,225,685 | 72,225,685 | 0 | true | 2022-05-12T17:14:55.993Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Set default value for Radio Choice - Wicket<p>I want to set my Radio Choice to "Sim" by default, how can I do that?</p>
<p>My custom Radio Choice c... |
72,212,981 | Bootstrap 5 Card question, float-right, d-flex with justify-context-end etc, not working<p>I've started learning Bootstrap 5 today and came up with a card that will be populated by a collection of products in my code. I've toyed with rows and cols and positioning and I think this is so far my best shot at it, spending ... | <p>The answer I found (finally!) is float-end, as float-right(or left) is deprecated in BS5.0</p>
<p></p>
<p><a href="https://stackoverflow.com/questions/45494882/css-float-right-not-working-in-bootstrap-4-navbar">CSS float-right not working in Bootstrap 4 Navbar</a></p> | Bootstrap 5 Card question, float-right, d-flex with justify-context-end etc, not working | html|twitter-bootstrap | 0 | 167 | 1 | 72,225,693 | 72,225,693 | 0 | true | 2022-05-12T09:17:34.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Bootstrap 5 Card question, float-right, d-flex with justify-context-end etc, not working<p>I've started learning Bootstrap 5 today and came up with a card th... |
72,216,007 | krakend how to handle multiple api keys<p>I am trying to understand and use krakend as an API gateway within our system. One of the use cases I am trying to achieve is the usage of apikeys.</p>
<p>This documentation of krakend (<a href="https://www.krakend.io/docs/enterprise/authentication/api-keys/" rel="nofollow nor... | <p>The API Key component is an Enterprise-only feature. Looking at the functionality of the component, you can preload thousands of API-keys in the KrakenD configuration and assign them as you go. As you are pointing out, you need to redeploy if you want to expand the pool of keys, or if you want to remove some of them... | krakend how to handle multiple api keys | krakend | 0 | 211 | 1 | 72,225,742 | 72,225,742 | 0 | true | 2022-05-12T12:57:28.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
krakend how to handle multiple api keys<p>I am trying to understand and use krakend as an API gateway within our system. One of the use cases I am trying to... |
72,223,910 | How to vectorise ifelse function in R?<p>I am trying to make a vectorized function using ifelse in R, but my code is only taking the first element of the vector. For example, as shown in my code below when I assigned "y" to the Years argument, the code instead of giving a vector output, only gave the result o... | <p>You can use <code>switch</code> which is vectorized and is usually a better alternative for nested ifelse statements to handle different cases.</p>
<pre><code>salaryCAl2 <- function(Years = 1, Department) {
switch(
Department,
"Sales" = Years * 10000 * 1.2,
"Data" = Years * 12... | How to vectorise ifelse function in R? | r|if-statement | 0 | 59 | 2 | 72,225,778 | 72,225,778 | 0 | true | 2022-05-13T02:41:12.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to vectorise ifelse function in R?<p>I am trying to make a vectorized function using ifelse in R, but my code is only taking the first element of the vec... |
72,225,226 | Swift: Accessing argument of closure stored as variable<p>I ran into some code for a location manager class and I noticed that there is a variable that holds a closure.</p>
<p><code>var locationInfoCallBack: ((_ info: LocationInformation) -> ())!</code></p>
<p>I can't seem to access the underlying arguments from the... | <p>You can access the parameter when the closure is running from the code of the closure, and its value will be whatever the caller passed. It’s the same as with a function. Unless the function (or closure) is running, the parameters don’t exist.</p> | Swift: Accessing argument of closure stored as variable | swift|closures | 0 | 31 | 2 | 72,225,800 | 72,225,800 | 0 | true | 2022-05-13T06:22:00.683Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Swift: Accessing argument of closure stored as variable<p>I ran into some code for a location manager class and I noticed that there is a variable that holds... |
72,219,654 | Why hidden input field values can't be empty<p>I'm using PHP form to send user registration data and then handle it with PHP form. I need to register a few user types such as "normal users," "admin users," "edit enabled users," etc. Details requests for registration of every kind of user a... | <ol>
<li><p>Use <code>hidden</code> without <code>type="hidden"</code> like <code><input hidden id="companyname" name="companyname" value=""/></code>. You can set for type <code>type="text"</code>.</p>
</li>
<li><p>Also try to close elements: <code><input hidde... | Why hidden input field values can't be empty | php|multipartform-data | 0 | 116 | 2 | 72,225,803 | 72,225,803 | 0 | true | 2022-05-12T17:09:31.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why hidden input field values can't be empty<p>I'm using PHP form to send user registration data and then handle it with PHP form. I need to register a few u... |
72,225,756 | TensorFlow optimisation during running model speed up Predict<p>I want to disable a computation of several filters during Predict call with Tensorflow 2 and Keras.</p>
<p>Do i have to modify the source code of Tensorflow to achieve that ?</p> | <p>Short answer: No, you don't have to modify the Tensorflow source code.</p>
<p>Long answer with example detailled <a href="https://stackoverflow.com/a/61639160/6299772">here</a>.</p> | TensorFlow optimisation during running model speed up Predict | tensorflow|keras|optimization|predict | 0 | 36 | 1 | 72,225,832 | 72,225,832 | 0 | true | 2022-05-13T07:19:10.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
TensorFlow optimisation during running model speed up Predict<p>I want to disable a computation of several filters during Predict call with Tensorflow 2 and ... |
72,225,783 | Python calculate increment rows till a condition<p>How to obtain the below result.</p>
<p><a href="https://i.stack.imgur.com/cQo1R.png" rel="nofollow noreferrer">Sample Data with Output</a></p>
<p>Time To default is the column which is to be calculated. We need to get the increment number as Time to default and this in... | <p>Use:</p>
<pre><code>m = df['Default'].eq(1).groupby(df['acct_id']).transform(lambda x: x.shift(fill_value=False).cummax())
df.loc[~m, 'new'] = df[~m].groupby('acct_id').cumcount()
print (df)
acct_id Default new
0 xxx123 0 0.0
1 xxx123 0 1.0
2 xxx123 1 2.0
3 xxx123 1 NaN
</cod... | Python calculate increment rows till a condition | python|python-3.x|pandas|dataframe|group-by | 0 | 49 | 1 | 72,225,878 | 72,225,878 | 0 | true | 2022-05-13T07:20:58.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python calculate increment rows till a condition<p>How to obtain the below result.</p>
<p><a href="https://i.stack.imgur.com/cQo1R.png" rel="nofollow norefer... |
72,225,818 | MYSQL: Averaging the sum of two columns<p>Using MYSQL I am trying to get the avg amount spent by all the customers after determining the sum of what each customer spent.</p>
<pre><code>select customernumber, round(sum(price_per_each*quantity_ordered),2) as 'ordertotal'
from orderdetails
join orders using (ordernumber)
... | <p>I would try the AVG function over the ordertotal column.</p>
<pre><code>SELECT AVG(`ordertotal`)
FROM (
select customernumber, round(sum(price_per_each*quantity_ordered),2) as 'ordertotal'
from orderdetails
join orders using (ordernumber)
join customers using (customernumber)
group by customernumber
)... | MYSQL: Averaging the sum of two columns | mysql | 0 | 26 | 1 | 72,225,909 | 72,225,909 | 0 | true | 2022-05-13T07:24:41.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MYSQL: Averaging the sum of two columns<p>Using MYSQL I am trying to get the avg amount spent by all the customers after determining the sum of what each cus... |
72,221,103 | How to configure child group using NettyServerCustomizer?<p>I upgraded netty version and found out that TcpServer's bootstrap method had been removed from the version I had previously. I not able to figure out how to convert my existing code using new netty lib.</p>
<pre><code>factory.addServerCustomizers((NettyServerC... | <p>You can use the code below as a replacement:</p>
<pre><code>LoopResources loop =
new LoopResources() {
@Override
public EventLoopGroup onServer(boolean useNative) {
return childGroup;
}
@Override
public EventLoopGroup onServe... | How to configure child group using NettyServerCustomizer? | netty|httpserver|reactor-netty | 0 | 73 | 1 | 72,225,957 | 72,225,957 | 0 | true | 2022-05-12T19:23:17.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to configure child group using NettyServerCustomizer?<p>I upgraded netty version and found out that TcpServer's bootstrap method had been removed from th... |
72,215,998 | Updating Path multiple times in the same RUN command<p>Consider the following <code>Dockerfile</code>. On the last lines, first <code>git</code> is installed, and then something is appended to the path environment variable.</p>
<pre><code>FROM mcr.microsoft.com/windows/servercore:ltsc2022
SHELL ["powershell"... | <p>A workaround is to use <code>cmd</code> instead of <code>powershell</code>.</p>
<p>Both the following approaches work:</p>
<pre><code>RUN choco install -y git; \
cmd /c "setx path '%path%;C:\my-path'"
</code></pre>
<pre><code>SHELL ["cmd", "/S", "/C"]
RUN choco install -y ... | Updating Path multiple times in the same RUN command | docker|powershell|dockerfile|environment-variables | 0 | 73 | 1 | 72,226,135 | 72,226,135 | 0 | true | 2022-05-12T12:56:59.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Updating Path multiple times in the same RUN command<p>Consider the following <code>Dockerfile</code>. On the last lines, first <code>git</code> is installed... |
72,226,000 | Class 'SliverMultiBoxAdaptorElement' has no instance method 'basename'<p>I am applying photo filter to an image but getting this error. I am not sure how to get basename from path_provider.</p>
<pre><code>Unhandled Exception: NoSuchMethodError: Class 'SliverMultiBoxAdaptorElement' has no instance method 'basename'.
E/f... | <p>You can retrieve the basename with this:</p>
<pre><code>import 'package:path/path.dart' as path;
path.basename(imageFile.path);
</code></pre> | Class 'SliverMultiBoxAdaptorElement' has no instance method 'basename' | flutter|image|imagefilter | 0 | 46 | 1 | 72,226,159 | 72,226,159 | 0 | true | 2022-05-13T07:39:42.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Class 'SliverMultiBoxAdaptorElement' has no instance method 'basename'<p>I am applying photo filter to an image but getting this error. I am not sure how to ... |
72,225,401 | ngrx selector return same values multiple times<p>I have a</p>
<pre><code>export const selectIDs = creteSelector(
selectorFeature,
(feature: Feature) => {
return feature?.metadata?.ids || []
}
}
</code></pre>
<p>in the component I have</p>
<pre><code>this.store.select(selectIDs).subscribe((ids) =... | <p>The selector is fired again, and a new array instance is returned.
Because <code>[] === []</code> is falsy, the new instance is passed to the subscribe method.</p>
<p>As a workaround, you can:</p>
<ul>
<li>filter our empty array: <code>this.store.select().pipe(filter(arr => arr.length > 0 )).subscribe())</code... | ngrx selector return same values multiple times | rxjs|ngrx|ngrx-selectors | 0 | 244 | 1 | 72,226,191 | 72,226,191 | 0 | true | 2022-05-13T06:41:34.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ngrx selector return same values multiple times<p>I have a</p>
<pre><code>export const selectIDs = creteSelector(
selectorFeature,
(feature: Feature)... |
72,226,120 | JS How can I increase the performance of this Max/Min coding challenge?<p>I'm trying to solve some 'hackerrank.com' coding challenges.
I'm stuck on this one:</p>
<p>You will be given an array of integers <code>arr</code> and a single integer <code>k</code>. You must create an array <code>arr'</code> of length <code>k</... | <p>The two first steps could be:</p>
<ol>
<li>Your array is sorted. Thus there's no need to use <code>Math.max</code> and <code>Math.min</code> - the first element of a slice is the smallest, the last is the largest.</li>
<li>When you eliminate <code>Math.max</code> and <code>Math.min</code> calls, you can remove <code... | JS How can I increase the performance of this Max/Min coding challenge? | javascript|performance | 0 | 101 | 2 | 72,226,202 | 72,226,202 | 0 | true | 2022-05-13T07:49:35.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JS How can I increase the performance of this Max/Min coding challenge?<p>I'm trying to solve some 'hackerrank.com' coding challenges.
I'm stuck on this one:... |
72,226,069 | SQL query to select row where current date and time is between fields start and end<p>I have an SQL table containing fields with date and time with columns <code>start</code> and <code>end</code> as DateTime.</p>
<p><a href="https://i.stack.imgur.com/hko2d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | <p>Test this:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT *
FROM `examdates`
WHERE CONVERT_TZ(NOW(), @@time_zone, '+00:00') BETWEEN `start` AND `end`
and `type`='WE'
</code></pre>
<p>The function retrieves server timezone info from session variable and converts the server local datetime to GMT time ... | SQL query to select row where current date and time is between fields start and end | mysql | 0 | 28 | 1 | 72,226,298 | 72,226,298 | 0 | true | 2022-05-13T07:44:11.540Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL query to select row where current date and time is between fields start and end<p>I have an SQL table containing fields with date and time with columns <... |
72,159,781 | Vue 3 setInterval Methods behavior<h1>Env</h1>
<p>I have a Vue 3 Application which requires a constant <code>setInterval()</code> to be running in the background (Game Loop).</p>
<p>I put that in <code>store/index.js</code> and call it from <code>views/Playground.vue</code> on <code>mounted()</code>.
When leaving <code... | <p>moved it to a part without using a <code>method</code> and switch changing images to a <code>watch</code>.</p>
<pre class="lang-js prettyprint-override"><code>data: () => {
return {
...
selectedImages: "",
images: [
require("@/assets/ships/ship-001.png"),
require(&quo... | Vue 3 setInterval Methods behavior | javascript|vue.js|vuejs3 | 0 | 121 | 1 | 72,226,527 | 72,226,527 | 0 | true | 2022-05-08T09:43:50.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Vue 3 setInterval Methods behavior<h1>Env</h1>
<p>I have a Vue 3 Application which requires a constant <code>setInterval()</code> to be running in the backgr... |
72,226,439 | How to wrap 2nd div to collapse top first?<p>I want to wrap the <code>Column 2</code> to be at the top as it will contain a cover image. I have an example HTML below</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-c... | <p>using flex-direction will do it for you</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.row {
display: flex;
/* use this if your elements are supposed to be reversed ... | How to wrap 2nd div to collapse top first? | html|css | 0 | 25 | 1 | 72,226,537 | 72,226,537 | 0 | true | 2022-05-13T08:18:07.667Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to wrap 2nd div to collapse top first?<p>I want to wrap the <code>Column 2</code> to be at the top as it will contain a cover image. I have an example HT... |
72,226,403 | jQuery check all checkboxes in table<p>I have a table with a checkbox in the table head which I want to use to check/uncheck all the checkboxes in my table. This is my code, but it doesn't work.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code... | <p>if you pass your event into the change function you can just use the currentTarget checked to set your checked prop on your other checkboxes:</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... | jQuery check all checkboxes in table | javascript|jquery | 0 | 63 | 2 | 72,226,564 | 72,226,564 | 0 | true | 2022-05-13T08:14:27.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jQuery check all checkboxes in table<p>I have a table with a checkbox in the table head which I want to use to check/uncheck all the checkboxes in my table. ... |
72,204,495 | Index elastic problem to scroll with Typescript, and with node and Express<p>I use the Javascript client of elastic search to index and search my data and I have a problem to use the scroll method.</p>
<p>I can't set the right index but I know I have the right technique because in the DevTools console of Kibana I get t... | <p>Finally find the answer, the syntax was good and it wasn't an index problem, I had to add an async management layer in my request like this:</p>
<pre><code>searchRouter.get('/path/to/route/:scrollId', (asyncHandler(async (req, res) => {
const response = await client.scroll<YourDataType>({
scroll_id: r... | Index elastic problem to scroll with Typescript, and with node and Express | node.js|typescript|elasticsearch|scroll|request | 0 | 96 | 1 | 72,226,738 | 72,226,738 | 0 | true | 2022-05-11T16:24:38.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Index elastic problem to scroll with Typescript, and with node and Express<p>I use the Javascript client of elastic search to index and search my data and I ... |
72,217,730 | Use date (-1 day) on next row to be the end date for current row<p>I am trying to self join in my current script in order to find the next row and then whatever day specified it should minus 1 day from it and put that in the end date column for the current row, but I seem to be going wrong somewhere.</p>
<pre><code>SE... | <p>I found an alternative way other than doing a self join which utilises the <code>LEAD()</code> function.</p>
<pre><code>DATE_ADD(CAST(LEAD(BCG.StartOfPeriod, 1) OVER (PARTITION BY BCG.BudgetId ORDER BY BCG.StartOfPeriod) AS DATE),INTERVAL -1 DAY) AS EndOfPeriod
</code></pre>
<p>Output:</p>
<pre><code>254 41 2018-09... | Use date (-1 day) on next row to be the end date for current row | mysql|date|self-join | 0 | 33 | 1 | 72,226,743 | 72,226,743 | 0 | true | 2022-05-12T14:47:58.247Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use date (-1 day) on next row to be the end date for current row<p>I am trying to self join in my current script in order to find the next row and then whate... |
72,225,948 | How to append Http Response to a Jmeter variable<p>I need to append response from set of http requests and assert response.
Example</p>
<pre><code>Request1-> Response is "Anil"
Request2-> Response is "Sunil"
Request3-> Response is "Kumar"
Request4-> Response is "Tej"
... | <ol>
<li><p>Add <a href="https://jmeter.apache.org/usermanual/component_reference.html#JSR223_PostProcessor" rel="nofollow noreferrer">JSR223 PostProcessor</a> at the same level as all your requests</p>
</li>
<li><p>Put the following code into "Script" area:</p>
<pre><code>vars.put('GlobalRespone', (vars.get(... | How to append Http Response to a Jmeter variable | jmeter|jmeter-plugins | 0 | 22 | 1 | 72,226,761 | 72,226,761 | 0 | true | 2022-05-13T07:35:24.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to append Http Response to a Jmeter variable<p>I need to append response from set of http requests and assert response.
Example</p>
<pre><code>Request1-&... |
72,222,410 | How to hide radar chart index labels (chart.js)<p>I'm trying to make a radar chart with a dark background. White index labels distract from the chart itself.</p>
<p><a href="https://i.stack.imgur.com/egew0m.png" rel="nofollow noreferrer">(my chart)</a></p>
<p>I found a <a href="https://stackoverflow.com/questions/37963... | <p>You need to set display to false in the ticks like so:</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 options = {
type: 'radar',
data: {
labels: ["Red", "Blue... | How to hide radar chart index labels (chart.js) | javascript|html|chart.js | 0 | 72 | 1 | 72,226,765 | 72,226,765 | 0 | true | 2022-05-12T21:48:03.540Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to hide radar chart index labels (chart.js)<p>I'm trying to make a radar chart with a dark background. White index labels distract from the chart itself.... |
72,226,705 | what is the proplem in super method?<p>I have a problem in this code with dart:</p>
<pre><code>void main() {
Mobile OPPO = Mobile(
color: 'yellow',
price: 5500,
);
OPPO.printColor();
OPPO.printPrice();
}
class Devices {
String? color;
int? price;
}
class Mobile extends Devices... | <p>Class <code>Devices</code> missing constructor, dart meaning defaut <code>Devices()</code> so it have no arguments but you passing 2. To fix this, create <code>Devices</code> contructor with 2 arguments.</p>
<p><strong>Addtional</strong>: super using <code>:</code> not <code>=</code>.</p>
<p><a href="https://i.stack... | what is the proplem in super method? | dart|super | 0 | 41 | 1 | 72,226,847 | 72,226,847 | 0 | true | 2022-05-13T08:40:08.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
what is the proplem in super method?<p>I have a problem in this code with dart:</p>
<pre><code>void main() {
Mobile OPPO = Mobile(
color: 'yellow... |
72,222,722 | Can Mongo Bulk Operations like insertMany Partially Fail?<p>After scouring the documentation and posts online, there is one thing I have never been clear about with Mongo.</p>
<p>When you are attempting to write documents in bulk to a collection like the example below, is it ever possible that you would get <strong>som... | <p>Have a look at this example:</p>
<pre><code>db.products.insertMany([
{ _id: 1, item: "card", qty: 15 },
{ _id: 2, item: "envelope", qty: 20 },
{ _id: 1, item: "stamps", qty: 30 }
]);
uncaught exception: BulkWriteError({
"writeErrors" : [
{
&q... | Can Mongo Bulk Operations like insertMany Partially Fail? | mongodb | 0 | 49 | 1 | 72,226,848 | 72,226,848 | 0 | true | 2022-05-12T22:33:38.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can Mongo Bulk Operations like insertMany Partially Fail?<p>After scouring the documentation and posts online, there is one thing I have never been clear abo... |
72,226,838 | Google Sheets - How to parse link with data from another cell?<p>Basically, cell A has an ID number in it. I want the adjacent cell B to contain a link to that ID page on my website. So for example, | 938294839 | website.com/938294839 | Is there anyway to automatically generate the link based off info in another cell?<... | <p>Just assemble the string:</p>
<pre><code>A1 | B1
----------
stem | =concat("https://website.com/", $A1)
</code></pre>
<p>Sheets will detect the resulting link for you.</p> | Google Sheets - How to parse link with data from another cell? | google-sheets | 0 | 24 | 2 | 72,226,891 | 72,226,891 | 0 | true | 2022-05-13T08:50:16.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google Sheets - How to parse link with data from another cell?<p>Basically, cell A has an ID number in it. I want the adjacent cell B to contain a link to th... |
72,225,987 | Is there any event listener to check if the wms layer has loaded or not in google maps?<p>In a react web application, I am overlaying wms tiles on google maps using map's property overlayMapTypes.</p>
<pre><code>if (map && activeLayer) {
let layer = new window.google.maps.ImageMapType({
getTileUrl: a... | <p><em>tilesloaded</em> event listener is available for <em>ImageMapType</em> as well</p>
<pre><code> let layer = new window.google.maps.ImageMapType({
getTileUrl: activeLayer.type === "wms" ? getTileUrl : getWMTSUrl,
tileSize: new window.google.maps.Size(256, 256),
minZoom: 0,
... | Is there any event listener to check if the wms layer has loaded or not in google maps? | reactjs|google-maps-api-3|geoserver|wms | 0 | 37 | 1 | 72,226,969 | 72,226,969 | 0 | true | 2022-05-13T07:38:51.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there any event listener to check if the wms layer has loaded or not in google maps?<p>In a react web application, I am overlaying wms tiles on google map... |
72,202,745 | SQL Switch/Case in 'where' clause with and<p>I currently have this query</p>
<pre><code>DECLARE @user uniqueidentifier
, @day_to_find int
, @date DATETIME = getdate()
SELECT
@user = CAST(Value AS uniqueidentifier)
FROM BookSoreConfiguration.dbo.Config(NOLOCK)
WHERE Key = 'SuperUser.Id'
SELECT
@day_to_find = C... | <p>Since the left part remains the same and only the value can be different, you could try the following approach (CASE 'returns' the value of the right part):</p>
<pre><code>AND DATEDIFF(DAY, btw.sell_date, GETDATE()) >=
CASE
WHEN bd.shopping_code IN ('B41', 'B74', 'BT34') THEN 30
ELSE @day_to_find
END... | SQL Switch/Case in 'where' clause with and | sql|sql-server | 0 | 53 | 2 | 72,226,983 | 72,226,983 | 0 | true | 2022-05-11T14:21:36.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL Switch/Case in 'where' clause with and<p>I currently have this query</p>
<pre><code>DECLARE @user uniqueidentifier
, @day_to_find int
, @date DATETIME = ... |
72,219,657 | Can't create google CA certificate via google client library<p>Getting an error <code>error parsing CSR: ToCertificateRequest: nil DER when decoding PEM</code></p>
<p>The same CSR works when using the gcp console</p>
<pre><code>3 INVALID_ARGUMENT: error parsing CSR: generic:
:invalid_argument: error parsing CSR: ToCert... | <p>Was a formatting issue, fixed by concatenating lines</p>
<pre><code> '-----BEGIN CERTIFICATE REQUEST-----\n' +
'MIICijCCAXICAQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx\n' +
'ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCCASIwDQYJKoZIhvcN\n' +
'AQEBBQADggEPADCCAQoCggEBALkC6uLh... | Can't create google CA certificate via google client library | node.js|openssl|google-client|certificate-authority|der | 0 | 35 | 1 | 72,227,053 | 72,227,053 | 0 | true | 2022-05-12T17:09:42.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't create google CA certificate via google client library<p>Getting an error <code>error parsing CSR: ToCertificateRequest: nil DER when decoding PEM</cod... |
72,226,344 | Assert Text Error, AssertionError: No text to speak<p>I'm working on a project that uses voice assistant to query information stored in my sql database but I keep getting this error.
The voice assistant is able to display the instructions and commands but cannot query the information from mysql.
Such that if you tell i... | <pre><code>if guess_is_correct:
txt=query_engine(guess["transcription"])
print(txt)
speak(txt)
</code></pre>
<p>"speak" expects "txt" to be a string and not none.
Check what does <code>query_engine(guess["transcription"])</code> returns.</p>
<p>If <code>print(guess[&... | Assert Text Error, AssertionError: No text to speak | python|sql | 0 | 130 | 1 | 72,227,158 | 72,227,158 | 0 | true | 2022-05-13T08:09:20.163Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Assert Text Error, AssertionError: No text to speak<p>I'm working on a project that uses voice assistant to query information stored in my sql database but I... |
72,194,575 | Can an ADF pipeline change its Concurrency number based on a calculated condition?<p><strong>Background</strong></p>
<p>I have an ADF pipeline that takes jobs from a “3rd party” queue (ueing a REST call), completes jobs and marks the queued message as complete. If the queue is empty, the pipeline ends. Otherwise, the p... | <p>Currently you can give only <strong>numeric hardcoded</strong> values in concurrency settings and there is no option to pass the value dynamically.</p>
<p>Reference: <a href="https://docs.microsoft.com/en-us/azure/data-factory/concepts-pipelines-activities?tabs=data-factory#pipeline-json" rel="nofollow noreferrer">A... | Can an ADF pipeline change its Concurrency number based on a calculated condition? | azure-data-factory|azure-data-factory-2 | 0 | 98 | 1 | 72,227,174 | 72,227,174 | 0 | true | 2022-05-11T01:50:34.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can an ADF pipeline change its Concurrency number based on a calculated condition?<p><strong>Background</strong></p>
<p>I have an ADF pipeline that takes job... |
72,194,846 | What is the behavior of ADF schedule triggers when a schedule starts before the previous one ends?<p>I am trying to contrast and find the exact behavior of ADF schedule triggers and ADF thumbing window triggers when a trigger starts before the previous pipeline triggered by the schedule ends?</p>
<p>For example, let’s ... | <p>When using the ADF schedule trigger (shorter recurrence time than the amount of time pipeline takes to execute), the pipeline starts executing (In progress state) every time it is triggered irrespective of the previous pipeline run status.</p>
<p>Using the trigger with 3-minute recurrence interval produced the follo... | What is the behavior of ADF schedule triggers when a schedule starts before the previous one ends? | azure-data-factory|azure-data-factory-2 | 0 | 568 | 1 | 72,227,195 | 72,227,195 | 0 | true | 2022-05-11T02:48:14.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the behavior of ADF schedule triggers when a schedule starts before the previous one ends?<p>I am trying to contrast and find the exact behavior of A... |
72,220,239 | Can't print a dict: Uncaught TypeError: Cannot read properties of undefined<p>I've this error:</p>
<blockquote>
<p>crew.js:6 Uncaught TypeError: Cannot read properties of undefined (reading 'first')</p>
</blockquote>
<p>From an API (I'm using FastAPI for backend) I've this return:</p>
<pre><code>{"id":"1... | <p>You use the map function when it is inappropriate for the situation. Indeed, the <code>map()</code> method creates a new array with the results of the call of a given function on EACH element of the calling array. Now, you use all the results of <code>crewList</code> directly, not one by one.</p>
<p>Using <code>map<... | Can't print a dict: Uncaught TypeError: Cannot read properties of undefined | python|reactjs|fastapi | 0 | 196 | 1 | 72,227,207 | 72,227,207 | 0 | true | 2022-05-12T18:01:19.727Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't print a dict: Uncaught TypeError: Cannot read properties of undefined<p>I've this error:</p>
<blockquote>
<p>crew.js:6 Uncaught TypeError: Cannot read ... |
72,222,557 | Saving the weights of a Pytorch .pth model into a .txt or .json<p>I am trying to save the the weights of a pytorch model into a .txt or .json. When writing it to a .txt,</p>
<pre><code>#import torch
model = torch.load("model_path")
string = str(model)
with open('some_file.txt', 'w') as fp:
fp.write(strin... | <p>When you are doing <code>str(model.state_dict())</code>, it recursively uses <code>str</code> method of elements it contains. So the problem is how individual element string representations are build. You should increase the limit of lines printed in individual string representation:</p>
<pre class="lang-py prettypr... | Saving the weights of a Pytorch .pth model into a .txt or .json | python|machine-learning|pytorch | 0 | 677 | 2 | 72,227,272 | 72,227,272 | 0 | true | 2022-05-12T22:09:31.163Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Saving the weights of a Pytorch .pth model into a .txt or .json<p>I am trying to save the the weights of a pytorch model into a .txt or .json. When writing i... |
72,226,570 | How to one barplot into two within one picture?<p>This is my code:</p>
<pre><code>p14 <- ggplot(plot14, aes(x = Harvest, y = Percentage, fill = factor(Plant, level = orderplants)))+
geom_col(show.legend = FALSE)+
geom_vline(xintercept=3.5)+
labs(y = "Bedekking %",
x = NULL,
fill = "Plant... | <p>It would be better if you could include some sample raw data as part of a reproducible example. I've created a little made up data to illustrate.</p>
<p>Ideally, you'd want the raw dates behind the numbered time measuements so that you can split the dates into months and years as separate variables. Assuming you onl... | How to one barplot into two within one picture? | ggplot2|rstudio|divide|presentation | 0 | 20 | 1 | 72,227,282 | 72,227,282 | 0 | true | 2022-05-13T08:28:26.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to one barplot into two within one picture?<p>This is my code:</p>
<pre><code>p14 <- ggplot(plot14, aes(x = Harvest, y = Percentage, fill = factor(Pla... |
72,213,468 | Multiple regression: R splits Variable into multiple<p>Hey there i want to explore the effect of Age and Gender on points of a test via mlr.
Yet when i type</p>
<pre><code>model <- lm(punkte~ Age + Gender, data = df)
</code></pre>
<p>R gives me following results</p>
<pre><code>(Intercept) 5.677369 0.176482 32.1... | <p>"Male" is missing since your model chooses "male" as the reference, when you have categorical variables in gender.</p>
<p>You can always change the reference variable by something like:</p>
<pre><code>df <- within(df, gender <- relevel(factor(gender), ref = "Female"))
</code></pre... | Multiple regression: R splits Variable into multiple | r|regression|linear-regression | 0 | 56 | 1 | 72,227,288 | 72,227,288 | 0 | true | 2022-05-12T09:51:22.413Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multiple regression: R splits Variable into multiple<p>Hey there i want to explore the effect of Age and Gender on points of a test via mlr.
Yet when i type<... |
72,227,152 | Circle that transforms to a box<p>i was wondering how to make a circle that transforms into a wider box in html/css.
I have tried this but it does not transform properly</p>
<p>If you guys have any ideas on how to make this, i would really appreaciate it very much thank you!</p>
<pre><code>.circle{
width: 700px;
... | <p>Here's a live example: <a href="https://codesandbox.io/s/interesting-https-yhtpoe?file=/src/styles.css" rel="nofollow noreferrer">https://codesandbox.io/s/interesting-https-yhtpoe?file=/src/styles.css</a></p>
<pre><code>.circle {
width: 100px;
border-radius: 50%;
transition: all 1s;
}
.circle:hover {
border... | Circle that transforms to a box | javascript|html|css | 0 | 80 | 2 | 72,227,289 | 72,227,289 | 0 | true | 2022-05-13T09:14:16.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Circle that transforms to a box<p>i was wondering how to make a circle that transforms into a wider box in html/css.
I have tried this but it does not transf... |
72,204,458 | Android display item inside dropdown list<p>I have a TextInputLayout with style ExposedDropdownMenu. this TextInputLayout contains an AutoCompleteTextView.
I can add a list item inside this AutoCompleteTextView using an adapter.</p>
<pre><code> mLightSensorGainTextInput = (AutoCompleteTextView) findViewById(R.id... | <p>The solution is to use the filter:</p>
<pre><code>mLightSensorGainTextInput.setText("1", false);
</code></pre> | Android display item inside dropdown list | android|adapter|selection|display | 0 | 61 | 3 | 72,227,303 | 72,227,303 | 0 | true | 2022-05-11T16:22:15.327Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android display item inside dropdown list<p>I have a TextInputLayout with style ExposedDropdownMenu. this TextInputLayout contains an AutoCompleteTextView.
I... |
72,225,955 | I am trying to deploy a pod in eks cluster but it is showing too many pods, but i have only one pod in that<p><a href="https://i.stack.imgur.com/95YvF.png" rel="nofollow noreferrer">enter image description here</a>[I am trying to deploy one pod in node but it is in pending state when i describe pod I got too many pods,... | <p>As the image suggests, you have too many pods on your nodes. Each node in the cluster normally has a limit to how many pods it is allowed to hold. For example our GKE nodes allow 110 pods per node. The amount of pods you can have on your node is normally detemined by what CIDR range is assigned to it.</p>
<p>Bear in... | I am trying to deploy a pod in eks cluster but it is showing too many pods, but i have only one pod in that | kubernetes|amazon-eks | 0 | 344 | 1 | 72,227,394 | 72,227,394 | 0 | true | 2022-05-13T07:36:00.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I am trying to deploy a pod in eks cluster but it is showing too many pods, but i have only one pod in that<p><a href="https://i.stack.imgur.com/95YvF.png" r... |
72,225,978 | I create some document to mongoose but not showing<p>I tried to create 5 documents in mondoDB , and I’m sure that I successfully created 5 documents.</p>
<p>But it only shows one document on Robo3T.</p>
<p>Here is my code</p>
<pre><code>const Category = require('../category')
const db = require('../../config/mongoose'... | <p>Use aysnc/await</p>
<pre><code>await Promise.all(Array.from({ length: 5}).map(async (_, index) => {
let categoryObj = new Category({ name: categoryList[index].name, icon: categoryList[index].icon });
categoryObj.save().then(res => console.log(`Created book ${res}`));
}));
</code></pre> | I create some document to mongoose but not showing | node.js|mongodb | 0 | 29 | 2 | 72,227,432 | 72,227,432 | 0 | true | 2022-05-13T07:38:05.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I create some document to mongoose but not showing<p>I tried to create 5 documents in mondoDB , and I’m sure that I successfully created 5 documents.</p>
<p>... |
72,219,787 | 401 unauthorized browser alert after fetch call with bearer token in react<p>I have a get fetch request with header having Bearer token, getting 401 unauthorized error, even if the response status condition checked in the then statement,the browser is showing sign in alert box, can you please suggest how to avoid brows... | <p>Whether the prompt displays or not depends on <code>WWW-Authenticate</code> header that you receive in the response.</p>
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate</a></p>... | 401 unauthorized browser alert after fetch call with bearer token in react | reactjs|promise|fetch|bearer-token|http-status-code-401 | 0 | 482 | 1 | 72,227,474 | 72,227,474 | 0 | true | 2022-05-12T17:20:41.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
401 unauthorized browser alert after fetch call with bearer token in react<p>I have a get fetch request with header having Bearer token, getting 401 unauthor... |
72,227,208 | CGAL: Hole Filling .exe file is stuck<p><strong>This is my terminal(result) after running the .exe file.</strong> Click the <a href="https://i.stack.imgur.com/eKGu8.png" rel="nofollow noreferrer">link</a> for the terminal.</p>
<p>It doesn't stop or gives an error. It's stuck like this for hours.</p>
<p>I got my code f... | <p>You are probably trying to fill a hole that is too large or that cannot be filled using the 3D Delaunay triangulation search space (which can happen also if you have pinched holes). In CGAL 5.5 (not yet released but available in master), we added the option <code>do_not_use_cubic_algorithm()</code> (doc <a href="htt... | CGAL: Hole Filling .exe file is stuck | c++|computational-geometry|point-clouds|cgal | 0 | 50 | 1 | 72,227,528 | 72,227,528 | 0 | true | 2022-05-13T09:18:33.900Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CGAL: Hole Filling .exe file is stuck<p><strong>This is my terminal(result) after running the .exe file.</strong> Click the <a href="https://i.stack.imgur.co... |
72,227,413 | Query only specific field with firestore<p>I use this code to get a collection snapshot from Firestore.</p>
<pre><code>firestore().collection('project').where('userID', '==', authStore.uid).onSnapshot(onResult, onError);
</code></pre>
<p>This returns a huge amount of data, but I only need a few fields. Is it possible t... | <blockquote>
<p>Is it possible to query only a specific field?</p>
</blockquote>
<p>No, that is not possbile. A Firestore listener fires on the document level. This means that you'll always get the entire document.</p>
<blockquote>
<p>For example if I only need the <code>projectName</code> and the <code>creationDate</c... | Query only specific field with firestore | firebase|google-cloud-platform|google-cloud-firestore | 0 | 423 | 1 | 72,227,532 | 72,227,532 | 0 | true | 2022-05-13T09:35:06.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Query only specific field with firestore<p>I use this code to get a collection snapshot from Firestore.</p>
<pre><code>firestore().collection('project').wher... |
72,209,159 | Cant set up php enviroment in Docker<p>When I run</p>
<p><code>docker run --rm -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer install</code></p>
<p>to install all the composer <code>dependencies</code>,</p>
<p>these popped up</p>
<pre><code>~/Crowdstage$ docker run --rm -v $(pwd):/opt -w /opt laravel... | <p>This is how you can install composer dependencies in a cloned project</p>
<p><code>docker run --rm -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer install --ignore-platform-reqs</code></p> | Cant set up php enviroment in Docker | laravel|docker|ubuntu-20.04|windows-11|laravel-sail | 0 | 287 | 2 | 72,227,543 | 72,227,543 | 0 | true | 2022-05-12T01:27:39.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cant set up php enviroment in Docker<p>When I run</p>
<p><code>docker run --rm -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer install</cod... |
72,226,879 | c port listener client disconnects after 1 message<p>I did create a program that listens on a port and prints the message out on the terminal.</p>
<p>My problem is, that I want to connect with telnet (telnet localhost 1337) to my server which works fine. Then I listen on the port, which also works fine, but the loop do... | <p>The problem is</p>
<pre><code>if (strcmp(buffer, "/shutdown"))
</code></pre>
<p>is true if buffer is <strong>not</strong> equal to "/shutdown", so your listener terminates after first read.
As <code>strcmp()</code> doesn't return a boolean value in my opinion one should never write</p>
<pre><code... | c port listener client disconnects after 1 message | c|sockets | 0 | 27 | 1 | 72,227,583 | 72,227,583 | 0 | true | 2022-05-13T08:53:05.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
c port listener client disconnects after 1 message<p>I did create a program that listens on a port and prints the message out on the terminal.</p>
<p>My prob... |
72,225,880 | c#: How to popup uwp project in winform<p>I want to popup a <strong>UWP</strong> project when I click a button in a <strong>Winform</strong> project <br>
I tried to pop up WPF, but it didn't work in UWP. In WinForm I can't add a reference to the UWP project, so I don't know what to do.
The amount of information on UWP ... | <p>If you want to launch a UWP app from a WinForms app, you will need to register
a Protocol for your UWP app first. It will be used as a URI scheme name for your UWP app. Then you could call the <a href="https://docs.microsoft.com/en-us/uwp/api/windows.system.launcher.launchuriasync?view=winrt-22000" rel="nofollow nor... | c#: How to popup uwp project in winform | c#|uwp | 0 | 56 | 1 | 72,227,584 | 72,227,584 | 0 | true | 2022-05-13T07:29:17.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
c#: How to popup uwp project in winform<p>I want to popup a <strong>UWP</strong> project when I click a button in a <strong>Winform</strong> project <br>
I t... |
72,227,396 | Codeigniter 4 get configuration array by passing a dbgroup<p>Many websites including official site state about connecting database connections on a <code>dbgroup</code>, however I hardly found a website that talks about getting only an array of configuration.</p>
<p>This idea is that we can make several data adapter ob... | <p>Found an answer from looking at the system class <code>CodeIgniter\Config\BaseConfig</code>.</p>
<p>The files in <code>app/Config</code> including <code>app/Config/Database.php</code> are instances of <code>BaseConfig</code>, which means we can get the public properties of <code>Database</code> config by:</p>
<pre>... | Codeigniter 4 get configuration array by passing a dbgroup | codeigniter|codeigniter-4 | 0 | 108 | 1 | 72,227,621 | 72,227,621 | 0 | true | 2022-05-13T09:33:50.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Codeigniter 4 get configuration array by passing a dbgroup<p>Many websites including official site state about connecting database connections on a <code>dbg... |
72,227,349 | tkinter executes one more time the function after using after_cancel()<p>So I have a button that in a cyle way execute a function as soon as the buttom is pressed down. Once released the function stops its execution.</p>
<p>Now, for some reason, once I released the button, the function is executed one more time.</p>
<p... | <p>So, I've found out a sort of workaround killing the serial once the release button callback is called and opening again with a <code>try</code> <code>except</code> once the function <code>button_hold_callback</code> is called for the last time</p>
<pre><code>def button_stop_callback(self, event):
self.ser.reset_... | tkinter executes one more time the function after using after_cancel() | python|tkinter|pyserial | 0 | 32 | 1 | 72,227,661 | 72,227,661 | 0 | true | 2022-05-13T09:30:27.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
tkinter executes one more time the function after using after_cancel()<p>So I have a button that in a cyle way execute a function as soon as the buttom is pr... |
72,213,583 | Could not find main method from given launch configuration<p>I've a simple Java project that works when I execute it at Eclipse environment. But when I try to export it to a <em>Runnable Jar</em>, I get the following error:</p>
<pre><code>JAR export finished with warnings. See details for additional information.
Expor... | <p>I finally find out where the problem was, it was quite simple btw. I had created my GUIProgram within a <code>src.main.java</code> package, but that package was created (my bad) as <em>resources</em> instead of folders, so Eclipse was smart enought to run it but when trying to generate the JAR which expected a corre... | Could not find main method from given launch configuration | eclipse|jar|executable-jar|manifest.mf | 0 | 73 | 2 | 72,227,740 | 72,227,740 | 0 | true | 2022-05-12T10:01:04.857Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Could not find main method from given launch configuration<p>I've a simple Java project that works when I execute it at Eclipse environment. But when I try t... |
72,226,550 | Powershell - Invoke-RestMethod to get all links<p>Trying to connect to webpage and return a list of all the file names listed there.</p>
<p>I wont include the whole code (to generate token etc), but using the below I can return the whole HTML doc.</p>
<pre><code>$r = invoke-RestMethod $url -Headers @{Authorization=&quo... | <p>Managed to achieve what I wanted by using</p>
<p><code>Invoke-WebRequest</code> rather than <code>Invoke-RestMethod</code></p>
<p>As below.</p>
<pre><code>$r = (Invoke-WebRequest $url -Headers @{Authorization="Bearer $bearerToken"}).links.innerhtml
</code></pre> | Powershell - Invoke-RestMethod to get all links | html|powershell|rest | 0 | 160 | 1 | 72,227,790 | 72,227,790 | 0 | true | 2022-05-13T08:26:55.653Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Powershell - Invoke-RestMethod to get all links<p>Trying to connect to webpage and return a list of all the file names listed there.</p>
<p>I wont include th... |
72,201,293 | Print Textviews and webview from fragment<p>I'm using such code for creating pdf from webview</p>
<pre><code>PrintManager printManager = (PrintManager) this
.getSystemService(Context.PRINT_SERVICE);
PrintDocumentAdapter printAdapter = webView.createPrintDocumentAdapter("PDF");
printManager.pr... | <p>Choose an option to implement fields as html in webview</p> | Print Textviews and webview from fragment | android|pdf|printing|webview|textview | 0 | 47 | 2 | 72,227,828 | 72,227,828 | 0 | true | 2022-05-11T12:43:50.167Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Print Textviews and webview from fragment<p>I'm using such code for creating pdf from webview</p>
<pre><code>PrintManager printManager = (PrintManager) this
... |
72,227,542 | button form for header sticky by javascript html laravel<p>There are <strong>two buttons</strong> on that <strong>blades</strong> (Laravel). The button (<strong>.btn-main</strong>) works in the <strong>main</strong>, but the button (<strong>.btn-header</strong>) in the <strong>header</strong> does not work.</p>
<p>I me... | <p>Your header button doesn't do anything because it is not part of/inside the form. You can however use a <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-form" rel="nofollow noreferrer">form attribute</a> for your header button to work. Add an <code>id</code> attribute to your <code><... | button form for header sticky by javascript html laravel | javascript|html|laravel | 0 | 33 | 1 | 72,227,909 | 72,227,909 | 0 | true | 2022-05-13T09:45:44.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
button form for header sticky by javascript html laravel<p>There are <strong>two buttons</strong> on that <strong>blades</strong> (Laravel). The button (<str... |
72,227,127 | Open a ViewController if a cell of a TableViewController is clicked<p>i'm trying to create a view controller programmatically that will be opened if a cell on a table is clicked. i'm using a table view and i'm filling it with a xib.So, i'm stuck at the point of referencing the new view controller from the first one on ... | <p>Based on what you mentioned. You can initialize your viewController without stroyboard, and there is no crash anymore.</p>
<pre><code>let vc = DViewController()
</code></pre>
<p>If you present your view controller like what you did, it won’t display the title you wish.
To display the title, there are 2 ways you can ... | Open a ViewController if a cell of a TableViewController is clicked | swift | 0 | 37 | 1 | 72,227,971 | 72,227,971 | 0 | true | 2022-05-13T09:12:36.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Open a ViewController if a cell of a TableViewController is clicked<p>i'm trying to create a view controller programmatically that will be opened if a cell o... |
72,227,748 | Flip box image not displaying correctly when responsive<p>I am using Vue (not that it matters as this is a CSS issue I'm sure).
I have 3 flip boxes, taken mostly from the w3schools instructions at <a href="https://www.w3schools.com/howto/howto_css_flip_box.asp" rel="nofollow noreferrer">https://www.w3schools.com/howto/... | <p>Having spent quite some time wrestling with this before posting I have now fixed it by adding <code>background-size: cover;</code></p>
<p>So the CSS now looks like this:</p>
<pre><code><style scoped>
...
.flip-box-front {
background-size: 100%;
background-repeat: no-repeat;
background-size: cover; /* ... | Flip box image not displaying correctly when responsive | html|css|vue-component|responsiveness | 0 | 80 | 1 | 72,227,973 | 72,227,973 | 0 | true | 2022-05-13T10:00:09.730Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flip box image not displaying correctly when responsive<p>I am using Vue (not that it matters as this is a CSS issue I'm sure).
I have 3 flip boxes, taken mo... |
72,227,732 | why does malloc not taking in the full text?<p>Why is it when I try to take in a text in the variable is does not store in the full sentence. The <code>malloc</code> seems to not allocate enough memory for the string why ?</p>
<p>so for the 'second' variable, when i put in 'is not happy why' BUT
'second' only stores '... | <p>Okay so when you call the fgets, you pass the size of the pointer. Not the size of wathever it points to.</p>
<p>So, for example, now it's working:</p>
<pre><code>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/* Function Declerations */
char *str;
char *second;
/* Global Variables */... | why does malloc not taking in the full text? | c|malloc|fgets|realloc | 0 | 61 | 1 | 72,228,074 | 72,228,074 | 0 | true | 2022-05-13T09:59:15.267Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
why does malloc not taking in the full text?<p>Why is it when I try to take in a text in the variable is does not store in the full sentence. The <code>mallo... |
72,228,049 | How to sum email opt-in per customer per month<p>For my master thesis I try to sum the total opt-ins a customer has for all possible newsletters over-time (monthly). I fail in doing so.</p>
<p>Dput() data to Replicate the set:</p>
<pre><code>structure(list(GroupID = c(404712L, 404722L, 404722L, 404722L,
404722L, 40473... | <p>Nieuwsbrief = Newsletter?</p>
<pre><code>library(dplyr)
dfnewsletters %>%
filter(MailingListName == "Nieuwsbrief") %>%
group_by(GroupID, modifieddate_Yr_Month) %>%
summarise(OptIn_Total = sum(as.numeric(OptIn))) %>%
arrange(desc(OptIn_Total))
</code></pre>
<p>Output:</p>
<pre><code>Gr... | How to sum email opt-in per customer per month | r | 0 | 25 | 1 | 72,228,186 | 72,228,186 | 0 | true | 2022-05-13T10:24:38.730Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to sum email opt-in per customer per month<p>For my master thesis I try to sum the total opt-ins a customer has for all possible newsletters over-time (m... |
72,226,424 | Deleting multiple rows under same App Name but with different number of reviews<p>I have a dataframe having many columns, 2 of them being 'App' and 'Reviews'. I discovered that for the same app there are multiple rows because they differ in the number of reviews. Naturally one has to go with the row having highest numb... | <p>You don't need to create a dictionary for it and loop. it is a bit curcuitious.
here are 3 ways you can solve this. the 1st & 2nd solution will leave you with exactly one row for each <code>App</code> while the 3rd solution would keep multiple rows if the <code>max</code> value occurs more than once.</p>
<pre><c... | Deleting multiple rows under same App Name but with different number of reviews | pandas|dataframe|boolean|rows|delete-row | 0 | 22 | 1 | 72,228,243 | 72,228,243 | 0 | true | 2022-05-13T08:16:35.020Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Deleting multiple rows under same App Name but with different number of reviews<p>I have a dataframe having many columns, 2 of them being 'App' and 'Reviews'... |
72,227,926 | Deep learning CNN: low accuracy<p>I am training a convolutional neural network for binary time series classification. The training accuracy on both models is very different. If on the first it grows, then on the second it is always about 40%. There were also strong "jumps". Change filters=32/64/128 and epochs... | <p>I am taking a very wild guess (since your question is missing a lot of information), that your "self.N_classes" variable is "2"?</p>
<p>BinaryCrossentropy (your loss) needs it to be "1" though. So instead of labels being "[0, 1]" and "[1, 0]" they should be "0&q... | Deep learning CNN: low accuracy | python|keras|deep-learning|conv-neural-network | 0 | 72 | 1 | 72,228,266 | 72,228,266 | 0 | true | 2022-05-13T10:15:19.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Deep learning CNN: low accuracy<p>I am training a convolutional neural network for binary time series classification. The training accuracy on both models is... |
72,199,799 | Are accents and special characters broken in Qt6?<p>I've got a Qt program that reads from csv files and saves the info into a database.
There was no problem until i tried to update from Qt 5.15.2 to Qt 6.3. Now, when I read from the files, all accents are converted to a question mark.</p>
<p>I've tried using pretty muc... | <p>Okay so after a couple more days of research and trying things it now works. I cannot reproduce the issue but something must have had happened when I used LibreOffice Calc to save the csv encoded as UTF-8 or when I sent that file by email.
I suppose the encoding might have gotten in some way changed or corrupted int... | Are accents and special characters broken in Qt6? | c++|qt|special-characters|qt6 | 0 | 67 | 1 | 72,228,324 | 72,228,324 | 0 | true | 2022-05-11T10:57:31.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Are accents and special characters broken in Qt6?<p>I've got a Qt program that reads from csv files and saves the info into a database.
There was no problem ... |
72,227,990 | Reduce height of mat-flat-button<p>I have a message board that I want to add delete buttons to, unfortunately the mat-flat-button seems to be doubling the height of the message items. If i set it's height to 50%, the button becomes half the height of the message box, which will itself remain double the height as for wi... | <p>Found a fix, setting the <code>line-height</code> property to inherit in my css has resolved it</p> | Reduce height of mat-flat-button | javascript|html|css|angular|typescript | 0 | 24 | 1 | 72,228,330 | 72,228,330 | 0 | true | 2022-05-13T10:20:40.020Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reduce height of mat-flat-button<p>I have a message board that I want to add delete buttons to, unfortunately the mat-flat-button seems to be doubling the he... |
72,190,529 | Python: How to translate UTF8 String containing unicode decoded characters ("Ok\u00c9" to "Oké")<p>I'm trying to fix the string I'm getting from my python script.</p>
<p>I'm doing a call to an API, but it is returning me utf8 String that is still containing unicode encoded characters.</p>
<p>stuff like "Ok\u00c9&q... | <p>Ive found the problem. The encoding decoding was wrong. The text came in as Windows-1252 encoding.</p>
<p>I've use</p>
<pre><code>import chardet
chardet.detect(var3.encode())
</code></pre>
<p>to detect the proper encoding, and the did a</p>
<pre><code>var3 = 'OK\u00c9'.encode('utf8').decode('Windows-1252').encode('u... | Python: How to translate UTF8 String containing unicode decoded characters ("Ok\u00c9" to "Oké") | python-3.x|unicode|encoding|decoding | 0 | 147 | 1 | 72,228,366 | 72,228,366 | 0 | true | 2022-05-10T17:14:53.957Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python: How to translate UTF8 String containing unicode decoded characters ("Ok\u00c9" to "Oké")<p>I'm trying to fix the string I'm getting from my python sc... |
72,197,808 | Join two dataframes using the closest timestamp pyspark<p>So I am very new to pyspark but I am still unable to correctly create my own query. I try googling my problems but I just don't understand how most of this works. I'm not sure what I'm missing.</p>
<p>But anyway I have the following two dataframes, spark_p:</p>
... | <p>This solution contains the answer:</p>
<pre><code>SPLIT_COUNT = 90
SPLIT_SIZE = 1024
spark_p = data.select("profiles", '__record_timestamp__')
spark_p = spark_p.withColumn("profiles", F.col("profiles").getField("elements") )
slices = [F.slice(F.col('profiles'), i * SPLIT_SIZ... | Join two dataframes using the closest timestamp pyspark | python|apache-spark|join|pyspark|apache-spark-sql | 0 | 106 | 1 | 72,228,527 | 72,228,527 | 0 | true | 2022-05-11T08:29:51.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Join two dataframes using the closest timestamp pyspark<p>So I am very new to pyspark but I am still unable to correctly create my own query. I try googling ... |
72,228,208 | Is there a way to use Foundry Model for Authentification inside Functional Tests?<pre><code>1) App\Tests\Controller\Admin\Api\Promotion\PromotionDeleteControllerTest::test_deleting_promotion
LogicException: The first argument of "Symfony\Bundle\FrameworkBundle\KernelBrowser::loginUser" must be instance of &qu... | <p>Okay, I've found a solution myself. You have to do something like this:</p>
<pre><code>AdminFactory::new()
->create([
'email' => 'admin1@admin.com',
'active' => true,
'roles' => ['ROLE_SUPER_ADMIN'],
])
;
/** @var AdminRepository $adminRepository */
$adminRepository = sta... | Is there a way to use Foundry Model for Authentification inside Functional Tests? | php|symfony|phpunit | 0 | 42 | 1 | 72,228,534 | 72,228,534 | 0 | true | 2022-05-13T10:36:00.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to use Foundry Model for Authentification inside Functional Tests?<pre><code>1) App\Tests\Controller\Admin\Api\Promotion\PromotionDeleteContro... |
72,215,547 | automation alertmanager receivers<p>Good afternoon, maybe someone came across the automation of filling in receivers in alertmanager from custom pod annotations?</p>
<p>I mean, i want alermanager take receivers from pod annotations, like not to do it with hands. For example if namespace is <em>_</em> then receivers is ... | <p>Using labels to direct email notifications
A handy feature of the Alertmanager is that almost all notification fields are templatable. This can be used to route emails based on labels.</p>
<p>If you are sending email notifications directly to customers, it'd be useful not to have to create a route and receiver per c... | automation alertmanager receivers | kubernetes|prometheus|prometheus-alertmanager|alertmanager | 0 | 77 | 1 | 72,228,558 | 72,228,558 | 0 | true | 2022-05-12T12:24:04.613Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
automation alertmanager receivers<p>Good afternoon, maybe someone came across the automation of filling in receivers in alertmanager from custom pod annotati... |
72,217,967 | Query to retrieve rows where a value has changed<p>trying to get back into some very rusty SQL skills and already over my head! I have a table (example below) where each week I upload rows that indicate the progression of sales opportunities. The opportunities have indexed IDs, while some of the dimensions, like "... | <p>If you have mysql 8 or above you can use window functions</p>
<p>example 1</p>
<p>where the first cte picks those where there is an oppnumber in the most recent load and dense_ranks by date and lags to get previous price after that it's pretty simple</p>
<pre><code>WITH CTE AS
(
SELECT * ,DENSE_RANK() OVER (ORDER B... | Query to retrieve rows where a value has changed | mysql | 0 | 31 | 1 | 72,228,613 | 72,228,613 | 0 | true | 2022-05-12T15:03:43.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Query to retrieve rows where a value has changed<p>trying to get back into some very rusty SQL skills and already over my head! I have a table (example below... |
72,227,772 | Eclipse freezes while showing hover suggestions like method suggestions in class, method info etc<p>When I enter a dot operator after entering the class name, Eclipse will show method suggestions auto complete, at that time Eclipse hangs and gets closed automatically.</p>
<p>It also happens when showing method info. Ca... | <p>Thanks @greg-449 for your comment.</p>
<blockquote>
<p>The errors say that you have installed a plug-in which requires at
least Java 11 but you are using Java 8 on Eclipse 2019-09 (4.13) which
is now 3 years and 10 releases old. Try running on the current Eclipse
2022-03 (4.23).</p>
</blockquote>
<p>It resolved afte... | Eclipse freezes while showing hover suggestions like method suggestions in class, method info etc | java|eclipse | 0 | 39 | 1 | 72,228,621 | 72,228,621 | 0 | true | 2022-05-13T10:02:17.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Eclipse freezes while showing hover suggestions like method suggestions in class, method info etc<p>When I enter a dot operator after entering the class name... |
72,228,071 | Flatlist warning Each child in a list should have a unique "key" only on first render<h1>problem</h1>
<p>When the app gets loaded for the first time.The flatlist gives a waring and displays
"Warning: Each child in a list should have a unique "key" prop.%s%s See <a href="https://reactjs.org/link/warning-k... | <p>Check if your mapping any views using (.map) function if you are maping views then give the main container <code>key={index}</code></p> | Flatlist warning Each child in a list should have a unique "key" only on first render | react-native|react-native-flatlist | 0 | 65 | 2 | 72,228,762 | 72,228,762 | 0 | true | 2022-05-13T10:26:32.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flatlist warning Each child in a list should have a unique "key" only on first render<h1>problem</h1>
<p>When the app gets loaded for the first time.The flat... |
72,224,024 | Print the number 5 as a reverse pattern in C<p><strong>C</strong>
As you see in this code I'm trying to print the below pattern, Is the code is right to print the pattern cuz in my computer it show's wrong.</p>
<pre><code>//To print this type of pattern
//5 5 5 5 5 5
//5 5 5 5 5
//5 5 5 5
//5 5 5
/... | <pre><code>#include <stdio.h>
int main(void) {
int height = 5;
char line[height*2];
for(int i=0; i<height*2; i+=2)
{
line[i]='0'+height;
line[i+1]=' ';
}
for (int i=0; i<height; ++i)
{
printf("%.*s\n",2*(height-i), line);
}
re... | Print the number 5 as a reverse pattern in C | c | 0 | 67 | 2 | 72,228,865 | 72,228,865 | 0 | true | 2022-05-13T03:05:32.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Print the number 5 as a reverse pattern in C<p><strong>C</strong>
As you see in this code I'm trying to print the below pattern, Is the code is right to prin... |
72,207,485 | How to shape the labels to match the output layer for classification(ANN)?<p>I am trying to learn and understand how to implement multiclass classification using ANN. In my case, I have 16 classes(0-15), and my label dataset contains one column with the label values. So I know that the output layer should have the same... | <p>The solution was to use the following:</p>
<pre><code>from tensorflow.keras.utils import to_categorical
y_cat_test = to_categorical(y_test,16)
</code></pre> | How to shape the labels to match the output layer for classification(ANN)? | python|tensorflow | 0 | 24 | 1 | 72,228,893 | 72,228,893 | 0 | true | 2022-05-11T20:53:59.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to shape the labels to match the output layer for classification(ANN)?<p>I am trying to learn and understand how to implement multiclass classification u... |
72,228,681 | Error in reading the Firebase: from firebase value to child<p>I have created an event handler for the onClick button. When I click on the button, I want to transfer a pre-recorded number in the database to the price section.</p>
<p>My problem is that: when I click on the button and want to pass the value "pricecod... | <blockquote>
<p>String price = String.valueOf(db.child("User").child("pricecode")); and instead of the value "1000", it writes a reference to the key there.</p>
</blockquote>
<p>That's the expected behavior since the following operation:</p>
<pre><code>String price = String.valueOf(db.chil... | Error in reading the Firebase: from firebase value to child | java|android|firebase|firebase-realtime-database | 0 | 35 | 2 | 72,228,902 | 72,228,902 | 0 | true | 2022-05-13T11:15:49.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error in reading the Firebase: from firebase value to child<p>I have created an event handler for the onClick button. When I click on the button, I want to t... |
72,228,775 | While testing API containing pagination in postman facing skip value error<p>I am using pagination middleware in my node js project but while testing api in postman it's throwing error skip value</p>
<p>Followed the paginate docs but still no use
<a href="https://i.stack.imgur.com/Q6Jr3.png" rel="nofollow noreferrer"><... | <p>If <code>page</code> is not provided in the query, it will end up being <code>NaN</code>, since this code does not cover that case:</p>
<pre><code>// 'req.query.page' is undefined
let page = parseInt(req.query.page);
if (page < 1 || page == undefined) {
page = 1;
}
// 'page' is now equal to NaN
</code></pre>
... | While testing API containing pagination in postman facing skip value error | javascript|node.js|pagination|backend|middleware | 0 | 135 | 1 | 72,228,910 | 72,228,910 | 0 | true | 2022-05-13T11:23:28.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
While testing API containing pagination in postman facing skip value error<p>I am using pagination middleware in my node js project but while testing api in ... |
72,228,978 | How to center spinner items using styles.xml?<p>How to center spinner items through styles without creating custom item view? Without extra work in code, just using styles.</p>
<p><a href="https://i.stack.imgur.com/gy6Dp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gy6Dp.png" alt="enter image desc... | <p>We need to set these styles for spinner and its dropdown:</p>
<pre><code><style name="AppTheme" parent="Theme.MaterialComponents.NoActionBar">
<!-- Our app (or activity) theme. Here we set custom styles for spinner and its dropdown -->
<item name="spinnerStyle">... | How to center spinner items using styles.xml? | android|android-spinner|android-theme|android-styles | 0 | 31 | 1 | 72,228,979 | 72,228,979 | 0 | true | 2022-05-13T11:39:07.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to center spinner items using styles.xml?<p>How to center spinner items through styles without creating custom item view? Without extra work in code, jus... |
72,224,989 | MobX React: Define a observer hook<p>I'm trying to define my own hooks in a MobX project which depend on mobx observables.
But it's not possible to wrap a hook with observer() because observer() must return a component.
Is there a way to define observer hooks?</p>
<p>Example:</p>
<pre><code>// not working because obser... | <p>Solution: use autorun within hook
<a href="https://mobx.js.org/react-integration.html#useeffect" rel="nofollow noreferrer">https://mobx.js.org/react-integration.html#useeffect</a></p>
<p>Example: <a href="https://codesandbox.io/s/minimal-mobx-react-project-forked-8gnxgt?file=/index.js" rel="nofollow noreferrer">http... | MobX React: Define a observer hook | mobx|mobx-react | 0 | 267 | 1 | 72,229,014 | 72,229,014 | 0 | true | 2022-05-13T05:54:06.617Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MobX React: Define a observer hook<p>I'm trying to define my own hooks in a MobX project which depend on mobx observables.
But it's not possible to wrap a ho... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.