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,161,145 | save the AgGrid data to sqlite with python<p>Hi im building an app to save results of projects that we do at work
and I want to update a table with aggrid and it will also update the sqlite DB that im using
I manage to edit on the web app but it will not update the DB
if anyone can tell me how it will be great
this are... | <p>Here is an example code. Notice I added <code>GridUpdateMode.VALUE_CHANGED</code> in update mode to see the changes in grid_table whenever a value changes. Also a button is added to update the db based from the changes returned by AgGrid.</p>
<h5>Code</h5>
<pre><code>import streamlit as st
import sqlite3
import pan... | save the AgGrid data to sqlite with python | python|pandas|ag-grid|streamlit | 0 | 409 | 1 | 72,165,857 | 72,165,857 | 0 | true | 2022-05-08T12:46:16.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
save the AgGrid data to sqlite with python<p>Hi im building an app to save results of projects that we do at work
and I want to update a table with aggrid an... |
72,215,748 | How to extend mask region (True) by 1 or 2 pixels?<p>I have a numpy mask of True and False values, detecting black regions in an image.</p>
<p>I want to extend the True regions by 1 or 2 pixel.</p>
<p>For example, considering this mask:</p>
<pre class="lang-html prettyprint-override"><code>[[False False False False Fa... | <p>Dilation is the easiest way to extend the "True" regions.</p>
<p>Consider the array:</p>
<pre><code>a = np.array([[False, False, False, False, False],
[False, False, True, False, False],
[False, True, True, True, False],
[False, False, True, False, False],
... | How to extend mask region (True) by 1 or 2 pixels? | python|numpy|opencv|image-processing|mask | 0 | 71 | 2 | 72,216,230 | 72,216,230 | 0 | true | 2022-05-12T12:39:17.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to extend mask region (True) by 1 or 2 pixels?<p>I have a numpy mask of True and False values, detecting black regions in an image.</p>
<p>I want to ext... |
72,204,819 | How to download Excel file with HttpClient instead of WebClient in .NET?<p>I have the following code</p>
<pre><code>private void SaveFile(string linkToFile, string filename)
{
using WebClient client = new();
client.DownloadFile(linkToFile, ResourcePath + filename);
}
</code></pre>
<p>So my question is, how can ... | <p>The best source of documentation on <code>HttpClient</code> is, of course, the Microsoft site itself:
<a href="https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient</a>
Here's an (oversimplified) versio... | How to download Excel file with HttpClient instead of WebClient in .NET? | c#|webclient|dotnet-httpclient | 0 | 675 | 1 | 72,205,828 | 72,205,828 | 0 | true | 2022-05-11T16:50:03.747Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to download Excel file with HttpClient instead of WebClient in .NET?<p>I have the following code</p>
<pre><code>private void SaveFile(string linkToFile, ... |
72,228,856 | SwiftUI isEmpty on StateObject variable always returns true<p>I'm trying to get a form validation that checks if the value of a TextField isEmpty to disable the save button on that form.
However it seems the check for "isEmpty" always returns true even when a value is entered in the TextField.
So the button a... | <p>The issue here is your <code>standingHeight</code> var being of type <code>String</code>. Change that implementation to be an <code>Int</code> and you are good to go.</p>
<pre><code>@Published var standingHeight: Int = 0
</code></pre>
<p>and in your View:</p>
<pre><code>.disabled(addPHVTestVM.standingHeight == 0)
</... | SwiftUI isEmpty on StateObject variable always returns true | swiftui | 0 | 33 | 1 | 72,230,627 | 72,230,627 | 0 | true | 2022-05-13T11:29:36.747Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SwiftUI isEmpty on StateObject variable always returns true<p>I'm trying to get a form validation that checks if the value of a TextField isEmpty to disable ... |
72,174,139 | Flutter - Customly Sort the Current Playing Playlist ( just_audio)<p>I have been trying to find a way to sort the current playing playlist by every metadata extracted with <a href="https://pub.dev/packages/flutter_media_metadata" rel="nofollow noreferrer">flutter_media_metadata</a> but so far with no luck.</p>
<p>Is th... | <p>I was able to solve the problem by adding a sort function <a href="https://github.com/ryanheise/just_audio/blob/f234a9a7681ea712a6a9d64590a601af0a6b2a38/just_audio/lib/just_audio.dart#L3154" rel="nofollow noreferrer">in this abstract class</a> (ShuffleOrder) and then implementing it <a href="https://github.com/ryanh... | Flutter - Customly Sort the Current Playing Playlist ( just_audio) | flutter|dart | 0 | 80 | 2 | 72,188,024 | 72,188,024 | 0 | true | 2022-05-09T15:02:46.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter - Customly Sort the Current Playing Playlist ( just_audio)<p>I have been trying to find a way to sort the current playing playlist by every metadata ... |
72,168,202 | Finding the maximum number between three numbers using prolog<p>I have started learning prolog since yesterday and i am told to find the maximum number between three numbers. I am using SWI Prolog and this is the program i wrote so far.</p>
<pre><code>% If-Elif-Else statement
gte(X,Y,Z) :- X > Y,write('X is greater... | <p>A huge chunk of learning Prolog is learning to think <em><strong>recursively</strong></em>. So....</p>
<p>You should first solve the simplest problem: what is the greater of just 2 numbers? That's pretty easy, right?</p>
<pre><code>max( X, X , X ) .
max( X, Y , X ) :- X > Y .
max( X, Y , Y ) :- X < Y .
</code>... | Finding the maximum number between three numbers using prolog | prolog | 0 | 246 | 1 | 72,176,295 | 72,176,295 | 0 | true | 2022-05-09T07:14:04.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Finding the maximum number between three numbers using prolog<p>I have started learning prolog since yesterday and i am told to find the maximum number betwe... |
72,040,845 | Is it possible to enable MFA for the guest users?<p>I have created guest users in my Azure AD tenant by sending invitations via email following this link <a href="https://docs.microsoft.com/en-us/azure/active-directory/external-identities/b2b-quickstart-add-guest-users-portal" rel="nofollow noreferrer">https://docs.mic... | <p><strong>Yes, it is possible to enable MFA for guest users.</strong></p>
<p>To achieve your requirement, please follow the below steps:</p>
<ul>
<li>Make sure whether you have <strong><code>Azure AD premium P1</code> or <code>P2 license</code></strong> which is necessary to <em>create conditional access policy.</em><... | Is it possible to enable MFA for the guest users? | azure-active-directory|multi-factor-authentication | 0 | 285 | 1 | 72,041,938 | 72,041,938 | 0 | true | 2022-04-28T08:59:47.367Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it possible to enable MFA for the guest users?<p>I have created guest users in my Azure AD tenant by sending invitations via email following this link <a ... |
72,182,933 | Subprocess.popen() Doesn't Work With Swift<p>I want to <code>subprocess.popen()</code> a Swift program with Python 3.</p>
<p>parent.py:</p>
<pre><code>import subprocess
#p = subprocess.Popen(['python3', 'sub.py'], universal_newlines = True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.DEVNULL, bufs... | <p>Flushing standard output worked for me:</p>
<pre><code>import Darwin
while true {
print(readLine()!)
fflush(stdout)
}
</code></pre>
<p>I'm not too familiar with Python, but my guess is that the Python <code>print</code> probably automatically flushes.</p> | Subprocess.popen() Doesn't Work With Swift | python|swift|subprocess|popen | 0 | 77 | 1 | 72,183,301 | 72,183,301 | 0 | true | 2022-05-10T08:23:07.320Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Subprocess.popen() Doesn't Work With Swift<p>I want to <code>subprocess.popen()</code> a Swift program with Python 3.</p>
<p>parent.py:</p>
<pre><code>import... |
72,135,031 | Creating Custom Join in Django<p>I am struggling to create the correct prefetch behavior in Django. Here is the outline of the problem:</p>
<ul>
<li>Each Account has DailyQuotes, updated daily at different times (think snapshot)</li>
<li>Need to query all of those DailyQuotes, and only get the most recent quotes for ea... | <p>If you are not tied to prefetch_related you can do it in Django via DailyQuotes in 2 calls - 1 to gather the max dates and 1 for the final recordset (even using select_related if you want accompanying account info).</p>
<pre><code>from django.db.models import Max
#define lists
acc_ids = [0,1,2]
max_dates = []
recor... | Creating Custom Join in Django | sql|django|postgresql|django-views | 0 | 278 | 1 | 72,139,956 | 72,139,956 | 0 | true | 2022-05-06T00:51:13.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating Custom Join in Django<p>I am struggling to create the correct prefetch behavior in Django. Here is the outline of the problem:</p>
<ul>
<li>Each Acc... |
72,153,604 | server returns list of tuples to an ajax request but back in the html I need to work on it and html(data) doesn't give a proper structure<p>I manage to send the ajax request to the server, and the server replies with a list of tuples or it could be a dictionary too, but back in the html that sent the request, this list... | <p>As you note, dictionary.items() returns tuples, so that may not be the best approach.</p>
<p>You can use an intermediary step like converting to JSON to pass such structures</p>
<p>in your view</p>
<pre><code>import json
dictionary = {
"key1": "value1",
"key2": ... | server returns list of tuples to an ajax request but back in the html I need to work on it and html(data) doesn't give a proper structure | python|django|ajax | 0 | 73 | 1 | 72,153,879 | 72,153,879 | 0 | true | 2022-05-07T14:48:32.917Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
server returns list of tuples to an ajax request but back in the html I need to work on it and html(data) doesn't give a proper structure<p>I manage to send ... |
72,207,214 | Three strings of code repeat in three different view-functios<p>I have three view-functions in views.py in django project that using a same three arguments in them:</p>
<pre><code>paginator = Paginator(post_list, settings.POSTS_LIMIT)
page_number = request.GET.get('page')
page_obj = paginator.get_page(page_number)
</co... | <p>As you note, you can create a single function to handle this, taking the info it needs as arguments. You can include this as a helper function in your views.py or separate it out into a utils.py and then import it. Assuming the latter, for tidiness and future-proofing</p>
<p>utils.py</p>
<pre><code>from django.core... | Three strings of code repeat in three different view-functios | python-3.x|django|function|view|utility | 0 | 51 | 1 | 72,210,124 | 72,210,124 | 0 | true | 2022-05-11T20:23:25.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Three strings of code repeat in three different view-functios<p>I have three view-functions in views.py in django project that using a same three arguments i... |
72,214,952 | memory leaking in custom button memory problems<p>Trying to figure out why the deinit is not called in OptionsButton class</p>
<pre><code>func getActionButtonView(delegate: DiscoveryActionViewDelegate) -> UIView {
switch delegate.actionType {
case .showVariants:
let optionButton = OptionsButton(frame: CGRect... | <p>You should confirm with “Debug memory graph”, but <code>selectOptionsAction</code> is a closure that has a reference to itself (and <code>delegate</code>, too). This is a classic “strong reference cycle”.</p>
<p>One can use <code>weak</code> references in the capture lists to break the strong reference cycle(s):</p>... | memory leaking in custom button memory problems | swift|memory-leaks|uibutton|closures|deinit | 0 | 52 | 1 | 72,219,620 | 72,219,620 | 0 | true | 2022-05-12T11:44:37.717Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
memory leaking in custom button memory problems<p>Trying to figure out why the deinit is not called in OptionsButton class</p>
<pre><code>func getActionButto... |
72,130,207 | Redirect to the same page and display a message if user insert wrong data<p>I am building a web chat application with chat rooms.
I have a page where users can open a new room, inside the page, there is a form.
I want to display a message to the user if he submits the form with a room that already exists.</p>
<hr />
<p... | <p>The problem is that you are returning a redirect to another route as well as trying to pass a variable to a template in that route. One way you could do this is by simply re-rendering the template, passing the variable, <code>error</code> to it at the same time. Try replacing:</p>
<pre><code>return redirect(url_for(... | Redirect to the same page and display a message if user insert wrong data | python|flask | 0 | 22 | 1 | 72,131,715 | 72,131,715 | 0 | true | 2022-05-05T15:56:32.757Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Redirect to the same page and display a message if user insert wrong data<p>I am building a web chat application with chat rooms.
I have a page where users c... |
72,233,180 | Overflow in footer<p>I have a footer with the follow code:</p>
<pre><code>
<div class="footer" style="width: 100%;"><h5>
<a style="width: 30%; float: left; margin-left: 2.5%; background: #030534; color: white;" href="descontos.html">Vantagens</a>
<a ... | <p>this may help you, see snippet</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>.footer {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
background-color: whit... | Overflow in footer | html|css|scroll|overflow|footer | 0 | 52 | 1 | 72,233,443 | 72,233,443 | 0 | true | 2022-05-13T17:08:33.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Overflow in footer<p>I have a footer with the follow code:</p>
<pre><code>
<div class="footer" style="width: 100%;"><h5>
<... |
72,216,779 | Renaming layout tab autocad c# .net<p>the following code is intended to rename the layout tabs in autocad. It renames always the first 2 layout tabs. When I add more tabs before running the program it renames them all but skips layout5. When I run the program again it renumbers them all (including layout5).
If after th... | <p>It looks like we need to iterate through all layouts to refresh the TabOrder first.
Here's an example.</p>
<pre><code> [CommandMethod("LayRenum")]
public void CmdLayRenum()
{
var doc = Application.DocumentManager.MdiActiveDocument;
var edt = doc.Editor;
var db = doc.Datab... | Renaming layout tab autocad c# .net | c#|.net|layout|autocad | 0 | 67 | 1 | 72,224,998 | 72,224,998 | 0 | true | 2022-05-12T13:47:10.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Renaming layout tab autocad c# .net<p>the following code is intended to rename the layout tabs in autocad. It renames always the first 2 layout tabs. When I ... |
72,161,874 | How can I add more icon in input tag when I key down comma<p>I'm wondering how can I add more icon, when I keydown comma inside input tag</p>
<p><a href="https://i.stack.imgur.com/WoLCE.png" rel="nofollow noreferrer">before input comma </a><br>
<a href="https://i.stack.imgur.com/F8vfS.png" rel="nofollow noreferrer">aft... | <p>You can add an EventListener for the <code>keyup</code> event, that is fired, if a key was pressed and is released. The event interface proviedes a <code>code</code> property, that contains the code of the key that was pressed. If this <code>code</code> is "Comma", you add a (or any other character or ico... | How can I add more icon in input tag when I key down comma | javascript|html|input|icons|markup | 0 | 20 | 1 | 72,162,115 | 72,162,115 | 0 | true | 2022-05-08T14:16:41.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I add more icon in input tag when I key down comma<p>I'm wondering how can I add more icon, when I keydown comma inside input tag</p>
<p><a href="htt... |
72,167,232 | Is it able to delete the file after I send files in Django<pre><code>from django.http import FileResponse
def send_file():
#some processes
response = FileResponse(open(file_name, 'rb'),as_attachment=True)
return response
</code></pre>
<p>I want to delete the file after my web app send it, but my server on H... | <p>The simplest solution is to use <a href="https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryFile" rel="nofollow noreferrer">TemporaryFile</a> which will be deleted on close (in your case FileResponse will close the file).</p>
<p>If this solution is not applicable for your case (because of the file is ... | Is it able to delete the file after I send files in Django | python|django | 0 | 96 | 1 | 72,171,131 | 72,171,131 | 0 | true | 2022-05-09T05:11:17.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it able to delete the file after I send files in Django<pre><code>from django.http import FileResponse
def send_file():
#some processes
response =... |
72,143,970 | Why React Component render many time when get event from socket.io?<p>I am using socket.io for my project social network web, when user connect I join, but when I get message from socket.io by group chat, My component render message many time. Example: My group has 4 people, I send message to group then one user get me... | <pre><code> socket.on("newMessage", ({ message, conversation }) => {
conversation.members.forEach((member) => {
if (member._id == message.sender._id) return;
const user = getUser(member._id);
socket.in(conversation._id).emit("getMessage", { message, conversation });
... | Why React Component render many time when get event from socket.io? | node.js|reactjs|socket.io | 0 | 51 | 1 | 72,144,483 | 72,144,483 | 0 | true | 2022-05-06T15:28:28.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why React Component render many time when get event from socket.io?<p>I am using socket.io for my project social network web, when user connect I join, but w... |
72,224,647 | Postgres Sql - How to apply Offset on Timestamp<p>My offset-date-time object I store in the DB with 2 columns, one <strong>timestamp</strong>(UTC) column
and another corresponding <strong>offset</strong>.</p>
<p>For example, if I get: <strong>2017-05-01T16:16:35+05:00</strong>, in the DB I will store this data in 2 col... | <blockquote>
<p>For example, if I get: 2017-05-01T16:16:35-05:00, in the DB I will
store this data in 2 columns the first timestamp will have the value
in UTC (2017-05-01T11:16:35), and the offset column will have the -5
timezone in minutes so -300 in minutes.</p>
</blockquote>
<p><a href="https://www.postgresql.org/do... | Postgres Sql - How to apply Offset on Timestamp | database|postgresql|timezone|timezone-offset | 0 | 422 | 2 | 72,227,245 | 72,227,245 | 0 | true | 2022-05-13T04:58:38.163Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Postgres Sql - How to apply Offset on Timestamp<p>My offset-date-time object I store in the DB with 2 columns, one <strong>timestamp</strong>(UTC) column
and... |
72,161,568 | Update style of individual feature from single geoJSON source on Mapbox map, when clicked<p>I'm working with Mapbox GL JS to plot geoJSON data on a map using their <a href="https://docs.mapbox.com/mapbox-gl-js/example/external-geojson/" rel="nofollow noreferrer">external geoJSON example</a> as a starting point. The geo... | <p>This is possible using <a href="https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/#feature-state" rel="nofollow noreferrer">feature-state</a>. The first thing to do is to ensure the layer data contains ids for each feature (in the example the source data doesn't so we need to add <code>generateId: true</co... | Update style of individual feature from single geoJSON source on Mapbox map, when clicked | mapbox|geojson|mapbox-gl-js | 0 | 163 | 1 | 72,187,976 | 72,187,976 | 0 | true | 2022-05-08T13:38:36.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Update style of individual feature from single geoJSON source on Mapbox map, when clicked<p>I'm working with Mapbox GL JS to plot geoJSON data on a map using... |
72,214,381 | WPF bind list box Selected item into textbox<p>I'm trying to put any selected item's name in my list box in the textbox next to it. But I've got trouble doing so.</p>
<p><img src="https://i.stack.imgur.com/8aai0.jpg" alt="listbox image" /></p>
<p>Here's a little bit of my code:</p>
<pre><code> <DockPanel Margin=&... | <p>Because you are showing <code>Text="{Binding ElementName=lbNames,Path=SelectedItem}"</code>and your selected item is an user object.
Instead of this you can use something like that.
First add <code>SelectedValuePath="Name"</code> into your listbox.
Then use <code>Text="{Binding ElementName=l... | WPF bind list box Selected item into textbox | c#|wpf|data-binding | 0 | 47 | 1 | 72,214,505 | 72,214,505 | 0 | true | 2022-05-12T11:01:38.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
WPF bind list box Selected item into textbox<p>I'm trying to put any selected item's name in my list box in the textbox next to it. But I've got trouble doin... |
72,205,815 | How do I get my current ruby program to loop through three input options and display if the same option has been used twice?<p>I am attempting to get my current program to give the user three different input options and notify the user if they have attempted to use the same input option twice.
My current code:</p>
<pre... | <p>Move the history check to the beginning of your loop, and actually populate the history.
Here's one of many ways to accomplish that:</p>
<pre><code>
loop do
if history.include?(code)
puts 'Code already input'
print prompt
code = gets.chomp.to_i
next # Stop processing this iteration of the loop imme... | How do I get my current ruby program to loop through three input options and display if the same option has been used twice? | ruby-on-rails|ruby | 0 | 54 | 2 | 72,206,134 | 72,206,134 | 0 | true | 2022-05-11T18:16:46.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I get my current ruby program to loop through three input options and display if the same option has been used twice?<p>I am attempting to get my curr... |
72,210,150 | Create a Range Object from Multiple Areas Items<p>I have a function that aims to return the visible cells (as a range) after applying an autofilter to an inactive worksheet; the autofilter data is
represented by the range "filteredData" passed to the function. The returned range can then be looped through by ... | <p>Given your use case of looping through the nth row you could use a utility function, e.g.</p>
<pre><code>Function getRangeRowNum(data As Range, num As Long) As Range
If num < 1 Then num = 1
If data.Areas.Count = 1 Then
If num > data.Rows.Count Then
Set getRangeRowNum = data.Rows(dat... | Create a Range Object from Multiple Areas Items | excel|vba|area|autofilter | 0 | 60 | 1 | 72,231,951 | 72,231,951 | 0 | true | 2022-05-12T04:30:43.113Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a Range Object from Multiple Areas Items<p>I have a function that aims to return the visible cells (as a range) after applying an autofilter to an ina... |
72,188,020 | jquery submit() function does not work with invisible reCAPTCHA<p>I tried to use jquery function submit() to alert something when the form submitted but nothing happened. However if I removed the google invisible reCAPTCHA code, the submit function works. Is there a way to get the function to work without removing the ... | <p>I have used type="submit" on input instead of a button.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><html>
<head>
<title>reCAPTCHA ... | jquery submit() function does not work with invisible reCAPTCHA | jquery|recaptcha|invisible-recaptcha | 0 | 72 | 1 | 72,188,606 | 72,188,606 | 0 | true | 2022-05-10T14:17:09.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jquery submit() function does not work with invisible reCAPTCHA<p>I tried to use jquery function submit() to alert something when the form submitted but noth... |
72,190,113 | table header no wrap float right in th<p>Having trouble floating an element to the right inside a table header cell. I thought it was bootstrap but wrapping still happens with plain html.<br />
Just need a table header where I can put an icon to the right. Tried white-space:nowrap as well as display:table.</p>
<p><a ... | <p>You can use <code>display:flex;</code> and <code>justify-content:space-between;</code> whenever you need proper space between two elements inside another element. Like here I am using two span inside a div space-between property equally distribute space between these two. I hope you understand this point.</p>
<p><di... | table header no wrap float right in th | html|bootstrap-5 | 0 | 48 | 1 | 72,190,510 | 72,190,510 | 0 | true | 2022-05-10T16:43:09.717Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
table header no wrap float right in th<p>Having trouble floating an element to the right inside a table header cell. I thought it was bootstrap but wrapping... |
72,197,067 | RN Web, href in TouchableOpacity: onPress >navigation, onRight click > context menu with possibility to open link<p>I have a site with TouchableOpacity that uses react-navigation to navigate to another screen. Is it possible in some way to add href to this button so I could open the another screen in new tab using cont... | <p>Found an answer!</p>
<p>Even thought it is not documented in here: <a href="https://necolas.github.io/react-native-web/docs/accessibility/#accessibility-patterns" rel="nofollow noreferrer">https://necolas.github.io/react-native-web/docs/accessibility/#accessibility-patterns</a><br />
and using href in TouchableOpaci... | RN Web, href in TouchableOpacity: onPress >navigation, onRight click > context menu with possibility to open link | react-native-web | 0 | 84 | 1 | 72,197,387 | 72,197,387 | 0 | true | 2022-05-11T07:31:15.993Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
RN Web, href in TouchableOpacity: onPress >navigation, onRight click > context menu with possibility to open link<p>I have a site with TouchableOpacity that ... |
72,231,435 | Users get disconnected during test runs<p>I work on a Ruby on Rails app that has many test in its deployment process (~3000)
We use capybara and selenium for feature tests.
We recently migrated CI from Heroku CI to CircleCi.
We run 10 docker instances to run our test suite.</p>
<p>For many feature tests, we use this bl... | <p>Thanks to Thomas Walpole, I finally found the issue.
First thing is obviously to get logs from test runs.</p>
<p>I managed to save Selenium driver logs for failing tests using this in my config:</p>
<pre><code>config.after(:each) do |example|
if example.metadata[:js] && example.exception
File.write(&qu... | Users get disconnected during test runs | rspec|devise|capybara|circleci | 0 | 33 | 1 | 72,317,452 | 72,317,452 | 0 | true | 2022-05-13T14:44:35.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Users get disconnected during test runs<p>I work on a Ruby on Rails app that has many test in its deployment process (~3000)
We use capybara and selenium for... |
72,165,354 | How to make ForEach loop for a Codable Swift Struct's Dictionary (based on Firestore map)<p>I am trying to do a ForEach loop that lists all of the social medias a user might have. This would be on a scrollable list, the equivalent of music streaming apps have a list of all the songs you save in your library. The user's... | <p>You have both <code>vm.user</code> and <code>socials</code> as optionals.
The <code>ForEach</code> loop requires non-optionals, so
you could try the following approach to unwrap those for the <code>ForEach</code> loop.</p>
<pre><code> if let user = vm.user, let socials = user.socials {
ForEach(socials.sor... | How to make ForEach loop for a Codable Swift Struct's Dictionary (based on Firestore map) | swift|firebase|swiftui|foreach|codable | 0 | 193 | 1 | 72,165,601 | 72,165,601 | 0 | true | 2022-05-08T21:55:20.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to make ForEach loop for a Codable Swift Struct's Dictionary (based on Firestore map)<p>I am trying to do a ForEach loop that lists all of the social med... |
72,215,567 | What does mean these errors in Gradle?<p>I'm trying to assemble a Kotlin project using Gradle and I'm getting this kind of errors:</p>
<pre><code>Execution failed for task ':app:processProDebugResources'.
> Could not resolve all files for configuration ':app:ProDebugRuntimeClasspath'.
> Failed to transform mis... | <p>In the end, the base Docker image I was taking was an Alpine and after changing it the execution was successful. Probably it was missing something.</p> | What does mean these errors in Gradle? | android|gradle|android-gradle-plugin|assemble | 0 | 76 | 1 | 72,225,430 | 72,225,430 | 0 | true | 2022-05-12T12:25:17.900Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What does mean these errors in Gradle?<p>I'm trying to assemble a Kotlin project using Gradle and I'm getting this kind of errors:</p>
<pre><code>Execution f... |
72,167,475 | Spring boot - Loading configuration property file in to java.util.properties<p>I need to load a configuration property fully into java.util.Properties file in my spring boot project and then need to pass this wherever needed. With Spring boot I can load the full file and can get the access of the values though keys. Bu... | <p>If you're looking for specific ways of loading them using Spring-boot I'd suggest looking into:</p>
<ul>
<li><a href="https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config.typesafe-configuration-properties" rel="nofollow noreferrer">Binding properties to an object</a> ... | Spring boot - Loading configuration property file in to java.util.properties | java|spring|spring-boot | 0 | 152 | 1 | 72,168,691 | 72,168,691 | 0 | true | 2022-05-09T05:51:59.573Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring boot - Loading configuration property file in to java.util.properties<p>I need to load a configuration property fully into java.util.Properties file i... |
72,236,856 | How can i disconnect a user from my voice channel using menu discordjs<p>So I'm trying to disconnect a specified user that is on my voiceChannel clicking on his username, this is my code:</p>
<pre class="lang-js prettyprint-override"><code>options = [];
let perms = channel.members.map(c => c.user.tag)
... | <p>I changed up this first part but you can use your way if you'd rather (you'd have to use a different way of getting the <code>member2disconnect</code>). Just seemed easier this way since the value would be the user's id rather than a integer.</p>
<pre class="lang-js prettyprint-override"><code>const embed = new Mess... | How can i disconnect a user from my voice channel using menu discordjs | discord|discord.js | 0 | 73 | 1 | 72,240,242 | 72,240,242 | 0 | true | 2022-05-14T02:19:07.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can i disconnect a user from my voice channel using menu discordjs<p>So I'm trying to disconnect a specified user that is on my voiceChannel clicking on ... |
72,159,278 | MongoDB For each group select the records with the max value<p>In MongoDB I'm trying to filter a collection down to only those documents that contain the most recent date by their respective group.</p>
<p>In traditional SQL I'd do something like:</p>
<pre><code>Select *
From table a
Join (Select my_group, max(date) as ... | <p>You're close to the answer.</p>
<p>For the last 2 stages:</p>
<ol start="3">
<li><p><code>$unwind</code> - Deconstruct the <code>items</code> array field to multiple documents.</p>
</li>
<li><p><code>$replaceWith</code> - Replace the output document with <code>items</code> document.</p>
</li>
</ol>
<pre><code>db.col... | MongoDB For each group select the records with the max value | mongodb | 0 | 440 | 1 | 72,159,399 | 72,159,399 | 0 | true | 2022-05-08T08:28:28.883Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MongoDB For each group select the records with the max value<p>In MongoDB I'm trying to filter a collection down to only those documents that contain the mos... |
72,147,102 | How to get table and it's element with Python/Selenium<p>I'm trying to get all the price in the table at this URL:
<code>https://www.skyscanner.it/trasporti/voli/bud/rome/?adults=1&adultsv2=1&cabinclass=economy&children=0&childrenv2=&destinationentityid=27539793&inboundaltsenabled=true&infan... | <p>You can grab table data meaning all prices using selenium with pandas DataFrame. There are two tables exist of the table data prices</p>
<pre><code>import pandas as pd
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from s... | How to get table and it's element with Python/Selenium | python|selenium|web-scraping | 0 | 88 | 1 | 72,147,576 | 72,147,576 | 0 | true | 2022-05-06T20:35:41.503Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get table and it's element with Python/Selenium<p>I'm trying to get all the price in the table at this URL:
<code>https://www.skyscanner.it/trasporti/... |
72,176,138 | Scraping - Cannot identify product class<p>Good afternoon all,</p>
<p>Been trying to develop a scrapper for this specific page.</p>
<p>I am trying to extract product title and prices.</p>
<p>Code is the following</p>
<pre><code>from bs4 import BeautifulSoup
import requests
import pandas as pd
import urllib.parse
websi... | <p>Product titles are immediate after <code>[class="product-card__name"]</code> that's text node. So to get text node value you can call <code>.find(text=True)</code> method.The same way is to grab price.Now,It's working</p>
<pre><code>from bs4 import BeautifulSoup
import requests
import pandas as pd
import... | Scraping - Cannot identify product class | python|web-scraping|beautifulsoup | 0 | 44 | 2 | 72,176,306 | 72,176,306 | 0 | true | 2022-05-09T17:41:23.700Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Scraping - Cannot identify product class<p>Good afternoon all,</p>
<p>Been trying to develop a scrapper for this specific page.</p>
<p>I am trying to extract... |
72,211,030 | Retrieve all names from html tags using BeautifulSoup<p>I managed to setup by Beautiful Soup and find the tags that I needed. How do I extract all the names in the tags?</p>
<pre><code>tags = soup.find_all("a")
print(tags)
</code></pre>
<p>After running the above code, I got the following output</p>
<pre><cod... | <p>No need to apply <code>re</code>. You can easily grab all the names by iterating all a tags then call <code>title attribute or get_text() or .find(text=True)</code></p>
<pre><code>html='''
<html>
<body>
<a href="/wiki/Alfred_the_Great" title="Alfred the Great">
Alfred the ... | Retrieve all names from html tags using BeautifulSoup | html|beautifulsoup|python-re | 0 | 28 | 2 | 72,211,259 | 72,211,259 | 0 | true | 2022-05-12T06:34:12.940Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Retrieve all names from html tags using BeautifulSoup<p>I managed to setup by Beautiful Soup and find the tags that I needed. How do I extract all the names ... |
72,217,100 | How to change text on a label on a specific row<p>I have a piece of code where I make labels and buttons on a loop until I have enough to fit all the data, now I am trying to change the text in label 3 (lbl3) with a click of a button in the same row.<br /><br /></p>
<ul>
<li>So the first thing I had to do was to get th... | <p>You can pass the password label and blur/unblur button to the two functions instead of <em>record ID</em> and <em>index</em>, then you don't need to know the row and column where the label is and don't need to execute any SQL query inside the functions.</p>
<p>Below is an simplified example based on your code:</p>
<... | How to change text on a label on a specific row | python|tkinter | 0 | 56 | 1 | 72,219,043 | 72,219,043 | 0 | true | 2022-05-12T14:05:39.173Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change text on a label on a specific row<p>I have a piece of code where I make labels and buttons on a loop until I have enough to fit all the data, n... |
72,148,540 | if statement is not interpretable as logical in Shiny reactive function<p>I am currently working on an R Shiny project and below is a small reprex of the things I am trying to accomplish in my actual project. The basic idea is to process reactive data tables that are generated from user inputs through conditional state... | <p>You can not use <code>if</code> to build constitutional pipe <code>%>%</code> (especially depending on the content of the piped object).</p>
<p>You can use <code>ifelse()</code> instead, or better : <code>if_else</code>()`:</p>
<pre><code>input_table() %>%
mutate(col3 =
if_else(col1 == "Add",
... | if statement is not interpretable as logical in Shiny reactive function | if-statement|shiny|conditional-statements|reactive | 0 | 59 | 1 | 72,148,637 | 72,148,637 | 0 | true | 2022-05-07T00:23:12.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
if statement is not interpretable as logical in Shiny reactive function<p>I am currently working on an R Shiny project and below is a small reprex of the thi... |
72,198,476 | Jest won´t complete my async function for my api call function<p>I´m working on a small app that uses an API. I want to make a test to see that the function works as intended. The function works, but in the test, the function will not complete and therefore fail. I´ve looked here on stack overflow and on youtube for ho... | <p>I think the problem is the <code>fetch()</code> function. On Clientside it exists (in browser) but on <code>nodejs</code> it does not exist. Since you added a <code>try/catch</code> block the error is <em>silently</em> omitted.</p>
<p>First of, log the error!!, It is really dangerous to <strong>NOT</strong> log an ... | Jest won´t complete my async function for my api call function | typescript|react-native|asynchronous|async-await|jestjs | 0 | 162 | 1 | 72,198,970 | 72,198,970 | 0 | true | 2022-05-11T09:20:31.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Jest won´t complete my async function for my api call function<p>I´m working on a small app that uses an API. I want to make a test to see that the function ... |
72,229,134 | How can I call parent function in a child React component?<p>So I want to add delete button, but when I click it I see error:
'TypeError: props.onDeleteTask is not a function' - in component - SingleTask.js</p>
<pre><code>//../components/SingleTask.js
(...)
function deleteTask(props){
const dataId = props.id;
... | <p>I believe your error is because the OnClick event send 1 parameters to the function wich is the event. In your case the function deleteTask is receiving the event as params wich you name "props". You could fix this by using this syntax :</p>
<pre><code>onClick={() => deleteTask()}
</code></pre>
<p>Or ju... | How can I call parent function in a child React component? | reactjs|mongodb|function|next.js | 0 | 134 | 3 | 72,229,316 | 72,229,316 | 0 | true | 2022-05-13T11:51:16.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I call parent function in a child React component?<p>So I want to add delete button, but when I click it I see error:
'TypeError: props.onDeleteTask ... |
72,170,507 | Reproject Canary Islands sf data to the same projection of Spain boundary map using mapSpain in R<p>I have a sf object with some drought data of Spain, and I want to project this data into a leaflet map. The data source is: <a href="https://www.miteco.gob.es/es/biodiversidad/temas/desertificacion-restauracion/lucha-con... | <p>creator of mapSpain speaking.</p>
<p>You can avoid the displacement of the Canary Island using the option <code>moveCAN = FALSE</code>. This is available in all the functions of the package, and all the doc packages have an specific section about this:</p>
<p><a href="https://ropenspain.github.io/mapSpain/reference/... | Reproject Canary Islands sf data to the same projection of Spain boundary map using mapSpain in R | r|leaflet|sf | 0 | 77 | 2 | 72,178,477 | 72,178,477 | 0 | true | 2022-05-09T10:27:23.410Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reproject Canary Islands sf data to the same projection of Spain boundary map using mapSpain in R<p>I have a sf object with some drought data of Spain, and I... |
72,172,923 | Selenium for Chromium in Python<p>I've created a Python script to collect data from different websites using Selenium. On my Windows PC the script works fine and does exactly what it's supose to do. Now I'm trying to make my script run on my Raspberyy Pi. On my PC I use Google Chrome with selenium but ofcourse Chrome i... | <p>After a long search I found a solution for my own problem. People from the Raspbian project have compiled a chromium-chromedriver version for the armhf platform and added it to the repo. The following command line will add the Chromium-driver and make it ready to use:</p>
<pre><code>sudo apt-get install chromium-chr... | Selenium for Chromium in Python | python|selenium|selenium-webdriver|raspberry-pi|chromium | 0 | 345 | 1 | 72,254,598 | 72,254,598 | 0 | true | 2022-05-09T13:39:25.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Selenium for Chromium in Python<p>I've created a Python script to collect data from different websites using Selenium. On my Windows PC the script works fine... |
72,210,295 | How to close a modal with Javascript?<p>I have 6 different modals. Each modal has a exit button named 'modal-box__exit-button'. I have tried out some JS to get the modals to close when a user clicks the exit button but I must be writing it wrong. Here is my code:</p>
<p><div class="snippet" data-lang="js" data-hide="fa... | <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 closeModalsBtn = document.querySelectorAll(".modal-box__exit-button");
closeModalsBtn.forEach(closeBtn=>{
closeBtn.addEve... | How to close a modal with Javascript? | javascript|html|css|shopify | 0 | 272 | 1 | 72,210,454 | 72,210,454 | 0 | true | 2022-05-12T04:55:42.800Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to close a modal with Javascript?<p>I have 6 different modals. Each modal has a exit button named 'modal-box__exit-button'. I have tried out some JS to g... |
72,139,709 | How to automatically add a name from selected id in View page from controller ASP.NET MVC<p>I want to get a name from selected id in my view page</p>
<p>First Model</p>
<pre><code>public class Transaction
{
[Key]
public int Id { get; set; }
[Required]
public int supplier_id { get; set; }
[Required]
... | <p>Try this:</p>
<p>Define an integer type variable in <code>EvaluateSheet</code> model for <code>example("public int Sup_id { get; set; }")</code> and tag it with <code>DropDownListFor</code>.</p>
<p>In Controller select specific data from supplier table with the help of new define <code>int Sup_id</code> an... | How to automatically add a name from selected id in View page from controller ASP.NET MVC | c#|asp.net|asp.net-mvc | 0 | 100 | 1 | 72,140,308 | 72,140,308 | 0 | true | 2022-05-06T10:05:20.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to automatically add a name from selected id in View page from controller ASP.NET MVC<p>I want to get a name from selected id in my view page</p>
<p>Firs... |
72,056,498 | SQL - Returning all transactions based on one value<p>Using a large table of retail transactions I am trying to review customer purchases where they bought a specific product category.</p>
<p>Table example below, customers 1 and 3 bought an item of citrus so I want to get ALL of the items from that transaction, not jus... | <p>You can achieve your desired output using the following query</p>
<pre><code>SELECT
Transaction,
COUNT(Product) AS Products_Bought
FROM TABLE
WHERE Transaction IN (SELECT Transaction
FROM TABLE
WHERE Category = 'Citrus')
GROUP BY Transaction;
</code></pre> | SQL - Returning all transactions based on one value | sql | 0 | 32 | 2 | 72,056,734 | 72,056,734 | 0 | true | 2022-04-29T10:25:30.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL - Returning all transactions based on one value<p>Using a large table of retail transactions I am trying to review customer purchases where they bought a... |
72,196,106 | Spawn another process on same JVM<p>From a Java application I want to run another Java application on the same Java installation but in a separate process.</p>
<p>AFAIK for a new process I would use ProcessBuilder to run a command like</p>
<pre><code>java -jar my.jar
</code></pre>
<p>but what if java is in a different ... | <p>If <code>jlink</code> image used within <code>jpackage</code> based apps is built without using the <a href="https://stackoverflow.com/questions/71924648/jpackage-for-only-one-application/71926280#71926280"><code>--strip-native-commands</code></a> flag then the runtime image will contain <code>bin/java</code> (or <c... | Spawn another process on same JVM | java | 0 | 84 | 1 | 72,197,707 | 72,197,707 | 0 | true | 2022-05-11T06:03:50.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spawn another process on same JVM<p>From a Java application I want to run another Java application on the same Java installation but in a separate process.</... |
72,201,191 | ECS Fargate task failing to start: "standard_init_linux.go:228: exec user process caused: exec format error" even when built for amd64<p>My CDK stack with a Fargate task won't start, tasks stop directly with the error:</p>
<blockquote>
<p>"standard_init_linux.go:228: exec user process caused: exec format
error&quo... | <p>It actually was the image after all.</p>
<p>My problem was that I built an image locally first but when deploying I used a shell script. The script didn't tag the image properly so the actually pushed image was an old one (with the wrong architecture). Found this out by purging my docker image and containers locally... | ECS Fargate task failing to start: "standard_init_linux.go:228: exec user process caused: exec format error" even when built for amd64 | node.js|amazon-web-services|docker|amazon-ecs|aws-fargate | 0 | 593 | 1 | 72,227,846 | 72,227,846 | 0 | true | 2022-05-11T12:37:15.420Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ECS Fargate task failing to start: "standard_init_linux.go:228: exec user process caused: exec format error" even when built for amd64<p>My CDK stack with a ... |
72,145,664 | How to return a reactive dataframe from within a shiny module that depends on a button click?<p>Aim: Return a reactive dataframe object from within the module named "modApplyAssumpServer"
Problem: I am getting an endless loop. Even if I wrap everything within the observeevent logic within isolate()</p>
<p>I ... | <p>Try this</p>
<pre><code>library(shiny)
library(dplyr)
df_agg_orig <- data.frame(proj_1 = c(2,3))
modGrowthInput <- function(id) {
ns <- NS(id)
tagList(
numericInput(ns("first"),label = "Assumption",value = 10),
)
}
modGrowthServer <- function(id) {
moduleServer(id, func... | How to return a reactive dataframe from within a shiny module that depends on a button click? | r|shiny|module|reactive|dt | 0 | 230 | 1 | 72,146,376 | 72,146,376 | 0 | true | 2022-05-06T17:59:44.377Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to return a reactive dataframe from within a shiny module that depends on a button click?<p>Aim: Return a reactive dataframe object from within the modul... |
72,148,605 | rShiny Looping on ui filter conditions<p>I am trying to create a dashboard in rShiny which follow the following steps</p>
<ol>
<li>Select a parameter</li>
<li>Filter data from a source table for this parameter</li>
<li>Create a list of this filtered data for one of the column</li>
<li>Iterate over this list to display ... | <p>It is better to do server side processing. Try this</p>
<pre><code>library(shiny)
library(ggplot2)
df_mtcars <- mtcars
df_mtcars <- cbind(CarName = rownames(df_mtcars), df_mtcars)
df_mtcars$CarName <- sub(" ", "_", df_mtcars$CarName)
simpUI <- function(id) {
ns <- NS(id)
tagL... | rShiny Looping on ui filter conditions | shiny|shinydashboard|shinyapps|shiny-reactivity | 0 | 28 | 1 | 72,152,394 | 72,152,394 | 0 | true | 2022-05-07T00:39:07.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
rShiny Looping on ui filter conditions<p>I am trying to create a dashboard in rShiny which follow the following steps</p>
<ol>
<li>Select a parameter</li>
<l... |
72,164,931 | rshiny dashboard by looping individual values<p>There is one dashboard where need to put the analysis for each of the element selected list.
I have created a setup as below fot testing
Need to generate the graphs for the date for the individual symbols as shown below.
The date is selected from the drop down. The list o... | <p>Try this</p>
<pre><code>df_rep_date <- data.frame('RunDate'= character(),'ListStocks' = character(), stringsAsFactors=FALSE)
df_rep_date[1,] <- c("2020-01-06", 'AAPL')
df_rep_date[2,] <- c("2021-01-04", 'ORCL')
df_rep_date[3,] <- c("2022-01-04", 'FB,MSFT')
#df_rep_d... | rshiny dashboard by looping individual values | r|shiny|quantmod|shinyapps | 0 | 38 | 1 | 72,165,139 | 72,165,139 | 0 | true | 2022-05-08T20:39:05.350Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
rshiny dashboard by looping individual values<p>There is one dashboard where need to put the analysis for each of the element selected list.
I have created a... |
72,154,160 | TypeError: unsupported operand type(s) for %: 'BinaryTreeNode' and 'int'<p>**I'm trying to obtain the sum of even numbers in my class through % operator, but the result throws:</p>
<pre class="lang-none prettyprint-override"><code>TypeError: unsupported operand type(s) for %: 'BinaryTreeNode' and 'int'
</code></pre>
<p... | <p>The immediate cause of your error is that your code is doing this: <code>if root.left%2==0:</code>. But <code>root.left</code>, as the message says, is a <code>BinaryTreeNode</code> which you can't take a mod of. Or it could be <code>None</code>, ditto.</p>
<p>You could do <code>if root.left.data %2 == 0:</code> to ... | TypeError: unsupported operand type(s) for %: 'BinaryTreeNode' and 'int' | python | 0 | 29 | 1 | 72,154,555 | 72,154,555 | 0 | true | 2022-05-07T15:54:34.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
TypeError: unsupported operand type(s) for %: 'BinaryTreeNode' and 'int'<p>**I'm trying to obtain the sum of even numbers in my class through % operator, but... |
72,223,427 | reshaping the dataset in python<p>I have this dataset:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">Account</th>
<th style="text-align: center;">lookup</th>
<th style="text-align: right;">FY11USD</th>
<th style="text-align: left;">FY12USD</th>
<th style="text-al... | <p>One efficient option is to transform to long form with <a href="https://pyjanitor-devs.github.io/pyjanitor/api/functions/#janitor.functions.pivot.pivot_longer" rel="nofollow noreferrer">pivot_longer</a> from <a href="https://pyjanitor-devs.github.io/pyjanitor/" rel="nofollow noreferrer">pyjanitor</a>, using the <cod... | reshaping the dataset in python | python|pandas|melt | 0 | 47 | 2 | 72,223,754 | 72,223,754 | 0 | true | 2022-05-13T00:51:27.240Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
reshaping the dataset in python<p>I have this dataset:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;"... |
72,169,757 | Last reversed word of a string is shifting to a newline, why?<p>I'm trying to reverse a string word by word in C. So far, I succeeded in reversing words, but there is a new line issue I don't understand why happening.
The code is below.</p>
<pre><code>#include <stdio.h>
void reverse_string(char input[], int start... | <p>As mentioned in the comments, the string returned by the call to <code>fgets</code> will include the terminating newline character. As that newline isn't an <em>actual</em> space character, it is considered part of the last word. To deal with this, you could remove that newline, as indicated in the linked posts.</p>... | Last reversed word of a string is shifting to a newline, why? | c|string|newline|reverse | 0 | 33 | 1 | 72,169,881 | 72,169,881 | 0 | true | 2022-05-09T09:29:36.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Last reversed word of a string is shifting to a newline, why?<p>I'm trying to reverse a string word by word in C. So far, I succeeded in reversing words, but... |
72,161,041 | setValue dynamic to object in angular7<p>I have this code which I want to refactor to better solution:</p>
<pre><code> async onServerRequestForDraft(res: { value: {}; tabType: ETabType; }) {
res.value = this.uiForm.value;
res.value = this.data;
res.value['brokerage'] = this.uiForm.valu... | <p>You don't need forEach for it to work though you can use it.</p>
<pre><code> async onServerRequestForDraft(res: { value: {}, tabType: ETabType }) {
Object.assign(res.value, {
'brokerage': this.uiForm.value.brokerage ?? { id: 0, name: null },
'org': this.uiForm.value.selectedPhone ?? '',
... | setValue dynamic to object in angular7 | angular|typescript|object|refactoring | 0 | 35 | 2 | 72,161,661 | 72,161,661 | 0 | true | 2022-05-08T12:35:44.730Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
setValue dynamic to object in angular7<p>I have this code which I want to refactor to better solution:</p>
<pre><code> async onServerRequestForDraft(res: ... |
72,087,105 | how to update sub object in array (update) MongoDB<p>I want to update the only where "sku": "abcd"
the
"recived": 34,
to
"recived": 50,</p>
<p>I tried to solve it using updateOne(</p>
<p>)
But unfortunately I get errors</p>
<pre><code>{
"_id": {
"$oid": ... | <p>I found the answer at the end
After reading online
Thanks to whoever helped
I attach the code
Maybe it will help others</p>
<pre><code>await User.updateOne(
{
Stock: {
$elemMatch: {
sku: req.body.sku
}
}
}, {
$set: {
"Stock.$.re... | how to update sub object in array (update) MongoDB | node.js|mongoose | 0 | 35 | 2 | 72,091,485 | 72,091,485 | 0 | true | 2022-05-02T13:01:28.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to update sub object in array (update) MongoDB<p>I want to update the only where "sku": "abcd"
the
"recived": 34,
to
"... |
72,182,130 | Why use setter when you can assign massively using a method?<p>I found out that I can assign data to a property using set or a method.</p>
<pre class="lang-dart prettyprint-override"><code>class Human {
String name, address;
set rewriteName(String name) {
this.name = name;
}
set rewriteAddress(String ... | <p>Typically, the targets of getters and setters are made private so they're not directly accessible from outside of the file or library.</p>
<pre><code>class Business {
String name, _address;
double lat, long;
bool coordsCalculated = false;
Map propertyRecords = {};
get address {
return _address;
}
... | Why use setter when you can assign massively using a method? | flutter|dart | 0 | 85 | 2 | 72,182,294 | 72,182,294 | 0 | true | 2022-05-10T07:18:35.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why use setter when you can assign massively using a method?<p>I found out that I can assign data to a property using set or a method.</p>
<pre class="lang-d... |
72,164,938 | Lexer rule to handle escape of quote with quote or backslash in ANTLR4?<p>I'm trying to expand the answer to <a href="https://stackoverflow.com/questions/29800106/how-do-i-escape-an-escape-character-with-antlr-4">How do I escape an escape character with ANTLR 4?</a> to work when the " can be escaped both with &quo... | <p>The problem is handling the <code>\</code> properly.</p>
<p>Bart found the path through the ATN that I missed and allowed it to match the extra <code>\n"</code>. The <code>\</code> is matched as a <code>~["]</code> and then comes back through and matches the <code>"</code> to terminate the string.</p... | Lexer rule to handle escape of quote with quote or backslash in ANTLR4? | antlr4 | 0 | 134 | 2 | 72,191,142 | 72,191,142 | 0 | true | 2022-05-08T20:40:40.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Lexer rule to handle escape of quote with quote or backslash in ANTLR4?<p>I'm trying to expand the answer to <a href="https://stackoverflow.com/questions/298... |
72,164,296 | CSS: Make image fill parent but not change parent size<p>I have an image gallery and all of the images are squares. The images are in their divs and a big div with the display to flex to parent all the divs. I want the images to fill their parent div, but not make them bigger.</p>
<p>UPDATE: I saw on <a href="https://c... | <p>You need to give width to image wrapper only and fit the image appropriately. If you want some part of your div be seen, you can add padding property to it.
By adding "object-fit: cover" property to your image you can scale it to fit its parent's width, and "object-position: center" in case your ... | CSS: Make image fill parent but not change parent size | html|css|flexbox | 0 | 202 | 2 | 72,164,633 | 72,164,633 | 0 | true | 2022-05-08T19:06:29.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSS: Make image fill parent but not change parent size<p>I have an image gallery and all of the images are squares. The images are in their divs and a big di... |
72,235,489 | AngularJS to display one section in Italic<p>Hi i'm creating a Harvard Reference Generator using AngularJS ive got it working perfectly, i can get it to create the full reference however i need one section to be styled in italics, the information is captured using a form. I require a little help with the output.</p>
<p... | <p>To have HTML rendered within ng expressions, you need to use <code>ngSanitize</code> or <a href="https://docs.angularjs.org/api/ng/service/$sce" rel="nofollow noreferrer"><code>$sce</code></a> dependency. Else, HTML will be rendered as string inside your expressions.</p>
<p>In your case, you can simplify it by break... | AngularJS to display one section in Italic | angularjs | 0 | 37 | 2 | 72,259,256 | 72,259,256 | 0 | true | 2022-05-13T21:14:26.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AngularJS to display one section in Italic<p>Hi i'm creating a Harvard Reference Generator using AngularJS ive got it working perfectly, i can get it to crea... |
72,208,974 | Why does the numbering not work for some uses of v-data-table<p>The behavior is, I click the next-page chevron and it loads the correct data from the database and goes to the next page, but it does not update the pagination text, which still reads <code>1-10 of 513</code>. If I use the prev-page and then next-page, s... | <p>Don’t be too smug if you figured it out. I had to cut off hundreds of lines of irrelevant code to reduce it down the skeleton problem you see.</p>
<p>If you didn’t figure it out, the problem was the <code>employees</code> prop was <em>required</em>, and while the client was loading data from the database, it did no... | Why does the numbering not work for some uses of v-data-table | vue.js|vuetify.js | 0 | 19 | 1 | 72,208,975 | 72,208,975 | 0 | true | 2022-05-12T00:49:08.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does the numbering not work for some uses of v-data-table<p>The behavior is, I click the next-page chevron and it loads the correct data from the databas... |
72,208,346 | CountIF true on last occurence for list<p>I'm making a list of people who have participated in a two part assessment, & want to track total analytics of how many people have passed the assessment vs how many have failed.</p>
<p>My worksheet looks something like this</p>
<div class="s-table-container">
<table class=... | <p>If you have access to the <code>UNIQUE</code> function, you could use the following formula to get the number of <code>FALSE</code> for each individual student:</p>
<pre><code>=COUNTIFS(Pass?,FALSE,StudentID,UNIQUE(StudentID))
'i.e. {0;1;1;0;0}
</code></pre>
<p>To get the ones that passed, use <code>SUMPRODUCT</code... | CountIF true on last occurence for list | excel|excel-formula | 0 | 59 | 2 | 72,208,651 | 72,208,651 | 0 | true | 2022-05-11T22:41:37.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CountIF true on last occurence for list<p>I'm making a list of people who have participated in a two part assessment, & want to track total analytics of ... |
72,233,157 | sqlalchemy.exc.OperationalError psycopg2.OperationalError<p>I want to create a database to insert data. I have an error message.
According to the documentation, the error may come from the database itself. Has anyone ever encountered this problem?</p>
<pre><code># créer un objet SQLAlchemy pour notre application app
db... | <p>Seems like database <code>data_collector</code> is not created on your machine. After creating the DB, you can also include this in the app file:</p>
<pre><code>if __name__ == "__main__":
db.create_all()
app.debug == True
app.run()
</code></pre> | sqlalchemy.exc.OperationalError psycopg2.OperationalError | python|sqlalchemy | 0 | 53 | 1 | 72,233,357 | 72,233,357 | 0 | true | 2022-05-13T17:06:07.583Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
sqlalchemy.exc.OperationalError psycopg2.OperationalError<p>I want to create a database to insert data. I have an error message.
According to the documentati... |
72,144,022 | How to initialize array from array in zsh?<p>My script <code>test.zsh</code>:</p>
<pre><code>args=$@
argss=($@)
echo ${@:2}
echo ${args:2}
echo ${argss:2}
</code></pre>
<p>The output:</p>
<pre><code>$ ./test.zsh foo bar foobar
bar foobar
o bar foobar
o
</code></pre>
<p>It looks like <code>args</code> is being initializ... | <p>You need to put parentheses around <code>$@</code> to make <code>args</code> an array:</p>
<pre><code>args=($@)
</code></pre>
<p>In other shells, you should also put quotes around it (<code>args=("$@")</code>) to avoid word splitting, but this is disabled by default in zsh (see the option <code>SH_WORD_SPL... | How to initialize array from array in zsh? | zsh | 0 | 99 | 1 | 72,144,680 | 72,144,680 | 0 | true | 2022-05-06T15:32:43.420Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to initialize array from array in zsh?<p>My script <code>test.zsh</code>:</p>
<pre><code>args=$@
argss=($@)
echo ${@:2}
echo ${args:2}
echo ${argss:2}
</... |
72,186,919 | How do I call Mix_GetError from the nim SDL2 Mixer bindings?<p>There are multiple references in the nim SDL2 <a href="https://github.com/nim-lang/sdl2/blob/master/src/sdl2/mixer.nim" rel="nofollow noreferrer">mixer.nim</a> file to
<code>Error messages can be retrieved from Mix_GetError().</code></p>
<p>However, I can't... | <p>You can call <code>sdl2.getError()</code> (from from the base <a href="https://github.com/nim-lang/sdl2/blob/master/src/sdl2.nim#L1588" rel="nofollow noreferrer">sdl2 bindings</a>) to get the latest error string.</p> | How do I call Mix_GetError from the nim SDL2 Mixer bindings? | sdl-2|nim-lang|sdl-mixer | 0 | 62 | 1 | 72,187,130 | 72,187,130 | 0 | true | 2022-05-10T13:07:00.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I call Mix_GetError from the nim SDL2 Mixer bindings?<p>There are multiple references in the nim SDL2 <a href="https://github.com/nim-lang/sdl2/blob/m... |
72,164,462 | Discord.JS voiceStateUpdate newState chanelID is null<p>In my discord bot a sound should be played when a user joins to the server. <br/>Playback and everything else is working, but the <strong>newState</strong> object created when voiceStateUpdate is fired <strong>does not contain a channelID</strong>. <br/>I get a ch... | <p>You are not passing <code>client</code> as a parameter in your module export, so I'm guessing that your <code>oldState</code> has the client values and <code>newState</code> has the actual oldState values. Try adding <code>client</code> to the start of your <code>module.exports</code>.</p>
<pre class="lang-js pretty... | Discord.JS voiceStateUpdate newState chanelID is null | discord.js | 0 | 183 | 2 | 72,165,153 | 72,165,153 | 0 | true | 2022-05-08T19:29:45.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Discord.JS voiceStateUpdate newState chanelID is null<p>In my discord bot a sound should be played when a user joins to the server. <br/>Playback and everyth... |
72,201,134 | How can I Generate 10 Unique digits in Model Form and Pass Form Context Variable in Django Class Based ListView<p>I am new to Django Class Based Views and I am working on a project where on the template I want to have Form for creating customer accounts on the left and list of existing customers on the right.
So far I ... | <p>After going through many tutorials and blogs on Django Class Based Views with ListViews for Forms, I discovered that ListViews was designed to populate Model items while FormViews is designed for creating and processing forms both can't be used on one template. Although many developers have had a way around it with ... | How can I Generate 10 Unique digits in Model Form and Pass Form Context Variable in Django Class Based ListView | python|django | 0 | 47 | 2 | 72,207,673 | 72,207,673 | 0 | true | 2022-05-11T12:32:57.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I Generate 10 Unique digits in Model Form and Pass Form Context Variable in Django Class Based ListView<p>I am new to Django Class Based Views and I ... |
72,149,044 | How Read File Path From a .dat file then open the program When Pressing The Launch Button?<p>I have a problem Where I cant make my program automatically read the given file path inside the .dat and be ready to launch the program when pressing launch file without opening openFileDialog and choosing the program every tim... | <p>If it's a file that the application will always need, then something like you mentioned:</p>
<blockquote>
<p>I was thinking to do it like that: When Pressing the Launch button (After the first time) The Program Checks if the Fail-SafePath.dat Exists if Yes it reads the lines from it and starts the program from the g... | How Read File Path From a .dat file then open the program When Pressing The Launch Button? | c#|visual-studio | 0 | 41 | 1 | 72,149,189 | 72,149,189 | 0 | true | 2022-05-07T02:35:59.150Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How Read File Path From a .dat file then open the program When Pressing The Launch Button?<p>I have a problem Where I cant make my program automatically read... |
72,153,907 | How to embed a external CLI window into a Panel in Windows Forms?<p>In C# or VB.NET, under Windows Forms, I would like to know how can I embed a external command-line interface (CLI) window, into a panel or other kind of host window where I can render the contents of the external CLI window inside my form.</p>
<p>Pleas... | <p>I just wrote a simple helper class in VB.NET that will serve me to set and release a parent window with ease.</p>
<p>It seems to work as expected at least as far as I have tested it in my required scenarios.</p>
<p>Thanks to @Jimi, @RbMm and @Remy Lebeau for their help and their tips that I need to know in order to ... | How to embed a external CLI window into a Panel in Windows Forms? | c#|vb.net|winforms|window|command-line-interface | 0 | 167 | 1 | 72,193,917 | 72,193,917 | 0 | true | 2022-05-07T15:26:34.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to embed a external CLI window into a Panel in Windows Forms?<p>In C# or VB.NET, under Windows Forms, I would like to know how can I embed a external com... |
72,184,146 | leaflet can not clear layer and marker<p>i want to remove all marker s from map and trying to remove markers with map.remove</p>
<p>i am using vue.js with leaflet to show map
i got a object to record lng and lat</p>
<pre><code>router_planning: [
{
car: [
{
name: "001",
l... | <p>To remove all markers from the map you must first store them somewhere.<br />
You can store all markers inside of an array:</p>
<pre><code>const markers = [];
const marker = L.circleMarker([...])
.bindTooltip([...])
.addTo(map);
markers.push(marker);
</code></pre>
<p>And to remove them you need to c... | leaflet can not clear layer and marker | javascript|vue.js|dictionary|web|leaflet | 0 | 115 | 1 | 72,186,205 | 72,186,205 | 0 | true | 2022-05-10T09:50:05.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
leaflet can not clear layer and marker<p>i want to remove all marker s from map and trying to remove markers with map.remove</p>
<p>i am using vue.js with le... |
72,188,821 | concatenation of Landsat images Side by side<p>My interest area is consisting of two path and single row(WRS2 path-138, row-45), I want to concatenate two scenes from two path and clip the desired area according to given geometric polygon and saved the clipped image on google drive.</p> | <p>Using the ".filterBounds()" function, ".mosaic()" reduction, and ".clip()" is a possible shortcut.</p>
<p>The ".filterBounds()" function pretends to filter only for images with "touch" de Region of Interest - ROI, the ".mosaic()" will reduce the entire pile... | concatenation of Landsat images Side by side | image|gis|google-earth-engine|landsat|libgee | 0 | 23 | 1 | 72,383,143 | 72,383,143 | 0 | true | 2022-05-10T15:08:52.543Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
concatenation of Landsat images Side by side<p>My interest area is consisting of two path and single row(WRS2 path-138, row-45), I want to concatenate two sc... |
72,159,506 | javafx gluon mobile : reflection classes not used<p>I am building a mobile gluon javafx application. App runs fine in the jvm but not on mobile.</p>
<p>I found out that i had ClassNotFoundException when loading the FXML and discovered that it would not find java.net.URL(!!) The unfound classes were not present in the p... | <p>Ok, now i found a solution, not sure i understood what happens.</p>
<p>Everything was caused by my resources includes. Not sure why/if i added them, not sure where they came from. It seems that configuring includes removes the default ones and that forbid the inclusion of the json files, and thus i had no other defi... | javafx gluon mobile : reflection classes not used | javafx|gluon | 0 | 67 | 1 | 72,162,916 | 72,162,916 | 0 | true | 2022-05-08T09:06:00Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
javafx gluon mobile : reflection classes not used<p>I am building a mobile gluon javafx application. App runs fine in the jvm but not on mobile.</p>
<p>I fou... |
72,110,180 | Why G_PRESSED doesn't work in Logitech G HUB?<p>After some of the G HUB updates, this script stopped working. Why?</p>
<pre><code>function OnEvent(event, arg)
if (event == "G_PRESSED" and arg == 1) then
PressAndReleaseKey("i")
end
end
</code></pre> | <p>In GHUB (unlike LGS) <code>G_PRESSED</code> event is generated only for G-keys having modified bindings. The event is not generated for G-keys with disabled binding and for G-keys with standard binding.<br />
In other words, you should modify the standard command assigned to G1 key.<br />
If you want to preserve th... | Why G_PRESSED doesn't work in Logitech G HUB? | lua|logitech|logitech-gaming-software | 0 | 283 | 1 | 72,111,109 | 72,111,109 | 0 | true | 2022-05-04T08:46:21.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why G_PRESSED doesn't work in Logitech G HUB?<p>After some of the G HUB updates, this script stopped working. Why?</p>
<pre><code>function OnEvent(event, arg... |
72,139,907 | Forcing ignore validation for string Primary Key not working in Laravel 8 to update data<p>i need a help with my laravel app. i have a table with this structure:</p>
<pre><code>Schema::create('kliens', function (Blueprint $table) {
$table->string('KlienUIC', 10)->primary();
$table->stri... | <p>You're trying to update the primary key which isn't gonna work, primary keys usually don't get updated.</p>
<p>Besides that you can use the model that is injected as a parameter to update the data instead of using the <code>Klien::where()</code> which returns a <code>QueryBuilder</code></p>
<pre class="lang-php pret... | Forcing ignore validation for string Primary Key not working in Laravel 8 to update data | laravel | 0 | 39 | 2 | 72,140,022 | 72,140,022 | 0 | true | 2022-05-06T10:19:22.413Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Forcing ignore validation for string Primary Key not working in Laravel 8 to update data<p>i need a help with my laravel app. i have a table with this struct... |
72,203,339 | SQLSTATE[22007]: Invalid datetime forma<p>I try to save some data that it brings me from my view, which is a table, but I don't know why it throws me that error with the insert.
<a href="https://i.stack.imgur.com/B9cwc.png" rel="nofollow noreferrer">result of insert</a></p>
<p>this is my view:
<a href="https://i.stack.... | <p><code>id_tipo_venta</code> seems to be an empty string which is apparently not valid.</p>
<p>You can try debugging what you get in :</p>
<pre class="lang-php prettyprint-override"><code>var_dump($_POST['id_tipo_venta'][$key]);
die;
</code></pre>
<p>Your database field expects to receive an integer. Therefore, using ... | SQLSTATE[22007]: Invalid datetime forma | sql|laravel|datatable|controller|laravel-8 | 0 | 80 | 2 | 72,203,589 | 72,203,589 | 0 | true | 2022-05-11T15:02:19.457Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQLSTATE[22007]: Invalid datetime forma<p>I try to save some data that it brings me from my view, which is a table, but I don't know why it throws me that er... |
72,126,494 | Google sheets not recognising a date as a date<p><a href="https://docs.google.com/spreadsheets/d/1DGAWyJ63A8QaDqyYp140S7UQz6_4iGFQSaK3118RVQU/edit?usp=sharing" rel="nofollow noreferrer">On this report</a> I am trying to do some date analysis.</p>
<p>In column G I need to pull all the URLs from column A which have a clo... | <p>You might want to look at the <code>DATEVALUE</code> function:</p>
<p><code>=DATEVALUE(D2)</code></p>
<p>If cell <code>D2</code> contains a date in the form of text (such as <code>"26 May 2022"</code>), this formula will return the date as a number. (You can then format the cell to display a particular dat... | Google sheets not recognising a date as a date | google-sheets|google-sheets-formula | 0 | 31 | 1 | 72,126,559 | 72,126,559 | 0 | true | 2022-05-05T11:34:43.980Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google sheets not recognising a date as a date<p><a href="https://docs.google.com/spreadsheets/d/1DGAWyJ63A8QaDqyYp140S7UQz6_4iGFQSaK3118RVQU/edit?usp=sharin... |
72,174,766 | How to connect and read files from Azure FTP folder using Python in Azure Databricks?<p>I need to use Python in Azure Databricks to do the following:</p>
<ol>
<li>Merge multiple text files stored in Azure FTP folder (<strong>\VMAZR1\ABCDFiles</strong>). Here, 'VMAZR1' is the server name and 'ABCDFiles' is the folder na... | <p>You can rely on this <a href="https://stackoverflow.com/a/58640753/11289386">answer</a>. Just change the method of storing to retrieving, e.g., <a href="https://docs.python.org/3/library/ftplib.html#ftplib.FTP.retrbinary" rel="nofollow noreferrer"><strong>retrbinary</strong></a>, or <strong>retrlines</strong> as wel... | How to connect and read files from Azure FTP folder using Python in Azure Databricks? | python|ftp|databricks|azure-databricks | 0 | 140 | 1 | 72,180,273 | 72,180,273 | 0 | true | 2022-05-09T15:48:29.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to connect and read files from Azure FTP folder using Python in Azure Databricks?<p>I need to use Python in Azure Databricks to do the following:</p>
<ol... |
72,129,634 | Identifying, counting, AND labelling spaces in a column?<p>I have a dataframe of 1 column in R. In it is a bunch of names, e.g. Claire Randall Fraser. I know how to make a looping function that will apply a second function to each and every cell. But I'm stuck on how to create that second function, which will be to ide... | <p>Here's an initial solution using a mixed bag of methods:</p>
<p>Data:</p>
<pre><code>str <- c("Claire Randall Fraser", "Peter Dough", "Orson Dude Welles Man")
</code></pre>
<p>Solution:</p>
<pre><code>library(data.table)
library/dplyr)
data.frame(str) %>%
# create row ID:
mut... | Identifying, counting, AND labelling spaces in a column? | nlp|tidyverse|stringr|quanteda | 0 | 23 | 1 | 72,130,117 | 72,130,117 | 0 | true | 2022-05-05T15:17:26.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Identifying, counting, AND labelling spaces in a column?<p>I have a dataframe of 1 column in R. In it is a bunch of names, e.g. Claire Randall Fraser. I know... |
72,148,870 | How to find QnA Maker settings to send in Bot Framework SDK?<p>I need to find the information below</p>
<p>QnAKnowledgebaseId=
QnAAuthKey
QnAEendpointHostName=</p>
<p>to insert it into the .env file of the bot framework i created and then connect it to my knowledge base. I didn't find this information because now the w... | <ol>
<li><p>You should be able to find QnAAuthKey and QnAEendpointHostName on the Azure portal, under respective language service.
<a href="https://i.stack.imgur.com/3Qy7K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Qy7K.png" alt="enter image description here" /></a></p>
</li>
<li><p>You should ... | How to find QnA Maker settings to send in Bot Framework SDK? | javascript|botframework|artificial-intelligence|azure-cognitive-services|qnamaker | 0 | 78 | 1 | 72,159,038 | 72,159,038 | 0 | true | 2022-05-07T01:50:26.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to find QnA Maker settings to send in Bot Framework SDK?<p>I need to find the information below</p>
<p>QnAKnowledgebaseId=
QnAAuthKey
QnAEendpointHostNam... |
72,183,082 | Microsoft Graph API Authentication - Access token is empty<p>I'm trying to get a bearer token to upload a file to Microsoft Teams.
When doing a post request to</p>
<pre><code>https://graph.microsoft.com/{tenantId)/oauth2/v2.0/token
body:
client_id,
scope= https://graph.microsoft.com/.default,
grant_type=... | <p>I'm not sure which api you wanna call here, but I can show you an example. For instance, I want to call <a href="https://docs.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http" rel="nofollow noreferrer">this api</a> to upload a file on behalf of me.</p>
<p>Then I need to give api ... | Microsoft Graph API Authentication - Access token is empty | microsoft-graph-api | 0 | 797 | 1 | 72,197,098 | 72,197,098 | 0 | true | 2022-05-10T08:34:43.067Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Microsoft Graph API Authentication - Access token is empty<p>I'm trying to get a bearer token to upload a file to Microsoft Teams.
When doing a post request ... |
72,056,800 | how to use python variables in bash script inside python script<p>I am trying to use my python variables inside the bash script in the python script as below...</p>
<pre><code>import os
import submodule
URL="http://wmqa.blob.core.windows.net..."
os.system(subprocess.call("curl -I --silent GET ",str(... | <p>For starters, it is probably best not to use <code>os.system</code>. It was replaced a long time ago (19 years ago, actually; in <a href="https://peps.python.org/pep-0324/" rel="nofollow noreferrer">PEP 324</a>). To answer your question, you can reference a variable using f-strings, or any other formatting allowed i... | how to use python variables in bash script inside python script | python-3.x|bash|curl|subprocess | 0 | 28 | 1 | 72,056,885 | 72,056,885 | 0 | true | 2022-04-29T10:51:17.560Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to use python variables in bash script inside python script<p>I am trying to use my python variables inside the bash script in the python script as below... |
72,209,473 | Use Conditional formatting for whole Google Sheet Workbook to search for duplicates<p>Use Conditional formatting for whole Google Sheet Workbook
Currently I am using the single color CONDITIONAL FORMATTING for two columns in every worksheet that looks at the column and if there is a similar match with the single worksh... | <h3>Solution:</h3>
<ul>
<li>Return all sheets via <a href="https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet#getSheets()" rel="nofollow noreferrer">Spreadsheet.getSheets()</a> and iterate through them.</li>
<li>For each sheet, create the conditional formatting rule for columns C and D, using <... | Use Conditional formatting for whole Google Sheet Workbook to search for duplicates | google-apps-script|google-sheets | 0 | 146 | 1 | 72,257,093 | 72,257,093 | 0 | true | 2022-05-12T02:24:46.660Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Use Conditional formatting for whole Google Sheet Workbook to search for duplicates<p>Use Conditional formatting for whole Google Sheet Workbook
Currently I ... |
72,188,118 | python update each dict object in list<p>i have a issue in python</p>
<p>Now i have two list, i'd like to update every single dict in my list. how can i do ?
here is my two list</p>
<pre><code>list1 = [{'x': '2022-04-29 07:53:34'}, {'x': '2022-04-29 07:56:00'}, {'x': '2022-04-29 09:07:00'}, {'x': '2022-04-29 09:12:00'}... | <p>Try this:</p>
<pre><code>for i in range(len(list1)):
list1[i].update(list2[i])
print(list1)
</code></pre>
<p>Or if you don't want <code>list1</code> to be modified, make a copy first:</p>
<pre><code>import copy
result = copy.deepcopy(list1)
for i in range(len(result)):
result[i].update(list2[i]... | python update each dict object in list | python-3.x|dictionary | 0 | 48 | 2 | 72,188,234 | 72,188,234 | 0 | true | 2022-05-10T14:23:18.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
python update each dict object in list<p>i have a issue in python</p>
<p>Now i have two list, i'd like to update every single dict in my list. how can i do ?... |
72,190,398 | Performance issue in linq query<p>I have created a linq query to join tables and to do aggregate function and it takes more than a minute and it is affecting performance when executing the query in database it takes 18 seconds Kindly help me to improve the performance of Linq query.</p>
<p>Code:</p>
<pre class="lang-cs... | <p>This is direct translation of the SQL. Should generate similar SQL query.</p>
<pre class="lang-cs prettyprint-override"><code>var startDate = DateTime.Date.AddMonths(-2);
int clientId = ...
int userId = ...
var oStatus = new List<int> { (int)STATUS.PAID, (int)STATUS.PARTIALY_PAID, (int)STATUS.OPEN, (int)STAT... | Performance issue in linq query | c#|linq|entity-framework-core | 0 | 118 | 1 | 72,197,639 | 72,197,639 | 0 | true | 2022-05-10T17:04:39.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Performance issue in linq query<p>I have created a linq query to join tables and to do aggregate function and it takes more than a minute and it is affecting... |
72,226,431 | orocommerce wysiwyg editor - file / image wrong src<p>I have similar issue that <a href="https://stackoverflow.com/questions/71697153/wysiwyg-images-not-moved-to-public-cache">Wysiwyg images not moved to public cache</a></p>
<p>when I add a file or image in wysiwyg, it displays properly in editor but after saving, it d... | <p>File applications config is required if you want to display an image that is ACL protected within the application. You can set it using a migration, e.g.:</p>
<pre><code>$queries->addQuery(
new UpdateEntityConfigFieldValueQuery(
'Acme\Demobundle\Entity\FancyFile',
'imag... | orocommerce wysiwyg editor - file / image wrong src | wysiwyg|orocommerce | 0 | 41 | 1 | 72,271,707 | 72,271,707 | 0 | true | 2022-05-13T08:17:31.190Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
orocommerce wysiwyg editor - file / image wrong src<p>I have similar issue that <a href="https://stackoverflow.com/questions/71697153/wysiwyg-images-not-move... |
72,185,094 | How to create a Web Page Client for a Web Api Service in .NET?<p>in this moment I have a Web Api Service but I´m trying to create a simple page for that WEB API. The problem is that I don´t know how is the best ideia for doing that, for example I can create a angular project but it will take me time because i dont know... | <p>You do not "connect" both applications in Visual Studio.
Although the applications are in the same solution, you should consider them as separate entities.</p>
<p>If you want the "Client_Authentication" webapp to communicate with the "Server_Authentication" webapp you need to POST the i... | How to create a Web Page Client for a Web Api Service in .NET? | c#|user-interface|.net-core|webapi | 0 | 56 | 1 | 72,185,200 | 72,185,200 | 0 | true | 2022-05-10T10:57:01.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create a Web Page Client for a Web Api Service in .NET?<p>in this moment I have a Web Api Service but I´m trying to create a simple page for that WEB ... |
72,190,534 | Python - Pandas mapping error: Reindexing only valid with uniquely valued Index objects<p>I am working on a function which is meant to map an ID from one dataframe to another based on one of two fields (Ticker or CUSIP). The main df is a custodian file which has the fields below:</p>
<div class="s-table-container">
<ta... | <p>You should drop the na values first for the mapping dataframes:</p>
<pre><code>a = df_map.dropna(subset=["CUSIP"]).set_index('CUSIP')['Owned_ID']
b = df_map.dropna(subset=["Ticker"]).set_index('Ticker')['Owned_ID']
mask_a = df['CUSIP'].isnull()
df['Owned_ID'] = np.where(mask_a, df['Ticker'].ma... | Python - Pandas mapping error: Reindexing only valid with uniquely valued Index objects | python|pandas|indexing|mask | 0 | 130 | 1 | 72,190,689 | 72,190,689 | 0 | true | 2022-05-10T17:15:03.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python - Pandas mapping error: Reindexing only valid with uniquely valued Index objects<p>I am working on a function which is meant to map an ID from one dat... |
72,191,746 | How can i create a new dataframe with cell values based on the previous row for each column?<p>I´m very new in python, so i need to ask this question:</p>
<p>I have this dataframe:</p>
<p><img src="https://i.stack.imgur.com/4SM2L.png" alt="data frame" /></p>
<p>I need to know how I can obtain a new dataframe with this ... | <p>You can calculate the cumulative product of the rows after the first using <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.cumprod.html?msclkid=b6ef43bed09c11ec82dee1a7a2172030" rel="nofollow noreferrer"><code>.cumprod()</code></a>. Here I take the second row onwards, add 1 to t... | How can i create a new dataframe with cell values based on the previous row for each column? | python|pandas|dataframe|loops|iteration | 0 | 37 | 1 | 72,191,882 | 72,191,882 | 0 | true | 2022-05-10T19:00:13.100Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can i create a new dataframe with cell values based on the previous row for each column?<p>I´m very new in python, so i need to ask this question:</p>
<p... |
72,221,540 | What is the point of @JoinColumn in hibernate?<p>I know that <code>@JoinColumn</code> is used for creating the foreign key column, but my question is little bit another.
I noticed that if I have main entity with <code>mapped by</code> and dependent entity with no <code>@JoinColumn</code>, than the hibernate creates two... | <p><a href="https://docs.jboss.org/hibernate/jpa/2.1/api/javax/persistence/JoinColumn.html" rel="nofollow noreferrer">@JoinColumn</a> indicates that this entity is the owner of the relationship, that the corresponding table has a column with a foreign key to the referenced table.
<br><code>@JoinColumn</code> annotation... | What is the point of @JoinColumn in hibernate? | java|hibernate | 0 | 236 | 1 | 72,223,043 | 72,223,043 | 0 | true | 2022-05-12T20:06:30.393Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the point of @JoinColumn in hibernate?<p>I know that <code>@JoinColumn</code> is used for creating the foreign key column, but my question is little ... |
72,228,034 | How to use if statement in export default function in react.js?<p>Can you explain how to use if statement inside a functional component?</p>
<p>I am trying to define a constant based on the value of an event being passed into props.</p>
<p>For instance,</p>
<pre><code>export default function Event({ evt }) {
//const n... | <p>You have a wrong code, try the next example</p>
<pre class="lang-js prettyprint-override"><code> evt.name = evt.name ? evt.name : 'Not defined'
</code></pre>
<p>if evt.name has a value use the value if not has value user 'not defined' as a default value</p>
<p>Other method to resolve your problem</p>
<pre class="... | How to use if statement in export default function in react.js? | javascript|reactjs | 0 | 131 | 1 | 72,228,128 | 72,228,128 | 0 | true | 2022-05-13T10:23:18.327Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use if statement in export default function in react.js?<p>Can you explain how to use if statement inside a functional component?</p>
<p>I am trying t... |
72,183,700 | Update column with a dynamic sequence with Row_number()<p>I tried to update in MSSQL a column(Y) of a table(A) with with an ascending sequence that resets itself when the value of another column(X) of the same table changes.
Table A at the beginning:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<... | <p>This will give you the results you want</p>
<p><a href="https://i.stack.imgur.com/gF5TD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gF5TD.png" alt="enter image description here" /></a></p>
<pre><code>CREATE TABLE #T (
Id INT NOT NULL,
X INT NOT NULL,
Y INT NOT NULL
)
INSERT INTO... | Update column with a dynamic sequence with Row_number() | sql|sql-server | 0 | 48 | 1 | 72,185,209 | 72,185,209 | 0 | true | 2022-05-10T09:18:50.187Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Update column with a dynamic sequence with Row_number()<p>I tried to update in MSSQL a column(Y) of a table(A) with with an ascending sequence that resets it... |
72,177,338 | Abaqus\Python script - edges.findAt with predefined global coordinates<p>I am a quite new to Abaqus-Python scripting. My goal is to script loft operation between circular sections. Circular sections are predefined based on the engineering problem.</p>
<p>According to .jnl file from manual using of Abaqus interface (for... | <p>Actually, the argument for the <code>findAt(...)</code> command is a sequence of sequence. This means that you provide tuple of tuple as a argument. Here, each tuple represents a single set of coordinates to select an edge (or any related entity - here edge). <br/>
So, following way you implement your problem:</p>
<... | Abaqus\Python script - edges.findAt with predefined global coordinates | python|abaqus|edges | 0 | 86 | 1 | 72,182,619 | 72,182,619 | 0 | true | 2022-05-09T19:33:00.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Abaqus\Python script - edges.findAt with predefined global coordinates<p>I am a quite new to Abaqus-Python scripting. My goal is to script loft operation bet... |
72,233,605 | Javascript code broken in firefox browser only<p>I created a div C.</p>
<p>Its absolute position is setted to stay between the bottom margin of div A and top margin of div B.</p>
<p>Every div is a rectangle with same width.</p>
<p>C is a less hig than A and B. I use this solution in order do "hide" the seam b... | <p>I solved installing a plug-in for adding Javascript and Jquery scripts (JS Inserter) and then I translate the code from Javascript to Jquery. I add the script infooter section.
This solution is compatible with Firefox too.</p>
<pre><code>var topHeight = jQuery('A').outerHeight();
var width = jQuery('A').outerWidth()... | Javascript code broken in firefox browser only | javascript|css|wordpress|firefox | 0 | 57 | 1 | 72,261,803 | 72,261,803 | 0 | true | 2022-05-13T17:47:20.223Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript code broken in firefox browser only<p>I created a div C.</p>
<p>Its absolute position is setted to stay between the bottom margin of div A and top... |
72,145,523 | SQL query how to find the average number of rental books for each quarter<p>I am trying to find the average number of rental books for each quarter.</p>
<pre><code>Rental(RegNum, DateBorrowed, DateReturned)
Books(RegNum, BookName, Category)
</code></pre>
<p>What i am trying is</p>
<pre><code>SELECT QUARTER(DateBorrowed... | <blockquote>
<p>@StefanWuebbe I'm using mysql 8.0 –
Amber</p>
</blockquote>
<p>In <code>MySql</code> 8.0 the exact <code>SQL</code> statement you proposed seems to run successfully:</p>
<pre class="lang-sql prettyprint-override"><code>Create Table Rental (DateBorrowed Date, regNo Int);
SELECT QUARTER(DateBorrowed) A... | SQL query how to find the average number of rental books for each quarter | mysql|sql | 0 | 62 | 1 | 72,163,707 | 72,163,707 | 0 | true | 2022-05-06T17:46:22.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL query how to find the average number of rental books for each quarter<p>I am trying to find the average number of rental books for each quarter.</p>
<pre... |
72,174,941 | Performance issues with large panel row-wise operation in datatable<p>This is a follow-up question. I have the following panel data:</p>
<pre><code>library(data.table)
set.seed(1)
time=rep(seq(as.Date("2001-01-31"), as.Date("2050-01-31"), by="years"))
nrOfIDs <- 10000
groupvars <- le... | <p>Probably missing something here, but...</p>
<pre><code>f <- \(x, y) {sapply(as.data.table(outer(y,x,'+')), min)}
DT[, .(result = f(x, y)), by=.(group, ind)]
## group ind result
## 1: a 1 24664
## 2: a 1 453013
## 3: a 1 124689
## 4: a 1 436799
## 5: a 1 332006
<... | Performance issues with large panel row-wise operation in datatable | r|optimization|datatable|large-data | 0 | 43 | 1 | 72,182,052 | 72,182,052 | 0 | true | 2022-05-09T16:02:12.263Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Performance issues with large panel row-wise operation in datatable<p>This is a follow-up question. I have the following panel data:</p>
<pre><code>library(d... |
72,202,933 | Can't launch Payara Micro from payara-micro-maven-plugin, getting "unsupported JDK"<p>I put together a sample project to demonstrate the issue I'm having.</p>
<p><a href="https://github.com/johnmanko/payara-micro-plugin-group" rel="nofollow noreferrer">https://github.com/johnmanko/payara-micro-plugin-group</a></p>
<p>B... | <p>I found the cause. The plugin uses <a href="https://maven.apache.org/guides/mini/guide-using-toolchains.html" rel="nofollow noreferrer">Apache Toolchain</a> to locate <code>java</code>, and it's finding the wrong one (ie, the system one).</p>
<p>One solution is to add the plugin <code><javaPath></code> option... | Can't launch Payara Micro from payara-micro-maven-plugin, getting "unsupported JDK" | java|eclipse|maven|eclipselink|payara-micro | 0 | 117 | 1 | 72,222,928 | 72,222,928 | 0 | true | 2022-05-11T14:35:01.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't launch Payara Micro from payara-micro-maven-plugin, getting "unsupported JDK"<p>I put together a sample project to demonstrate the issue I'm having.</p... |
72,191,704 | Tailwind overscroll y not working properly<p>I'm building a laravel/tailwind dashboard but I'm now facing an issue with the overflow of an element.</p>
<p>The design I want to achieve is the follwing :
<a href="https://i.stack.imgur.com/iM5nc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iM5nc.png"... | <h1>Method 1: using <code>fixed</code> classes</h1>
<p>Idea : make the <code>nav</code> and <code>aside</code> elements <code>fixed</code></p>
<pre class="lang-html prettyprint-override"><code><body>
<div id="app" class="h-screen flex flex-col">
<nav class="bg-white ... | Tailwind overscroll y not working properly | css|tailwind-css|tailwind-3 | 0 | 168 | 1 | 72,191,970 | 72,191,970 | 0 | true | 2022-05-10T18:56:49.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Tailwind overscroll y not working properly<p>I'm building a laravel/tailwind dashboard but I'm now facing an issue with the overflow of an element.</p>
<p>Th... |
72,168,708 | Deserialize multiple fields to one by Jackson<p>I have following json</p>
<pre class="lang-json prettyprint-override"><code>{"val": 501, "scale": 2}
</code></pre>
<p>Field <code>scale</code> represent how much is decimal point shifted in value (filed <code>val</code>). In this case there are to plac... | <p>This is not possible with your current setup, you provide to the deserializer only the <code>val</code> node, but you need the entire object to access <code>scale</code> node.</p>
<p>Since using <code>@JsonCreator</code> is undesirable, you could change the deserializer to handle <code>ValueClass</code>:</p>
<pre><c... | Deserialize multiple fields to one by Jackson | java|json|jackson | 0 | 443 | 1 | 72,170,120 | 72,170,120 | 0 | true | 2022-05-09T07:59:28.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Deserialize multiple fields to one by Jackson<p>I have following json</p>
<pre class="lang-json prettyprint-override"><code>{"val": 501, "scal... |
72,172,661 | GTK (GTK#) TreeView, make gridlines more visible?<p>I enabled gridlines like below.</p>
<pre><code> tree.EnableGridLines = TreeViewGridLines.Both;
</code></pre>
<p>But the problem is the lines are barely visible like below (if you think there are no gridlines, zoom the image, and look really hard). <code>Gtk.Tre... | <p>You could use a CSS provider and set the grid line width to a larger value than one pixel. Again, the following code snippets are written in "C"; however, it should be easy enough to interpret the code to use equivalent C# statements.</p>
<p>First, off one would create a GTK CSS provider.</p>
<pre><code>G... | GTK (GTK#) TreeView, make gridlines more visible? | gtk|gtk# | 0 | 91 | 1 | 72,174,547 | 72,174,547 | 0 | true | 2022-05-09T13:20:28.870Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
GTK (GTK#) TreeView, make gridlines more visible?<p>I enabled gridlines like below.</p>
<pre><code> tree.EnableGridLines = TreeViewGridLines.Both;
</c... |
72,188,709 | Gtk TreeView CellRendererProgress, use float values like 99.9?<p>Its <code>value</code> property is a type of integer. I could not find what its range is, but it seems it is 0 to 100. So, if I set a value like 50, it displays a half-full progress bar. But what if I want to display fractional percentages like "99.9... | <p>I did a quick review of the "CellRendererProgress" widget by reviewing the GTK source code for the widget and it indeed expects an integer value from zero to one hundred. It does not allow for a fraction as does a regular progress bar. Technically, the range for a progress bar widget is from zero to one,... | Gtk TreeView CellRendererProgress, use float values like 99.9? | gtk | 0 | 27 | 1 | 72,191,389 | 72,191,389 | 0 | true | 2022-05-10T15:01:19.550Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Gtk TreeView CellRendererProgress, use float values like 99.9?<p>Its <code>value</code> property is a type of integer. I could not find what its range is, bu... |
71,281,457 | Why do I keep getting "JSX is not defined no-undef"<p>While adding a carousel to my home page I ran into an issue. I get error:</p>
<blockquote>
<p>'JSX' is not defined.</p>
</blockquote>
<p>I have been looking on Stack Overflow, and GitHub as well as Google, they all give a relatively close answer to each other but I ... | <p>So, the answer that worked for me, was changing my <code>.eslintrc.json</code></p>
<pre><code>{
...
"globals": {
"JSX": "readonly"
}
}
</code></pre>
<p>In the ESLint docs:</p>
<blockquote>
<p>Some of ESLint's core rules rely on knowledge of the global variables available to... | Why do I keep getting "JSX is not defined no-undef" | javascript|reactjs|typescript|eslint|jhipster | 0 | 1,288 | 2 | 72,396,826 | 72,396,826 | 0 | true | 2022-02-27T01:20:50.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why do I keep getting "JSX is not defined no-undef"<p>While adding a carousel to my home page I ran into an issue. I get error:</p>
<blockquote>
<p>'JSX' is ... |
72,231,479 | Scanning binary files for a virus signature<p>I'm trying to scan for a virus signature in a binary file (without using strstr()), and printing if the signature was found or not. But the code doesn't work. I read the files outside of the function.</p>
<p>Unfortunately the code doesn't work, even when I'm trying to scan ... | <p>At least these problems:</p>
<p><strong>Success too late</strong></p>
<p><code>counter == v_size</code> may be true right after <code>counter++;</code>. There may not exist another character in the file for the next loop's <code>if (counter == v_size)</code>. Instead test <code>counter == v_size</code> right after... | Scanning binary files for a virus signature | c|file | 0 | 115 | 1 | 72,232,523 | 72,232,523 | 0 | true | 2022-05-13T14:47:58.613Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Scanning binary files for a virus signature<p>I'm trying to scan for a virus signature in a binary file (without using strstr()), and printing if the signatu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.