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,190,712 | Passing a certificate on a Python HTTP request<p>This post may be duplicated, but I'm trying to find the simplest way to perform a rest API request passing a certificate just like I do within Postman:</p>
<p><a href="https://i.stack.imgur.com/5gUpJ.png" rel="nofollow noreferrer">Cert configuration</a></p>
<p><a href="h... | <p>For the those of you in the future looking for the easiest solution, I found this thread on GitHub that solved my issue:</p>
<p><a href="https://github.com/psf/requests/issues/1573#issuecomment-348968658" rel="nofollow noreferrer">https://github.com/psf/requests/issues/1573#issuecomment-348968658</a></p>
<p>Was able... | Passing a certificate on a Python HTTP request | python|rest|python-requests | 0 | 34 | 1 | 72,191,476 | 72,191,476 | 0 | true | 2022-05-10T17:30:02.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Passing a certificate on a Python HTTP request<p>This post may be duplicated, but I'm trying to find the simplest way to perform a rest API request passing a... |
72,190,464 | .Net Container .NETFramework version not found<p>I have the following dockerfile, the project works fine when running through Visual Studio:</p>
<pre><code>FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
WORKDIR /app
# Copy everything
COPY . ./
RUN dotnet build Inventory.sln -c Release -o /out
</code></pre>
<p>Th... | <p>Your app targets .NET Framework 4.5.2 (the version of .NET that's Windows only) and your SDK container is .NET 5.0, the multiplatform version of .NET.</p>
<p>You need to either migrate your application to .NET 5.0 (or 6.0) or build using <code>mcr.microsoft.com/dotnet/framework/sdk</code> instead. I couldn't find ve... | .Net Container .NETFramework version not found | .net|windows|docker|dockerfile | 0 | 87 | 1 | 72,191,627 | 72,191,627 | 0 | true | 2022-05-10T17:09:56.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
.Net Container .NETFramework version not found<p>I have the following dockerfile, the project works fine when running through Visual Studio:</p>
<pre><code>F... |
72,189,221 | How to access Python Variables from parent Tkinter<p>I have a Tkinter App and currently I am trying to split the code from each tab to be on each tab. I can pass the string as a parameter into the Tab but is it possible to access the parent variables from the child ttk.Frame ? The actual code has more things.</p>
<pre>... | <p>The easiest solution is to pass the instance of <code>App</code> to each tab. With that, the tab has access to anything defined in <code>App</code>.</p>
<p>It looks something like this:</p>
<pre><code>class App():
...
self._Tab = Tab(self._TabContainer, app=self)
...
...
class Tab(ttk.Frame):
def __i... | How to access Python Variables from parent Tkinter | python | 0 | 23 | 1 | 72,191,655 | 72,191,655 | 0 | true | 2022-05-10T15:34:55.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to access Python Variables from parent Tkinter<p>I have a Tkinter App and currently I am trying to split the code from each tab to be on each tab. I can ... |
72,191,077 | User not being deleted upon click of delete button<p>I am developing a simple phonebook application and whenever I type in some characters into the filter search bar, users should populate if they at least include some of the characters being typed into the filter search bar. Whenever their name pops up, their numbers ... | <p>I had to filter out the specified individual to be removed via a filter method on <code>persons</code>, and once I isolated that individual, I placed him inside the <code>phoneService.remove()</code> method which properly removed the individual.</p>
<p>Here is the updated code:</p>
<pre><code>import phoneService fro... | User not being deleted upon click of delete button | javascript|reactjs|react-hooks | 0 | 43 | 2 | 72,191,796 | 72,191,796 | 0 | true | 2022-05-10T18:02:16.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
User not being deleted upon click of delete button<p>I am developing a simple phonebook application and whenever I type in some characters into the filter se... |
72,187,825 | how to optimize my code by eliminating a loop?<p>sub macro() is for copying values from another sheet and extract only the 2 first words from each cell then comparing all the cells and count the cells that are repeated
I'd like to simplify my code by eliminating a loop it seems like the 3rd loop can be eliminated .</p>... | <p>Try this:</p>
<pre><code>Sub macro()
Dim i As Long, j As Long, var As String, start As Long, finish As Long, countRange As Range, inCache, outCache
start = 7: finish = 2585
var = Application.InputBox(prompt:="nom du sheet")
Sheets.Add.Name = var
If var = "" Then
Exit S... | how to optimize my code by eliminating a loop? | excel|vba|loops | 0 | 73 | 1 | 72,191,857 | 72,191,857 | 0 | true | 2022-05-10T14:03:46.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to optimize my code by eliminating a loop?<p>sub macro() is for copying values from another sheet and extract only the 2 first words from each cell then ... |
71,276,597 | Problem with updating styles in JS for my class<p>So I have a problem with updating styles in JS for my class. In debug I can see that variables change correctly foreach object as they should, but style changes for only one element.</p>
<p>Here is my code for the 3 classes and the game loop (interval). The main problem... | <p>So the fix that I found that i need to set the element again in the update function, so:</p>
<pre><code>update(){
this.elem = document.getElementById("b" + ID);
this.Y += this.speed;
this.elem.style.bottom = this.Y + "px";
this.elem.style.left = this.X + "px";
}
</code><... | Problem with updating styles in JS for my class | javascript|html|css|class|web | 0 | 38 | 1 | 72,192,182 | 72,192,182 | 0 | true | 2022-02-26T12:19:58.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Problem with updating styles in JS for my class<p>So I have a problem with updating styles in JS for my class. In debug I can see that variables change corre... |
72,190,190 | How to solve err_connection_refused when calling to an API using Nodejs<p>I am new to Vue.js development and am attempting to call an api using a nodejs for my backend. When I check the console after running the app I am expecting to receive a proxy with an empty name variable within but I receive the errors seen below... | <p>ERR_CONNECTION_REFUSED means that the Vue app made a request to <code>http://localhost:4000</code> but there was no server answering it on port 4000. This means the server programmed in your app.js is not running or not as intended. Please start it with <code>node app.js</code> and make sure no error message appear... | How to solve err_connection_refused when calling to an API using Nodejs | javascript|node.js|api|vue.js|axios | 0 | 303 | 1 | 72,192,208 | 72,192,208 | 0 | true | 2022-05-10T16:48:54.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to solve err_connection_refused when calling to an API using Nodejs<p>I am new to Vue.js development and am attempting to call an api using a nodejs for ... |
72,191,924 | nn.CorssEntropyLoss documentation example is not correct?<p>Tested <a href="https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html" rel="nofollow noreferrer">the documentation</a> example of nn.CrossEntropyLoss. It doesn't seem to work.</p>
<pre><code>loss = nn.CrossEntropyLoss()
input = torch.randn(... | <p>You might need to upgrade your torch version.</p>
<pre><code>pip install torch --upgrade
</code></pre> | nn.CorssEntropyLoss documentation example is not correct? | machine-learning|pytorch | 0 | 17 | 1 | 72,192,223 | 72,192,223 | 0 | true | 2022-05-10T19:18:37.300Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
nn.CorssEntropyLoss documentation example is not correct?<p>Tested <a href="https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html" rel="no... |
72,191,716 | discord.py add different str object to different users<p>So I'm trying to make a command that adds the name of a song to an user. I just don't understand how I should do that. I tried looking on the dictionary documentations but I couldn't find anywhere how I could append a variable to a certain person. This is my curr... | <p>You can use this with a dictionary and track them by ID. Be careful with this, as JSON does not allow you to use integers as keys to anything. Only strings are allowed.</p>
<pre class="lang-py prettyprint-override"><code> @commands.command()
async def quote(self, ctx):
await ctx.send("add your qu... | discord.py add different str object to different users | python|json|dictionary|discord.py | 0 | 43 | 2 | 72,192,228 | 72,192,228 | 0 | true | 2022-05-10T18:57:14.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
discord.py add different str object to different users<p>So I'm trying to make a command that adds the name of a song to an user. I just don't understand how... |
72,192,181 | Combine two numpy arrays<p>Let say I have 2 <code>numpy</code> arrays</p>
<pre><code>import numpy as np
x = np.array([1,2,3])
y = np.array([1,2,3,4])
</code></pre>
<p>With this, I want to create a 2-dimensional array as below</p>
<p><a href="https://i.stack.imgur.com/A5NDI.png" rel="nofollow noreferrer"><img src="https... | <p>You problem is about writing the Cartesian product. In numpy, you can write it using <code>repeat</code> and <code>tile</code>:</p>
<pre class="lang-py prettyprint-override"><code>out = np.c_[np.repeat(x, len(y)), np.tile(y, len(x))]
</code></pre>
<p>Python's builtin <code>itertools</code> module has a method design... | Combine two numpy arrays | python|arrays|python-3.x|numpy | 0 | 23 | 1 | 72,192,231 | 72,192,231 | 0 | true | 2022-05-10T19:48:23.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Combine two numpy arrays<p>Let say I have 2 <code>numpy</code> arrays</p>
<pre><code>import numpy as np
x = np.array([1,2,3])
y = np.array([1,2,3,4])
</code>... |
72,173,830 | Using lime with keras with a sequential model - invalid 'dimnames' given for data frame<p>I have two datatsets, and I am using one for training, and the other as external validation.</p>
<p>I am attempting to use Lime on a simple sequential model built through Keras:</p>
<pre><code># Building
build_model <- function... | <p>So the answer in the link I posted does work, I just was making a silly mistake in the function description. This works for me:</p>
<pre><code>######################
# LIME
######################
model_type.keras.engine.sequential.Sequential <- function(x, ...) {
"regression"
}
# Setup lime::predict_... | Using lime with keras with a sequential model - invalid 'dimnames' given for data frame | r|keras | 0 | 65 | 1 | 72,192,307 | 72,192,307 | 0 | true | 2022-05-09T14:40:56.433Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using lime with keras with a sequential model - invalid 'dimnames' given for data frame<p>I have two datatsets, and I am using one for training, and the othe... |
72,189,642 | How to cast function into a struct in C?<p>This is my first post on StackOverflow, so I hope the format will be okay.</p>
<p>I want to pass functions as parameter to another function. To that end, I declare a struct to describe functions.
But then, I get an invalid analyser error on compilation.</p>
<p>In functions.h, ... | <p>You actually try to implement a closure.</p>
<p>The idiomatic way of doing it in is C is passing <em>a function pointer and a void pointer to the context</em>.</p>
<p>However, some time ago I came up with a different approach. Surprisingly, there is a family of builtin types in C that carries both a data and the cod... | How to cast function into a struct in C? | c|function|struct|q-learning | 0 | 62 | 2 | 72,192,354 | 72,192,354 | 0 | true | 2022-05-10T16:04:51.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to cast function into a struct in C?<p>This is my first post on StackOverflow, so I hope the format will be okay.</p>
<p>I want to pass functions as para... |
72,192,217 | Finding eigenvector of the lowest eigenvalue - matrix multiplication has wrong dimensions<p>Python newbie here.
I'm trying to verify an eigenvalue problem - A<em>Cmin = Emin</em>Cmin
but the matrix multiplication doesn't work since extracting the corresponding eigenvector gets stored in a weird way ([[[ ]]] instead of ... | <pre><code>In [26]: w.shape
Out[26]: (5,)
In [27]: v.shape
Out[27]: (5, 5)
In [28]: w
Out[28]: array([5.85888748, 4.57205335, 2.90645081, 0.53081555, 1.64794665])
In [29]: w[3]
Out[29]: 0.530815550482961
</code></pre>
<p>Indexing <code>v</code> by column works fine:</p>
<pre><code>In [30]: v[:,3]
Out[30]: array([-0.089... | Finding eigenvector of the lowest eigenvalue - matrix multiplication has wrong dimensions | python|numpy | 0 | 19 | 1 | 72,192,393 | 72,192,393 | 0 | true | 2022-05-10T19:51:32.957Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Finding eigenvector of the lowest eigenvalue - matrix multiplication has wrong dimensions<p>Python newbie here.
I'm trying to verify an eigenvalue problem - ... |
72,192,363 | Attempt to assign item to nested table cause PLS-00382: expression is of wrong type. PLSQL<p>I have created nested table and I would like to assign item for them. But when I try do this I get an error</p>
<pre><code>Error at line 27, 28: PLS-00382: expression is of wrong type
</code></pre>
<p>And 27, 28 line is with th... | <p>You forgot to say which element you're assigning the value to (see lines #11 and 12), e.g.:</p>
<pre><code>SQL> DECLARE
2 clubIdFirst NUMBER;
3 clubIdSecond NUMBER;
4
5 TYPE clubsIdsArray IS TABLE OF NUMBER;
6 nestedclubsIdsArray clubsIdsArray:=clubsIdsArray();
7
8 BEGIN
9 ... | Attempt to assign item to nested table cause PLS-00382: expression is of wrong type. PLSQL | oracle|plsql | 0 | 23 | 1 | 72,192,401 | 72,192,401 | 0 | true | 2022-05-10T20:04:45.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Attempt to assign item to nested table cause PLS-00382: expression is of wrong type. PLSQL<p>I have created nested table and I would like to assign item for ... |
72,186,627 | ValidationTechnicalProfile is not executed - B2C Custom Policy<p>I am attempting to call a RESTful technical profile by using ValidationTechnicalProfile. I have checked application insights and I can see the OutputClaimsTransformations happening, but it skips over the ValidationTechnicalProfile and continues on with th... | <p>Validation technical profiles only work from selfAsserted technical profiles.</p>
<blockquote>
<p>Only self-asserted technical profiles can use validation technical profiles. If you need to validate the output claims from non-self-asserted technical profiles, consider using an additional orchestration step in your u... | ValidationTechnicalProfile is not executed - B2C Custom Policy | azure-ad-b2c|azure-ad-b2c-custom-policy|aad-b2c|azure-b2c | 0 | 129 | 1 | 72,192,456 | 72,192,456 | 0 | true | 2022-05-10T12:49:43.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ValidationTechnicalProfile is not executed - B2C Custom Policy<p>I am attempting to call a RESTful technical profile by using ValidationTechnicalProfile. I h... |
72,191,287 | How to send an image that was sent with a post request to a model for prediction<p>I'm running a flask app that receives a base64 encoded image through a post request and should send it for classification. Unfortunately, this is where I come across an error. This is my code for making a post request:</p>
<pre><code>def... | <p>Ok, I managed to do it like this:</p>
<pre><code>@app.route('/', methods = ['POST'])
def predict():
if request.method == 'POST':
base64img = request.get_json()['img'].encode('utf-8')
img = base64.b64decode(base64img)
with open('imgtemp.png', 'wb') as f:
f.write(img)
... | How to send an image that was sent with a post request to a model for prediction | python|tensorflow|flask|request|tensorflow-serving | 0 | 66 | 1 | 72,192,496 | 72,192,496 | 0 | true | 2022-05-10T18:20:20.260Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to send an image that was sent with a post request to a model for prediction<p>I'm running a flask app that receives a base64 encoded image through a pos... |
72,191,326 | SDK and callback after sign<p>We are using Docusign SDK for python, we are sending the envelope and after sign the callback are passing by RecipientViewRequest in returnUrl are be calling, and all are working ok, but we need to receive both emails (review & sign and concluded) and we are getting just the concluded ... | <p>Sounds like you want the sender to receive the signer_signed email for embedded signers.</p>
<p>Check the eSignature settings tool:</p>
<ol>
<li>Open settings from the DocuSign web application</li>
<li>Click <code>Signing Settings</code> in the left column</li>
<li>Scroll down the page to the <strong>Envelope Delive... | SDK and callback after sign | docusignapi | 0 | 38 | 1 | 72,192,549 | 72,192,549 | 0 | true | 2022-05-10T18:24:06.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SDK and callback after sign<p>We are using Docusign SDK for python, we are sending the envelope and after sign the callback are passing by RecipientViewReque... |
72,183,630 | No Update in MariaDB on System-Versioned tables if the data is the same<p>Is there a way to tell MariaDB to not Update a row in System-Versioned Tables, if the data did not change?</p>
<p>I have a batch job that sets the correct status in my table, and I don't want to always check if this status is already set. Right n... | <p>System versioned tables are defined in SQL 2011 and require that each transaction (regardless if a row/column was modified/updated by same values or not) will be stored in history log. There is no setting to change or disable this.</p>
<p>As danblack pointed out, you could either modify the statement by specifying a... | No Update in MariaDB on System-Versioned tables if the data is the same | mariadb|sql-update | 0 | 85 | 1 | 72,192,578 | 72,192,578 | 0 | true | 2022-05-10T09:14:26.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
No Update in MariaDB on System-Versioned tables if the data is the same<p>Is there a way to tell MariaDB to not Update a row in System-Versioned Tables, if t... |
72,192,595 | Uncaught (in promise) FirebaseError: Invalid collection reference. Collection references must have an odd number of segments<p>I am getting the error</p>
<pre><code> Uncaught (in promise) FirebaseError: Invalid collection reference. Collection references must have an odd number of segments, but
Accounts/sKnjAQzJ1sQ... | <blockquote>
<p><code>"Accounts/" + localStorage.getItem('Id') + "/RequestsReceived", id</code></p>
</blockquote>
<p>This path is pointing towards a document in 'RequestsReceived' sub-collection. So you should be using <code>doc()</code> to create a DocumentReference.</p>
<p>Also you don't need to f... | Uncaught (in promise) FirebaseError: Invalid collection reference. Collection references must have an odd number of segments | javascript|firebase|google-cloud-firestore | 0 | 1,038 | 1 | 72,192,626 | 72,192,626 | 0 | true | 2022-05-10T20:30:07.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Uncaught (in promise) FirebaseError: Invalid collection reference. Collection references must have an odd number of segments<p>I am getting the error</p>
<pr... |
72,171,290 | onChange not working if first click is on submit<p>Not sure if this is something that can be fixed or if I need to look at other options but here is my issue.</p>
<p>I have a text input box and when text is entered it triggers an ajax function and writes data to a database. This works fine if I write in the box then cl... | <p>Hi if you are looking on how to limit it, there are so called "debounce" functions.</p>
<p>Basically you can limit how fast some actions are going to be processed.</p> | onChange not working if first click is on submit | javascript|jquery|ajax | 0 | 122 | 1 | 72,192,637 | 72,192,637 | 0 | true | 2022-05-09T11:32:15.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
onChange not working if first click is on submit<p>Not sure if this is something that can be fixed or if I need to look at other options but here is my issue... |
72,191,700 | VirtualBox silent install via Ansible fails?<pre><code>$ ansible --version
ansible 2.10.8
</code></pre>
<p>Per <a href="https://silentinstallhq.com/oracle-vm-virtualbox-6-1-silent-install-how-to-guide/" rel="nofollow noreferrer">Oracle VM VirtualBox 6.1 Silent Install (How-To Guide)</a>, I should be able to install Vir... | <p>I RTFM'd the <a href="https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_package_module.html" rel="nofollow noreferrer">win_package documentation</a>. It says regarding the <code>arguments</code> option</p>
<pre><code>arguments This is only used for the msi, msp, and registry providers.
</co... | VirtualBox silent install via Ansible fails? | ansible | 0 | 27 | 1 | 72,192,691 | 72,192,691 | 0 | true | 2022-05-10T18:56:42.313Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
VirtualBox silent install via Ansible fails?<pre><code>$ ansible --version
ansible 2.10.8
</code></pre>
<p>Per <a href="https://silentinstallhq.com/oracle-vm... |
72,164,320 | Code python/selenium to send bulk whatsapp messages - continiously unable to locate element for text box<p>Looked at many options and other codes. Everything in the code below runs smoothly, until the whatsapp input box is called up with:</p>
<pre><code>*input_box = driver.find_element_by_xpath('//*[@id="main"... | <p>Have you tried finding the element by the text?</p>
<pre><code>input_box = driver.find_element_by_xpath('//*[text()="Type a message"]')
</code></pre>
<p>Or you could use contains() to find the element:</p>
<pre><code>input_box = driver.find_element_by_xpath('//*[contains(@class, "copyable-text selecta... | Code python/selenium to send bulk whatsapp messages - continiously unable to locate element for text box | python|excel|selenium|whatsapp|bulk | 0 | 943 | 2 | 72,192,712 | 72,192,712 | 0 | true | 2022-05-08T19:08:51.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Code python/selenium to send bulk whatsapp messages - continiously unable to locate element for text box<p>Looked at many options and other codes. Everything... |
72,192,468 | How can I return additional x1 and x2 values in quadratic equation function after already returning number of solutions in C#?<p>Good morning,</p>
<p>I'm so stuck solving this problem. Here's content of the task:</p>
<blockquote>
<p><strong>"Create a static method double SolvingSquare (double a, double b, double c... | <p>In order to not spoil this completely, but still help you:</p>
<p>You probably want something like this ...</p>
<pre><code>double solutions = Solve(1,3,1, out double x1, out double x2);
Console.WriteLine($"We have {solutions} solutions, which are x1={x1} and x2={x2}");
// And the Solve Function:
public st... | How can I return additional x1 and x2 values in quadratic equation function after already returning number of solutions in C#? | c#|.net | 0 | 32 | 1 | 72,192,839 | 72,192,839 | 0 | true | 2022-05-10T20:15:03.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I return additional x1 and x2 values in quadratic equation function after already returning number of solutions in C#?<p>Good morning,</p>
<p>I'm so ... |
72,192,728 | Variable names incompatible between SPSS and SAS<p>I imported an SPSS (.sav file) into SAS. Several of the variables are not showing up as they are named things like 'variable___1.1' When i try to KEEP certain variables in a data step, I get an error because these variables create an error as SAS misinterprets the '.'<... | <p>You use name literal notation, <code>'variable1_1'n</code> in your code, e.g.</p>
<pre><code>rename 'variable___1.1'n = variable1_1;
</code></pre>
<p>Or set this option and reimport your data so that you get better names.</p>
<pre><code>option validvarname=v7;
</code></pre>
<p>That will tell SAS to import the data... | Variable names incompatible between SPSS and SAS | sas|spss|variable-names | 0 | 37 | 1 | 72,192,863 | 72,192,863 | 0 | true | 2022-05-10T20:45:12.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Variable names incompatible between SPSS and SAS<p>I imported an SPSS (.sav file) into SAS. Several of the variables are not showing up as they are named thi... |
72,191,101 | Spock - Testing that 2nd call throws exception<p>I have a function that given certain initial inputs, the first call should work properly, but the second call should throw a custom exception. The corresponding spock/groovy code looks similar to the following (generalized):</p>
<pre><code>def 'test'() {
given:
d... | <p>This reproducer works fine and does what you describe you want to test.</p>
<pre><code>import spock.lang.*
class ASpec extends Specification {
def "hello world"() {
given:
def service = new Service()
and:
service.doTheThing("ok")
when:
servic... | Spock - Testing that 2nd call throws exception | spock | 0 | 89 | 1 | 72,192,922 | 72,192,922 | 0 | true | 2022-05-10T18:04:55.670Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spock - Testing that 2nd call throws exception<p>I have a function that given certain initial inputs, the first call should work properly, but the second cal... |
72,188,159 | Webpack for Cloudfront Functions<p>Has anyone used Webpack to manage their CloudFront functions?
I was using webpack to manage my Cloudfront Lambda@edge viewer request function but now I want to migrate it to a CloudFront function.</p>
<p>In an ideal world I would still use webpack so that I can have modularized code a... | <p>I ended up using this webpack config and it output a webpacked file that worked perfectly in Cloudfront Functions</p>
<pre><code>const path = require('path');
const TerserPlugin = require("terser-webpack-plugin");
module.exports = {
mode: "none",
entry: './index.mjs',
output: {
filenam... | Webpack for Cloudfront Functions | webpack|amazon-cloudfront | 0 | 175 | 1 | 72,192,929 | 72,192,929 | 0 | true | 2022-05-10T14:25:26.760Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Webpack for Cloudfront Functions<p>Has anyone used Webpack to manage their CloudFront functions?
I was using webpack to manage my Cloudfront Lambda@edge view... |
72,192,004 | Hello! I can`t connect to firebase<p>**Could not parse the android application modules gradle config firebase.
I don't know what to do,this is the first project.And I really can't solve it.</p>
<p>I've seen quite a lot of people getting this error, but it seems that they could solve it by upgrading their build tool ver... | <p>The Kotlin Gradle plugin version should match the Kotlin version you're using, so it should be 1.6.21. And the latest build tools version is 7.1.2.</p>
<pre><code>buildscript {
ext.kotlin_version = '1.6.21'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'co... | Hello! I can`t connect to firebase | java|firebase|kotlin|build.gradle | 0 | 70 | 1 | 72,192,936 | 72,192,936 | 0 | true | 2022-05-10T19:27:21.490Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Hello! I can`t connect to firebase<p>**Could not parse the android application modules gradle config firebase.
I don't know what to do,this is the first proj... |
72,190,505 | AWS DynamoDB/DAX ValueError: invalid literal for int() with base 10: '//test.<chars>.dax-clusters.<region>.amazonaws.com'<p>I understand the error but am very unsure why it is happening.</p>
<pre class="lang-py prettyprint-override"><code> with AmazonDaxClient.resource(
endpoint_url='daxs://test.<char... | <p>Ended up changing the <code>endpoint_url</code> to <code>test.<chars>.dax-clusters.<region>.amazonaws.com</code>. This ended up resulting in an error telling me that the cluster endpoints were failing. I ended up having to make sure that the Lambda's security group was specified in the inbound/outbound r... | AWS DynamoDB/DAX ValueError: invalid literal for int() with base 10: '//test.<chars>.dax-clusters.<region>.amazonaws.com' | python|amazon-dynamodb-dax | 0 | 101 | 1 | 72,192,937 | 72,192,937 | 0 | true | 2022-05-10T17:12:48.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AWS DynamoDB/DAX ValueError: invalid literal for int() with base 10: '//test.<chars>.dax-clusters.<region>.amazonaws.com'<p>I understand the error but am ver... |
72,167,252 | Maven package is not visible compile error<p>I am using maven within VS Code and am getting a compile error from a jar I loaded from the mvn central repository.</p>
<p><code>package com.fazecast.jSerialComm is not visible</code></p>
<p>The import is declared as:</p>
<p><code>import com.fazecast.jSerialComm.SerialPort;<... | <p>Well, I tripped across the solution. My module-info.java needed an additional requires added to it:</p>
<pre><code>module com.mystuff{
requires javafx.controls;
requires javafx.fxml;
requires com.fazecast.jSerialComm;
opens com.mystuffto javafx.fxml;
exports com.mystuff;
}
</code></pre> | Maven package is not visible compile error | java|maven|jar|package | 0 | 201 | 1 | 72,192,953 | 72,192,953 | 0 | true | 2022-05-09T05:13:59.603Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Maven package is not visible compile error<p>I am using maven within VS Code and am getting a compile error from a jar I loaded from the mvn central reposito... |
72,192,623 | How to select specific cells from worksheets and assemble a new dataframe with R<p>I have dozens of Excel sheets, with standardized names and in the R project folder, and I would like to select specific cells, with standardized locations between the sheets and assemble a new data frame.</p>
<p>Example:
In cell A3, I ha... | <p>For example, the Excel sheets (i.e. saved as csv file) are at your current working directory:</p>
<p>Reading csv files in R, the first column is index, so A corresponding to the second column, B -> the third, and so on...</p>
<p>=> A3 -> [3, 2]</p>
<p>C5 -> [5, 4]</p>
<p>F4 -> [4, 7]</p>
<p>F10 -> ... | How to select specific cells from worksheets and assemble a new dataframe with R | r|excel|tidyverse|data-wrangling | 0 | 107 | 1 | 72,192,993 | 72,192,993 | 0 | true | 2022-05-10T20:33:24.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to select specific cells from worksheets and assemble a new dataframe with R<p>I have dozens of Excel sheets, with standardized names and in the R projec... |
72,192,340 | why this listview leaving a space in flutter<pre><code> MaterialApp(
home: Scaffold(
body: DefaultTabController(
length: 3,
child: NestedScrollView(
headerSliverBuilder: (context, value) {
// GetTopRated();
return [
SliverAppBar(
elevation: 0,
... | <p>The <code>ListView</code> widget has a default padding from the top. If you want to remove it, you should pass new padding with the size you want.</p>
<p>Eg.</p>
<pre class="lang-dart prettyprint-override"><code>ListView.builder(
padding: EdgeInsets.zero /// Removes the padding from all sides.
...
);
</code></pre>... | why this listview leaving a space in flutter | flutter|dart | 0 | 36 | 2 | 72,193,061 | 72,193,061 | 0 | true | 2022-05-10T20:02:31.767Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
why this listview leaving a space in flutter<pre><code> MaterialApp(
home: Scaffold(
body: DefaultTabController(
length: 3,
child: NestedS... |
72,192,645 | Google Play Services (Unity) Not Working On Device<pre><code>using System;
using System.Collections;
using System.Collections.Generic;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine;
using UnityEngine.SocialPlatforms;
using UnityEngine.EventSystems;
public class GooglePlayServicesController :... | <p>Found The Reason Seems that GPGS is very very specific in its setup process.</p>
<p>just because you have produce all the leaderboards etc you need to publish them... which is thought before it was still available to the testers</p>
<p>So Make sure you</p>
<ol>
<li>add client ID within Unity</li>
<li>add proguard</l... | Google Play Services (Unity) Not Working On Device | android|unity3d|google-play-services | 0 | 558 | 1 | 72,193,154 | 72,193,154 | 0 | true | 2022-05-10T20:35:43.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google Play Services (Unity) Not Working On Device<pre><code>using System;
using System.Collections;
using System.Collections.Generic;
using GooglePlayGames;... |
72,193,089 | How do I make python recognise spam as a list and not a string<p>I am trying to get my program to take a user inputted list and use it as an argument for the stringList function but it keeps thinking that the list is just a string. How do I get it to see it as an actual list?</p>
<p>Here is the code that I have so far:... | <p>Variable names are hardcoded in the program - part of the Python file.
Values typed by the user at runtime in "input", or read from a data file when the program is running, are "data".</p>
<p>These two are two very different things, and you should work your learning way to learn their difference.... | How do I make python recognise spam as a list and not a string | python|python-3.x | 0 | 47 | 2 | 72,193,213 | 72,193,213 | 0 | true | 2022-05-10T21:21:32.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I make python recognise spam as a list and not a string<p>I am trying to get my program to take a user inputted list and use it as an argument for the... |
72,192,409 | CSS navbar background showing up as white instead of transparent<p>My navbar background keeps showing up as white instead of transparent no matter what I do.</p>
<p>CSS</p>
<pre><code>body{
margin: 0;
line-height: 1.5;
font-size: 16px;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
a{
... | <p>You haven't defined any styles related to background or opacity on the header</p>
<p>Try:</p>
<pre><code>header {
background: red;
opacity: 50%;
}
</code></pre> | CSS navbar background showing up as white instead of transparent | css | 0 | 82 | 2 | 72,193,240 | 72,193,240 | 0 | true | 2022-05-10T20:10:30.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSS navbar background showing up as white instead of transparent<p>My navbar background keeps showing up as white instead of transparent no matter what I do.... |
72,192,754 | Is there a way to get data from db before update for MongoDb - Mongoose<p>I want to do an update method for my project but i couldn't solve this issue. My model has a field call slug. If I need I add data to make this value unique. However, i am using <code>findByIdAndUpdate</code> method on my update function. I am wo... | <p>You could solve your problems first by getting the documents and then do the update with the save method like the following example</p>
<pre><code>const update = async (req, res, next) => {
delete req.body.createdAt;
delete req.body.updatedAt;
try {
const data = req.body;
//here you have the current... | Is there a way to get data from db before update for MongoDb - Mongoose | node.js|mongodb|express|mongoose | 0 | 96 | 1 | 72,193,248 | 72,193,248 | 0 | true | 2022-05-10T20:47:08.040Z | 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 get data from db before update for MongoDb - Mongoose<p>I want to do an update method for my project but i couldn't solve this issue. My mo... |
72,179,403 | Bash variable substitution in Prodigy<p>I want to export the results of a <a href="https://prodi.gy/" rel="nofollow noreferrer">Prodigy</a> tagging session through the command <a href="https://prodi.gy/docs/recipes#db-out" rel="nofollow noreferrer">db-out</a>. Prodigy is installed in a <a href="https://cloud.google.com... | <p>After addressing my attention to <a href="https://stackoverflow.com/a/42082956/16706763">this post</a> (which was kindly suggested by <a href="https://stackoverflow.com/users/89817/gordon-davisson?tab=profile">Gordon Davidson</a>, and whose revision is highly suggested), I managed to solve my original issue. The cor... | Bash variable substitution in Prodigy | linux|bash|command-line-interface|script|prodigy | 0 | 56 | 1 | 72,193,291 | 72,193,291 | 0 | true | 2022-05-10T00:08:46.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Bash variable substitution in Prodigy<p>I want to export the results of a <a href="https://prodi.gy/" rel="nofollow noreferrer">Prodigy</a> tagging session t... |
72,189,915 | How can I prevent this repetition of results when merge sorting an array of strings?<p>I have written a merge sort algorithm which sorts an array containing ID's which I want to sort the array by, then there is a 1d string array containing the full information about each record in the same order as the array of IDs</p>... | <p>I suspect the problem is in the <code>flattenArray</code> method that you haven't shown. I couldn't see any obvious problems in your code so I ran it but replaced the references to <code>flatArray</code> to <code>actualArray</code> and it worked exactly as you'd expect. Try breaking with your debugger after the arra... | How can I prevent this repetition of results when merge sorting an array of strings? | java | 0 | 56 | 1 | 72,193,302 | 72,193,302 | 0 | true | 2022-05-10T16:26:28.577Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I prevent this repetition of results when merge sorting an array of strings?<p>I have written a merge sort algorithm which sorts an array containing ... |
72,189,435 | Removing sinusoidal oscillation from signal Python<p><a href="https://i.stack.imgur.com/qQ78G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qQ78G.png" alt="enter image description here" /></a></p>
<p>Any suggestion for removing sinusoidal oscillation from such a signal?</p> | <p>Use low-pass filter. Take a look here:
<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.butter.html" rel="nofollow noreferrer">https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.butter.html</a></p>
<p>or even better here:
<a href="https://docs.scipy.org/doc/scipy/reference/ge... | Removing sinusoidal oscillation from signal Python | python|signals|signal-processing|fft | 0 | 95 | 1 | 72,193,312 | 72,193,312 | 0 | true | 2022-05-10T15:49:34.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Removing sinusoidal oscillation from signal Python<p><a href="https://i.stack.imgur.com/qQ78G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... |
72,193,246 | Webdriver in Java: couldn't fill a text box<p>I'm using Webdriver in Java to login into Instagram:</p>
<pre><code>WebDriver driver = new ChromeDriver();
//open instagram.com:
driver.get("https://www.instagram.com");
//type my_username in the user text box
WebElement user = driver.findElement(By.xpath(&quo... | <p>Problem was that I was sending the text to fast, before the text box was even available. Some check and wait mechanism should be used before accesing an element.</p> | Webdriver in Java: couldn't fill a text box | selenium|selenium-webdriver|selenium-chromedriver|webdriver | 0 | 86 | 2 | 72,193,395 | 72,193,395 | 0 | true | 2022-05-10T21:42:52.920Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Webdriver in Java: couldn't fill a text box<p>I'm using Webdriver in Java to login into Instagram:</p>
<pre><code>WebDriver driver = new ChromeDriver();
//o... |
72,191,931 | Find Text In XML File and Convert To Uppercase<p>I have XML files that come in that I need to change a field name to be all capital letters. I am trying to automate this in Python and have only been able to convert the entire line of the file to all caps.</p>
<p>Is there a way to only capitalize the text between:</p>
<... | <p>For the code in question, it can be changed as follows to get desired result.
Or <a href="https://docs.python.org/3/library/xml.etree.elementtree.html" rel="nofollow noreferrer">xmltree</a> can be used as well -</p>
<pre><code>import re
f=open(r'input.xml', "r")
f_out = open("output.XML", 'a')
n... | Find Text In XML File and Convert To Uppercase | python-3.x|xml|text|replace | 0 | 70 | 1 | 72,193,442 | 72,193,442 | 0 | true | 2022-05-10T19:19:26.033Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find Text In XML File and Convert To Uppercase<p>I have XML files that come in that I need to change a field name to be all capital letters. I am trying to a... |
72,138,794 | Lumen prevent duplicate job in a queue<p>Using <code>lumen 8.2.3</code> I am only trying to dispatch a unique job to a queue. In app/Console/Kernel I have sent a schedule to <code>$schedule->job(new myJob(), 'high')->everyMinute();</code> this runs every minutes.
In the job itself I have added the <code>ShouldBe... | <p>odd how this got fixed but what I did was change the version from <code>8.2.4</code> to <code>8.3.4</code> and <code>shouldBeUnique</code> work looks like a bug was introduced in 8.3.4</p> | Lumen prevent duplicate job in a queue | php|laravel-8|jobs|lumen | 0 | 158 | 2 | 72,193,506 | 72,193,506 | 0 | true | 2022-05-06T08:56:38.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Lumen prevent duplicate job in a queue<p>Using <code>lumen 8.2.3</code> I am only trying to dispatch a unique job to a queue. In app/Console/Kernel I have se... |
72,193,048 | How do I find an DOM element and then loop over the hyperlinks within its contents<p>I am trying to find all hyperlink text contents within a given DOM element and extract their text contents to count all the no of characters used. I tested it in CodePen and it works but on my web page it does not even execute. The pen... | <p>I found my issue was that my code was being executed before another code block that actually dynamically created the element my code required. I move the code block to after that code and now all is good.</p> | How do I find an DOM element and then loop over the hyperlinks within its contents | jquery | 0 | 28 | 2 | 72,193,512 | 72,193,512 | 0 | true | 2022-05-10T21:17:20.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I find an DOM element and then loop over the hyperlinks within its contents<p>I am trying to find all hyperlink text contents within a given DOM eleme... |
72,193,600 | pandas manipulations with columns<p>I was trying to parse some important data from html tables from database links using pandas and ran into one problem. Code:</p>
<pre><code>import pandas as pd
df_list = pd.read_html('iss1.html', match='Supplier ID')
df_list2 = pd.read_html('iss2.html', match='Attachments:')
df_list3... | <p>IIUC, you can simply use <code>groupby</code> to get the group number (<code>ngroup</code>) and <code>map</code> to the project name:</p>
<pre><code>ids_cons["Project name"] = ids_cons.groupby("group").ngroup().map(projects["Project name"])
>>> ids_cons
Code Supplier ... | pandas manipulations with columns | python|pandas|sorting|group | 0 | 176 | 1 | 72,193,675 | 72,193,675 | 0 | true | 2022-05-10T22:34:46.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
pandas manipulations with columns<p>I was trying to parse some important data from html tables from database links using pandas and ran into one problem. Cod... |
72,177,465 | Can't catch exceptions with ...catch( \Exception $e ){... in PHP/Lumen 8.x<p>I'm working on a PHP/Lumen 8.x foreach loop to manage the update/insert of records from a mysql DB table in which I'm trying to catch any errors during the update/insert process so that it can continue with subsequent logs in case of error. As... | <p>What was happening is exactly what you say @aynber. I did check and, yes, exceptions are being cached, but the line <code>'trace' => $e->getTraceAsString()</code> does indeed allocate data where at deeper levels there is object recursion. And by the time the thread reaches <code>return response()->json($res... | Can't catch exceptions with ...catch( \Exception $e ){... in PHP/Lumen 8.x | php|lumen-8 | 0 | 179 | 1 | 72,193,718 | 72,193,718 | 0 | true | 2022-05-09T19:46:28.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't catch exceptions with ...catch( \Exception $e ){... in PHP/Lumen 8.x<p>I'm working on a PHP/Lumen 8.x foreach loop to manage the update/insert of recor... |
72,193,226 | Manim draws a wrong line on a plotted graph<p>I'm working on a school project regarding derivatives and I've encountered a problem. I try to draw a secant line through points (2,4) and (2+dx, f(2+dx)) for f(x)=x^2. For some reason, manim first draws the line <strong>tangent</strong> to (2,4) and in one frame autocorre... | <p>The problem that you run into is that <code>always_redraw</code> basically creates a mobject with an updater function attached. Mobjects with updaters that are not yet added to the scene (which in your case <code>tangent_begin_x2_RED_2</code> is not until it is <code>Create</code>d) are not updated.</p>
<p>You can f... | Manim draws a wrong line on a plotted graph | manim | 0 | 98 | 1 | 72,193,797 | 72,193,797 | 0 | true | 2022-05-10T21:39:02.620Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Manim draws a wrong line on a plotted graph<p>I'm working on a school project regarding derivatives and I've encountered a problem. I try to draw a secant li... |
72,193,062 | Sci-kit TF-IDF - Unsure of Interpretation of TD-IDF Array?<p>I have a subset of a dataframe like:</p>
<pre><code><OUT>
PageNumber Top_words_only
56 people sun flower festival
75 sunflower sun architecture red buses festival
</code></pre>
<p>I want to calculate TF-IDF on the <code>English... | <p>Calling <code>fit_transform</code> calculates a vector for each supplied document. Each vector will be the same size. The size of the vector is the number of unique words across the supplied documents. The number of zero values in the vector will be the vector size - number of unique values in the document.</p>
<p>U... | Sci-kit TF-IDF - Unsure of Interpretation of TD-IDF Array? | python|scikit-learn|nlp|tf-idf | 0 | 29 | 1 | 72,193,798 | 72,193,798 | 0 | true | 2022-05-10T21:18:44.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sci-kit TF-IDF - Unsure of Interpretation of TD-IDF Array?<p>I have a subset of a dataframe like:</p>
<pre><code><OUT>
PageNumber Top_words_only
56 ... |
72,191,709 | Create a cookie bar consent in wordpress without plugins just pure code<p>I am pretty new in this area but I want to create a cookie consent bar for my wordpress theme but without using plugins or any external help, just pure code(I`m using bootstrap 5.1 and php).I hope I was very explicit.Thanks in advance.</p> | <p>A very basic for that will be this code</p>
<pre><code>function custom_consent()
{
if(!isset($_COOKIE['consent_cookie'])):
?>
<div class="your-bootstrap-classes" id="consent-container">
<p>We use some cookies for best use experience <a id="custom-accept" href="... | Create a cookie bar consent in wordpress without plugins just pure code | php|wordpress|wordpress-theming | 0 | 108 | 1 | 72,193,817 | 72,193,817 | 0 | true | 2022-05-10T18:57:01.270Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a cookie bar consent in wordpress without plugins just pure code<p>I am pretty new in this area but I want to create a cookie consent bar for my wordp... |
72,193,778 | EnvStats::epdfPlot() throws error with continuous distribution<p>I am trying to compute an empirical probability distribution for a continuous variable using the <code>epdfPlot()</code> function in the <code>EnvStats::</code> package. I keep getting an error when I accept the default of <code>discrete=FALSE</code>.</p... | <p>Turns out this occurs because of a conflict with the <code>labdsv::density()</code> function. <code>EnvStats::epdfPlot()</code> doesn't specify <code>stats::density()</code>, so when <code>density()</code> gets masked by another package, <code>EnvStats::epdfPlot()</code> calls that function. I tried running the co... | EnvStats::epdfPlot() throws error with continuous distribution | r|envstats | 0 | 23 | 1 | 72,193,855 | 72,193,855 | 0 | true | 2022-05-10T23:03:11.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
EnvStats::epdfPlot() throws error with continuous distribution<p>I am trying to compute an empirical probability distribution for a continuous variable using... |
72,193,719 | Chart js error in angular: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused. Fix?<p>So basically, on div click (jquery), I have a bootstrap modal popup that has a chart. The chart works fine, and the rendering is perfect, the problem comes when I click another div.</p>
<p>He... | <p>You're doing everything right, and you're so close. I believe there's no need to store anything in this.chart. Simply return and render. To fix your multi-instance error, simply add a check for chart existence before rendering.</p>
<pre><code> divClick()
{
var chartExist = Chart.getChart("myChart"); // &l... | Chart js error in angular: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused. Fix? | javascript|jquery|angular|typescript|chart.js | 0 | 867 | 1 | 72,193,895 | 72,193,895 | 0 | true | 2022-05-10T22:53:08.567Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Chart js error in angular: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused. Fix?<p>So basically, on div click (... |
72,187,882 | Use a drop-down button inside a modal dialog in PyQt<p>I want to create a modal dialog in PyQt, which contains a drop-down button. Here is what I've tried:</p>
<pre class="lang-py prettyprint-override"><code>from PyQt5.QtWidgets import QDialog, QVBoxLayout, QPushButton, QMenu, QApplication, QMainWindow, QLabel, QWidget... | <p>Thanks to the comments by @musicamante and @ekhumoro, I changed <code>menu = QMenu()</code> to <code>menu = QMenu(self)</code>, then the problem got solved.</p> | Use a drop-down button inside a modal dialog in PyQt | python|qt|pyqt|pyqt5|qt5 | 0 | 78 | 1 | 72,193,911 | 72,193,911 | 0 | true | 2022-05-10T14:07:13.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use a drop-down button inside a modal dialog in PyQt<p>I want to create a modal dialog in PyQt, which contains a drop-down button. Here is what I've tried:</... |
72,193,554 | Substitution variable && not working in SQLcl<p>The "new" tool Oracle SQLcl is not interpreting "&&" correctly. Is there an option to correct this behavior?</p>
<pre><code>
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Last Successful login time: Tue May 10 2022 18:17:49 -04:00
C... | <p>It's a bug.</p>
<p>You should log bugs to My Oracle Support, but I'll handle this one for you.</p>
<p>SQLcl debuted in 2014. Not sure if that's "new" or new.</p>
<p>Workaround: go download version 21.4 - I've confirmed it's working as expected there.</p>
<p><a href="https://i.stack.imgur.com/0mHna.png" rel... | Substitution variable && not working in SQLcl | oracle|sqlcl | 0 | 75 | 1 | 72,193,935 | 72,193,935 | 0 | true | 2022-05-10T22:28:23.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Substitution variable && not working in SQLcl<p>The "new" tool Oracle SQLcl is not interpreting "&&" correctly. Is there an optio... |
72,192,902 | Iterate over a df and delete all rows with date before a given date point<p>I have a pd dataframe that looks like the following:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">id</th>
<th style="text-align: center;">projet_id</th>
<th style="text-align: center;">d... | <p>Something like this should work:</p>
<pre><code>#Make sure dates are in to_datetime
df['date_cod']=pd.to_datetime(df['date_cod'])
df['date']=pd.to_datetime(df['date'])
#Condition:date column is less (in total seconds) than first date for each projet_id's first date_cod value
cond=((df['date']-df.groupby('projet_id'... | Iterate over a df and delete all rows with date before a given date point | python|pandas|dataframe|numpy|datetime | 0 | 40 | 1 | 72,194,019 | 72,194,019 | 0 | true | 2022-05-10T21:01:53.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Iterate over a df and delete all rows with date before a given date point<p>I have a pd dataframe that looks like the following:</p>
<div class="s-table-cont... |
72,190,255 | Updating Cols in google Sheets<p>I am trying to copy columns from one sheet to another sheet. I get the columns in response from source sheet. I need to insert them into the sheet. Since methods like insertDimension and insertRange cannot do it. I used <code> request = service.spreadsheets().values().update(spreadsheet... | <p>I think that the response values from <code>service.spreadsheets().get()</code> cannot be directly used to <code>service.spreadsheets().values().update()</code>. From your commented script, I guessed that you might want to copy not only the values but also the cell format.</p>
<p>In this case, how about the followin... | Updating Cols in google Sheets | python-3.x|google-sheets|google-api|google-sheets-api|gspread | 0 | 170 | 1 | 72,194,098 | 72,194,098 | 0 | true | 2022-05-10T16:53:12.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Updating Cols in google Sheets<p>I am trying to copy columns from one sheet to another sheet. I get the columns in response from source sheet. I need to inse... |
72,194,047 | How to make menu button in middle and center<p>I'm trying to make this text align with the border. However, as of now what I have found are just mismatches.</p>
<p><a href="https://i.stack.imgur.com/enxDK.png" rel="nofollow noreferrer">Defect menu-button img</a></p>
<pre><code>.subscribe-now {
position: absolute;
disp... | <p>You can try this approach. See if this works for you. Let me know</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>.subscribe-now {
text-align: center;
background-color: ... | How to make menu button in middle and center | css|menu|alignment|css-position|center | 0 | 38 | 1 | 72,194,155 | 72,194,155 | 0 | true | 2022-05-10T23:53:28.190Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to make menu button in middle and center<p>I'm trying to make this text align with the border. However, as of now what I have found are just mismatches.<... |
72,193,955 | Set URL from list as header for looped items<p>So my code looks like this (example URLs):</p>
<h2>create an array with URLs<br /></h2>
<p>urls = ['https://www.javatpoint.com/what-is-a-webpage', 'https://www.javatpoint.com/welding']</p>
<h2>starting the loop</h2>
<p>for url in urls:<br />
# Use requests to retrieve data... | <p><code>print("List of all the headings for %s" % url)</code></p> | Set URL from list as header for looped items | python | 0 | 26 | 1 | 72,194,167 | 72,194,167 | 0 | true | 2022-05-10T23:37:32.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Set URL from list as header for looped items<p>So my code looks like this (example URLs):</p>
<h2>create an array with URLs<br /></h2>
<p>urls = ['https://ww... |
72,175,174 | Load big JSON files (2MB) in React Native<p>I have some expensive computations to do in JS in a React Native project where I need to use a lot of pre-computed datas.</p>
<p>I have exported these in JSON files (each ~2MB) that I'm loading when I need them like so :</p>
<pre class="lang-js prettyprint-override"><code>exp... | <p>I managed to fix that myself.</p>
<p>The problem was comming from using the Hermes engine instead of <code>jsc</code>.</p>
<p>I don't know what caused it, but at least I can continue to work on my app.</p>
<p>To change back to the default, I replaced <code>hermes</code> by <code>jsc</code> in my <code>app.json</code... | Load big JSON files (2MB) in React Native | react-native|memory|expo | 0 | 262 | 1 | 72,194,261 | 72,194,261 | 0 | true | 2022-05-09T16:18:17.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Load big JSON files (2MB) in React Native<p>I have some expensive computations to do in JS in a React Native project where I need to use a lot of pre-compute... |
72,194,230 | What are the names of the endpoints provided by the Django auth app?<p>What are the <strong>names</strong> of the endpoints provided by the Django auth model? E.g., if I want to link to the login page, what do I put in the template?</p>
<pre><code><a href={% url ???? %}>Login</a>
</code></pre> | <p>This Real Python article on <a href="https://realpython.com/django-user-management/" rel="nofollow noreferrer">getting started with Django user management</a> provides a nice list about half way down:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Path</th>
<th>Name</th>
<th>Comment</th... | What are the names of the endpoints provided by the Django auth app? | python|django|django-models|django-templates | 0 | 21 | 1 | 72,194,277 | 72,194,277 | 0 | true | 2022-05-11T00:36:19.163Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What are the names of the endpoints provided by the Django auth app?<p>What are the <strong>names</strong> of the endpoints provided by the Django auth model... |
72,194,263 | in Javascript, is `let a;` ever any different to `let a=undefined;`<p>Are the statements:</p>
<p><code>let a;</code></p>
<p>and</p>
<p><code>let a=undefined;</code></p>
<p><em>ever</em> any different? Do they <em>always</em> compile to the same code in node and/or the browser?</p> | <p><a href="https://tc39.es/ecma262/#sec-declarations-and-the-variable-statement" rel="nofollow noreferrer">They are equivalent.</a>.</p>
<blockquote>
<p>A variable defined by a LexicalBinding with an Initializer is assigned the value of its Initializer's AssignmentExpression when the LexicalBinding is evaluated, not w... | in Javascript, is `let a;` ever any different to `let a=undefined;` | javascript | 0 | 32 | 1 | 72,194,291 | 72,194,291 | 0 | true | 2022-05-11T00:43:46.730Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
in Javascript, is `let a;` ever any different to `let a=undefined;`<p>Are the statements:</p>
<p><code>let a;</code></p>
<p>and</p>
<p><code>let a=undefined;... |
72,194,443 | mongodb: decrease all values (in -1.5) that match with specific filters<p>I'm trying to decrease all "temperature values" that match with "sensor_id":2 and "location_id":1, I need to decrease them in - 1.5.</p>
<p>this is the collection:</p>
<pre class="lang-js prettyprint-override"><code... | <p>Use <code>arrayFilters</code> to match and update array elements. Note that in your sample dataset, none of the document is matched, so I modified the find criteria a bit to demonstrate the query.</p>
<pre class="lang-js prettyprint-override"><code>db.collection.update({
"sensor_id": 1,
"location_... | mongodb: decrease all values (in -1.5) that match with specific filters | mongodb|mongodb-query|aggregation-framework | 0 | 23 | 1 | 72,194,536 | 72,194,536 | 0 | true | 2022-05-11T01:22:11.650Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
mongodb: decrease all values (in -1.5) that match with specific filters<p>I'm trying to decrease all "temperature values" that match with "sen... |
72,181,160 | How should I make rounded NSBox with blurred background?<p>Is there a way that I can make a transparent and rounded NSBox with a blurred background?</p>
<p>I have tried to use CA Background Filters to achieve this, but it seems that the part of the background which is blurred is not rounded, as you can see here: <a hre... | <p>I was able to finally fix this by wrapping my <code>NSBox</code> with an <code>NSView</code> that had a cornerRadius property, and then applying the CA filter to that <code>NSView</code>.</p> | How should I make rounded NSBox with blurred background? | swift|cocoa|core-animation|appkit | 0 | 40 | 1 | 72,194,590 | 72,194,590 | 0 | true | 2022-05-10T05:32:03.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How should I make rounded NSBox with blurred background?<p>Is there a way that I can make a transparent and rounded NSBox with a blurred background?</p>
<p>I... |
72,190,280 | How properly use our code in different tabs using the classes?<p>I want to create different tabs in my GUI, and be able to write different codes in each tab, and also be able to transfer the variables between tabs. So I tried to write it in different classes. But my code cannot show the defined labels in the proper tab... | <p>you can do it in this way:</p>
<pre><code>import tkinter as tk
from tkinter import ttk
class Data:
def __init__(self):
self.n = tk.IntVar()
class SampleApp(tk.Tk):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.minsize(400, 400)
self.maxsize(400,... | How properly use our code in different tabs using the classes? | python|tkinter|tabs | 0 | 63 | 1 | 72,194,595 | 72,194,595 | 0 | true | 2022-05-10T16:55:28.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How properly use our code in different tabs using the classes?<p>I want to create different tabs in my GUI, and be able to write different codes in each tab,... |
72,194,732 | find out which country starts with certain character using R<p>i have a table country called gDat with column country, now i want to find out the country starts with Mal with this code</p>
<pre><code>grep('Mal', levels(gDat$country))
</code></pre>
<p>but its returns only the id of that country (not the country name), h... | <p>Use <code>grepl</code> with the regex pattern <code>^Mal</code>:</p>
<pre class="lang-r prettyprint-override"><code>countries <- gDat$country[grepl("^Mal", gDat$country)]
</code></pre> | find out which country starts with certain character using R | r | 0 | 29 | 2 | 72,194,747 | 72,194,747 | 0 | true | 2022-05-11T02:24:45.810Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
find out which country starts with certain character using R<p>i have a table country called gDat with column country, now i want to find out the country sta... |
72,194,755 | Using System path in Spring Boot application.properties<p>In the actual production and development servers, the base path is set with the code below.</p>
<pre><code>private static String FILE_DIR = System.getProperty("user.dir") + File.separator + "FILES";
</code></pre>
<p>I want to move this code t... | <p>I tried the following in <code>application.yml</code> and it worked.</p>
<pre><code>filedir: ${user.dir}${file.separator=='\\' ?/:\\}FILES
</code></pre>
<p>And then</p>
<pre><code>@Value("${filedir}")
private String fileDir;
</code></pre>
<p>Please let me know it it wrks for you.</p> | Using System path in Spring Boot application.properties | spring|spring-boot | 0 | 70 | 1 | 72,194,909 | 72,194,909 | 0 | true | 2022-05-11T02:29:54.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using System path in Spring Boot application.properties<p>In the actual production and development servers, the base path is set with the code below.</p>
<pr... |
72,194,885 | How do I pipe `file` after `which` in unix-like os<pre class="lang-sh prettyprint-override"><code>$which python
/usr/bin/python
$file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 2 architectures ...
</code></pre>
<p>I tried to use <code>which python | file</code> but it won't work.</p> | <p>There are more than one way to do this. Off the top of my head here are a couple:</p>
<ol>
<li><code>file $(which python)</code></li>
<li><code>which python | xargs file</code></li>
</ol> | How do I pipe `file` after `which` in unix-like os | linux|bash|macos|unix|terminal | 0 | 22 | 1 | 72,194,940 | 72,194,940 | 0 | true | 2022-05-11T02:55:38.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I pipe `file` after `which` in unix-like os<pre class="lang-sh prettyprint-override"><code>$which python
/usr/bin/python
$file /usr/bin/python
/usr/bi... |
72,179,322 | Creating a Rolling Average of OLS Beta parameter estimates<p>I am trying to create a time series graph of the rolling average of the OLS Beta parameter estimates from a single data set. I need to regress rows 1-36 of the data with OLS, find the Beta parameter estimate, and then do so again with rows 2-37, and so on. On... | <p>Here is a quick example, but I could perhaps clarify if I saw an example of your data?</p>
<p>Let's say you have a 1000 row frame <code>df</code>, with outcome <code>y</code> and predictor <code>x</code>, and you want the intercept and slope of a regression done in every 36-row sliding window (rows 1-36, 2-37, 3-38,... | Creating a Rolling Average of OLS Beta parameter estimates | r|beta | 0 | 21 | 1 | 72,194,981 | 72,194,981 | 0 | true | 2022-05-09T23:55:46.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating a Rolling Average of OLS Beta parameter estimates<p>I am trying to create a time series graph of the rolling average of the OLS Beta parameter estim... |
72,191,824 | typeorm saving list as string<p>I have a flutter frontend which sends url strings in a list like ['url','url','url'] but in Postgres its saved/on retrieval shows up as a single string like 'url,url,url'.</p>
<p>Here's the column with problem:</p>
<pre><code> @Column({
type: "simple-array",
default: [... | <p>This worked for me</p>
<pre><code>@Column("text", { array: true })
postMedia!: string[];
</code></pre>
<p>Do let me know if this solves your problem</p> | typeorm saving list as string | arrays|postgresql|typeorm | 0 | 339 | 1 | 72,195,045 | 72,195,045 | 0 | true | 2022-05-10T19:08:11.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
typeorm saving list as string<p>I have a flutter frontend which sends url strings in a list like ['url','url','url'] but in Postgres its saved/on retrieval s... |
72,183,324 | mysql Dynamic search query indexing<p>It's my first project, so I'm sorry I have so many questions.</p>
<p>I'm trying to index to search the above Cat table.</p>
<p>However, I don't know how to apply it because the where clause has multiple cases.</p>
<pre><code>SELECT *
FROM CAT
WHERE birth between '2000-01-01' and '2... | <pre><code>WHERE birth between '2000-01-01' and '2009-12-31'
</code></pre>
<p><em>may</em> be helped by</p>
<pre><code>INDEX(birth)
</code></pre>
<p>However note: If <code>birth</code> is of type <code>DATETIME</code>, you have left out most of 12/31.</p>
<pre><code>and NAME like '%blue%';
</code></pre>
<p>Because of ... | mysql Dynamic search query indexing | mysql|performance|indexing | 0 | 50 | 1 | 72,195,120 | 72,195,120 | 0 | true | 2022-05-10T08:55:08.510Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
mysql Dynamic search query indexing<p>It's my first project, so I'm sorry I have so many questions.</p>
<p>I'm trying to index to search the above Cat table.... |
72,195,022 | Checkerboard with python<p>My task is to create a checkerboard in the form of a '*' symbol. When writing the algorithm, I screwed up, and I don't understand where the algorithm malfunction is, how can I fix it?</p>
<pre><code>
n = int(input())
x = np.zeros((n,n), dtype=str)
x[1::2, ::2]='*'
x[::2,1::2]='*'
for i in ... | <pre><code>n = int(input())
x = '* '
y = 1
for i in range(2*n):
print(x[::y]*n)
y *= -1
</code></pre>
<p>Output: Given <code>n == 4</code></p>
<pre><code>* * * *
* * * *
* * * *
* * * *
* * * *
* * * *
* * * *
* * * *
</code></pre> | Checkerboard with python | python | 0 | 24 | 1 | 72,195,131 | 72,195,131 | 0 | true | 2022-05-11T03:22:30.413Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Checkerboard with python<p>My task is to create a checkerboard in the form of a '*' symbol. When writing the algorithm, I screwed up, and I don't understand... |
72,193,979 | AWS EC2 - multiple (public / private) network interfaces<p>AWS newbie here. I'm trying to create a stack with multiple EC2 nodes, each of which should have two network interfaces.</p>
<p>One interface should be public and connected to the Internet, the other interface should be private. The interfaces should belong to ... | <p>Got things to work.</p>
<p>The trick was to only specify one network interface in the EC2 Instance - then it's possible to set <code>AssociatePublicIpAddress: true</code> - and add the second network interface separately.</p>
<pre class="lang-yaml prettyprint-override"><code>Resources:
[...]
Host1:
Type: 'AWS:... | AWS EC2 - multiple (public / private) network interfaces | amazon-web-services|amazon-ec2|amazon-cloudformation | 0 | 408 | 2 | 72,195,164 | 72,195,164 | 0 | true | 2022-05-10T23:41:41.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AWS EC2 - multiple (public / private) network interfaces<p>AWS newbie here. I'm trying to create a stack with multiple EC2 nodes, each of which should have t... |
72,187,564 | How do I combine all objects after a certain index in an array to the same object<p>Good day, I hope someone can help.</p>
<p>I have an array of objects that looks like this that I'm looking to reduce the objects a little:</p>
<pre><code>[
{
"entityName": "0015J00000BUWbHQAX",
&q... | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const data = [{
"entityName": "0015J00000BUWbHQAX",
"countryCode": "BE",
"totalReclaimPotential": 2506.0360930000006
}... | How do I combine all objects after a certain index in an array to the same object | arrays|angular|typescript | 0 | 24 | 2 | 72,195,254 | 72,195,254 | 0 | true | 2022-05-10T13:48:19.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I combine all objects after a certain index in an array to the same object<p>Good day, I hope someone can help.</p>
<p>I have an array of objects that... |
72,195,135 | Normally i run on command line : python main.py image/ archive/ True , so how can i run on tkinter gui<p>This is my code, Thanks everybody.</p>
<pre><code>import subprocess
import sys
import tkinter as tk
import tkinter.filedialog
class Application(tk.Frame):
def __init__(self, master=None):
super().__init... | <p>If you don't use <code>--image</code> and <code>--archive</code> when running the command by hand, you don't need them here.</p>
<p>Just add <code>True</code> as another argument in the list.</p>
<pre><code> def run_face_recognition(self):
subprocess.run([sys.executable, "main.py", self.image, ... | Normally i run on command line : python main.py image/ archive/ True , so how can i run on tkinter gui | python|tkinter | 0 | 29 | 1 | 72,195,310 | 72,195,310 | 0 | true | 2022-05-11T03:40:01.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Normally i run on command line : python main.py image/ archive/ True , so how can i run on tkinter gui<p>This is my code, Thanks everybody.</p>
<pre><code>im... |
72,193,796 | How to line up rectangles?<p>I have a problem with printing lined up rectangles. The task is to implement function that generates an infinite sequence (however the professor said it's not necessarily, could be, for instance, 10 rectangles) of not intersecting equal rectangles with different coordinates.
It should look ... | <p>You could use <code>for</code>-loop to repeate the same code few times but with different values - <code>plot.x = ...</code> - and you could use value from <code>for</code> to add <code>3</code> - <code>3*i</code></p>
<p>And you should remove <code>plt.show()</code> from class and use it only once - after plotting a... | How to line up rectangles? | python|matplotlib|oop | 0 | 32 | 1 | 72,195,321 | 72,195,321 | 0 | true | 2022-05-10T23:05:53.350Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to line up rectangles?<p>I have a problem with printing lined up rectangles. The task is to implement function that generates an infinite sequence (howev... |
72,156,792 | Azure/Gsuite connector authentication issues, Server Error & Invalid Email<p><strong>The problem</strong>: I'm getting errors from Google while attempting SSO through Azure AD and can't even begin to guess why or how to go about debugging the issue.</p>
<p><strong>The story:</strong></p>
<p>My org is looking at leverag... | <p>Somebody (me) failed their perception check repeatedly because the problem was that the Unique User Identifier SAML claim in Azure was set to <code>user.mail</code> instead of <code>user.userprincipalname</code> as it should have been as per the tutorial.</p>
<p>I'll see myself out now.</p> | Azure/Gsuite connector authentication issues, Server Error & Invalid Email | azure-active-directory|single-sign-on|saml|google-workspace | 0 | 207 | 1 | 72,195,349 | 72,195,349 | 0 | true | 2022-05-07T22:31:56.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure/Gsuite connector authentication issues, Server Error & Invalid Email<p><strong>The problem</strong>: I'm getting errors from Google while attempting SS... |
72,180,278 | Why is the branched output of Tensorflow model yielding only from 1 branch?<p>I'm a Tensorflow beginner and I'm trying to reproduce the TF Classification by Retrieval model as explained <a href="https://blog.tensorflow.org/2022/01/on-device-one-shot-learning-for-image.html" rel="nofollow noreferrer">here</a> using Pyth... | <p>So after looking around, referring to this <a href="https://github.com/keras-team/keras/issues/7362#issuecomment-335366278" rel="nofollow noreferrer">thread</a>, the "correct" way to use TF operation (in my case is <code>tf.nn.embedding_lookup</code> and <code>tf.reduce_max</code>) is by wrapping them in a... | Why is the branched output of Tensorflow model yielding only from 1 branch? | python|tensorflow|data-retrieval|embedding-lookup | 0 | 44 | 1 | 72,195,510 | 72,195,510 | 0 | true | 2022-05-10T03:01:22.550Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is the branched output of Tensorflow model yielding only from 1 branch?<p>I'm a Tensorflow beginner and I'm trying to reproduce the TF Classification by ... |
72,181,875 | Jquery Animated Counter Up but work automatically on mobile view<p>I'm building a counter up for a website. It works perfectly but in mobile view it doesnt wait to get user into it. On computer view, it starts when user sees it. But in mobile view, it starts automatically so it ends before user sees it. Any ideas?</p>
... | <p>I figure out that it happens because of other components. When i enter the page, other components automatically disappear then show up. So our counter starts from top to bottom because of component rendering.</p> | Jquery Animated Counter Up but work automatically on mobile view | html|jquery|css|counter | 0 | 108 | 1 | 72,195,846 | 72,195,846 | 0 | true | 2022-05-10T06:56:22.420Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Jquery Animated Counter Up but work automatically on mobile view<p>I'm building a counter up for a website. It works perfectly but in mobile view it doesnt w... |
72,190,802 | 'temporary value dropped while borrowed' when creating Iterator based in condition<p>I am trying to build an <code>Iterator</code> in Rust that returns the values and indexes of non-null elements in an array. This <code>Iterator</code> should be reversible based on a <code>bool</code> parameter.</p>
<p>I managed to bui... | <p>I found a pretty compact solution using the <code>Either</code> crate, inspired by <a href="https://stackoverflow.com/a/50204370/16801982">this answer</a>.</p>
<pre class="lang-rust prettyprint-override"><code>extern crate either;
use either::Either;
fn main() {
// Array to observe
let arr: [u8; 8] = [0, 2,... | 'temporary value dropped while borrowed' when creating Iterator based in condition | arrays|rust|iterator|conditional-statements | 0 | 72 | 2 | 72,195,884 | 72,195,884 | 0 | true | 2022-05-10T17:38:54.670Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
'temporary value dropped while borrowed' when creating Iterator based in condition<p>I am trying to build an <code>Iterator</code> in Rust that returns the v... |
72,190,763 | Find documents by child value?<p>I need to find all document IDs with <code>name: "Nick"</code>, so I can update the <code>score</code>.</p>
<hr />
<p>I have the following <code>Firestore Database</code> structure:</p>
<pre class="lang-json prettyprint-override"><code>{
"c4ca4238a0b923820dcc509a6f75849... | <p>Firestore is a NoSQL database which inherits how you query on any other NoSQL database. To specify a query condition on fields in an embedded/nested document, use dot notation <code>"field.nestedField"</code>. When querying using dot notation, the field and nested field must be inside quotation marks.</p>
... | Find documents by child value? | firebase|google-cloud-firestore | 0 | 79 | 1 | 72,195,938 | 72,195,938 | 0 | true | 2022-05-10T17:36:13.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find documents by child value?<p>I need to find all document IDs with <code>name: "Nick"</code>, so I can update the <code>score</code>.</p>
<hr />... |
72,196,006 | I keep getting these errors "Multiple root tags" and "cannot resolve class" while I'm trying nest a LinearLayout in another LinearLayout<p>when try to close the nested LinearLayout in the main LinearLayout it takes like the close belongs to the main LinearLayout and the rest of the code after the second LinearLayout (... | <p>Thats because you have self closed the 2nd LinearLayout and then below you have made it like container so the below code is not included in the linear block code !!</p>
<pre><code><LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="h... | I keep getting these errors "Multiple root tags" and "cannot resolve class" while I'm trying nest a LinearLayout in another LinearLayout | android|android-layout|nested | 0 | 23 | 1 | 72,196,109 | 72,196,109 | 0 | true | 2022-05-11T05:52:20.190Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I keep getting these errors "Multiple root tags" and "cannot resolve class" while I'm trying nest a LinearLayout in another LinearLayout<p>when try to close ... |
72,196,235 | I want to store the refresh token in the database<p>@Override
protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, Authentication authentication) throws IOException, ServletException{</p>
<pre><code> User user = (User) authentication.getPrincipal();
... | <p>I think you shouldnt store them into db. Instead of it, you can use local storage packages such as, SharedPreferences. This stores your identification information into local storage. This is more useful.</p> | I want to store the refresh token in the database | java|spring|spring-boot|spring-mvc | 0 | 154 | 1 | 72,196,267 | 72,196,267 | 0 | true | 2022-05-11T06:18:40.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to store the refresh token in the database<p>@Override
protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse respons... |
72,196,000 | Select rows that contain a range of values while excluding values from other columns<p>Hitting a small wall with a query here. trying to see if transactions contain type 01 while excluding transactions that contain item 23 or 25.</p>
<p>here's a reprex.</p>
<p>In SQL fiddle</p>
<pre><code>create table purchases (
tra... | <p>Based on your updated question, i'd suggest you use the NOT EXISTS clause like below</p>
<pre><code>select * from purchases p1 where not exists
(
select 1 from purchases p2 where p1.transaction_id=p2.transaction_id
and p2.item in (23,25))
and type=1
</code></pre>
<p><a href="https://dbfiddle.uk/?rdbms=postgres_14&a... | Select rows that contain a range of values while excluding values from other columns | sql|postgresql | 0 | 64 | 4 | 72,196,285 | 72,196,285 | 0 | true | 2022-05-11T05:51:24.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Select rows that contain a range of values while excluding values from other columns<p>Hitting a small wall with a query here. trying to see if transactions ... |
72,196,185 | How to make only one integer can be written in the box?<p>I want to make only 1 number can be written in the box (maximum is number 8). Is there anyway to do that?</p>
<pre><code><label class="control-label col-sm-4" for="seal_qty">Seal Quantity:</label>
<div class="col-sm-... | <p>You can check <code>lenght</code> and number like:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const seal_qty = document.querySelector('#seal_qty');
seal_qty.addEventLis... | How to make only one integer can be written in the box? | javascript|html | 0 | 42 | 1 | 72,196,290 | 72,196,290 | 0 | true | 2022-05-11T06:13:46.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to make only one integer can be written in the box?<p>I want to make only 1 number can be written in the box (maximum is number 8). Is there anyway to do... |
72,194,163 | how to define string for .toLowerCase for filter search with multiple search items<p>I am new at React and am having trouble defining some things. My goal is to get a filter search working and filter through a JSON via API. The console shows that what I type in is acknowledged, but I keep getting undefined errors, even... | <p>You are going to apply a search bar for the list of users. But what if there is no search applied. Don't you need to show the list of available?</p>
<p>Whenever the search is typing, you are firing an API call and filtering the data from it. I would suggest you apply to <a href="https://stackoverflow.com/questions/2... | how to define string for .toLowerCase for filter search with multiple search items | javascript|reactjs|search|filter | 0 | 81 | 2 | 72,196,325 | 72,196,325 | 0 | true | 2022-05-11T00:21:11.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to define string for .toLowerCase for filter search with multiple search items<p>I am new at React and am having trouble defining some things. My goal is... |
72,189,973 | convert formula to pinescript for tradingview<p><code>(c/c1>=1.04 and v>v1 and v>=100000)</code> is the formula that I am trying to convert to pinescript but couldn't where</p>
<ul>
<li>latest close(price) is 4% more than the previous day price(rate of change ROC)</li>
<li>latest volume is greater than previou... | <p>You can use the <a href="https://www.tradingview.com/pine-script-docs/en/v4/essential/Context_switching_the_security_function.html" rel="nofollow noreferrer">security()</a> function to request data from other timeframes.</p>
<pre><code>//@version=5
indicator("My script")
[close_prev_day, vol_prev_day] = r... | convert formula to pinescript for tradingview | pine-script|pinescript-v5 | 0 | 94 | 1 | 72,196,346 | 72,196,346 | 0 | true | 2022-05-10T16:30:48.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
convert formula to pinescript for tradingview<p><code>(c/c1>=1.04 and v>v1 and v>=100000)</code> is the formula that I am trying to convert to pines... |
72,185,457 | Spring Boot 2.6.7 URL case insensitive configuration<p>In Spring Boot 2.6.7, I want to set up all of my controllers' URLs to be case-insensitive.</p>
<p>I tried this but it does not work</p>
<pre><code>@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void configurePathMat... | <p>After @Xiidref solution could you add</p>
<pre><code>spring.mvc.pathmatch.matching-strategy=ant_path_matcher
</code></pre>
<p>in your <code>application.properties</code> file.</p> | Spring Boot 2.6.7 URL case insensitive configuration | java|spring-boot | 0 | 329 | 2 | 72,196,384 | 72,196,384 | 0 | true | 2022-05-10T11:22:29.243Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Boot 2.6.7 URL case insensitive configuration<p>In Spring Boot 2.6.7, I want to set up all of my controllers' URLs to be case-insensitive.</p>
<p>I tr... |
72,191,319 | What does it mean when there is only one variable in a single line in PineScript?<p>When I read some PineScript code, I come across this:</p>
<pre><code>pDir = 1
if array.size(zigzagpivots) >= 1
pDir := array.get(zigzagpivotdirs, 0)/
pDir := pDir % 2 == 0 ? pDir / 2 : pDir
pDir
</code... | <p>It does nothing. You can remove it and the result will be the same.</p> | What does it mean when there is only one variable in a single line in PineScript? | pine-script | 0 | 79 | 1 | 72,196,390 | 72,196,390 | 0 | true | 2022-05-10T18:23:14.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What does it mean when there is only one variable in a single line in PineScript?<p>When I read some PineScript code, I come across this:</p>
<pre><code>pDir... |
72,147,563 | how to Access to the Response body in the retrofit?<p>I changed the Volley library to Retrofit. Now I want to access the response body like the Volley library. I searched the internet and came up with this solution, but when I run the program, the program closes and shows a low error. Thank you in advance for your help... | <h2><em>Finally, with these changes, I was able to reach a conclusion.</em></h2>
<p><strong>ApiSeviceClass</strong></p>
<pre><code> public void getVerifyCode(String mobile, RequestStatus requestStatus) {
Log.i(TAG, "getVerifyCode: Called");
HashMap<String, String> map = new HashMap<... | how to Access to the Response body in the retrofit? | android|api|service|request|retrofit | 0 | 241 | 2 | 72,196,414 | 72,196,414 | 0 | true | 2022-05-06T21:31:08.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to Access to the Response body in the retrofit?<p>I changed the Volley library to Retrofit. Now I want to access the response body like the Volley librar... |
72,139,036 | Spring Boot Azure Multiple HttpSecurity<p>Is it possible to mix two authentication modes?</p>
<ul>
<li>Internal user: Azure ad</li>
<li>External user: form authentication</li>
</ul>
<p>So far I have this:</p>
<pre class="lang-java prettyprint-override"><code>@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled... | <p>Thanks to the inputs from the commentators and some heavy googling i ended up with this working version:</p>
<pre class="lang-java prettyprint-override"><code>@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class SecurityConfiguration {
@Configuration
public static class MfaAut... | Spring Boot Azure Multiple HttpSecurity | java|spring-boot|azure|spring-security | 0 | 256 | 1 | 72,196,520 | 72,196,520 | 0 | true | 2022-05-06T09:16:22.363Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring Boot Azure Multiple HttpSecurity<p>Is it possible to mix two authentication modes?</p>
<ul>
<li>Internal user: Azure ad</li>
<li>External user: form a... |
72,184,047 | ERROR org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource<p>I want to conenct my java CRUD application with node red. But when I run the Java application I always get this error. I have tried to solve it but I can't.
This is the er... | <p>Maybe you are connecting to the different database. In that database the <code>roles</code> table has more/less than 2 columns.</p>
<p>Instead of this line of code <code>REPLACE INTO roles VALUES (1,'ADMIN')</code> in <code>data.sql</code> file try specifying <strong>exact</strong> column names in your query:</p>
<p... | ERROR org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource | java|mysql|spring|spring-boot|hibernate | 0 | 1,173 | 1 | 72,196,570 | 72,196,570 | 0 | true | 2022-05-10T09:43:13.857Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ERROR org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource<p>I want t... |
72,196,434 | Why are my tests failing after importing a function from a module?<p>This is my first programming question to ask on here. I am also a beginner python programmer.</p>
<p>I'm making a test program in order to test a function from another program (plates). Basically the main program (plates) asks for a string and then ch... | <p>As already noted by Matthias, when a function ends without explicitly returning something it returns <code>None</code> by default. So your assertions succeed as long as you are checking for <code>True</code>, but fail when you check for <code>False</code>: <code>False != None</code>.</p>
<p>Add a <code>return False<... | Why are my tests failing after importing a function from a module? | python|unit-testing|module | 0 | 33 | 1 | 72,196,578 | 72,196,578 | 0 | true | 2022-05-11T06:37:28.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why are my tests failing after importing a function from a module?<p>This is my first programming question to ask on here. I am also a beginner python progra... |
72,193,724 | Markers in beginning and end of line plots<p>I have 5 datasets that have thousands of x and y coordinates grouped by 'frame' that create 5 trajectory plots. I'd like to mark the first and last coordinates for each plot but having difficulty figuring it out. I am using Jupiter Notebook.</p>
<pre><code>mean_pos1 = gr1.m... | <p>Use the <code>scatter</code> method to plot the markers separately on the same axis by grabbing the first and last elements from your <code>x</code> and <code>y</code> series:</p>
<pre><code>import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
df = pd.DataFrame({'x': np.random.normal(3,0.2,10), 'y... | Markers in beginning and end of line plots | python|jupyter-notebook|line|marker|line-plot | 0 | 143 | 1 | 72,196,627 | 72,196,627 | 0 | true | 2022-05-10T22:53:45.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Markers in beginning and end of line plots<p>I have 5 datasets that have thousands of x and y coordinates grouped by 'frame' that create 5 trajectory plots. ... |
72,196,535 | (DiscordJs v13) How do I get a list of a voice channel in discord interaction guild<p>I'm trying to get a list of all the voice channels that are on the interaction server to put it on a select menu later.</p> | <p>You can simply use the guild object to list the channels, like so:</p>
<pre><code>const { options, guild, member } = interaction;
// if you have not disabled caching
let channels = guild.channels.cache
// no cache
let channels = await guild.channels.fetch()
</code></pre>
<p>More info at: <a href="https://discord.... | (DiscordJs v13) How do I get a list of a voice channel in discord interaction guild | javascript|discord.js | 0 | 494 | 1 | 72,196,647 | 72,196,647 | 0 | true | 2022-05-11T06:45:36.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
(DiscordJs v13) How do I get a list of a voice channel in discord interaction guild<p>I'm trying to get a list of all the voice channels that are on the inte... |
72,163,917 | 400 Invalid image "us-docker.pkg.dev/vertex-ai/training/pytorch-gpu.1-11:latest" for deployment. Please use a Model with a valid image<p>What could be the point I am missing here. All datasets and training is done on gcp and my setup is basic.</p>
<ol>
<li>Training, validation and test done on JupyterLab</li>
<li>Model... | <p>You are using <code>us-docker.pkg.dev/vertex-ai/training/pytorch-gpu.1-11:latest</code> <strong>container image</strong> for importing models. However, models trained in <code>pytorch</code> cannot use pre-built containers when importing models since as mentioned in this <a href="https://cloud.google.com/vertex-ai/d... | 400 Invalid image "us-docker.pkg.dev/vertex-ai/training/pytorch-gpu.1-11:latest" for deployment. Please use a Model with a valid image | python|google-cloud-platform|google-cloud-ml|google-cloud-vertex-ai | 0 | 208 | 1 | 72,196,720 | 72,196,720 | 0 | true | 2022-05-08T18:14:28.977Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
400 Invalid image "us-docker.pkg.dev/vertex-ai/training/pytorch-gpu.1-11:latest" for deployment. Please use a Model with a valid image<p>What could be the po... |
72,196,096 | Python: Displaying values alongside a bar in a bar graph. Values greater than the actual value is getting displayed<p>I am trying to plot a grouped bar graph in which I display the corresponding value alongside the bar. Currently, what my code does is, it displays the value alongside the bar, which is 1 greater than th... | <p>If you look at the documentation <code>help(ax.bar_label)</code> it is hinted that <code>label_type="edge"</code> and <code>label_type="center"</code> shows different values. One way to fix that is to pass our labels, like this:</p>
<pre><code>for c in ax.containers:
labels = c.datavalues.ast... | Python: Displaying values alongside a bar in a bar graph. Values greater than the actual value is getting displayed | python|pandas|matplotlib | 0 | 60 | 1 | 72,196,743 | 72,196,743 | 0 | true | 2022-05-11T06:02:45.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python: Displaying values alongside a bar in a bar graph. Values greater than the actual value is getting displayed<p>I am trying to plot a grouped bar graph... |
72,196,602 | Python - How to keep the loop input after it answered?<h4>Main.py</h4>
<p>In my current codes, it just stuck on the first question and not continuing the second questions. I want to make it loop until the last question answered and the loop will break/stop.</p>
<pre><code>def main():
Total = None
with open(&qu... | <p>You need to modify your code. Try this,</p>
<pre><code>import json
def main():
with open("test.json", "r") as f:
File = json.load(f)
total = len(File['questions'])
for i in range(1,total+1):
name = File["questions"][str(i)]["answer"]
print(&... | Python - How to keep the loop input after it answered? | python|json|python-3.x | 0 | 46 | 4 | 72,196,769 | 72,196,769 | 0 | true | 2022-05-11T06:51:14.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python - How to keep the loop input after it answered?<h4>Main.py</h4>
<p>In my current codes, it just stuck on the first question and not continuing the sec... |
72,180,705 | Use raw SQL to insert a list in postgresql using Entity Framework<p>I want to insert a list of data into a table in Postgresql using Entity Framework.</p>
<p>Can anyone help by suggesting the syntax or an algo for that?</p> | <p>Like @Nick said raw sql isn't ideal especially if you are inserting 100k values,Tons of options when it comes to bulk insert i specifically use <a href="https://www.nuget.org/packages/EFCore.BulkExtensions/" rel="nofollow noreferrer">BulkInsert</a> find it much easier example below</p>
<pre><code> using (var dbConte... | Use raw SQL to insert a list in postgresql using Entity Framework | postgresql|entity-framework | 0 | 107 | 1 | 72,196,831 | 72,196,831 | 0 | true | 2022-05-10T04:18:23.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use raw SQL to insert a list in postgresql using Entity Framework<p>I want to insert a list of data into a table in Postgresql using Entity Framework.</p>
<p... |
72,196,833 | How to set up enhanced authorisation options in Azure Bot<p>I have an Bot Service in Azure and I would like to ask how to set up enhanced authorization options in DL channel. My target is to be able to call the Bot API only from specific IPs.</p>
<p>Thanks.</p> | <p>I think this is exactly what you need: <a href="https://cloudacademy.com/lab/securing-public-web-apps-through-frontdoor-using-access-restrictions-advanced-filters/" rel="nofollow noreferrer">https://cloudacademy.com/lab/securing-public-web-apps-through-frontdoor-using-access-restrictions-advanced-filters/</a></p>
<p... | How to set up enhanced authorisation options in Azure Bot | azure|authorization|bots | 0 | 16 | 1 | 72,196,863 | 72,196,863 | 0 | true | 2022-05-11T07:12:00.603Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set up enhanced authorisation options in Azure Bot<p>I have an Bot Service in Azure and I would like to ask how to set up enhanced authorization optio... |
72,196,794 | Why div box appear at different height even is the specified is the same<p>Hi I am creating some div box in html which appear ad different height even if the specified in the css is the same
The code is the following and how is it is shown the boxes are at different height in the html page even if the height specified ... | <p>You can use flex rather than margin to set boxes at the same height. Wrap it with container div and remove the margin-left in my view it is not needed.</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... | Why div box appear at different height even is the specified is the same | html|css | 0 | 19 | 1 | 72,196,888 | 72,196,888 | 0 | true | 2022-05-11T07:09:07.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why div box appear at different height even is the specified is the same<p>Hi I am creating some div box in html which appear ad different height even if the... |
72,196,832 | Oracle Text error: DRG-10599: the colum is not indexed<pre><code>SELECT
c.ID AS "REFERENCIA",
c.CIF_NIF AS "CIF",
c.NUMERO_COMERCIO AS "COMERCIO",
CASE
WHEN c.RIESGO_REPUTACIONAL = 1 THEN 'Anexo 2B'
WHEN c.RIESGO_REPUTACIONAL = 3 THEN 'Anexo 2A'
END AS &... | <p>Looks like you'll have to create index as</p>
<pre><code>create index i1_cnae_lista on cnae (lista_cais) indextype is ctxsys.context;
</code></pre>
<hr />
<p>On the other hand, maybe you don't want to use Oracle Text. Is <code>contains</code> intentional, or ...?</p>
<p>Because, if you don't need Oracle Text, maybe ... | Oracle Text error: DRG-10599: the colum is not indexed | oracle | 0 | 160 | 2 | 72,196,958 | 72,196,958 | 0 | true | 2022-05-11T07:11:59.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Oracle Text error: DRG-10599: the colum is not indexed<pre><code>SELECT
c.ID AS "REFERENCIA",
c.CIF_NIF AS "CIF",
c.NUMERO_CO... |
72,196,262 | get data from a procedure and show in a table<p>these are the facts:</p>
<blockquote>
<ul>
<li>this procedure is an example</li>
</ul>
</blockquote>
<pre><code>
CREATE OR replace PROCEDURE Demo_test(
v_1 IN NUMBER DEFAULT NULL,
v_2 IN DATE DEFAULT NULL,
v_n IN VARCHA... | <p>In pseudo-code</p>
<pre><code>declare
rc sys_refcursor;
v1, v2, v3 number; -- ie, the datatypes of dat1,dat2,...,datn
begin
Demo_test(in_parameters, rc);
loop
fetch rc into v1,v2,v3;
exit when rc%notfound;
execute immediate 'insert into xtbl values (:1,:2,:3)' using v1,v,v3;
end loop;
... | get data from a procedure and show in a table | oracle|stored-procedures|plsql | 0 | 54 | 1 | 72,196,963 | 72,196,963 | 0 | true | 2022-05-11T06:21:16.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
get data from a procedure and show in a table<p>these are the facts:</p>
<blockquote>
<ul>
<li>this procedure is an example</li>
</ul>
</blockquote>
<pre><co... |
72,196,298 | C++ startup once, listen node input design issue<p>I’ve build a cpp program that performs the following workflow sequentially:</p>
<pre><code>Read serialized data (0.3 ms)
Receive search metadata (0.00.. ms)
Search data (0.01 ms)
Return search data(0.00.. ms)
</code></pre>
<p>Right now, I run the program with nodejs sh... | <p><a href="https://stackoverflow.com/a/12451277/4123703">You may call C++ directly from nodejs</a> which should save you from overhead either executing the shell or building the socket server.</p>
<p>Eg:
<code>int Feed(const char* searchMetadata)</code> which returns a key of data if you want multiple metadata being s... | C++ startup once, listen node input design issue | c++|node.js|shell|sockets | 0 | 45 | 1 | 72,197,081 | 72,197,081 | 0 | true | 2022-05-11T06:24:44.580Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
C++ startup once, listen node input design issue<p>I’ve build a cpp program that performs the following workflow sequentially:</p>
<pre><code>Read serialized... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.