question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,214,753 | Not getting proper data while join two queries in Mysql<p>I am writing a query one query getting weekly data one is getting yesterday record from same table. When I execute both queries separately, they are working properly, but when join both queries, then yesterday's data query is not returning the proper output.</p>... | <p>I think you just want</p>
<pre><code> SELECT sub1.*, sub2.yesterday_trip
FROM (
-- put contents of first query here
) as sub1
LEFT JOIN (
-- put contents of second query herre
) as sub2 on sub1.driver_id = sub2.driver_id
</code></pre>
<p>Is there any reason this did not work?</p> | Not getting proper data while join two queries in Mysql | mysql|sql | 0 | 39 | 1 | 72,218,714 | 72,218,714 | 0 | true | 2022-05-12T11:31:26.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Not getting proper data while join two queries in Mysql<p>I am writing a query one query getting weekly data one is getting yesterday record from same table.... |
72,218,660 | Calculate percentage Pandas groupby<p>I have a Dataframe with 4 columns: 'ID' (clients), 'item', 'tier' (high/low), 'units' (number). Now for each item and each tier I would like to find the total units and how many clients bough at least one item for each tier. I do this with</p>
<pre><code>df.groupby(['item','tier'])... | <p>I think you want this:</p>
<pre><code>dfs = df.groupby(['item','tier']).agg(
ID_amount=('ID', 'size'),
total_units=('units', 'sum'))
dfs['percent_units'] = dfs.groupby('item')['total_units']\
.transform(lambda x: x/x.sum()*100)
dfs
</code></pre> | Calculate percentage Pandas groupby | pandas|pandas-groupby|aggregate|percentage | 0 | 54 | 1 | 72,218,791 | 72,218,791 | 0 | true | 2022-05-12T15:51:45.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Calculate percentage Pandas groupby<p>I have a Dataframe with 4 columns: 'ID' (clients), 'item', 'tier' (high/low), 'units' (number). Now for each item and e... |
72,218,235 | Storing a numerical variable in a local macro?<p>I have a variable called "count," which contains the number of subjects who attend each of 1300 study visits. I would like to store these values in a local macro and display them one by one using a for loop.</p>
<p>E.g.,</p>
<pre><code>local count_disp = count
... | <p>In case you only want to display all values in order, then it is easier to skip the intermediate step of creating the macro. You can just display the values row by row like this:</p>
<pre><code>* Example generated by -dataex-. For more info, type help dataex
clear
input byte count
11
22
33
end
* Loop over the numbe... | Storing a numerical variable in a local macro? | list|stata|stata-macros | 0 | 29 | 1 | 72,218,934 | 72,218,934 | 0 | true | 2022-05-12T15:20:32.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Storing a numerical variable in a local macro?<p>I have a variable called "count," which contains the number of subjects who attend each of 1300 st... |
72,215,656 | Auto resize to fill all multi panels<p>How to size all panels as fill in form1 window without changing panels size? I searched on Google. very difficult to find. That why i want to help. like in below Thanks.</p>
<p>If 3 panels this will be resized:</p>
<p><a href="https://i.stack.imgur.com/VxfFa.png" rel="nofollow nor... | <p>You can use a FlowLayoutPanel. Insert in your form and set Dock=Fill in the designer. Add this const to your form:</p>
<pre><code>private const int PanelSize = 200;
</code></pre>
<p>In the constructor:</p>
<pre><code>this.flowLayoutPanel1.Resize += this.OnFlowLayoutPanel1_Resize;
this.OnFlowLayoutPanel1_Resize(this.... | Auto resize to fill all multi panels | c#|resize|fill | 0 | 32 | 1 | 72,219,053 | 72,219,053 | 0 | true | 2022-05-12T12:31:20.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Auto resize to fill all multi panels<p>How to size all panels as fill in form1 window without changing panels size? I searched on Google. very difficult to f... |
72,218,936 | Getting error while try to color my turtle<pre><code>from turtle import Turtle
my_turtle = Turtle()
my_turtle.color(40.0, 80.0, 120.0)
my_turtle.forward(50)
</code></pre>
<p>The code works well when I try to work with str such as .color("green") or .color("#285078"), but while I work with the 3 int ... | <p>Create a <code>Screen</code> object and set its <code>colormode</code> to <code>255</code> which on default was set to <code>1.0</code>.</p>
<pre><code>from turtle import Screen
my_screen = Screen()
my_screen.colormode(255)
</code></pre>
<p>Now pass the arguments of <code>my_turtle.color()</code> of integer datatyp... | Getting error while try to color my turtle | python|python-turtle | 0 | 55 | 1 | 72,219,081 | 72,219,081 | 0 | true | 2022-05-12T16:11:53.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting error while try to color my turtle<pre><code>from turtle import Turtle
my_turtle = Turtle()
my_turtle.color(40.0, 80.0, 120.0)
my_turtle.forward(50)
... |
72,205,093 | Python MSAL REST Graph: is it possible to get all files in folder, not just 200, in one request?<p>I need to delete all files from a OneDrive folder. When I issue a request like the one shown under <code># Listing children(all files and folders) within General</code> <strong><a href="https://python.plainenglish.io/all-... | <p>This worked:</p>
<pre><code>link = parent+":/children"
while True:
rGetCh = requests.get(link, headers=headers)
for ch in rGetCh.json()["value"]:
# Looping through the current list of children
chName = urllib.parse.quote(ch["name"].encode('utf8'))
chPath... | Python MSAL REST Graph: is it possible to get all files in folder, not just 200, in one request? | python|python-3.x|microsoft-graph-api|msal | 0 | 140 | 1 | 72,219,187 | 72,219,187 | 0 | true | 2022-05-11T17:15:20.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python MSAL REST Graph: is it possible to get all files in folder, not just 200, in one request?<p>I need to delete all files from a OneDrive folder. When I ... |
72,149,818 | In Mongo, If a document I'm saving "Prateek" then I don't want on the next create operation even the "prateek" or "praTEEK", etc is saved<p>//** If I'm adding a new document with the name: "India", then I don't want that the DB allow another name with the name: "INDIA", "india", "indI... | <p>just add <code>lowercase</code> prop to Schema.</p>
<p>Schema</p>
<pre><code>const DinosaurSchema = mongoose.Schema({
name: {
type: String,
unique: true,
required: true,
lowercase: true,
},
// ...
)}
</code></pre>
<p>first it will convert name into lowercase then it will... | In Mongo, If a document I'm saving "Prateek" then I don't want on the next create operation even the "prateek" or "praTEEK", etc is saved | node.js|mongodb|indexing | 0 | 29 | 2 | 72,219,215 | 72,219,215 | 0 | true | 2022-05-07T05:45:19.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
In Mongo, If a document I'm saving "Prateek" then I don't want on the next create operation even the "prateek" or "praTEEK", etc is saved<p>//** If I'm addin... |
72,219,209 | replacing tag with another tag targeting class<p>Trying to change the <code>h3</code> tag to a <code><button></code> tag targeting via <code>.container</code> and <code>.button-1</code> class using JavaScript. Unfortunately, it only targets the first <code>h3</code></p>
<p><div class="snippet" data-lang="js" data... | <p>Your problem is you're using <code>querySelector</code> which is always referred to the first-found element. I'd suggest that you should change it to <code>querySelectorAll</code> (get all elements) and use a loop to update all your elements</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="... | replacing tag with another tag targeting class | javascript|html|css | 0 | 39 | 2 | 72,219,273 | 72,219,273 | 0 | true | 2022-05-12T16:32:41.840Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
replacing tag with another tag targeting class<p>Trying to change the <code>h3</code> tag to a <code><button></code> tag targeting via <code>.container... |
72,217,270 | change in the structure of table<p>I was required a function which can give the required result below, transpose of the current output table. i want variables in rows and and row variables in column.</p>
<pre><code>library(expss)
data(mtcars)
mtcars1 <- mtcars
mtcars1$dd <- ifelse(mtcars1$gear == 4,1,NA)
mtcars1$... | <p>As you cell vars in the same dimension with banners it is better to use <code>tab_rows</code> and then <code>tab_transpose</code>:</p>
<pre><code>fun1<- function(dataset,varlist,banner){
intermediate_table = dataset %>%
tab_rows(banner)
for(each_var in varlist){
intermediate_table = in... | change in the structure of table | r | 0 | 27 | 1 | 72,219,288 | 72,219,288 | 0 | true | 2022-05-12T14:16:43.127Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
change in the structure of table<p>I was required a function which can give the required result below, transpose of the current output table. i want variable... |
72,218,004 | Handle multiple request in Node.js<p>How to handle multiple request at the same time? I couldn't find anything related to Nestjs and prisma. Does anybody has any recommended article or so?</p>
<p>To provide simple example - let's say I am building e-commerce API. I have simplified orderService in Nestjs. Business logic... | <p>You can work with <code>transactions</code>, please follow this <a href="https://dev.to/alphamikle/the-easiest-way-to-use-transactions-in-nest-js-41h0" rel="nofollow noreferrer">tutorial</a></p>
<blockquote>
<p>A database transaction symbolizes a unit of work performed within a database management system (or similar... | Handle multiple request in Node.js | node.js|parallel-processing|request|nestjs | 0 | 458 | 1 | 72,219,327 | 72,219,327 | 0 | true | 2022-05-12T15:05:40.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Handle multiple request in Node.js<p>How to handle multiple request at the same time? I couldn't find anything related to Nestjs and prisma. Does anybody has... |
72,219,302 | Change css float properity on click with javascript<p>I'm trying to do a dark mode button for my website. my idea is to use an event on click to change the side of my button switch from left to the right and right to the left. it works on my first click, it switches from left to the right (from off to on). But when I t... | <p>Your problem is you define <code>switchmode</code> variable outside of the function and re-use it in your function. Whenever DOM gets updated, your variable is not updated as you expected. You should get <code>switchmode</code> again for the next updates in the function.</p>
<p>You also have a small problem here</p>... | Change css float properity on click with javascript | javascript|html|css | 0 | 48 | 3 | 72,219,353 | 72,219,353 | 0 | true | 2022-05-12T16:40:22.757Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change css float properity on click with javascript<p>I'm trying to do a dark mode button for my website. my idea is to use an event on click to change the s... |
72,218,975 | Unity - Scriptable object automation<p>I have a requirement to automate the creation of X amount of scriptable objects from a CSV file, in the image below is an example of a manually completed one, the minimum amount of automation I need for this is the name/description/stat modifier.</p>
<p>The CSVtoSO class below suc... | <p>I believe your question is "How do convert a string to an Enum value?". If so, enum has the <code>Parse</code> and <code>TryParse</code> methods which take in a string and attempt to convert it to the enum value.</p>
<pre><code>if (System.Enum.TryParse(statStringValue, out Stat statValue))
{
Debug.Log... | Unity - Scriptable object automation | c#|unity3d|scriptable-object | 0 | 160 | 1 | 72,219,435 | 72,219,435 | 0 | true | 2022-05-12T16:14:46.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unity - Scriptable object automation<p>I have a requirement to automate the creation of X amount of scriptable objects from a CSV file, in the image below is... |
72,218,813 | Queries to increase memory usage PostgreSQL<p>I created an AWS CloudWatch alarm for Aurora PostgreSQL's Freeable Memory and wanted to test if it is created correctly. So looking for any queries to be executed on the Aurora PostgreSQL 12.8 which can increase its memory usage to say 70 or 80% and activate the CloudWatch ... | <p>I cannot say about Aurora, but on PostgreSQL you could do something like:</p>
<pre><code>SET work_mem = '1TB';
SELECT * FROM generate_series(1, 100000000000000000000000000000000);
</code></pre> | Queries to increase memory usage PostgreSQL | database|postgresql|memory|amazon-aurora | 0 | 30 | 1 | 72,219,445 | 72,219,445 | 0 | true | 2022-05-12T16:03:24.510Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Queries to increase memory usage PostgreSQL<p>I created an AWS CloudWatch alarm for Aurora PostgreSQL's Freeable Memory and wanted to test if it is created c... |
72,217,657 | Fetch json data from url and write in a file<p>I'm trying to fetch Json data from a Url and then write the data in a Json File.
Here is my code :</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprin... | <p><code>jsondata</code> is a redundant variable. Here is a rewrite of your <code>fetch().then().then()</code> which leverages <code>fs.writeFile()</code> in the second <code>.then()</code>.</p>
<p>I used <code>node-fetch</code> for this implementation, but it should work in a browser environment as well.</p>
<pre><cod... | Fetch json data from url and write in a file | javascript|elixir-jason | 0 | 675 | 2 | 72,219,449 | 72,219,449 | 0 | true | 2022-05-12T14:41:46.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Fetch json data from url and write in a file<p>I'm trying to fetch Json data from a Url and then write the data in a Json File.
Here is my code :</p>
<p><div... |
72,191,555 | Optimize SQL query using `COUNT`<p>I have the SQL query (I am using MariaDB/MySQL) below which works fine. But I am wondering if I can simplify/optimize it. The difficulty I am facing is because of <code>COUNT</code> with <code>INNER JOIN</code>. Do I really need the subquery <code>IN</code> or you think there is a way... | <p>I like Barmar's answer, but because of the filtering on <code>b</code>, I suggest a small(?) change. (I rearrange the tables primarily to follow the Optimizer's likely order.)</p>
<pre><code>SELECT DISTINCT a.*
FROM (
SELECT field1
FROM bbb
WHERE xxx = 'x'
GROUP BY field1
HAVING COUNT(*) &l... | Optimize SQL query using `COUNT` | mysql|sql|mariadb|query-optimization | 0 | 57 | 2 | 72,219,459 | 72,219,459 | 0 | true | 2022-05-10T18:43:55.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Optimize SQL query using `COUNT`<p>I have the SQL query (I am using MariaDB/MySQL) below which works fine. But I am wondering if I can simplify/optimize it. ... |
72,217,333 | Can I use something similar to Angular's *ngFor in pyscript?<p>I am playing with Pyscript for the first time and I am trying to create a DOM element for each element in an array, similar to the *ngFor directive in Angular. Is there any way to achieve this?</p>
<pre><code><body>
<div id="test">... | <blockquote>
<p>I am trying to create a DOM element for each element in an array</p>
</blockquote>
<p>To append a new DOM element, use the <code>append=True</code> parameter</p>
<pre><code>pyscript.write("test", x, append=True)
</code></pre>
<p>The signature for pyscript.write</p>
<pre><code>@staticmethod
def... | Can I use something similar to Angular's *ngFor in pyscript? | javascript|html|angular|pyscripter|pyscript | 0 | 202 | 1 | 72,219,541 | 72,219,541 | 0 | true | 2022-05-12T14:20:01.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can I use something similar to Angular's *ngFor in pyscript?<p>I am playing with Pyscript for the first time and I am trying to create a DOM element for each... |
72,219,252 | container wont start after docker desktop upgrade<p>I have a container that I am working on. The container was running perfectly fine before, I was able to do a docker-compose --build and it rebuilt without any issues. I went ahead and upgraded my docker desktop on my Mac to version 4.8.1(78998), container was runnin... | <p>I removed the container completly and deleted the image. I then started it and it rebuilt without any issues. I guess somehow the image got corrupt.</p> | container wont start after docker desktop upgrade | python|docker|docker-compose | 0 | 125 | 1 | 72,219,588 | 72,219,588 | 0 | true | 2022-05-12T16:36:07.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
container wont start after docker desktop upgrade<p>I have a container that I am working on. The container was running perfectly fine before, I was able to ... |
72,212,619 | Confluent kafka python API - how to get number of partitions in a topic<p>I would like to get the number of partitions within a topic but the API is difficult to understand at best.</p>
<p>I found the following, but, the topic information doesn't contain the numbers of partitions.</p>
<pre><code>import confluent_kafka
... | <p>Partitions are not a "topic config" to be gotten from the AdminClient.</p>
<p>You can use a <a href="https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#pythonclient-consumer" rel="nofollow noreferrer">Consumer instance</a> to get them</p>
<p><code>consumer.list_topics... | Confluent kafka python API - how to get number of partitions in a topic | python|apache-kafka|confluent-kafka-python | 0 | 222 | 1 | 72,219,608 | 72,219,608 | 0 | true | 2022-05-12T08:51:22.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Confluent kafka python API - how to get number of partitions in a topic<p>I would like to get the number of partitions within a topic but the API is difficul... |
72,209,564 | creating setup.msi for a solution that has 2 projects and the second one depends on the first<p>I've developed two projects. (1) is a Windows service and the (2) is an ASP .NET simple app that has just one page displaying a SELECT from a SQL database that (1) maintains.
The (2) Project depends on the (1) [it has refere... | <p>I had to add not just PublishedItems but the whole nine yards (html pages, css, etc.) to the output .msi
Now it works</p> | creating setup.msi for a solution that has 2 projects and the second one depends on the first | dependencies|project | 0 | 78 | 1 | 72,219,648 | 72,219,648 | 0 | true | 2022-05-12T02:43:19.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
creating setup.msi for a solution that has 2 projects and the second one depends on the first<p>I've developed two projects. (1) is a Windows service and the... |
72,216,774 | Get Comments History from Connect Custom Configuration payload<p>How can I get the comments history as pdf from custom configuration ?</p>
<p><a href="https://i.stack.imgur.com/RLVzU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RLVzU.png" alt="enter image description here" /></a></p>
<p><a href="h... | <p>DocuSign Connect doesn't support this.</p>
<p>You will have to make a separate API call to obtain the PDF of the Comments.</p>
<p><a href="https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/comments/get/" rel="nofollow noreferrer">https://developers.docusign.com/docs/esign-rest-api/reference/env... | Get Comments History from Connect Custom Configuration payload | docusignapi|docusignconnect | 0 | 16 | 1 | 72,219,682 | 72,219,682 | 0 | true | 2022-05-12T13:46:42.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get Comments History from Connect Custom Configuration payload<p>How can I get the comments history as pdf from custom configuration ?</p>
<p><a href="https:... |
72,219,393 | How to get SwiftUI TextField to show numbers but also accept an empty value<p>I am trying to get a text field that only accepts numbers but will also accept an empty value (ie. it is an optional field). This is what the textfield looks like:</p>
<pre><code>TextField("Phone Number", value: $phoneNumber, format... | <p>A possible solution is to intercept input/output via proxy binding and and perform needed additional validation/processing.</p>
<p><a href="https://i.stack.imgur.com/Qk5hf.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qk5hf.gif" alt="demo" /></a></p>
<p>Tested with Xcode 13.3 / iOS 15.4</p>
<p>H... | How to get SwiftUI TextField to show numbers but also accept an empty value | ios|swift|swiftui | 0 | 241 | 2 | 72,219,757 | 72,219,757 | 0 | true | 2022-05-12T16:48:20.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get SwiftUI TextField to show numbers but also accept an empty value<p>I am trying to get a text field that only accepts numbers but will also accept ... |
72,217,906 | How to have shiny app save gt ouput as an .RFT file on the users browser?<p>I have this simple shiny app that takes a user's input and passes it to a gt table.
I also have two buttons that can save the table as an <code>png</code> or <code>rtf</code>.</p>
<p>The <code>png</code> works as intended and downloads the tabl... | <p><code>downloadHandler()</code> was the solution</p>
<pre><code>library(data.table)
library(shiny)
library(gt)
library(shinyscreenshot)
data <- datasets::mtcars
setDT(data, keep.rownames = TRUE)[]
ui <- navbarPage("Save this to RTF",
tabPanel("Table", icon = icon("t... | How to have shiny app save gt ouput as an .RFT file on the users browser? | r|shiny|shinydashboard|rtf | 0 | 69 | 1 | 72,219,765 | 72,219,765 | 0 | true | 2022-05-12T15:00:41.297Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to have shiny app save gt ouput as an .RFT file on the users browser?<p>I have this simple shiny app that takes a user's input and passes it to a gt tabl... |
72,219,778 | How do I get the HTML nodes to not stack?<p>When a click event occurs I am getting the content displays but it stacks on top of each other. How do I get the HTML content to display on one line and not stack? Meaning how do I get it to only only once after a new click event occurs?</p>
<p><div class="snippet" data-lang=... | <p>Don't append a new element, assign to the <code>innerHTML</code> of an existing element to replace it.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function colorGenerato... | How do I get the HTML nodes to not stack? | javascript|html | 0 | 40 | 4 | 72,219,842 | 72,219,842 | 0 | true | 2022-05-12T17:19:46.313Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I get the HTML nodes to not stack?<p>When a click event occurs I am getting the content displays but it stacks on top of each other. How do I get the ... |
72,219,867 | Django How to properly upload image to form?<p>This is my code associated with the form:</p>
<h1>models</h1>
<pre><code>class Date(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
place = models.ForeignKey('Place', on_delete=models.CASCADE, null=True)
title = models.CharFie... | <p>When you call <a href="https://docs.djangoproject.com/en/4.0/topics/forms/modelforms/#the-save-method" rel="nofollow noreferrer"><strong><code>form.save()</code></strong></a> it returns model instance so you can get instance from it like this</p>
<pre><code>def form_valid(self, form):
form.instance.user = self.r... | Django How to properly upload image to form? | python|python-3.x|django|django-models|django-forms | 0 | 68 | 1 | 72,219,970 | 72,219,970 | 0 | true | 2022-05-12T17:27:38.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django How to properly upload image to form?<p>This is my code associated with the form:</p>
<h1>models</h1>
<pre><code>class Date(models.Model):
user = ... |
72,218,258 | Unable to properly increment variable and convert to .wav to .mp3<p>I am trying to create a new file recording every time this program runs and also convert those .wav files to .mp3. When I run this, it only creates a <code>output.wav</code> and <code>output0.mp3</code> file and then when I run it again, no further fi... | <p>SOLUTION: Updated my while loop and changed the conversion method</p>
<pre><code>i = 0
while not os.path.exists("output.wav"):
i += 1
fs = 44100 # Sample rate
seconds = 3 # Duration of recording
myrecording = sd.rec(int(seconds * fs), samplerate=fs, channels=2)
sd.wait() # Wait unt... | Unable to properly increment variable and convert to .wav to .mp3 | python-3.x|pydub | 0 | 67 | 2 | 72,220,047 | 72,220,047 | 0 | true | 2022-05-12T15:22:09.920Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to properly increment variable and convert to .wav to .mp3<p>I am trying to create a new file recording every time this program runs and also convert ... |
72,217,917 | All injected member bean of Rest Controller are NULL when invoking a rest API with @RequestPart annotated method<p>Below is my Rest Controller Code:</p>
<pre class="lang-java prettyprint-override"><code>package com.tripura.fileserver.controller;
import com.magic.fileserver.annotation.TrackTime;
import com.magic.filese... | <p>Finally i found the solution. It was a silly mistake as i declared access modifier for the API method <strong>uploadFile</strong> as <strong>private</strong> as below:</p>
<pre><code>private ResponseEntity<ResponseMessage<String>> uploadFile
</code></pre>
<p>After changing the access modifier to <strong>... | All injected member bean of Rest Controller are NULL when invoking a rest API with @RequestPart annotated method | java|spring-boot|file-upload|spring-restcontroller | 0 | 50 | 1 | 72,220,078 | 72,220,078 | 0 | true | 2022-05-12T15:01:07.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
All injected member bean of Rest Controller are NULL when invoking a rest API with @RequestPart annotated method<p>Below is my Rest Controller Code:</p>
<pre... |
72,219,543 | Select a dataframe from a list of dataframes<p>With this function:</p>
<pre><code>def df_printer(*args):
print(#DATAFRAME NAMED BALANCES#)
</code></pre>
<p>and 3 dataframes passed to the function:</p>
<pre><code>df_printer(users, orders, balances)
</code></pre>
<p>Is there any way to reference these dataframes oth... | <p>If you use <code>**kwargs</code> you can have a variable amount of keyword arguments accessible as a dictionary:</p>
<pre><code>def df_printer(**kwargs):
print(kwargs["balances"])
df_printer(users=users, orders=orders, balances=balances)
</code></pre> | Select a dataframe from a list of dataframes | python|pandas | 0 | 37 | 1 | 72,220,128 | 72,220,128 | 0 | true | 2022-05-12T17:00:36.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Select a dataframe from a list of dataframes<p>With this function:</p>
<pre><code>def df_printer(*args):
print(#DATAFRAME NAMED BALANCES#)
</code></pre>
... |
72,186,812 | For UICollectionViewDiffableDataSource, is it possible to direct cell update for a given section/ row, without having to build entire snapshot?<p>For <code>UICollectionViewDiffableDataSource</code>, I was wondering, is it ever possible, to perform direct cell update for a give section/ row, without having to build the ... | <p>Since iOS15, we have an efficient way to update selected item row</p>
<pre><code>private func reconfigureRecordingRow(_ recording: Recording) {
var snapshot = dataSource.snapshot()
snapshot.reconfigureItems([recording])
dataSource.apply(snapshot)
}
private func makeDataSource() -> DataSource {
le... | For UICollectionViewDiffableDataSource, is it possible to direct cell update for a given section/ row, without having to build entire snapshot? | ios|swift|uicollectionview | 0 | 223 | 1 | 72,220,270 | 72,220,270 | 0 | true | 2022-05-10T13:00:41.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
For UICollectionViewDiffableDataSource, is it possible to direct cell update for a given section/ row, without having to build entire snapshot?<p>For <code>U... |
72,217,815 | Cost does not converge/converges very slowly in the soft-coded version?<p>I don't understand. When I hardcode my script, it converges excellent, but in the softcode version, given the same structure and learning rate, it converges very slowly and then simply stops converging from some point on.</p>
<p>Here is the softc... | <p>I solved it myself. Apparently, the "else: continue" line in the print cost section caused the algorithm to do a backward pass only once. After that, it was just looping through the forward pass. Can anyone please explain the reason for such behavior?</p> | Cost does not converge/converges very slowly in the soft-coded version? | machine-learning|deep-learning|neural-network | 0 | 17 | 1 | 72,220,288 | 72,220,288 | 0 | true | 2022-05-12T14:54:36.033Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cost does not converge/converges very slowly in the soft-coded version?<p>I don't understand. When I hardcode my script, it converges excellent, but in the s... |
72,220,223 | #1066 - Not unique table/alias: 'EMP'<p>I am trying to create a query for my table but I get error. I have two tables in the database called 'assignment' and my two tables are 'emp' and 'dept'.</p>
<pre><code>SELECT EMP.EMPNO, EMP.ENAME, EMP.SAL, DEPT.DNAME
FROM assignment.EMP, assignment.DEPT
INNER JOIN EMP on EMP.DEP... | <p>Fixed your JOIN.</p>
<pre><code>SELECT EMP.EMPNO, EMP.ENAME, EMP.SAL, DEPT.DNAME
FROM assignment.DEPT INNER JOIN assignment.EMP ON EMP.DEPTNO = DEPT.DEPTNO
WHERE EMP.SAL > 1000 AND DEPT.DNAME = "SALES" LIMIT 0, 25
</code></pre> | #1066 - Not unique table/alias: 'EMP' | mysql|sql | 0 | 26 | 1 | 72,220,303 | 72,220,303 | 0 | true | 2022-05-12T18:00:00.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
#1066 - Not unique table/alias: 'EMP'<p>I am trying to create a query for my table but I get error. I have two tables in the database called 'assignment' and... |
72,148,982 | ForgeGradle actions causing IntelliJ to crash<p>The gradle process fails when I tried to build or sync my Forge mod written in Kotlin with IntelliJ
The way to find any output is from the logs:</p>
<pre><code>[ 34623] WARN - #c.a.t.i.g.p.s.GradleSyncState - No error message given
java.lang.IllegalStateException: No e... | <p>I got it fixed, I had my system java version set to java 17, rather than java 8. after I changed the alternate and deleted my .gradle folder it worked</p> | ForgeGradle actions causing IntelliJ to crash | kotlin|gradle|intellij-idea|build.gradle|minecraft-forge | 0 | 58 | 1 | 72,220,318 | 72,220,318 | 0 | true | 2022-05-07T02:16:21.227Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ForgeGradle actions causing IntelliJ to crash<p>The gradle process fails when I tried to build or sync my Forge mod written in Kotlin with IntelliJ
The way t... |
72,218,109 | adding a custom class to the div element<p>i have a custom component where i am passing some data to render some css styles</p>
<p>like</p>
<pre><code><title :profile="true" :class="true"/>
</code></pre>
<p>in my component</p>
<p>i have a div as:</p>
<pre><code><div class="tabletitle... | <p>Lets assume your parent component is like</p>
<pre><code><title :profile="true" :showClass="true"/> <!-- modified props name from class to showClass
</code></pre>
<p>and in your child component, as you said you have a div like below</p>
<pre><code><div class="tabletitle">... | adding a custom class to the div element | vue.js|vue-component | 0 | 198 | 2 | 72,220,361 | 72,220,361 | 0 | true | 2022-05-12T15:11:38.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
adding a custom class to the div element<p>i have a custom component where i am passing some data to render some css styles</p>
<p>like</p>
<pre><code><ti... |
72,217,373 | R Shiny MySQL Upload actionButton<p>I am developing a shinydashboard to upload/append some csv files i get on a regular basis to a MySQL database.
The app so far does three things.</p>
<ol>
<li>allows nominating the csv file to be uploaded.</li>
<li>allows a text input of a project number that is added as new column to... | <p>Try this</p>
<pre><code>server <- function(input, output) {
mydata <- eventReactive(input$go, {
inFile <- input$file1
if (is.null(inFile)) return(NULL)
data = read.csv(inFile$datapath, header = TRUE) # csv file contents to data dataframe
data = mutate(data, pn = input$pn) # add proj... | R Shiny MySQL Upload actionButton | mysql|r|shiny|reactive | 0 | 28 | 1 | 72,220,494 | 72,220,494 | 0 | true | 2022-05-12T14:23:33.700Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R Shiny MySQL Upload actionButton<p>I am developing a shinydashboard to upload/append some csv files i get on a regular basis to a MySQL database.
The app so... |
72,142,592 | networkx find_negative_cycle parameters<p>What am I supposed to pass as the source parameter to the <code>find_negative_cycle()</code> method of the python networkx module? In the <a href="https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.find_negative_... | <p>There was an error in the documentation. It should be fixed in version 2.8.1
<a href="https://github.com/networkx/networkx/issues/5610#event-6575071112" rel="nofollow noreferrer">https://github.com/networkx/networkx/issues/5610#event-6575071112</a></p> | networkx find_negative_cycle parameters | python|networkx | 0 | 32 | 3 | 72,220,529 | 72,220,529 | 0 | true | 2022-05-06T13:50:32.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
networkx find_negative_cycle parameters<p>What am I supposed to pass as the source parameter to the <code>find_negative_cycle()</code> method of the python n... |
72,210,966 | Does Json Schema allow a property's definition to reference another property?<p>I'd like to create a JSON schema that restricts one property's values based on another property's values.</p>
<p>An example valid object might look like this:</p>
<pre><code>{
"lookup": {
"foo": "string&quo... | <p>This is possible in some cases. While you can't restrict a piece of data to certain values taken from other parts of the data (for example: using property X to provide a list of values that property Y can have), you can specify conditionals between parts of your schema.</p>
<ul>
<li>requirement 1: this value's prop... | Does Json Schema allow a property's definition to reference another property? | jsonschema|json-schema-validator|ajv | 0 | 711 | 2 | 72,220,543 | 72,220,543 | 0 | true | 2022-05-12T06:27:36.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does Json Schema allow a property's definition to reference another property?<p>I'd like to create a JSON schema that restricts one property's values based o... |
72,220,378 | Javascript Modules not working on some clients<p>I recently started using Javascript modules in my websites, and everything was fine when developing on my desktop. I went to do work on my laptop, but for some reason JS is throwing the following error:</p>
<blockquote>
<p>Failed to load module script: Expected a JavaScr... | <p>Answer:<br>
This is an issue with the http server I was using. My version of Python's http server on my laptop doesnt support modules. <a href="https://stackoverflow.com/questions/63166774/how-can-i-use-es6-modules-on-python-http-server">this post</a> fixed my issue.<br><br>
Also why do I have to wait 2 days to mark... | Javascript Modules not working on some clients | javascript|windows|module|brave | 0 | 75 | 1 | 72,220,584 | 72,220,584 | 0 | true | 2022-05-12T18:16:57.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript Modules not working on some clients<p>I recently started using Javascript modules in my websites, and everything was fine when developing on my de... |
72,218,944 | How to add check box for Daily zone<p>Below is my Code.. how to add input check box for this Daily zone. When i enable this zone should be visible. I tried added last 4 four line to achieve but it throws an error if I enable the last f4 lines. how to get this solved?</p>
<pre><code>Daily = input(title="DailyBand&q... | <p><code>dadrhigh10 </code>, <code>dadrhigh5</code>, <code> dadrlow10</code> and <code>dadrlow5</code> are of type <code>plot</code>. So, you are trying to plot a plot which is not gonna work and what the error message tells you.</p>
<p>Add your condition to other group of plots instead.</p>
<pre><code>dadrhigh10=plot(... | How to add check box for Daily zone | pine-script|pinescript-v5|pine-script-v4 | 0 | 30 | 1 | 72,220,658 | 72,220,658 | 0 | true | 2022-05-12T16:12:34.610Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add check box for Daily zone<p>Below is my Code.. how to add input check box for this Daily zone. When i enable this zone should be visible. I tried a... |
72,217,650 | SQL Server : count distinct every 30 minutes or more<p>We have an activity database that records user interaction to a website, storing a log that includes values such as <code>Time1</code>, <code>session_id</code> and <code>customer_id</code> e.g.</p>
<pre><code>2022-05-12 08:00:00|11|1
2022-05-12 08:20:00|11|1
2022-0... | <p>This is a two-level aggregation (GROUP BY) problem. You need to start with a subquery to get the first and last timestamp of each session.</p>
<pre><code> SELECT MIN(Time1) start_time,
MAX(Time1) end_time,
session_id, customer_id
FROM table1
... | SQL Server : count distinct every 30 minutes or more | sql|sql-server|database|datetime|aggregate-functions | 0 | 85 | 1 | 72,220,728 | 72,220,728 | 0 | true | 2022-05-12T14:40:50.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL Server : count distinct every 30 minutes or more<p>We have an activity database that records user interaction to a website, storing a log that includes v... |
72,209,003 | setState updates state and triggers render but I still don't see it in view<p>I have a simple word/definition app in React. There is an edit box that pops up to change definition when a user clicks on "edit". The new definition provided is updated in the state when I call <code>getGlossary()</code>, I see th... | <p>In the constructor of GlossaryItem I set</p>
<pre><code>this.glossaryItem = this.props.glossaryItem;
</code></pre>
<p>because I am lazy and didn't want to have to write the word 'props' in the component. Turns out this made react loose reference somehow.</p>
<p>If I just remove this line of code and change all refer... | setState updates state and triggers render but I still don't see it in view | javascript|reactjs|state|setstate | 0 | 68 | 2 | 72,220,729 | 72,220,729 | 0 | true | 2022-05-12T00:56:21.497Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
setState updates state and triggers render but I still don't see it in view<p>I have a simple word/definition app in React. There is an edit box that pops up... |
72,220,497 | Makefile Open externally managed shell and run command<p>I am trying to open and externally managed shell and trying to run some command in makefile. How can I do that?</p>
<p>For example, if I want to run the following sequence in my make file:</p>
<pre><code>> python
> a = 6
> b = 5
> c = a + b
> print... | <p>There are various ways, none of them super-simple. Here's the most basic one:</p>
<pre><code>runcommand:
( echo 'a = 6'; \
echo 'b = 5'; \
echo 'c = a + b'; \
echo 'print(c)'; \
echo 'exit()'; \
) | python
</code></pre>
<p>Basically, if you can write the comma... | Makefile Open externally managed shell and run command | makefile | 0 | 12 | 1 | 72,220,851 | 72,220,851 | 0 | true | 2022-05-12T18:28:21.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Makefile Open externally managed shell and run command<p>I am trying to open and externally managed shell and trying to run some command in makefile. How can... |
72,214,830 | $pull objects from multiple array with $in filter<p>I have the following <code>user</code> document :</p>
<pre class="lang-json prettyprint-override"><code>{
"_id":{
"$oid":"627cc1add375d47675b8104a"
},
"email":"camille.balzac@outlook.fr",
"userna... | <p>Ok I really don't understand why but I managed to make the function work by replacing the <code>UpdateOne</code> function by the <code>UpdateMany</code> function.</p>
<p>This was pure luck and any explaination would be greatly appreciated.</p> | $pull objects from multiple array with $in filter | mongodb|go | 0 | 36 | 1 | 72,220,902 | 72,220,902 | 0 | true | 2022-05-12T11:36:59.683Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
$pull objects from multiple array with $in filter<p>I have the following <code>user</code> document :</p>
<pre class="lang-json prettyprint-override"><code>{... |
72,220,411 | Is it ok to use Azure Function App to perform multiple functionalities?<p>I have created a Azure function with QueueTrigger. Here I am planning to perform few functionalities whenever an entry is made to Azure queue via ASP.NET Core WebAPI Controller.</p>
<pre><code>public void Run([QueueTrigger(QUEUE_NAME, Connection... | <p>I don't think it is a good practice, I think functions should be kept simple and repeatable in case something goes wrong. You can stretch the Single-responsibility principle a bit but in this case I think you have gone too far.
Imagine the mail server is down for some reason and sending mails fail every time. Your f... | Is it ok to use Azure Function App to perform multiple functionalities? | c#|azure|azure-functions|class-library|asp.net-core-6.0 | 0 | 77 | 1 | 72,221,114 | 72,221,114 | 0 | true | 2022-05-12T18:19:27.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it ok to use Azure Function App to perform multiple functionalities?<p>I have created a Azure function with QueueTrigger. Here I am planning to perform fe... |
72,220,966 | Transloco dependency conflict<p>I am trying to add the Transloco package to my Angular Ionic project which I compile in VSCode. I am running Angular version 13.3.0 When I run the installation command:</p>
<pre><code>ng add @ngneat/transloco
</code></pre>
<p>I get the following terminal errors:</p>
<p><a href="https://i... | <p>I just forgot to install the package first.
I ran <code>npm install --legacy-peer-deps @ngneat/transloco</code>
and then <code>ng add @ngneat/transloco</code> and it let me continue with the library configuration process.</p> | Transloco dependency conflict | angular|dependencies|transloco | 0 | 71 | 1 | 72,221,118 | 72,221,118 | 0 | true | 2022-05-12T19:11:16.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Transloco dependency conflict<p>I am trying to add the Transloco package to my Angular Ionic project which I compile in VSCode. I am running Angular version ... |
72,221,433 | pip feature to create a shell script[s] for a python package<p><code>poetry</code> has a feature for creating a shell script to set up the environment and launch the local python package. The following directive in <code>pyproject.toml</code> generates a shell script <code>hercl</code> that has the needed env includin... | <p>Oh! It looks like <code>pip</code> supports <code>pyproject.toml</code> directly! It is called the <a href="https://pip.pypa.io/en/stable/reference/build-system/" rel="nofollow noreferrer">Build System Interface</a> It is apparently a newer approach in conjunction with <code>setup.py</code>. I'll get back here on ... | pip feature to create a shell script[s] for a python package | pip | 0 | 40 | 1 | 72,221,483 | 72,221,483 | 0 | true | 2022-05-12T19:55:11.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pip feature to create a shell script[s] for a python package<p><code>poetry</code> has a feature for creating a shell script to set up the environment and la... |
72,220,277 | Problem using a Pipe in Angular to filter some data<p>I have a dropdown box where I added a search box to it and I want to filter the Options based on the textbox entry. In my case i also say if searchText is null or empty return all data which works fine. But if I submit a filter I get this error.</p>
<blockquote>
<p>... | <p>I guess in my case it had to do with when it was called and there was no data since it was a async call. Fieldname was not an issue and i could not elimnate as it is required to tell the function on which field to filter in the object.</p>
<p>Below is code that fixed the issue</p>
<pre><code>return data.filter(item ... | Problem using a Pipe in Angular to filter some data | angular|typescript | 0 | 38 | 2 | 72,221,546 | 72,221,546 | 0 | true | 2022-05-12T18:05:47.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Problem using a Pipe in Angular to filter some data<p>I have a dropdown box where I added a search box to it and I want to filter the Options based on the te... |
72,221,022 | Create Docker Image with Custom JDK<p>I'm attempting to create a Docker image for my custom JDK install. It's simply the Jetbrains Runtime with Hotswap agent added to it. I'm new to docker images and creating a source image like this seems to be extra difficult to find clear documentation.</p>
<p>So far, I have this in... | <p>Your Dockerfile /Containerfile has always to begin with: <code>FROM</code>.
This indicates a base image as you already commented.</p>
<p>A base image is in most cases a minimalistic type of OS like: ubuntu, alpine, ubi from redhat etc. and it provides a filesystem, package manager etc. Thus it is possible to use com... | Create Docker Image with Custom JDK | java|docker|dockerfile | 0 | 368 | 1 | 72,221,595 | 72,221,595 | 0 | true | 2022-05-12T19:17:00.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create Docker Image with Custom JDK<p>I'm attempting to create a Docker image for my custom JDK install. It's simply the Jetbrains Runtime with Hotswap agent... |
72,220,622 | can we pass parameter to the JSON_VALUE in Oracle<p>I have a query which fetches json format data from a column. i want to fetch the data of json by passing a field_name dynamically from the column.</p>
<p>for example</p>
<pre><code>SELECT SUBJECT_MARKS
FROM STUDENT
WHERE STUDENT_ID = 101
</code></pre>
<p>result is:</p... | <p>You could build the subject you want to get info from into an <code>EXECUTE IMMEDIATE</code> statement. Since all of your subjects are simple strings, you can use the <code>DBMS_ASSERT</code> package to validate the input of the <code>p_subject_name</code> parameter to prevent any SQL injection from happening.</p>
<... | can we pass parameter to the JSON_VALUE in Oracle | oracle12.1 | 0 | 126 | 3 | 72,221,615 | 72,221,615 | 0 | true | 2022-05-12T18:39:52.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
can we pass parameter to the JSON_VALUE in Oracle<p>I have a query which fetches json format data from a column. i want to fetch the data of json by passing ... |
72,220,733 | chrome devtools network tab not showing data about websockets<p>Not sure why is this happening, as it worked before. Maybe it is because of update, or I clicked something accidentally.</p>
<p>When I go to network tab of chrome devtools, and try to inspect some websocket, I get this grey area.</p>
<p>My chrome version d... | <p>Ok, so I fixed it for me (probably not the best solution):</p>
<p>I just needed to go to devtools settings and “Restore deaults and reload”.</p> | chrome devtools network tab not showing data about websockets | google-chrome-devtools|devtools | 0 | 160 | 1 | 72,221,725 | 72,221,725 | 0 | true | 2022-05-12T18:51:07.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
chrome devtools network tab not showing data about websockets<p>Not sure why is this happening, as it worked before. Maybe it is because of update, or I clic... |
72,221,519 | Are there cons to generating GUIDs with a stored procedure using NEWSEQUENTIALID?<p>My goal is to create a stored procedure that generates new GUIDs using <a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/newsequentialid-transact-sql?view=sql-server-ver15" rel="nofollow noreferrer"><code>NEWSEQUENTIALID</co... | <p>That should be fine. But you can simplify the generating procedure like this:</p>
<pre><code>CREATE OR ALTER PROCEDURE GenerateNewSequentalId @id as uniqueidentifier OUTPUT
AS
BEGIN
set nocount on;
declare @returnid table (id uniqueidentifier);
declare @test table(id uniqueidentifier default newsequent... | Are there cons to generating GUIDs with a stored procedure using NEWSEQUENTIALID? | sql-server|tsql|stored-procedures | 0 | 56 | 1 | 72,221,843 | 72,221,843 | 0 | true | 2022-05-12T20:04:15.113Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Are there cons to generating GUIDs with a stored procedure using NEWSEQUENTIALID?<p>My goal is to create a stored procedure that generates new GUIDs using <a... |
72,221,840 | How to convert Python's BeautifulSoup .text to uppercase?<p>I am attempting to webscrape the titles from articles on the BBC website and convert it to uppercase through the python .upper method. I'm using Python's BeautifulSoup library for this. This is my code:</p>
<pre><code>from bs4 import BeautifulSoup as bs
import... | <p>You have to use <code>.upper()</code> method</p>
<pre><code>upper = string.upper()
</code></pre> | How to convert Python's BeautifulSoup .text to uppercase? | python|html|string|web-scraping|beautifulsoup | 0 | 57 | 2 | 72,221,863 | 72,221,863 | 0 | true | 2022-05-12T20:39:46.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to convert Python's BeautifulSoup .text to uppercase?<p>I am attempting to webscrape the titles from articles on the BBC website and convert it to upperc... |
72,221,032 | Error middleware not working in backend made with express and cloud functions<p>I am trying to handle errors with express with error middleware. This is my index:</p>
<pre><code>const functions = require("firebase-functions");
const express = require("express");
const cors = require("cors"... | <p>Your problem is in the controller, use like this <code>return next(error);</code>:</p>
<pre><code>async function getAll(req, res, next) {
try {
const products = await productServices.getAllSer();
console.log("Aca esta tu error");
res.json(products);
} catch (error) {
return next(error);... | Error middleware not working in backend made with express and cloud functions | javascript|node.js|express|google-cloud-functions | 0 | 41 | 1 | 72,221,914 | 72,221,914 | 0 | true | 2022-05-12T19:17:34.620Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error middleware not working in backend made with express and cloud functions<p>I am trying to handle errors with express with error middleware. This is my i... |
72,194,928 | QTableView update dynamic based on another cell Python<p>I want to change a cell based on the value in another cell. I'm using a QTableView populated by QAbstractTableModel with a pandas dataframe.
Here is the code of Pandas Model:</p>
<pre><code>class PandasModelEditable(QAbstractTableModel):
def __init__(self, da... | <p>For the first use only edit the classes as @musicamante told me implementing this code:</p>
<pre><code>class CustomizedPandasModel(QAbstractTableModel):
# Previous code hidden to clarify changes, above code is exactly the same
def setData(self, index, value, role=Qt.EditRole):
based_columns = [6, 8... | QTableView update dynamic based on another cell Python | python|pandas|dataframe|pyside6 | 0 | 53 | 1 | 72,221,936 | 72,221,936 | 0 | true | 2022-05-11T03:04:33.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
QTableView update dynamic based on another cell Python<p>I want to change a cell based on the value in another cell. I'm using a QTableView populated by QAbs... |
72,211,830 | posix_spawn and non-standard pipe setup for ipc between parent and child process<p>The file actions of posix_spawn describe the setup code for the child process before it might run execve (which deletes stack etc).</p>
<p>The intended use case is to have one or more additional pipes from the child process to the parent... | <ol>
<li><p><code>posix_spawn</code> takes a pointer to the desired child environment as an argument. If you want to use the parent's environment you can just pass <code>environ</code> here, but there's no obligation to do so. If you want to pass a modified version of it, you have to construct that in the parent before... | posix_spawn and non-standard pipe setup for ipc between parent and child process | pipe|posix|ipc|spawn | 0 | 142 | 1 | 72,222,013 | 72,222,013 | 0 | true | 2022-05-12T07:47:18.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
posix_spawn and non-standard pipe setup for ipc between parent and child process<p>The file actions of posix_spawn describe the setup code for the child proc... |
72,219,614 | How can I find the mode (a number) of a kde histogram in python<p>I want to determine the X value that has the highest pick in the histogram.</p>
<p>The code to print the histogram:</p>
<pre><code>fig=sns.displot(data=df, x='degrees', hue="TYPE", kind="kde", height=6, aspect=2)
plt.xticks(np.arange... | <p>You will need to retrieve the underlying x and y data for your lines using <code>matplotlib</code> methods.</p>
<p>If you are using <code>displot</code>, as in your excerpt, then here is a solution on a toy dataset with two groups that both prints the <code>x</code> value and plots a vertical line for that value. Th... | How can I find the mode (a number) of a kde histogram in python | python|matplotlib|statistics|seaborn|kernel-density | 0 | 94 | 1 | 72,222,126 | 72,222,126 | 0 | true | 2022-05-12T17:06:17.410Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I find the mode (a number) of a kde histogram in python<p>I want to determine the X value that has the highest pick in the histogram.</p>
<p>The code... |
72,222,145 | Python script to check batterylevel on powerbank connected to Raspberry Pi<p>I have project that includes a Raspberry Pi connected to a powerbank as power source.
In my python script I would like to check the battery status of the powerbank before starting a function.</p>
<p>From what I've been able to look up on the i... | <p>Using the battery specs, why not get the maximum and minimum potential difference of the whole battery and interpolate?</p>
<p>You will need to measure this directly from the battery terminals and not through the designated input/output ports which are designed to only allow a certain amount of voltage (5volts usual... | Python script to check batterylevel on powerbank connected to Raspberry Pi | python|python-3.x|raspberry-pi|psutil|batterylevel | 0 | 282 | 1 | 72,222,229 | 72,222,229 | 0 | true | 2022-05-12T21:17:16.217Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python script to check batterylevel on powerbank connected to Raspberry Pi<p>I have project that includes a Raspberry Pi connected to a powerbank as power so... |
72,222,075 | Extracting a type and constraint from a Joi schema<p>If I have a schema:</p>
<pre><code>const schema = Joi.object({
title: Joi.string().trim().alphanum().min(3).max(50).required().messages({
"string.base": `Must be text`,
"string.empty": `Cannot be empty`,
"string.mi... | <p>Turns out <code>.extract()</code> <a href="https://joi.dev/api/?v=17.2.1#anyextractpath" rel="nofollow noreferrer">here</a> was the correct answer, it was just a bug in my implementation:</p>
<pre><code>const validateProperty = ({ value, name }, schema) => {
const { error } = schema.extract(name).validate(val... | Extracting a type and constraint from a Joi schema | javascript|validation | 0 | 283 | 1 | 72,222,336 | 72,222,336 | 0 | true | 2022-05-12T21:08:40.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extracting a type and constraint from a Joi schema<p>If I have a schema:</p>
<pre><code>const schema = Joi.object({
title: Joi.string().trim().alphanum()... |
72,221,687 | The configuration option popup for debugging a c++ project in Visual Studio Code does not appear<p>so I want to debug my .cpp program file but when I click on the Run and Debug button and proceed to select my debugging environment (C++ (GDB/LLDB)), the popup to select the configuration option does not even appear at al... | <p>Are you sure you installed the C/C++ Studio Code extension? If you don't get the popup, try writing the json files manually.
Create a <code>.vscode</code> folder in your working directory. In there create a file <code>launch.json</code> in which you declare how you run the debugger</p>
<pre><code>{
"configura... | The configuration option popup for debugging a c++ project in Visual Studio Code does not appear | c++|visual-studio-code|vscode-debugger | 0 | 80 | 1 | 72,222,374 | 72,222,374 | 0 | true | 2022-05-12T20:21:55.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
The configuration option popup for debugging a c++ project in Visual Studio Code does not appear<p>so I want to debug my .cpp program file but when I click o... |
72,215,494 | Firebase - get childrens of children<p>I am looking for a good solution to take data from a child of children.</p>
<p>As You can see in my "users" database i have nodes with users uid's, and in this nodes i have stored users data such as avatar, username etc. but i have problem with getting data from example ... | <p>The snapshot contains everything in the node where you attached the listener. You just need to dig into it to find all the data.</p>
<pre><code>snapshot
.child("username")
.child("followers")
.child("followerUid")
.getValue(String.class);
</code></pre> | Firebase - get childrens of children | java|android|firebase|firebase-realtime-database | 0 | 24 | 1 | 72,222,429 | 72,222,429 | 0 | true | 2022-05-12T12:21:17.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firebase - get childrens of children<p>I am looking for a good solution to take data from a child of children.</p>
<p>As You can see in my "users" ... |
72,222,383 | Creating New columns from other pandas column<p>I would like to create a new <strong>Column</strong> from the genres column.
The genres column contains one or multiple genres and I would like to create a column for each genre name.
Then, I would like to fill in 1 and 0 in each column depending on whether they have the ... | <p>It looks like the values in the <code>Genre</code> column were one-hot encoded. One-hot encoding is also know as referred to as creating dummy variables.</p>
<p>Pandas has a function <code>pd.get_dummies()</code> that should enable you one-hot encode the <code>Genre</code> column. Pass in your data frame and use the... | Creating New columns from other pandas column | python|python-3.x|pandas|dataframe | 0 | 42 | 2 | 72,222,444 | 72,222,444 | 0 | true | 2022-05-12T21:44:39.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating New columns from other pandas column<p>I would like to create a new <strong>Column</strong> from the genres column.
The genres column contains one o... |
72,192,069 | Kivy: How do I place a resizable button in the RH bottom corner, with spacing?<p>I'm new to Kivy, and want to use it for developing a mobile 'Event Card' app.</p>
<p>I've done the basic layout I believe, but the button at the bottom RH corner eludes me. I have tried various ways to make the button resizable and with sp... | <p>Found it!</p>
<p><a href="https://stackoverflow.com/questions/58192426/kivy-typeerror-unsupported-operand-type">Kivy TypeError unsupported operand type</a></p>
<pre><code>size: .5 * self.parent.width, .5 * self.parent.height
</code></pre> | Kivy: How do I place a resizable button in the RH bottom corner, with spacing? | python|kivy|kivy-language|kivymd | 0 | 29 | 1 | 72,222,448 | 72,222,448 | 0 | true | 2022-05-10T19:34:49.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Kivy: How do I place a resizable button in the RH bottom corner, with spacing?<p>I'm new to Kivy, and want to use it for developing a mobile 'Event Card' app... |
72,221,554 | Tensorboard stops updating in Google Colab during learning with stable baselines<p>I am using PPO stable baselines in Google Colab with Tensorboard activated to track the training progress but after around 100-200K timesteps tensorboard stops updating even with the model still training (learning), does anyone else have... | <p>stable baselines doesnt seem to run well on CoLab because of the need to downgrade to tensorflow 1.6 which doesnt run well with tensorboard so instead I used to the newer stable baselines3 with current tensorflow version and tensorboard works fine.</p> | Tensorboard stops updating in Google Colab during learning with stable baselines | python|reinforcement-learning|tensorboard | 0 | 47 | 1 | 72,222,603 | 72,222,603 | 0 | true | 2022-05-12T20:08:18.950Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Tensorboard stops updating in Google Colab during learning with stable baselines<p>I am using PPO stable baselines in Google Colab with Tensorboard activated... |
72,192,759 | Having trouble with wall collisions<p>I'm working on this game right now (with GameMaker Studio 2) and I'm currently coding walls and when I tried making horizontal collision, it worked fine, but when I made floor collision I would get stuck in the walls and floor</p>
<p>here's the code:</p>
<pre><code>//input
keyRigh... | <p>You are checking for a wall at a horizontal offset in both cases and also move/move2 assignments are mixed up. So, instead of</p>
<pre><code>if place_meeting ( x + move, y ,obj_wall)
move2= 0;
if place_meeting ( x + move2, y ,obj_wall)
move= 0;
</code></pre>
<p>you could have</p>
<pre><code>if place_meeting... | Having trouble with wall collisions | collision|gml|game-maker-studio-2 | 0 | 211 | 1 | 72,222,612 | 72,222,612 | 0 | true | 2022-05-10T20:47:25.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Having trouble with wall collisions<p>I'm working on this game right now (with GameMaker Studio 2) and I'm currently coding walls and when I tried making hor... |
72,210,663 | WPF app with embedded WebView2 suddenly shuts down without any visible exception when opening Oookii save file dialog<p>I'm trying to use an embedded WebView2 control in my WPF application, and open an Ookii VistaSaveFileDialog in response to communication from the webview.</p>
<p>However, once I've run the dialog's <c... | <p>Per the <a href="https://github.com/MicrosoftEdge/WebView2Feedback/issues/2453#issuecomment-1125057489" rel="nofollow noreferrer">suggestion I received</a> on the GitHub issue I filed, the following seems to work:</p>
<pre class="lang-cs prettyprint-override"><code>webview.CoreWebView2.WebMessageReceived += (s, e) =... | WPF app with embedded WebView2 suddenly shuts down without any visible exception when opening Oookii save file dialog | c#|wpf|webview2|ookii | 0 | 199 | 1 | 72,222,618 | 72,222,618 | 0 | true | 2022-05-12T05:51:14.220Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
WPF app with embedded WebView2 suddenly shuts down without any visible exception when opening Oookii save file dialog<p>I'm trying to use an embedded WebView... |
72,204,765 | How to improve an Update query in Oracle<p>I'm trying to update two columns in an archaic Oracle database, but the query simply doesn't finish and nothing is updated. Any ideas to improve the query or something else that can be done? I don't have DBA skills/knowledge and unsure if indexing would help, so would apprecia... | <p>For every person, it has to find the corresponding row in temp_color_confidence. The way to do that with the least I/O is to scan each table once and crunch them together in a single hash join, ideally all in memory. Indexes are unlikely to help with that, unless maybe temp_color_confidence is very wide and verbose ... | How to improve an Update query in Oracle | sql|oracle|query-optimization | 0 | 34 | 1 | 72,222,791 | 72,222,791 | 0 | true | 2022-05-11T16:45:19.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to improve an Update query in Oracle<p>I'm trying to update two columns in an archaic Oracle database, but the query simply doesn't finish and nothing is... |
72,222,098 | Find specific value knowing row pandas<p>I have a dataframe with this structure:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>A</th>
<th>indexer</th>
<th>attr1_rank</th>
<th>attr2_rank</th>
<th>attr3_rank</th>
<th>attr4_rank</th>
<th>...</th>
<th>attrn_rank</th>
</tr>
</thead>
<tbody>
<t... | <p>It was easier than I thought for my functionality.</p>
<pre><code> for x in range(initial_column, end_column):
if self._data.iloc[row, x] == int(tmp):
index_value = x
break
col_name = self._data.columns[index_value]
col_name = col_name.removesuffix('_rank')
self._data.... | Find specific value knowing row pandas | python|pandas|dataframe | 0 | 60 | 4 | 72,222,809 | 72,222,809 | 0 | true | 2022-05-12T21:11:29.043Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find specific value knowing row pandas<p>I have a dataframe with this structure:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th... |
72,221,035 | What is the data type of X in pca.fit_transform(X)?<p>I got a word2vec model <code>abuse_model</code> trained by Gensim. I want to apply PCA and make a plot on CERTAIN words that I only care about (vs. all words in the model). Therefore, I created a dict <code>d</code> whose keys are words that I care about and the val... | <p>Per <code>scikit-learn</code> docs – <a href="https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html#sklearn.decomposition.PCA.fit_transform" rel="nofollow noreferrer">https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html#sklearn.decomposition.PCA.fit_transform</a... | What is the data type of X in pca.fit_transform(X)? | scikit-learn|pca|gensim|word2vec | 0 | 93 | 1 | 72,222,851 | 72,222,851 | 0 | true | 2022-05-12T19:17:57.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the data type of X in pca.fit_transform(X)?<p>I got a word2vec model <code>abuse_model</code> trained by Gensim. I want to apply PCA and make a plot ... |
72,192,256 | gcc cross compiling for raspberry pi /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found<p>On Ubuntu 22.04 LTS, I'm cross-compiling for raspberry pi. When I run any built executable on the pi, I get this linking error:</p>
<p><code>/lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found</code>... | <p>I've resolved this issue by finding the right pre-built cross-compiler for raspberry pi bullseye <a href="https://sourceforge.net/projects/raspberry-pi-cross-compilers/" rel="nofollow noreferrer">here</a>.</p> | gcc cross compiling for raspberry pi /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found | linux|gcc|cross-compiling|raspbian | 0 | 964 | 1 | 72,222,926 | 72,222,926 | 0 | true | 2022-05-10T19:55:26.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
gcc cross compiling for raspberry pi /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found<p>On Ubuntu 22.04 LTS, I'm cross-compiling for raspbe... |
72,222,501 | Python Script to find file names from CSV will not concatenate<p>I am writing a script that will allow me to extract a segment of image files from a large folder. I put the image file names into a dataframe. I am having problems figuring out how to iterate through the list, find the corresponding file name and add .im... | <p>This one is hard for me to test because of the paths and me not actually having images... but give it a try. If nothing else, it might get you closer.</p>
<p>Also note that this is assumes your images already have ".img" at end of it in the source, if not... and you need to add that, then let me know and I... | Python Script to find file names from CSV will not concatenate | python|pandas|dataframe | 0 | 23 | 1 | 72,223,014 | 72,223,014 | 0 | true | 2022-05-12T22:00:31.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python Script to find file names from CSV will not concatenate<p>I am writing a script that will allow me to extract a segment of image files from a large fo... |
72,223,065 | How do I produce a new column with values based on a Partition of one column while also based on the values of two additional columns (BigQuery)?<p>I have a table that records all the different statuses for a list of Jobs with timestamps. So the ID column has many Ids that appear several times as their status changes s... | <p>Use below</p>
<pre><code>select *,
first_value(Status) over(partition by JobId order by Timestamp desc) as CurrrentStatus
from your_table
</code></pre>
<p>if applied to sample data in your question - output is</p>
<p><a href="https://i.stack.imgur.com/pGUqm.png" rel="nofollow noreferrer"><img src=... | How do I produce a new column with values based on a Partition of one column while also based on the values of two additional columns (BigQuery)? | sql|google-bigquery | 0 | 18 | 1 | 72,223,104 | 72,223,104 | 0 | true | 2022-05-12T23:33:59.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I produce a new column with values based on a Partition of one column while also based on the values of two additional columns (BigQuery)?<p>I have a ... |
72,211,332 | Reopening a closed django InMemoryFileUpload using class based views<p>I have a Django project which involves a user uploading a CSV file via a form. I parse this file in the forms <code>clean</code> method, and then in the views <code>form_valid</code> method I want to read the file data again (for the purposes of lon... | <p>It turns out the problem was the use of the <code>io.TextIOWrapper</code>, it was resolved by calling the <code>detach</code> method on the text wrapper before it was cleaned up.</p>
<p>A more detailed explanation is covered in this other SO post: <a href="https://stackoverflow.com/questions/48434423/why-is-textiowr... | Reopening a closed django InMemoryFileUpload using class based views | python|django|file-upload|django-class-based-views|django-file-upload | 0 | 39 | 1 | 72,223,111 | 72,223,111 | 0 | true | 2022-05-12T07:03:20.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reopening a closed django InMemoryFileUpload using class based views<p>I have a Django project which involves a user uploading a CSV file via a form. I parse... |
72,193,882 | IPython - pipe multiple subprocesses and show result of final one to stdout<p>There are a lot of questions related to this one but none seems to work for my case:
1-https://stackoverflow.com/questions/9655841/python-subprocess-how-to-use-pipes-thrice?noredirect=1&lq=1
2-https://stackoverflow.com/questions/295459/ho... | <p>The solution I found is to close the stdin of the process:</p>
<pre><code>p1 = subprocess.Popen("rev", stdin=subprocess.PIPE)
p2 = subprocess.Popen("rev", stdout=p1.stdin, stdin=subprocess.PIPE)
subprocess.Popen("my_executable", stdout=p2.stdin)
p2.stdin.close()
</code></pre>
<p>After ... | IPython - pipe multiple subprocesses and show result of final one to stdout | python|python-3.x|subprocess|pipe | 0 | 46 | 1 | 72,223,124 | 72,223,124 | 0 | true | 2022-05-10T23:22:57.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
IPython - pipe multiple subprocesses and show result of final one to stdout<p>There are a lot of questions related to this one but none seems to work for my ... |
72,223,048 | Change height of navbar button and change it from (:selected) to (:hover)<p>My navbar functions in a <strong>:selected</strong> way, which means the dropdown menu only shows when the button is selected. I would like to change it to hover instead, but when I adjust it in CSS, it doesn't change anything. I'm afraid of ad... | <pre><code> .nav-list li:hover ul{
display: block
}
</code></pre>
<p>Hope it's what you're looking for</p> | Change height of navbar button and change it from (:selected) to (:hover) | javascript|html|css|navbar | 0 | 71 | 1 | 72,223,134 | 72,223,134 | 0 | true | 2022-05-12T23:31:12.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change height of navbar button and change it from (:selected) to (:hover)<p>My navbar functions in a <strong>:selected</strong> way, which means the dropdown... |
72,223,040 | Where do I get user and pass for email form api setup?<p>I am trying to get this form working in Nextjs using 'React Hook Form'. So far I think everything is okay, but I need to know where to get the 'user' and 'pass' for the API to send the information in the form.</p>
<p>It is probably a stupid question but when lear... | <p>Looks like you're using Gmail as your mailing service?</p>
<p>To get this working you'll probably need to set up an app password with your gmail account - <a href="https://support.google.com/mail/answer/185833?hl=en" rel="nofollow noreferrer">https://support.google.com/mail/answer/185833?hl=en</a></p> | Where do I get user and pass for email form api setup? | reactjs|next.js|nodemailer|react-hook-form | 0 | 29 | 1 | 72,223,169 | 72,223,169 | 0 | true | 2022-05-12T23:29:29.820Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Where do I get user and pass for email form api setup?<p>I am trying to get this form working in Nextjs using 'React Hook Form'. So far I think everything is... |
72,209,840 | The induction proof in Isabelle: given a subgoal, how to create the right auxiliary lemma<p>I have defined a labeled transition system, and the function which accpets the list that system could reach. For convinence, I defined another funtion used for collecting reachable states. And I want to prove the relation betwee... | <p>There is a problem with your example beyond how to prove the lemma: Your definition of <code>LTS_is_reachable_set</code> is buggy. Consider the second equation of this definition:</p>
<pre><code>"LTS_is_reachable_set Δ q (a # w) = ⋃ ((λ(q, σ, q''). ...
</code></pre>
<p>The issue here is that variable <code>q</c... | The induction proof in Isabelle: given a subgoal, how to create the right auxiliary lemma | isabelle | 0 | 118 | 1 | 72,223,176 | 72,223,176 | 0 | true | 2022-05-12T03:30:57.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
The induction proof in Isabelle: given a subgoal, how to create the right auxiliary lemma<p>I have defined a labeled transition system, and the function whic... |
72,215,359 | How to fix problem with opening ViewController by action from Coordinator in Swift?<p>I'm trying to open another controller by tapping on the cell of my tableView. I'm coding with MVVM and Coordinator pattern.</p>
<p>In the beginning we see this screen - it is declarated in the method start()</p>
<pre><code>let service... | <p>The following works as expected. What are you doing differently?</p>
<pre class="lang-swift prettyprint-override"><code>@main
final class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var viewModel: ViewModel?
func application(_ application: UIApplication, didFinishLaunchi... | How to fix problem with opening ViewController by action from Coordinator in Swift? | ios|swift|rx-swift | 0 | 140 | 1 | 72,223,188 | 72,223,188 | 0 | true | 2022-05-12T12:12:29.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to fix problem with opening ViewController by action from Coordinator in Swift?<p>I'm trying to open another controller by tapping on the cell of my tabl... |
72,221,783 | image height coming back as 0 -- need to get the height after the image loads<p>I'm enlarging an image on click. I'd like to put a caption right under the image, but to do that, I have to know what the new rendered height of the image is after it's enlarged. I don't want the "natural height" of the image. How... | <p>You dont really need to know the height of the image to put the caption at the bottom of the image. Modify your css and change .popup img and caption position to relative. Here is the modified code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="sni... | image height coming back as 0 -- need to get the height after the image loads | jquery|image|height | 0 | 17 | 1 | 72,223,239 | 72,223,239 | 0 | true | 2022-05-12T20:34:00.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
image height coming back as 0 -- need to get the height after the image loads<p>I'm enlarging an image on click. I'd like to put a caption right under the im... |
72,188,597 | [flutter/FCM]problem receiving notification<p>I'm using flutter and Firebasemessaging to send and receive notification and the plugging FlutterLocalNotifications to display them.</p>
<p>but when I receive the notification I get the error :</p>
<pre><code>D/FLTFireMsgReceiver(23943): broadcast received for message
E/Met... | <p>The solution is that I need to add the icon path when I set AndroidNotificationDetails.</p>
<pre><code>static Future _notificationDetails() async {
return NotificationDetails(
android: AndroidNotificationDetails('channel id', 'channel name',
channelDescription: 'channel description',
im... | [flutter/FCM]problem receiving notification | android|flutter|notifications|firebase-cloud-messaging|google-cloud-messaging | 0 | 281 | 2 | 72,223,315 | 72,223,315 | 0 | true | 2022-05-10T14:54:19.127Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
[flutter/FCM]problem receiving notification<p>I'm using flutter and Firebasemessaging to send and receive notification and the plugging FlutterLocalNotificat... |
72,216,587 | How to pass request object from one serializer class to other serializer class in Django<p>I want to access userId of current logged-in user. for that i need to pass the request object from one serialiser to another. Here's my code</p>
<pre><code>class ThreadViewSerializer(serializers.ModelSerializer):
op = PostDetailV... | <p>Here are two ways of achieving that:</p>
<ol>
<li>You can use a <code>SerializerMethodField</code> to access the <code>self.context</code> (keep in mind that this a read-only serializer):</li>
</ol>
<pre class="lang-py prettyprint-override"><code>class ThreadViewSerializer(serializers.ModelSerializer):
op = seri... | How to pass request object from one serializer class to other serializer class in Django | django|django-rest-framework | 0 | 399 | 1 | 72,223,326 | 72,223,326 | 0 | true | 2022-05-12T13:33:53.660Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to pass request object from one serializer class to other serializer class in Django<p>I want to access userId of current logged-in user. for that i need... |
72,222,988 | Snowflake Snowsight Marketplace: User's configured default role does not exist or not authorized<p>Trying to access Snowflake's marketplace (Trying to access Snowsight gives the same error message). when I log onto the legacy browser UI and click on "Data Marketplace", it takes me to the log in screen again. ... | <p>Run <code>DESC USER <username>;</code> and see what the default_role is set to. Most likely it's a mismatch on role that isn't assigned to that user. You can change the default role to something else by using the command:</p>
<p><code>ALTER USER <usernmae> SET DEFAULT_ROLE = <rolename>;</code></p> | Snowflake Snowsight Marketplace: User's configured default role does not exist or not authorized | snowflake-cloud-data-platform | 0 | 226 | 2 | 72,223,392 | 72,223,392 | 0 | true | 2022-05-12T23:20:26.443Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Snowflake Snowsight Marketplace: User's configured default role does not exist or not authorized<p>Trying to access Snowflake's marketplace (Trying to access... |
72,223,256 | Convert Calendar Days to Working Days (and Vice Versa) | 4 Day Work Week<p>I have values corresponding to 'Calendar Days.' I'd like to convert this to 'Working Days.'</p>
<p>In this example, a 'Working Day' is defined by Monday through Thursday (4 days out of the possible 7 in a week).</p>
<p>Alternatively, I'd also l... | <p>This calculation can not be completed precisely from the data given.</p>
<p>In order to know exactly how many of the correct days there are in a period of that length, we would need to know the start day or end day.</p>
<p>However, we should get a reasonable approximation for large numbers like this by simply multi... | Convert Calendar Days to Working Days (and Vice Versa) | 4 Day Work Week | excel|math|excel-2010 | 0 | 1,034 | 1 | 72,223,395 | 72,223,395 | 0 | true | 2022-05-13T00:11:38.787Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Convert Calendar Days to Working Days (and Vice Versa) | 4 Day Work Week<p>I have values corresponding to 'Calendar Days.' I'd like to convert this to 'Work... |
72,223,099 | Using a collection to check if Names exist<p>I am trying to create a subroutine that will take a collection of a bunch of strings, step through it, and check for the existence of a named range or formula that has that string as it's name. Trying it with just one item first:</p>
<pre><code>Dim colCritNames As New Collec... | <p>This works for me:</p>
<pre class="lang-vb prettyprint-override"><code>Sub Tester()
Dim colCritNames As New Collection, nm, wb As Workbook, msg As String
colCritNames.Add "Version"
colCritNames.Add "NotThere"
colCritNames.Add "AlsoNotThere"
Set wb = ThisWor... | Using a collection to check if Names exist | excel|vba | 0 | 147 | 3 | 72,223,468 | 72,223,468 | 0 | true | 2022-05-12T23:40:52.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using a collection to check if Names exist<p>I am trying to create a subroutine that will take a collection of a bunch of strings, step through it, and check... |
72,152,956 | An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: Missing the key CreatedAt<p>Help, I am totally perplexed as to why I am getting this error indicating that CreateAt field is missing when a PutItem() is called. I an ingesting emails into an S3 bucket ... | <blockquote>
<p>Wow what an oversight!! I finally came back to this project and
discovered that within the Overview tab (on the AWS DynamoDB Service page),
the Table definition's Sort Key attribute (that's underneath General Information
section in The Dynamo > Tables breadcrumb) had an extra space accidentally appen... | An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: Missing the key CreatedAt | python|amazon-dynamodb|amazon-cloudwatchlogs|amazon-dynamodb-streams | 0 | 351 | 1 | 72,223,479 | 72,223,479 | 0 | true | 2022-05-07T13:23:58.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: Missing the key CreatedAt<p>Help, I am... |
72,210,836 | Django ORM and Async<p>So, I'm trying to create a polling system internal to django commands for fun and to learn async/django.</p>
<p>I'm using django_tenants, although it's not overly important. The idea is that there is a table that holds "tenants". I want to loop through those tenants in a higher infinite... | <p>Ahhh figured it out... In order to prevent actions on the QuerySet making the ORM try and run sync actions in the async function, I needed to convert the QuerySet to a list inside the sync_to_async function</p>
<pre class="lang-py prettyprint-override"><code>
async def get_queue_count(self, tenant):
with... | Django ORM and Async | python-3.x|django|python-asyncio | 0 | 167 | 1 | 72,223,602 | 72,223,602 | 0 | true | 2022-05-12T06:12:34.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django ORM and Async<p>So, I'm trying to create a polling system internal to django commands for fun and to learn async/django.</p>
<p>I'm using django_tenan... |
72,181,149 | Prometheus query in Grafana with query variable<p>My Grafana panel query is</p>
<pre><code>sum(kube_pod_container_resource_limits_cpu_cores{node=~"$workers"}) / sum(kube_node_status_allocatable_cpu_cores{node=~"$workers"})
</code></pre>
<p>The variable of "workers" is defined as a Promethe... | <p>In Dashboard setting, choose the variable options as</p>
<pre><code>Hide = empty
Multi-value = enable
Include All option = enable
</code></pre>
<p>Then select "all" from the dashboard label, so the query "node=~${workers}" could select all nodes that are filtered out by the q... | Prometheus query in Grafana with query variable | prometheus|grafana|promql | 0 | 1,192 | 2 | 72,223,606 | 72,223,606 | 0 | true | 2022-05-10T05:30:20.597Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Prometheus query in Grafana with query variable<p>My Grafana panel query is</p>
<pre><code>sum(kube_pod_container_resource_limits_cpu_cores{node=~"$work... |
72,223,223 | ImageView.setBackgroundResource<blockquote>
<p>Attempt to invoke virtual method 'void
android.widget.ImageView.setBackgroundResource(int)' on a null object
reference
at com.Adapter.MessageAdapter.onBindViewHolder(MessageAdapter.java:240)
at com.Adapter.MessageAdapter.onBindViewHolder(MessageAdapter.java:37)
at androidx... | <p>I'm not sure what you did in your onCreateViewHolder function, but generally when I see this it's because you inflated the wrong layout. Make sure you are inflating your list_item xml layout. Hope this helps.</p> | ImageView.setBackgroundResource | android|image|android-studio | 0 | 70 | 2 | 72,223,653 | 72,223,653 | 0 | true | 2022-05-13T00:04:36.023Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ImageView.setBackgroundResource<blockquote>
<p>Attempt to invoke virtual method 'void
android.widget.ImageView.setBackgroundResource(int)' on a null object
r... |
72,222,247 | 504 Error for Cloudfront.net distribution and Route53 Domain<p>I'm trying to setup a static S3 website to be reachable via my custom domain, but when I've tested my cloudfront URL I'm getting 504 Error and in the logs, I see the following:</p>
<pre><code><Error>
<Code>AccessDenied</Code>
<Message&g... | <p>I figured this one out. CloudFront wants a slightly different input for the Origin as a result of more recent updates that makes the old method of demarking static S3 bucket websites a bit different now.</p>
<p>So instead of:</p>
<pre><code> Origins:
- DomainName: xyz-cloud-website.s3-website-us-eas... | 504 Error for Cloudfront.net distribution and Route53 Domain | amazon-web-services|amazon-s3|aws-lambda|yaml|amazon-cloudfront | 0 | 129 | 1 | 72,223,682 | 72,223,682 | 0 | true | 2022-05-12T21:29:07.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
504 Error for Cloudfront.net distribution and Route53 Domain<p>I'm trying to setup a static S3 website to be reachable via my custom domain, but when I've te... |
72,223,671 | Git Push and Commit From Replit<p>So I've recently found out that I could connect my repositories from GitHub to replit. However, I haven't been able to figure out how to push and commit my code from replit onto my repository.</p> | <p>That has been answered in replit tutorials and replit forums. <a href="https://replit.com/talk/ask/SOLVED-Is-it-possible-to-use-git/12937" rel="nofollow noreferrer">link</a> to the forum question, <a href="https://replit.com/talk/learn/Replit-Git-Tutorial/23331" rel="nofollow noreferrer">link</a> to the official tut... | Git Push and Commit From Replit | python|github|replit | 0 | 180 | 1 | 72,223,723 | 72,223,723 | 0 | true | 2022-05-13T01:51:26.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Git Push and Commit From Replit<p>So I've recently found out that I could connect my repositories from GitHub to replit. However, I haven't been able to figu... |
72,223,694 | How to include a string in my website url?<p>I created a shop and the url is like:<br>
<a href="https://myshop.com" rel="nofollow noreferrer">https://myshop.com</a></p>
<p>But my client asked me to add respective salers' id into the url so that they can do some analyses, so it would look like:<br>
<a href="https://sale... | <p>You can parse the URL with the <a href="https://developer.mozilla.org/en-US/docs/Web/API/URL/URL" rel="nofollow noreferrer"><code>URL</code> constructor</a>, get the host name, then split it by a comma to get the subdomain.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="... | How to include a string in my website url? | javascript|html|web|url | 0 | 38 | 2 | 72,223,727 | 72,223,727 | 0 | true | 2022-05-13T01:56:10.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to include a string in my website url?<p>I created a shop and the url is like:<br>
<a href="https://myshop.com" rel="nofollow noreferrer">https://myshop.... |
72,223,544 | How generate specific widget dynamically inside ListView.Builder?<p>How generate specific widget dynamically inside ListView.Builder?</p>
<p>I have my data coming from StreamBuilder, this data coming in numbers [1...24] sometimes coming just number [3] or [2,4,7,8,11,12] I'm trying to build 24 containers with a ListVie... | <p>Copy this code below and paste to <a href="https://dartpad.dev/" rel="nofollow noreferrer">dartpad</a> to run full example</p>
<pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'dart:math';
import 'dart:async';
void main() {
return ru... | How generate specific widget dynamically inside ListView.Builder? | flutter|dart | 0 | 36 | 1 | 72,223,766 | 72,223,766 | 0 | true | 2022-05-13T01:21:23.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How generate specific widget dynamically inside ListView.Builder?<p>How generate specific widget dynamically inside ListView.Builder?</p>
<p>I have my data c... |
72,223,643 | Synchronized API request and writing to files<p>I'm working on a node.js application that, once each week, will make a series of API fetch requests, and store the returned JSON into files.</p>
<p>Currently, the code iterates in a for loop, using each string in an array as a parameter for the request. For each parameter... | <p>Assuming you write each API call to a separate file, this can be constructed in an asynchronous manner. Whether that ends up speeding the performance or not depends on how much you end up saturating the various IO streams.</p>
<p>Here is pseudocode to demonstrate. I have made this a bit more declarative than it need... | Synchronized API request and writing to files | javascript|node.js | 0 | 34 | 1 | 72,223,790 | 72,223,790 | 0 | true | 2022-05-13T01:46:17.327Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Synchronized API request and writing to files<p>I'm working on a node.js application that, once each week, will make a series of API fetch requests, and stor... |
72,218,290 | Recover deleted documents from work item in Azure DevOps<p>I deleted some attachments from a Work Item in Azure DevOps, which I can see in the History. Is there any way to recover them?</p>
<p>Selecting them doesn't do anything.</p>
<p><a href="https://i.stack.imgur.com/sTjQx.png" rel="nofollow noreferrer">Screenshot: ... | <p>Deleted attachments can no longer be downloaded from the history.</p>
<p>Please refer to this latest feature update: <a href="https://docs.microsoft.com/en-us/azure/devops/release-notes/2022/boards/sprint-201-update#remove-the-ability-to-download-a-deleted-attachment-from-work-item-history" rel="nofollow noreferrer"... | Recover deleted documents from work item in Azure DevOps | azure-devops | 0 | 80 | 1 | 72,223,832 | 72,223,832 | 0 | true | 2022-05-12T15:24:53.607Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Recover deleted documents from work item in Azure DevOps<p>I deleted some attachments from a Work Item in Azure DevOps, which I can see in the History. Is th... |
72,223,546 | Javascript input value of search bar not updating<p>I've created a search bar on my site with the code below. For some reason the value is not updating when the user clicks on a name in the dropdown options of the search bar. I've tried using .innerHTML and setAttribute() instead of .value and none of those update the ... | <p>In your code, you changed the <code>searchVal</code> to a string, which does not refer to the input tag anymore, and thus would not have a value that you can set.<br />
To fix, simply assign a new variable when you perform the <code>toUpperCase()</code>.</p>
<pre><code>const list = document.querySelector(".list... | Javascript input value of search bar not updating | javascript|html|css|input|searchbar | 0 | 217 | 1 | 72,223,870 | 72,223,870 | 0 | true | 2022-05-13T01:21:30.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript input value of search bar not updating<p>I've created a search bar on my site with the code below. For some reason the value is not updating when ... |
72,193,250 | Memory limited extension on SVF2<p>I am trying to implement the MemoryLimited extension in the Forge viewer per <a href="https://forge.autodesk.com/en/docs/viewer/v7/developers_guide/viewer_basics/memory-limit/" rel="nofollow noreferrer">these instructions</a></p>
<p>But ever since the switch to SVF2, it doesn't seem l... | <p>Unfortunately, the <code>Autodesk.MemoryLimited</code> extension doesn't support svf2 format at this moment. Sorry for the bad news.</p> | Memory limited extension on SVF2 | autodesk-forge|autodesk-viewer | 0 | 41 | 1 | 72,223,872 | 72,223,872 | 0 | true | 2022-05-10T21:44:01.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Memory limited extension on SVF2<p>I am trying to implement the MemoryLimited extension in the Forge viewer per <a href="https://forge.autodesk.com/en/docs/v... |
72,221,027 | MongoDB Updating Boolean Inside Object<p>I am trying to update a boolean inside of an object in my discord.js v13 bot but it does not update here are the things i've tried:</p>
<pre><code> await guildSchema.findOneAndUpdate({
logging.enabled: true
})
</code... | <blockquote>
<p>Your error is passing the <strong>update</strong> statement to the <strong>filter</strong> parameter. <br />
Your query will find the first doc with { 'logging.enabled' : true }. <br />
And don't update anything</p>
</blockquote>
<pre><code>const filter = { 'logging.enabled' : false};
const update = { ... | MongoDB Updating Boolean Inside Object | database|mongodb|discord.js | 0 | 38 | 1 | 72,223,972 | 72,223,972 | 0 | true | 2022-05-12T19:17:15.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MongoDB Updating Boolean Inside Object<p>I am trying to update a boolean inside of an object in my discord.js v13 bot but it does not update here are the thi... |
72,223,988 | p5.js Image Not Showing<p>So I was making an image editing app with p5.js. I uploaded an image to postimages.org (imgur wasn't working). It actually loads the image (I have seen in network tab) but I can't see it. here's the link: <code>https://i.postimg.cc/d3N4VF2G/npestastare.png</code>
here's my html code:</p>
<pre>... | <p>You're trying to render the image before it is actually loaded. You should put the <code>image</code> call in the <code>successCallback</code> parameter of the <code>image</code> function.</p>
<pre class="lang-js prettyprint-override"><code>function imageLoaded() {
document.querySelector('main').classList.remove... | p5.js Image Not Showing | p5.js | 0 | 68 | 1 | 72,224,082 | 72,224,082 | 0 | true | 2022-05-13T02:57:16.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
p5.js Image Not Showing<p>So I was making an image editing app with p5.js. I uploaded an image to postimages.org (imgur wasn't working). It actually loads th... |
72,223,989 | Copy row contents to another sheet and clear data except formulas<p>I am needing to copy all data in a row (including formulas and formatting) to another tab (when a checkbox is ticked), and then I want to clear the contents of that row on the source sheet, but keep all formulas in place. I'm working on Google Sheets A... | <h3>This cannot be run without event object provided by trigger</h3>
<pre><code>function onEdit(e) {
//e.source.toast('Entry')
var sh = e.range.getSheet();
if (sh.getName() == "Day to Day" && e.range.columnStart == 36 && e.value == "TRUE") {
var numColumns = sh.getLastColum... | Copy row contents to another sheet and clear data except formulas | google-apps-script | 0 | 25 | 1 | 72,224,104 | 72,224,104 | 0 | true | 2022-05-13T02:57:17.757Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Copy row contents to another sheet and clear data except formulas<p>I am needing to copy all data in a row (including formulas and formatting) to another tab... |
72,223,906 | Step progress bar not working horizontal in mobile<p>I am trying to implement the step progress bar and I have done the below for the desktop version.</p>
<p>Photo who works on the desktop like</p>
<p><a href="https://i.stack.imgur.com/gNBep.png" rel="nofollow noreferrer">Desktop Version</a></p>
<p>When I try to do it ... | <p>You use fixed width (in px unit) while overall width from 3 <code>li</code> is wider than screen size.</p>
<p>To fix this, use fluid width such as percentage (<code>%</code>).</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="s... | Step progress bar not working horizontal in mobile | html|css|bootstrap-4 | 0 | 56 | 1 | 72,224,188 | 72,224,188 | 0 | true | 2022-05-13T02:40:39.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Step progress bar not working horizontal in mobile<p>I am trying to implement the step progress bar and I have done the below for the desktop version.</p>
<p... |
72,212,564 | How to sum individual entries from multiple tables in SAS<p><strong>What I have:</strong></p>
<p>Team A</p>
<pre><code>Material Accommodation Travel
</code></pre>
<p>Jan 8 12 10</p>
<p>Feb 8 15 30</p>
<p>Mar 9 12 20</p>
<p>Team B</p>
<pre><code>Material Accommodation Travel
</code></pre>
<p>Jan 4 18 20</p>
<p>Feb 7 14 ... | <p>Use SQL <code>union all corresponding</code> statement and sql aggregate function <code>sum()</code>:</p>
<pre><code>proc sql;
create table TeamA
(month char(3), Material num, Accommodation num, Travel num);
insert into TeamA
values('Jan',8,12,10)
values('Feb',8,15,30)
values('Mar',9,12,20);
r... | How to sum individual entries from multiple tables in SAS | sas|sum|multiple-entries | 0 | 41 | 1 | 72,224,217 | 72,224,217 | 0 | true | 2022-05-12T08:46:55.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to sum individual entries from multiple tables in SAS<p><strong>What I have:</strong></p>
<p>Team A</p>
<pre><code>Material Accommodation Travel
</code><... |
72,224,210 | Map object not setting values after execution of function<p>I have a function below where the purpose is to parse multiple local csv files. For each parsed csv file, I then grab 1-5 random elements. Since the CSV parser outputs the data in a nested array structure (<code>[['a'], ['b'], ['c']]</code>), I further process... | <p>It looks like Papa.parse is asynchronous:
<a href="https://www.papaparse.com/docs" rel="nofollow noreferrer">https://www.papaparse.com/docs</a></p>
<blockquote>
<p>"Doesn't return anything. Results are provided asynchronously to a
callback function."</p>
</blockquote>
<p>Since you <code>return types</code>... | Map object not setting values after execution of function | javascript|csv|dictionary|parsing|papaparse | 0 | 68 | 2 | 72,224,260 | 72,224,260 | 0 | true | 2022-05-13T03:43:19.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Map object not setting values after execution of function<p>I have a function below where the purpose is to parse multiple local csv files. For each parsed c... |
72,221,164 | Unable to login to Postgres<p>I am not able to login into my postgres databse deployed in docker. PFB my docker-compose.yml</p>
<pre><code> discountdb:
image: postgres
</code></pre>
<p>docker-compose.override.yml</p>
<pre><code> discountdb:
container_name: discountdb
environment:
- POSTGRES_USER=adm... | <p>The issue was with my postgres_data volume. I removed the volume using the command</p>
<pre><code>docker volume rm -f discountdb
</code></pre>
<p>then ran the docker-compose again which resolved the issue.</p> | Unable to login to Postgres | postgresql|docker | 0 | 47 | 3 | 72,224,272 | 72,224,272 | 0 | true | 2022-05-12T19:29:29.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to login to Postgres<p>I am not able to login into my postgres databse deployed in docker. PFB my docker-compose.yml</p>
<pre><code> discountdb:
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.