question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,215,528 | Plugin.InAppBilling always returns "Invalid Product" on Xamarin.iOS<p>I have been trying to implement the <a href="https://github.com/jamesmontemagno/InAppBillingPlugin" rel="nofollow noreferrer">Plugin.InAppBilling</a> NuGet package for the last weeks and trying to run the "Get Product Details" example from ... | <p>Plugin.InAppBilling Version 5.3.3-beta resolved this problem.</p> | Plugin.InAppBilling always returns "Invalid Product" on Xamarin.iOS | ios|xamarin | 0 | 29 | 1 | 72,229,077 | 72,229,077 | 0 | true | 2022-05-12T12:23:11.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Plugin.InAppBilling always returns "Invalid Product" on Xamarin.iOS<p>I have been trying to implement the <a href="https://github.com/jamesmontemagno/InAppBi... |
72,228,759 | Mock patch specific instance of class<p>How to mock a specific instance of a class using <code>patch</code>?</p>
<p>In my test file I have:</p>
<pre><code>@classmethod
def setUpClass(cls):
cls.instance_of_my_class = myClass()
</code></pre>
<p>one of the tests then calls a function in <code>myClass</code> that I wis... | <p>Thanks to @johnsharpe for pointing out the answer.</p>
<p>with the same setUpClass at the start of Test_myClass as I had:</p>
<pre><code>@classmethod
def setUpClass(cls):
cls.instance_of_my_class = myClass()
</code></pre>
<p>working test case now looks like:</p>
<pre><code>@patch.object(myClass, "cool_funct... | Mock patch specific instance of class | python|mocking|python-unittest | 0 | 24 | 1 | 72,229,126 | 72,229,126 | 0 | true | 2022-05-13T11:22:10.760Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mock patch specific instance of class<p>How to mock a specific instance of a class using <code>patch</code>?</p>
<p>In my test file I have:</p>
<pre><code>@c... |
72,228,348 | Need replace text with single quotes in SQL<p>I need to make a script that make a replacement of all the registers of a column that contains: '@xxxx', removing the single quotes. (xxxx could be empty or any string. The @, is neccesary, the simple quotes too).</p>
<p>I'm implementing something like this, but it doesn't ... | <p>Its unclear what dbms you are using, but here is what I would so in SQLServer, you can modify for you dbms if not this.</p>
<p>They key point here is you are doing this the wrong way round, you use the Replace function on each row, not pass the record set into the replace.</p>
<pre><code>UPDATE mt
SET myColumn = RE... | Need replace text with single quotes in SQL | postgresql|function|replace|sql-function | 0 | 66 | 1 | 72,229,180 | 72,229,180 | 0 | true | 2022-05-13T10:47:23.543Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Need replace text with single quotes in SQL<p>I need to make a script that make a replacement of all the registers of a column that contains: '@xxxx', removi... |
72,229,155 | How to change title Color? swift 5<p>I can't change title color, which is white by default and when my background color is white too, it's invisible. How can i change it to the black color?
<a href="https://i.stack.imgur.com/P1OFF.png" rel="nofollow noreferrer">enter image description here</a></p> | <p>Try this</p>
<pre><code>self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.red]
</code></pre> | How to change title Color? swift 5 | swift|uikit|titlebar | 0 | 68 | 1 | 72,229,307 | 72,229,307 | 0 | true | 2022-05-13T11:52:45.747Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change title Color? swift 5<p>I can't change title color, which is white by default and when my background color is white too, it's invisible. How can... |
72,200,715 | Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "xxxx"<p>In our SQL Server 2017 we have a linked server to a Microsoft Access file/database.</p>
<p>There is a bunch of users who all log into SQL Server using Windows authentication, and this linked server is worki... | <p>I hope this helps someone else, but I solved this by adding read & write permissions to directory:</p>
<p>C:\Users\SS1\AppData\Local\Temp (where SS1 is the user account that SQL Server runs as)</p>
<p>for the user who was having problems and that fixed it.</p> | Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "xxxx" | sql-server|file-permissions|windows-server-2012|linked-server | 0 | 68 | 1 | 72,229,406 | 72,229,406 | 0 | true | 2022-05-11T12:01:12.297Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "xxxx"<p>In our SQL Server 2017 we have a linked ser... |
72,229,191 | Javascript hide/show div when the next button is clicked<p>I have a page with many images acting as button that when clicked on, reveal a seperate set of images. However, I only want one set to be shown at a time -- so that when you click on the next button, it hides the set currently being shown. I'm sure this isn't t... | <p>You can set display none of the other btn content when one btn is click
<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 carPrint = document.getElementById("carprint-1");
cons... | Javascript hide/show div when the next button is clicked | javascript|html | 0 | 44 | 1 | 72,229,453 | 72,229,453 | 0 | true | 2022-05-13T11:56:00.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript hide/show div when the next button is clicked<p>I have a page with many images acting as button that when clicked on, reveal a seperate set of ima... |
72,229,428 | A button gets out of the div<p>I have the following navbar -</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>#navbar {
width: 100%;
position: fixed;
height: 50px;
z-i... | <p>Just add <code>float: left</code> to each button.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>#navbar {
width: 100%;
position: fixed;
height: 50px;
z-index: 1 ... | A button gets out of the div | html|css | 0 | 52 | 3 | 72,229,565 | 72,229,565 | 0 | true | 2022-05-13T12:13:05.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
A button gets out of the div<p>I have the following navbar -</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fal... |
72,229,028 | How to add a value within specific key when extending an interface?<p>Let's say I have an interface:</p>
<pre><code>interface Person {
age: number
name: {
first: string
second: string
}
}
</code></pre>
<p>And I want to extend <code>Person</code> to <code>Friend</code>, which would look exactly the same as... | <p>You can do this by using the <code>type</code> keyword instead of <code>interface</code>:</p>
<pre class="lang-js prettyprint-override"><code>type Friend = Person & {
name: {
nickname: string
}
};
</code></pre> | How to add a value within specific key when extending an interface? | typescript|types | 0 | 75 | 2 | 72,229,618 | 72,229,618 | 0 | true | 2022-05-13T11:42:48.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add a value within specific key when extending an interface?<p>Let's say I have an interface:</p>
<pre><code>interface Person {
age: number
name: ... |
72,228,313 | How to calculate weekends of time range using MySQL<p>I need to calculate weekends of time range using MySQL.</p>
<p>This is what I have so far(about calculate working days but i want to calculate weekends):</p>
<pre><code>select
(floor(days / 7)* 5
+ days%7
- case
when 6 between wd and wd + days%7 ... | <pre><code>select
(floor(days / 7)* 2
+ case
when 6 between wd and wd + days%7 - 1 then 1
else 0
end
+ case
when 7 between wd and wd + days%7 - 1 then 1
else 0
end) as result
</code></pre>
<p>from ( select
abs(datediff('2022-05-15', '2022-05-13')) + 1 as days,
weekday('2022-05-13') + 1 as wd ) as a;</... | How to calculate weekends of time range using MySQL | mysql | 0 | 34 | 1 | 72,229,666 | 72,229,666 | 0 | true | 2022-05-13T10:44:16.047Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to calculate weekends of time range using MySQL<p>I need to calculate weekends of time range using MySQL.</p>
<p>This is what I have so far(about calcula... |
72,229,371 | How to exit telnet session via command line using azure devops<p>I am trying to test connectivity from source to a FTP server on port 22 using azure devops commandline tool in pipelines</p>
<p>Command for testing: <code>telnet TestSFTP02 22</code></p>
<p>How do I make sure the telnet connectivity is closed after runnin... | <p>You will need to kill the <code>telnet</code> process. For example like this:</p>
<pre><code>(timeout /T 5 > nul && taskkill /f /im telnet.exe > nul) | telnet TestSFTP02 22
</code></pre>
<hr />
<p>Or use more powerful scripting language, like PowerShell.</p> | How to exit telnet session via command line using azure devops | azure-devops|cmd|command-line|ftp|telnet | 0 | 83 | 1 | 72,229,689 | 72,229,689 | 0 | true | 2022-05-13T12:08:45.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to exit telnet session via command line using azure devops<p>I am trying to test connectivity from source to a FTP server on port 22 using azure devops c... |
72,229,622 | How to open an activity on the lock screen after FCM notification<p>How can I open an activity on the lock screen without the user having to click on it? Like for example an alarm or a call.
In my code I can get the FCM notification and if the user clicks on the notification it is possible to open an activity, but I wa... | <p>instead of <code>mNotifyManager.notify(</code> call, which shows your <code>Notification</code>, just use <code>startActivity(..</code>? you may need also <a href="https://developer.android.com/training/scheduling/wakelock" rel="nofollow noreferrer"><code>WakeLock</code></a> and <code>showOnLockScreen</code> attribu... | How to open an activity on the lock screen after FCM notification | java|android | 0 | 20 | 1 | 72,229,756 | 72,229,756 | 0 | true | 2022-05-13T12:29:23.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to open an activity on the lock screen after FCM notification<p>How can I open an activity on the lock screen without the user having to click on it? Lik... |
72,229,739 | Client-side jwt token storage<p>I need advice, what is the best way to store a JWT token? Should we store in cookies or storages? But with the CSRF flaw and xss attacks I have a doubt. I'm still in training and working on a year-end project. Or the best is to store the jwt token in a variable in a store. I developed th... | <p>I use cookies, they are easily able to be accessed server side and can have an expiration date.</p>
<p>Take a look at this post: <a href="https://stackoverflow.com/questions/3220660/local-storage-vs-cookies">Local Storage vs Cookies</a></p> | Client-side jwt token storage | javascript|node.js|reactjs|express|react-redux | 0 | 49 | 1 | 72,229,790 | 72,229,790 | 0 | true | 2022-05-13T12:37:35.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Client-side jwt token storage<p>I need advice, what is the best way to store a JWT token? Should we store in cookies or storages? But with the CSRF flaw and ... |
72,215,103 | I am getting io.cucumber.java.InvalidMethodSignatureException in Cucumber Java<pre><code>My Feature file -
Feature: Open google page
@Sanity
Scenario: Open google search
Given User open google search
Then enter text "hi" in search bar
And close the browser
#################################... | <p>You get this issue because methods annotated with <code>io.cucumber.java.Before</code> have to be <code>void</code>.</p>
<p>In your example it returns <code>WebDriver</code>. This is why you get <code>InvalidMethodSignatureException</code>.</p> | I am getting io.cucumber.java.InvalidMethodSignatureException in Cucumber Java | selenium|selenium-chromedriver|cucumber-java | 0 | 376 | 1 | 72,229,798 | 72,229,798 | 0 | true | 2022-05-12T11:54:31.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I am getting io.cucumber.java.InvalidMethodSignatureException in Cucumber Java<pre><code>My Feature file -
Feature: Open google page
@Sanity
Scenario: ... |
72,227,842 | get the index of search item in a dataframe<p>I have a dataframe which contain a column</p>
<pre><code> combine
0 (43,FR,html5 full skinz html5)
1 (43,FR,mobile m-skinz2)
2 (43,FR,mobile m-skinz2 plus)
3 (43,FR,mobile m-skinz2 swipetosite)
</code></pre>
<p>I am looking for a way to find a string S in... | <pre><code>df.index[df['combine'].str.contains(S, regex=False)].tolist()
</code></pre>
<p>This will generate you an index numbers list of 'combine' containing string S</p> | get the index of search item in a dataframe | python|pandas|dataframe | 0 | 30 | 1 | 72,229,805 | 72,229,805 | 0 | true | 2022-05-13T10:07:22.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
get the index of search item in a dataframe<p>I have a dataframe which contain a column</p>
<pre><code> combine
0 (43,FR,html5 full skinz html5)... |
72,229,631 | How do i plot a bar graphic with the groupby made column<p>I'm an Environmental Engineer, trying to make a leap change to the data science area which interests me more.</p>
<p>I'm new to Python, I work at a company that evaluates air quality data and I think that if I automate the analysis, I should save some time.</p>... | <p>After grouping, please do a reset index</p>
<pre><code>medias = tabela.groupby(by=["Data"]).mean()
medias = medias.reset_index()
</code></pre> | How do i plot a bar graphic with the groupby made column | python|plotly|data-science | 0 | 32 | 1 | 72,229,891 | 72,229,891 | 0 | true | 2022-05-13T12:29:47.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do i plot a bar graphic with the groupby made column<p>I'm an Environmental Engineer, trying to make a leap change to the data science area which interes... |
72,229,725 | How to parameterise the boolProp tag in jmeter jmx file for providing the input in jenkins<p>Context:</p>
<ul>
<li>Using JMeter 5.4.3</li>
<li>Using JenkinsFile for setup</li>
<li>Jmeter Thread group in .jmx has the below snippet:</li>
</ul>
<pre><code> <ThreadGroup guiclass="ThreadGroupGui" testcla... | <p>Unfortunately this is not something you can control using JMeter properties as of <a href="https://lists.apache.org/thread/dbg1bxywcwx5vtdwqf8ownf7ppgqjn41" rel="nofollow noreferrer">JMeter 5.4.3</a>, the options are in:</p>
<ol>
<li>Consider migrating to custom thread group i.e. <a href="https://jmeter-plugins.org/... | How to parameterise the boolProp tag in jmeter jmx file for providing the input in jenkins | jenkins|jmeter|load-testing|jenkins-declarative-pipeline | 0 | 39 | 1 | 72,229,988 | 72,229,988 | 0 | true | 2022-05-13T12:36:44.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to parameterise the boolProp tag in jmeter jmx file for providing the input in jenkins<p>Context:</p>
<ul>
<li>Using JMeter 5.4.3</li>
<li>Using JenkinsF... |
72,229,893 | How to expand variable inside EOF tag<p>I have a bash script below :</p>
<pre><code>#!/bin/sh
set -e
go mod init broken_env
built_at=`date -u "+%d-%m-%y@%H"`
cat > main.go <<'EOF'
package main
import (
"encoding/json"
"log"
"net/http"
)
const... | <p>You can't. You either allow expansion, or you don't, and you can't change that in a <em>single</em> here document. You can, however, split the here document into multiple documents to produce the final output. For example,</p>
<pre><code>{
cat <<'EOF'
package main
import (
"encoding/json"
... | How to expand variable inside EOF tag | bash | 0 | 43 | 1 | 72,230,030 | 72,230,030 | 0 | true | 2022-05-13T12:49:56.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to expand variable inside EOF tag<p>I have a bash script below :</p>
<pre><code>#!/bin/sh
set -e
go mod init broken_env
built_at=`date -u "+%d-%m... |
72,221,197 | ngx-translate Problems with unit testing<p>0</p>
<p>I'm using ngx-translate library and having some issues with unit testing because it wont find certain provides. The issue its that even tho i place a provider, it keeps asking for another one and it never solves the issue.</p>
<p>So basically im unit testing mi auth c... | <p>I would mock <code>TranslateService</code> and mock the methods and properties required for it.</p>
<p>Do it like so:</p>
<pre><code>describe('AuthComponent', () => {
let component: AuthComponent;
let fixture: ComponentFixture<AuthComponent>;
beforeEach(async () => {
await TestBed.configureTes... | ngx-translate Problems with unit testing | angular|angularjs|typescript|unit-testing|angular-test | 0 | 98 | 1 | 72,230,153 | 72,230,153 | 0 | true | 2022-05-12T19:32:31.610Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ngx-translate Problems with unit testing<p>0</p>
<p>I'm using ngx-translate library and having some issues with unit testing because it wont find certain pro... |
72,226,368 | How to Count Item Monthwise<p>I try to make a bar chart and I want value month wise for last 6 months</p>
<p>my <strong>models.py</strong></p>
<pre><code>class Btdetail(models.Model):
id = models.IntegerField(primary_key=True)
BatType = models.CharField(max_length=200, default=1)
MaxVolt = models.IntegerFie... | <p>finally I solved this by myself and get data monthly wise, "any_variable6" mean the month before 6 month from the current month and so on</p>
<p>and you can also get idea how to get data from previous specific month</p>
<pre><code>from datetime import datetime
from dateutil.relativedelta import relativede... | How to Count Item Monthwise | python|django | 0 | 52 | 2 | 72,230,322 | 72,230,322 | 0 | true | 2022-05-13T08:11:20.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to Count Item Monthwise<p>I try to make a bar chart and I want value month wise for last 6 months</p>
<p>my <strong>models.py</strong></p>
<pre><code>cla... |
72,199,867 | Unable to create a template<p>I am trying to create a dataflow template using the below mvn command And i have a json config file in the bucket where i need to read different config file for each run(i dont want to hard code values`) the code is as below</p>
<p>During the template creation im getting below error for al... | <p>Your code uses classic Dataflow templates, and it has several limitations. The biggest one (and what's also affecting you) is that they can't support dynamic parameters. That means, all the parameters MUST be available at the time of running.</p>
<p>The reason is, Dataflow generates a compiled template with the DAG... | Unable to create a template | java|google-cloud-dataflow|apache-beam|dataflow|apache-beam-io | 0 | 86 | 2 | 72,230,355 | 72,230,355 | 0 | true | 2022-05-11T11:01:25.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to create a template<p>I am trying to create a dataflow template using the below mvn command And i have a json config file in the bucket where i need ... |
72,215,869 | React + ASP.Net-Core CORS Problems<p>While CORS is a big issue when working ReactJS in combination with ASP.Net-Core I figured out how to enable CORS so when accessing my UI (<code>http://localhost:3000</code>) which uses SignalR/REST-Calls against the API (<code>http://localhost:51761</code>).</p>
<p>Here the <code>St... | <p>I figured out the problem by myself.</p>
<p>So actually what you need to do is to set the proxy in your react projects <code>package.json</code> to the URL of the API. In addition you need to make your http-request be dynamically and set the content-type of the request to non-<code>text/html</code></p>
<p>So changin... | React + ASP.Net-Core CORS Problems | c#|reactjs|asp.net-core|http-status-code-400|connection-refused | 0 | 228 | 2 | 72,230,371 | 72,230,371 | 0 | true | 2022-05-12T12:47:54.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React + ASP.Net-Core CORS Problems<p>While CORS is a big issue when working ReactJS in combination with ASP.Net-Core I figured out how to enable CORS so when... |
72,190,156 | Error adding migration when data models are in a separate assembly<p>I've just setup new projects, <em>Pegasus</em> (my main web application) and <em>PegasusEntities</em> (my database objects).</p>
<p>My <em>Pegasus</em> start-up code includes the following.</p>
<pre><code>builder.Services.AddDbContext<ApplicationDb... | <p>I had this same issue only yesterday.</p>
<p>The error message is very misleading, if not just plain incorrect.</p>
<p>The fix is to set your debug start up project to the one that instantiates the DbContext whilst keeping the project with the entities selected in the package manager console.</p> | Error adding migration when data models are in a separate assembly | c#|asp.net|ef-code-first|entity-framework-migrations|.net-6.0 | 0 | 204 | 1 | 72,230,381 | 72,230,381 | 0 | true | 2022-05-10T16:46:00.700Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error adding migration when data models are in a separate assembly<p>I've just setup new projects, <em>Pegasus</em> (my main web application) and <em>Pegasus... |
72,223,404 | How can I put text over a fixed image in html and make the text scrollable?<p>This may be a stupid question, but I am making a website and I want to have a page that has a fixed image that stays where it is when you scroll to see more text. One problem that I have encountered is that I can get the image to be fixed, bu... | <p>As Geeky Quentin said, z-index is the solution to your problems. You mentioned that you are using classes in css, so in the class you should put z-index: index. The higher the index, the more things it goes over. If you want an image to stay where it is and not get anything put over or under it, you can just use dif... | How can I put text over a fixed image in html and make the text scrollable? | html|css|css-position | 0 | 55 | 1 | 72,230,484 | 72,230,484 | 0 | true | 2022-05-13T00:46:06.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I put text over a fixed image in html and make the text scrollable?<p>This may be a stupid question, but I am making a website and I want to have a p... |
72,230,280 | How to add data in an array of Vue.JS from html<p>Guys I am stuck on my assignment where I am not able to add data from html to the array of VUE.JS I have build this form now what I want is when user complete this form and press Add a new student button it supposed to add all the data inside Students array in vue.js bu... | <p>As I mentioned in the comment, You have to convert your code in Vue format. You have to use <code>v-model</code> for two-way data binding and then on button click you have to trigger a <code>@click</code> event just to get all the fields <code>v-model</code> value and then push the data in students array.</p>
<p>I j... | How to add data in an array of Vue.JS from html | javascript|vue.js | 0 | 219 | 1 | 72,230,494 | 72,230,494 | 0 | true | 2022-05-13T13:21:30.697Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add data in an array of Vue.JS from html<p>Guys I am stuck on my assignment where I am not able to add data from html to the array of VUE.JS I have bu... |
72,226,934 | Cypress if else conditional test<p>I am trying to include the below condition into my test but I can't seem to get it to work and receive the below error, any ideas why?</p>
<p>Essentially, I want to test that a input is / is not empty:</p>
<pre><code> cy.get(`[class^='input-module_field']`).eq(0).then(($input) ... | <p>When yielded from a <code>.then()</code>, the <code>$input</code> variable is just a JQuery element, and can't use Cypress commands. In this case, even using a Cypress command, such as <code>.should()</code> wouldn't work, because that does not yield a boolean value for the if/else.</p>
<p>Instead, we'll want to use... | Cypress if else conditional test | cypress | 0 | 156 | 2 | 72,230,551 | 72,230,551 | 0 | true | 2022-05-13T08:57:27.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cypress if else conditional test<p>I am trying to include the below condition into my test but I can't seem to get it to work and receive the below error, an... |
72,230,493 | Extracting date and time from oracle<p>I have a table in which there is a field last_update_date in which the date is displayed in short form like 25/02/2015.If I want to extract the date in long date time format like dd/mm/yyyy hh:mm:ss how can I do so.Please help on how can I query the data from this table by using t... | <p>If you want the value as a <code>DATE</code> data type then use:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT last_update_date FROM table_name
</code></pre>
<p>If the client application is not showing the time component then you need to modify the formatting preferences of the client application; you ... | Extracting date and time from oracle | sql|oracle | 0 | 26 | 1 | 72,230,567 | 72,230,567 | 0 | true | 2022-05-13T13:38:27.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extracting date and time from oracle<p>I have a table in which there is a field last_update_date in which the date is displayed in short form like 25/02/2015... |
72,230,206 | does the filter with new date() accept format other than yyyy-mm-dd?<p>I have a response from mydatepicker in the following format</p>
<pre><code>{
"isRange":false,
"singleDate":{
"date":{
"year":2022,
"month":5,
"day":13
},
"jsDate... | <p>To get the end of a day, first convert the parse-able text into a date, then manipulate that date.</p>
<pre><code>let object = this.formGeral.value.data; // for our sanity
let jsDate = new Date(object.singleDate.jsDate);
jsDate.setUTCHours(23,59,59,999);
</code></pre>
<p>Keep the <code>formatted</code> stri... | does the filter with new date() accept format other than yyyy-mm-dd? | javascript|angular|ngx-mydatepicker | 0 | 31 | 1 | 72,230,587 | 72,230,587 | 0 | true | 2022-05-13T13:15:25.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
does the filter with new date() accept format other than yyyy-mm-dd?<p>I have a response from mydatepicker in the following format</p>
<pre><code>{
"is... |
72,228,682 | Pushing a task with firebase-queue not working<p>I am trying to use the <a href="https://github.com/FirebaseExtended/firebase-queue/blob/HEAD/docs/guide.md" rel="nofollow noreferrer">queuing module</a> base on top of Firebase. I use the following code to push tasks</p>
<pre><code>import admin from "firebase-admin&... | <p>This configuration looks wrong:</p>
<pre><code>databaseURL: 'gs://xxx.appspot.com/'
</code></pre>
<p>URLs for the Realtime Database start with <code>https://</code> and end with either <code>firebaseio.com</code> or <code>firebasedatabase.app</code>. So I recommend double checking the configuaration data in the Fire... | Pushing a task with firebase-queue not working | javascript|firebase|firebase-realtime-database|firebase-admin|firebase-queue | 0 | 72 | 1 | 72,230,723 | 72,230,723 | 0 | true | 2022-05-13T11:15:49.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pushing a task with firebase-queue not working<p>I am trying to use the <a href="https://github.com/FirebaseExtended/firebase-queue/blob/HEAD/docs/guide.md" ... |
72,228,134 | Convert Kivymd code to .exe (Windows executable)<p>I tried so much to convert kivymd code into .exe by using PyInstaller</p>
<p>the error i getting was -modulenotfound no module named kivy.graphics.buffer
while solving this error too many other error occured Temp//kivy_install//data//style.kv
also not console is visi... | <p>Your <code>.spec</code> file seems overly complicated. Here is a <code>main.spec</code> file that works for me and your <code>main.py</code>:</p>
<pre><code># -*- mode: python ; coding: utf-8 -*-
from kivy_deps import sdl2, glew
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
b... | Convert Kivymd code to .exe (Windows executable) | google-cloud-firestore|kivy|pyinstaller|kivymd | 0 | 193 | 1 | 72,230,753 | 72,230,753 | 0 | true | 2022-05-13T10:30:48.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Convert Kivymd code to .exe (Windows executable)<p>I tried so much to convert kivymd code into .exe by using PyInstaller</p>
<p>the error i getting was -modu... |
72,169,706 | Stencil Web Components optional/required property<p>In Stencil web component there are different property annotations:
regular one:</p>
<pre><code>@Prop() name;
</code></pre>
<p>optional:</p>
<pre><code>@Prop() name?;
</code></pre>
<p>required:</p>
<pre><code>@Prop() name!;
</code></pre>
<p>If there exist an explicit a... | <p>According to <a href="https://stenciljs.com/docs/properties" rel="nofollow noreferrer">Stencil documentation</a> the required and optional annotations actually serve dissimilar purposes.</p>
<p>The "required" annotation will cause an error to be shown if the component is used without the property in other ... | Stencil Web Components optional/required property | stenciljs | 0 | 97 | 1 | 72,230,771 | 72,230,771 | 0 | true | 2022-05-09T09:26:08.950Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Stencil Web Components optional/required property<p>In Stencil web component there are different property annotations:
regular one:</p>
<pre><code>@Prop() na... |
72,229,611 | How do i import another turtle in python<p>im studying coding in bugaria in highschool. Im in 8th grade, and were studying python and processing. Since the end of this schoolyear is near, our python teacher gave us a project, he said that the project could be whatever we want. I told him, i would make a racing game, w... | <p>Welcome to the team! :) May you have lots of fun!
You do not want to <strong>import</strong> a second turtle, but to <strong>instantiate</strong> a second turtle.</p>
<p>Importing refers to importing a library, which runs the library code and allows you to access all the libraries functions. So when you type:</p>
<p... | How do i import another turtle in python | python|python-3.x|python-turtle | 0 | 48 | 1 | 72,230,853 | 72,230,853 | 0 | true | 2022-05-13T12:28:24.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do i import another turtle in python<p>im studying coding in bugaria in highschool. Im in 8th grade, and were studying python and processing. Since the ... |
72,228,121 | Firebase keeps redirecting example.com/username to example.com/#/<p>I am trying to extract the username from the current URL example.com/username but firebase keeps directing it to example.com/#/ due to which username changes dynamically.</p>
<p>The website is built on flutter</p>
<p>firebase.json file:</p>
<pre><code>... | <p>If we look at the <code>rewrites</code> node in your <code>firebase.json</code>:</p>
<pre><code>"rewrites": [
{
"source": "/**",
"dynamicLinks": true,
"destination": "/index.html"
}
]
</code></pre>
<p>This tells Firebase Hosting to rewrite a... | Firebase keeps redirecting example.com/username to example.com/#/ | firebase|flutter|flutter-web|firebase-hosting | 0 | 38 | 1 | 72,230,855 | 72,230,855 | 0 | true | 2022-05-13T10:29:56.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firebase keeps redirecting example.com/username to example.com/#/<p>I am trying to extract the username from the current URL example.com/username but firebas... |
72,227,922 | wiringPi installation issue<p>I am trying to stall wiringpi in the raspberry for using the GPIO in C but the message says that:</p>
<p>"Package wiringpi is not available but is referred to by another package.
This may mean that the package is missing, has been obsolited , or is only available from nother source&qu... | <p>I aleady found a solution!! thanks anyway here is the link just in case anyone has te same problem</p>
<p><a href="http://wiringpi.com/download-and-install/" rel="nofollow noreferrer">http://wiringpi.com/download-and-install/</a></p>
<p>$ git clone git://git.drogon.net/wiringPi</p>
<p>$ cd ~/wiringPi</p>
<p>$ git pu... | wiringPi installation issue | installation|raspberry-pi|wiringpi | 0 | 299 | 1 | 72,230,869 | 72,230,869 | 0 | true | 2022-05-13T10:15:07.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
wiringPi installation issue<p>I am trying to stall wiringpi in the raspberry for using the GPIO in C but the message says that:</p>
<p>"Package wiringpi... |
72,203,489 | Can't install geoplot package<p>I'm trying to install <strong>geoplot</strong> package for a few hours now but I can't understand why I can't do it. I saw several links in here just saying "only use conda and it will work" but neither <code>conda install -c conda-forge geoplot</code> or <code>pip install geop... | <p>I wan't able to solve this problem on my base environment, so in order to install <code>geoplot</code> I had to create a new environment on conda. Will post what I've done here below in case of anyone in the future come across this same problem:</p>
<pre><code>conda create -n geoEnv python=3.8
</code></pre>
<p>After... | Can't install geoplot package | python|pip|conda|geospatial|geoplot | 0 | 279 | 1 | 72,230,881 | 72,230,881 | 0 | true | 2022-05-11T15:11:36.227Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't install geoplot package<p>I'm trying to install <strong>geoplot</strong> package for a few hours now but I can't understand why I can't do it. I saw se... |
72,204,996 | Missing necessary OAuth permissions on GCP Pub/Sub<p>I'm trying to follow <a href="https://developers.google.com/forms/api/guides/push-notifications" rel="nofollow noreferrer">this</a> guide here to get push notifications whenever a response has been submitted on a Google Forms form. All prerequisites have been complet... | <p>Seems like @DazWilkin was right, creating a watch only works when authorizing the app using an OAuth2 flow. Following the docs I created a consent screen and a client ID and was able to create a watch successfully. Cheers for the hint!</p> | Missing necessary OAuth permissions on GCP Pub/Sub | typescript|google-cloud-platform|google-forms|google-cloud-pubsub | 0 | 121 | 1 | 72,230,903 | 72,230,903 | 0 | true | 2022-05-11T17:06:09.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Missing necessary OAuth permissions on GCP Pub/Sub<p>I'm trying to follow <a href="https://developers.google.com/forms/api/guides/push-notifications" rel="no... |
72,230,805 | is it possible to await for a promise response using setInterval?<p>Basically i have an timer, lets say the timer starts at 60 seconds and goes to 0 when it reaches 0 it makes an api call and the timer restarts, the issue im having is that when the timer reaches 0 it just restars without awaiting for the promise respon... | <p>I think, you have to use setTimeout(), smth like this</p>
<pre><code>let time = 60;
async function callback() {
time = time - 1;
if (time === 0) {
await fetch('https://google.com');
time = 60;
}
setTimeout(callback, 1000)
}
callback()
</code></pre> | is it possible to await for a promise response using setInterval? | javascript|asynchronous|async-await | 0 | 32 | 2 | 72,230,989 | 72,230,989 | 0 | true | 2022-05-13T13:59:47.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
is it possible to await for a promise response using setInterval?<p>Basically i have an timer, lets say the timer starts at 60 seconds and goes to 0 when it ... |
72,229,709 | Sumproduct, Multiple Options & Blank Values<p>I am currently trying to produce a filter/summary for a data set using Sumproduct. The data is a list of codes, regions and managers each with a row value (£). Alongside this detail there is an account code summary, with a "filter" area to enter a region and/or ... | <p>If you're using Excel 2019 or earlier then this will have to be entered as an array formula</p>
<pre><code>=SUMPRODUCT(--(($A$11:$A$24=$A4)*--($B$11:$B$24=$E$4)*--(IF(ISBLANK($F$4),ISNUMBER(ROW($C$11:$C$24)),$C$11:$C$24=$F$4)))*$D$11:$D$24)
</code></pre> | Sumproduct, Multiple Options & Blank Values | excel|sumproduct | 0 | 39 | 1 | 72,231,033 | 72,231,033 | 0 | true | 2022-05-13T12:35:48.063Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sumproduct, Multiple Options & Blank Values<p>I am currently trying to produce a filter/summary for a data set using Sumproduct. The data is a list of codes... |
72,230,713 | calculate remaining import fields based on 2 import fields<p>I have a model with multiple fields. I want to make an importer (possibly with the django import-export library) that only takes two fields and with that calculates the rest of the fields that the model has.
I wanted to listen and ask if you know of ways to d... | <p>You can use a custom resource for import mixin in model admin class</p>
<pre class="lang-py prettyprint-override"><code>class YourModelAdmin(ImportMixin, admin.ModelAdmin):
resource_class = YourModelCustomResource # 指定ImportMixin的resource_class
class YourModelCustomResource(resources.ModelResource):
de... | calculate remaining import fields based on 2 import fields | python|django|django-import-export | 0 | 42 | 1 | 72,231,043 | 72,231,043 | 0 | true | 2022-05-13T13:52:50.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
calculate remaining import fields based on 2 import fields<p>I have a model with multiple fields. I want to make an importer (possibly with the django import... |
72,203,191 | Reporting Services - show multiple values for a column horizontally rather than vertically<p>I have a report where row data can have the same data, apart from the data in the last column. Just adding the data to a table results in this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column... | <p>You can do this with a small change to your dataset query.</p>
<p>Here I have recreated your sample data table as a table variable called `@t' . Then I query the table and add a column which gives us a unique index for each 'Column4' value within each Column1-3 group</p>
<pre><code>DECLARE @t TABLE (Column1 int, Co... | Reporting Services - show multiple values for a column horizontally rather than vertically | reporting-services|ssrs-2008 | 0 | 81 | 1 | 72,231,215 | 72,231,215 | 0 | true | 2022-05-11T14:53:54.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reporting Services - show multiple values for a column horizontally rather than vertically<p>I have a report where row data can have the same data, apart fro... |
72,231,167 | Players.endersam777.PlayerGui.Currency.Money.LocalScript:5: attempt to call a number value<p>So, I was making something like the currency on leaderboard will be on a TextLabel. How can I make something like it will not be showing 0 but 0$? Because if I will put script.Parent.Text = player.leaderstats.Coins.Value"$... | <p>You can concatenate strings using <code>..</code>
Example:</p>
<pre class="lang-lua prettyprint-override"><code>local player = game:GetService("Players").LocalPlayer
script.Parent.Text = tostring(player.leaderstats.Coins.Value).."$"
</code></pre>
<p>Checkout the <a href="https://www.lua.org/pil/... | Players.endersam777.PlayerGui.Currency.Money.LocalScript:5: attempt to call a number value | lua|roblox | 0 | 39 | 2 | 72,231,226 | 72,231,226 | 0 | true | 2022-05-13T14:24:57.150Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Players.endersam777.PlayerGui.Currency.Money.LocalScript:5: attempt to call a number value<p>So, I was making something like the currency on leaderboard will... |
72,230,766 | different jdk versions returned when requesting system<p>i wanna understang why these three commands not always return the same jdk.
In the third request, the jdk is not the same.</p>
<p>1- when i launch this command</p>
<pre><code>java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home'
</... | <p>i resolved myself.
I got some symbolic links in my /usr/lib/jvm</p>
<pre><code> java-1.11.0-openjdk-amd64 -> java-11-openjdk-amd64
java-11-openjdk-amd64
</code></pre>
<p>so, all is well</p> | different jdk versions returned when requesting system | java|linux|version | 0 | 30 | 1 | 72,231,237 | 72,231,237 | 0 | true | 2022-05-13T13:56:39.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
different jdk versions returned when requesting system<p>i wanna understang why these three commands not always return the same jdk.
In the third request, th... |
72,228,406 | Why Premature EOF Error has occur, while reading CSV file using SpringBoot Scheduled Task<p>Below shows the relevant code segments. Is it related to connection close or Buffer memory.? (The file, which contains 50MB+ AND 65000+ Text Lines)</p>
<pre><code>@Scheduled(cron = "0 0 9 * * *")
public void retrieveFi... | <p>The exception is thrown by the internal class <code>sun.net.www.http.ChunkedInputStream</code>. This class is used to read a chunk of http content whose length was declared at the beginning using the Content-Length HTTP header. However, the http content was incomplete, because it ended before the expected amount of ... | Why Premature EOF Error has occur, while reading CSV file using SpringBoot Scheduled Task | java|spring-boot|inputstream|bufferedreader|urlconnection | 0 | 193 | 1 | 72,231,244 | 72,231,244 | 0 | true | 2022-05-13T10:51:22.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why Premature EOF Error has occur, while reading CSV file using SpringBoot Scheduled Task<p>Below shows the relevant code segments. Is it related to connecti... |
72,230,749 | Sorting arrays in JavaScript<p>I received a big array of object from the backend and I used filtering to leave only these values</p>
<pre><code>const markets = ['IT', 'DE', 'UK', 'FR', 'NL', 'US'] // so now this is what have
</code></pre>
<p>I am going then to map through markets, but it will always start by IT and fol... | <p>You can assign each market a value within an object, and use that to compare and sort against the market array you receive from the backend:</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-... | Sorting arrays in JavaScript | javascript|arrays|sorting | 0 | 87 | 5 | 72,231,265 | 72,231,265 | 0 | true | 2022-05-13T13:55:21.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sorting arrays in JavaScript<p>I received a big array of object from the backend and I used filtering to leave only these values</p>
<pre><code>const markets... |
72,230,588 | AEM 6.5 publisher not starting<p>I have followed the steps listed out <a href="https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/local-development-environment-set-up/aem-runtime.html?lang=en#" rel="nofollow noreferrer">here</a> for setting up my local AEM instances. The author is running ju... | <p>Because i am a dumb-dumb. The publisher publishes content and makes it available to the web (or the localhost in my case). For any of the non-admin pages to work some content needs to be published first.</p>
<p>To verify that the publisher server is running http://localhost:4503/crx/packmgr/index.jsp if you see CRX,... | AEM 6.5 publisher not starting | java|adobe|aem | 0 | 568 | 1 | 72,231,267 | 72,231,267 | 0 | true | 2022-05-13T13:44:25.243Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AEM 6.5 publisher not starting<p>I have followed the steps listed out <a href="https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service... |
72,228,193 | how can I run r function from package in postgresql<p>I am trying to use the R function from a R package (<a href="https://cran.microsoft.com/snapshot/2017-04-03/web/packages/genasis/index.html" rel="nofollow noreferrer">https://cran.microsoft.com/snapshot/2017-04-03/web/packages/genasis/index.html</a>) directly in Pos... | <p>Function <code>genasis::genpastoact</code> expects a vector or a data frame as it first argument <code>x</code>. According to the <a href="https://access.crunchydata.com/documentation/plr/8.3.0.18/#passing-data-values-a-name-passing-data-a" rel="nofollow noreferrer">documentation of plr</a>, the type of input argume... | how can I run r function from package in postgresql | r|postgresql|cran|plr | 0 | 65 | 1 | 72,231,306 | 72,231,306 | 0 | true | 2022-05-13T10:34:46.840Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can I run r function from package in postgresql<p>I am trying to use the R function from a R package (<a href="https://cran.microsoft.com/snapshot/2017-0... |
72,230,140 | Remove specific string char at the beginning of each lines of a txt file using python<p>I'm currently working on a script in python.
I want to convert an xls file into a txt file but I also want to clean and manage the data.
In the xls files, there's 4 columns which does interest me. Here is a sample of the txt I get f... | <p>Please find below the updated code.
This is the input I took, added a couple of rows to ensure it works fine..</p>
<p><a href="https://i.stack.imgur.com/Oa5dX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oa5dX.png" alt="input xlsx" /></a></p>
<p>Few changes:</p>
<ol>
<li>read_excel has <code>he... | Remove specific string char at the beginning of each lines of a txt file using python | python|pandas|dataframe|text | 0 | 49 | 1 | 72,231,307 | 72,231,307 | 0 | true | 2022-05-13T13:09:52.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Remove specific string char at the beginning of each lines of a txt file using python<p>I'm currently working on a script in python.
I want to convert an xls... |
72,231,247 | Why does Visual Studio think I'm on a different branch than my terminal and VS Code<p>I have a .NET 5 solution, using git for source control.</p>
<ul>
<li>If I open it in Visual Studio 2019, the branch selector at the bottom right says <code>foo</code></li>
<li>If I navigate to the root directory in a terminal window a... | <p>Still not sure <em>why</em> this was happening, but deleting the <code>.vs</code> folder and restarting the solution/VS2019 seems to have fixed it.</p>
<pre><code>Root Directory
- .git
- .gitignore
- README.md
- src
+ .vs // deleted this and restarted VS2019
+ MySolution.sln
</code></pre> | Why does Visual Studio think I'm on a different branch than my terminal and VS Code | visual-studio-2019 | 0 | 22 | 1 | 72,231,359 | 72,231,359 | 0 | true | 2022-05-13T14:32:06.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does Visual Studio think I'm on a different branch than my terminal and VS Code<p>I have a .NET 5 solution, using git for source control.</p>
<ul>
<li>If... |
72,231,196 | random number generating function as argument in python<p>I want to pass a function which generates random normal numbers to another function, do some calculations and pass again the random function x times. At the end there should be a Dataframe with x colums with diffrent randomly generated outcomes.</p>
<p>My code l... | <p>I don't think you can pass the function like that. You should pass the function and the argument separately</p>
<p>Something like</p>
<pre><code>import numpy as np
timeframe = 10
nr_simulations = 10
mean_vec = np.random.rand(10)
cov_mat = np.random.rand(10,10)
cov_mat = np.maximum( cov_mat, cov_mat.transpose() )
r... | random number generating function as argument in python | python|function|random|arguments | 0 | 37 | 2 | 72,231,372 | 72,231,372 | 0 | true | 2022-05-13T14:27:50.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
random number generating function as argument in python<p>I want to pass a function which generates random normal numbers to another function, do some calcul... |
72,231,354 | pyspark - getting error 'list' object has no attribute 'write' when attempting to write to a delta table<p>I am attempting to read the first X number of rows of a delta table into a dataframe, and then write (overwrite) that back to the delta table. Here is code:</p>
<pre><code># read from entire delta table into dataf... | <p>You can do so with the <a href="https://spark.apache.org/docs/3.1.1/api/python/reference/api/pyspark.sql.DataFrame.limit.html" rel="nofollow noreferrer">limit</a> method. This returns a dataframe limited to the number of rows passed as the argument.</p>
<pre><code>dfSubset = revEnrichRef.limit(5)
</code></pre>
<p>Th... | pyspark - getting error 'list' object has no attribute 'write' when attempting to write to a delta table | pyspark|databricks | 0 | 320 | 1 | 72,231,476 | 72,231,476 | 0 | true | 2022-05-13T14:38:58.067Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pyspark - getting error 'list' object has no attribute 'write' when attempting to write to a delta table<p>I am attempting to read the first X number of rows... |
72,223,900 | Getting slow query from SELECT COUNT(*) on WordPress<p>I have the query below and it gives me a count of 32,000.</p>
<pre><code>SELECT COUNT(*)
FROM wp_term_relationships, wp_posts
WHERE wp_posts.ID = wp_term_relationships.object_id
AND post_status IN ('publish')
AND post_type IN ('ac_listings'... | <p><code>posts</code> needs a composite index starting with these two columns, in <em>this</em> order:</p>
<pre><code>INDEX(post_status, post_type)
</code></pre>
<p>With that, I expect to see the Query time diminish and also <code>Rows_examined: 107818</code>. Still it will take some time to wade through all the 32K r... | Getting slow query from SELECT COUNT(*) on WordPress | mysql|wordpress|mariadb|mysql-slow-query-log | 0 | 169 | 1 | 72,231,614 | 72,231,614 | 0 | true | 2022-05-13T02:39:13.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting slow query from SELECT COUNT(*) on WordPress<p>I have the query below and it gives me a count of 32,000.</p>
<pre><code>SELECT COUNT(*)
FROM wp... |
72,231,635 | is implicit styling of h2 tag required even if its parent div is already styled to center align?<p>This is my HTML code (I am practicing HTML!) and CSS file:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-... | <p>An <code>h2</code> element has <code>text-align: inherit</code> <em>by default</em>, but you have:</p>
<blockquote>
<pre><code>body h2 {
text-align: justify;
}
</code></pre>
</blockquote>
<p>… so the text is justified instead of inheriting it alignment rules from <code><div class="primary-class"></... | is implicit styling of h2 tag required even if its parent div is already styled to center align? | html|css|css-selectors | 0 | 27 | 1 | 72,231,673 | 72,231,673 | 0 | true | 2022-05-13T14:59:27.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
is implicit styling of h2 tag required even if its parent div is already styled to center align?<p>This is my HTML code (I am practicing HTML!) and CSS file:... |
72,220,454 | Implementing threading with flask with application context<p>I am trying to implement multiprocessing or threading in my flask __init__.py to implement a sub-process that will handle some back-end work for me. However, I can't seem to pass the application context to the sub-process, and exisitng libraries are focused o... | <p>I found a solution to this issue. I added this code to my backend.py:</p>
<pre class="lang-py prettyprint-override"><code>from flask import Blueprint
from threading import Thread
bp = Blueprint('backend', __name__)
def backend(app):
thread = Thread(target=start, args=(app,))
thread.daemon = True
thread... | Implementing threading with flask with application context | python|python-3.x|flask|python-multithreading | 0 | 108 | 1 | 72,231,713 | 72,231,713 | 0 | true | 2022-05-12T18:23:42.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Implementing threading with flask with application context<p>I am trying to implement multiprocessing or threading in my flask __init__.py to implement a sub... |
72,231,552 | Create table with given data in HTML<p>everyone! I am quite new to coding and I would like some help. Unfortunately, I don't have any code. Here's what I have to do.</p>
<p>I am given a variable data (similar to a dict in Python) and I have to create a table based on that data. I will leave an example below.</p>
<p>If ... | <p>You can use jquery to add the data to the table dynamically. You can change the <code>users</code> value with same format the table will get created automatically.</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-... | Create table with given data in HTML | html | 0 | 42 | 3 | 72,231,731 | 72,231,731 | 0 | true | 2022-05-13T14:53:00.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create table with given data in HTML<p>everyone! I am quite new to coding and I would like some help. Unfortunately, I don't have any code. Here's what I hav... |
72,182,252 | How to specify Faust arguments when using app.main()<p>Currently I run several workers using the command line with the following syntax:</p>
<p><code>faust -A <filepath>:app -D <data-log-path> worker -l info -p 6066</code></p>
<p>and it works fine. But it seems it would be much nicer to run the <code>.py</c... | <p>The most common way of achieving this is using <code>sys.argv</code>. There's an example of this in the <a href="https://github.com/robinhood/faust/blob/master/examples/tabletest.py" rel="nofollow noreferrer">tabletest.py</a> example:</p>
<pre><code>if __name__ == '__main__':
import sys
if len(sys.argv) <... | How to specify Faust arguments when using app.main() | python|faust | 0 | 176 | 1 | 72,231,794 | 72,231,794 | 0 | true | 2022-05-10T07:29:12.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to specify Faust arguments when using app.main()<p>Currently I run several workers using the command line with the following syntax:</p>
<p><code>faust -... |
72,227,386 | Mybatis foreach mapper item exception<p>I am using <code>foreach</code> for <code>SELECT IN</code> clause.</p>
<p>Item has not been found by mapper.</p>
<p>Here is part of exception.</p>
<pre><code>org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'id' ... | <p>Select annotation MUST include <code>script</code> tag if e.g. <code>foreach</code> is going to be used, as in example below.</p>
<pre class="lang-java prettyprint-override"><code>@Select("""
<script>
select a.* from ACTOR
<if test="ids != null and ids.size > 0">
where a.I... | Mybatis foreach mapper item exception | java|spring-boot|mybatis | 0 | 228 | 1 | 72,231,911 | 72,231,911 | 0 | true | 2022-05-13T09:33:08.177Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mybatis foreach mapper item exception<p>I am using <code>foreach</code> for <code>SELECT IN</code> clause.</p>
<p>Item has not been found by mapper.</p>
<p>H... |
72,178,437 | Angular i18n $localize - template literal with expressions<p>I am having so much trouble getting this syntax to translate - Angular 13.0.02 .</p>
<p>My two resources are:</p>
<pre><code>https://angular.io/api/localize/init/$localize
https://lokalise.com/blog/angular-i18n/
</code></pre>
<p>As per the Angular docs:</p>
<... | <p>So as per the docs, the "pre-pending it with a colon" syntax did work - <a href="https://angular.io/api/localize/init/$localize" rel="nofollow noreferrer">https://angular.io/api/localize/init/$localize</a></p>
<pre><code>const msg = $localize`:Password Reset Modal|Min num of chars@@passwordNumChars:Must be... | Angular i18n $localize - template literal with expressions | internationalization|angular-i18n | 0 | 219 | 1 | 72,231,948 | 72,231,948 | 0 | true | 2022-05-09T21:36:33.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular i18n $localize - template literal with expressions<p>I am having so much trouble getting this syntax to translate - Angular 13.0.02 .</p>
<p>My two r... |
72,220,763 | Rendering many Rmds from command line using GNU parallel<p>To knit an Rmd from the command line, you can do the following and it creates an HTML</p>
<pre><code>Rscript -e "rmarkdown::knit('test.Rmd')"
</code></pre>
<p>I want to do this for many Rmds using GNU parallel, I've tried this and various versions of ... | <p>From <code>man parallel</code>:</p>
<pre><code> If you get errors like:
sh: -c: line 0: syntax error near unexpected token
sh: Syntax error: Unterminated quoted string
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
zsh:1:... | Rendering many Rmds from command line using GNU parallel | r|r-markdown|knitr|gnu-parallel | 0 | 29 | 1 | 72,231,956 | 72,231,956 | 0 | true | 2022-05-12T18:53:32.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Rendering many Rmds from command line using GNU parallel<p>To knit an Rmd from the command line, you can do the following and it creates an HTML</p>
<pre><co... |
72,231,875 | xpath extract field name and "column" name from jdo mapping<p>First time dealing with xpath and XML data. I have below xpath query that I got through some Stack Overflow answers. Below, I want to extract all the column names</p>
<pre><code> with t(x) as (
values
('<?xml version="1.0" encoding=&... | <p>If you want to turn XML into a "table", this is typically done much easier using <code>xmltable()</code></p>
<pre><code>select info.*
from t
cross join xmltable('/mapping/package/class/field' passing x
columns fieldname text path '@name',
"column&... | xpath extract field name and "column" name from jdo mapping | postgresql|xpath | 0 | 14 | 2 | 72,231,978 | 72,231,978 | 0 | true | 2022-05-13T15:16:42.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
xpath extract field name and "column" name from jdo mapping<p>First time dealing with xpath and XML data. I have below xpath query that I got through some St... |
72,231,569 | Node/JS mongoose REST API How to push a new object into a nested array of objects all in one collection<p>Noob MERN Stack Dev here, I am building a little food delivery practice web app. I have begun creating a basic RESTful API to serve my food delivery site.</p>
<p>I am currently trying to build out the Database. I h... | <p>What I understood about your problem is that you are using two separate collections for restaurants and menu respectively. If you want to push data in menu collection you will have to write a separate query and add restaurant's id in menu collection just to let you know which restaurant has this menu.</p>
<p>Other o... | Node/JS mongoose REST API How to push a new object into a nested array of objects all in one collection | javascript|node.js|mongoose | 0 | 128 | 1 | 72,231,987 | 72,231,987 | 0 | true | 2022-05-13T14:54:23.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Node/JS mongoose REST API How to push a new object into a nested array of objects all in one collection<p>Noob MERN Stack Dev here, I am building a little fo... |
72,220,694 | oracle 11g forms (class not found exception oracle forms engine mine)<p>I was working on forms builder and I was able to run the form on internet explorer without any issues, but when I changed the internet connection I get this error when I run the form on the browser:</p>
<pre><code> class not found exception oracle ... | <p>This suggests the the Forms main jar file (frmall.jar) is not being found. Check the Java Control Panel. It will likely give you the needed hit as to why it is failing. You likely will need to enable trace level 2+ to see what you need.</p> | oracle 11g forms (class not found exception oracle forms engine mine) | java|oracleforms | 0 | 141 | 1 | 72,232,026 | 72,232,026 | 0 | true | 2022-05-12T18:47:03.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
oracle 11g forms (class not found exception oracle forms engine mine)<p>I was working on forms builder and I was able to run the form on internet explorer wi... |
72,230,320 | Color the cell of a table depending on the value using javascript<p>I am trying to color cells of an HTML table (which is automatically generated by Python and Django) depending on cells' content.</p>
<p>Here is my table. I would like to color only the column "status". When there is the word "Cloture&quo... | <p>Try this:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function changeColor() {
var td = $("#myTable" + " td");
$.each(td, function(i) {
if ($(td[i]).html() == ... | Color the cell of a table depending on the value using javascript | javascript|html|html-table|django-forms|django-templates | 0 | 138 | 1 | 72,232,047 | 72,232,047 | 0 | true | 2022-05-13T13:25:33.800Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Color the cell of a table depending on the value using javascript<p>I am trying to color cells of an HTML table (which is automatically generated by Python a... |
72,229,450 | Run a .jsx file using Windows Batch<p>I'm trying to run a Adobe Script in Premiere using Windows Batch.</p>
<p>Is this possible at all?</p> | <p>I found nothing about this, so I hacked my own solution.</p>
<p>You need to use Windows Batch to:</p>
<p>-Run Premiere</p>
<pre><code>@echo off
Start "" "enter path for premiere.exe here"
</code></pre>
<p>Then I followed this tutorial:</p>
<p><a href="https://syntaxfix.com/question/16342/press-k... | Run a .jsx file using Windows Batch | powershell|jsx|extendscript | 0 | 46 | 1 | 72,232,070 | 72,232,070 | 0 | true | 2022-05-13T12:14:55.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Run a .jsx file using Windows Batch<p>I'm trying to run a Adobe Script in Premiere using Windows Batch.</p>
<p>Is this possible at all?</p> |
72,153,241 | What is the reason that FTD2XX functions do not work in VB.NET after Visual Studio update(?), is there possible fix?<p>I am developing an app in VB.NET (for a customer with hardware using FTDI USB serial chip. Communication uses FTD2XX library and the respective Nuget package (FTD2XX.Net v1.2.1). After some update of V... | <p>@HansPassant writes:</p>
<p>The declarations are wrong, it must be <code>lnghandle As IntPtr</code>. The difference between <code>Integer</code> and <code>IntPtr</code> matter when you run the app in 64-bit mode. Prone to happen when targeting .NETCore, as likely in VS2022.</p>
<p>-- Hans Passant</p> | What is the reason that FTD2XX functions do not work in VB.NET after Visual Studio update(?), is there possible fix? | vb.net|ftdi | 0 | 99 | 2 | 72,232,087 | 72,232,087 | 0 | true | 2022-05-07T14:04:45.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the reason that FTD2XX functions do not work in VB.NET after Visual Studio update(?), is there possible fix?<p>I am developing an app in VB.NET (for ... |
72,231,236 | How to convert grpc java proto "timestamp" to date?<p>Error in request.getProductexpirationdate() since its not "Date" in proto thats specified as "timestamp".</p>
<p>Entity class has a "Date" but proto has no "Date" only "timestamp" so its not compatible.</p>
<p>How do... | <p>Assuming you are referring to <code>google.protobuf.Timestamp</code>, the easiest way to convert is with the <a href="https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Timestamps.html" rel="nofollow noreferrer">com.google.protobuf.util.Timestamps utility</a>:</p>
<pre><code>... | How to convert grpc java proto "timestamp" to date? | java|timestamp|grpc|grpc-java|proto | 0 | 186 | 1 | 72,232,098 | 72,232,098 | 0 | true | 2022-05-13T14:30:39.587Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to convert grpc java proto "timestamp" to date?<p>Error in request.getProductexpirationdate() since its not "Date" in proto thats specified as ... |
72,232,106 | How to create an account on NEAR protocol?<p>I would like to learn how to create an <a href="https://docs.near.org/docs/concepts/account" rel="nofollow noreferrer">account</a> using RPC or REST calls on <a href="https://near.org" rel="nofollow noreferrer">NEAR protocol</a>.</p> | <p>If you want to create a subaccount (a.frol.near when you own frol.near): Submit a transaction with CREATE_ACCOUNT, TRANSFER, ADD_KEY actions. Here is an <a href="https://explorer.near.org/transactions/3TTQXfZMj7EuDp9eDwddpnSfP6zUxaiNM99XCifcEty8" rel="nofollow noreferrer">example of such a transaction</a>.</p>
<p>If... | How to create an account on NEAR protocol? | nearprotocol | 0 | 258 | 1 | 72,232,107 | 72,232,107 | 0 | true | 2022-05-13T15:34:59.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create an account on NEAR protocol?<p>I would like to learn how to create an <a href="https://docs.near.org/docs/concepts/account" rel="nofollow noref... |
72,231,983 | Mimic COALESCE behaviour using groups of conditions when querying with Prisma client<p>I'm trying to replace a SQL query (Postgres) with a Prisma client query, and I'm struggling to implement this COALESCE logic:</p>
<pre class="lang-sql prettyprint-override"><code>COALESCE(date_1, date_2,'1970-01-01 00:00:00') <= C... | <p>I was indeed missing something obvious. We can pass in an array of groups to an AND or OR group, like so:</p>
<pre class="lang-js prettyprint-override"><code>const records = await client.thing.findMany({
where: {
OR: {
date_1: { lte: new Date() },
AND: [
{
date_1: null,
... | Mimic COALESCE behaviour using groups of conditions when querying with Prisma client | prisma | 0 | 103 | 1 | 72,232,252 | 72,232,252 | 0 | true | 2022-05-13T15:24:56.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mimic COALESCE behaviour using groups of conditions when querying with Prisma client<p>I'm trying to replace a SQL query (Postgres) with a Prisma client quer... |
72,228,388 | laravel db transaction context is available on called functions<p>I have found that for using DB::transaction in Laravel, in combination with the ORM, we need to run something like:</p>
<pre><code>DB::transaction(function() {
//
Model::create($something);
});
</code></pre>
<p>My question is:
If i need to call ... | <p>after several test i can tell that no closure is needed for model too, even if you have a create method inside another function, and exception is throwed -in the main or in the function- no problem with the rollback and commit steatment!
Well much more of that i was hoping!!!!</p>
<p>This is the code I tested:</p>
<... | laravel db transaction context is available on called functions | laravel|model|transactions|closures | 0 | 86 | 2 | 72,232,322 | 72,232,322 | 0 | true | 2022-05-13T10:49:58.490Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
laravel db transaction context is available on called functions<p>I have found that for using DB::transaction in Laravel, in combination with the ORM, we nee... |
72,145,000 | formidable - SyntaxError: Unexpected token - in JSON at position 0 when sending POST request<p>I am building the backend for creating blog posts for my web application while following a tutorial.</p>
<p>The technologies I am using are MongoDB, express.js, <strong>formidable</strong></p>
<p>The relevant files are:</p>
<... | <p>Refer to this answer if anyone encounters this error in the future.</p>
<p><strong>The above answers may be applicable to any other situations so must try them too.</strong></p>
<p>My Fix:</p>
<p>I was using <code>formidable version 2.0.1</code> along with the app middleware as follows:</p>
<ul>
<li><code>app.use(ex... | formidable - SyntaxError: Unexpected token - in JSON at position 0 when sending POST request | node.js|mongodb|express|formidable | 0 | 164 | 3 | 72,232,371 | 72,232,371 | 0 | true | 2022-05-06T16:54:22.540Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
formidable - SyntaxError: Unexpected token - in JSON at position 0 when sending POST request<p>I am building the backend for creating blog posts for my web a... |
72,232,114 | how to spy on window.location functions?<p>i need to cover my code with some unit tests and in one of then i have the following situation.</p>
<p>app.tsx</p>
<pre><code> async someMethod(
.
.
.
window.location.replace(sessionStorage.getItem(REDIRECT_VALUE));
.
.
.
)
</code></pre>
<... | <p>One way to test it is:</p>
<p>Create a mock function to <code>location.replace</code>:</p>
<pre><code>const replaceMock = jest.fn();
</code></pre>
<p>And spyOn <code>window</code>, replacing location object and setting the <code>replaceMock</code> to replace.</p>
<p>Complete test example:</p>
<pre class="lang-js pre... | how to spy on window.location functions? | javascript|reactjs|jestjs | 0 | 109 | 1 | 72,232,416 | 72,232,416 | 0 | true | 2022-05-13T15:35:20.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to spy on window.location functions?<p>i need to cover my code with some unit tests and in one of then i have the following situation.</p>
<p>app.tsx</p>... |
72,228,035 | Change colour of date picker in Android with possibility to have custom Splash screen as well<p>I am working on a project where I would like to have custom splash screen, however I would also like to have dark styled Android dialogs, that are corresponding to my Android theme selection.</p>
<p>Currently everything seem... | <p>Here is an answer if anybody wondering the same:</p>
<pre><code> <style name="MainTheme" parent="MainTheme.Base">
<item name="android:windowBackground">@drawable/splash_screen</item>
<item name="android:windowNoTitle">true</item>
<item na... | Change colour of date picker in Android with possibility to have custom Splash screen as well | c#|xamarin|xamarin.forms|xamarin.android | 0 | 44 | 1 | 72,232,447 | 72,232,447 | 0 | true | 2022-05-13T10:23:27.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change colour of date picker in Android with possibility to have custom Splash screen as well<p>I am working on a project where I would like to have custom s... |
72,232,124 | Building a container image and re-using pulled layers<p>Suppose there is a container image published to a Docker registry, and I want to rebuild the image with modifications while re-using as many of the published layers as possible.</p>
<p>Concretely, suppose the image <code>foo/bar</code> is built from this Dockerfil... | <p>Maybe Docker supports this built in with <a href="https://docs.docker.com/engine/reference/commandline/build/#specifying-external-cache-sources" rel="nofollow noreferrer">--cache-from</a>:</p>
<pre><code>docker pull foo/bar:old
docker build . \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from foo/bar:old
... | Building a container image and re-using pulled layers | docker | 0 | 39 | 2 | 72,232,631 | 72,232,631 | 0 | true | 2022-05-13T15:36:19.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Building a container image and re-using pulled layers<p>Suppose there is a container image published to a Docker registry, and I want to rebuild the image wi... |
72,215,110 | Send rest request with attached pfx certificate<p>I'm trying to consume an API that uses a certificate as an authentication method.</p>
<p>I tried two methods but i get the same issue (<strong>The request was aborted: Unable to create a secure SSL/TLS channel.</strong>)</p>
<p><strong>Method 1:</strong></p>
<pre><code>... | <p>so the problem was the method used to hash the certificate itself.
aperantly the version of the certificate needs the <code>X509Certificate</code> method instead of the <code>X509Certificate2</code> i was using(<strong>for my case</strong>).</p>
<p>here is the updated working code :</p>
<pre><code> var ha... | Send rest request with attached pfx certificate | c#|.net|api|x509certificate2 | 0 | 642 | 1 | 72,232,833 | 72,232,833 | 0 | true | 2022-05-12T11:55:06.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Send rest request with attached pfx certificate<p>I'm trying to consume an API that uses a certificate as an authentication method.</p>
<p>I tried two method... |
72,232,741 | Unable to connect to a url with python request module<p>I'm unable to connect to the URL using requests module, but it works fine when browsed in a browser. Could it be some robots.txt issue <code>Allowed/Disallowed</code> issue ?</p>
<p>Below is the codebase.</p>
<pre><code>import requests
r = requests.get('https://m... | <p>Some websites block access from non-web browser ‘User-Agents’ to prevent web scraping, including from the default Python’s requests ‘User-Agent’.</p>
<p>so you need to pass a user agent as like a web browser, for example:</p>
<pre><code>r = requests.get('https://myntra.com/', headers = {
"User-Agent&quo... | Unable to connect to a url with python request module | python|python-requests | 0 | 40 | 2 | 72,232,899 | 72,232,899 | 0 | true | 2022-05-13T16:30:33.420Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to connect to a url with python request module<p>I'm unable to connect to the URL using requests module, but it works fine when browsed in a browser. ... |
72,232,656 | Failed to resolve entry for package "material-symbols"<p>After installing material-symbols using npm the following message is shown in the console</p>
<p>My steps</p>
<ol>
<li>Run in the console <code>npm i material-symbols@latest</code></li>
<li>Add <code>import 'material-symbols';</code> at the top of the <code>__lay... | <p>As was able to run this package by changing the approach. I replaced step 2 with CSS imports.</p>
<p>Instead of</p>
<pre class="lang-js prettyprint-override"><code>// __layout.svelte
import 'material-symbols';
...
</code></pre>
<p>I created 'app.css' file in the src folder. Added <code>@import 'material-symbols';<... | Failed to resolve entry for package "material-symbols" | sveltekit | 0 | 283 | 1 | 72,232,943 | 72,232,943 | 0 | true | 2022-05-13T16:22:17.417Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Failed to resolve entry for package "material-symbols"<p>After installing material-symbols using npm the following message is shown in the console</p>
<p>My ... |
72,232,778 | add a column in dataframe based on existing value in another dataframe<p>I have a dataframe DF3 :</p>
<pre><code>zone_id combine
0 ABD
10 BCD
20 ABC
30 ABE
</code></pre>
<p>and a second dataframe :combinaison_df:</p>
<pre><code>zone_id combine
0 XYZ
10 BCD
20 A... | <p>Do you think this will work?:</p>
<pre class="lang-py prettyprint-override"><code>DF3['DF3_index']=DF3.index
combinaison_df=pd.merge(combinaison_df,DF3[['combine','DF3_index']],
on=['combine'],how='left')
</code></pre>
<p>Output:</p>
<pre class="lang-py prettyprint-override"><code>print(com... | add a column in dataframe based on existing value in another dataframe | pandas|dataframe | 0 | 33 | 2 | 72,232,977 | 72,232,977 | 0 | true | 2022-05-13T16:33:12.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
add a column in dataframe based on existing value in another dataframe<p>I have a dataframe DF3 :</p>
<pre><code>zone_id combine
0 ABD
10 BC... |
72,231,958 | How to assign the non-nullable local variable "_msg"<p>I'm trying to make a Login form in flutter using a string function
here is the code:</p>
<pre><code>String validateEmail(String value) {
String _msg;
RegExp regex = RegExp(
r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\&q... | <p>The issue here is that you don't specify any <code>else</code> clause which means that in case of both your if's being false, the <code>_msg</code> will never get any value. That is a problem since the default value for any variable in Dart is <code>null</code> and the type <code>String</code> means we are not allow... | How to assign the non-nullable local variable "_msg" | dart | 0 | 92 | 3 | 72,233,007 | 72,233,007 | 0 | true | 2022-05-13T15:23:15.687Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to assign the non-nullable local variable "_msg"<p>I'm trying to make a Login form in flutter using a string function
here is the code:</p>
<pre><code>St... |
72,228,889 | I disabled loading images in chrome while using webdriver with selenium now cant enable it<p>I disabled loading images in chrome while using webdriver with selenium now cant enable it.</p>
<p>I was using python to webscrape on instagram so thought it would be a good idea to disable images.</p>
<p>The commands i used:</... | <p>After a long day on google finally found the solution.</p>
<pre><code>options.add_experimental_option("prefs", {'profile.managed_default_content_settings.images': 1})
</code></pre> | I disabled loading images in chrome while using webdriver with selenium now cant enable it | selenium|google-chrome|web-scraping|webdriver|chrome-options | 0 | 40 | 1 | 72,233,027 | 72,233,027 | 0 | true | 2022-05-13T11:32:09.107Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I disabled loading images in chrome while using webdriver with selenium now cant enable it<p>I disabled loading images in chrome while using webdriver with s... |
72,206,608 | Preserving Data Groupings when writing to Worksheet using OpenPyxl<p><strong>Disclaimer:</strong> I am a beginner-level, self-taught casual 'programmer' with Python.</p>
<p><strong>Background:</strong> I have a script that takes Groupings of data from an <code>.xlsx</code> Workbook and writes them to separate Worksheet... | <pre><code>from openpyxl import load_workbook
def get_client_rows(sheet):
"""Get client rows.
Skip header and then look for row dimensions without outline level
"""
return [row[0].row for row in sheet.iter_rows(2) if row[0].alignment.indent == 0.0]
return [
r... | Preserving Data Groupings when writing to Worksheet using OpenPyxl | python|excel|openpyxl|xlsx | 0 | 61 | 1 | 72,233,092 | 72,233,092 | 0 | true | 2022-05-11T19:27:07.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Preserving Data Groupings when writing to Worksheet using OpenPyxl<p><strong>Disclaimer:</strong> I am a beginner-level, self-taught casual 'programmer' with... |
72,232,771 | sort two nested lists according to value of one list in python<p>I want to sort two nested lists according to value of one list.</p>
<pre><code>predictions = np.array([[0, 1, 2, 3], [3, 2, 1, 0], [1, 2, 3, 0], [-1, -1, -1, -1]])
test_interaction_matrix = np.array([[1, 0, 0, 0], [0, 1, 0, 1], [0, 0, 0, 0], [0, 0, 0, 0]]... | <p>You can use a list comprehension for fast approach:</p>
<pre><code>predictions = np.array([[0, 1, 2, 3], [3, 2, 1, 0], [1, 2, 3, 0], [-1, -1, -1, -1]])
test_interaction_matrix = [[1, 0, 0, 0], [0, 1, 0, 1], [0, 0, 0, 0], [0, 0, 0, 0]])
pred = predictions.tolist()
order = test_interaction_matrix.tolist()
[list(zip(... | sort two nested lists according to value of one list in python | python|numpy|sorting | 0 | 66 | 2 | 72,233,207 | 72,233,207 | 0 | true | 2022-05-13T16:32:42.243Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
sort two nested lists according to value of one list in python<p>I want to sort two nested lists according to value of one list.</p>
<pre><code>predictions =... |
72,231,715 | jsonnet std.map - "attempted to index array with string name" error<p>i am new to jsonnet</p>
<p>I am trying to call the name and nb seperately for different operations. But i am getting error "attempted to index array with string name" when i use "specificValues.data.LIST.name" in the code.</p>
<pr... | <p>1st a bit of relevant feedback: you should really provide a narrowed-down <em>usable</em> excerpt derived from your use case, else it's an extra effort from people trying to help you, which is obviously unfair for them/us.</p>
<p>The main problem here is that you're somehow assuming that you can loop over e.g. <code... | jsonnet std.map - "attempted to index array with string name" error | jsonnet | 0 | 239 | 1 | 72,233,225 | 72,233,225 | 0 | true | 2022-05-13T15:04:53.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jsonnet std.map - "attempted to index array with string name" error<p>i am new to jsonnet</p>
<p>I am trying to call the name and nb seperately for different... |
72,232,850 | How to install specific version of Visual Studio 2022<p>I want to install a specific version of Visual Studio, but don't know how, specifically version 17.0. All my search result is just release notes, can't install. How to do that?<br />
Thanks</p> | <p>Ok, I see it, we are only able to rollback to earlier version if using Enterprise or Professional licence (<a href="https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-history#updating-your-installation-to-a-specific-release" rel="nofollow noreferrer">here</a>), in my case, I'm using Community, whic... | How to install specific version of Visual Studio 2022 | visual-studio | 0 | 486 | 1 | 72,233,270 | 72,233,270 | 0 | true | 2022-05-13T16:38:50.440Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to install specific version of Visual Studio 2022<p>I want to install a specific version of Visual Studio, but don't know how, specifically version 17.0.... |
72,232,608 | Exception Handling for async WebClient request<p>Recently I have been working with WebClient. I am creating both a sync request and an async request. In a sync request, I am able to catch WebClientResponseException whereas when I try to catch WebClientResponseException (tried with generic Exception as well, didn't work... | <p>Async means that the process will be transferd to another thread. bodyToFlux will do this and finish the execution, but you don´t have any control over that thread because, in your current thread, the function was executed and it doesn't trigger an issue.</p>
<p>This is similar to Promises in JS, where you should ha... | Exception Handling for async WebClient request | spring-boot|reactive-programming|spring-webflux|webclient|spring-webclient | 0 | 246 | 2 | 72,233,282 | 72,233,282 | 0 | true | 2022-05-13T16:17:39.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Exception Handling for async WebClient request<p>Recently I have been working with WebClient. I am creating both a sync request and an async request. In a sy... |
72,232,387 | Java - Use PriorityQueue sort list but have empty list<p>This is my solution for leetcode 759. Employee Free Time, but it has index out of boundary issue that i don't understand.</p>
<p>I got "index 0 out of bounds for length 0" exception.</p>
<pre><code>public List<Interval> employeeFreeTime(List<Li... | <p>you are polling from pq and removing the 0th element.</p>
<pre><code>List<Interval> list = pq.poll();
Interval currt = list.remove(0); //here
</code></pre>
<p>you again adding this very same list to pq.</p>
<pre><code>pq.add(list);
</code></pre>
<p>so when adding to pq, pq's comparator kicks in and see a list ... | Java - Use PriorityQueue sort list but have empty list | java|priority-queue | 0 | 55 | 1 | 72,233,324 | 72,233,324 | 0 | true | 2022-05-13T15:58:34.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Java - Use PriorityQueue sort list but have empty list<p>This is my solution for leetcode 759. Employee Free Time, but it has index out of boundary issue tha... |
72,223,496 | Testing randomness function without intended mean<p>I have a program that tests a randomness function for how truly random it is:</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"><cod... | <p>I've found the answer. I'm not sure if standard deviation is the correct method, but if it is:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function testRandom(func, test... | Testing randomness function without intended mean | javascript|random|automated-tests | 0 | 22 | 1 | 72,233,334 | 72,233,334 | 0 | true | 2022-05-13T01:08:37.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Testing randomness function without intended mean<p>I have a program that tests a randomness function for how truly random it is:</p>
<p><div class="snippet"... |
72,210,073 | I keep getting a permission denial error whenever I try to access a file in a speech recognition program<p>I'm trying out speech recognition and using it as input for some statements while having the program "speak" back to me using the playsound and gTTS modules. But I have ran into an issue that I can't fin... | <p>Your solution works fine.</p>
<p>I just would tweak it to leave the file behind (in case you want to listen to it for testing purposes) and instead, remove it at the beginning if it exists.</p>
<p>Also passing filename to your function ensures nothing is hard coded</p>
<pre><code>def speak(text, filename):
if os... | I keep getting a permission denial error whenever I try to access a file in a speech recognition program | python|debugging|speech-recognition|google-text-to-speech|playsound | 0 | 68 | 2 | 72,233,335 | 72,233,335 | 0 | true | 2022-05-12T04:14:53.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I keep getting a permission denial error whenever I try to access a file in a speech recognition program<p>I'm trying out speech recognition and using it as ... |
72,230,845 | SwiftUI - iOS - Using scenePhase causes views to pop when app going to background and back to active<p>I have a project and I am trying to implement scenePhase. The logic of the implementation seems to work fine, but I have the following strange problem.
When an iOS (and Android also) app goes to the background, and th... | <p>The <code>scenePhase</code> change causes <code>body</code> to be called to recompute the <code>View</code> hierarchy and you can't have more than one detail <code>NavigationLink</code> so you need to set the second to <code>isDetailLink(false)</code>.</p>
<p>And by the way you don't need a <code>Button</code> insid... | SwiftUI - iOS - Using scenePhase causes views to pop when app going to background and back to active | ios|swiftui | 0 | 107 | 1 | 72,233,384 | 72,233,384 | 0 | true | 2022-05-13T14:01:55.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SwiftUI - iOS - Using scenePhase causes views to pop when app going to background and back to active<p>I have a project and I am trying to implement scenePha... |
72,220,951 | rvm can't compile ruby: fails openssl check<p>I'm trying to install ruby 2.7.6 on MacOS 11.6.1 using <code>rvm</code>. I am specifying the location of a brew-installed openssl but the logs say that it isn't the right version. Everything looks OK to me. I am not sure how to troubleshoot further. Verbose details below.</... | <p>Upon closer review, I realized I had an <code>openssl</code> directory (containing version 3) in <code>/usr/local/include</code> and that was on the include path ahead of the directory I specfied with the <code>--with-openssl-dir</code> option.</p>
<p>I fixed it by renaming <code>/usr/local/include/openssl</code> to... | rvm can't compile ruby: fails openssl check | openssl|rvm | 0 | 174 | 1 | 72,233,409 | 72,233,409 | 0 | true | 2022-05-12T19:09:55.263Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
rvm can't compile ruby: fails openssl check<p>I'm trying to install ruby 2.7.6 on MacOS 11.6.1 using <code>rvm</code>. I am specifying the location of a brew... |
72,232,530 | React MUI: theme color custom prop not applied<p>I have 2 themes, dark mode and light mode:</p>
<pre><code>import { styled, alpha, ThemeProvider, createTheme } from '@mui/material/styles';
//I use the dark theme only
const themeLight = createTheme({
...
})
const themeBlack = createTheme({
palette: {
back... | <p>The component/page had another theme nested inside:</p>
<pre><code>const theme = createTheme();
<ThemeProvider theme={theme}>
...
</ThemeProvider>
</code></pre>
<p>The mui basic templates include separate themes for each component, so thats how it got there.</p> | React MUI: theme color custom prop not applied | reactjs|material-ui|styles|themes | 0 | 122 | 1 | 72,233,498 | 72,233,498 | 0 | true | 2022-05-13T16:12:04.870Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React MUI: theme color custom prop not applied<p>I have 2 themes, dark mode and light mode:</p>
<pre><code>import { styled, alpha, ThemeProvider, createTheme... |
72,233,753 | c# StringExtension with Method Space<p>I try to create a string extension with the method Space(int) in it. If I have an instance of a string, then its no problem. But without I have no Idea.</p>
<p>The call should be: <code>string.Space(2)</code> or <code>String.Space(2)</code></p>
<p><strong>Not</strong> <code>"... | <p>An extension method is supposed to act on an object instance, that's how and why it has the syntax it got.</p>
<p>But in your case, your method does not act on a string instance, so what's the point of trying to define it as a string extension method? Just keep it an old boring static method. There's nothing wrong w... | c# StringExtension with Method Space | c#|string | 0 | 30 | 3 | 72,233,884 | 72,233,884 | 0 | true | 2022-05-13T18:02:02.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
c# StringExtension with Method Space<p>I try to create a string extension with the method Space(int) in it. If I have an instance of a string, then its no pr... |
72,233,541 | Is there a way to download and import multiple .tsv files into excel or access?<p>I am trying to create a database from SEC filings. The filings come in .tsv files and are structured in folders by year and quarter. Ever folder contains about 20 .tsv files that I would like to import into either Excel or Access (whichev... | <p>Welcome to SO! In general, this forum is for answering specific questions based on what <em>you</em> have tried. It is recommended to study on topics and try first.</p>
<p>This is not the complete solution, your question is not specific enough.</p>
<p>But you should be able to build on this sample. Pretty much just... | Is there a way to download and import multiple .tsv files into excel or access? | excel|database|csv|ms-access|import | 0 | 100 | 1 | 72,233,962 | 72,233,962 | 0 | true | 2022-05-13T17:41:20.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to download and import multiple .tsv files into excel or access?<p>I am trying to create a database from SEC filings. The filings come in .tsv... |
72,233,901 | How to hide buttons based on your "job"?<p>I am creating an app and I want that the buttons appear based on your <code>$job</code>. There are 4 jobs, which are all in mysql databases:</p>
<ol>
<li>student</li>
<li>teacher</li>
<li>staff</li>
<li>principal,</li>
</ol>
<p>The signup button can only be seen by teacher, st... | <p>Surrounding the button markup with a simple <code>if</code> statement using the <code>in_array</code> function to check that the job is allowed, will work.</p>
<pre class="lang-php prettyprint-override"><code><?php
if(in_array($job, ['teacher', 'staff', 'principal']))
{
?>
<a href="signup.php"... | How to hide buttons based on your "job"? | javascript|php|html | 0 | 50 | 1 | 72,234,038 | 72,234,038 | 0 | true | 2022-05-13T18:15:58.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to hide buttons based on your "job"?<p>I am creating an app and I want that the buttons appear based on your <code>$job</code>. There are 4 jobs, which a... |
72,224,183 | Android studio Composable Preview Render problem<p>I am having this issue When previewing composable from file.</p>
<p>This is the code I made in other kotlin file.</p>
<pre><code>package com.example.movieapp.screens.home.details
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.... | <p>You need to separate function declaration and its preview:</p>
<pre><code>@Composable
fun DetailsScreen(navController: NavController, movieData: String?) {
//...
</code></pre>
<p>And you can have as many previews as you need:</p>
<pre><code>@Preview(showSystemUi = true, showBackground = true)
fun DetailsScreenP... | Android studio Composable Preview Render problem | android|android-studio|kotlin | 0 | 153 | 1 | 72,234,168 | 72,234,168 | 0 | true | 2022-05-13T03:35:53.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android studio Composable Preview Render problem<p>I am having this issue When previewing composable from file.</p>
<p>This is the code I made in other kotli... |
72,233,921 | How to pass a function from Parent to an element within a route in React.js?<p>I want to pass a function to a component through a Route , I can do it with direct children but when it comes to Routes i can't figure it how to do it.</p>
<p>look at the code below , i want to pass "updateUserState" function to Pr... | <p>The issue arises because of the <code>this</code> keyword. When you're passing a function to another component you need to bind the <code>this</code> keyword to the parent instance otherwise it may not work properly.</p>
<p>This behavior is described in the React Docs here: <a href="https://reactjs.org/docs/faq-func... | How to pass a function from Parent to an element within a route in React.js? | javascript|reactjs | 0 | 41 | 2 | 72,234,177 | 72,234,177 | 0 | true | 2022-05-13T18:18:47.653Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to pass a function from Parent to an element within a route in React.js?<p>I want to pass a function to a component through a Route , I can do it with di... |
72,208,620 | WARNING: The DB_USER variable is not set<p>I am using docker compose for my project. And I have a strange error after <code>docker-compose up --build</code>:</p>
<blockquote>
<p>WARNING: The DB_USER variable is not set. Defaulting to a blank string.</p>
</blockquote>
<p>How can I fix this error? (I was trying both ./.e... | <p>The reason of the error was typo in .env
file: Replased</p>
<pre><code>DATABASE_URL=postgres://postgres:post222@db:5432/edo_db"
</code></pre>
<p>with</p>
<pre><code>DATABASE_URL=postgres://postgres:post222@db:5432/edo_db
</code></pre> | WARNING: The DB_USER variable is not set | docker|docker-compose | 0 | 225 | 2 | 72,234,192 | 72,234,192 | 0 | true | 2022-05-11T23:30:40.780Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
WARNING: The DB_USER variable is not set<p>I am using docker compose for my project. And I have a strange error after <code>docker-compose up --build</code>:... |
72,190,075 | Python PyQT5 WebEngine Segmentation fault Error<p>I wanted to create an app to download ms store app, it ran fine untill today now when i try to open the site (<a href="https://apps.microsoft.com/" rel="nofollow noreferrer">https://apps.microsoft.com/</a>) pyqt5 window crashes and it shows 'Segmentation fault', when i ... | <p>Well I found the answer to my issue, the answer was just to upgrade to the latest pyqt6(<a href="https://pypi.org/project/PyQt6/" rel="nofollow noreferrer">https://pypi.org/project/PyQt6/</a>) and use pyqt6-webengine(<a href="https://pypi.org/project/PyQt6-WebEngine/" rel="nofollow noreferrer">https://pypi.org/proje... | Python PyQT5 WebEngine Segmentation fault Error | python|python-3.x|pyqt|pyqt5|qtwebengine | 0 | 52 | 1 | 72,234,208 | 72,234,208 | 0 | true | 2022-05-10T16:39:27.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python PyQT5 WebEngine Segmentation fault Error<p>I wanted to create an app to download ms store app, it ran fine untill today now when i try to open the sit... |
72,233,367 | How to recursively search UP a Gremlin TinkerPop tree using Until and In<p>I have a TinkerPop Graph on a Gremlin Server and I'm trying to recursively search up a tree from a leaf until I can get to the root.</p>
<p>Given a tree that looks like this <a href="https://i.stack.imgur.com/EjieG.png" rel="nofollow noreferrer"... | <p>The <code>in</code> keyword is a reserved word in Groovy. Try using</p>
<pre class="lang-java prettyprint-override"><code>g.V("MyItem2").
repeat(__.in().not(hasLabel("contracted","contains")).simplePath()).
until(inE().count().is(0)).
path()
</code></pre>
<p>Note that you can also... | How to recursively search UP a Gremlin TinkerPop tree using Until and In | gremlin|tinkerpop | 0 | 22 | 1 | 72,234,332 | 72,234,332 | 0 | true | 2022-05-13T17:22:59.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to recursively search UP a Gremlin TinkerPop tree using Until and In<p>I have a TinkerPop Graph on a Gremlin Server and I'm trying to recursively search ... |
72,216,323 | Django - Create downloadable Excel file using Pandas & Class Based View<p>I'm relatively new to Django and have been looking for a way to export my DataFrame to Excel using Pandas and CBV. I have found this <a href="https://stackoverflow.com/a/42123285/17534039">code</a>:</p>
<pre class="lang-py prettyprint-override"><... | <p>I finally managed to do it by creating another view named <code>DownloadView</code> and by overriding the <code>get</code> method.
Here's the code:</p>
<pre class="lang-py prettyprint-override"><code>
class ResultView(TemplateView):
template_name = 'tool/result.html'
def get_context_data(self, **kwargs):
... | Django - Create downloadable Excel file using Pandas & Class Based View | python|django|pandas | 0 | 66 | 1 | 72,234,383 | 72,234,383 | 0 | true | 2022-05-12T13:17:25.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django - Create downloadable Excel file using Pandas & Class Based View<p>I'm relatively new to Django and have been looking for a way to export my DataFrame... |
72,217,992 | FFmpeg IF/ELSE statement<p>I am doing reencoding of lots of video files, and sometimes some of them have subtitles included, some dont. Is it possible to "ignore"
<code>-vf "subtitles=%%f:force_style='MarginV=25,Fontsize=20'" -sn</code> statement in FFmpeg command IF input file does not have subtitl... | <p>After being "forced" to research and learn how to do this, I have found a solution, so here it is if someone in the future might need something like this:</p>
<pre><code>SET subs=ffmpeg -hwaccel nvdec -i "%%f" -strict -2 -max_muxing_queue_size 1024 -map_metadata -1 -map_chapters -1 -vf "subt... | FFmpeg IF/ELSE statement | ffmpeg|subtitle | 0 | 70 | 1 | 72,234,460 | 72,234,460 | 0 | true | 2022-05-12T15:04:54.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
FFmpeg IF/ELSE statement<p>I am doing reencoding of lots of video files, and sometimes some of them have subtitles included, some dont. Is it possible to &qu... |
72,234,450 | How do i properly position my SVG element, so its even on resizes<p>So heres the image of my problem. I have two SVG files, and i want them to sticky to the bottom no matter how i resize my window, and if I resize it to a mobile configuration i want them to stack on top of eachoother</p>
<p><a href="https://i.stack.img... | <p>Try containing the elements in divs and using flex-box. You might have to adjust it for other layout elements, but the principle should be the same.</p>
<p><a href="https://codepen.io/jonshipman/pen/zYRoKjX" rel="nofollow noreferrer">https://codepen.io/jonshipman/pen/zYRoKjX</a></p>
<pre><code><div class="fl... | How do i properly position my SVG element, so its even on resizes | html|css|angular|svg | 0 | 34 | 1 | 72,234,635 | 72,234,635 | 0 | true | 2022-05-13T19:13:40.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do i properly position my SVG element, so its even on resizes<p>So heres the image of my problem. I have two SVG files, and i want them to sticky to the ... |
72,229,109 | How to put data in L2 cache with A72 Core?<p>I have an array of data that looks like this :</p>
<pre><code>uint32_t data[128]; //Could be more than L1D Cache size
</code></pre>
<p>In order to do computation on it, I want to put the data as close as possible to my computing unit so in the L2 Cache.</p>
<p>My target runs... | <blockquote>
<p>How to do the same thing but in L2 Cache area ?</p>
</blockquote>
<p>Your hardware doesn't support that.</p>
<p>In general, the ARMv8 architecture doesn't make any guarantees about the contents of caches and does not provide any means to explicitly manipulate or query them - it only makes guarantees and... | How to put data in L2 cache with A72 Core? | linux|caching|embedded-linux|arm64|cortex-a | 0 | 102 | 2 | 72,234,679 | 72,234,679 | 0 | true | 2022-05-13T11:49:28.057Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to put data in L2 cache with A72 Core?<p>I have an array of data that looks like this :</p>
<pre><code>uint32_t data[128]; //Could be more than L1D Cache... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.