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,202,302 | Oracle: is it possible to calculate actual storage size used by the data in a table?<p>I want to be able to report on the actual storage volume being used by data within a table, so that if for example I then remove <em>n</em>. rows of data (as part of a Data Deletion piece of work), I can then re-analyse the table sto... | <p>You probably want something based on the <a href="https://docs.oracle.com/database/121/ARPLS/d_space.htm#ARPLS68113" rel="nofollow noreferrer"><code>dbms_space.space_usage</code> procedure</a>. This will tell you how many blocks are 0-25% full, 25-50% full, 50-75% full, and 75-100% full, and completely full. I use... | Oracle: is it possible to calculate actual storage size used by the data in a table? | sql|oracle|oracle11g|oracle-sqldeveloper | 0 | 117 | 1 | 72,204,855 | 72,204,855 | 1 | true | 2022-05-11T13:52:50.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Oracle: is it possible to calculate actual storage size used by the data in a table?<p>I want to be able to report on the actual storage volume being used by... |
72,188,635 | Editing a Select Menu | Discord.js<p>I'm trying to get all the text channel in the guild and list them into a Select Menu and I'm getting some trouble.</p>
<p>Here is my code :</p>
<pre class="lang-js prettyprint-override"><code>const { PermissionOverwrites, Permissions, Collection, MessageEmbed, MessageActionRow, Mess... | <p>You need to add the select menu to an action row. If you don't know how visit this <a href="https://discordjs.guide/interactions/select-menus" rel="nofollow noreferrer">page</a> in the Discord.js Guide</p> | Editing a Select Menu | Discord.js | node.js|discord.js | 0 | 1,760 | 2 | 72,205,002 | 72,205,002 | 1 | true | 2022-05-10T14:56:29.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Editing a Select Menu | Discord.js<p>I'm trying to get all the text channel in the guild and list them into a Select Menu and I'm getting some trouble.</p>
<... |
72,204,941 | Get values from a dataframe based on a nested list in Python<p>I have a dataframe in Python called "Item_Table" and it looks like the below:</p>
<pre><code>--------------------------
item_id | item_description
--------------------------
N4 | Steel
M3 | Oil
B1 | Water
X9 | Coal
Z5 | Pl... | <p>You can try export the <code>item_id</code> and <code>item_description</code> to dictionary then loop the <code>orders</code></p>
<pre class="lang-py prettyprint-override"><code>d = df.set_index('item_id')['item_description'].to_dict()
orders_descriptions = [[d[o] for o in os] for os in orders]
</code></pre>
<pre><... | Get values from a dataframe based on a nested list in Python | python|python-3.x|pandas|dataframe|nested-lists | 0 | 193 | 3 | 72,205,027 | 72,205,027 | 1 | true | 2022-05-11T17:00:51.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get values from a dataframe based on a nested list in Python<p>I have a dataframe in Python called "Item_Table" and it looks like the below:</p>
<p... |
72,202,795 | How can I identify specific numbers in string, and create and populate another span with this number?<p>I have a span where the value possibilities are: "Showing 1 item" or "Showing x to y of z items". Z can be any positive number.</p>
<pre><code><div class="result-container">
&l... | <p>With some help in the comments I managed to arrive to a solution:</p>
<pre><code><div class="job-tile-result-container">
<span id="tile-search-results-label">Showing 1 to 10 of 33 items</span>
</div>
$(document).ready(function() {
$(".job-tile-result-contain... | How can I identify specific numbers in string, and create and populate another span with this number? | jquery|regex | 0 | 32 | 1 | 72,205,033 | 72,205,033 | 1 | true | 2022-05-11T14:25:24.490Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I identify specific numbers in string, and create and populate another span with this number?<p>I have a span where the value possibilities are: &quo... |
72,204,871 | Evaluate monthly fraction of yearly data - Python<p>I have a pandas dataframe as:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>1/1/2000</td>
<td>5</td>
</tr>
<tr>
<td>A</td>
<td>2/1/2000</td>
<td>10</td>
</tr... | <p>I think your data is missing another year to be representative, if you do not have just a single year in the DataFrame.</p>
<p>I just added one line for 2001:</p>
<pre><code>import pandas as pd
df['Date'] = pd.to_datetime(df['Date'])
print(df)
</code></pre>
<pre><code> ID Date Value
0 A 2000-01-01 5
... | Evaluate monthly fraction of yearly data - Python | python|pandas | 0 | 33 | 2 | 72,205,035 | 72,205,035 | 1 | true | 2022-05-11T16:54:35.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Evaluate monthly fraction of yearly data - Python<p>I have a pandas dataframe as:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<t... |
72,202,505 | React/Material UI: css content property<p>I want to set <code>content: ""</code> on my <code>i</code> element:</p>
<pre><code> "& i::before": {
content: ""
},
"& i::after": {
content: ""
},
</code></pre>
<p>The style is not applied and ... | <p>For this to work for me, I managed to do:</p>
<p><code>content: "''"</code></p>
<p>or</p>
<p><code>content: '""'</code></p>
<p>So, looks like using only one <code>''</code> or <code>""</code>, the code/browser doesn't understand you are setting an "empty" value.</p> | React/Material UI: css content property | css|reactjs|material-ui | 0 | 61 | 2 | 72,205,182 | 72,205,182 | 1 | true | 2022-05-11T14:06:55.160Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React/Material UI: css content property<p>I want to set <code>content: ""</code> on my <code>i</code> element:</p>
<pre><code> "& i::bef... |
72,204,979 | Submit the form without loading div<p>I am struggling to enter the form if the the div is not loaded, What I am trying is if the option "Grade B or Less" is selected then form should be able to submit and if "Grade A" is selected then next div to be loaded and then form to be submitted,</p>
<p>Here ... | <p>This is because your radio input with <code>name="function"</code> has the <code>required</code> attribute set. Despite not being visible, the form is still expecting this field to be completed.</p>
<p>The simplest solution here would be to either remove the <code>required</code> attribute or consider sett... | Submit the form without loading div | javascript|php | 0 | 26 | 1 | 72,205,213 | 72,205,213 | 1 | true | 2022-05-11T17:04:26.443Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Submit the form without loading div<p>I am struggling to enter the form if the the div is not loaded, What I am trying is if the option "Grade B or Less... |
72,204,795 | Visual Studio stuck on checking for updates on windows<p>The visual studio installer is stuck on checking for updates. So now I cannot modify a visual studio installation.</p>
<p><a href="https://i.stack.imgur.com/6BKaJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6BKaJ.png" alt="enter image descr... | <p>I got a useful hint from <a href="https://developercommunity.visualstudio.com/t/Visual-Studio-Installer-Checking-for-up/10037277#T-N10037573" rel="nofollow noreferrer">here</a> - it works:</p>
<blockquote>
<p>Just to recap for anyone getting here: This is not an issue with your
computer / your installation. There se... | Visual Studio stuck on checking for updates on windows | visual-studio | 0 | 318 | 2 | 72,205,226 | 72,205,226 | 1 | true | 2022-05-11T16:47:55.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Visual Studio stuck on checking for updates on windows<p>The visual studio installer is stuck on checking for updates. So now I cannot modify a visual studio... |
72,203,082 | SQL UPDATE From Other Database Sources In VB.NET<p>I want to update by taking the value from another table (IFGTS) in the column (PRSOBNET) and then adding that value with the one in the textbox in the sql2 button in the table (GSDTS) in the column (CIU) is it possible to do like screenshot result which I marked yellow... | <p>You could extract the database code from the button handlers, and then if you want to do both actions, call both extracted methods, something like this:</p>
<pre><code>Sub UpdateGsdts()
Try
Dim sql As String = "UPDATE GSDTS SET CIUB = CIU, CIU = NULL, DPRB = DPR, DPR = NULL WHERE QTY > 0"
... | SQL UPDATE From Other Database Sources In VB.NET | sql|vb.net|visual-studio-2010|oledb|oledbcommand | 0 | 54 | 1 | 72,205,295 | 72,205,295 | 1 | true | 2022-05-11T14:45:17.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL UPDATE From Other Database Sources In VB.NET<p>I want to update by taking the value from another table (IFGTS) in the column (PRSOBNET) and then adding t... |
72,199,156 | TaskCanceledException: Cancel or timeout?<p>I only want to use CancellationTokenSource for timeout and cancellation handling.</p>
<p>How to distinguish if a TaskCanceledException occured due to a timeout or due to manual cancellation?</p>
<p>Here is a simplified example. In the real program I neither know if Cancellati... | <p>AFAIK this is the most commonly used pattern:</p>
<pre><code>Task.Run(async () =>
{
try
{
await SomeClass.DoSomething(cts.Token);
}
catch (OperationCanceledException) when (cts.IsCancellationRequested)
{
// cts cancellation occurred
}
catch (OperationCanceledException)
... | TaskCanceledException: Cancel or timeout? | c#|async-await|timeout|cancellationtokensource|cancellation-token | 0 | 214 | 1 | 72,205,341 | 72,205,341 | 1 | true | 2022-05-11T10:06:42.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
TaskCanceledException: Cancel or timeout?<p>I only want to use CancellationTokenSource for timeout and cancellation handling.</p>
<p>How to distinguish if a ... |
72,202,452 | how to limit the number of tasks run simultaneously in a specific dag on airflow?<p>I have a <code>Dag</code> in <code>air-flow</code> looks like that:</p>
<pre><code>start >> [task1,task2,....task16] >> end
</code></pre>
<p>I want to limit the tasks that running simultaneously in this dag to be 4 for examp... | <p>If you look at the description of the parameter you will find out that you can configure it per dag:</p>
<p><a href="https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#max-active-tasks-per-dag" rel="nofollow noreferrer">https://airflow.apache.org/docs/apache-airflow/stable/configurations-r... | how to limit the number of tasks run simultaneously in a specific dag on airflow? | python|airflow | 0 | 323 | 1 | 72,205,363 | 72,205,363 | 1 | true | 2022-05-11T14:02:24.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to limit the number of tasks run simultaneously in a specific dag on airflow?<p>I have a <code>Dag</code> in <code>air-flow</code> looks like that:</p>
<... |
72,171,753 | Multi-values needs to be exported to excel to different rows using lotus script<p>I was trying to export the Multi-valued field but couldn't able to achieve it. i tried Ubound to export but the scenario is I need the 1st value in 1st row and 2nd value in 2nd row vice versa. Please help me to solve this. I'm using excel... | <p>Lets assume the following document:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Fieldname</th>
<th>Value 0</th>
<th>Value 1</th>
<th>Value 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>FirstField</td>
<td>Value0-First</td>
<td></td>
<td></td>
</tr>
<tr>
<td>SecondField</td>
<td>Value0-Secon... | Multi-values needs to be exported to excel to different rows using lotus script | lotus-notes|lotus-domino|lotusscript | 0 | 80 | 3 | 72,205,445 | 72,205,445 | 1 | true | 2022-05-09T12:07:58.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multi-values needs to be exported to excel to different rows using lotus script<p>I was trying to export the Multi-valued field but couldn't able to achieve ... |
72,204,650 | <mat-table> pagination runs into conflict with sticky when deleting row<p>I have a problem, can not find anything online that was helpful to me and therefore hope that someone can help me here.</p>
<p>I am building a table which is dynamically filled. The user has the possibility to delete single rows of the table afte... | <p>You need to use trackBy, lucky <code>MatTable</code> provides that as Input
<a href="https://material.angular.io/components/table/api#MatTable" rel="nofollow noreferrer">https://material.angular.io/components/table/api#MatTable</a></p>
<p><code>NgForOf</code> needs to uniquely identify items in the iterable to corre... | <mat-table> pagination runs into conflict with sticky when deleting row | angular|angular-material | 0 | 106 | 1 | 72,205,474 | 72,205,474 | 1 | true | 2022-05-11T16:36:22.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
<mat-table> pagination runs into conflict with sticky when deleting row<p>I have a problem, can not find anything online that was helpful to me and therefore... |
72,205,428 | Model class constructor in Typescript<p>I am new to typescript and I am trying to create a "model" class.</p>
<p>The constructor should accept a list of properties (that come from the database), and any of them should be optional.</p>
<p>Here is the code so far:</p>
<pre><code>export type UserRole = "adm... | <p>I would suggest to use following utility type from <a href="https://stackoverflow.com/a/55483981/8613630">here</a>:</p>
<pre><code>type NonFunctionPropertyNames<T> = {
[K in keyof T]: T[K] extends Function ? never : K
}[keyof T];
type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<... | Model class constructor in Typescript | javascript|node.js|typescript|constructor | 0 | 384 | 2 | 72,205,486 | 72,205,486 | 1 | true | 2022-05-11T17:45:14.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Model class constructor in Typescript<p>I am new to typescript and I am trying to create a "model" class.</p>
<p>The constructor should accept a li... |
72,205,498 | How can we mock test IntegrationFlow in spring boot. I am using Spring Integration inside a Spring boot app using Spring Integration File<p>I have a task where I need to implement IntegrationFlow in Spring boot app and for that I created one project. Below are 3 classes.</p>
<p><strong>IntegrationConfig.java</strong></... | <p>A couple notes for your configuration so far:</p>
<p>The <code>FileReadingMessageSource</code> produces <code>File</code> as payload for messages.
The <code>FileWritingMessageHandler</code> can deal with <code>File</code> payloads.
Therefore you don't need that <code>transform()</code> in between.</p>
<p>Although yo... | How can we mock test IntegrationFlow in spring boot. I am using Spring Integration inside a Spring boot app using Spring Integration File | java|spring|spring-boot|spring-integration|spring-integration-dsl | 0 | 130 | 1 | 72,205,589 | 72,205,589 | 1 | true | 2022-05-11T17:51:07.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can we mock test IntegrationFlow in spring boot. I am using Spring Integration inside a Spring boot app using Spring Integration File<p>I have a task whe... |
72,205,547 | How to access outlook mailbox using Python<p>I am doing a project that makes a post request when the mailbox receives an email, the only thing that I need is access to the mailbox. The mail address is from office 365. I have already tried access using Microsoft Graph API, exchange library, and IMAP library but with no ... | <p><a href="https://docs.microsoft.com/en-us/graph/use-the-api" rel="nofollow noreferrer">Use the Microsoft Graph API</a>. You may find the <a href="https://www.youtube.com/watch?v=L-gm25wusIQ" rel="nofollow noreferrer">Getting Started with Microsoft Graph and Mail API</a> video on YouTube helpful.</p> | How to access outlook mailbox using Python | python|email|automation|outlook|office365 | 0 | 984 | 1 | 72,205,635 | 72,205,635 | 1 | true | 2022-05-11T17:54:35.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to access outlook mailbox using Python<p>I am doing a project that makes a post request when the mailbox receives an email, the only thing that I need is... |
72,204,066 | BigQuery Transpose JSON into columns<p>I'm pretty new to BigQuery and I'm trying to extract some information from a simple JSON field and transpose it into columns.</p>
<p>This is an example of the json on bigquery.</p>
<pre><code>[
{
"name": "pack",
"value": "Classic Pack&q... | <p>Consider below approach</p>
<pre><code>select * except(json_col) from (
select json_col,
json_value(kv, '$.name') col,
json_value(kv, '$.value') value
from your_table,
unnest(json_extract_array(json_col)) kv
)
pivot(any_value(value) for col in ('pack', 'pack_id', 'pack_count'))
</code></pre>
<p>w... | BigQuery Transpose JSON into columns | sql|json|google-bigquery | 0 | 224 | 1 | 72,205,720 | 72,205,720 | 1 | true | 2022-05-11T15:51:37.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
BigQuery Transpose JSON into columns<p>I'm pretty new to BigQuery and I'm trying to extract some information from a simple JSON field and transpose it into c... |
72,202,524 | Fetching Realtime Database in Cloud Function return the wrong object<p>I'm trying to fetch data from my Realtime database but when I do, it return my this object:</p>
<blockquote>
<p>{"domain":{"domain":null,"_events":{},"_eventsCount":3,"members":[]}} instead of someth... | <p>The problem is that your <code>users</code> variable is actually a <code>Promise</code>. To log it inside the code, you have to either <code>await</code> it, or use <code>then()</code>.</p>
<p>It's probably easiest to start using <code>async</code> and <code>await</code> here, which would make your code look like th... | Fetching Realtime Database in Cloud Function return the wrong object | node.js|firebase-realtime-database|google-cloud-functions|firebase-admin | 0 | 34 | 2 | 72,205,724 | 72,205,724 | 1 | true | 2022-05-11T14:07:53.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Fetching Realtime Database in Cloud Function return the wrong object<p>I'm trying to fetch data from my Realtime database but when I do, it return my this ob... |
72,205,843 | Group nested array objects to parent key in JQ<p>I have JSON coming from an external application, formatted like so:</p>
<pre><code> {
"ticket_fields": [
{
"url": "https://example.com/1122334455.json",
"id": 1122334455,
"type": &quo... | <p>You need two nested iterations, one in each array. Save the value of <code>.id</code> in a variable to access it later.</p>
<pre class="lang-sh prettyprint-override"><code>jq -r '
.ticket_fields[] | select(.type=="tagger") | .id as $id
| .custom_field_options[] | [$id, .name, .value]
| @tsv
'
</code>... | Group nested array objects to parent key in JQ | jq | 0 | 172 | 1 | 72,205,900 | 72,205,900 | 1 | true | 2022-05-11T18:18:35.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Group nested array objects to parent key in JQ<p>I have JSON coming from an external application, formatted like so:</p>
<pre><code> {
"ticket_f... |
72,205,827 | how can I change json "dict" into a consumable format for aws boto3 tagset list of dicts<p>I have a JSON file that contains a tagset (key, values) in the following format:</p>
<pre><code>{"Key1":"ValueA", "Key2":"ValueB"}
</code></pre>
<p>The boto3 S3 <code>put_bucket_tagging</co... | <p>You can get both the key and the value in your iteration by using <code>.items()</code>:</p>
<pre><code>content=[]
for k,v in data.items():
content.append({"Key":k, "Value":v})
mynewtagset = "'Tagset': "+ str(content)
</code></pre>
<p>You could also do this using list comprehens... | how can I change json "dict" into a consumable format for aws boto3 tagset list of dicts | python|json|list|dictionary|boto3 | 0 | 26 | 1 | 72,205,934 | 72,205,934 | 1 | true | 2022-05-11T18:17:37.193Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can I change json "dict" into a consumable format for aws boto3 tagset list of dicts<p>I have a JSON file that contains a tagset (key, values) in the fol... |
72,201,107 | How Spring-boot application will know that input is in the form of XML or JSON payload?<p>When we get input from any other Service/API in our own microservice, how our spring-boot application will know that the input type is either XML type or JSON type payload internally. And. After it is getting the actual kind of pa... | <p>You can read the content type request header as an argument in your controller's class mapping method:</p>
<pre><code>public class APIController {
@GetMapping(
public String getMethod(@RequestBody String body, @RequestHeader("Content-type") String contentType) {
}
}
</code></pre> | How Spring-boot application will know that input is in the form of XML or JSON payload? | java|spring|spring-boot|spring-data-jpa | 0 | 104 | 1 | 72,205,979 | 72,205,979 | 1 | true | 2022-05-11T12:30:43.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How Spring-boot application will know that input is in the form of XML or JSON payload?<p>When we get input from any other Service/API in our own microservic... |
72,202,550 | Is it possible to achieve such a refactor in YAML<p>I'm working on a concourse pipeline and I need to duplicate a lot of code in my YAML so I'm trying to refactor it so it is easily maintainable and I don't end up with thousands of duplicates lines/blocks.</p>
<p>I have achieve the following yaml file after what seems ... | <p>All you need to do is map inputs on individual tasks, like this:</p>
<pre><code>add-rotm-points: &add-rotm-points
task: add-rotm-points
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ((registre))/polygone/concourse/cf-cli-python3
tag: 0.0.1
... | Is it possible to achieve such a refactor in YAML | yaml|refactoring|concourse|yaml-anchors | 0 | 57 | 1 | 72,206,029 | 72,206,029 | 1 | true | 2022-05-11T14:09:06.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it possible to achieve such a refactor in YAML<p>I'm working on a concourse pipeline and I need to duplicate a lot of code in my YAML so I'm trying to ref... |
72,205,948 | cartesian product on two tables<p>I'm trying to create a result set of table names and column names. In table A I have the list of table names and in Table B I have the list of column names. Each table should have the full list of columns. So:</p>
<ul>
<li>Table A</li>
</ul>
<div class="s-table-container">
<table clas... | <p>Use this:</p>
<pre><code>select A.table_name, B.column_name from A, B;
</code></pre> | cartesian product on two tables | sql|cartesian-product | 0 | 152 | 2 | 72,206,092 | 72,206,092 | 1 | true | 2022-05-11T18:27:27.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
cartesian product on two tables<p>I'm trying to create a result set of table names and column names. In table A I have the list of table names and in Table ... |
72,198,502 | Check the values of max.poll.interval.ms and max.poll.records<p>In order to prevent Kafka rebalancing, I want to increase <code>max.poll.interval.ms</code> and decrease <code>max.poll.records</code>.
Also, I understand that by default is configured to:</p>
<pre><code>max.poll.records = 500
max.poll.interval.ms = 300000... | <p>Assuming you are using a JVM-based client, then all <code>ConsumerConfig</code> properties are printed from log4j upon Consumer instantiation, so ensure your logging client is setup properly.</p>
<p>For any other client, you'd have to dig into the source-code for the defaults, assuming they would be overridden.</p> | Check the values of max.poll.interval.ms and max.poll.records | apache-kafka|rebalancing | 0 | 376 | 1 | 72,206,117 | 72,206,117 | 1 | true | 2022-05-11T09:22:41.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Check the values of max.poll.interval.ms and max.poll.records<p>In order to prevent Kafka rebalancing, I want to increase <code>max.poll.interval.ms</code> a... |
72,185,001 | How can I create new buttons with buttons and plot them in QGraphicScene with an array in PyQt5<p>I have an application where I have several button widgets on a QGraphicScene and I am trying to make this button widgets to make new buttons on QGraphicScene when they are clicked.</p>
<p>My code is as follows:</p>
<blockq... | <p>The <code>SeveralButtons</code> class should not be responsible of creating new buttons <em>outside</em> itself.</p>
<p>You should emit that signal and connect it to the function of its parent, which will then create a <em>new</em> instance of the same class and also connect the signal.</p>
<pre class="lang-py prett... | How can I create new buttons with buttons and plot them in QGraphicScene with an array in PyQt5 | python|oop|user-interface|pyqt|pyqt5 | 0 | 56 | 1 | 72,206,237 | 72,206,237 | 1 | true | 2022-05-10T10:50:42.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I create new buttons with buttons and plot them in QGraphicScene with an array in PyQt5<p>I have an application where I have several button widgets o... |
72,205,483 | Angular: Setting Styles on @Component dynamically<p>Angular 13</p>
<p>On my <strong>@Component</strong> I have this set up for <strong>dynamic values</strong>. Doesn't work</p>
<pre><code>styles: [
`
.k-daterangepicker .k-dateinput {
width: {{myWidth}};
}
`,
],
</code></pre>
<p>How d... | <p>If your component template looks something like this:</p>
<pre class="lang-html prettyprint-override"><code><div class="k-daterangepicker k-dateinput">
...
</div>
</code></pre>
<p>you can add a style binding like this:</p>
<pre class="lang-html prettyprint-override"><code>...
<div class=... | Angular: Setting Styles on @Component dynamically | angular|angular-components | 0 | 280 | 1 | 72,206,247 | 72,206,247 | 1 | true | 2022-05-11T17:49:45.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular: Setting Styles on @Component dynamically<p>Angular 13</p>
<p>On my <strong>@Component</strong> I have this set up for <strong>dynamic values</strong... |
72,206,236 | How can I group and count observations made by decade in a dataset that has the years set as individual values?<p>I have the folllowing dataset:</p>
<pre><code># A tibble: 90 × 2
decade n
<dbl> <int>
1 1930 13
2 1931 48
3 1932 44
4 1933 76
5 1934 73
6 1935 63
... | <p>We could use the modulo operator <code>%%</code>:</p>
<pre><code>library(dplyr)
df %>%
group_by(decade = decade - decade %% 10) %>%
summarise(n = sum(n))
</code></pre>
<pre><code> decade n
<dbl> <int>
1 1930 505
</code></pre> | How can I group and count observations made by decade in a dataset that has the years set as individual values? | r|dplyr|tidyr | 0 | 26 | 1 | 72,206,301 | 72,206,301 | 1 | true | 2022-05-11T18:54:47.407Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I group and count observations made by decade in a dataset that has the years set as individual values?<p>I have the folllowing dataset:</p>
<pre><co... |
72,206,087 | check if someone already answered the post Question in Django<p>I am building a discussion Forum where user can ask question and can reply on other's questions.
I want to show "Answered" if the Question is already answered and show "Not answered yet" if Question is not answered by any user</p>
<p>M... | <p>You can access how many replies a post has in your template with <code>post.replie_set.count</code> (assuming that you are looping over the posts with <code>{% for post in posts %}</code>. With this into account you can display the info that you want inside an <code>if</code> statement block in your <code>forum.html... | check if someone already answered the post Question in Django | django | 0 | 28 | 1 | 72,206,361 | 72,206,361 | 1 | true | 2022-05-11T18:40:38.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
check if someone already answered the post Question in Django<p>I am building a discussion Forum where user can ask question and can reply on other's questio... |
72,200,244 | What to send as Content<p>In my application, I save data to Firebase and to local storage using the Room library. With Firebase, everything is clear to me. But with Rom I had questions. I can't figure out what to pass to the class parameter.</p>
<p>PacketsLocalDataSource.kt</p>
<pre><code>class PacketsLocalDataSource(v... | <p>You need to pass Context to PacketsLocalDataSource constructor. In turn, the context must be passed when creating an instance of the class PocketScoutContainer. So:</p>
<pre><code>class PocketScoutContainer(context: Context) {
//...
private val packetsLocalDataSource = PacketsLocalDataSource(context)
//.... | What to send as Content | kotlin|save|android-room | 0 | 37 | 1 | 72,206,390 | 72,206,390 | 1 | true | 2022-05-11T11:27:59.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What to send as Content<p>In my application, I save data to Firebase and to local storage using the Room library. With Firebase, everything is clear to me. B... |
72,206,364 | How to insert my text from an input field into a Javascript template literal but the result is undefined<p>I created an input field where you can enter text and I'm trying to insert that text into a template literal. I then want to use them in other scripts. The issue I'm facing is that after getting the text from the ... | <p>You are creating the <code>scriptTemplate</code> value on script initialization while you should try creating it from within the function itself. This way it gets created after every call to <code>zipFile</code>:</p>
<pre><code> function zipFile(){
const scriptTemplate = `
${inputText};
... | How to insert my text from an input field into a Javascript template literal but the result is undefined | javascript|html | 0 | 86 | 3 | 72,206,432 | 72,206,432 | 1 | true | 2022-05-11T19:06:08.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to insert my text from an input field into a Javascript template literal but the result is undefined<p>I created an input field where you can enter text ... |
72,202,216 | Extract data from script tag [HTML] using BeautifulSoup in Python<p>I want to Extract data from a variable which is inside of a script:</p>
<pre><code><script>
var Itemlist = 'null';
var ItemData = '[{\"item_id\":\"107\",\"id\":\"79\",\"line_item_no\":\"1\&qu... | <p>To get the data from the <code><script></code> you can use this example:</p>
<pre class="lang-py prettyprint-override"><code>import re
import json
from bs4 import BeautifulSoup
html_data = """
<script>
var Itemlist = 'null';
var ItemData = '[{\"item_id\":\"107\",\"... | Extract data from script tag [HTML] using BeautifulSoup in Python | python|web-scraping|beautifulsoup|session-cookies | 0 | 138 | 1 | 72,206,433 | 72,206,433 | 1 | true | 2022-05-11T13:46:17.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extract data from script tag [HTML] using BeautifulSoup in Python<p>I want to Extract data from a variable which is inside of a script:</p>
<pre><code><sc... |
72,206,420 | Can git detect when a file's timestamp but not its contents has changed?<p>Is there a way in git to show me a list of files that have updated timestamps but no change in their contents?</p>
<p>Every now and then I accidentally hit "Save" in my editor on a file that I'm just viewing. When I run "git stat... | <p>That has nothing to do with git, it's between you, your editor and your project setup (your makefile). Modern editors like VS Code won't actually save files that don't have changes.</p>
<p>That said, git intentionally doesn't use dates for anything. Linus famously went on (many) long tirades calling people who asked... | Can git detect when a file's timestamp but not its contents has changed? | git|makefile|timestamp | 0 | 43 | 1 | 72,206,545 | 72,206,545 | 1 | true | 2022-05-11T19:10:53.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can git detect when a file's timestamp but not its contents has changed?<p>Is there a way in git to show me a list of files that have updated timestamps but ... |
72,201,289 | Can't do svn checkout because of TLS error<p>Running:</p>
<pre><code>svn checkout https://hostname
</code></pre>
<p>gives:</p>
<pre><code>svn: E170013: Unable to connect to a repository at URL 'http://hostname'
svn: E120171: Error running context: An error occurred during SSL communication
</code></pre>
<p>Running this... | <p>Try with <code>--trust-server-cert</code> , with an understanding that you are bypassing a certificate check.</p>
<p>SVN doc: <a href="https://svnbook.red-bean.com" rel="nofollow noreferrer">https://svnbook.red-bean.com</a></p> | Can't do svn checkout because of TLS error | linux|ubuntu|ssl|curl|svn | 0 | 969 | 2 | 72,206,548 | 72,206,548 | 1 | true | 2022-05-11T12:43:38.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't do svn checkout because of TLS error<p>Running:</p>
<pre><code>svn checkout https://hostname
</code></pre>
<p>gives:</p>
<pre><code>svn: E170013: Unabl... |
72,206,453 | How do I loop through a XML file with repeating nodes with PHP<p>I would like to use PHP to loop through an XML file from an API response, to create an array with the XML folder nodes <code>id</code> and <code>name</code>, sort the array content descending (by id), and echo/return the <code>name</code> content.</p>
<p>... | <p>You can use XPath, which allows you to search for a list of the <code><folder></code> nodes. Using <code>//folder</code> will search at all levels of the document and saves you having to worry about nested <code>foreach</code> loops.</p>
<p>You can then use <code>$folder->id</code> to fetch the <code><i... | How do I loop through a XML file with repeating nodes with PHP | php|xml|loops|simplexml | 0 | 36 | 1 | 72,206,557 | 72,206,557 | 1 | true | 2022-05-11T19:14:21.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I loop through a XML file with repeating nodes with PHP<p>I would like to use PHP to loop through an XML file from an API response, to create an array... |
72,206,250 | Parse the file fullpath and name into c# console app<p>I try to implement an app which would allow me to convert a PPT or PPTX files into jpgs and I plan to use it globally on my pc. The problem I am facing is that I don't know how to parse the file I open in the app. Basically I need the app to get the fullpath and fi... | <p>Concerning the parsing I think you've already found Microsoft's way to do this by using code from <code>Microsoft.Office.Interop.PowerPoint</code>.</p>
<p>But you're loading a JPG instead of a PPT or PPTX file. Drag & drop should also be possible by using <code>args</code> as (at least Windows) will run the appl... | Parse the file fullpath and name into c# console app | c#|file|parsing|powerpoint | 0 | 44 | 1 | 72,206,560 | 72,206,560 | 1 | true | 2022-05-11T18:55:56.497Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Parse the file fullpath and name into c# console app<p>I try to implement an app which would allow me to convert a PPT or PPTX files into jpgs and I plan to ... |
72,205,614 | Shorter substitute for tab_row_group when rows are large<p>I love <code>gt</code> package of R but I am having trouble in coming up with a crisp code for row grouping that is suitable for large tables and where row group labels are unknown.</p>
<p>Consider this toy example, and since this is a small data.table it looks... | <p>you can use <strong>groupname_col</strong> inside the <strong>gt</strong> function</p>
<pre><code>dt %>%
gt(groupname_col = c("date")) %>%
cols_hide(columns = c(datetime,date))
</code></pre>
<p><a href="https://i.stack.imgur.com/7Lr6b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur... | Shorter substitute for tab_row_group when rows are large | r|data.table|gt | 0 | 52 | 1 | 72,206,563 | 72,206,563 | 1 | true | 2022-05-11T18:00:40.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Shorter substitute for tab_row_group when rows are large<p>I love <code>gt</code> package of R but I am having trouble in coming up with a crisp code for row... |
72,206,580 | PLSQL error PLS-00201: identifier must be declared<p>I am working on a games users database. I am trying to create a function wich returns the number of users who live in a state (requested when executing the function). So:</p>
<pre><code>CREATE OR REPLACE FUNCTION userNumber(v_state users.state%type)
RETURN number
AS
... | <p>"Florida" is a string, so you'll have to enclose substitution variable into single quotes:</p>
<pre><code>v_state users.state%type := '&state';
</code></pre> | PLSQL error PLS-00201: identifier must be declared | oracle|plsql|pls-00201 | 0 | 761 | 1 | 72,206,612 | 72,206,612 | 1 | true | 2022-05-11T19:24:39.723Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PLSQL error PLS-00201: identifier must be declared<p>I am working on a games users database. I am trying to create a function wich returns the number of user... |
72,201,825 | Calculate the number of hexes between two hexes on a hex grid?<p><a href="https://i.stack.imgur.com/QMsaS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QMsaS.png" alt="enter image description here" /></a></p>
<p>Using the hexgrid and coordinates above, I am trying to find a consistent formula to ca... | <p>Switched from my x,y to q,r,s coordinates by</p>
<pre><code>q=x
r=y-(x+(ISODD(x)))/2
s=-r-q
</code></pre>
<p>then used this formula:</p>
<pre><code>=max(abs(q1-q2) + abs(r1-r2) + abs(s1-s2)) / 2
</code></pre>
<p>hopefully this helps someone using an even-q grid</p> | Calculate the number of hexes between two hexes on a hex grid? | google-sheets|spreadsheet|hexagonal-tiles | 0 | 55 | 1 | 72,206,642 | 72,206,642 | 1 | true | 2022-05-11T13:21:29.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Calculate the number of hexes between two hexes on a hex grid?<p><a href="https://i.stack.imgur.com/QMsaS.png" rel="nofollow noreferrer"><img src="https://i.... |
72,202,535 | simulate separate alpha map in glTF<p>I have an existing 3D application that was developed back in the days of the ThreeJS r92 that made use of a separate alpha map to simulate holes cut in wooden panels. This allowed re-use of a high quality woodgrain texture across all models, while using easily compressible black an... | <p>You could export the GLTF with only the base color. Once imported into Three.js, you can manually assign the black/white texture as the <a href="https://threejs.org/docs/?q=meshstandard#api/en/materials/MeshStandardMaterial.alphaMap" rel="nofollow noreferrer">material's <code>.alphaMap</code> property</a>.</p>
<pre>... | simulate separate alpha map in glTF | three.js|gltf | 0 | 80 | 1 | 72,206,674 | 72,206,674 | 1 | true | 2022-05-11T14:08:24.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
simulate separate alpha map in glTF<p>I have an existing 3D application that was developed back in the days of the ThreeJS r92 that made use of a separate al... |
72,206,577 | How to merge elements in objects inside of array and returned unique objects with updated data<p>my question is how I can merge elements in array of objects and return array with unique objects. I was trying to use reduce but it's looks like I missing something and it's time to ask for hint.
So how you can see I need m... | <p>Working on the assumption that <code>elements</code> is the only thing that actually varies here, and that you can't switch back from <code>false</code> to <code>true</code> (since that what it seems like you are going for), you'd need to iterate over the key-value pairs in elements and set it to the <code>originalV... | How to merge elements in objects inside of array and returned unique objects with updated data | javascript|node.js|arrays|function|object | 0 | 39 | 1 | 72,206,697 | 72,206,697 | 1 | true | 2022-05-11T19:24:35.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to merge elements in objects inside of array and returned unique objects with updated data<p>my question is how I can merge elements in array of objects ... |
72,206,425 | PHP Grabbing Content between 2 lines<p>Right now I use a PHP snippet to grab some content from a website with the following code, and show the content in my project and its work good.</p>
<pre><code><?php
$lines = file ("https://the-url.com");
for ($i = 1664; $i <= 2325; $i++) {
echo $lines[$i];
}
?&... | <p>PHP only executes <strong>once</strong>, at page load. This means that for this, you would need to use JavaScript instead of PHP, or you can only get the code in the middle of the site will only be grabbed once every page load.</p>
<p>You can use this code for PHP, though. It takes the content in between the <code>&... | PHP Grabbing Content between 2 lines | php|html | 0 | 40 | 1 | 72,206,799 | 72,206,799 | 1 | true | 2022-05-11T19:11:13.760Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP Grabbing Content between 2 lines<p>Right now I use a PHP snippet to grab some content from a website with the following code, and show the content in my ... |
72,206,660 | Power BI Oracle OLEDB need a where clause to get the first day of the year<p>using Power BI to connect to Oracle database server 19c using this connection: provider=OraOLEDB.Oracle.1;data source=gencdbp.domain.pri:1521/GAEN</p>
<p>I need a SQL statement that limits the rows so I don't have to hardcode it.</p>
<p>This w... | <p>I don't know tool you use (Power BI), but - have a look at the following example:</p>
<p>Sample table that contains a column whose datatype matches the one you specified:</p>
<pre><code>SQL> create table test (datecreated timestamp(6));
Table created.
</code></pre>
<p>Insert sample value:</p>
<pre><code>SQL> ... | Power BI Oracle OLEDB need a where clause to get the first day of the year | oracle|powerbi-desktop | 0 | 50 | 1 | 72,206,909 | 72,206,909 | 1 | true | 2022-05-11T19:31:00.917Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Power BI Oracle OLEDB need a where clause to get the first day of the year<p>using Power BI to connect to Oracle database server 19c using this connection: p... |
72,182,758 | React Native suddenly throwing May 09 2022<p>I am currently working on a React Native project that has been previously worked on by other devs. it was compiling fine as before May 09 2022 then I tried to compile it now and it's now throwing</p>
<pre><code>BUILD FAILED in 41s
error Failed to install the app. Make sure ... | <p>I am not an expert in react native, I only started using it and I also have the same issue from 9th may 2022. But I am able to fixed it.</p>
<p>You can follow the below steps and may be it will work for you too.</p>
<p>Open this file node_modules/react-native-fbsdk-next/android/build.gradle and change Line no 48 wit... | React Native suddenly throwing May 09 2022 | android|ios|reactjs|react-native|mobile | 0 | 145 | 1 | 72,206,996 | 72,206,996 | 1 | true | 2022-05-10T08:09:44.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React Native suddenly throwing May 09 2022<p>I am currently working on a React Native project that has been previously worked on by other devs. it was compil... |
72,206,993 | How to res.sendFile whilst res.rendering an HTML that uses the sent file in Express.js?<p>I am trying to create a file server that use node.js and Express. I have the system currently set up so that each user has a file directory. I currently have it set so that the whole file system is hosted using</p>
<pre><code>app.... | <p>Forget about replacing <code>express.static</code> with <code>sendFile</code>. That's a red herring.</p>
<p>If you want to allow only authenticated users to see an <em>anything</em>, then add middleware that checks to see if they are authenticated on the route that serves up whatever the <em>anything</em> is.</p>
<p... | How to res.sendFile whilst res.rendering an HTML that uses the sent file in Express.js? | javascript|node.js|express | 0 | 40 | 1 | 72,207,059 | 72,207,059 | 1 | true | 2022-05-11T20:01:35.630Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to res.sendFile whilst res.rendering an HTML that uses the sent file in Express.js?<p>I am trying to create a file server that use node.js and Express. I... |
72,207,077 | finding max value of a struct construction inside vector c++<pre><code>enum class comp {
age,
weight
};
struct person {
int age;
int weight;
static auto max(std::vector<person> x, comp(y)) {
if (comp(y) == comp::age) {
for (person e : x) {
auto max = 0;
... | <p>here is a corrected version of your code. As cory post shows you can do this with standard algorithms in a much cleaner way</p>
<pre><code>struct person {
int age;
int weight;
static int max(std::vector<person> x, comp y) {
if (y == comp::age) {
for (person e : x) {
... | finding max value of a struct construction inside vector c++ | c++|algorithm|class|iterator | 0 | 80 | 3 | 72,207,226 | 72,207,226 | 1 | true | 2022-05-11T20:09:42.607Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
finding max value of a struct construction inside vector c++<pre><code>enum class comp {
age,
weight
};
struct person {
int age;
int weight;
... |
72,205,555 | Looking for Spring Cloud ECS Connector Documentation<p>I'm trying to set up connection to a file storage bucket with Spring Cloud ECS Connector</p>
<pre><code>import com.emc.ecs.connector.spring.S3Connector;
public S3Connector s3() {
S3Connector result = this.connectionFactory().service(S3Connector.class);
... | <p>Here's the project page: <a href="https://github.com/spiegela/spring-cloud-ecs-connector" rel="nofollow noreferrer">https://github.com/spiegela/spring-cloud-ecs-connector</a></p>
<p><a href="https://github.com/spiegela/spring-cloud-ecs-connector/blob/1caee1ac74bd2d0b59d9d46db3ca848e33364e2f/src/main/java/com/emc/ecs... | Looking for Spring Cloud ECS Connector Documentation | java|spring-boot|amazon-s3|spring-cloud-connectors | 0 | 47 | 1 | 72,207,243 | 72,207,243 | 1 | true | 2022-05-11T17:55:27.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Looking for Spring Cloud ECS Connector Documentation<p>I'm trying to set up connection to a file storage bucket with Spring Cloud ECS Connector</p>
<pre><cod... |
72,203,988 | RPM: macros for /usr/local prefix<p>I have not found in <a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/" rel="nofollow noreferrer">https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/</a> any details on macros that can operate with directory hieararchy under <code>/usr/loca... | <p>Use of <code>/usr/local/</code> is discouraged by Fedora; if you're using RPMs with unique names, you'll never have to worry about conflicting with globally installed software.</p>
<p>From <a href="https://docs.fedoraproject.org/en-US/packaging-guidelines" rel="nofollow noreferrer">https://docs.fedoraproject.org/en-... | RPM: macros for /usr/local prefix | rpm|rpmbuild|rpm-spec | 0 | 69 | 1 | 72,207,301 | 72,207,301 | 1 | true | 2022-05-11T15:46:31.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
RPM: macros for /usr/local prefix<p>I have not found in <a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/" rel="nofollow noreferr... |
72,207,300 | Prints id of all passed tasks in Json file using bash<p>I have a Json file like below,</p>
<pre><code>{
"tasks": [
{
"id": "nightly_1652299200",
"repo": "tx/tx5",
"branch": "dev",
"type": "HealthCheck"... | <p>Using <code>jq</code>:</p>
<pre class="lang-sh prettyprint-override"><code>jq -r '.tasks | .[] | select (.state == "Passed") | .id' file.json
</code></pre> | Prints id of all passed tasks in Json file using bash | json|bash|shell|jq | 0 | 30 | 1 | 72,207,348 | 72,207,348 | 1 | true | 2022-05-11T20:32:42.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Prints id of all passed tasks in Json file using bash<p>I have a Json file like below,</p>
<pre><code>{
"tasks": [
{
"id": &q... |
72,207,079 | Mysql query to get the distinct count by current year and last year on the same date<p>I am trying to get the distinct count of (ordno,partno) by the date for current year and last year..Please find below the DDL for the input and the output tables.</p>
<pre><code>Create table input
(ordno varchar(20),
partno varchar(4... | <p>Your expected result and create table statement and data examples doesn't match each other.</p>
<p>I used proper date datatype and used <a href="https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_date-format" rel="nofollow noreferrer">DATE_FORMAT</a> to give your expected format.</p>
<p>T... | Mysql query to get the distinct count by current year and last year on the same date | mysql|mysql-5.6 | 0 | 34 | 1 | 72,207,351 | 72,207,351 | 1 | true | 2022-05-11T20:09:45.683Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mysql query to get the distinct count by current year and last year on the same date<p>I am trying to get the distinct count of (ordno,partno) by the date fo... |
72,207,273 | Lowest value in a month using Pandas<p>I am tryin to use python and pandas to simplify a task that we normally do in excel. So far I have combined two csv's into a single df and need some help going further. Anyways without going into to much detail on the specifics of my project using the following data frame I want t... | <p>You can use <code>.groupby()</code> and <code>.min()</code>.</p>
<pre class="lang-py prettyprint-override"><code>df[['Month','Minimum Z']].groupby('Month').min()
</code></pre>
<p>This first selects just the two columns in the dataframe. Then the <code>.groupby()</code> groups things where we have a row/record for ea... | Lowest value in a month using Pandas | python|pandas | 0 | 88 | 2 | 72,207,369 | 72,207,369 | 1 | true | 2022-05-11T20:30:24.867Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Lowest value in a month using Pandas<p>I am tryin to use python and pandas to simplify a task that we normally do in excel. So far I have combined two csv's ... |
72,206,333 | Timeout issue with jestjs<p>I was using jest to write a test for a function and I keep getting hit with an exceeded timeout issue. I tried to solve this by adding a bigger number to the second parameter in my test function and also by changing my jest config settings in my package.json file but both did not work. Any h... | <p>The test is failing because you have a <code>blog</code> parameter on the test callback, which Jest interprets to be a callback function which you must call to end the test. The param is not used by the test, so I think this is a mistake and should be removed. If you intend to use the callback, then just add <code... | Timeout issue with jestjs | jestjs | 0 | 25 | 1 | 72,207,376 | 72,207,376 | 1 | true | 2022-05-11T19:03:52.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Timeout issue with jestjs<p>I was using jest to write a test for a function and I keep getting hit with an exceeded timeout issue. I tried to solve this by a... |
72,195,004 | Speed up MongoDB Query Response | Discord Bot<p>I didn't think this would be an issue, but as the database I am using continues to grow, I've noticed that the responses from my program are getting slower and slower (which makes sense, more stuff to look through to return).</p>
<p>Now my question is how would I be able ... | <p>It's a bit difficult to give an answer without proper information (i.e. maybe 2-3 more sample input documents and sample result). However, could be this one:</p>
<pre><code>db.collection.aggregate([
{
$group: {
_id: {
location: "$location",
name: "$name"
},
... | Speed up MongoDB Query Response | Discord Bot | mongodb|optimization|discord.py|pymongo | 0 | 82 | 2 | 72,207,430 | 72,207,430 | 1 | true | 2022-05-11T03:18:10.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Speed up MongoDB Query Response | Discord Bot<p>I didn't think this would be an issue, but as the database I am using continues to grow, I've noticed that th... |
72,205,389 | Set charset to UTF-8 in SQL*Plus<p>I have a SQL script that contains the following statement:</p>
<p><code>insert into employee(fname,lname) values('Jörg','Müller');</code></p>
<p>My Database Charset ist set to AL32UTF8 but when I execute the script in SQL<em>Plus the german letters Ö and Ü are not saved correctly. How... | <p>SQL*Plus inherits the character set from <code>cmd</code> window. You need to set encoding to UTF-8 and tell it Oracle. This is done by <code>NLS_LANG</code> parameter.</p>
<p>Try this:</p>
<pre><code>chcp 65001
set NLS_LANG=.AL32UTF8
sqlplus ....
</code></pre>
<p>Of course, this works only if your sql-file is also ... | Set charset to UTF-8 in SQL*Plus | oracle|utf-8|sqlplus | 0 | 649 | 2 | 72,207,473 | 72,207,473 | 1 | true | 2022-05-11T17:41:17.067Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Set charset to UTF-8 in SQL*Plus<p>I have a SQL script that contains the following statement:</p>
<p><code>insert into employee(fname,lname) values('Jörg','M... |
72,203,853 | function onClick is triggered when I don't click on the button in form react<p>I created a form and within I want 2 ways of submit :</p>
<ul>
<li>one by filling input field and press enter</li>
<li>one by recording voice (I use the library react-speech-recognition)</li>
</ul>
<p>Since I added the second way, the input ... | <h2>Solution</h2>
<p>Your stop and reset buttons must have <code>type="button"</code>, or else the first of the two will behave as a submit button. If you need a form submission button, use an explicit submit button of <code>type="submit"</code>.</p>
<h2>Why this happens</h2>
<p><a href="https://dev... | function onClick is triggered when I don't click on the button in form react | javascript|reactjs | 0 | 154 | 2 | 72,207,585 | 72,207,585 | 1 | true | 2022-05-11T15:36:57.870Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
function onClick is triggered when I don't click on the button in form react<p>I created a form and within I want 2 ways of submit :</p>
<ul>
<li>one by fill... |
72,207,602 | How to make an element auto-expand to fill space without taking over?<p>I am creating a custom calendar in XAML and WPF. The calendar is made up of seven <code><Grid></code> columns that can auto expand (e.g. <code>width="1*"</code>) with the window.</p>
<p>Here's what's happening right now:</p>
<p><a h... | <p>I am not sure its the solution for your problem, but you can try to wrap the text if overflows, like this:</p>
<pre><code><TextBlock Text="Some long text" TextWrapping="Wrap">
</code></pre>
<p>Let me know if this helps, if not i can look more into it!</p> | How to make an element auto-expand to fill space without taking over? | c#|wpf|xaml|width|textblock | 0 | 40 | 2 | 72,207,682 | 72,207,682 | 1 | true | 2022-05-11T21:07:03.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to make an element auto-expand to fill space without taking over?<p>I am creating a custom calendar in XAML and WPF. The calendar is made up of seven <co... |
72,207,573 | Undefined Variable Error Thrown When Using A $_GET Request<p>I have a page that connects to a MySQL database via PHP. On this page the data is fetched to load an image and its related details. This page all work OK when the page is loaded.</p>
<p>I also have a module included on this page where users can create a board... | <p>This first line is unnecessarily cryptic, making the mistake harder to spot (and harder to fix):</p>
<pre><code>isset($_GET['filename']) ? $filename = $_GET['filename'] : header("Location: login.php");
</code></pre>
<p>It's pretending to be an expression, but it's actually an if statement in disguise - it ... | Undefined Variable Error Thrown When Using A $_GET Request | php | 0 | 36 | 1 | 72,207,704 | 72,207,704 | 1 | true | 2022-05-11T21:03:32.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Undefined Variable Error Thrown When Using A $_GET Request<p>I have a page that connects to a MySQL database via PHP. On this page the data is fetched to loa... |
72,207,491 | JSON Schema equivalent of XSD maxOccurs<p>I have been searching around for a few hours now but I can't find examples for the query I have. I have an XSD schema (this is a really cut down version)</p>
<pre><code><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Transact... | <p>JSON Schema uses the JSON document model, and your second example is not valid JSON -- a property name cannot appear twice. You'll have to rename your properties so they are unique, or use an array.</p>
<p>If you use an array, you can use <code>contains</code> and <code>minContains</code>/<code>maxContains</code> to... | JSON Schema equivalent of XSD maxOccurs | json|jsonschema | 0 | 169 | 1 | 72,207,737 | 72,207,737 | 1 | true | 2022-05-11T20:54:27.950Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JSON Schema equivalent of XSD maxOccurs<p>I have been searching around for a few hours now but I can't find examples for the query I have. I have an XSD sch... |
72,206,848 | How to change view in asp.net?<p>Im wondering how i can change "views" with a button click in Visual Studio (asp.net)?</p>
<p>I have 2 <code>.aspx</code> files, one called <code>Default.aspx</code> and another one called <code>Library.aspx</code>. How can i make a button change the views to display the other ... | <p>Ok, assuming default.aspx is in desing mode, then just drop a button from the toolbox onto the web page.</p>
<p>Say, like this:</p>
<p><a href="https://i.stack.imgur.com/oBtLN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oBtLN.png" alt="enter image description here" /></a></p>
<p>Now, double cl... | How to change view in asp.net? | c#|asp.net | 0 | 65 | 1 | 72,207,747 | 72,207,747 | 1 | true | 2022-05-11T19:47:34.800Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change view in asp.net?<p>Im wondering how i can change "views" with a button click in Visual Studio (asp.net)?</p>
<p>I have 2 <code>.aspx<... |
72,200,258 | use Folium map in plotly subplots to create dashboard<p>I have a plan area that covers several buildings. I want to map the plan and the building in a subplot using <code>gdf.explore()</code> method that creates a folium map object, and then use plotly to map a graph of building years histogram. Then put these two plot... | <ul>
<li>your question does not contain sample geometry or dataframe. Have synthesized some</li>
<li>as per comments <strong>plotly</strong> and <strong>folium</strong> are very different libraries with no integration</li>
<li>clearly with <strong>HTML</strong> you can integrate using <strong>IFrame</strong>. Have tak... | use Folium map in plotly subplots to create dashboard | python|plotly|geopandas|subplot|folium | 0 | 528 | 1 | 72,207,762 | 72,207,762 | 1 | true | 2022-05-11T11:28:56.793Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
use Folium map in plotly subplots to create dashboard<p>I have a plan area that covers several buildings. I want to map the plan and the building in a subplo... |
72,199,449 | how to disable the blank field in select rails<p>I'm trying to disable a field inside a select input.
There is no problem for the standard field:
(this disable the field 'one')</p>
<pre><code>= f.input_field :job, collection: %w[one two three], disabled: 1, include_blank: 'Select one', required: true
</code></pre>
<p>W... | <p>To disable blank value we use <code>disabled: ""</code> and to select it before user selects anything we use <code>selected: ""</code>. Notice that it works with <code>prompt</code> option instead of <code>include_blank</code> only.</p>
<pre><code>= f.input_field :name, collection: %w[one two thr... | how to disable the blank field in select rails | html|ruby-on-rails|ruby|forms|select | 0 | 102 | 1 | 72,207,773 | 72,207,773 | 1 | true | 2022-05-11T10:28:49.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to disable the blank field in select rails<p>I'm trying to disable a field inside a select input.
There is no problem for the standard field:
(this disab... |
72,206,181 | Generate full width character string in R<p>In R, how can I make the following:</p>
<p>convert this string: <code>"my test string"</code></p>
<p>to something like this ( a full width character string): <code>"my test string"</code></p>
<p>is there a way to do this through hexidecimal character enc... | <p>Here is a possible solution using a function from the archived <a href="https://github.com/cran/Nippon" rel="nofollow noreferrer"><code>Nippon</code> package</a>. This is the <code>han2zen</code> function, which can be found <a href="https://github.com/cran/Nippon/blob/master/R/zen2han.R" rel="nofollow noreferrer">h... | Generate full width character string in R | r|character-encoding|stringr | 0 | 32 | 1 | 72,207,839 | 72,207,839 | 1 | true | 2022-05-11T18:49:11.360Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Generate full width character string in R<p>In R, how can I make the following:</p>
<p>convert this string: <code>"my test string"</code></p>
<p>to... |
72,207,655 | Using Flexbox "justify-content: space-between" when number of row items varies<p>Currently, I'm using Flexbox <code>justify-content: space-between</code> to align items horizontally on collections pages.</p>
<p>However, not all collections have enough items to fill a row. In such a situation, I'd like the first two ite... | <p>Not possible with flexbox without using some huge work around.
Instead use display grid.</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>.flex-container {
display: grid;
... | Using Flexbox "justify-content: space-between" when number of row items varies | html|css|flexbox | 0 | 28 | 1 | 72,207,940 | 72,207,940 | 1 | true | 2022-05-11T21:14:06.610Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using Flexbox "justify-content: space-between" when number of row items varies<p>Currently, I'm using Flexbox <code>justify-content: space-between</code> to ... |
72,207,829 | R output giving wrong values for difference between columns<p>I have this tibble called data1:</p>
<pre><code>structure(list(subject = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12), treatment = c("099526-01", "099526-01", "099526-01", "099526-01",
"099526-01", "099526... | <p>The code is correct. However, it appears that the df output (View) is limited to 1 decimal, while your values have 3 decimals.</p>
<p>Try running</p>
<pre><code>options(digits = 5)
</code></pre>
<p>at the top of your script.</p> | R output giving wrong values for difference between columns | r|dplyr | 0 | 27 | 1 | 72,207,976 | 72,207,976 | 1 | true | 2022-05-11T21:33:51.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
R output giving wrong values for difference between columns<p>I have this tibble called data1:</p>
<pre><code>structure(list(subject = c(1, 2, 3, 4, 5, 6, 7,... |
72,207,447 | Why does Jetpack Compose LazyColumn MutableLiveData only recompose on first button click?<p>Learning Kotlin and Jetpack Compose in Android Studio. Trying to understand recomposition.</p>
<h3>The following code only recomposes on the first button click - why?</h3>
<p>Output is shown below my code. Basically, <strong>t... | <p>Honestly speaking, as long as you do not have to do with interoperability with the View system, AVOID using anything other than the built-for-Compose <code>MutableState<T></code> objetcs. The ultra-boilerplate code of yours can simply be replaced by</p>
<pre><code>ViewModel{
val cleanList by mutableStateListO... | Why does Jetpack Compose LazyColumn MutableLiveData only recompose on first button click? | kotlin|android-jetpack-compose | 0 | 164 | 1 | 72,208,021 | 72,208,021 | 1 | true | 2022-05-11T20:50:28.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does Jetpack Compose LazyColumn MutableLiveData only recompose on first button click?<p>Learning Kotlin and Jetpack Compose in Android Studio. Trying to... |
72,206,710 | How to address Cypress (cy.type() can only be called on a single element.) error?<p>I have three input fields:</p>
<pre><code> cy.get(':nth-child(1) > .input-module_input__3wsvS').should('be.visible').type(foo)
cy.get(':nth-child(2) > .input-module_input__3wsvS').should('be.visible').type(bar)
cy... | <p>Be careful using the "hash" the originates from frontend websites who use css-modules as any change to the underlying css will change its value and therefore break the tests.</p>
<p>Similarly the more complicated a selector is the more surface area there is for change in the structure of the document to br... | How to address Cypress (cy.type() can only be called on a single element.) error? | cypress | 0 | 192 | 2 | 72,208,102 | 72,208,102 | 1 | true | 2022-05-11T19:34:20.413Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to address Cypress (cy.type() can only be called on a single element.) error?<p>I have three input fields:</p>
<pre><code> cy.get(':nth-child(1) >... |
72,208,050 | react-bootstrap modal opens but won't close<p>I originally had the code for my modal in the same component as the parent page and it worked fine, but now I've moved it out into it's own component I can no longer close the modal once it has been opened. I'm aware there are similar issues posted previously but they all s... | <p>You need to refer to the prop by its correct name <code>props.onHideLogin</code> in the Modal component.</p>
<p>It's only called <code>handleCloseLogin</code> in the Main component.</p> | react-bootstrap modal opens but won't close | reactjs|react-bootstrap | 0 | 25 | 1 | 72,208,106 | 72,208,106 | 1 | true | 2022-05-11T22:00:22.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
react-bootstrap modal opens but won't close<p>I originally had the code for my modal in the same component as the parent page and it worked fine, but now I'v... |
72,204,932 | How to upgrade my electron version from 6 to 9 to avoid errors<p>I would like to upgrade my electron version from 6 a stable version to 9 because of a
problem with my api I have tryied npm fund and npm audit but it doesn't correct the
problem may be someone have an other way to do that these are the errors I'm getting ... | <p>Within your <code>package.json</code> file (which should be at the root directory of your project), edit your devDependencies Electron version line to <code>"electron": "^9.0.0"</code> and save the file.</p>
<p>Next, open a command line at the root of your project and run <code>npm install</code>... | How to upgrade my electron version from 6 to 9 to avoid errors | javascript|sqlite|electron | 0 | 114 | 1 | 72,208,135 | 72,208,135 | 1 | true | 2022-05-11T17:00:04.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to upgrade my electron version from 6 to 9 to avoid errors<p>I would like to upgrade my electron version from 6 a stable version to 9 because of a
proble... |
72,201,385 | Replacing a beacon by a Bookmark in word using excel vba<p>I am developping an excel macro and i need to replace a specific word (beacon) in my .docx by a bookmark, i found this on the microsoft site.</p>
<pre><code>Sub BMark()
' Select some text in the active document prior
' to execution.
ActiveDocument.Bookmar... | <p>For example:</p>
<pre><code> With word_fichier.Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "#tableauxvdd"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
... | Replacing a beacon by a Bookmark in word using excel vba | vba|ms-word | 0 | 37 | 1 | 72,208,240 | 72,208,240 | 1 | true | 2022-05-11T12:50:32.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Replacing a beacon by a Bookmark in word using excel vba<p>I am developping an excel macro and i need to replace a specific word (beacon) in my .docx by a bo... |
72,207,464 | Use OpenLayers Canvas source with Image static<p>I've been trying to draw on the Canvas using OpenLayers (v6.1.1) but unfortunately, I'm struggling with the Canvas implementation.</p>
<p>I've tried this simple approach:</p>
<pre><code>const extent = [0, 0, 1024, 968];
const projection = new ol.proj.Projection({
code... | <p><code>ImageCanvas</code> needs a <code>canvasFunction</code> option:</p>
<pre><code> source: new ol.source.ImageCanvas({
canvasFunction: function() {
return canvas;
},
projection: projection,
imageExtent: extent,
ratio: 1,
}),
</code></pre>
<p><code>ImageStatic</code> needs a <code>url</... | Use OpenLayers Canvas source with Image static | javascript|canvas|openlayers | 0 | 91 | 1 | 72,208,268 | 72,208,268 | 1 | true | 2022-05-11T20:51:52.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use OpenLayers Canvas source with Image static<p>I've been trying to draw on the Canvas using OpenLayers (v6.1.1) but unfortunately, I'm struggling with the ... |
72,194,188 | Email verification with class-validator in nestJS<p>What i'm trying to do is propagate an error when some one tries to sign up with an email that's already in use. By default this returns a 500 error, but i need it to throw a meaningful error for this particular scenario.
Note: The program returns a 500 error for every... | <p>Yes, this is possible to validate email using class-validator</p>
<p>First of all you need to create custom class for this validator like this for example.</p>
<pre class="lang-js prettyprint-override"><code>@ValidatorConstraint({ name: 'isEmailUserAlreadyExist', async: true })
@Injectable()
export class IsE... | Email verification with class-validator in nestJS | nestjs|email-validation|class-validator | 0 | 1,411 | 1 | 72,208,316 | 72,208,316 | 1 | true | 2022-05-11T00:27:39.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Email verification with class-validator in nestJS<p>What i'm trying to do is propagate an error when some one tries to sign up with an email that's already i... |
72,206,847 | How to process a method inside Update without waiting for it and without reprocessing it while its working<p>I have an AI creature that I want to jump at enemies that fall within it's radius.
The radius detects them on every update which is fine but how should I process the Jump?</p>
<p>The jump currently resides insid... | <p>While lots of people are hating on coroutines atm. Ignore that for now.</p>
<p>Have a coroutine that does the detection and jumping that waits after the jump to finish. That way your fps stays good and the calculations won’t effect it.</p>
<p>Pseudo code as im on a phone</p>
<pre><code>IEnumerator findme()
{
while... | How to process a method inside Update without waiting for it and without reprocessing it while its working | c#|unity3d | 0 | 27 | 2 | 72,208,405 | 72,208,405 | 1 | true | 2022-05-11T19:47:33.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to process a method inside Update without waiting for it and without reprocessing it while its working<p>I have an AI creature that I want to jump at ene... |
72,208,349 | Getting an error while trying to apply the labels of geom_text to a subset of bars<p>I want to apply geom_text to a particular set of variables.</p>
<p>I have, for example:</p>
<pre><code> decade count
<dbl> <int>
1 1930 505
2 1940 630
3 1950 806
4 1960 446
5 1970 469
6 1980 80... | <p>How about this approach?</p>
<pre><code>ggplot(df,aes(decade,count)) +
geom_col(fill = "blue", width = 4) +
coord_flip() +
geom_text(data = subset(df, count >= 500), aes(label = count),nudge_y = -100,color="white") +
geom_text(data = subset(df, count < 500), aes(label = count),nu... | Getting an error while trying to apply the labels of geom_text to a subset of bars | r|ggplot2|geom-text | 0 | 17 | 1 | 72,208,472 | 72,208,472 | 1 | true | 2022-05-11T22:42:00.220Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting an error while trying to apply the labels of geom_text to a subset of bars<p>I want to apply geom_text to a particular set of variables.</p>
<p>I hav... |
72,208,195 | Dump a binary exe to hexadecimal and embed it into c++ file leads to execution error<p>I am dumping a sample of relec malware to hexadecimal using xxd to embed it in a c++ file and execute it with createprocess. When I get the hexadecimal relec file I copy it to an array and write it to disk. I call createprocess to ex... | <p>I changed the fopen writing mode. Instead I used the write binary mode as @TedLyngmo suggested. Thank u all for your answers.</p> | Dump a binary exe to hexadecimal and embed it into c++ file leads to execution error | c++|windows-10|visual-studio-2019 | 0 | 85 | 1 | 72,208,560 | 72,208,560 | 1 | true | 2022-05-11T22:20:04.683Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dump a binary exe to hexadecimal and embed it into c++ file leads to execution error<p>I am dumping a sample of relec malware to hexadecimal using xxd to emb... |
72,204,054 | Can autograd handle repeated use of the same layer in the same depth of the computation graph?<p>I have a network which works as follows: The input is split in half; the first half is put through some convolutional layers <code>l1</code>, then the second half is put through the same layers <code>l1</code> (after the ou... | <p>Autograd does not care how many times you "use" something. This is not how it works. it just builds a graph behind the scenes of the dependencies, using something twice just makes a graph that is not a line, but it will not affect its execution.</p> | Can autograd handle repeated use of the same layer in the same depth of the computation graph? | python|machine-learning|neural-network|pytorch|backpropagation | 0 | 30 | 1 | 72,208,607 | 72,208,607 | 1 | true | 2022-05-11T15:50:50.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can autograd handle repeated use of the same layer in the same depth of the computation graph?<p>I have a network which works as follows: The input is split ... |
72,207,581 | Trying to alternate two strings together in Java<p>/* Programs goal is to take two strings and use a method to alternate the characters.</p>
<ul>
<li>example - "test" "case" -> "tceasste"</li>
<li>Sorry I tried looking at other similar questions but I didn't understand how they worked a... | <p>Just another way. Read all the comments in code:</p>
<pre><code>/**
* Sequentially blends two strings together one character at a time, for
* example, if the first argument was "cat" and the second argument was
* "dog" then the returned result will be: "cdaotg".<br><br>... | Trying to alternate two strings together in Java | java | 0 | 81 | 5 | 72,208,642 | 72,208,642 | 1 | true | 2022-05-11T21:04:19.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trying to alternate two strings together in Java<p>/* Programs goal is to take two strings and use a method to alternate the characters.</p>
<ul>
<li>example... |
72,207,435 | MATLAB diff function with matrices of unequal dimensions<p>I read MATLAB diff.m readme, still couldn't figure out the following:</p>
<pre><code> a = [1 2 3]'
b = [3 2 1 4; 1 1 1 5; 5 5 5 6]
diff([a b]') =
2 -1 2
-1 0 0
-1 0 0
3 4 1
</code></pre>
<p>what rule is MATLAB applying here?... | <p>MATLAB applies the same rule regardless of the input matrices. Run your code line-by-line in the command window and see.</p>
<p><code>a</code> and <code>b</code> are like this:</p>
<pre><code>>> a = [1 2 3]'
a =
1
2
3
>> b = [3 2 1 4; 1 1 1 5; 5 5 5 6]
b =
3 2 1 4
1 ... | MATLAB diff function with matrices of unequal dimensions | matlab|diff | 0 | 62 | 2 | 72,208,657 | 72,208,657 | 1 | true | 2022-05-11T20:48:32.737Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MATLAB diff function with matrices of unequal dimensions<p>I read MATLAB diff.m readme, still couldn't figure out the following:</p>
<pre><code> a = [1 2 ... |
72,207,275 | python : using a subplot as legend for the others subplots<p>I have the script below that generates a plot consisted of 5 histograms (5 subplots) :</p>
<pre><code>import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import norm
from scipy.optimize import curve_fit
mean_o = list()
sigma_o = list()
y3 = ... | <p>You can create an extra subplot and put a <a href="https://matplotlib.org/stable/gallery/text_labels_and_annotations/custom_legends.html" rel="nofollow noreferrer">custom legend</a> in it. The custom legend could use dummy handles and a list of labels. To <a href="https://matplotlib.org/stable/api/legend_api.html#... | python : using a subplot as legend for the others subplots | python|matplotlib|legend|subplot|box | 0 | 216 | 1 | 72,208,662 | 72,208,662 | 1 | true | 2022-05-11T20:30:33.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
python : using a subplot as legend for the others subplots<p>I have the script below that generates a plot consisted of 5 histograms (5 subplots) :</p>
<pre>... |
72,208,569 | Javascript Combine Array by Other Array Based on Multiple Values<p>I have an array called <code>p</code> which looks like:</p>
<pre><code>[
{
"Day": "Monday",
"data": [
"chest",
"triceps",
"shoulders"
]
},
{
"Day&qu... | <p>You can use the following implementation:</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 programs = [
{
target: "biceps",
data: [
{
name: "bar... | Javascript Combine Array by Other Array Based on Multiple Values | javascript|arrays | 0 | 35 | 1 | 72,208,749 | 72,208,749 | 1 | true | 2022-05-11T23:21:25.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript Combine Array by Other Array Based on Multiple Values<p>I have an array called <code>p</code> which looks like:</p>
<pre><code>[
{
"Day... |
72,208,665 | How to change the input field background color right after I type something?<p>I wrote the code below and I'm trying to change the input field background color the moment I type something. I have 4 input fields. If I click submit in the first time and any field is empty, the color of this field will change to red, but ... | <p>I'm not sure all your code does what you are expecting, but I have an approach that is approaching your requirement by listening to the <code>keyup</code> event and evaluating if the input has content or not; you should be able to reconfigure this to your use case.</p>
<p>I also moved your loop of the four loops <em... | How to change the input field background color right after I type something? | javascript|html|css | 0 | 261 | 4 | 72,208,812 | 72,208,812 | 1 | true | 2022-05-11T23:40:21.443Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change the input field background color right after I type something?<p>I wrote the code below and I'm trying to change the input field background col... |
72,207,518 | python trying to select pandas columns that have spaces or ellipses in them, backticks not working<p>I'm trying to access a column in a pandas dataframe in python.</p>
<p>Here is the dataframe I am using. I only printed the first row in order to try to keep it a manageable size. I would have selected a smaller number o... | <p>If you supply keys that <em>exist</em>... this works just fine.</p>
<pre><code>df[['OilSampleID', 'Type', 'Country', 'USGS Province', 'Well', 'Latitude', 'Longitude', 'EOM', 'BIOD', '% Sat', '% Aro', '% NSO', '% Asph']]
</code></pre>
<p>Output:</p>
<pre><code> OilSampleID Type Country USGS Province Well L... | python trying to select pandas columns that have spaces or ellipses in them, backticks not working | python|pandas | 0 | 54 | 1 | 72,208,860 | 72,208,860 | 1 | true | 2022-05-11T20:56:43.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
python trying to select pandas columns that have spaces or ellipses in them, backticks not working<p>I'm trying to access a column in a pandas dataframe in p... |
72,155,506 | Flutter: have different authentication providers in Firebase<p>I have different methods in my app to log in:</p>
<ul>
<li>Facebook</li>
<li>Google</li>
<li>Apple</li>
<li>Email</li>
</ul>
<p>For the question I'll focus on the first 2 ones. When the user logs in with Facebook the providers look like this:</p>
<p><a href... | <pre><code>Future googleSignIn(BuildContext context,
[String? email, facebookCredential]) async {
try {
GoogleSignInAccount googleUser;
dynamic popup = await _googleSignIn.signIn();
// cancelled login
if (popup == null) {
return null;
}
googleUser = popup;
... | Flutter: have different authentication providers in Firebase | firebase|flutter|firebase-authentication|google-authentication|facebook-authentication | 0 | 68 | 1 | 72,208,910 | 72,208,910 | 1 | true | 2022-05-07T18:47:35.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter: have different authentication providers in Firebase<p>I have different methods in my app to log in:</p>
<ul>
<li>Facebook</li>
<li>Google</li>
<li>A... |
72,208,598 | How do I make this a SafeUrl in Angular?<p>I created a Pipe</p>
<p>Looks like this</p>
<pre><code>import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Pipe({
name: 'SafeUrl'
})
export class SafeUrlPipe implements PipeTransform {
constructor(private domSan... | <p>For your pipe to work, it must be placed inside the interpolation curly brackets:</p>
<pre class="lang-js prettyprint-override"><code>{{item.email | SafeUrlPipe }}
</code></pre> | How do I make this a SafeUrl in Angular? | angular|typescript|angular-pipe | 0 | 57 | 1 | 72,208,954 | 72,208,954 | 1 | true | 2022-05-11T23:25:59.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I make this a SafeUrl in Angular?<p>I created a Pipe</p>
<p>Looks like this</p>
<pre><code>import { Pipe, PipeTransform } from '@angular/core';
import... |
72,208,935 | How do I Split a DataFrame Row into Multiple Rows?<p>Im new to Python and I want to split the single row that my code prints, into multiple rows, specifically I want to separate each row where the String Variable Starts...</p>
<pre><code>df = pd.DataFrame()
Var1 = "X"
Var2 = 300
Var3 = Var2*15
Var4 = Var3*0.7... | <p>Since no columns are defined, append() assumes each VarX is a new row (i.e. single column). You need to first create a dataframe with the relevant number of columns and then append.</p>
<pre><code>df = pd.DataFrame(columns=[1,2,3,4])
Var1 = "X"
Var2 = 300
Var3 = Var2*15
Var4 = Var3*0.75
df = df.append({1:V... | How do I Split a DataFrame Row into Multiple Rows? | python|pandas|dataframe | 0 | 120 | 2 | 72,208,970 | 72,208,970 | 1 | true | 2022-05-12T00:35:09.923Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I Split a DataFrame Row into Multiple Rows?<p>Im new to Python and I want to split the single row that my code prints, into multiple rows, specificall... |
72,205,985 | Sending data using esp_now<p>Normally when I send and receive data using a <code>send_now</code> I use a structure as in this tutorial <a href="https://randomnerdtutorials.com/esp-now-one-to-many-esp32-esp8266/" rel="nofollow noreferrer">code</a>. In this way, I face a problem, which is declaring an array where I need ... | <p>If you are simply trying to send 100 double-precision floats, this will do it:</p>
<pre><code>int sizee=100;
double *by=(double*)malloc(sizee*sizeof(double));
for (int i=0; i < sizee; i++) {
by[i]=i;
Serial.println(by[i]);
}
esp_err_t result = esp_now_send(0, (uint8_t *) by, sizee*sizeof(double));
</code... | Sending data using esp_now | c|esp32|arduino-ide|arduino-c++ | 0 | 99 | 1 | 72,209,031 | 72,209,031 | 1 | true | 2022-05-11T18:30:42.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sending data using esp_now<p>Normally when I send and receive data using a <code>send_now</code> I use a structure as in this tutorial <a href="https://rando... |
72,169,141 | source IP using AKS azure internal load balancer<p>I am creating internal load balancer like below</p>
<pre class="lang-yaml prettyprint-override"><code>---
kind: Service
apiVersion: v1
metadata:
name: nginx
namespace: alts
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"... | <p>I suggest two approaches. In one of my clusters, I used exernalTrafficPolicy=Local but as explained in <a href="https://blog.getambassador.io/externaltrafficpolicy-local-on-kubernetes-e66e498212f9" rel="nofollow noreferrer">this article</a>, doing this just happened to keep the source IP. Alternatively, you may look... | source IP using AKS azure internal load balancer | azure|azure-aks|azure-load-balancer | 0 | 235 | 1 | 72,209,149 | 72,209,149 | 1 | true | 2022-05-09T08:38:43.060Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
source IP using AKS azure internal load balancer<p>I am creating internal load balancer like below</p>
<pre class="lang-yaml prettyprint-override"><code>---
... |
72,208,971 | How to implement a function that matches a specific paragraph in JavaScript?<p>full url : abc.com/product/123</p>
<p>find url : abc.com/product</p>
<p>I want to return true if the full url contains find url</p>
<p>The condition must match the sentences of find url and the words in the full url perfectly.</p>
<pre><code... | <p>This will return true if <strong>fullurl</strong> contains <strong>findurl</strong>.</p>
<p>I used regex, if you want to change the <strong>findurl</strong> you need to edit the regex code.</p>
<pre><code>function matchUrl(fullurl) {
reg = /\babc.com\/product\b/;
if (fullurl.match(reg)) {
return true;
}
... | How to implement a function that matches a specific paragraph in JavaScript? | javascript | 0 | 30 | 1 | 72,209,272 | 72,209,272 | 1 | true | 2022-05-12T00:48:48.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to implement a function that matches a specific paragraph in JavaScript?<p>full url : abc.com/product/123</p>
<p>find url : abc.com/product</p>
<p>I want... |
72,193,093 | Display an image from an api for 24 hours<p>I'm doing a project in React, and on my "Home.js" page I would like to display a pokemon randomly for 24 hours thanks to the PokeApi (<a href="https://pokeapi.co/" rel="nofollow noreferrer">https://pokeapi.co/</a>). But I can't add the fact that the Pokemon image sh... | <p>Following up on <a href="https://stackoverflow.com/questions/72193093/display-an-image-from-an-api-for-24-hours?noredirect=1#comment127552663_72193093">my comment</a>: You need to generate a deterministic ID based on the current date, but it needs to be one that seems "random". This problem could be solved... | Display an image from an api for 24 hours | javascript|reactjs|pokeapi | 0 | 75 | 1 | 72,209,277 | 72,209,277 | 1 | true | 2022-05-10T21:22:10.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Display an image from an api for 24 hours<p>I'm doing a project in React, and on my "Home.js" page I would like to display a pokemon randomly for 2... |
72,198,717 | OSError: [Errno 22] Invalid argument in PyCharm<p><a href="https://i.stack.imgur.com/mVGpi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mVGpi.png" alt="enter image description here" /></a>I have got following code which works in google colab but unfortunately not in PyCharm:
<a href="https://stack... | <p>You can try <code>File -> Settings -> Project: -> Project Structure -> Click on Timestamp (folder) -> Click on Mark as Sources -> Apply -> OK.</code></p>
<p>I hope it help you!</p> | OSError: [Errno 22] Invalid argument in PyCharm | python|datetime|pycharm|oserror | 0 | 648 | 1 | 72,209,432 | 72,209,432 | 1 | true | 2022-05-11T09:36:11.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
OSError: [Errno 22] Invalid argument in PyCharm<p><a href="https://i.stack.imgur.com/mVGpi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com... |
72,209,032 | Multiple active projects under single config? Or, multiple active configurations?<p>I have a set of clusters split between two projects, 1 and 2. Currently, need to use <code>gcloud init</code> to switch between the two projects. Is there any possibility of having both projects active under the single configuration? Or... | <p><a href="https://cloud.google.com/sdk/gcloud/reference/init" rel="nofollow noreferrer"><code>gcloud init</code></a> should only be used to (re)initialize <code>gcloud</code> on a host. The only time I ever use it is when I install <code>gcloud</code> on a new machine.</p>
<p><code>gcloud</code> uses a global config ... | Multiple active projects under single config? Or, multiple active configurations? | gcloud | 0 | 60 | 1 | 72,209,471 | 72,209,471 | 1 | true | 2022-05-12T01:02:18.113Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multiple active projects under single config? Or, multiple active configurations?<p>I have a set of clusters split between two projects, 1 and 2. Currently, ... |
72,209,307 | Saving a file locally instead of on the server<p>I have a php script which opens a csv file, edits it, then saves it using 'file_put_contents'. The saved location is the same server directory which contains the script.</p>
<pre><code>file_put_contents($destination,$string);
</code></pre>
<p>However, I want the user to ... | <ul>
<li>To save file in local with popup of window you can use JS (Blob Object) for it :</li>
</ul>
<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>// ajax get data from server ( ... | Saving a file locally instead of on the server | php|csv|file|header|file-put-contents | 0 | 70 | 1 | 72,209,526 | 72,209,526 | 1 | true | 2022-05-12T01:56:25.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Saving a file locally instead of on the server<p>I have a php script which opens a csv file, edits it, then saves it using 'file_put_contents'. The saved loc... |
72,209,269 | Use part of row data for new columns in R<p>I have a very large df with a column that contains the file directory for each row's data.</p>
<p>Example: D:Mouse_2174/experiment/13/trialsummary.txt.1</p>
<p>I would like to create 2 new columns, one with only the mouse ID (2174) and one with the session number (13). There ... | <p>For sure isnt an elegant solution. Only works if your ID and Session are always numbers...</p>
<pre><code>df <- data.frame(
rn = c("D:Mouse_2174/iti_intervals/9/trialsummary.txt.1",
"D:Mouse_2181/iti_intervals/33/trialsummary.txt.1",
"D:Mo... | Use part of row data for new columns in R | r|dplyr|purrr|plyr | 0 | 32 | 2 | 72,209,552 | 72,209,552 | 1 | true | 2022-05-12T01:48:54.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use part of row data for new columns in R<p>I have a very large df with a column that contains the file directory for each row's data.</p>
<p>Example: D:Mous... |
72,207,478 | EntityNotFoundException for aws glue "get-partition"<p>I'm trying to get metadata about Glue partitions via the CLI. I've tried following <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-partition.html" rel="nofollow noreferrer">the docs</a> but I keep getting the following error:
<c... | <p>I think you're close. <code>--partition-values</code> is just looking for the values (not names and values)</p>
<p>Try the following</p>
<pre><code>aws glue get-partition --database-name my_db --table-name my_table --partition-values "2022" "04" "29" "16"
</code></pre> | EntityNotFoundException for aws glue "get-partition" | amazon-web-services|syntax|aws-cli|aws-glue | 0 | 339 | 1 | 72,209,666 | 72,209,666 | 1 | true | 2022-05-11T20:53:45.730Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
EntityNotFoundException for aws glue "get-partition"<p>I'm trying to get metadata about Glue partitions via the CLI. I've tried following <a href="https://aw... |
72,209,733 | How can I find count of comments per user per hour in SQL?<p>I have two tables:</p>
<p>Table1</p>
<pre><code>post_id | num_comments
3421 | 1
6472 | 3
7294 | 0
4891 | 4
</code></pre>
<p>Table2</p>
<pre><code>post_id | user_id | timestamp
3421 | 100 | 2022-03-30 06:47:30.000000000
6472 | 100... | <p>Aggregate by user and hour:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT t1.user_id, DATE_FORMAT(t2.timestamp, '%Y-%m-%d %H:00:00') AS hour,
COUNT(t2.num_comments) AS comments
FROM Table1 t1
INNER JOIN Table2 t2
ON t1.post_id = t2.post_id
GROUP BY 1, 2;
</code></pre>
<p>Note that if you wan... | How can I find count of comments per user per hour in SQL? | sql|sql-server | 0 | 45 | 1 | 72,209,751 | 72,209,751 | 1 | true | 2022-05-12T03:14:23.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I find count of comments per user per hour in SQL?<p>I have two tables:</p>
<p>Table1</p>
<pre><code>post_id | num_comments
3421 | 1
6472 | ... |
72,205,627 | drawing multiple classes with same variables<p>I think i dont understand classes and encapsulation well enough, because when i draw the vertical
and horizontal class at the same time, they influence each others, and change the way they draw. But when i draw one class at a time it works as intendet. I dont understand wh... | <p>@ggorlen's comment gave you some really great advice. Here's how that looks in code.</p>
<p>The idea of encapsulation means that your class should not change any variables outside of the class. Your <code>Vertical</code> and <code>Horizontal</code> classes were both modifying the same global variables <code>xx</co... | drawing multiple classes with same variables | javascript|oop|p5.js | 0 | 39 | 1 | 72,209,755 | 72,209,755 | 1 | true | 2022-05-11T18:01:10.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
drawing multiple classes with same variables<p>I think i dont understand classes and encapsulation well enough, because when i draw the vertical
and horizont... |
72,209,466 | Saving a list of a public Github repo contributors using curl<p>I'm trying to get a list of contributors to a public GitHub repo, saved as a text file.</p>
<pre><code>curl -H "Authorization: token mytoken" https://api.github.com/repos/v2fly/v2ray-core/contributors&per_page=100 >> output.txt
</code><... | <p>I guess the API URL is incorrect. That <code>per_page</code> querystring needs to be passed after putting "?" after URL, You can try this</p>
<pre><code>curl -H "Authorization: token mytoken" https://api.github.com/repos/v2fly/v2ray-core/contributors?per_page=100 >> output.txt
</code></pre> | Saving a list of a public Github repo contributors using curl | github|curl | 0 | 22 | 1 | 72,209,780 | 72,209,780 | 1 | true | 2022-05-12T02:24:09.583Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Saving a list of a public Github repo contributors using curl<p>I'm trying to get a list of contributors to a public GitHub repo, saved as a text file.</p>
<... |
72,206,657 | Dont insert document if already exists in Elasticsearch with Golang<p>I am new to golang and I'm struggling in inserting new documents with the same id in Elasticsearch. Until now I can insert the document correctly in the index, but if the document's id is repeated, the timestamp updates (because is the only thing tha... | <p>There is an API available in <code>esapi</code> for checking existence of a document id in a particular index.</p>
<p><a href="https://pkg.go.dev/github.com/elastic/go-elasticsearch/esapi#ExistsRequest" rel="nofollow noreferrer">ExistRequest</a> - By checking the status code of the response from this request we can ... | Dont insert document if already exists in Elasticsearch with Golang | go|elasticsearch | 0 | 245 | 1 | 72,209,792 | 72,209,792 | 1 | true | 2022-05-11T19:30:55.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dont insert document if already exists in Elasticsearch with Golang<p>I am new to golang and I'm struggling in inserting new documents with the same id in El... |
72,180,548 | Product Variant Name using GraphQL in Bigcommerce<p>I'm using GQL query to show product variant information inside my table but when I'm calling product name its not working. Even my SKU,UPC/MPN and all rest values are showing but don't know how to show product name.
This is my site theme table <a href="https://i.stack... | <p>Variants are associated with options that do have names. We gather the names for all options and concatenate them together to get the variant's name. e.g. "Large Red".</p>
<p>Here's the variant part of the graphql we use to get that information:</p>
<pre><code>variants(first:50 entityIds:[1,2,3]){
edge... | Product Variant Name using GraphQL in Bigcommerce | graphql|bigcommerce|graphql-js|gql|bigcommerce-stencil-cli | 0 | 230 | 2 | 72,209,795 | 72,209,795 | 1 | true | 2022-05-10T03:51:24.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Product Variant Name using GraphQL in Bigcommerce<p>I'm using GQL query to show product variant information inside my table but when I'm calling product name... |
72,198,620 | Retrieve a physical file after truncate<p>I had a user truncate a physical file in a testing DB2 database using some outside client. I can use <code>ftpfile</code> to retrieve it from another catalog, but it won't be the exact same info. But I saw some time ago an administrator finding a file's history, I don't have a ... | <p>Do you mean SQL TRUNCATE? The IBM i database does not implement TRUNCATE. Possibly the user ran the SQL <code>DELETE FROM table</code> statement instead. Or the <code>CLRPFM</code> command.</p>
<p>You can possibly access the contents of the file before it was cleared if the file is journaled. Or, an easier way is ... | Retrieve a physical file after truncate | ibm-midrange | 0 | 30 | 1 | 72,209,932 | 72,209,932 | 1 | true | 2022-05-11T09:29:16.923Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Retrieve a physical file after truncate<p>I had a user truncate a physical file in a testing DB2 database using some outside client. I can use <code>ftpfile<... |
72,207,665 | Casting an integer to a float in OpenCL<p>This is my first post on stack overflow so bear with me.</p>
<p>I am currently programming an OpenCL Kernel and require the use of the inbuilt sqrt function. However, for this to work the parameter of the function needs to be a float. I currently have an integer value and need ... | <p>Welcome to StackOverflow!</p>
<p>So you essentially have a 2D vector of <code>int</code> data type and want to calculate its length. Most of OpenCL C is just standard C99 code/syntax, so the most straightforward way would be to use standard C-style type casting:</p>
<pre class="lang-c prettyprint-override"><code>mag... | Casting an integer to a float in OpenCL | casting|kernel|opencl | 0 | 84 | 1 | 72,209,960 | 72,209,960 | 1 | true | 2022-05-11T21:15:34.243Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Casting an integer to a float in OpenCL<p>This is my first post on stack overflow so bear with me.</p>
<p>I am currently programming an OpenCL Kernel and req... |
72,173,485 | jQuery getScript() and a div element id<p>I am using jQuery to add a div to a page that I'd want to then use as a location for content produced by another script (in this case ,p5). It will work fine if I assign include a static div with the id='p5canvas' but when I use jQuery to add dynamic content (see below), nothi... | <p>The order of execution is really important here, and that's where things are going wrong. The p5 script in your header is looking for a <code>setup()</code> function to call at a time when you haven't yet loaded your <code><div id="p5canvas"/></code> target element or your <code>animatebug.js</code>... | jQuery getScript() and a div element id | javascript|jquery|p5.js | 0 | 56 | 1 | 72,209,984 | 72,209,984 | 1 | true | 2022-05-09T14:17:00.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jQuery getScript() and a div element id<p>I am using jQuery to add a div to a page that I'd want to then use as a location for content produced by another sc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.