question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71,305,742 | Problem with parameter families or groups<p>I have to call this data that comes from Signaturit. The problem is that they are grouped in a kind of family or groups. I'm using Swagger to build the API.</p>
<p><a href="https://i.stack.imgur.com/bJ4ll.png" rel="nofollow noreferrer">Name of the parameteres I have to work w... | <p>Solved:</p>
<pre><code>'document[created_at]': req.swagger.params["document[created_at]"].value,
</code></pre>
<p>Like that you can call the parameter.</p> | Problem with parameter families or groups | javascript|swagger | 0 | 43 | 1 | 71,311,428 | 71,311,428 | 0 | true | 2022-03-01T08:39:06.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Problem with parameter families or groups<p>I have to call this data that comes from Signaturit. The problem is that they are grouped in a kind of family or ... |
71,306,490 | How to prevent consumer commit offset when it auto-commit<p>How to prevent consumer commit offset when it auto-commit.
I got 1 message and i blocked it so i dont want to commit to offset it.</p> | <p>By definition, you cannot prevent commits with auto-commits.</p> | How to prevent consumer commit offset when it auto-commit | apache-kafka | 0 | 44 | 1 | 71,311,739 | 71,311,739 | 0 | true | 2022-03-01T09:45:02.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to prevent consumer commit offset when it auto-commit<p>How to prevent consumer commit offset when it auto-commit.
I got 1 message and i blocked it so i ... |
71,312,519 | i was trying to create django model and i got this error TypeError: 'type' object is not subscriptable<pre><code> gender_choices = models.CharField[('M', 'Male'), ('F','Female')]
gender = models.CharField(choices=gender_choices, max_length=1, default=None, null=True)
</code></pre> | <p>You can use as</p>
<pre><code>gender_choices = (('M', 'Male'), ('F','Female'))
gender = models.CharField(choices=gender_choices, max_length=1, default=None, null=True)
</code></pre>
<p><strong>Note :</strong> The first element in each tuple is the actual value to be set and second element is name.</p> | i was trying to create django model and i got this error TypeError: 'type' object is not subscriptable | django | 0 | 37 | 2 | 71,312,547 | 71,312,547 | 0 | true | 2022-03-01T17:37:22.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
i was trying to create django model and i got this error TypeError: 'type' object is not subscriptable<pre><code> gender_choices = models.CharField[('M', ... |
71,312,397 | Get authenticated data via other methods<p>So I'm running into an issue and I can't seem to figure it out, so I'm reaching out to see if anyone can help me.</p>
<p>I have a method called <code>show_instagram_table()</code> which has the following:</p>
<pre><code>private function show_instagram_table(): string
{
... | <p>You can add one more attribute for each row.
You can use something like <code>data-id</code> or else.</p>
<p>For example :</p>
<pre><code>private function show_authenticated_buttons($user): string
{
$buttons = '<tr data-id="'.$user->id.'">';
$buttons .= $this->show_deauthorize_instagram... | Get authenticated data via other methods | php|jquery | 0 | 16 | 1 | 71,312,564 | 71,312,564 | 0 | true | 2022-03-01T17:27:21.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get authenticated data via other methods<p>So I'm running into an issue and I can't seem to figure it out, so I'm reaching out to see if anyone can help me.<... |
71,302,918 | Spring Authorization Server userinfo endpoint<p>I am getting the following output from the /userinfo endpoint</p>
<pre><code>{
"sub": "XXXX@gmail.com",
"aud": [
"XXXXXXXXX"
],
"nbf": 1646097620.000000000,
"scope": [
"openid",
"profil... | <p>We are working on reference documentation, including how-to guides for cases such as this one. See <a href="https://github.com/spring-projects/spring-authorization-server/issues/537" rel="nofollow noreferrer">How-to: Customize the OpenID Connect 1.0 UserInfo response #537</a>, and feel free to up-vote that issue if ... | Spring Authorization Server userinfo endpoint | spring-security | 0 | 278 | 1 | 71,312,761 | 71,312,761 | 0 | true | 2022-03-01T01:52:46.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Authorization Server userinfo endpoint<p>I am getting the following output from the /userinfo endpoint</p>
<pre><code>{
"sub": "XXXX@gm... |
71,313,353 | useState not working when receiving new values from Redux Store in Function Component<p>On this <a href="https://stackblitz.com/edit/react-edqkfk?file=src%2FApp.js" rel="nofollow noreferrer">StackBlitz (you can play with)</a> I have the following code:</p>
<p><strong>App.js</strong></p>
<pre><code>import { Field, Form,... | <p>no that is wrong <code>React.useState(defaultValue)</code> it's just the default value for the <code>React.useState</code> which is used on component render and it does not listen for new changes.</p>
<p>You need to use <code>React.useEffect()</code> hook which takes the dependencies array if you leave the dependenc... | useState not working when receiving new values from Redux Store in Function Component | reactjs|redux|react-redux|formik|redux-toolkit | 0 | 287 | 2 | 71,313,774 | 71,313,774 | 0 | true | 2022-03-01T18:57:16.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
useState not working when receiving new values from Redux Store in Function Component<p>On this <a href="https://stackblitz.com/edit/react-edqkfk?file=src%2F... |
71,314,132 | How to commit changes to a branch where unrelated local changes already exist<p>I have a local tracking branch named develop. This branch contains some local commits that I am not ready to push (call it change_1). In other words HEAD -> develop is ahead of origin/develop, origin/HEAD.</p>
<p>I have another local bra... | <p>Branches in git are just names pointing at commits. They have no permanent identity, and can be moved and renamed at will. So if you ignore their current names, you want to have three branches:</p>
<ol>
<li>A branch that represents the "released" code</li>
<li>A branch with one set of changes</li>
<li>A br... | How to commit changes to a branch where unrelated local changes already exist | git | 0 | 45 | 1 | 71,314,479 | 71,314,479 | 0 | true | 2022-03-01T20:12:29.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to commit changes to a branch where unrelated local changes already exist<p>I have a local tracking branch named develop. This branch contains some local... |
71,314,457 | Java Persistence Entitymanager - Select from another query's result set<p>I currently have the query stated below. I know this works as a SQL query, but because I am using the EntityManager, from javax.persistence, it requires JPQL. And I don't know JPQL. If there is a way to rewrite this in JPQL that would be nice.</p... | <p>I believe that using the EntityManager don't obligates you to use JPQL, you can also use Native Queries.</p>
<p>As your query looks not so simple (for me at least), I would do it using Native Queries and not JPQL. You can run Native Queries using the EntityManager from javax.persistence. <a href="https://thorben-jan... | Java Persistence Entitymanager - Select from another query's result set | java|hibernate|jpql|quarkus-panache|datapersistance | 0 | 529 | 1 | 71,314,790 | 71,314,790 | 0 | true | 2022-03-01T20:46:00.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Java Persistence Entitymanager - Select from another query's result set<p>I currently have the query stated below. I know this works as a SQL query, but beca... |
71,306,155 | Element refine incase of more than one in CSS selector<p>I have below code and the selector mentioned below gives two as it got the same id.</p>
<pre><code>#grid-norecords > p
</code></pre>
<p>I tried with class name like :</p>
<p><code>div[class="norecordmsg" #grid-norecords] > p</code> >> No res... | <p>Finally it worked with parent class and id combination</p>
<pre><code>.dialog-body #grid-norecords
</code></pre> | Element refine incase of more than one in CSS selector | css-selectors | 0 | 42 | 1 | 71,315,048 | 71,315,048 | 0 | true | 2022-03-01T09:19:06.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Element refine incase of more than one in CSS selector<p>I have below code and the selector mentioned below gives two as it got the same id.</p>
<pre><code>#... |
71,315,418 | Handling relative imports with Flask, gunicorn, and Docker<p>Similar questions have been asked but I've never found a working solution to this issue.</p>
<p>I have a very basic Docker and Flask setup as such:</p>
<p>directory structure:</p>
<pre><code>├── Dockerfile
├── app
│ ├── __init__.py
│ └── constants.py
├── ... | <p>The core of your problem here is that you've lost a layer of directory. You're running GUnicorn from the <code>/app</code> directory, and trying to import the Python <code>app</code> module, but there's no <code>./app/__init__.py</code> relative to the directory you're starting from.</p>
<p>Your first step should b... | Handling relative imports with Flask, gunicorn, and Docker | python|docker|flask|gunicorn | 0 | 287 | 1 | 71,316,310 | 71,316,310 | 0 | true | 2022-03-01T22:39:49.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Handling relative imports with Flask, gunicorn, and Docker<p>Similar questions have been asked but I've never found a working solution to this issue.</p>
<p>... |
71,316,487 | how to repeat a loop a certain number of times to get the Nth derivative?<p>I am trying to get the Nth derivative for coefficients and powers of a polynomial equation given in a dictionary. In the dictionary, the key is the power and the value is the coefficient of the given polynomial.</p>
<p>Here is my code, that wor... | <p>This is how I managed this</p>
<pre><code>def differentiate(polynomial, order):
derivative = {}
counter = 1
_dict = polynomial
while counter <= order:
for power, coeff in _dict.items():
new_coeff = _dict[power] * power
new_power = power - 1
derivative[n... | how to repeat a loop a certain number of times to get the Nth derivative? | python|loops|dictionary|polynomials|derivative | 0 | 30 | 1 | 71,316,572 | 71,316,572 | 0 | true | 2022-03-02T01:34:27.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to repeat a loop a certain number of times to get the Nth derivative?<p>I am trying to get the Nth derivative for coefficients and powers of a polynomial... |
71,317,243 | Selenium send_keys not working on wappalyzer?<p>I'm using Selenium to automate searching on wappalyzer.com. Below is my code:</p>
<pre><code>from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys... | <p>@Warrier
The locator you have provided for <code>search</code> looks incorrect.</p>
<p>Can you try this <code>"#input-360"</code></p>
<p>Also, add some wait before it.</p> | Selenium send_keys not working on wappalyzer? | python|selenium | 0 | 35 | 1 | 71,317,324 | 71,317,324 | 0 | true | 2022-03-02T03:49:00.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Selenium send_keys not working on wappalyzer?<p>I'm using Selenium to automate searching on wappalyzer.com. Below is my code:</p>
<pre><code>from selenium im... |
71,317,378 | Kubernetes Webhook - Multiple hubs defined for group-kind<p>Trying to deploy my webhook using operator-sdk I got this error in the logs:</p>
<pre><code>conversion check failed {"object": {"metadata":{"creationTimestamp":null},"spec":{},"status":{}}, "error": &... | <p>According to kubebuilder <a href="https://book.kubebuilder.io/multiversion-tutorial/conversion-concepts.html" rel="nofollow noreferrer">documentation</a> there must be only one hub Conversion and as many Spokes as versions your CRD has.</p>
<p><a href="https://i.stack.imgur.com/aJNEr.png" rel="nofollow noreferrer"><... | Kubernetes Webhook - Multiple hubs defined for group-kind | kubernetes|operator-sdk|kubebuilder | 0 | 27 | 1 | 71,317,379 | 71,317,379 | 0 | true | 2022-03-02T04:11:53.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Kubernetes Webhook - Multiple hubs defined for group-kind<p>Trying to deploy my webhook using operator-sdk I got this error in the logs:</p>
<pre><code>conve... |
71,305,730 | CSV to HTML - How to Stop indexing using papa parse<p>Just due to low rep(sorry) had to extend this thread:
<a href="https://stackoverflow.com/questions/28317438/csv-to-html-table">CSV to html table</a></p>
<pre class="lang-js prettyprint-override"><code>var csv_array = ["dashboard.csv"];
$(function() {
... | <p>Figured this out(With someone's assistance offsite):</p>
<p>Removed the 'i' from row.append($("").text(i));</p>
<p>If this isnt the answer, please continue to comment a better way.
Thanks!</p>
<pre class="lang-js prettyprint-override"><code>var csv_array = ["dashboard.csv"];
$(function() {
... | CSV to HTML - How to Stop indexing using papa parse | javascript|html|csv | 0 | 42 | 1 | 71,317,387 | 71,317,387 | 0 | true | 2022-03-01T08:38:05.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSV to HTML - How to Stop indexing using papa parse<p>Just due to low rep(sorry) had to extend this thread:
<a href="https://stackoverflow.com/questions/2831... |
71,311,782 | Embedding Webview2 dll within an exe file WPF<p>I want to release my WPF app just in an .exe file. I have 3 dll's from the WebView2 nuget package.</p>
<pre><code>Microsoft.Web.WebView2.Wpf.dll
Microsoft.Web.WebView2.Core.dll
Microsoft.Web.WebView2.WinForms.dll
</code></pre>
<p>As noted, Costura.Fody doesn't work for th... | <p>What version of .NET are you targeting? This will be easiest if you're on .NET 5+ (ideally 6).</p>
<p><a href="https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file/overview" rel="nofollow noreferrer">This page</a> documents how to publish a .NET application as a single file, with instructions for the <... | Embedding Webview2 dll within an exe file WPF | wpf|dll|embed|webview2 | 0 | 265 | 1 | 71,317,840 | 71,317,840 | 0 | true | 2022-03-01T16:37:30.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Embedding Webview2 dll within an exe file WPF<p>I want to release my WPF app just in an .exe file. I have 3 dll's from the WebView2 nuget package.</p>
<pre><... |
71,280,151 | Saving an Association with CakeDC Users<p>I am using CakeDC Users and as part of the registration I would like the registrant to choose some checkbox values that correspond to another Model in the application. I am able to get the form to load the choices just fine, but I am unable to get it to save to the join table e... | <p>In order for a "belongsToMany" association to work in this instance, both *Table.php files must have the relations listed as belongsToMany. Don't forget to make the field accessible in the Entities as well.</p>
<p>One also needs to place the associated array in the patchEntity function in the RegisterBehav... | Saving an Association with CakeDC Users | php|cakephp-4.x|cakedc | 0 | 22 | 1 | 71,318,016 | 71,318,016 | 0 | true | 2022-02-26T20:44:40.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Saving an Association with CakeDC Users<p>I am using CakeDC Users and as part of the registration I would like the registrant to choose some checkbox values ... |
71,318,301 | I am a bit confused on this java project. The main method shows "inputNums(5)" as a method caller which is the size<blockquote>
<p>I am confused on how to use a method caller with just a number. In
this case, in "inputNums(5)," 5 is the size of the array, and I have
to make another method implementing the giv... | <p>If you look at the definition of <code>nums</code> you will see that it is an Array</p>
<pre><code>int[] nums;
</code></pre>
<p>so it is necessary for the return value of <code>inputNums</code> to define in its signature that it will return an Array</p>
<p>e.g.</p>
<pre><code>public static int [] inputNums (int size... | I am a bit confused on this java project. The main method shows "inputNums(5)" as a method caller which is the size | java | 0 | 28 | 1 | 71,318,370 | 71,318,370 | 0 | true | 2022-03-02T06:29:35.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I am a bit confused on this java project. The main method shows "inputNums(5)" as a method caller which is the size<blockquote>
<p>I am confused on how to us... |
71,315,585 | U-Boot - multiple same output formats in linker scripts for ARM<p>I'm currently investigating the <code>U-Boot</code> source tree, because I want add support for a specific ARM architecture for the purpose of education.</p>
<p>Also investigated the linker scripts for ARM, but there is something what I currently don't u... | <p>Binutil manpages are available at <a href="https://sourceware.org/binutils/docs/ld/Format-Commands.html" rel="nofollow noreferrer">https://sourceware.org/binutils/docs/ld/Format-Commands.html</a></p>
<p>The first argument is the default output format the second one is for a user explicitly asking for big-endian with... | U-Boot - multiple same output formats in linker scripts for ARM | arm|u-boot|linker-scripts | 0 | 35 | 1 | 71,319,145 | 71,319,145 | 0 | true | 2022-03-01T23:01:51.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
U-Boot - multiple same output formats in linker scripts for ARM<p>I'm currently investigating the <code>U-Boot</code> source tree, because I want add support... |
71,183,536 | Getting Same Description in All the Custom Taxonomy Posts<p>I have developed a custom taxonomy post type. I have displayed categories & inside categories posts (products).</p>
<p>I am getting the Post title & Image as they should be (which I add), but the descriptions of all the posts are same.</p>
<p>I have no... | <p>I just changed the call</p>
<p><strong>Old:</strong> <code><?php echo get_the_content( $id ); ?></code></p>
<p><strong>New:</strong> <code>echo get_post_field('post_content', $id);</code></p>
<p>Don't know what was wrong but, It worked.</p> | Getting Same Description in All the Custom Taxonomy Posts | custom-post-type|custom-wordpress-pages|custom-taxonomy | 0 | 23 | 1 | 71,319,272 | 71,319,272 | 0 | true | 2022-02-19T09:03:43.550Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting Same Description in All the Custom Taxonomy Posts<p>I have developed a custom taxonomy post type. I have displayed categories & inside categories... |
71,317,820 | how to make passwordless connections from IP1 to IP2?<ol>
<li>I had create authentication
" $ssh-keygen -t rsa "</li>
<li>create .ssh directory on 10.10.10.5
" $ssh root@10.10.10.5 mkdir -p.ssh "</li>
<li>upload generated public keys to - 10.10.10.5
" $cat.ssh/id_rsa.pub | ssh root@10.10.10.5'c... | <p>Suggesting to follow this <a href="https://geekflare.com/linux-ssh-key-exchange/" rel="nofollow noreferrer">article</a>.</p>
<p>Works for me.</p>
<p>Maybe you suffer from missing file permission/access.</p> | how to make passwordless connections from IP1 to IP2? | ssh-keys | 0 | 21 | 1 | 71,319,293 | 71,319,293 | 0 | true | 2022-03-02T05:25:32.750Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to make passwordless connections from IP1 to IP2?<ol>
<li>I had create authentication
" $ssh-keygen -t rsa "</li>
<li>create .ssh directory on ... |
71,319,051 | Applying conditions to 2 dataframes to perform calculation and store result - how to automate process?<p>I have two dataframes; a simplified version looks something like the following:</p>
<pre><code>df1 <- data.frame(x = c(rep(c(1:10)), rep(c(9:1))),
y = c(200, 183, 166, 144, 117, 80, 65, 33, 14, ... | <pre class="lang-r prettyprint-override"><code>library(tidyverse)
library(pracma)
#>
#> Attaching package: 'pracma'
#> The following object is masked from 'package:purrr':
#>
#> cross
df1 <- data.frame(
x = c(rep(c(1:10)), rep(c(9:1))),
y = c(200, 183, 166, 144, 117, 80, 65, 33, 14, 0, 6, 1... | Applying conditions to 2 dataframes to perform calculation and store result - how to automate process? | r|automation | 0 | 31 | 1 | 71,319,333 | 71,319,333 | 0 | true | 2022-03-02T07:44:09.760Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Applying conditions to 2 dataframes to perform calculation and store result - how to automate process?<p>I have two dataframes; a simplified version looks so... |
71,319,425 | wrong behaviour of number format<p>So I'm using the NumberFormat library for building a placeholder, but it doesn't work how I wanted it to work, and I don't find the reason. The behavior of the input field is quite strange. The "$0" which should behave as a placeholder behaves as a character, so if the user ... | <p>Try setting the <code>hintText</code> prop for <code>NumberFormat</code>, also give as an initial value <code>undefined</code>.</p>
<pre><code><NumberFormat
hintText="Some placeholder"
value={this.state.card}
customInput={TextField}
format="#### #### #### ####"
/>
</code></pre> | wrong behaviour of number format | javascript|reactjs|number-formatting|visual-web-developer | 0 | 288 | 1 | 71,319,596 | 71,319,596 | 0 | true | 2022-03-02T08:20:30.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
wrong behaviour of number format<p>So I'm using the NumberFormat library for building a placeholder, but it doesn't work how I wanted it to work, and I don't... |
71,318,594 | Get visible rows from org.eclipse.jface.viewers.TableViewer<p>I'm using org.eclipse.jface.viewers.TableViewer in one of my projects. I need to export the visible rows of my table in a CSV file. Saying visible, I mean the rows a user can see after the table has been filtered. But I can't understand how I can get the row... | <p>I don't think there is a direct method.</p>
<p>One way is to get the <code>TableItem</code> array of the underlying <code>Table</code> that <code>TableViewer</code> uses. The table will only contain the visible items. The data in the table item is the element from your content provider:</p>
<pre><code>TableItem [] i... | Get visible rows from org.eclipse.jface.viewers.TableViewer | java|eclipse|jface|tableviewer | 0 | 36 | 1 | 71,320,627 | 71,320,627 | 0 | true | 2022-03-02T07:01:40.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get visible rows from org.eclipse.jface.viewers.TableViewer<p>I'm using org.eclipse.jface.viewers.TableViewer in one of my projects. I need to export the vis... |
71,320,447 | Anchor base not working in uipath for pdf extraction<p>I want to <strong>extract certain text and numbers</strong> from a <strong>PDF invoice</strong>, one of which is the <strong>total amount</strong>. The thing is that the <strong>position of the total amount keeps on changing from pdf to pdf</strong> based on how ma... | <p>Two potential solutions.</p>
<p><strong>Use UiPath Document Understanding</strong></p>
<p>You can get a certain amount of DU Data on the Community License, then you can setup the templates and use anchor bases, token selection, custom area selectors etc.</p>
<p><strong>Read Lines Approach</strong></p>
<p>Convert the... | Anchor base not working in uipath for pdf extraction | ocr|uipath|rpa|uipath-studio|pdf-extraction | 0 | 293 | 1 | 71,320,988 | 71,320,988 | 0 | true | 2022-03-02T09:40:38.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Anchor base not working in uipath for pdf extraction<p>I want to <strong>extract certain text and numbers</strong> from a <strong>PDF invoice</strong>, one o... |
71,320,910 | create a function to remove or replace last numbers from a list containing 2 values per sublist<p>I have a long list containing a lot of sublists which exist of 2 "values",
for instance</p>
<pre><code>test=[["AAAGG1","AAAAA22"],["GGGGA1","AAGGA"],["GGGGG23",&q... | <p>What you need is to use a regex for replacing the numbers and not manually identifying everything. The whole thing can be achieved by 2 lines below.</p>
<pre><code>import re
processed = [[re.sub(r"\d+$","",n) for n in t] for t in test]
print(processed)
</code></pre>
<p>Gives a result</p>
<pre><co... | create a function to remove or replace last numbers from a list containing 2 values per sublist | python-3.x|list|function|replace|sublist | 0 | 20 | 1 | 71,321,010 | 71,321,010 | 0 | true | 2022-03-02T10:12:40.503Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
create a function to remove or replace last numbers from a list containing 2 values per sublist<p>I have a long list containing a lot of sublists which exist... |
71,320,728 | Django - Find missing invitations for an event<p>I need to pick the community's brain on django. I'm still learning and the layer abstraction is my major challenge (as compared to a PHP/SQL script)</p>
<p>Here's an extract of my models:</p>
<p>A very simple contact, but with a "level" (like basic, gold, ...)<... | <p>I eventually found out how to complete my challenge.</p>
<p>Missing.html has been updated to :</p>
<pre><code>{% for event in Events %}
{% for customer in event.fk_customer.all %}
{% with eventInvites=Invites|matchingEvent:event.id %}
{% for newInvite in eventInvites|MissingInvitesFor:custome... | Django - Find missing invitations for an event | django|django-views|django-templates | 0 | 29 | 1 | 71,322,404 | 71,322,404 | 0 | true | 2022-03-02T09:59:46.963Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django - Find missing invitations for an event<p>I need to pick the community's brain on django. I'm still learning and the layer abstraction is my major cha... |
71,321,842 | Create a function to explode dataframe on column<p>I have written some code to explode a df on a column.</p>
<pre><code>df=df.assign(col=df['col'].str.split(',')).explode('col')
</code></pre>
<p>I now wanto make a function doing the same:</p>
<pre><code>def explode(df,col_ind,col:str):
df=df.assign(col_ind=df[col].str.... | <p>You call a <code>bean</code> variable that isn't defined. To define a kwarg from a string, you have to pass it as a kwarg dictionary with <code>**</code>:</p>
<pre><code>def explode(df, col_ind, col:str):
df=df.assign(**{col_ind : df[col].str.split(',')}).explode(col)
return df
explode(df5, 'beans', 'beans'... | Create a function to explode dataframe on column | python|explode | 0 | 42 | 1 | 71,322,500 | 71,322,500 | 0 | true | 2022-03-02T11:24:17.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a function to explode dataframe on column<p>I have written some code to explode a df on a column.</p>
<pre><code>df=df.assign(col=df['col'].str.split(... |
71,317,186 | Copy SQL Server Scheduled Jobs to Oracle Scheduler<p>I have a requirement of migrating from SQL Server to Oracle 19C. Data migration is done and now I want to know whether there is a mechanism in Oracle to copy SQL Server scheduled job to Oracle Scheduler?</p> | <p>Non, there is not. You have to understand what each work do and traduce it in the ways of Oracle do, then schedule the work with Oracle Scheduler.</p> | Copy SQL Server Scheduled Jobs to Oracle Scheduler | sql-server|scheduled-tasks|oracle19c | 0 | 37 | 1 | 71,322,672 | 71,322,672 | 0 | true | 2022-03-02T03:40:42.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Copy SQL Server Scheduled Jobs to Oracle Scheduler<p>I have a requirement of migrating from SQL Server to Oracle 19C. Data migration is done and now I want t... |
71,322,571 | Soundpool is not playing any sound<p>Im trying to make soundpool work because I need to use it for a prodject. The problem is that it's not playing any sound. Im just trying to play a test sound to see if it works. Hope someone can see what im doing wrong here.</p>
<pre><code>public class MainActivity extends AppCompat... | <p>set up <code>setOnLoadCompleteListener</code> BEFORE <code>load</code> call (which should use <code>sampleId</code>, as <code>game_over</code> may be not assigned yet)</p>
<pre><code>soundPool.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {
@Override
public void onLoadComplete(SoundPool so... | Soundpool is not playing any sound | java|android|android-studio|soundpool | 0 | 38 | 2 | 71,322,703 | 71,322,703 | 0 | true | 2022-03-02T12:17:47.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Soundpool is not playing any sound<p>Im trying to make soundpool work because I need to use it for a prodject. The problem is that it's not playing any sound... |
71,320,859 | Flutter animated container change size of child widget<p>I'm trying to create a container in which I can perform two gesture: <code>onTapDown</code> and <code>onTapUp</code>. I want to decrease the dimension of my container when I perform <code>onTapDown</code>.</p>
<p>What I want is something like that:
<a href="https... | <p>Have you tried with <code>scale</code> instead of changing width and height? Something like this:</p>
<pre><code>class CustomContainerState extends State<CustomContainer> {
double width = 90;
double height = 350;
double scale = 1;
@override
Widget build(BuildContext context) {
return Scaffold(
... | Flutter animated container change size of child widget | flutter|dart|widget|containers|animatedcontainer | 0 | 301 | 1 | 71,323,099 | 71,323,099 | 0 | true | 2022-03-02T10:09:26.597Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter animated container change size of child widget<p>I'm trying to create a container in which I can perform two gesture: <code>onTapDown</code> and <cod... |
71,323,383 | Is there a function to extrude a shape along a path in cgal?<p>I have not found the way to do it with cgal.
Please can you point me to some functions I have to use ?</p> | <p>This does not exist yet in CGAL but there is a draft implementation <a href="https://github.com/CGAL/cgal/pull/6317" rel="nofollow noreferrer">here</a>.</p> | Is there a function to extrude a shape along a path in cgal? | cgal | 0 | 31 | 1 | 71,323,501 | 71,323,501 | 0 | true | 2022-03-02T13:19:30.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a function to extrude a shape along a path in cgal?<p>I have not found the way to do it with cgal.
Please can you point me to some functions I have ... |
71,323,141 | Running functions depend on return from previous function Python Selenium<p>I have a test, that checks an element on a page: if element A is presented, test(function) returns A and runs another function A. If element B is presented, test(function) returns B and runs another function B. How can I do it in Python? I thin... | <p>Remember that the <code>return</code> statement should always be at the end of function, because on the return statement the function ends and no further parts of the function get executed. So in the <code>finding_pop</code> fucntion when you write <code>return element</code>, that is where your function ends. The <... | Running functions depend on return from previous function Python Selenium | python|selenium | 0 | 37 | 1 | 71,323,512 | 71,323,512 | 0 | true | 2022-03-02T13:00:29.100Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Running functions depend on return from previous function Python Selenium<p>I have a test, that checks an element on a page: if element A is presented, test(... |
71,258,902 | Why does my GraphQL/Apollo mutation fail?<p>This is how the Apollo query is defined:</p>
<pre><code>const createUser = gql`
mutation(
$username: String!,
$email: String!,
$password: String!,
$time_created: String!,
$time_played: Int!,
$verified: Boolean!,
$typ... | <p>For anyone encountering the same problem, I managed to "fix" it by creating constants of the complex objects and simply setting the default to those constants in the mongoose table and not giving that as input to apollo.</p>
<pre><code> username: String,
email: String,
password: String,
time... | Why does my GraphQL/Apollo mutation fail? | node.js|reactjs|graphql|apollo | 0 | 42 | 1 | 71,324,504 | 71,324,504 | 0 | true | 2022-02-24T22:18:18.420Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does my GraphQL/Apollo mutation fail?<p>This is how the Apollo query is defined:</p>
<pre><code>const createUser = gql`
mutation(
$username: ... |
71,268,331 | Deployment react native App in Computer Web Version<p>I have react native app and i use expo like a connection to my android emulator.</p>
<p><a href="https://i.stack.imgur.com/yEwYh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yEwYh.png" alt="Structure " /></a></p>
<p>I want to run project in my ... | <p>I changed my mind about creating web version, but there is one good guide : <a href="https://aureliomerenda.medium.com/create-a-native-web-app-with-react-native-web-419acac86b82" rel="nofollow noreferrer">https://aureliomerenda.medium.com/create-a-native-web-app-with-react-native-web-419acac86b82</a></p> | Deployment react native App in Computer Web Version | android|react-native|android-emulator|expo|cross-platform | 0 | 24 | 1 | 71,325,561 | 71,325,561 | 0 | true | 2022-02-25T15:47:17.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Deployment react native App in Computer Web Version<p>I have react native app and i use expo like a connection to my android emulator.</p>
<p><a href="https:... |
71,320,529 | How does word2vec learn word relations?<p>Which part of the algorithm specifically makes the embeddings to have the <code>king - boy + girl = queen</code> ability? Did they just did this by accident?</p>
<p>Edit :</p>
<p>Take the CBOW as an example. I know about they use embeddings instead of one-hot vectors to encode ... | <p>The algorithm simply works to train (optimize) a shallow neural-network model that's good at predicting words, from other nearby words.</p>
<p>That's the only internal training goal – subject to the neural network's constraints on how the words are represented (N floating-point dimensions), or combined with the mode... | How does word2vec learn word relations? | word2vec|embedding|word-embedding | 0 | 40 | 1 | 71,326,330 | 71,326,330 | 0 | true | 2022-03-02T09:46:30.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How does word2vec learn word relations?<p>Which part of the algorithm specifically makes the embeddings to have the <code>king - boy + girl = queen</code> ab... |
71,320,267 | How to model this function in PyTorch<p>I want to train a feed-forward Neural Network with a single hidden layer that models the below equation.</p>
<pre><code>h = g(W1.input1 + V1.input2 + b)
output1 = f(W2.h + b_w)
output2 = f(V2.h + b_v)
</code></pre>
<p><code>f and g</code> are activation functions, <code>h</code> ... | <p>I decided to write my own Linear layer which calculates <code>h = g(W1.input1 + V1.input2 + b)</code> I do this by creating 2 parameters W1 and V1 multiply input1 and input2 with the 2 parameters and then add everything. The code is given below:</p>
<pre><code>import torch
import torch.nn as nn
import math
class M... | How to model this function in PyTorch | python|deep-learning|neural-network|pytorch | 0 | 277 | 3 | 71,326,376 | 71,326,376 | 0 | true | 2022-03-02T09:25:15.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to model this function in PyTorch<p>I want to train a feed-forward Neural Network with a single hidden layer that models the below equation.</p>
<pre><co... |
71,326,456 | Is Observable without a subscribe() valid?<p>I call a service per <code>RetrofitDataService.getDataObservable(): Observable<List<LogicalChannel>></code> to get a data stream.</p>
<pre><code>val dataStream = RetrofitDataService.getDataObservable()
.doOnNext { item ->
calculate(item)
}
... | <p>Yes, this is fine. This is the implementation of <code>forEach</code>:</p>
<pre><code> public final Disposable forEach(Consumer<? super T> onNext) {
return this.subscribe(onNext);
}
</code></pre>
<p>It's just an alias for <code>subscribe</code>, so yes, your second example is exactly the same as the fir... | Is Observable without a subscribe() valid? | rx-java|rx-java2 | 0 | 33 | 1 | 71,326,593 | 71,326,593 | 0 | true | 2022-03-02T17:00:59.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is Observable without a subscribe() valid?<p>I call a service per <code>RetrofitDataService.getDataObservable(): Observable<List<LogicalChannel>>... |
71,326,689 | Is it possible to user PowerBI to create a table using data from an excel spreadsheet?<p>Here's my scenario</p>
<p>I have a spreadsheet that is stored on a shared drive, this spreadsheet is updated fairly regularly.</p>
<p>What I want to do, is generate a PowerBI report that pulls specific data from cells and rearrange... | <p>This is a solution that works with OneDrive. Not sure where you shared data resides??</p>
<p>Yes, I am doing this currently from OneDrive. I can be kinda a pain in the butt to get this working. Go to your OneDive speadsheet and open it in excel desktop (Open in app). Then do File, Info, copy path. For example,</... | Is it possible to user PowerBI to create a table using data from an excel spreadsheet? | excel|powerbi|powerbi-desktop | 0 | 31 | 1 | 71,326,912 | 71,326,912 | 0 | true | 2022-03-02T17:19:11.943Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it possible to user PowerBI to create a table using data from an excel spreadsheet?<p>Here's my scenario</p>
<p>I have a spreadsheet that is stored on a s... |
71,327,332 | ERROR TypeError: Cannot read properties of undefined (reading 'valueOf')<p>I am trying to iterate through the JSON data and access the key of start time and end time.
In my API code, I have tried 2 ways to do this.
Console.log is not showing error
but the other loop method is showing an error in the console.</p>
<p>My ... | <p>Response Data from API does not have <strong>StartTimeUtc</strong>. So you are trying to read valueof() of undefined which is giving you this error.</p>
<p>Its a typo StarTimeUtc instead of StartTimeUtc</p> | ERROR TypeError: Cannot read properties of undefined (reading 'valueOf') | json|angular|typescript|api|object | 0 | 1,299 | 2 | 71,327,442 | 71,327,442 | 0 | true | 2022-03-02T18:12:35.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ERROR TypeError: Cannot read properties of undefined (reading 'valueOf')<p>I am trying to iterate through the JSON data and access the key of start time and ... |
71,327,412 | Manipulating multi-index dataframe with repeating index<p>Let's have such a structure:</p>
<pre><code>from datetime import date, timedelta
from pandas import DataFrame as df
import numpy as np
idx1 = []
idx2 = []
idx3 = []
for i in range(3):
idx1.append(date.today() - timedelta(days=0))
idx2.append(date.today(... | <p>Trying resetting the MultiIndex and filter to get the required row:</p>
<pre><code>df = ultimate_df.droplevel(0).reset_index()
>>> df.loc[df[df["timestamp"].eq(df["timestamp"].max())]["pretty"].idxmax()]
timestamp 2022-03-02
index Furby
pretty 8.162101
b... | Manipulating multi-index dataframe with repeating index | python|pandas|dataframe|indexing | 0 | 35 | 1 | 71,327,589 | 71,327,589 | 0 | true | 2022-03-02T18:18:45.780Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Manipulating multi-index dataframe with repeating index<p>Let's have such a structure:</p>
<pre><code>from datetime import date, timedelta
from pandas import... |
71,327,671 | How show an slider with links in each image as background in html?<p>I wanna replace a background image with a slider with images that navigate to different views, without removing the text, location, and button that appear above the section.</p>
<p>I need each image to have a headline with a link to other view, with a... | <p>You can do it with this way</p>
<pre><code>#mydiv{ animation: changeBg 1s infinite; width:500px; height:500px; }
@keyframes changeBg{
0%,100% {background-image: url("https://example.com/example.png");}
25% {background-image: url("https://example.com/example2.png");}
50% {background-imag... | How show an slider with links in each image as background in html? | html|css | 0 | 41 | 1 | 71,327,728 | 71,327,728 | 0 | true | 2022-03-02T18:42:34.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How show an slider with links in each image as background in html?<p>I wanna replace a background image with a slider with images that navigate to different ... |
71,328,374 | content of a section appearing in another section<p>In the picture below you can see that my <em>Skills</em> text is in the section where it is not supposed to be which is the <em>home-section</em>
<a href="https://i.stack.imgur.com/Bl2GJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bl2GJ.png" alt... | <p>The image has a display property of 'absolute'. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position" rel="nofollow noreferrer">MDN.</a></p>
<p>It may need more of a margin to avoid covering up the text, but you're probably better off using a different way to position the image instead of using absolut... | content of a section appearing in another section | html|css|bootstrap-4 | 0 | 29 | 1 | 71,328,446 | 71,328,446 | 0 | true | 2022-03-02T19:48:55.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
content of a section appearing in another section<p>In the picture below you can see that my <em>Skills</em> text is in the section where it is not supposed ... |
71,311,546 | Micrometer with Elasticsearch over SSL<p>I'm trying to use <strong>Micrometer with Elasticsearch over SSL</strong>.</p>
<p>I use Micrometer in version 1.8.0, Elasticsearch in version 7.16.3 and OpenJDK 11.0.2 .</p>
<p>Because I know that it's not possible to use a built-in configuration (<a href="https://github.com/mic... | <p>Check what <code>super.send</code> does, it creates a new connection without using the one you created. I'm not recommending using a self-signed cert and a custom truststore but you can set a default <code>HostnameVerifier</code> using
<a href="https://docs.oracle.com/javase/8/docs/api/javax/net/ssl/HttpsURLConnecti... | Micrometer with Elasticsearch over SSL | elasticsearch|ssl|truststore|micrometer | 0 | 281 | 2 | 71,328,671 | 71,328,671 | 0 | true | 2022-03-01T16:18:52.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Micrometer with Elasticsearch over SSL<p>I'm trying to use <strong>Micrometer with Elasticsearch over SSL</strong>.</p>
<p>I use Micrometer in version 1.8.0,... |
71,327,184 | why my spider is not executing the parse function but with another link it works?<p>I am trying to extract some data from this page, but the parse function is not executed, I try to put another URL like the one of google.com and is executed but with the page that I need it does not</p>
<pre><code>import scrapy
from dat... | <pre><code>custom_settings = {
**CustomSpider.custom_settings,
'ROBOTSTXT_OBEY': False,
}
</code></pre>
<p>I put that and now works</p> | why my spider is not executing the parse function but with another link it works? | scrapy | 0 | 35 | 1 | 71,328,688 | 71,328,688 | 0 | true | 2022-03-02T17:58:46.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
why my spider is not executing the parse function but with another link it works?<p>I am trying to extract some data from this page, but the parse function i... |
71,329,443 | How can I describe an associative entity relationship?<p>So in a one to many relation it can be like:</p>
<p>Director (1..1)--R3--(0..*) Movie
R11: A director can direct many movies; a movie only has one director.</p>
<p>But if we have a many to many relation and we use an Associative entity:</p>
<p>Movie (1..1)--R3--(... | <p>In your example you might have at table of directors and a table of movies with director as a foreign key.<br />
You could also have a countries table with the name etc and an a county ID in the movies column but if you only want the name of the country it might just be one column in the movies table.<br />
It is va... | How can I describe an associative entity relationship? | mysql|data-analysis|data-modeling|datamodel|staruml | 0 | 44 | 1 | 71,329,711 | 71,329,711 | 0 | true | 2022-03-02T21:36:40.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I describe an associative entity relationship?<p>So in a one to many relation it can be like:</p>
<p>Director (1..1)--R3--(0..*) Movie
R11: A directo... |
71,329,622 | Windows terminal/Ubuntu not showing all response with pretty print<p>When parsing an API response (using pretty print), most of the response is being cut off and just "..." is being shown.</p>
<pre><code>irb(main):022:0> data = JSON.parse(response.read_body)
=>
{"data"=>
...
</code></pre>
<... | <p>You can type <code>data</code> after the assignment (at the next prompt), and you'll get the entire contents. If you don't actually need the assignment, and only want to inspect the parsed response, use <code>JSON.parse(response.read_body)</code></p>
<p>By the way, the truncation behaviour of IRB is the default, but... | Windows terminal/Ubuntu not showing all response with pretty print | ruby|pretty-print | 0 | 29 | 1 | 71,329,743 | 71,329,743 | 0 | true | 2022-03-02T21:55:37.893Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Windows terminal/Ubuntu not showing all response with pretty print<p>When parsing an API response (using pretty print), most of the response is being cut off... |
71,330,441 | How to know when Heroku rotates my Heroku Postgres credentials?<p>Heroku rotates the credentials on Heroku Postgres. How can I prevent this issue in production apps?</p> | <blockquote>
<p>How can I prevent this issue in production apps?</p>
</blockquote>
<p><a href="https://devcenter.heroku.com/articles/heroku-postgresql#provisioning-heroku-postgres" rel="nofollow noreferrer">You can't</a>:</p>
<blockquote>
<p>The value of your app’s <code>DATABASE_URL</code> config var can change at any... | How to know when Heroku rotates my Heroku Postgres credentials? | python|django|heroku|heroku-postgres | 0 | 32 | 1 | 71,330,713 | 71,330,713 | 0 | true | 2022-03-02T23:35:31.043Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to know when Heroku rotates my Heroku Postgres credentials?<p>Heroku rotates the credentials on Heroku Postgres. How can I prevent this issue in producti... |
71,329,826 | How to get this transition to start from specific spot<p>I've been trying to challenge myself to make an animated burger menu. I don't want to copy paste someone else's stuff and want to learn how to do this myself.</p>
<p>I want my menu bar to fold out from the burger menu instead of the side of the page buy can't see... | <p>Your navbar is using absolute positioning. So to have the animation start where you want, you have to specify the offset with <code>left</code>. I changed the system increase the width of the element to achieve the sliding effect you want.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="tr... | How to get this transition to start from specific spot | html|css | 0 | 32 | 2 | 71,330,889 | 71,330,889 | 0 | true | 2022-03-02T22:16:27.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get this transition to start from specific spot<p>I've been trying to challenge myself to make an animated burger menu. I don't want to copy paste som... |
71,330,905 | DiscordJS V13 doesnt react to dms<p>I have this very basic code for a very basic discord bot</p>
<p>since the new discord.js version 13 you need to declare intents.</p>
<p>I tried doing that using the bitmap 32767 (basically declaring all intents), however the bot doesnt trigger the "messageCreate" event when... | <p>You cannot listen for events in the Direct Messages unless they are direct responses/replies/reactions to the initial message.</p>
<p>For example, you can send a message to new members and wait for a response:</p>
<pre><code>client.on('guildMemberAdd', member =>{
member.send("Welcome to the server!"... | DiscordJS V13 doesnt react to dms | javascript|discord|bots | 0 | 288 | 1 | 71,331,007 | 71,331,007 | 0 | true | 2022-03-03T00:51:32.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
DiscordJS V13 doesnt react to dms<p>I have this very basic code for a very basic discord bot</p>
<p>since the new discord.js version 13 you need to declare i... |
71,248,076 | ADLS SAS token is truncated when rewriting in API Management<p>I have an ADLS with images that I want to display on my website.
I want to expose them through APIM. I am sending the image name and SAS token in the request which I re-write in the actual backend request with the right folder structure.</p>
<p>The policy -... | <p>I found that encoding it in the code and decoding the string in the policy is solving this</p>
<pre><code>Encoding.UTF8.GetString(Convert.FromBase64String(context.Request.Url.Query.GetValueOrDefault("sasToken")))
</code></pre> | ADLS SAS token is truncated when rewriting in API Management | urlencode|azure-api-management|apim|sas-token | 0 | 41 | 1 | 71,331,172 | 71,331,172 | 0 | true | 2022-02-24T06:41:56.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ADLS SAS token is truncated when rewriting in API Management<p>I have an ADLS with images that I want to display on my website.
I want to expose them through... |
71,330,127 | Creating pyspark dataframe from same entries in the list<p>I have two list, one is col_name=['col1','col2','col3'] and the other is col_value=['val1', 'val2', 'val3']. I am trying to create a dataframe from the two list with col_name being the column.I need the output with 3 columns and 1 row (with 1 header as a col_na... | <p>Construct <code>data</code> directly, and use the <code>createDataFrame</code> method to create a dataframe.</p>
<pre><code>col_name = ['col1', 'col2', 'col3']
col_value = ['val1', 'val2', 'val3']
data = [col_value]
df = spark.createDataFrame(data, col_name)
df.printSchema()
df.show(truncate=False)
</code></pre> | Creating pyspark dataframe from same entries in the list | pyspark | 0 | 22 | 1 | 71,331,285 | 71,331,285 | 0 | true | 2022-03-02T22:53:51.457Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating pyspark dataframe from same entries in the list<p>I have two list, one is col_name=['col1','col2','col3'] and the other is col_value=['val1', 'val2'... |
71,330,099 | Weird error while sending request to YouTube API PHP<p>I am currently working on a back-end processing that requests channel analytics info back from YouTube Analytics API on PHP. For some reason, I keep receiving a weird error message in:</p>
<pre><code>foreach ($metrics as $metric) {
$api = $analytics->reports->... | <p>Im not sure if this will work, but what if you use an associative array instead of a regular one?</p>
<pre><code> $params = [$id, $start_date, $end_date, $metric, $optparams]; //OLD
$params = [
'id' => $id,
'start_date' => $start_date,
'end_date' => $end_date,
'metric'... | Weird error while sending request to YouTube API PHP | php|youtube|youtube-analytics-api | 0 | 42 | 1 | 71,331,438 | 71,331,438 | 0 | true | 2022-03-02T22:51:13.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Weird error while sending request to YouTube API PHP<p>I am currently working on a back-end processing that requests channel analytics info back from YouTube... |
71,325,517 | Solana SPL token transfer with python<p>So after having read a couple of articles I'm yet to understand how to create a Transaction and send custom SPL tokens across the Solana blockchain.
I've attached my code below. <br/>
I truly don't understand what each part of the transaction is supposed to be. <br/>
So I figured... | <p>The destination <code>sPkypr2LBtF5Go87zYSn5fBtWxCDEcobWeQQxXHpxJR</code> is incorrect.</p>
<p>When you send SPL tokens, the <code>source</code> and <code>dest</code> must be addresses of token accounts, and in this case, <code>sPkypr2LBtF5Go87zYSn5fBtWxCDEcobWeQQxXHpxJR</code> is a wallet, so you'll need to create a... | Solana SPL token transfer with python | python|python-3.x|transactions|solana | 0 | 1,026 | 1 | 71,331,621 | 71,331,621 | 0 | true | 2022-03-02T15:50:11.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Solana SPL token transfer with python<p>So after having read a couple of articles I'm yet to understand how to create a Transaction and send custom SPL token... |
71,332,059 | css, last-child tr overwrite style<p>I have this styles:</p>
<pre><code>.ant-table-tbody > tr > td {
padding: 8px 0 !important;
height: 48px;
}
.ant-table-tbody > tr:last-child > td {
padding: 8px 0 !important;
height: 48px;
border-bottom: none;
}
</code></pre>
<p>The last definition is almost the... | <p>You need to just correct the format</p>
<pre><code>.ant-table-tbody {
> tr > td {
height: 48px;
padding: 8px 0 !important;
}
> tr:last-child > td {
border-bottom: 1px red solid;
}
}
</code></pre> | css, last-child tr overwrite style | css | 0 | 30 | 1 | 71,332,111 | 71,332,111 | 0 | true | 2022-03-03T04:10:36.550Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
css, last-child tr overwrite style<p>I have this styles:</p>
<pre><code>.ant-table-tbody > tr > td {
padding: 8px 0 !important;
height: 48px;
}
.an... |
71,327,427 | JMeter: How to combine responses fetched in each iteration of a loop, in a file without overwriting the existing values?<p>I have a JMeter test which sends a GET request to fetch certain data. I am using a while controller and a counter to loop through, till an expected condition is satisfied. Using an Xpath Extractor,... | <p>Which "data" and in which format?</p>
<ol>
<li><p>There is <a href="https://jmeter.apache.org/usermanual/listeners.html#sample_variables" rel="nofollow noreferrer">sample_variables property</a> allowing JMeter to store the value of one or more <a href="https://jmeter.apache.org/usermanual/functions.html" r... | JMeter: How to combine responses fetched in each iteration of a loop, in a file without overwriting the existing values? | jmeter | 0 | 34 | 1 | 71,332,877 | 71,332,877 | 0 | true | 2022-03-02T18:19:54.220Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JMeter: How to combine responses fetched in each iteration of a loop, in a file without overwriting the existing values?<p>I have a JMeter test which sends a... |
71,332,850 | I have two 2D arrays and I want to count them<p>I want to count the numeric values of arr2 in a two-dimensional array of arr1.</p>
<p>The index of arr1 starts from 1.</p>
<p>If the array of [0] in arr2 is 3 5 7
I want to get the value of index 3 = 1 index 5 = 5 index 7 = 1 of arr1[0].</p>
<p>It's hard to explain, but... | <p><strong>NOTE</strong></p>
<p>The original question has been edited since I first began answering it. The example question data no longer makes sense - my answer addresses the original question and example data/result as I interpreted it, because otherwise I have no idea what your intended result is and you need to e... | I have two 2D arrays and I want to count them | javascript|reactjs | 0 | 41 | 1 | 71,333,250 | 71,333,250 | 0 | true | 2022-03-03T06:19:09.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I have two 2D arrays and I want to count them<p>I want to count the numeric values of arr2 in a two-dimensional array of arr1.</p>
<p>The index of arr1 sta... |
71,333,283 | Strange behavior of Power BI line and column chart<p>I have a simple data sheet containing 3 data rows.</p>
<p><a href="https://i.stack.imgur.com/iXyiU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iXyiU.png" alt="enter image description here" /></a></p>
<p>The Power BI "Line and clustered col... | <p>Problem solved.</p>
<p>According to here: <a href="https://community.powerbi.com/t5/Desktop/Clustered-amp-Line-Column-Chart-Line-value-does-not-align-with/m-p/479701" rel="nofollow noreferrer">https://community.powerbi.com/t5/Desktop/Clustered-amp-Line-Column-Chart-Line-value-does-not-align-with/m-p/479701</a></p>
<... | Strange behavior of Power BI line and column chart | powerbi | 0 | 18 | 1 | 71,333,340 | 71,333,340 | 0 | true | 2022-03-03T07:08:37.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Strange behavior of Power BI line and column chart<p>I have a simple data sheet containing 3 data rows.</p>
<p><a href="https://i.stack.imgur.com/iXyiU.png" ... |
71,325,830 | Crispy form layout hide files<pre><code>crispy_forms Crispy_Forms 1.14.0
crispy_forms_foundation Crispy_Forms_Foundation 0.8.0
Django 3.2.11
</code></pre>
<p>I'm trying to migrate from django 2 to django 3, but stuck with empty forms.</p>
<pre><code>class Myform(forms.ModelForm):
def __init__(self, *args... | <p>It seems that Column doesn't exist anymore, replace with:</p>
<pre><code>Field('myfield', css_class="black-fields")
</code></pre> | Crispy form layout hide files | django-crispy-forms | 0 | 16 | 1 | 71,333,491 | 71,333,491 | 0 | true | 2022-03-02T16:11:33.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Crispy form layout hide files<pre><code>crispy_forms Crispy_Forms 1.14.0
crispy_forms_foundation Crispy_Forms_Foundation 0.8.0
Django 3.2.11
</cod... |
71,333,369 | How to put condition on table row color by the table data?<p>I am creating a table from two arrays using ngFor</p>
<pre><code> <tr *ngFor="let e of lis1; let k=index">
<td>{{e}} </td>
<td>{{lis2[k]}}</td>
</tr>
</code></pre>
<p>and the table cre... | <p>There are different ways you can add styles to your element conditionally, <code>ngStyle</code>, <code>ngClass</code>, directly with attributes, etc.</p>
<p>I'll show You how to add styles using <code>ngClass</code>. You can simply check if the age is greater than 20 in <code>[ngClass]</code> to apply the class othe... | How to put condition on table row color by the table data? | html|css|angular|typescript|html-table | 0 | 525 | 1 | 71,333,562 | 71,333,562 | 0 | true | 2022-03-03T07:17:41.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to put condition on table row color by the table data?<p>I am creating a table from two arrays using ngFor</p>
<pre><code> <tr *ngFor="let e o... |
71,333,661 | How to subscribe to Multiple Eth addresses on USDT token transfer events<p>I have a list of Eth user deposit addresses. They can make External USDT transfers to these addresses. How do I subscribe to the USDT contract and filter for all the User Addresses I have for deposits. My user numbers would keep growing.</p>
<p>... | <p>You can use the web3 event handler <code>options</code> object (<a href="https://web3js.readthedocs.io/en/v1.7.0/web3-eth-contract.html#contract-events" rel="nofollow noreferrer">docs</a>) to subscribe to transfers to only specified recipients.</p>
<p>Example:</p>
<pre><code>usdtContract.events.Transfer({
filter... | How to subscribe to Multiple Eth addresses on USDT token transfer events | javascript|node.js|ethereum|solidity|web3js | 0 | 281 | 1 | 71,334,148 | 71,334,148 | 0 | true | 2022-03-03T07:45:04.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to subscribe to Multiple Eth addresses on USDT token transfer events<p>I have a list of Eth user deposit addresses. They can make External USDT transfers... |
71,326,174 | Using files in an Azure Dev Ops Pipeline<p>Just a bit of advice really,
What other process can i use to store a JAR file that is being used in a pipeline ?
I dont want to store it in a Repo.
I was looking at using 'secure files within the library' and then use YAML to get the files down - although there is a 10mb limit... | <p>You could use Azure storage account to store your files, please get start from <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal" rel="nofollow noreferrer">Create a storage account</a>.</p>
<p>Then, use <a href="https://nam06.safelinks.protection.outlook.com/?url... | Using files in an Azure Dev Ops Pipeline | azure|azure-devops|yaml|azure-pipelines-yaml | 0 | 275 | 1 | 71,334,535 | 71,334,535 | 0 | true | 2022-03-02T16:36:56.313Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using files in an Azure Dev Ops Pipeline<p>Just a bit of advice really,
What other process can i use to store a JAR file that is being used in a pipeline ?
I... |
71,325,647 | Lambda Web API returning 403 for verbs other than POST<p>I have created a Serverless Lambda Web API using a built-in template. The web api is deployed to AWS using CloudFormation and everything is working fine (i.e. All GET, POST etc).</p>
<p>I have then checked the resources created by CloudFormation and created all o... | <p>It turned out to be very strange but simple solution.
Instead of using,</p>
<pre><code>integration_http_method = "ANY"
</code></pre>
<p>When I used,</p>
<pre><code>integration_http_method = "POST"
</code></pre>
<p>Then it started working for all HTTP Verbs (GET, POST, PUT etc)</p> | Lambda Web API returning 403 for verbs other than POST | aws-lambda|asp.net-core-webapi|aws-api-gateway|terraform-provider-aws|aws-sam | 0 | 27 | 1 | 71,334,855 | 71,334,855 | 0 | true | 2022-03-02T15:58:51.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Lambda Web API returning 403 for verbs other than POST<p>I have created a Serverless Lambda Web API using a built-in template. The web api is deployed to AWS... |
71,283,100 | How can I convert jpg file to pbm file through only matrix operation?<p>I have tried the method as follows, but it didn't work so efficient.</p>
<pre><code>for i = 1:h
for j = 1:w
Img(1,(i-1)*aligned_w+j) = (Matrix(i,j)&1);
%fwrite(file,1-Matrix(i,j),'ubit1');
... | <p>I'm found the solution, the reason is that Matrix should be a w<em>h</em>channel matrix, the format (i,j) should be replaced into (i,j,channel), where channel from 1 to 3. And the result should be the three expression under or operation.</p> | How can I convert jpg file to pbm file through only matrix operation? | matlab|image-conversion | 0 | 23 | 1 | 71,334,923 | 71,334,923 | 0 | true | 2022-02-27T08:00:31.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I convert jpg file to pbm file through only matrix operation?<p>I have tried the method as follows, but it didn't work so efficient.</p>
<pre><code>f... |
71,335,123 | AccessDeniedException for Kafka 3 default state.dir<p>The following error would appear every 5 seconds when we have Kafka running on Windows 10.</p>
<blockquote>
<p>Failed to write offset checkpoint file to C:/tmp/kafka-streams/user/global/.checkpoint for global stores: {}. This may occur if OS cleaned the state.dir in... | <p>The warnings disappeared immediately when I bumped the Kafka version to <code>3.1.0</code>. I couldn't figure out what the cause was.</p>
<pre><code>api 'org.apache.kafka:kafka-streams:3.1.0'
api 'org.apache.kafka:kafka-clients:3.1.0'
</code></pre> | AccessDeniedException for Kafka 3 default state.dir | java|apache-kafka|windows-10 | 0 | 278 | 1 | 71,335,124 | 71,335,124 | 0 | true | 2022-03-03T09:52:58.223Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AccessDeniedException for Kafka 3 default state.dir<p>The following error would appear every 5 seconds when we have Kafka running on Windows 10.</p>
<blockqu... |
71,331,408 | Pitest targetClasses doesn't retrieve path by ${tests}<p>I don't understand what is happening here. I made a property (test) that has path value as ${currentdirectory.@{targetClasses}} (which stores value of "org.apache.commons.lang3") when I try to give targetClasses its value i use ${test} but it gives me e... | <p>I changed the name from "currentdirectory.@{targetClasses}" to "tests". Now it works in targetTests with "${tests}.*"</p> | Pitest targetClasses doesn't retrieve path by ${tests} | ant|pitest | 0 | 29 | 1 | 71,336,305 | 71,336,305 | 0 | true | 2022-03-03T02:21:41.597Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pitest targetClasses doesn't retrieve path by ${tests}<p>I don't understand what is happening here. I made a property (test) that has path value as ${current... |
71,331,206 | Can't get ICollection entities from MVC View<p>So I am making an app for a restaurant that is able to handle Event Table Reservations.</p>
<p>What I want to have is an Event model, and a Table model where I will be able to create tables and use them for each event I create afterwards.</p>
<p>The problem is that after I... | <p>Name given to each field is not proper.</p>
<p>Replace this code & Try :</p>
<pre><code><div class="form-group">
@for(var i = 0; i<Model.Tables.Count; i++)
{
<p>@Model.Tables.ElementAt(i).TableIdentifier - @Model.Tables.ElementAt(i).... | Can't get ICollection entities from MVC View | .net|asp.net-mvc | 0 | 30 | 1 | 71,336,328 | 71,336,328 | 0 | true | 2022-03-03T01:47:49.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't get ICollection entities from MVC View<p>So I am making an app for a restaurant that is able to handle Event Table Reservations.</p>
<p>What I want to ... |
71,336,221 | How to substitute a symbol in an expression ? (using sympy)<p>I try to use 'subs' function to sobstitute the symbol in a numeric value but dosen't work. Anyone can help me? Thankyou!</p>
<pre><code>import sympy as sp
from sympy.solvers import solve
import sympy as sym
x = sp.Symbol('x')
s= (3*x + 0)
r= (2*x + 0.8)
eq... | <p>Your solution is a list of values. In this case, the list is of length one, so replace x with the first element of Xbox: <code>s.subs(x, Xbox[0]) -> -0.480000000000000</code></p> | How to substitute a symbol in an expression ? (using sympy) | python|sympy | 0 | 34 | 1 | 71,337,300 | 71,337,300 | 0 | true | 2022-03-03T11:15:49.963Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to substitute a symbol in an expression ? (using sympy)<p>I try to use 'subs' function to sobstitute the symbol in a numeric value but dosen't work. Anyo... |
71,337,296 | how to load a few images on page in react<p>I've got a trouble with display images on react page. I have directory with 30 images and I would like to display them on page (.jsx file). I know that I can export every single image, but I'm looking for much faster way to do this. Have you any ideas how to help me?:</p>
<pr... | <p>If you are using Create React App, there is an option for public folder.</p>
<blockquote>
<p>you put a file into the public folder, it will not be processed by
webpack. Instead it will be copied into the build folder untouched. To
reference assets in the public folder, you need to use an environment
variable called ... | how to load a few images on page in react | javascript|reactjs|import|export | 0 | 36 | 1 | 71,337,373 | 71,337,373 | 0 | true | 2022-03-03T12:33:06.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to load a few images on page in react<p>I've got a trouble with display images on react page. I have directory with 30 images and I would like to display... |
71,307,055 | SwiftUI handle push notifications tapped in a terminated state<p>I have a SwiftUI app with chat functionality that uses Firebase as its backend and Cloud Function to listen for new chat messages and notify users. The Cloud Function sends the notification to all devices of the logged-in user when the user has received a... | <p>Okay, I found the same problem in Swift, and the solution was to just delay the action of the notification tapped with one second. It feels more like a hack, I want to know exactly what happens asynchronously, but it works perfectly.</p>
<p><strong>Here is the solution:</strong></p>
<pre><code> DispatchQueue.main.as... | SwiftUI handle push notifications tapped in a terminated state | swiftui|push-notification|unusernotificationcenter | 0 | 265 | 1 | 71,338,945 | 71,338,945 | 0 | true | 2022-03-01T10:31:16.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SwiftUI handle push notifications tapped in a terminated state<p>I have a SwiftUI app with chat functionality that uses Firebase as its backend and Cloud Fun... |
71,339,004 | Ionic slider onInit never fires<p>I'm using the latest ionic with the slides, which i believe uses Swiper.</p>
<p>I have the swiper options like this:</p>
<pre><code>{
initialSlide: 0,
speed: 400,
onInit: (slides: any) => {
console.log("SLIDE INIT",slides)
this.slider = slides
}... | <p>do something like:</p>
<pre><code>import { Component, OnInit, ViewChild, ElementRef, NgZone } from '@angular/core';
import { IonSlides } from '@ionic/angular';
export class YourClass implements OnInit {
@ViewChild('slides') slides: IonSlides;
console.log(this.slides); // Now you can access your slide in this.... | Ionic slider onInit never fires | ionic-framework | 0 | 31 | 1 | 71,339,115 | 71,339,115 | 0 | true | 2022-03-03T14:42:19.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Ionic slider onInit never fires<p>I'm using the latest ionic with the slides, which i believe uses Swiper.</p>
<p>I have the swiper options like this:</p>
<p... |
71,335,080 | Python Tkinter: Changing the language in the macOS app menu<p>Is it possible to change the language of the entries given in the macOS App menu to German?</p>
<p>Thanks a lot.</p>
<p><a href="https://i.stack.imgur.com/xiOwz.png" rel="nofollow noreferrer">Tkinter macOS App menu</a></p> | <p>You can only change the language of the custom items you add to the menu. Tkinter doesn't provide a way to change the language of predefined menu items.</p> | Python Tkinter: Changing the language in the macOS app menu | python|macos|tkinter | 0 | 44 | 1 | 71,339,654 | 71,339,654 | 0 | true | 2022-03-03T09:48:53.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python Tkinter: Changing the language in the macOS app menu<p>Is it possible to change the language of the entries given in the macOS App menu to German?</p>... |
71,339,429 | Can i only return ListTile in SliversList under an if condition?<p>I am trying to only return a <code>ListTile</code> in a <code>SliversList</code> in a <code>CustomScrollView</code> if the user I want to view has something specific in his database section. How can I achieve this? I want to make something like this:</p... | <p><code>SliverChildListDelegate</code> requires a positional argument, and that is <code>List<Widget></code>. You can return empty <code>[]</code> list.</p>
<p>While mapping data, you can remove <code>else</code> state. It will work fine. Also, you can pass empty <code>SizedBox()</code> or any widget to show inf... | Can i only return ListTile in SliversList under an if condition? | list|flutter|customscrollview|listtile | 0 | 26 | 1 | 71,339,683 | 71,339,683 | 0 | true | 2022-03-03T15:11:30.577Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can i only return ListTile in SliversList under an if condition?<p>I am trying to only return a <code>ListTile</code> in a <code>SliversList</code> in a <cod... |
71,339,223 | pyspark UDF output blank<p>I have a question with my UDF function:
I have a data:<a href="https://i.stack.imgur.com/t2QPm.png" rel="nofollow noreferrer">raw data</a></p>
<p>I am writing a code to up case the name column:(input john doe->putout: John Doe)</p>
<pre><code>@F.udf
def coverCase(Str):
resStr="&qu... | <pre><code>from pyspark.sql import functions as F
from pyspark.sql.functions import col
df = spark.createDataFrame([(1,"john doe", 21)], ("id", "name", "age"))
@F.udf
def convertCase(str):
resStr=""
arr = str.split(" ")
for x in arr:
resSt... | pyspark UDF output blank | pyspark|user-defined-functions | 0 | 28 | 1 | 71,339,764 | 71,339,764 | 0 | true | 2022-03-03T14:56:57.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pyspark UDF output blank<p>I have a question with my UDF function:
I have a data:<a href="https://i.stack.imgur.com/t2QPm.png" rel="nofollow noreferrer">raw ... |
71,339,756 | MySQL query Error Code: 1066 Not unique table/alias: 'products_stock_location')?<p>I have looked around for an answer but I can't seem to find one.</p>
<p>I am not a mysql database anaylst in any shape or form. Queries are not my strongsuit at all.</p>
<p>I am trying to pull data from multiple tables, I can get most of... | <p>You use the table <code>products_stock_location</code> twice in your 'merged' query. Give one of them an alias and use the alias where needed.</p>
<p><strong>Edit:</strong> I guess the first one can be removed.</p>
<p>Change:</p>
<pre><code>FROM products, products_stock_location INNER JOIN products_stock_location ON... | MySQL query Error Code: 1066 Not unique table/alias: 'products_stock_location')? | mysql|mysql-workbench | 0 | 45 | 1 | 71,339,821 | 71,339,821 | 0 | true | 2022-03-03T15:34:35.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MySQL query Error Code: 1066 Not unique table/alias: 'products_stock_location')?<p>I have looked around for an answer but I can't seem to find one.</p>
<p>I ... |
71,339,131 | WordPress MySQL database connection error when restoring dump<p>I want to dump and restore a WordPress database hosted in Azure for MySQL using mysqldump/mysql.
Here are the steps I have followed:</p>
<p>I dumped database named wordpress:</p>
<pre><code>mysqldump.exe -Fc -v --column-statistics=0 -h host -u user -p -d w... | <p>The problem was I left <em>-d</em> tag at the end of mysqldump command, which means data is not included in the dump. From official <a href="https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html" rel="nofollow noreferrer">documentation</a>:</p>
<pre><code>--no-data, -d
Do not write any table row information (that ... | WordPress MySQL database connection error when restoring dump | mysql|wordpress | 0 | 37 | 1 | 71,339,826 | 71,339,826 | 0 | true | 2022-03-03T14:50:01.270Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
WordPress MySQL database connection error when restoring dump<p>I want to dump and restore a WordPress database hosted in Azure for MySQL using mysqldump/mys... |
71,339,591 | I want to remove class from first element while adding in other element using JavaScript<p>I have four div with image and I want to add a class <code>.open</code> when clicked on the panel and remove this class from last div when clicked on another div.</p>
<pre><code> <div class="panel panel1">
ima... | <p>You could use a for loop to loop over all panels remove the 'open' class and then add it to the clicked panel:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const panel = ... | I want to remove class from first element while adding in other element using JavaScript | javascript|dom-events|event-listener | 0 | 288 | 3 | 71,339,949 | 71,339,949 | 0 | true | 2022-03-03T15:22:30.813Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to remove class from first element while adding in other element using JavaScript<p>I have four div with image and I want to add a class <code>.open</... |
71,339,029 | Paragraphs get lost when posting a form<p>Hey, I'm creating a forum using django. When a user posts a thread the written text (in the input field {{obj.content}}) by the user should be displayed exactly as he typed it in. The text is displayed through {{form.content}}.</p>
<p>That means the paragraphs which were made b... | <p>@md2perpe isn't wrong but perhaps a more concise answer would be:</p>
<p><code>{{ form.content|linebreaks }}</code></p> | Paragraphs get lost when posting a form | python|html|django | 0 | 32 | 2 | 71,340,029 | 71,340,029 | 0 | true | 2022-03-03T14:44:18.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Paragraphs get lost when posting a form<p>Hey, I'm creating a forum using django. When a user posts a thread the written text (in the input field {{obj.conte... |
71,236,788 | Validating a JWT from AzureAD using Microsoft.Identity.Web succeeds but then fails in the same call<p>I have an API that I need to secure with AzureAD so that it can use SSO.</p>
<p>The API has a Swagger UI, so I have (after reading many, many tutorials/explanations/issues):</p>
<ul>
<li>Created an App Registration in ... | <p>Finally found the issue.</p>
<p>I was missing <code>app.UseAuthentication();</code>. Adding that line, fixes the issue and it works as expected :)</p> | Validating a JWT from AzureAD using Microsoft.Identity.Web succeeds but then fails in the same call | .net|asp.net-mvc|azure-active-directory|jwt|microsoft-identity-web | 0 | 259 | 1 | 71,340,090 | 71,340,090 | 0 | true | 2022-02-23T12:17:47.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Validating a JWT from AzureAD using Microsoft.Identity.Web succeeds but then fails in the same call<p>I have an API that I need to secure with AzureAD so tha... |
71,339,475 | Dart: create instance from a class (difference)<br>
Based on that simple class:
<pre><code>class User { String? name; int? id; }
</code></pre>
<p>I'm not sure what is the difference between:
<br><strong>
var user = User();
</strong>
<br>
or:
<br><strong>
User user = User();
</strong><br>
If someone can shed some light ... | <p>There's no practical difference in this case. When you use the <code>var</code> keyword, the type will be inferred by the compiler, whereas declaring it as <code>User</code> is simply a way to explicitly define the type.</p>
<p>There are some cases where it would make some difference though, such as when instantiati... | Dart: create instance from a class (difference) | class|dart|variables|instance|instance-variables | 0 | 33 | 1 | 71,340,215 | 71,340,215 | 0 | true | 2022-03-03T15:14:18.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dart: create instance from a class (difference)<br>
Based on that simple class:
<pre><code>class User { String? name; int? id; }
</code></pre>
<p>I'm not sur... |
71,338,759 | jQuery - changing div background-color depending on answer<p>I want to change background-color according to answer
I hide the correct answer in the label inside the page.</p>
<pre><code> <label id="correctanswer" name="1" class="rb" style="display:none;">Tom</label>
... | <p>This is messy but it works, should give you a more logical approach.<br>
Basically looping through all the checked inputs and comparing user inputs to their correct answer, then changing their background color...</p>
<pre><code>$('#correctAnswer').click(function() {
var checkedInputs = $(this).parents().find("... | jQuery - changing div background-color depending on answer | javascript|jquery|ajax|jquery-ui | 0 | 29 | 1 | 71,340,391 | 71,340,391 | 0 | true | 2022-03-03T14:24:25.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jQuery - changing div background-color depending on answer<p>I want to change background-color according to answer
I hide the correct answer in the label ins... |
71,340,553 | How can I only ZIP certain types of files in Python?<p>Let's say that that I have the following files in a folder:</p>
<pre><code>File1.txt
File2.py
File3.txt
</code></pre>
<p>I want to create a ZIP archive, but only of the .txt files. I could use a for loop to iterate through the files of this folder, like so:</p>
<pr... | <p>You can check if the file name ends with <code>.txt</code>:</p>
<pre class="lang-py prettyprint-override"><code>for folder, subfolder, files in os.walk(path):
for i in files:
if i.endswith('.txt'):
myZip.write(i)
</code></pre> | How can I only ZIP certain types of files in Python? | python | 0 | 45 | 2 | 71,340,633 | 71,340,633 | 0 | true | 2022-03-03T16:32:15.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I only ZIP certain types of files in Python?<p>Let's say that that I have the following files in a folder:</p>
<pre><code>File1.txt
File2.py
File3.tx... |
71,340,907 | the plot showing one color for all the graphs<p>i tried to get many graphs in one plot in different colors but only one color shown in all the graphs, and all the graphs return to 0 at the last value except the last graph, and I also tried to make the color attribute for example <code>plt.plot(x,y,color='r')</code> but... | <p>Since you are not resetting <code>data_t</code> and <code>data</code> in the loop, at the end, you are plotting one super graph and it is the same for all of them. So the first channel is on top of the rest that you are not seeing them.</p>
<pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as ... | the plot showing one color for all the graphs | python|matplotlib | 0 | 27 | 1 | 71,341,039 | 71,341,039 | 0 | true | 2022-03-03T16:59:59.630Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
the plot showing one color for all the graphs<p>i tried to get many graphs in one plot in different colors but only one color shown in all the graphs, and al... |
71,340,487 | combineLatest with arrays of observables<p>How would one go about using <code>combineLatest</code> with two or more arrays of observables?</p>
<pre class="lang-js prettyprint-override"><code>const array1 = [of(1), of(2)];
const array2 = [of(3), of(4)];
combineLatest(array1, array2)
.subscribe(([array1, array2]) =>... | <p>The <code>combineLatest</code> function expects an array of <code>Observable</code>(s), not an array of array of <code>Observable</code>.</p>
<p>So what do you have to do is:</p>
<ul>
<li>Convert each array of <code>Observable</code>, to an <code>Observable</code>, by combining the inner <code>Observable</code>(s) o... | combineLatest with arrays of observables | rxjs|rxjs-observables | 0 | 544 | 1 | 71,341,142 | 71,341,142 | 0 | true | 2022-03-03T16:27:14.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
combineLatest with arrays of observables<p>How would one go about using <code>combineLatest</code> with two or more arrays of observables?</p>
<pre class="la... |
71,340,390 | Title and axis labels on a back to back barplot<p>I have a back to back barplot, does anyone know how i can change the code to add a overall title and label both X axis (PM2.5 and life expectancy? Also if possible i wish to remove the lines where the continents are labeled and they overlap the Eastern Mediterranean sec... | <p>You can use this code:</p>
<pre><code> life_bar <- data.frame(Continent = c("Africa", "Americas", "Eastern Mid", "Europe", "South-East Asia", "Western Pacific"), mn = c(62.7, 74.8, 71.3, 78.1, 71.6, 74.3))
air_pollution_bar <- data.frame(Continent = ... | Title and axis labels on a back to back barplot | r | 0 | 32 | 1 | 71,341,521 | 71,341,521 | 0 | true | 2022-03-03T16:20:10.993Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Title and axis labels on a back to back barplot<p>I have a back to back barplot, does anyone know how i can change the code to add a overall title and label ... |
71,341,246 | Create 2 comma separated column from one row<p>Hi Everyone I am trying to create a query to create two separate columns with comma separated values from one row.</p>
<p>Below is the create table statement</p>
<pre><code>CREATE TABLE [logs-table](
[AccountId] [uniqueidentifier] NULL,
[UtcActionDate] [datetime] NULL,
[Ac... | <p>You simply need to add <code>distinct</code> keyword to your derived table:</p>
<pre><code>SELECT Id,EmailAddress,STRING_AGG(Trade,',') AS Trade,STRING_AGG(Issuers,',') AS Issuer
FROM (select DISTINCT A.Id,A.EmailAddress,
CASE WHEN L.PrimaryArgs LIKE'Trade%' THEN TRIM(RIGHT(L.PrimaryArgs, LEN(L.Primar... | Create 2 comma separated column from one row | sql|sql-server | 0 | 38 | 2 | 71,341,619 | 71,341,619 | 0 | true | 2022-03-03T17:24:48.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create 2 comma separated column from one row<p>Hi Everyone I am trying to create a query to create two separate columns with comma separated values from one ... |
71,341,638 | Timeout problem | Find the rank of the player with given array of scores<p>"An arcade game player wants to climb to the top of the leaderboard and track their ranking." So the problem gives you two array (ranked and player). In the player array, you have the points of the player in every round and you have to... | <p>Your solution in O(n^2)</p>
<p>Rather than looping through every time for every entry, you can organize the data in an object, so you only need to loop through once.</p> | Timeout problem | Find the rank of the player with given array of scores | javascript | 0 | 35 | 1 | 71,341,671 | 71,341,671 | 0 | true | 2022-03-03T17:52:30.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Timeout problem | Find the rank of the player with given array of scores<p>"An arcade game player wants to climb to the top of the leaderboard and track... |
71,250,488 | How do I specify an alert rule for Azure API management for only a specific API?<p>I have set up an alert rule in Azure that warns us when the backend returns an error code (4xx or 5xx).</p>
<p>This works but the API Management contains a multitude of APIs.</p>
<p>I thought I would create separate alert rules for each ... | <p>Enable Diagnostic Logging to Log Analytics and then create an alert based on a query you write</p>
<p><a href="https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-use-azure-monitor#resource-logs" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/api-management/api-management-how... | How do I specify an alert rule for Azure API management for only a specific API? | azure|azure-api-management|azure-alerts | 0 | 273 | 1 | 71,341,847 | 71,341,847 | 0 | true | 2022-02-24T10:25:46.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I specify an alert rule for Azure API management for only a specific API?<p>I have set up an alert rule in Azure that warns us when the backend return... |
71,341,551 | Sticky bottom and top react<p>I have a react/tailwind project where I have a component that I want to be both sticky bottom and top.</p>
<p>In other words, I have an element that I don't want to go off-screen when the user scrolls up or down.</p>
<p>So when at the top of the page, the element is technically off-screen,... | <p><code>className="sticky top-0 bottom-0"</code> does work, you just need to play around with the heights, something like this:</p>
<pre><code> <div className="bg-red-600">
This is the outer most container
<div className="h-[128rem] bg-blue-600">
This is... | Sticky bottom and top react | html|css|reactjs|typescript|tailwind-css | 0 | 513 | 1 | 71,342,437 | 71,342,437 | 0 | true | 2022-03-03T17:46:15.560Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sticky bottom and top react<p>I have a react/tailwind project where I have a component that I want to be both sticky bottom and top.</p>
<p>In other words, I... |
71,287,234 | Unity/C# autocomplete not working in Visual Studio Code for Linux with .NET version 6.x<p>I can't get IntelliSense in to autocomplete or show suggestions for Unity (20.3.30 LTS) methods in Visual Studio Code in Linux (Ubuntu 20.04). I have downloaded .NET version 6.0.102 on my Ubuntu but the Unity API Compatibility Lev... | <p>Something that worked for me in the end was to add</p>
<pre><code>"omnisharp.path": "latest",
"omnisharp.useGlobalMono": "always"
</code></pre>
<p>in the settings.json file of Visual Studio Code. It still started complaining after that and it turned out that I needed to instal... | Unity/C# autocomplete not working in Visual Studio Code for Linux with .NET version 6.x | c#|.net|unity3d|visual-studio-code|intellisense | 0 | 298 | 1 | 71,342,994 | 71,342,994 | 0 | true | 2022-02-27T18:00:12.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unity/C# autocomplete not working in Visual Studio Code for Linux with .NET version 6.x<p>I can't get IntelliSense in to autocomplete or show suggestions for... |
71,336,018 | Excluding locations from eBay Finding API<p>Using the finditemsadvanced service as part of eBays finding API, the documentation mentions filtering results to only include specific countries. However I'd like to exclude a small list of specific countries instead. Is there an option anywhere to exclude instead of include... | <p>No,
only Exclude options are <code>ExcludeSeller</code> and <code>ExcludeCategory</code>
or you have to list all the Countries you want in <code>ListedIn</code> or <code>LocatedIn</code></p>
<p>perhaps <code>MaxDistance</code> option can be suitable for your needs..</p> | Excluding locations from eBay Finding API | ebay-api | 0 | 37 | 1 | 71,343,230 | 71,343,230 | 0 | true | 2022-03-03T11:01:17.457Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Excluding locations from eBay Finding API<p>Using the finditemsadvanced service as part of eBays finding API, the documentation mentions filtering results to... |
71,343,305 | How to bring a leading zero from excel and typed out with pyautogui?<p>I need to bring a date from a spreadsheet and paste it into another program but the date format is dd/mm/yy and there needs to be a leading zero if it's not oct, nov, or dec. Any ideas?
Below is the code I am using. It brings the number is but drops... | <p>Is this all you need?</p>
<pre><code>date = str(excel_data['Check Date'][count])
date = f'{date[:3]}0{date[3:]}' if len(date) < 8 else date
pyautogui.typewrite(date)
</code></pre> | How to bring a leading zero from excel and typed out with pyautogui? | python|excel|pyautogui|leading-zero | 0 | 30 | 1 | 71,343,415 | 71,343,415 | 0 | true | 2022-03-03T20:18:49.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to bring a leading zero from excel and typed out with pyautogui?<p>I need to bring a date from a spreadsheet and paste it into another program but the da... |
71,341,009 | Kubernetes Ingress with Azure<p>I would like to know how Kubernates Ingress works.</p>
<ol>
<li>Is there an apply order, service and deployment are applied, does ingress come before or after?</li>
<li>To test ingress with azure, I created a kubernates service in azure (service and deployment, etc. applied there). In Az... | <ol>
<li>there is no apply order, kubernetes will create the resources in the order you apply them</li>
<li>no, the address you mention is the API address (kubernetes API), you need to create your own DNS name and connect it to the LB IP of the ingress controller</li>
<li>the resources you create are inside the cluster... | Kubernetes Ingress with Azure | azure|kubernetes | 0 | 38 | 1 | 71,343,439 | 71,343,439 | 0 | true | 2022-03-03T17:07:55.957Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Kubernetes Ingress with Azure<p>I would like to know how Kubernates Ingress works.</p>
<ol>
<li>Is there an apply order, service and deployment are applied, ... |
71,342,821 | Select All Records with Sequelize ORM when having One-To-Many relationship<p>I have two tables <code>Users</code> and <code>Shops</code>, User can have multiple shops, and shop can be owned by one user.</p>
<p>I'm using Node.js & Sequelize ORM (postgres)</p>
<h2>The Problem</h2>
<p>When fetching data from <code>Sho... | <p>You need to indicate the same <code>foreignKey</code> option value in both relationships:</p>
<pre class="lang-js prettyprint-override"><code>/* RELATION BETWEEN User AND Shop (one-to-many) */
User.hasMany(Shop, {
foreignKey: 'userId',
onDelete: "CASCADE",
})
Shop.belongsTo(User... | Select All Records with Sequelize ORM when having One-To-Many relationship | javascript|node.js|postgresql|sequelize.js|one-to-many | 0 | 806 | 1 | 71,343,459 | 71,343,459 | 0 | true | 2022-03-03T19:35:26.067Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Select All Records with Sequelize ORM when having One-To-Many relationship<p>I have two tables <code>Users</code> and <code>Shops</code>, User can have multi... |
71,333,239 | Extracting a scraped list into new columns<p>I have this code (borrowed from an old question posted ont his site)</p>
<pre><code>import pandas as pd
import json
import numpy as np
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.baseball-reference.com/leagues/MLB/2013-finalyear.sh... | <p>You can simplify this quite a bit with <code>pandas</code>. Have it pull the table, then you just want the <code>Names</code> and <code>Yrs</code> columns.</p>
<pre><code>import pandas as pd
url = "https://www.baseball-reference.com/leagues/MLB/2013-finalyear.shtml"
df = pd.read_html(url, attrs = {'id': '... | Extracting a scraped list into new columns | python|list|dataframe|screen-scraping | 0 | 28 | 2 | 71,343,906 | 71,343,906 | 0 | true | 2022-03-03T07:03:34.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extracting a scraped list into new columns<p>I have this code (borrowed from an old question posted ont his site)</p>
<pre><code>import pandas as pd
import j... |
71,343,828 | Trying to organize a large dataset and then determine the mean days and standard deviation using Spyder (Python 3.9)<p>*Edit: Posted code as dataframe not sheets link.</p>
<p>I have a large data set consisting of ~6.5M rows and 6 columns. The rows are BrandId's (e.g., 01-00058) associated with unique items and the 3 co... | <p>IIUC, try with <code>groupby</code>:</p>
<pre><code>>>> df[df["OnHand"].eq(0)].groupby("BrandID")["InventoryDate"].nunique()
</code></pre> | Trying to organize a large dataset and then determine the mean days and standard deviation using Spyder (Python 3.9) | python|date|spyder|mean|standard-deviation | 0 | 33 | 1 | 71,343,953 | 71,343,953 | 0 | true | 2022-03-03T21:08:13.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trying to organize a large dataset and then determine the mean days and standard deviation using Spyder (Python 3.9)<p>*Edit: Posted code as dataframe not sh... |
71,343,333 | In Ruby, why does plugging in a variable assigned to an array index return undefined?<p>I am learning Ruby and just solved this pyramid problem. For whatever reason, I tried to change <code>twoD[0]</code> to the variable <code>twoDidx</code> (see third line).</p>
<p>However, when I try replacing <code>while twoD[0].len... | <p>There's a big difference between <code>twoDidx</code> and <code>twoD[0]</code>. <code>twoDidx</code> is a reference to a first element of <code>twoD</code> <strong>at the time you made an assignment</strong> while <code>twoD[0]</code> is the reference to the first element of <code>twoD</code> array at the time of ex... | In Ruby, why does plugging in a variable assigned to an array index return undefined? | arrays|ruby|variables | 0 | 34 | 1 | 71,344,336 | 71,344,336 | 0 | true | 2022-03-03T20:22:09.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
In Ruby, why does plugging in a variable assigned to an array index return undefined?<p>I am learning Ruby and just solved this pyramid problem. For whatever... |
71,344,306 | how to stretch a UL across the browser window<p>I have an UL that acts as my navigation bar on my web page. currently it is all the way to the left of the screen. I would like it to be centered and have the background color stretch all the way to the left and right, Like below. what would I need to change to stretch th... | <p>Make your <code>ul</code> a flex container in which you align the children centered, and apply the <code>background-color</code> to this element instead of the <code>li</code> children by adding this rule:</p>
<pre><code>#nav_ul {
width: 100%;
display: flex;
justify-content: center;
background-color: #1D3567... | how to stretch a UL across the browser window | html|css|dropdown|background-color | 0 | 30 | 1 | 71,344,396 | 71,344,396 | 0 | true | 2022-03-03T21:57:59.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to stretch a UL across the browser window<p>I have an UL that acts as my navigation bar on my web page. currently it is all the way to the left of the sc... |
71,328,734 | Extracting contours multiple times with Python<p>I'm currently using <code>matplotlib.pyplot.contour</code> to extract certain level plots form a 2D function. This is an example extracted from <a href="https://mmas.github.io/conics-matplotlib" rel="nofollow noreferrer">here</a>, for the sake of the discussion:</p>
<pre... | <p>If somebody faces the same challenge, I found a suitable solution in one of the answers to <a href="https://stackoverflow.com/questions/30376897/calling-contour-without-plotting-it-python-pylab-inline">this question</a>.</p>
<p>It uses the <em>marching squares method</em> implemented in the <code>scikit-image</code>... | Extracting contours multiple times with Python | python|matplotlib | 0 | 35 | 1 | 71,344,636 | 71,344,636 | 0 | true | 2022-03-02T20:26:30.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extracting contours multiple times with Python<p>I'm currently using <code>matplotlib.pyplot.contour</code> to extract certain level plots form a 2D function... |
71,342,254 | Which headers to set when sending emails with an API to avoid emails to be thread-grouped in Gmail client<p>Let's say I send customized/different emails for 20 persons with my email provider API.</p>
<p>But all emails have the exact same subject (let's say <code>"Hello"</code>), and this cannot be changed.</p... | <p>I found the solution in <a href="https://workspaceupdates.googleblog.com/2019/03/threading-changes-in-gmail-conversation-view.html" rel="nofollow noreferrer">https://workspaceupdates.googleblog.com/2019/03/threading-changes-in-gmail-conversation-view.html</a>.</p>
<p>Setting a header of the form <code>References: &l... | Which headers to set when sending emails with an API to avoid emails to be thread-grouped in Gmail client | email|gmail|incoming-mail | 0 | 31 | 1 | 71,344,925 | 71,344,925 | 0 | true | 2022-03-03T18:44:27.510Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Which headers to set when sending emails with an API to avoid emails to be thread-grouped in Gmail client<p>Let's say I send customized/different emails for ... |
71,344,775 | Changing column name and finding mean and standard deviation in Spyder (Python 3.9.7)<p>I'm working on a project for class, and y'all have been so incredibly helpful!</p>
<p>Anyways, I used this code:</p>
<p><code>SO21= BI21[BI21["OnHand"].eq(0)].groupby("BrandID")["InventoryDate"].nunique... | <p>SOSummary19= SO19.agg(["sum","mean","std","sem"]) Was the fix</p> | Changing column name and finding mean and standard deviation in Spyder (Python 3.9.7) | python|rename|spyder|mean|standard-deviation | 0 | 30 | 1 | 71,345,045 | 71,345,045 | 0 | true | 2022-03-03T22:58:48.603Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Changing column name and finding mean and standard deviation in Spyder (Python 3.9.7)<p>I'm working on a project for class, and y'all have been so incredibly... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.