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
71,975,998
Is there a way to detect if unnecessary characters are added to strings to bypass spam detection?<p>I'm building a simple spam classifier and from a cursory look at my dataset, most spams put spaces in between &quot;spammy&quot; words, which I assume is for them to bypass spam classifier. Here's some examples:</p> <ul>...
<p>This depends a lot on whether you have a list of all spam words or not.</p> <p><strong>If you do have a list of spam words</strong> and you know that there are always only ADDED spaces (e.g. <code>give me your cred it card in formation</code>) but never MISSING spaces (e.g. <code>give me yourcredit cardinformation</...
Is there a way to detect if unnecessary characters are added to strings to bypass spam detection?
python|nlp
0
35
1
71,981,005
71,981,005
0
true
2022-04-23T00:58:00.013Z
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 detect if unnecessary characters are added to strings to bypass spam detection?<p>I'm building a simple spam classifier and from a cursory ...
71,979,680
I can't get my app to ask for BLUETOOTH_SCAN permission<p>I am trying to add a &quot;Scan available bluetooth devices&quot; to my app. My app is running on devices with Android 7 or higher.</p> <p>Till now, what I've found is that I must use the function <code>startDiscovery()</code> which makes use of the permission <...
<p>After several hours of checking, I did not manage to display any dialog box. Strangely enough, I did manage to get <code>startDiscovery()</code> to work.</p> <p>For some reason I don't understand, <code>startDiscovery()</code> makes use of the permission <code>BLUETOOTH_SCAN</code> which should be granted by the use...
I can't get my app to ask for BLUETOOTH_SCAN permission
android|permissions|bluetooth
0
790
2
71,981,589
71,981,589
0
true
2022-04-23T12:37:28.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I can't get my app to ask for BLUETOOTH_SCAN permission<p>I am trying to add a &quot;Scan available bluetooth devices&quot; to my app. My app is running on d...
71,982,079
SQL Join to return data from The Same Column in the same table to two diffrent rows in result (Star Wars Example)<p>Newbie question about joining tables. I want to retrieve a name from a column <strong>TWICE</strong> in a SQL statement, and I'm running in circles.</p> <p>I Have two Tables - &quot;Company&quot; &amp; ...
<p>You can join to the same table multiple times, just give a new alias every time.</p> <pre><code>Join People P on C.PrimaryContact = P.ID Join People P1 on C.AltContact = P1.ID Join People altcontact on C.AltContact = altcontact.ID Join People P256 on C.yetanotheralternateContact = P256.ID </code></pre>
SQL Join to return data from The Same Column in the same table to two diffrent rows in result (Star Wars Example)
sql|join|union
0
27
2
71,982,162
71,982,162
0
true
2022-04-23T17:30:44.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Join to return data from The Same Column in the same table to two diffrent rows in result (Star Wars Example)<p>Newbie question about joining tables. I ...
71,982,707
Why are decorator design patterns always shown as classes and subclasses in examples?<p>For example, in <a href="https://www.freecodecamp.org/news/the-basic-design-patterns-all-developers-need-to-know/" rel="nofollow noreferrer">freecodecamp.org</a>, an example of running a coffee shop is used:</p> <pre><code>public ab...
<p>You're right that for these very simple examples one big class might well be better. However, in actual code an individual decorator may well have a lot of code to do its decoration. The <a href="https://en.wikipedia.org/wiki/Single-responsibility_principle" rel="nofollow noreferrer">Single Responsiblity Principle...
Why are decorator design patterns always shown as classes and subclasses in examples?
decorator
0
19
1
71,982,909
71,982,909
0
true
2022-04-23T18:46:07.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why are decorator design patterns always shown as classes and subclasses in examples?<p>For example, in <a href="https://www.freecodecamp.org/news/the-basic-...
71,973,049
How to print lists (of different length containing colored characters) as columns in Python without using imports?<p>I'm trying to print out the following triangle using columns instead of rows:</p> <pre><code>def r(x): return '\x1b[6;31;50m{}\x1b[0m'.format(x) def g(x): return '\x1b[1;32;50m{}\x1b[0m'.format...
<p>I solved it. It's not the best solution or a generic one, but at least it's a solution =)</p> <pre><code>def trimatrix_print(color_matrix, matrix, spacing=4): num_col = len(matrix) maxlen = len(matrix[0][0]) + spacing newmat = [] for i in range(num_col): for j in range(num_col): i...
How to print lists (of different length containing colored characters) as columns in Python without using imports?
python-3.x|windows
0
31
1
71,982,928
71,982,928
0
true
2022-04-22T18:14:13.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to print lists (of different length containing colored characters) as columns in Python without using imports?<p>I'm trying to print out the following tr...
71,982,818
Difficulty Scraping Numerical Values from two divs with the same class<p>I am new to web scraping and I am having an issue where I want to grab the &quot;rank&quot; and &quot;Item No.&quot; from this url. My ultimate goal here is to save this info in a csv and be able to plot the data. The issue I have now is that th...
<p>As one approach you could select all <code>&lt;span&gt;</code>s in your <code>item_stats</code> and extract its texts:</p> <pre><code>rank = float(soup.select('.item_stats span')[0].text) number = soup.select('.item_stats span')[1].text.strip() </code></pre> <h4>Example</h4> <pre><code>html = ''' &lt;div class=&quot...
Difficulty Scraping Numerical Values from two divs with the same class
python|web-scraping
0
22
1
71,982,939
71,982,939
0
true
2022-04-23T19:05:59.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Difficulty Scraping Numerical Values from two divs with the same class<p>I am new to web scraping and I am having an issue where I want to grab the &quot;ran...
71,983,157
Delete the created progress bars by pushing button on the console window<p>I am trying to learn myself use Qt so still struggling a lot... How would I go about deleting my bouncing object by pressing the delete button? I am struggling to implement the delete function...</p> <pre><code>MainWindow::MainWindow(QWidget * p...
<p>You have to declare sillyobject inside the class header as a private pointer (to have access inside all the class members), then you just have to delete the pointer with :</p> <pre><code> delete sillyobject; </code></pre> <p>In your header file :</p> <pre><code> (...) private : QProgressBar * sillyobject (...) <...
Delete the created progress bars by pushing button on the console window
qt|delete-operator
0
25
1
71,983,207
71,983,207
0
true
2022-04-23T19:53:13.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Delete the created progress bars by pushing button on the console window<p>I am trying to learn myself use Qt so still struggling a lot... How would I go abo...
71,976,702
How can I iterate through a gridView base adapter to check the text on it?<p>I have tried different ways, I've been stuck trying to do it for weeks. I also tried to add the code in the adapter, I thought about using sqlite, but I just can't figure how to do it.</p> <p>I just want to check a condition, if this string ex...
<p>Well guys, I did it. And I will post it here, maybe it help someone.</p> <p><strong>I've created another list:</strong></p> <pre><code>var faladas = mutableListOf&lt;String&gt;() </code></pre> <p><strong>And a function that check if it is equal, like that, if OK, then send to adapter, and update it:</strong></p> <pr...
How can I iterate through a gridView base adapter to check the text on it?
kotlin|generics|gridview|android-adapter|baseadapter
0
17
1
71,984,420
71,984,420
0
true
2022-04-23T03:58:09.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I iterate through a gridView base adapter to check the text on it?<p>I have tried different ways, I've been stuck trying to do it for weeks. I also t...
71,976,313
How to select string inside field mongodb<pre><code>BasicDBObject query = new BasicDBObject(); try{ Bson projection = fields(include(&quot;name&quot;), exclude(&quot;_id&quot;)); col.find(query).projection(projection).forEach(doc -&gt; System.out.println(doc.toJson())); curs...
<p>I solved this a few hours later, for anyone wanting the answer to this for the future then here it is:</p> <pre><code>JsonObject obj = new JsonParser().parse(document.toJson()).getAsJsonObject(); String name = obj.get(&quot;name&quot;).getAsString(); </code></pre>
How to select string inside field mongodb
java|mongodb
0
16
1
71,984,597
71,984,597
0
true
2022-04-23T02:20:06.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to select string inside field mongodb<pre><code>BasicDBObject query = new BasicDBObject(); try{ Bson projection = fields(include(&quot;name&...
71,984,692
app don´t update useEffect Socket.io/react<p>i have a problem whit a simple chat app, when i send a message in the other clients don´t see the update, this is the backend</p> <pre><code>const express = require('express') const cors = require('cors') const http = require('http') const {Server} = require('socket.io') co...
<p>You should be using <code>io.emit('mensaje',mensaje)</code> on your backend rather than <code>socket.emit('mensaje',mensaje)</code>. <a href="https://socket.io/get-started/chat#broadcasting" rel="nofollow noreferrer">See here</a>.</p>
app don´t update useEffect Socket.io/react
javascript|node.js|reactjs|express|sockets
0
24
2
71,984,761
71,984,761
0
true
2022-04-24T00:49:25.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: app don´t update useEffect Socket.io/react<p>i have a problem whit a simple chat app, when i send a message in the other clients don´t see the update, this i...
71,984,102
html form submit button not sending payload inside button<p>The post request for the form should be sent when I click one of the green buttons, and it should have a <code>order_status: wc-accepted</code> in the payload, but it is missing and here is what I get on click:</p> <p><a href="https://i.stack.imgur.com/7G9mN.j...
<p>So I had to use jquery. Basically in the form above I added this element right before closing the form:</p> <p><code>&lt;input type=&quot;hidden&quot; id=&quot;order_status&quot;name=&quot;order_status&quot; value=&quot;test&quot;&gt;</code></p> <p>And in the line with echo, I replaced it with this, I added a class ...
html form submit button not sending payload inside button
php|html|wordpress
0
266
2
71,985,379
71,985,379
0
true
2022-04-23T22:33:44.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: html form submit button not sending payload inside button<p>The post request for the form should be sent when I click one of the green buttons, and it should...
71,985,354
my app is not being displayed in the screen<p>I am a beginner python programmer and I have been making this app that tells what time it is ,but when I run it, nothing happens. the program is running, but it's not being displayed in the screen.Here is my code for the app.</p> <pre><code>import time import tkinter as tk ...
<p><code>tkinter</code>, like all GUI libraries, is event drive. When you create a graphical element, nothing actually happens. All that does is send messages. The messages don't get popped and processed until the <code>root.mainloop</code>. You need to think about these problems in an event driven way. You cannot...
my app is not being displayed in the screen
python|tkinter|time
0
33
1
71,985,383
71,985,383
0
true
2022-04-24T03:45:53.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: my app is not being displayed in the screen<p>I am a beginner python programmer and I have been making this app that tells what time it is ,but when I run it...
71,985,832
Is there any method to create an array containing consecutive zero or number type in javascript?<p>I know one way to create consecutive zeros by using <code>for loop</code> and <code>push</code> method but I wonder whether there is method to create array containing consecutive zeros or number type.</p> <p>looks like th...
<p>You could always do something like this:</p> <pre class="lang-js prettyprint-override"><code>const length = 10 const value = 0 const arr = Array(length).fill(value); </code></pre>
Is there any method to create an array containing consecutive zero or number type in javascript?
javascript
0
28
1
71,985,851
71,985,851
0
true
2022-04-24T05:49:43.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any method to create an array containing consecutive zero or number type in javascript?<p>I know one way to create consecutive zeros by using <code>...
71,985,831
Prevent resubmission after HTML form succeeds<p>I have a contact form that I have added to my web page. After filling the form and clicking the &quot;Submit&quot; button, a &quot;Successful&quot; message appears. I did this with php request. However, when I refresh the page after this successful message, the request to...
<p>You can use javascript <code>window.history.replaceState</code> approach to prevent a resubmit on the page refresh.</p> <pre><code>&lt;script&gt; if ( window.history.replaceState ) { window.history.replaceState( null, null, window.location.href ); } &lt;/script&gt; </code></pre> <p>You can also do a page redirec...
Prevent resubmission after HTML form succeeds
html|forms
0
27
1
71,986,172
71,986,172
0
true
2022-04-24T05:48:53.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Prevent resubmission after HTML form succeeds<p>I have a contact form that I have added to my web page. After filling the form and clicking the &quot;Submit&...
71,986,387
LayoutInflating without result<p>I'm trying to a add for each row in the cursor one instance of my ConstraintLayout and its childs to the linear layout (named verticalLayout), but there is no effect except closing the activity, no Exception. It's working fine for one instance, but with at least 2 its broken. Thanks for...
<blockquote> <pre><code>for(cursor.moveToFirst(); !cursor.isAfterLast();cursor.moveToLast()) </code></pre> </blockquote> <p>This loop never terminates.</p> <p>Change the <code>moveToLast()</code> to <code>moveToNext()</code> so that the cursor can reach &quot;after last&quot; state.</p>
LayoutInflating without result
android|android-layout
0
17
1
71,986,424
71,986,424
0
true
2022-04-24T07:35:22.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LayoutInflating without result<p>I'm trying to a add for each row in the cursor one instance of my ConstraintLayout and its childs to the linear layout (name...
71,984,372
How to force Tomcat (embedded in Spring Boot) to use standard java.util.logging instead of JULI?<p>I'm running Tomcat as an embedded server inside of a Springboot app, so all the additional functionality in JULI such as multiple class loaders etc is not needed and just gets in the way.</p> <p>I just want my app to use ...
<p>JULI is just a logging facade used by Tomcat for its internal logging (cf. <a href="https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/juli/logging/package-summary.html" rel="nofollow noreferrer">javadoc</a>) based on <a href="https://commons.apache.org/proper/commons-logging/" rel="nofollow noreferrer">Apache ...
How to force Tomcat (embedded in Spring Boot) to use standard java.util.logging instead of JULI?
spring-boot|spring-mvc|tomcat9
0
261
1
71,986,620
71,986,620
0
true
2022-04-23T23:31:54.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to force Tomcat (embedded in Spring Boot) to use standard java.util.logging instead of JULI?<p>I'm running Tomcat as an embedded server inside of a Sprin...
71,985,350
How to have associated models to be directly linked to a ModelAdmin in the admin panel?<p>how do I make it better for the website operator to process the order, can we have each orderitem and shippingaddress associated with the order to be under each &quot;Order&quot; in the admin panel? for example when someone clicks...
<p>This would be a solution which works for you</p> <pre><code>class OrderItemAdmin(admin.StackedInline): model = OrderItem class ShippingAddressAdmin(admin.StackedInline): model = ShippingAddress class OrderAdmin(admin.ModelAdmin): inlines = [OrderItemAdmin, ShippingAddressAdmin] admin.site.register(Ord...
How to have associated models to be directly linked to a ModelAdmin in the admin panel?
python|django|django-admin
0
24
1
71,987,423
71,987,423
0
true
2022-04-24T03:45:03.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to have associated models to be directly linked to a ModelAdmin in the admin panel?<p>how do I make it better for the website operator to process the ord...
71,987,479
My wpf app stops running when async processes start<p>So, my app worked with sync methods, but it stops as I use async methods.</p> <p>This is a code in my class when object creates.</p> <pre><code>_isAdult = (DateСalculation.CalculateAgeAsync(DateOfBirth).Result &gt;= 18); _sunSign = DateСalculation.CalculateSunSignAs...
<p>Whenever using <em>async</em>, <em>await</em>, you should not use <code>.Result</code> (unless you have to) because it blocks the calling thread until the asynchronous operation is complete; it is equivalent to calling the Wait method.</p> <p>So change the code as per below:</p> <pre class="lang-cs prettyprint-overr...
My wpf app stops running when async processes start
c#|wpf
0
31
1
71,987,599
71,987,599
0
true
2022-04-24T10:22:45.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: My wpf app stops running when async processes start<p>So, my app worked with sync methods, but it stops as I use async methods.</p> <p>This is a code in my c...
71,988,537
ReturnTrue if node is found<p>I need to form new element if specific node is found, but if that specific node is present several times i need to form only one element, My code is forming the aifound element twice.</p> <pre class="lang-xml prettyprint-override"><code>&lt;root&gt; &lt;ai&gt; &lt;i&gt;&lt;/i&gt; ...
<p>Not clear whether you want to add <code>aifound</code> if there are no <code>ai</code>s at all. The following xslt adds <code>aifound</code> only if <code>ai</code>s exist.</p> <pre class="lang-xslt prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;xsl:stylesheet xmlns:...
ReturnTrue if node is found
xslt-1.0
0
27
2
71,988,682
71,988,682
0
true
2022-04-24T12:43:33.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ReturnTrue if node is found<p>I need to form new element if specific node is found, but if that specific node is present several times i need to form only on...
71,988,642
Why does my working directory not function - R<p>I recently started using R, and it seems my working directories never work. I've been trying to simply turn a JSON document into a file on my desktop (to simplify things), but it does not do anything. The weird thing is that it also does not display an error message.</p>...
<p>This document is around 17mb. Since you are not manipulating it in any way, i would rather download it directly instead on trying to load it to memory: Do</p> <pre><code>destination &lt;- &quot;~/Desktop/Covid19_timeseries.json&quot; download.file('https://pomber.github.io/covid19/timeseries.json', destination) </co...
Why does my working directory not function - R
r
0
24
1
71,988,743
71,988,743
0
true
2022-04-24T12:59:16.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does my working directory not function - R<p>I recently started using R, and it seems my working directories never work. I've been trying to simply turn ...
71,959,272
Resources won't load with the second url pattern in J2EE<p>I'm having a <em>strange</em> problem, i have a servlet that is mapped to <strong>/home</strong> and <strong>/home/next</strong> with the web annotation as follows:</p> <pre><code>@WebServlet(urlPatterns= {&quot;/home&quot;, &quot;/home/next&quot;}) public clas...
<p>A colleague gave me the answer, it turns out i already stumbled upon it but not in this context. Not adding a <strong>'/'</strong> at the beginning of your href will look for the path relative to where it is. For example in the <em>localhost:8080/_08/home</em> it looked for the image in <em>localhost:8080/_08/</em>...
Resources won't load with the second url pattern in J2EE
servlets|jakarta-ee|resources|url-pattern|eclipse-jee
0
19
1
71,989,570
71,989,570
0
true
2022-04-21T18:27:20.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Resources won't load with the second url pattern in J2EE<p>I'm having a <em>strange</em> problem, i have a servlet that is mapped to <strong>/home</strong> a...
71,989,233
What should be proper event type of handleChange and handleSubmit<p>Here is my codesandbox links, <a href="https://codesandbox.io/s/vigorous-banach-gf35mn?file=/src/App.tsx:643-655" rel="nofollow noreferrer">https://codesandbox.io/s/vigorous-banach-gf35mn?file=/src/App.tsx:643-655</a></p> <p>I am not getting the proper...
<p>You just need to change the <code>event</code> type from <code>ChangeEventHandler</code> to <code>ChangeEvent</code> Because <code>ChangeEventHandler</code> is for the entire Handler function. But for the <code>event</code> object the type was <code>ChangeEvent</code>.</p> <p>That's what the error msg was saying!</p...
What should be proper event type of handleChange and handleSubmit
reactjs|typescript
0
34
1
71,990,200
71,990,200
0
true
2022-04-24T14:12:19.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What should be proper event type of handleChange and handleSubmit<p>Here is my codesandbox links, <a href="https://codesandbox.io/s/vigorous-banach-gf35mn?fi...
71,989,869
Mumbojumbo .rolling() .max() .groupby() combination in python pandas<p>I am looking to do a &quot;rolling&quot; .max() .min() of B column &quot;groupedby&quot; date(column A values). However, trick is it should start on every row again so i can not use for example anything like df['MAX'] = df['B'].rolling(10).max().shi...
<pre><code>df['C_max'] = df.groupby('A')['B'].transform(lambda x: x[::-1].cummax()[::-1]) df['D_min'] = df.groupby('A')['B'].transform(lambda x: x[::-1].cummin()[::-1]) A B C(max) D(min) C_max D_min 1 2016-01-01 0 7 0 7 0 2 2016-01-01 7 7 3 7 3 3 201...
Mumbojumbo .rolling() .max() .groupby() combination in python pandas
pandas|loops|group-by|max|rolling-computation
0
33
1
71,990,229
71,990,229
0
true
2022-04-24T15:31:06.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Mumbojumbo .rolling() .max() .groupby() combination in python pandas<p>I am looking to do a &quot;rolling&quot; .max() .min() of B column &quot;groupedby&quo...
71,963,680
Selecting div inside iframe with jQuery<p>I am trying to select a div inside an iframe with jQuery. But I can't get it to work. Any suggestions what could be the issue here?</p> <p><strong>Parent HTML:</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot...
<p>I found the solution. I needed to wait for the iframe to be loaded. So the final jQuery script will be:</p> <pre><code>$(function() { $(&quot;#selectorFrame&quot;).bind(&quot;load&quot;,function(){ $(&quot;#selectorFrame&quot;).contents().find(&quot;#name&quot;).css(&quot;border&quot;, &quot;2px solid green...
Selecting div inside iframe with jQuery
jquery|iframe
0
26
1
71,990,974
71,990,974
0
true
2022-04-22T05:04:48.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Selecting div inside iframe with jQuery<p>I am trying to select a div inside an iframe with jQuery. But I can't get it to work. Any suggestions what could be...
71,987,114
Adding transparency/alpha to canvas overwriting existing color<p>I am trying to create a moon shape with canvas. Therefor I created two circles: One being filled with my color, another one being subtracted using <code>globalCompositionOperation: &quot;destination-out&quot;</code>.</p> <pre class="lang-js prettyprint-ov...
<p>What worked for me now is creating a second canvas, painting my objects there and merging them into the original canvas with <code>drawImage</code>:</p> <pre class="lang-js prettyprint-override"><code>const c2 = createCanvas(WIDTH, HEIGHT); const ctx2 = c2.getContext(&quot;2d&quot;); ctx2.fillStyle = &quot;yellow&q...
Adding transparency/alpha to canvas overwriting existing color
javascript|node.js|canvas|vector
0
19
1
71,991,270
71,991,270
0
true
2022-04-24T09:31:35.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding transparency/alpha to canvas overwriting existing color<p>I am trying to create a moon shape with canvas. Therefor I created two circles: One being fi...
71,991,410
Runtime of this iterative combinations algorithm<p>I have found the following algorithm <a href="https://www.baeldung.com/java-combinations-algorithm" rel="nofollow noreferrer">online</a> which, given a length <code>n</code> of an array and a number <code>k</code> of indices to select, produces all the possible combina...
<p>The trivial estimate is <em>O(choose(n,k)*k)</em>, where <em>choose(n,k)</em> is the number of combinations. Indeed, the main <code>while</code> loop body is entered as many times as is the number of items in the answer. And each time, each of the two inner loops finishes in <em>O(k)</em>.</p> <p>There might be a ti...
Runtime of this iterative combinations algorithm
performance|big-o|combinatorics
0
30
1
71,991,554
71,991,554
0
true
2022-04-24T18:50:59.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Runtime of this iterative combinations algorithm<p>I have found the following algorithm <a href="https://www.baeldung.com/java-combinations-algorithm" rel="n...
71,991,788
Centroid Value Changing<pre><code>from math import dist def distance(pos1,pos2): return dist(pos1,pos2) def find_closest(location, centroids): dista=centroids start=0 for i in range(len(centroids)): dista[start]=distance(location, centroids[start]) start+=1 end=0 for i in range...
<p>dista=centroids</p> <p>That means you’re declaring a new name to the list, not a new list, you should make a new list,try for loop</p> <pre><code>dista=[] for i in centroids: dista.append(i) </code></pre> <p>To prevent falling in the same mistake again, understand how vars work</p> <pre><code>Echo=print Echo(“he...
Centroid Value Changing
python
0
23
1
71,991,855
71,991,855
0
true
2022-04-24T19:43:10.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Centroid Value Changing<pre><code>from math import dist def distance(pos1,pos2): return dist(pos1,pos2) def find_closest(location, centroids): dist...
71,991,475
Getting "comparison of these types is not implemented" error while trying to compare two numbers in a list<p>I have a bubble sort function that looks like this:</p> <pre><code>print_sorted_array &lt;- function(arr) { len &lt;- length(arr) for (i in 1:len){ j &lt;- i while((j &gt; 1)){ if ((arr[j] &l...
<p>Nevermind, using as.integer() on both list elements in the if statement worked. Still don't know why it wasn't integer in the first place but stopped caring.</p>
Getting "comparison of these types is not implemented" error while trying to compare two numbers in a list
r
0
35
1
71,991,857
71,991,857
0
true
2022-04-24T18:59:11.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting "comparison of these types is not implemented" error while trying to compare two numbers in a list<p>I have a bubble sort function that looks like th...
71,987,537
How to use Flutter OrientationBuilder without GridVeiw<p>All <code>OrientationBuilder</code> examples I could find use <code>GridView</code>. I wanted to use <code>Column</code> and <code>Row</code> widgets instead. This is a code excerpt I used. This works for portrait, but when I turn the phone to landscape, the widg...
<p>Seems there is nothing wrong with my approach, it's just that my widgets don't fit the screen. Not sure why is nothing displayed, I'd expect something to be visible and yellow/black warning to be displayed.</p> <p>Anyway, using a table with <code>FractionColumnWidth</code> forces the widgets to be rendered on screen...
How to use Flutter OrientationBuilder without GridVeiw
android|flutter|dart
0
24
1
71,992,360
71,992,360
0
true
2022-04-24T10:31:00.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use Flutter OrientationBuilder without GridVeiw<p>All <code>OrientationBuilder</code> examples I could find use <code>GridView</code>. I wanted to use...
71,994,111
How to predefine MongoDB with initial values before adding more values programmatically?<p>I am trying to update my MongoDB with initial values before it adds any other values. For example, in my create-react-app, I have a backend file that predefines what the variable <code>people</code> will hold in my current file v...
<p>I found the solution to my problem, the model method I am looking for is <code>insertMany</code> which allows me to insert any predefined information into my Mongo database!</p> <pre><code>Person.insertMany(people) </code></pre>
How to predefine MongoDB with initial values before adding more values programmatically?
javascript|node.js|mongodb
0
28
1
71,994,176
71,994,176
0
true
2022-04-25T03:05:30.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to predefine MongoDB with initial values before adding more values programmatically?<p>I am trying to update my MongoDB with initial values before it add...
71,974,836
How to remove curly braces before writing JSON object in java<p>I am trying to make a simple JSON-DB in Java since the current library on maven is horrendously overcomplicated. I have this method that takes in a key and value to put into a JSONObject and write it to my <code>database.json</code> file.</p> <pre><code>p...
<p>I solved this problem by reading all of the content in the file and appending the JSON object that I wanted to write to the file and then write it all at once.</p>
How to remove curly braces before writing JSON object in java
java|json|maven
0
274
2
71,994,364
71,994,364
0
true
2022-04-22T21:30:46.250Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove curly braces before writing JSON object in java<p>I am trying to make a simple JSON-DB in Java since the current library on maven is horrendous...
71,994,192
Is there a way to refresh HTML dom when Selenium cannot locate an element?<p>I'm attempting to submit a login form using Selenium and Chromedriver. The form contains a username field, a password field, a checkbox and a log in button. I am able to enter the username, enter the password, and check the checkbox. But I hav...
<p>Aha! It turned out the answer was related to frames. To troubleshoot, I ended up printing out all the IDs on the page (referenced <a href="https://stackoverflow.com/questions/20244691/python-selenium-how-do-i-find-all-element-ids-on-a-page">Python &amp; Selenium - how do I find all element IDs on a page?</a>), and t...
Is there a way to refresh HTML dom when Selenium cannot locate an element?
python-3.x|selenium-chromedriver
0
20
1
71,994,447
71,994,447
0
true
2022-04-25T03:18:30.540Z
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 refresh HTML dom when Selenium cannot locate an element?<p>I'm attempting to submit a login form using Selenium and Chromedriver. The form ...
71,994,949
Very New to Apps Script, question about why variable isn't showing up<p>I am very new to programming in general, but excited about what I've been able to do so far for work projects. I'm wondering why in the program below, the variable companyID is not populating into the template literal string. I've tried putting it ...
<h3>Try it this way:</h3> <pre><code>function lfunko() { const sh = SpreadsheetApp.getActive().getSheetByName('foreachloop'); const values = sh.getRange(1, 1, 5, 4).getValues(); const companyID = sh.getRange(1, 9).getValue(); values.forEach(function (value, index) { if (index &gt; 0) { sh.getRange(ind...
Very New to Apps Script, question about why variable isn't showing up
google-apps-script
0
25
2
71,995,163
71,995,163
0
true
2022-04-25T05:47:26.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Very New to Apps Script, question about why variable isn't showing up<p>I am very new to programming in general, but excited about what I've been able to do ...
71,995,282
Dynamically load file from blob storage in ADF<p>I have a multiple parquet files in blob storage. I have to take the latest file from blob and process in ADF (copy activity or data flow) as source. Is there anyway to achieve this.</p>
<p>You can use get meta data activity to list down all the files present in source and filter the latest file to be used in copy activity</p>
Dynamically load file from blob storage in ADF
azure|azure-data-factory|azure-data-flow
0
287
2
71,995,373
71,995,373
0
true
2022-04-25T06:29:27.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamically load file from blob storage in ADF<p>I have a multiple parquet files in blob storage. I have to take the latest file from blob and process in ADF...
71,938,068
pycharm handling of <div> tag (no autoclosing)<p>Im editing html and i use a lot of div tags with bootstrap.</p> <p>for example :</p> <pre><code>&lt;div class=&quot;carousel-item&quot;&gt; &lt;img class=&quot;d-block img-fluid&quot; src=&quot;img/alberto.png&quot;...
<p>The actual answer is you have to buy Pycharm pro edition so it can handle automatically</p>
pycharm handling of <div> tag (no autoclosing)
html|pycharm|tags
0
24
1
71,995,544
71,995,544
0
true
2022-04-20T10:28:05.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pycharm handling of <div> tag (no autoclosing)<p>Im editing html and i use a lot of div tags with bootstrap.</p> <p>for example :</p> <pre><code>&lt;div clas...
71,995,979
Upsampling Audio data<p>I have 8Khz data for voice recognition model training, but the model does not support 8Khz, so I want to upsample it to 16Khz. How can I upsample through the scipy library?</p>
<p>This is going to get dirty, fast.</p> <p>You need an interpolation filter. It upsamples the input, then low-pass filters it back to the original passband. This preserves the original signal and does not add &quot;interesting&quot; artifacts to it.</p> <p>Start by Googling &quot;interpolation filter&quot;.</p> <p>G...
Upsampling Audio data
python|audio|resampling
0
267
1
71,996,096
71,996,096
0
true
2022-04-25T07:36:48.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Upsampling Audio data<p>I have 8Khz data for voice recognition model training, but the model does not support 8Khz, so I want to upsample it to 16Khz. How ca...
71,996,313
ThreadGroup execution on Dedicated VM using JMeter<p>I am using below test plan for testing. MyTestThreadGroup (Concurrent users:5) IfController(${__groovy( &quot;${__machineIP()}&quot;!=&quot;10.0.0.4&quot;)} Request1 This threadgroup will spin 5 concurrentuser for given duration of test. If IP matches it will execute...
<p>Yes it does.</p> <p>If you don't want to kick off 5 users if the IP address is not the one you're looking for you can use <a href="https://jmeter.apache.org/usermanual/functions.html#__groovy" rel="nofollow noreferrer">__groovy() function</a> in the <a href="https://jmeter.apache.org/usermanual/component_reference.h...
ThreadGroup execution on Dedicated VM using JMeter
jmeter
0
20
1
71,996,646
71,996,646
0
true
2022-04-25T08:06:06.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ThreadGroup execution on Dedicated VM using JMeter<p>I am using below test plan for testing. MyTestThreadGroup (Concurrent users:5) IfController(${__groovy( ...
71,997,146
cannot proceed to the desired path in select/option menu<p>I have a select menu in my code. It has two options. By clicking on each option, I want to proceed to another page on the same site. Here is my code:</p> <pre><code>import React, { useState, useEffect } from 'react' import { useNavigate } from 'react-router-dom...
<p>Try using onClick event instead of onChange, onChange should be used on a select element and not on an option element. So either wrap the options in a select and use onChange or try using the onClick on the options.</p>
cannot proceed to the desired path in select/option menu
reactjs|drop-down-menu
0
11
1
71,997,195
71,997,195
0
true
2022-04-25T09:17:10.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: cannot proceed to the desired path in select/option menu<p>I have a select menu in my code. It has two options. By clicking on each option, I want to proceed...
71,998,043
I am trying to get the largest Sale in each Month and which week the sale is made from given DataFrame<p>I am new to pandas, and I am trying to get Outcome Dataframe from df. Here I am trying to get the largest Sale in each Month and which week the sale is made.</p> <pre><code>df = pd.DataFrame({&quot;Month&quot;: [&q...
<p>You need to use <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.groupby.html" rel="nofollow noreferrer"><code>df.groupby</code></a> and <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.idxmax.html" rel="nofollow noreferrer"><code>idxmax()</code...
I am trying to get the largest Sale in each Month and which week the sale is made from given DataFrame
pandas|dataframe
0
17
1
71,998,288
71,998,288
0
true
2022-04-25T10:25:09.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I am trying to get the largest Sale in each Month and which week the sale is made from given DataFrame<p>I am new to pandas, and I am trying to get Outcome ...
71,998,594
Storing to memory - BCD or binary?<p>If an X86_64 machine save a integer <code>56</code> will that be stored in the memory cells as binary <code>00111000</code> or <code>BCD</code> <code>01010110</code>?</p>
<p>Almost always stored in pure binary (unsigned or 2's complement). Your program would have to do something special to store it in BCD, and very few programs have any reason to do that.</p>
Storing to memory - BCD or binary?
memory|memory-management|binary|bcd
0
20
1
71,998,647
71,998,647
0
true
2022-04-25T11:10:08.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Storing to memory - BCD or binary?<p>If an X86_64 machine save a integer <code>56</code> will that be stored in the memory cells as binary <code>00111000</co...
71,998,783
How to properly derive classes with static attributes<p>I have a class <code>GFN</code> representing Galois field numbers. The class has static attributes that are common for all the numbers within certain Galois field, e.g. the field generator polynomial. While it might be not the best possible design for the task, it...
<p>You should use a <a href="https://docs.python.org/3/library/functions.html?highlight=classmethod#classmethod" rel="nofollow noreferrer">classmethod</a> like so:</p> <pre><code>@classmethod def list_mapping(cls): for i in range(1, cls.size - 1): print(str(i) + &quot; --&gt; alpha^&quot; + str(cls.g2p[i]))...
How to properly derive classes with static attributes
python-3.x
0
24
1
71,998,893
71,998,893
0
true
2022-04-25T11:26:11.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to properly derive classes with static attributes<p>I have a class <code>GFN</code> representing Galois field numbers. The class has static attributes th...
71,941,266
Does GlusterFS works only in the same subnet?<p>I would like to know if GlusterFS is working only in the same subnet ?</p> <p>How can I make it works if it can ?</p> <p>Thanks</p>
<p>Quick answer: It does work in different subnets!</p> <p>Initially I ask this question because it wasn't working.</p> <p>After some try I find my port 24000 wasn't reachable. My OVH vps wasn't working well..</p> <p>I reinstalled it and now it's working great.</p>
Does GlusterFS works only in the same subnet?
glusterfs
0
9
1
71,999,310
71,999,310
0
true
2022-04-20T14:14:15.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does GlusterFS works only in the same subnet?<p>I would like to know if GlusterFS is working only in the same subnet ?</p> <p>How can I make it works if it c...
71,999,004
Parse rows by date filter (Google Tables)<p>How could I parse rows from my table by dates (logic for example: today is 3 more days until the delivery date) and place it into another sheet?</p> <p><a href="https://docs.google.com/spreadsheets/d/1TTbIX3qNKXyQAQiJ2EuRNDKWy1YEhLBPzsVw8mxMhKs" rel="nofollow noreferrer">http...
<p>See if this helps</p> <pre><code>=filter(A2:C; C2:C-today() &lt;=3) </code></pre>
Parse rows by date filter (Google Tables)
google-sheets|google-docs
0
28
1
72,000,175
72,000,175
0
true
2022-04-25T11:45:03.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Parse rows by date filter (Google Tables)<p>How could I parse rows from my table by dates (logic for example: today is 3 more days until the delivery date) a...
72,002,198
While loop in bash + postgresql date | operator does not exist: date = integer<p>I'm quite newbie and although I've spent some hours already to google up a solution I still failing to resolve this issue - hope someone can help me out, please!</p> <p>I'm trying to use while loop in bash with a postgresql query which wou...
<p>Arguments usually need to be quoted, like</p> <pre><code>WHERE event_date='2018-01-02' </code></pre>
While loop in bash + postgresql date | operator does not exist: date = integer
postgresql|bash
0
23
1
72,002,321
72,002,321
0
true
2022-04-25T15:42:55.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: While loop in bash + postgresql date | operator does not exist: date = integer<p>I'm quite newbie and although I've spent some hours already to google up a s...
72,002,400
Local variable 'verticalMovementSpeed' might not be initialized before accessing<p>So i made this method in a unity c# script but its giving the error 'Local variable 'verticalMovementSpeed' might not be initialized before accessing'</p> <p>Code:</p> <pre><code>float VerticalAirMovementSpeed(bool IsGrounded, float vert...
<p>You could just start with:</p> <pre><code>float verticalMovementSpeed = float.Parse(&quot;0.00&quot;); </code></pre> <p>That way it would be initialized.</p>
Local variable 'verticalMovementSpeed' might not be initialized before accessing
c#|unity3d
0
24
1
72,002,455
72,002,455
0
true
2022-04-25T15:59:48.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Local variable 'verticalMovementSpeed' might not be initialized before accessing<p>So i made this method in a unity c# script but its giving the error 'Local...
71,978,481
Check if nullable reference types are enabled for the project<p>Can I see if the nullable reference types are enabled, from the Roslyn <code>Compilation</code> object? The configuration is inside <code>.csproj</code>, but I would prefer if it setting can be retrieved from the Compilation.</p>
<p>You can get the project-level setting from <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.csharp.csharpcompilationoptions.nullablecontextoptions?view=roslyn-dotnet-4.1.0" rel="nofollow noreferrer">CompilationOptions.NullableContextOptions</a>. Depending on what you are doing, <a href="ht...
Check if nullable reference types are enabled for the project
roslyn
0
34
1
72,003,626
72,003,626
0
true
2022-04-23T09:32:01.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if nullable reference types are enabled for the project<p>Can I see if the nullable reference types are enabled, from the Roslyn <code>Compilation</cod...
72,003,876
Duplicated calculation using subquery<p>I am trying to reproduce the following calc:</p> <pre><code>((final_value - init_value) / init_value) * 100 </code></pre> <p>Although I am getting the correct value I would like to ask if there is a better way to do this? At least, to avoid the same subquery twice (init_value)</p...
<p>There may be a an optimal Postgresql-specific method but generally you could use a conditional <em>case expression</em>, something like:</p> <pre><code>select (Sum(case when &quot;year&quot; = 2020 then x end) - Sum(case when &quot;year&quot; = 2000 then x end)) / Sum(case when &quot;year&quot; = 2000 then x end):...
Duplicated calculation using subquery
sql|postgresql
0
20
1
72,003,988
72,003,988
0
true
2022-04-25T18:05:56.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Duplicated calculation using subquery<p>I am trying to reproduce the following calc:</p> <pre><code>((final_value - init_value) / init_value) * 100 </code></...
71,992,447
How to make changes to other models using post save hooks mongoose<p>I am trying to make changes to another collection through <code>post save</code> hook in mongoose. But I am not sure how does it work. I am using the following code for that.</p> <pre><code>const mongoose = require('mongoose'); const Agents = require...
<p>I got the answer to this question. It takes the model from the doc and then save the changes.</p> <pre><code>MonitorSchema.post('save',{document: true, query: false}, (doc, next) =&gt; { const monitor_id = doc._id; doc.model('Agents').findById(doc.agent_id) .then(doc =&gt; {doc.monitor_id.push(monitor_id...
How to make changes to other models using post save hooks mongoose
node.js|mongodb|mongoose|hook
0
14
1
72,004,463
72,004,463
0
true
2022-04-24T21:23:20.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make changes to other models using post save hooks mongoose<p>I am trying to make changes to another collection through <code>post save</code> hook in...
72,004,522
Is it possible to assign a property value and return the original object?<p>I want to avoid writing these three lines over and over in different functions.</p> <pre class="lang-dart prettyprint-override"><code>var newState = state.copy(); newState.user.googleUser = googleUser; state = newState; </code></pre> <p>Somethi...
<p>Use the <a href="https://dart.dev/guides/language/language-tour#cascade-notation" rel="nofollow noreferrer">cascade operator</a>:</p> <pre class="lang-dart prettyprint-override"><code>state = state.copy()..user.googleUser = googleUser; </code></pre> <p>Alternatively, a common pattern is to instead create a <code>cop...
Is it possible to assign a property value and return the original object?
dart
0
29
1
72,004,740
72,004,740
0
true
2022-04-25T19:04:53.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to assign a property value and return the original object?<p>I want to avoid writing these three lines over and over in different functions.</...
71,981,855
botocore.exceptions.WaiterError: Waiter StackCreateComplete failed: Max attempts exceeded<p>I am getting above error when running a python code with boot3. It is erroring out at 1 hour all the time and the stack is being created even after this error. I have applied both MaxSessionDuration of the IAM role and the durat...
<p>for a waiter in the line waiter.wait(StackName=name), adding the code from below did the trick. here is the documentation <a href="https://boto3.amazonaws.com/v1/documentation/api/1.9.42/reference/services/cloudformation.html#CloudFormation.Waiter.ChangeSetCreateComplete.wait" rel="nofollow noreferrer">https://boto3...
botocore.exceptions.WaiterError: Waiter StackCreateComplete failed: Max attempts exceeded
python|linux|amazon-cloudformation|boto3|aws-cli
0
779
1
72,004,903
72,004,903
0
true
2022-04-23T17:02:51.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: botocore.exceptions.WaiterError: Waiter StackCreateComplete failed: Max attempts exceeded<p>I am getting above error when running a python code with boot3. I...
72,005,066
How to passing variables between two modules which have a function?<p>I stuck, i dont have idea how can I pass the variables to another module.</p> <p>I have a package with modules:</p> <pre><code>Game_With_Function_Map.py Game_informations.py Game_Variables.py </code></pre> <p>In <code>Game_Variables.py</code> i have ...
<p>you can use <code>class variable</code> property here, where same value is share among all classes instances and if any change happen it happen in all instance</p> <p>you can define variable as class instance and use them as it</p> <p>code structure: <code>Game_Variables.py</code> file</p> <pre><code>class Variabl...
How to passing variables between two modules which have a function?
python|variables|module
0
29
1
72,005,143
72,005,143
0
true
2022-04-25T19:53:07.613Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to passing variables between two modules which have a function?<p>I stuck, i dont have idea how can I pass the variables to another module.</p> <p>I have...
72,005,205
Combing Rows in a Single Dataframe<p>I have a dataframe that looks like this, where there is a new row per ID if one of the following columns has a value. I'm trying to combine on the ID, and just consolidate all of the remaining columns. I've tried every groupby/agg combination and can't get the right output. There ar...
<pre><code># fill Nones in string columns with empty string df[['email', 'status']] = df[['email', 'status']].fillna('') df = df.groupby('id').agg('max') </code></pre> <p>If you still want the index as you shown in desired output,</p> <pre><code>df = df.reset_index(drop=False) </code></pre>
Combing Rows in a Single Dataframe
python|pandas
0
33
1
72,005,409
72,005,409
0
true
2022-04-25T20:08:08.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Combing Rows in a Single Dataframe<p>I have a dataframe that looks like this, where there is a new row per ID if one of the following columns has a value. I'...
72,005,707
Python: store userinput in list until quit<p>This is my current code:</p> <pre><code> account_number = [&quot; &quot;] uinput = int(input(&quot;Type some Bank account numbers. Type &quot;quit&quot; to stop: &quot;)) while uinput != &quot;quit&quot;: account_number.append(uinput) else: print(Kontonummern, fro...
<p>Try this:</p> <pre><code>account_number = [&quot; &quot;] uinput = input(&quot;Type some Bank account numbers. Type quit to stop: &quot;) while uinput != &quot;quit&quot;: account_number.append(int(uinput)) uinput = input(&quot;Type some Bank account numbers. Type quit to stop: &quot;) else: print(Konton...
Python: store userinput in list until quit
python|list|frozenset
0
27
3
72,005,750
72,005,750
0
true
2022-04-25T21:01:04.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python: store userinput in list until quit<p>This is my current code:</p> <pre><code> account_number = [&quot; &quot;] uinput = int(input(&quot;Type some ...
72,005,396
Please how can i plot a line graph on this data frame, I want to show the sum of attendance on a monthly basis in line graph<div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">visit_date</th> <th style="text-align: left;">sex</th> <th style="text-align: left;">age</th> <th...
<p>If I understood correctly this should work</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame(data) df['visit_date'] = pd.to_datetime(df['visit_date']) attendance = df.groupby(pd.Grouper(key=&quot;visit_date&quot;, freq='M')).size().reset_index(name='attendance') attendance.plot(x='...
Please how can i plot a line graph on this data frame, I want to show the sum of attendance on a monthly basis in line graph
pandas|matplotlib|data-analysis
0
23
1
72,005,873
72,005,873
0
true
2022-04-25T20:25:45.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Please how can i plot a line graph on this data frame, I want to show the sum of attendance on a monthly basis in line graph<div class="s-table-container"> <...
71,975,299
Bootstrap Row hits breakpoint too late<p>With the current code below, the row does not change vertically until the dimensions 234 x 668</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-overri...
<p>I was missing col-sm-4 added to every column</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>.contbg { background-color: #FF0000; } .rowbg { background-color: #FFFF00...
Bootstrap Row hits breakpoint too late
html|css|twitter-bootstrap
0
21
1
72,006,328
72,006,328
0
true
2022-04-22T22:32:44.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bootstrap Row hits breakpoint too late<p>With the current code below, the row does not change vertically until the dimensions 234 x 668</p> <p><div class="sn...
72,006,271
onClick trigger for change color of multiple buttons. JetpackCompose<p>I have 7 buttons in a row. each has a transparent background. I want to click on one of them and its color will change. I press again and it will come back. the same with the rest of the buttons. If the button has changed color, it means that it is ...
<p>Each button should maintain it's state.</p> <pre><code>val states = remember { SnapshotStateList&lt;Boolean&gt;().also { for(day in 0..days) { it.add(false) } } } </code></pre> <p>Complete example</p> <pre><code>@Composable fun ButtonSC( days: Int = 6 ) { val states = reme...
onClick trigger for change color of multiple buttons. JetpackCompose
android|kotlin|android-jetpack-compose|android-jetpack
0
274
1
72,007,131
72,007,131
0
true
2022-04-25T22:16:04.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: onClick trigger for change color of multiple buttons. JetpackCompose<p>I have 7 buttons in a row. each has a transparent background. I want to click on one o...
72,005,384
Trigger spark submit jobs from airflow on Dataproc Cluster without SSH<p>currently, am executing my spark-submit commands in airflow by SSH using <code>BashOperator</code> &amp; <code>BashCommand</code> but our client is not allowing us to do SSH into the cluster, is that possible to execute the <code>Spark-submit</co...
<p>You can use <a href="https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_api/airflow/providers/google/cloud/operators/dataproc/index.html#airflow.providers.google.cloud.operators.dataproc.DataprocSubmitJobOperator" rel="nofollow noreferrer">DataprocSubmitJobOperator</a> to submit jobs in Airflow....
Trigger spark submit jobs from airflow on Dataproc Cluster without SSH
google-cloud-platform|airflow|spark-submit|dataproc
0
263
1
72,007,451
72,007,451
0
true
2022-04-25T20:24:45.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trigger spark submit jobs from airflow on Dataproc Cluster without SSH<p>currently, am executing my spark-submit commands in airflow by SSH using <code>Bash...
72,006,734
How to grep errors in log and print 1 line for all errors in shell script?<p>I want to check errors while reading a log file in shell script, and if there are some errors, I want it to echo 'Please check errors' and output it in a file, but the issue is if there are many errors it prints 'Please check errors' for every...
<p>You have the basic idea, you just need to rearrange a bit. First confirm whether errors exist with <code>grep -q 'error' &quot;$FILE&quot;</code> and then if errors exist write the <code>&quot;Please check Errors&quot;</code> prompt and output the lines containing errors.</p> <p>Why not:</p> <pre class="lang-sh pret...
How to grep errors in log and print 1 line for all errors in shell script?
shell|readfile
0
19
1
72,007,632
72,007,632
0
true
2022-04-25T23:28:46.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to grep errors in log and print 1 line for all errors in shell script?<p>I want to check errors while reading a log file in shell script, and if there ar...
72,003,202
Can not connect a Surface eglCreatePbufferFromClientBuffer<pre><code> VGint num_config; EGLint value; EGLBoolean ret; m_BackLayerBuffer = vgCreateImage(SGA_DIS_FMT_RGB565, LCD_WIDTH, LCD_HEIGHT, VG_IMAGE_QUALITY_NONANTIALIASED); vgClearImage(m_BackLayerBuffer, 0, 0, LCD_WIDTH, LCD_HEIGHT); ...
<p>I know that, this hardware can not supoort muti context. After I delete</p> <pre><code>m_OffScreenContext = eglCreateContext(m_Display, m_Config, EGL_NO_CONTEXT, NULL); </code></pre> <p>the return value is EGL_SUCCESS</p>
Can not connect a Surface eglCreatePbufferFromClientBuffer
c++|openvg
0
16
1
72,007,952
72,007,952
0
true
2022-04-25T17:06:53.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can not connect a Surface eglCreatePbufferFromClientBuffer<pre><code> VGint num_config; EGLint value; EGLBoolean ret; m_BackLayerBuffer =...
72,009,766
How to implement a two-way binding in a ForEach statement with nested views with Swift?<p>I've implemented a two-way binding in a Foreach statement that seems to <strong>work properly</strong>:</p> <pre><code>struct ContentView: View { @ObservedObject var dataManager: ContentViewModel var body: some View { ...
<p>First of all, instead of using @ObservedObject, use EnvironmentObject and StateObject.</p> <p>Then instead of <code>var item</code> use <code>@Binding var item</code>. (I think dataManager.data is @Published variable)</p> <p><strong>ContentView</strong></p> <pre><code>struct ContentView: View { @StateObject var ...
How to implement a two-way binding in a ForEach statement with nested views with Swift?
swift|binding|combine
0
35
1
72,009,946
72,009,946
0
true
2022-04-26T07:14:08.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to implement a two-way binding in a ForEach statement with nested views with Swift?<p>I've implemented a two-way binding in a Foreach statement that seem...
71,939,098
Pipeline unable to read field of plain text file<p>Using Apache Hop latest version I'm trying to read in a plain text file. This text file is old and basically only structured by its lines (it has no delimiter, no seperator, no enclosure, etc.). I would like to read and process the lines of this file as rows in my tran...
<p>Figured it out. The naming is a bit misleading, but you can use the &quot;CSV File input&quot; and then set a TAB as delimited. Then use preview on your file and you should find that the lines are actually being parsed.</p>
Pipeline unable to read field of plain text file
apache-hop
0
22
2
72,010,257
72,010,257
0
true
2022-04-20T11:48:58.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pipeline unable to read field of plain text file<p>Using Apache Hop latest version I'm trying to read in a plain text file. This text file is old and basical...
72,010,514
how to fix two arrows turn same time when I only touch one sidebar<p>I want to create a website but when I create the sidebar, then I want to add a submenu to the sidebar, but when I touch one sidebar the two arrows turn together. I try to adjust them but I don't know to want to add what anymore. Then where can I add s...
<p>change your css rule</p> <pre><code>.sidebar_menu .menu:hover li span { transform: translateY(-50%) rotate(-180deg); } </code></pre> <p>to</p> <pre><code>.sidebar_menu .menu li:hover span { transform: translateY(-50%) rotate(-180deg); } </code></pre> <p>Your version tells <strong>all</strong> LI inside a hovered...
how to fix two arrows turn same time when I only touch one sidebar
html|css
0
26
1
72,010,956
72,010,956
0
true
2022-04-26T08:12:32.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to fix two arrows turn same time when I only touch one sidebar<p>I want to create a website but when I create the sidebar, then I want to add a submenu t...
72,010,812
How to extract an integer from a varchar without creating an error<p>I am required to build a query and provide a list of classes with number of students and type of students. However in this particular school, one class can contain one or more school levels. For example some students tend to be taught in the same clas...
<p>Try to extract values by regular expression and assign them to new columns</p> <pre class="lang-sql prettyprint-override"><code>select class, (coalesce (substring (class, '^\d+'), '') as num_class, (coalesce (substring (class, '[A-Za-z]+'), '') as str_class, from student s .... </code></pre>
How to extract an integer from a varchar without creating an error
postgresql|integer|varchar
0
18
1
72,011,033
72,011,033
0
true
2022-04-26T08:34:51.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to extract an integer from a varchar without creating an error<p>I am required to build a query and provide a list of classes with number of students and...
72,011,329
Change input size multiple inputs, Bootstrap 5<p>I'm trying to change the size of inputs in a multiple-input row (Bootstrap 5). I can change the label size but not the two inputs next to it. I want one to be <code>col-7</code> and the other <code>col-1</code>. But the two inputs stay the same in size (see screenshot).<...
<p>you can use <strong>width</strong> for input text.use this code:</p> <pre><code>&lt;div class=&quot;row&quot;&gt; &lt;!-- left column --&gt; &lt;div class=&quot;col-5&quot;&gt; &lt;div class=&quot;input-group my-3&quot;&gt; &lt;label class=&quot;col-form-label&quot;&gt; clientname: &...
Change input size multiple inputs, Bootstrap 5
bootstrap-5
0
539
2
72,011,526
72,011,526
0
true
2022-04-26T09:13:20.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change input size multiple inputs, Bootstrap 5<p>I'm trying to change the size of inputs in a multiple-input row (Bootstrap 5). I can change the label size b...
72,007,788
Understanding Linked Lists in Java?<p>Good afternoon, ladies and gentlemen!</p> <p><a href="https://i.stack.imgur.com/2c6UW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2c6UW.png" alt="enter image description here" /></a></p> <p>Using the following list above, I'm attempting to determine the value...
<p>I'll assume that the notation for a <em>node</em> is to wrap its value in square brackets -- which you have done for some answers.</p> <p>Here is your list with corrections and remarks:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Expression</th> <th style="text-align: center;">Your a...
Understanding Linked Lists in Java?
linked-list
0
24
1
72,011,680
72,011,680
0
true
2022-04-26T02:40:07.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Understanding Linked Lists in Java?<p>Good afternoon, ladies and gentlemen!</p> <p><a href="https://i.stack.imgur.com/2c6UW.png" rel="nofollow noreferrer"><i...
72,011,317
How can I ignore a determinated file in recursive search?<p>I was working on a project to list all files and directories and their recursive elements from a path, code of the function:</p> <pre><code> def recursive_search(path: str) -&gt; &quot;list[str]&quot;: &quot;&quot;&quot;get all files from an absolute pa...
<p>I believe it should be straight-forward here with your example. You can improve it further to get a relative path.</p> <pre><code>for item in os.listdir(path): full_path = os.path.join(path, item) if os.path.isfile(full_path): if not os.path.samefile(full_path, 'C:\\Users\\XXX\\Desktop\\d...
How can I ignore a determinated file in recursive search?
python|arrays|python-3.x
0
23
1
72,011,757
72,011,757
0
true
2022-04-26T09:12:28.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I ignore a determinated file in recursive search?<p>I was working on a project to list all files and directories and their recursive elements from a ...
72,011,734
SQL OUTER JOIN query is asking for parameter when ran in Access<p>I am trying to emulate a Vlookup by joining tables together if they share the same string. However every field that I include is prompting the enter parameter box to appear and I cannot understand why. Below I have the two tables that I need to get data ...
<p>T1.market_event_id is a column that does not exists (it's called &quot;market<strong>ing</strong>_event_id&quot; in your example)</p>
SQL OUTER JOIN query is asking for parameter when ran in Access
sql|ms-access
0
24
1
72,011,832
72,011,832
0
true
2022-04-26T09:42:13.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL OUTER JOIN query is asking for parameter when ran in Access<p>I am trying to emulate a Vlookup by joining tables together if they share the same string. ...
72,011,606
use lookup and group different collection mongodb<p>Hello I have the following collections</p> <pre><code> const TransactionSchema = mongoose.Schema({ schedule: { type: mongoose.Schema.ObjectId, required: true, ref: &quot;Schedule&quot; }, uniqueCode: { type: String, ...
<p>A bit complex and long query.</p> <ol> <li><code>$lookup</code> - <code>schedule</code> collection joins with <code>transaction</code> collection by matching:</li> </ol> <ul> <li><code>_id</code> (<code>schedule</code>) with <code>schedule</code> (<code>transaction</code>)</li> <li><code>status</code> is <code>Activ...
use lookup and group different collection mongodb
mongodb|mongoose|aggregation-framework
0
18
1
72,011,968
72,011,968
0
true
2022-04-26T09:33:06.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: use lookup and group different collection mongodb<p>Hello I have the following collections</p> <pre><code> const TransactionSchema = mongoose.Schema({ sc...
72,004,942
New Kiwi TCMS account, full of data that is not mine<p>I just made a new Kiwi TCMS account today. Until now, I have had nothing to do with the software, neither has the organization I work for. After creating an account and starting to poke around to see if this software is a good fit, I find there are hundreds of test...
<p>You do not specify on which instance/website that account is, nor what you username is. I will assume that it is <a href="https://public.tenant.kiwitcms.org" rel="nofollow noreferrer">https://public.tenant.kiwitcms.org</a>.</p> <p>As the name suggests &quot;public&quot; this is a public demo instance for everyone to...
New Kiwi TCMS account, full of data that is not mine
kiwi-tcms
0
33
1
72,012,302
72,012,302
0
true
2022-04-25T19:42:38.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: New Kiwi TCMS account, full of data that is not mine<p>I just made a new Kiwi TCMS account today. Until now, I have had nothing to do with the software, neit...
72,002,847
ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 160, 160, 3), found shape=(160, 160, 3)<p>I need help with some Machine Learning code of mine. I am using the base of a pretrained model by google and adding the last flattening and output layers of my own.</p> <p>After trai...
<p>Do I understand correctly that you get this error only after you comment training code and run lines starting from <code>model = tf.keras.models.load_model('dogs_vs_cats.h5', compile=True)</code>? If yes, I think that you have a mistake in this line:</p> <pre><code>prediction = model.predict(test, verbose=1) </code>...
ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 160, 160, 3), found shape=(160, 160, 3)
python|machine-learning|keras|conv-neural-network|tensorflow2.0
0
271
1
72,012,828
72,012,828
0
true
2022-04-25T16:32:52.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 160, 160, 3), found shape=(160, 160, 3)<p>I need help with so...
72,012,976
The request is missing a valid API key Google search API python<p>I followed the same steps <a href="https://medium.com/featurepreneur/heres-a-quick-way-to-make-python-scripts-download-images-for-you-d36a8f4bdf03" rel="nofollow noreferrer">here</a> exactly to use the Google search API but I got the following error:</p>...
<p>You <strong>haven't</strong> actually set the environment variable for the Developer and project keys i.e. before you can do <code>key = os.environ.get()</code>, you should have done <code>export GCS_DEVELOPER_KEY=__your_dev_api_key__</code> in a terminal window</p> <p>Refer to the <a href="https://pypi.org/project/...
The request is missing a valid API key Google search API python
python|api|google-cloud-platform
0
283
1
72,013,519
72,013,519
0
true
2022-04-26T11:16:54.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The request is missing a valid API key Google search API python<p>I followed the same steps <a href="https://medium.com/featurepreneur/heres-a-quick-way-to-m...
72,014,161
Is there a way I can get the table to not resize in height when I innerHtml something in the "td"?<p><strong>I am sorry for the norwegian variable names in the js file, but if u try to click a cell, you will see that the height of it will resize, I am wondering if anyone have an easy and quick change!</strong></p> <pre...
<p>In above code I suggest to add height properties in you td tag's class that will solve your issue. if you want to more responsive and you can write <a href="https://www.w3schools.com/css/css_rwd_mediaqueries.asp" rel="nofollow noreferrer">media queries</a>.or using other framework like <a href="https://www.w3schools...
Is there a way I can get the table to not resize in height when I innerHtml something in the "td"?
javascript|html|css
0
25
2
72,014,503
72,014,503
0
true
2022-04-26T12:41:38.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way I can get the table to not resize in height when I innerHtml something in the "td"?<p><strong>I am sorry for the norwegian variable names in t...
72,014,548
How to index data to specific cluster in Elasticsearch?<p>I'm researching Remote Clusters of Elastic at the moment: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-remote-clusters.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-rem...
<p>Cross-cluster &quot;search&quot; is only for seamlessly searching across different clusters through a single central cluster.</p> <p>Write and indexing operations still have to be directed to each cluster specifically, there's no such thing as cross-cluster &quot;indexing&quot;, i.e. your indexing client must point ...
How to index data to specific cluster in Elasticsearch?
elasticsearch|elastic-stack
0
31
1
72,014,608
72,014,608
0
true
2022-04-26T13:08:48.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to index data to specific cluster in Elasticsearch?<p>I'm researching Remote Clusters of Elastic at the moment: <a href="https://www.elastic.co/guide/en/...
72,014,443
How to get thirty percent of total amount in react native<p>I have a available amount and total amount and I want to check available amount &lt; 30% of total amount, please let me know how can I calculate this</p>
<p>How I'd approach it, and this is really just math - so feel free to alter it as you need.</p> <p>First, I'd find out what 30% of the total amount is;</p> <pre><code>var 30percentOfTotalAmount = (30 / 100) * totalAmount; </code></pre> <p>Then you'd just have a check against the available amount;</p> <pre><code>if(30p...
How to get thirty percent of total amount in react native
react-native
0
26
1
72,014,723
72,014,723
0
true
2022-04-26T13:02:21.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get thirty percent of total amount in react native<p>I have a available amount and total amount and I want to check available amount &lt; 30% of total...
72,015,969
Add seconds to current date/time and generate only hour/minute/seconds<p>good morning!</p> <p>I have a little problem, could you help?</p> <p>I need to add 2 seconds to my current time.</p> <p>From my date/time I need to add 2 seconds and get only hour/minute/seconds.</p> <p>I tried in a way like sum. I concatenate hou...
<p>You are looking for the <code>DATEADD</code> function. You can add 2 seconds to a <code>DATE</code> like so</p> <pre><code> DATEADD(second,2,@ACTUEL_DATE) </code></pre>
Add seconds to current date/time and generate only hour/minute/seconds
sql|database|date
0
26
2
72,016,024
72,016,024
0
true
2022-04-26T14:42:37.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add seconds to current date/time and generate only hour/minute/seconds<p>good morning!</p> <p>I have a little problem, could you help?</p> <p>I need to add 2...
72,015,219
Check if the file respects the schema when loading a spark df<p>I am manually defining a schema for a df that I load:</p> <pre><code>my_schema= StructType([ \ StructField(&quot;foo&quot;,StringType(),True), \ StructField(&quot;bar&quot;,StringType(),True) ]) df = spark.read\ .schema(my_schema)\ .option(&...
<p>I think it's not possible by <code>&quot;pure&quot;</code> Spark API.</p> <p>Using Spark API you can read input file with specific schema and limit to <code>1</code> row (for instance) and than run your schema validation step:</p> <pre><code>df = spark.read \ .schema(my_schema) \ .option(&quot;multiline&quot;, T...
Check if the file respects the schema when loading a spark df
json|scala|apache-spark|pyspark
0
35
1
72,016,090
72,016,090
0
true
2022-04-26T13:55:26.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if the file respects the schema when loading a spark df<p>I am manually defining a schema for a df that I load:</p> <pre><code>my_schema= StructType([ ...
72,012,685
Socket IO: New Connection breaks room connection<p>I have an application with an object that can be moved on an X-Y-Z axis. A user can use a button to retrieve the socket ID and send it to a friend. When you start the application and set the room parameter, you are added to the user's group.</p> <p>My problem now is: A...
<p>I was able to resolve the issue.</p> <p>Problem was that <code>var room</code> got overriden everytime a new connection was made, and then the events only got emitted to the room the last connection was made to.</p> <p>To solve this I've created a players object which holds the room now. Then I can send the event to...
Socket IO: New Connection breaks room connection
javascript|node.js|express|socket.io
0
31
1
72,017,286
72,017,286
0
true
2022-04-26T10:51:22.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Socket IO: New Connection breaks room connection<p>I have an application with an object that can be moved on an X-Y-Z axis. A user can use a button to retrie...
72,017,260
how to get the duration from two dates in the following format<p>var date2 = new Date(&quot;04/14/2022 12:49:29&quot;)</p> <p>var date1 = new Date(&quot;04/09/2022 06:16:49&quot;)</p> <p>I want to get the following duration (&quot;126:32:40 &quot;)</p>
<p>Try this solution.</p> <p>Step - 1. Get the time difference between both date</p> <pre><code>const date1 = new Date(&quot;04/09/2022 06:16:49&quot;); const date2 = new Date(&quot;04/14/2022 12:49:29&quot;); const diff = date2.getTime() - date1.getTime(); console.log(diff); // Will display 455560000 i.e miliseconds...
how to get the duration from two dates in the following format
javascript
0
21
1
72,017,896
72,017,896
0
true
2022-04-26T16:16:53.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get the duration from two dates in the following format<p>var date2 = new Date(&quot;04/14/2022 12:49:29&quot;)</p> <p>var date1 = new Date(&quot;04/0...
72,017,692
split content of a column pandas<p>I have the following Pandas Dataframe</p> <p><a href="https://i.stack.imgur.com/K5j0o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K5j0o.png" alt="enter image description here" /></a></p> <p>Which can also be generated using this list of dictionaries:</p> <pre><c...
<p>I think what you are looking for is <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.explode.html" rel="nofollow noreferrer"><code>explode</code></a> on 'people_ids' column.</p> <pre><code>df = df.explode('people_ids', ignore_index=True) </code></pre>
split content of a column pandas
pandas|dataframe
0
26
1
72,018,003
72,018,003
0
true
2022-04-26T16:49:07.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: split content of a column pandas<p>I have the following Pandas Dataframe</p> <p><a href="https://i.stack.imgur.com/K5j0o.png" rel="nofollow noreferrer"><img ...
71,969,765
Can't get progress bar to work in python rich<p>i'm trying to add a progress bar with rich to my code. However, while the code is running, the bar only updates to 100% after it's finished. Can I have any help? My code:</p> <pre><code>theme = Theme({'success': 'bold green', 'error': 'bold red', 'enter': 'b...
<p>The problem was that through the use of <code>for i in track(range(1), description='Scraping'):</code> the bar would only go to 100% when the loop had finished. By changing the <code>range()</code> value would make the code loop and would update the bar. To fix this issue I used another <a href="https://pypi.org/pro...
Can't get progress bar to work in python rich
python|progress-bar|rich
0
1,810
2
72,018,378
72,018,378
0
true
2022-04-22T13:43:28.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't get progress bar to work in python rich<p>i'm trying to add a progress bar with rich to my code. However, while the code is running, the bar only updat...
71,982,350
How to configure apache so html knows its aliases?<p>I have 2 projects Symfony plus react. They exist in 2 directories and react app uses Symfony app as api backend.</p> <p>I tried to figure out the best way to connect it and I used Apache Alias (/front -&gt; my frontend directory because adding /api - backend dorector...
<p>So basicly I bought a domain and created subdomain for backend and everything works well.</p>
How to configure apache so html knows its aliases?
apache|url|apache2
0
14
1
72,018,488
72,018,488
0
true
2022-04-23T18:02:35.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to configure apache so html knows its aliases?<p>I have 2 projects Symfony plus react. They exist in 2 directories and react app uses Symfony app as api ...
72,019,276
stretching/shrinking elements inside of a div to fit its max width?<p>I would like to make a row of buttons stretch to fit the width of a div element. However, I cannot find a way to do this. I would preferably not have to specify a div for every x amount of objects, and simply have it &quot;just work,&quot; but if it'...
<p>How about put them in a container which has display: flex and justify-content: space-between.</p> <p>space-between means that the elements are placed with one up against the left side and one up against the right side and any free space divided equally between the gaps. It will wrap if container isn't big enough. O...
stretching/shrinking elements inside of a div to fit its max width?
html|css
0
29
3
72,019,472
72,019,472
0
true
2022-04-26T19:07:31.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: stretching/shrinking elements inside of a div to fit its max width?<p>I would like to make a row of buttons stretch to fit the width of a div element. Howeve...
72,020,029
how to handle call disconnection while call is on hold (queued)<p>I am following <a href="https://stackoverflow.com/a/41240344/3964095">this approach</a> to work on hold and resume of a call from the virtual caller's end. It works but I am facing two more issues. FYI, the setup is exactly same.</p> <p>First:</p> <p>The...
<p>Fixed the issue by using REST API checks for status of the calls.</p> <pre><code> client.calls.list({ parentCallSid: callId }).then(calls =&gt; { calls.forEach(call =&gt; { if (call.status !== 'in-progress') { client .calls(callId) .update({ status: 'completed' }) } ...
how to handle call disconnection while call is on hold (queued)
twilio
0
35
1
72,020,639
72,020,639
0
true
2022-04-26T20:15:28.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to handle call disconnection while call is on hold (queued)<p>I am following <a href="https://stackoverflow.com/a/41240344/3964095">this approach</a> to ...
72,010,627
Flask Admin field doesnt populate on create_form<p>I have a flask-sqlalchemy model and I want to pre-populate the <code>id</code> field with a default entry when creating a new entry.</p> <p>I tried the following but it doesnt seem to work.</p> <pre class="lang-py prettyprint-override"><code>class Readergroup(BaseModel...
<p><code>form.id</code> is the form's field for the <code>id</code> column, <code>form.id.data</code> holds the field's value.</p> <pre><code>def create_form(self): form = super(MyModelView, self).create_form() form.id.data = 1 return form </code></pre>
Flask Admin field doesnt populate on create_form
python|sqlalchemy|flask-sqlalchemy|flask-admin
0
28
1
72,020,724
72,020,724
0
true
2022-04-26T08:20:58.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flask Admin field doesnt populate on create_form<p>I have a flask-sqlalchemy model and I want to pre-populate the <code>id</code> field with a default entry ...
72,008,741
How do I convert status(string) from http request to status_id(number) before applying business logic<p>This code is written in nestjs with typeorm I m using DTO (Data Transfer Object)</p> <p><strong>create-enquiry.dto.ts</strong> <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fal...
<p>If you're just looking to dynamically get the value of an enum through the enum key, you can use:</p> <pre><code>EnquiryStatusEnum[status as keyof typeof EnquiryStatusEnum] </code></pre>
How do I convert status(string) from http request to status_id(number) before applying business logic
typescript|nestjs|typeorm
0
31
1
72,020,840
72,020,840
0
true
2022-04-26T05:20:35.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I convert status(string) from http request to status_id(number) before applying business logic<p>This code is written in nestjs with typeorm I m using...
72,021,215
Why are all of the arrays deleting an element in this set instead of the one being referenced?<p>My code:</p> <pre><code>uniformPieces3 = ['company1_hat', 'company1_glasses', 'company2_hat'] uniformSet3 = ['hat', 'glasses'] f1 = function(uniformSet, uniformPieces) { uniformPieces.sort(); let arr1 = [] for (i = 0; i ...
<p>I think at a quick read over, you are storing the same reference (<code>uniformSet</code>) and so when you splice one, it splices all (because they are all actually the same referrence)</p> <p>try copying <code>uniformSet</code> instead of assigning it directly</p> <pre><code> hold.forEach(element =&gt; missingPiec...
Why are all of the arrays deleting an element in this set instead of the one being referenced?
javascript|arrays|set
0
26
2
72,021,310
72,021,310
0
true
2022-04-26T22:28:06.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why are all of the arrays deleting an element in this set instead of the one being referenced?<p>My code:</p> <pre><code>uniformPieces3 = ['company1_hat', 'c...
72,021,431
The property 'DadosRequisicao.CnpjFornecedor' could not be mapped because it is of type 'List<string>'<p>I'm trying to do the migration from my properties on Models, and is returning this message:</p> <pre><code>The property 'DadosRequisicao.CnpjFornecedor' could not be mapped because it is of type 'List&lt;string&gt;'...
<p>You are trying to generate a One-To-Many relationship in the wrong way. You can try the following approach:</p> <pre class="lang-cs prettyprint-override"><code>public class DadosRequisicao { [Key] [Required] public int Id { get; set; } public string DataLimiteCot { get; set; } public string Obser...
The property 'DadosRequisicao.CnpjFornecedor' could not be mapped because it is of type 'List<string>'
c#|entity-framework-core
0
35
1
72,021,503
72,021,503
0
true
2022-04-26T22:56:20.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The property 'DadosRequisicao.CnpjFornecedor' could not be mapped because it is of type 'List<string>'<p>I'm trying to do the migration from my properties on...
72,022,221
onmouseover & onmouseout help - unable to continually to do it<p>This is my code, I am trying to make so when I hover over the image it plays a video, and when you hover off it stops the video and goes back to the original image. The issue is when I hover off I am not able to rehover again to play the video again. I wa...
<p>You can try to reload video onmouseout event, so that video shows poster again and replays onmouseover.</p> <p>New Code:</p> <pre><code>&lt;div class=&quot;thumb&quot;&gt; &lt;video width=&quot;450&quot; height=&quot;450&quot; poster=&quot;assets/img/product/mac-flower.png&quot; loop=&quot;true&quot; preload=&quot...
onmouseover & onmouseout help - unable to continually to do it
html|image|video|onmouseover|onmouseout
0
32
2
72,022,335
72,022,335
0
true
2022-04-27T01:09:40.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: onmouseover & onmouseout help - unable to continually to do it<p>This is my code, I am trying to make so when I hover over the image it plays a video, and wh...
72,023,004
Unsure how to NOT include a match in REGEXREPLACE<p>How do I turn <strong>Bay 13 | Brand PS/CPP</strong> into <strong>13</strong> using REGEXREPLACE in Google Sheets? I can't figure out how to NOT include a pattern, as it seems whatever I type as the pattern it takes it out completely. I'm not used to this behavior in ...
<p>I think you want to use <code>REGEXEXTRACT</code> here rather than <code>REGEXREPLACE</code>:</p> <pre><code>REGEXEXTRACT(&quot;\d+(?:\.\d+)?&quot;, &quot;Bay 13 | Brand PS/CPP&quot;) </code></pre>
Unsure how to NOT include a match in REGEXREPLACE
google-sheets
0
29
2
72,023,024
72,023,024
0
true
2022-04-27T03:42:51.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unsure how to NOT include a match in REGEXREPLACE<p>How do I turn <strong>Bay 13 | Brand PS/CPP</strong> into <strong>13</strong> using REGEXREPLACE in Googl...
72,010,155
Why XCode Storyboard not able to recognize unwind function in some UIViewController?<p>I notice in some case, XCode is not able to recognize unwind function in some <code>UIViewController</code>.</p> <p>For instance, the following <code>UIViewController</code> has the following unwind functions.</p> <ol> <li>unwindFrom...
<p>I was able to workaround the issue, by renaming <code>ViewController</code> class name to <code>MainViewController</code>.</p> <p>After the renaming, the XCode seems to able to recognize the unwind functions again.</p>
Why XCode Storyboard not able to recognize unwind function in some UIViewController?
ios|swift|xcode
0
31
1
72,023,333
72,023,333
0
true
2022-04-26T07:44:16.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why XCode Storyboard not able to recognize unwind function in some UIViewController?<p>I notice in some case, XCode is not able to recognize unwind function ...
71,999,425
Query parameter updating too early<p>So I have a selectbox and when I click on one of the options I want the value to be added to the query. Problem is that it keeps adding the previous value instead of the one I just clicked.</p> <p>Example:</p> <pre><code>&lt;option value=&quot;1&quot;&gt;First option&lt;/option&gt; ...
<p>Updated query parameters inside useEffect() an launched my function after option is selected for the first time.</p> <pre><code> useEffect(() =&gt; { const url = new URL(window.location); url.searchParams.set('c', selected_data.category_id); window.history.pushState({}, '', url); if(selected_data.i...
Query parameter updating too early
reactjs
0
25
1
72,025,471
72,025,471
0
true
2022-04-25T12:18:22.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Query parameter updating too early<p>So I have a selectbox and when I click on one of the options I want the value to be added to the query. Problem is that ...
71,939,828
Azure Function : Release pipeline to include appsettings.json values<p>I have 2 settings file in my Azure Functions Project.</p> <p>1)local.settings.json</p> <p>2)appsettings.json</p> <p>In the Startup.cs I am combining both into a single Configuration and everything works fine in the code with local debugging.</p> <pr...
<p>The app started to work after I added .AddEnvironmentVariables() in startup.</p> <pre><code>Config = new ConfigurationBuilder() .SetBasePath(currentDirectory) .AddConfiguration(configuration) .AddJsonFile(&quot;appsettings.json&quot;, optional: false, reloadOnChange: ...
Azure Function : Release pipeline to include appsettings.json values
azure-devops|azure-functions|azure-pipelines-release-pipeline
0
265
1
72,026,850
72,026,850
0
true
2022-04-20T12:40:33.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure Function : Release pipeline to include appsettings.json values<p>I have 2 settings file in my Azure Functions Project.</p> <p>1)local.settings.json</p>...
72,026,855
Oracle: how to substract a date from table column from a fixed date<p>I have a table containing a column in date format named &quot;date_started&quot;. I want to substract all the dates from this column from a fixed date, for example 31.03.2022, resulting in a new column &quot;absolut days&quot; showing difference betw...
<p><code>'31.03.2022'</code> may look like a date but it is not a <code>DATE</code> data type; it is a string literal.</p> <p>If you want a <code>DATE</code> data type then you can use a date literal:</p> <pre class="lang-sql prettyprint-override"><code>SELECT DATE '2022-03-31' - date_started AS absolut_days FROM you...
Oracle: how to substract a date from table column from a fixed date
sql|oracle
0
29
1
72,026,879
72,026,879
0
true
2022-04-27T10:02:55.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Oracle: how to substract a date from table column from a fixed date<p>I have a table containing a column in date format named &quot;date_started&quot;. I wan...
71,986,521
Live code editor - cannot delete first character (using XMLHttpRequest and flask)<p>I have a live code editor, and I cannot delete the first character, if I select the whole text, and press <code>delete</code> or <code>backspace</code>, it do not do anything.<br> What can I do?<br> <strong>Html:</strong></p> <pre><code...
<p>I have since discovered the problem:<br> When I send at the data <code>&quot;text=&quot;</code>, the <code>request.form.get(&quot;text&quot;)</code> returns <code>''</code>, and tha boolean value is <code>False</code>.<br> So I changed the code as below:</p> <pre><code>@app.route('/files/file.txt') def file(): if r...
Live code editor - cannot delete first character (using XMLHttpRequest and flask)
javascript|flask|xmlhttprequest-level2
0
21
1
72,027,775
72,027,775
0
true
2022-04-24T07:56:55Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Live code editor - cannot delete first character (using XMLHttpRequest and flask)<p>I have a live code editor, and I cannot delete the first character, if I ...
72,008,485
How to apply smooth parameter to main effect and interaction separately in mgcv?<p>I use the code below to apply smooth parameter to interaction term only.</p> <pre><code>mgcv::gam(Y ~ s(X1, k=3, sp=-1) + s(X2, k=4, sp=-1) + ti(X1, X2, k=4, sp=c(1,1)) + X3, method = &quot;REML&quot;) </code></pre...
<p>Yes. In the first example the marginal smooths for <code>X1</code> and <code>X2</code> will have their smoothness parameters fixed at the value <code>1</code>. In the second example you have a fixed smoothing parameter of <code>0.5</code> for the marginal smooth of <code>X1</code> and a smoothing parameter of <code>...
How to apply smooth parameter to main effect and interaction separately in mgcv?
r|mgcv
0
28
1
72,027,930
72,027,930
0
true
2022-04-26T04:42:42.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to apply smooth parameter to main effect and interaction separately in mgcv?<p>I use the code below to apply smooth parameter to interaction term only.</...
71,843,524
solr distinct query I want only certain fields to be listed<p>I want to find the number of unique records based on myparam value.</p> <p>Solr distinct query I want only certain fields to be listed. too many ifs in the distinctValues ​​array in the results. whereas I just want to get the <strong>countDistinct</strong> v...
<p>I found the answer I was looking for in solr functions. adress:18282/solr/2021/select?q=<em>:</em>&amp;wt=json&amp;json.facet={x:'unique(username)'}&amp;rows=0 Accordingly, I can find out how many different users there are.</p>
solr distinct query I want only certain fields to be listed
apache-spark|solr|distinct|solr7
0
21
1
72,028,007
72,028,007
0
true
2022-04-12T13:23:41.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: solr distinct query I want only certain fields to be listed<p>I want to find the number of unique records based on myparam value.</p> <p>Solr distinct query ...
72,023,571
Node / Express Aliases with Jest<p>I am currently configuring file path aliases to simplify relative path imports within the project. I have everything working perfectly when running locally. Here is some context:</p> <p><code>tsconfig.json</code></p> <pre><code>{ &quot;compilerOptions&quot;: { &quot;target&quo...
<p>Resolved this by doing the following:</p> <p>Added <code>import 'tsconfig-paths/register';</code> to the top of my <code>globalSetup</code> file. This was silly mistake of mine as I didn't think about jest global set up running outside my test environment so the linking import I had set in the entry of the applicat...
Node / Express Aliases with Jest
typescript|jestjs|alias|ts-jest
0
256
1
72,028,499
72,028,499
0
true
2022-04-27T05:13:46.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Node / Express Aliases with Jest<p>I am currently configuring file path aliases to simplify relative path imports within the project. I have everything work...
72,028,688
how to check if a link of an input belongs to a specific site in python?<p>I have a function that will check a URL <code>input</code>, however, there are only two options, which are Amazon and Aliexpress, so I'm trying to check if the link entered in the <code>input</code> belongs to one of the two sites, but I'm not g...
<p>I did not fully understand what you're asking or what's the problem, but you are always throwing errors if the provided site does not belong to amazon. You should cycle over all the sites that you want to check and raise an exception only if there is no match</p> <pre class="lang-py prettyprint-override"><code>def u...
how to check if a link of an input belongs to a specific site in python?
python
0
34
1
72,029,000
72,029,000
0
true
2022-04-27T12:25:50.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to check if a link of an input belongs to a specific site in python?<p>I have a function that will check a URL <code>input</code>, however, there are onl...
72,029,280
SWIFT Changing colour of a shape depending on text from an array<p>My aim is to display a different colour for each type of category within my array, there are over 10 categories so what I have now seems very inefficient, I have speculated using a function but have had no luck and cannot seem to find any online. my cur...
<p>In the object representing <code>crime</code> declare a computed property</p> <pre><code>var categoryColor : Color { switch category { case &quot;other-theft&quot;: return .pink case &quot;possession-of-weapons&quot;, &quot;public-order&quot;: return .red case &quot;robbery&quot;: return ...
SWIFT Changing colour of a shape depending on text from an array
swift|if-statement
0
29
2
72,029,476
72,029,476
0
true
2022-04-27T13:03:29.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SWIFT Changing colour of a shape depending on text from an array<p>My aim is to display a different colour for each type of category within my array, there a...
72,029,520
How to give a cell containing with 'ISREF' a default value in Google Sheets<p>I am trying to use a formula that uses INDEX function. In order to generalize for all the lines that sometimes may contain information from another sheet and sometimes they may not.</p> <p>That's why I get an <code>ISREF</code> error within t...
<p>After trial and error the best way to avoid all sorts of errors is:</p> <pre><code>= IF($Q203=&quot;&quot;; 0; IFERROR(INDEX(Plagesuivi; $Q203; 9); 0)) </code></pre> <ul> <li><p><code>IFERROR</code> checks for all sorts of unpredictable errrors it is a safe-guard against unpredicted cases where it takes 0 by default...
How to give a cell containing with 'ISREF' a default value in Google Sheets
google-sheets|google-sheets-formula
0
25
2
72,029,730
72,029,730
0
true
2022-04-27T13:20:12.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to give a cell containing with 'ISREF' a default value in Google Sheets<p>I am trying to use a formula that uses INDEX function. In order to generalize f...