question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71,133,071 | Flask second parameter returns null<p>when I try to return the second argument <code>background</code> for my Flask application, I get a null value, but it works fine for <code>original</code></p>
<pre><code>> curl http://127.0.0.1:5000?original="sdsd" & background="/szzzzzz"
@app.route('/'... | <p>Likely your shell is ignoring the part after the <code>&</code> because that character is signaling the shell the run the first part of the command in the background.</p>
<p>Try running your curl command like this:</p>
<pre><code>curl "http://127.0.0.1:5000?original=sdsd&background=/szzzzzz"
</cod... | Flask second parameter returns null | bash|curl | 0 | 25 | 1 | 71,133,108 | 71,133,108 | 0 | true | 2022-02-15T20:36:43.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flask second parameter returns null<p>when I try to return the second argument <code>background</code> for my Flask application, I get a null value, but it w... |
71,132,943 | Quoting shell env vars in Makefile<p>I thought I understood that simply-expanded variables got their value <em>once</em>, when the <code>Makefile</code> is read -- but I've got confused:</p>
<pre><code>var := $$RANDOM
echo:
@echo v1: $(var)
@echo v2: $(var)
</code></pre>
<p>With result</p>
<pre><code>... | <p>Simply-expanded variables are MAKE constructs. Indeed, that variable is only expanded one time, <em>by make</em>. But, it expands into a shell variable:</p>
<pre><code>var := $$RANDOM
</code></pre>
<p>now the value of the <code>var</code> variable in make is the static string <code>$RANDOM</code> and make will nev... | Quoting shell env vars in Makefile | linux|makefile | 0 | 23 | 1 | 71,133,180 | 71,133,180 | 0 | true | 2022-02-15T20:26:06.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Quoting shell env vars in Makefile<p>I thought I understood that simply-expanded variables got their value <em>once</em>, when the <code>Makefile</code> is ... |
71,130,501 | Excel VBA Selenium click second button<p>I am trying to program in Excel VBA with selenium to click on a button but the web (<a href="http://app.bde.es/rss_www/" rel="nofollow noreferrer">http://app.bde.es/rss_www/</a>) has two buttons with the same "Type" and "Class".</p>
<pre><code><input type=... | <p><code>FindElementBy*</code> will always return the first matching element. So the <a href="https://stackoverflow.com/a/48376890/7429447"><em>locator strategy</em></a> you have used always returned the first matching element, which is the control for downloading the data in <em>PDF</em> format.</p>
<p>To identify the... | Excel VBA Selenium click second button | excel|vba|selenium|xpath|css-selectors | 0 | 274 | 2 | 71,133,388 | 71,133,388 | 0 | true | 2022-02-15T17:03:59.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Excel VBA Selenium click second button<p>I am trying to program in Excel VBA with selenium to click on a button but the web (<a href="http://app.bde.es/rss_w... |
71,133,479 | display:flex expands row when elements fill over 100%<p>Why is display:flex on #skipperForm producing weird result of all elements on same line?
Curiously, if we change to display:block we get a much better result. But why is flex not working?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="t... | <p><code>display: flex;</code> puts all elements on the same row by default. If you one them stacked on top you need also set <code>flex-direction:column;</code></p> | display:flex expands row when elements fill over 100% | flexbox | 0 | 28 | 2 | 71,133,544 | 71,133,544 | 0 | true | 2022-02-15T21:14:33.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
display:flex expands row when elements fill over 100%<p>Why is display:flex on #skipperForm producing weird result of all elements on same line?
Curiously, i... |
71,133,562 | For some reason {{ post.message }} is not displaying the modle<p>I am making a simple site to experiment with manipulating user data. I have a form where the user enters in some info and once they hit submit they get redirected to a new page. On this new page, the info they entered is supposed to be displayed. I am und... | <p>You need to pass it as a context. The best way to do it is via <code>DetailView</code>.</p>
<pre><code>class Sucsessus_view(generic.DetailView):
template_name = 'forums_simple/sucseus.html'
model = Post
</code></pre>
<p>urls:</p>
<pre><code>urlpatterns = [
...
path('post/<int:pk>/', Sucsessus_v... | For some reason {{ post.message }} is not displaying the modle | python|html|django | 0 | 41 | 2 | 71,133,692 | 71,133,692 | 0 | true | 2022-02-15T21:22:34.660Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
For some reason {{ post.message }} is not displaying the modle<p>I am making a simple site to experiment with manipulating user data. I have a form where the... |
71,129,138 | Django not showing group manage options in admin page<p>Recently, I deployed a Django web app. However, when I'm accessing the admin page, I'm not getting the expected interface to add or remove a user from a certain group:</p>
<p><a href="https://i.stack.imgur.com/5bfUy.png" rel="nofollow noreferrer"><img src="https:/... | <p>Content Security Policies are usually controlled via middleware like <a href="https://django-csp.readthedocs.io/en/latest/index.html" rel="nofollow noreferrer">django-csp</a>. All the admin control JavaScript files are included as static files, no external libraries should be loaded, they should be on the same domai... | Django not showing group manage options in admin page | python|jquery|django|bootstrap-4 | 0 | 34 | 1 | 71,133,727 | 71,133,727 | 0 | true | 2022-02-15T15:32:56.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django not showing group manage options in admin page<p>Recently, I deployed a Django web app. However, when I'm accessing the admin page, I'm not getting th... |
71,133,976 | Unable to connect socket client (reactjs) to socket server (express) over lan network (different machine on same network)<p>I have two different machines connect to same network.</p>
<p>I wanted to connect over LAN Network using LAN assigned IP address below is the simple demonstration</p>
<p>Socket Client (Reactjs, IP... | <p>You need to configure cors in the socket server not express</p>
<p>take a look here to know more about the configuration <a href="https://socket.io/docs/v3/handling-cors/" rel="nofollow noreferrer">https://socket.io/docs/v3/handling-cors/</a></p>
<h2>configuration example</h2>
<pre class="lang-js prettyprint-overrid... | Unable to connect socket client (reactjs) to socket server (express) over lan network (different machine on same network) | reactjs|express|socket.io | 0 | 17 | 1 | 71,134,038 | 71,134,038 | 0 | true | 2022-02-15T22:05:43.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to connect socket client (reactjs) to socket server (express) over lan network (different machine on same network)<p>I have two different machines con... |
71,122,023 | How to get the contents of the body tag of the page through the browser extension?<p>Why is variable body empty? how to get body tag content?</p>
<blockquote>
<p>I am writing code for google chrome extension. I plan to use the
extension for personal use only. For web scraping.
To finally analyze the text. I want to pla... | <p>Based on the <code>manifest.json</code> you posted it looks like you are running your code as a background script.</p>
<p>Background scripts don't have direct access to the loaded page content - this is why the body is empty in your code.</p>
<p>Instead, you will need to use a content script to access the page conte... | How to get the contents of the body tag of the page through the browser extension? | javascript|google-chrome | 0 | 38 | 1 | 71,134,936 | 71,134,936 | 0 | true | 2022-02-15T06:35:30.667Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get the contents of the body tag of the page through the browser extension?<p>Why is variable body empty? how to get body tag content?</p>
<blockquote... |
71,134,845 | Get Groupname after using groupby.size()<p>I am using a Billboard-Charts dataset which looks like this:</p>
<p><img src="https://i.stack.imgur.com/u0DOc.jpg" alt="Billboard-Charts DataFrame" /></p>
<p>I want to write a function that receives an arbitrary number of artists as parameters. From these artists, i want to de... | <p>You can access the max row with <code>.idxmax()</code>.</p>
<p>You should then be able to select that row and access the values in that row with the following changes. Note that I used <code>.reset_index()</code> to set the groupby index as a column.</p>
<pre><code>def determine_most_popular_performer(*performers):
... | Get Groupname after using groupby.size() | python|pandas|function|pandas-groupby | 0 | 21 | 1 | 71,135,012 | 71,135,012 | 0 | true | 2022-02-15T23:52:52.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get Groupname after using groupby.size()<p>I am using a Billboard-Charts dataset which looks like this:</p>
<p><img src="https://i.stack.imgur.com/u0DOc.jpg"... |
71,098,487 | While coding a login I want to set a limit to just allow you to try 3 times before resetting it<p>Disclaimer: Some code is in Spanish, let me know if you need it in English, also I didn't knew how to add the second HTML (plus IDK if it is relevant) please tell me if you need that too so I can change it.</p>
<p>I'm work... | <blockquote>
<p>This was my solution and worked like a charm, hope it helps somebody.</p>
</blockquote>
<pre><code>function login() {
let response
user = document.getElementById('user')
pass = document.getElementById('password')
bal = 1000
if (user.value === 'Emilio' && pass.value === "... | While coding a login I want to set a limit to just allow you to try 3 times before resetting it | javascript|html|validation|authentication | 0 | 38 | 3 | 71,135,339 | 71,135,339 | 0 | true | 2022-02-13T06:41:20.563Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
While coding a login I want to set a limit to just allow you to try 3 times before resetting it<p>Disclaimer: Some code is in Spanish, let me know if you nee... |
71,135,572 | Where clauses and search<p>I'm new in Laravel and Livewire. I have problem with my code, I'm trying to use where clauses and search in one query. I have code like this.</p>
<p>This is in my controller</p>
<pre class="lang-php prettyprint-override"><code>public function read()
{
return Groom::query()
->se... | <p>Your generated SQL query is</p>
<pre class="lang-sql prettyprint-override"><code>select * from grooms
left join "pets" on "pets"."id" = "grooms"."pet_id"
where "status" <> 'selesai'
and "name" like ? and (
"service" like ?
... | Where clauses and search | laravel|search|where-clause | 0 | 22 | 1 | 71,135,649 | 71,135,649 | 0 | true | 2022-02-16T02:03:20.770Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Where clauses and search<p>I'm new in Laravel and Livewire. I have problem with my code, I'm trying to use where clauses and search in one query. I have code... |
71,135,559 | Adjust rank of a dataset in R<p>The code below is working, but the rank is a little weird. See that there are several <code>21.5</code>. But I would like it to have an order of <code>1,2,3,4,5</code> and so on. Can you help me?</p>
<pre><code> df1<-structure(list(Distance = c(5248.99947051215, 64018.2500397613,
... | <p><code>rank()</code> by default will set ties to be an average. Try setting the ties to the appropriate value for your situation:</p>
<pre><code>## increasing values at each index set of ties
df1$Rank <- rank(df1$Distance, ties.method = "first")
# [1] 1 29 28 27 25 26 24 20 21 22 23 15 12 17 18 19 16 1... | Adjust rank of a dataset in R | r | 0 | 24 | 1 | 71,135,650 | 71,135,650 | 0 | true | 2022-02-16T02:01:22.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Adjust rank of a dataset in R<p>The code below is working, but the rank is a little weird. See that there are several <code>21.5</code>. But I would like it ... |
71,135,364 | I want to extend my program so that it displays if the user guessed the correct number, guessed too high or too low. What's wrong with my code?<pre class="lang-py prettyprint-override"><code>def dice_game():
print ("Welcome to my dice game")
import random
your_name = input ("Please enter your name:&q... | <p>There are several issues with your code, roughly in order of severity:</p>
<ul>
<li>The indentation of the <code>else</code> block is wrong. Dedent it so that it's on the same level as the <code>if</code> and <code>elif</code> statements.</li>
<li>You can't use <code>break</code> inside an <code>if</code> block. Thi... | I want to extend my program so that it displays if the user guessed the correct number, guessed too high or too low. What's wrong with my code? | python-3.x|numbers|dice | 0 | 18 | 1 | 71,135,893 | 71,135,893 | 0 | true | 2022-02-16T01:23:14.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to extend my program so that it displays if the user guessed the correct number, guessed too high or too low. What's wrong with my code?<pre class="la... |
71,135,927 | Is That Possible To Change the Widgets Styles and Action According to the Api Data's?<p>For Example Assume You Have List of 10 Postive and Negative Values. So We can Go with ListView Builder. Now what the Changes Should be Happen is If the Positive Value Should Take as Green Card in Listview if the Value is Negative th... | <p>Sure you can do that, I am assuming that you are receiving JSON from API.
i.e. balance is the value you want to check. if it has a negative value then use logic
like below(psudo code)</p>
<pre><code>if( balance > 1000){
//... the used green colour in widget
} else {
// use color red in widget
}
</code></pre> | Is That Possible To Change the Widgets Styles and Action According to the Api Data's? | flutter|dart | 0 | 32 | 3 | 71,135,964 | 71,135,964 | 0 | true | 2022-02-16T03:09:18.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is That Possible To Change the Widgets Styles and Action According to the Api Data's?<p>For Example Assume You Have List of 10 Postive and Negative Values. S... |
71,135,461 | How can I multiply pairs of rows of a column conditional on the difference between the rows of another column without using nested loops?<p>Let's say I have a dataframe.</p>
<pre><code> x_coord y_coord u
1 12 16 100
2 17 16 105
3 22 12 95
4 ... | <p>One approach might be to join the table on itself, requiring that the join be equal on y_coord, and be offset by (-5, 5, 10, etc) on the xcoord. This function does that, and also allows you to pass a different u column (default is <code>"u"</code>, and a different offset or xdiff (default is <code>-5</code... | How can I multiply pairs of rows of a column conditional on the difference between the rows of another column without using nested loops? | r | 0 | 41 | 1 | 71,136,098 | 71,136,098 | 0 | true | 2022-02-16T01:42:17.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I multiply pairs of rows of a column conditional on the difference between the rows of another column without using nested loops?<p>Let's say I have ... |
71,136,064 | Splicing names in a list, and adding characters to a specific string?<p>Hello there: I currently have a list of file names (100s) which are separated by multiple "/" at certain points. I would like to find the last "/" in each name and replace it with "/Old". A quick example of what I have... | <p>If your file names are in a character vector you can use <code>str_replace()</code> from the <code>stringr</code> package for this:</p>
<pre><code>items <- c(
"Cars/sedan/Camry",
"Cars/sedan/XJ8",
"Cars/SUV/Cayenne"
)
stringr::str_replace(items, pattern = "([^/]+$)",... | Splicing names in a list, and adding characters to a specific string? | r|list|rename|tail | 0 | 33 | 2 | 71,136,225 | 71,136,225 | 0 | true | 2022-02-16T03:30:53.460Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Splicing names in a list, and adding characters to a specific string?<p>Hello there: I currently have a list of file names (100s) which are separated by mult... |
71,136,475 | How are complex applications made with Python in an IDE with raw code?<p>The question may not have been clear as there was not much of a better way for me to word it but I will do my best here: Most scripting is done raw in the IDE. When coding with Python it simply runs everything through the "console." I wa... | <p>If you're talking about gui (graphical user interface) applications tkinter module is what you're looking for allowing you to create simple gui applications.</p>
<p>Here is a link to the documentation <br />
<a href="https://docs.python.org/3/library/tkinter.html" rel="nofollow noreferrer">https://docs.python.org/3/... | How are complex applications made with Python in an IDE with raw code? | python|python-3.x|ide | 0 | 35 | 2 | 71,136,582 | 71,136,582 | 0 | true | 2022-02-16T04:38:20.710Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How are complex applications made with Python in an IDE with raw code?<p>The question may not have been clear as there was not much of a better way for me to... |
71,136,798 | Using the passed variables in another windows (tkinter)<p>I wanted to create an app to calculate the total number of grids, by getting the number of grids in X,Y, and Z directions. I also want to use the result to be moved in the next windows. I found this post below, and I used it as my code basis.</p>
<p><a href="htt... | <p>You can us tkinter variable <code>.trace()</code> to update <code>Data.A</code> whenever <code>Data.tot_grids</code> is updated:</p>
<pre class="lang-py prettyprint-override"><code>class PageTwo(tk.Frame):
def __init__(self, parent, data):
super().__init__(parent)
self.data = data
self.f... | Using the passed variables in another windows (tkinter) | python|class|tkinter | 0 | 44 | 1 | 71,137,189 | 71,137,189 | 0 | true | 2022-02-16T05:24:52.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using the passed variables in another windows (tkinter)<p>I wanted to create an app to calculate the total number of grids, by getting the number of grids in... |
71,136,130 | Download Html file instead of render in Django<p>So I am pretty much a django newbie, I do not even know if what I am asking is possible ;-;
So basically what I'm making is a website where users can pass context
Then django populates a template with the context
But instead of rendering the template I want to make the t... | <p>This is pretty easy, your view ends with something like</p>
<pre><code> return render(request,"index.html",context)
</code></pre>
<p>It should be changed to something like this</p>
<pre><code> from io import StringIO
from django.http import FileReponse
response = render(request,"index.html",co... | Download Html file instead of render in Django | python|django|django-templates | 0 | 272 | 1 | 71,137,300 | 71,137,300 | 0 | true | 2022-02-16T03:42:04.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Download Html file instead of render in Django<p>So I am pretty much a django newbie, I do not even know if what I am asking is possible ;-;
So basically wha... |
71,137,200 | Python random.randint(a,b) not producing random values for a 2d grid<p>I'm new to coding and making my own MineSweeper game. I'm using PyGame.</p>
<p>When I use the code below I would use the list Tiles to draw a 2d grid with red pixels for the Items and gray pixels for the others. I would get a image similar to this:... | <p>Change <code>Tiles[x*4 + y]</code> to <code>Tiles[x*Height + y]</code>.</p> | Python random.randint(a,b) not producing random values for a 2d grid | python|random|pygame | 0 | 34 | 1 | 71,137,312 | 71,137,312 | 0 | true | 2022-02-16T06:20:14.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python random.randint(a,b) not producing random values for a 2d grid<p>I'm new to coding and making my own MineSweeper game. I'm using PyGame.</p>
<p>When I... |
71,128,080 | Node- / ExpressJS - Could not obtain grant code: unable to get local issuer certificate<p>I'm building a WebApp with Node- & ExpressJS. Currently I'm trying to connect my app to our company's Keycloak with the keycloak-connect module. I configured it as mentioned in different tutorials and it works (atleast mostly)... | <p>Well I've found a solution and it works perfectly!</p>
<p>This <a href="https://github.com/nodejs/node/issues/4175#issuecomment-238211757" rel="nofollow noreferrer">comment</a> on a GitHub issue describes, how to send ca files with the HTTPS server from NodeJS.</p>
<hr />
<p>You can enter your ca files / bundles in ... | Node- / ExpressJS - Could not obtain grant code: unable to get local issuer certificate | node.js|express|ssl|keycloak | 0 | 268 | 1 | 71,138,026 | 71,138,026 | 0 | true | 2022-02-15T14:21:03.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Node- / ExpressJS - Could not obtain grant code: unable to get local issuer certificate<p>I'm building a WebApp with Node- & ExpressJS. Currently I'm try... |
71,137,756 | How to streamline code using for statement when rendering in django's views.py<p>I'm using django and the code below works inefficiently. Is there a way to shorten the method of creating and appending a list by using a for statement as in the code below? list is used to create graphs in apex chart javascript.</p>
<p><s... | <p>Something like:</p>
<pre><code>for count in counts:
teacher.append(str(count['teacher']))
A.append(str(count['A']))
B.append(str(count['B']))
C.append(str(count['C']))
D.append(str(count['D']))
E.append(str(count['E']))
F.append(str(count['F']))
</code></pre>
<p>could be re-written using ... | How to streamline code using for statement when rendering in django's views.py | python|django|django-queryset | 0 | 36 | 1 | 71,138,113 | 71,138,113 | 0 | true | 2022-02-16T07:24:17.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to streamline code using for statement when rendering in django's views.py<p>I'm using django and the code below works inefficiently. Is there a way to s... |
71,137,972 | skip data point on x-axis and group by based on data in highcharts<p>I am working on highcharts to map data on x axis and y axis based on labels(i.e. kiwi, apple, banana) and count(i.e. 7, 3, 486) and put dates on x-axis based on data. can anyone please help me on how to group by data based on date and labels to displa... | <p>It can be achieved in many ways, below is my interpretation:</p>
<pre><code>const data = [
['2018-03-05', 'kiwi', 7],
['2018-03-05', 'apple', 486],
['2018-03-05', 'grapes', 3],
['2018-03-07', 'banana', 33],
['2018-03-07', 'kiwi', 64],
['2018-03-07', 'person', 433],
['2018-03-07', 'grapes', 137],
['20... | skip data point on x-axis and group by based on data in highcharts | javascript|angular|highcharts | 0 | 37 | 1 | 71,138,571 | 71,138,571 | 0 | true | 2022-02-16T07:45:22.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
skip data point on x-axis and group by based on data in highcharts<p>I am working on highcharts to map data on x axis and y axis based on labels(i.e. kiwi, a... |
71,138,493 | Getting notified of an appsink's negotiated caps in GStreamer<p>Is there a way to get the negotiated caps on an appsink element? Basically I want <code>gst_pad_get_current_caps()</code> but instead of returning null if the caps are not negotiated yet, block and wait for negotiation. Alternatively, an event would also w... | <p>Ah, as normal when I post the question I find the answer. The function I'm looking for is <code>gst_pad_set_event_function()</code>.</p> | Getting notified of an appsink's negotiated caps in GStreamer | gstreamer | 0 | 32 | 1 | 71,138,607 | 71,138,607 | 0 | true | 2022-02-16T08:35:32.433Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting notified of an appsink's negotiated caps in GStreamer<p>Is there a way to get the negotiated caps on an appsink element? Basically I want <code>gst_p... |
71,137,480 | Set default date range for 2 years in power bi date slicer<p>I have a dataset which is containing data from 2015 to latest and dataset is refreshing on daily basis. So I need to set default start date and end date for 2 years from latest date as by default. But User can also see the previous data by changing the date s... | <p>We can easily perform day, month, year filtering with the slicer option we have selected from the visualisation section.
<a href="https://i.stack.imgur.com/Rcsg0.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>In the dateadded slicer that we see in the image, we can perform the filtering proce... | Set default date range for 2 years in power bi date slicer | powerbi|dashboard|slicers | 0 | 300 | 1 | 71,139,007 | 71,139,007 | 0 | true | 2022-02-16T06:56:03.060Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Set default date range for 2 years in power bi date slicer<p>I have a dataset which is containing data from 2015 to latest and dataset is refreshing on daily... |
71,137,652 | How to represent a nested array as one-dimensional array?<p>How to represent (serialise) an arbitrarily nested array, as a one-dimensional array of values (and meta-data) so that the original nested array and it's structure can be recreated from the serialised one-dimensional array?</p>
<p>I'm looking for a space effic... | <p>You could represent a nested array with a sequence that first contains the length of that array (also providing the information that the following content is a sub-array) and then the elements themselves.</p>
<p>If you only have positive numbers as your values, but can store negative numbers, you could use negative ... | How to represent a nested array as one-dimensional array? | arrays|algorithm|serialization|deserialization | 0 | 35 | 1 | 71,139,427 | 71,139,427 | 0 | true | 2022-02-16T07:15:12.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to represent a nested array as one-dimensional array?<p>How to represent (serialise) an arbitrarily nested array, as a one-dimensional array of values (a... |
71,139,658 | How to hide a text with media queries when user agent stylesheets and display flex overwrite my media query?<p>Well, I am working on a web just to practice HTML, CSS and SASS and it looks like that:</p>
<p><a href="https://i.stack.imgur.com/CyGWA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CyGWA.... | <p>Use <strong>display: none</strong> not hidden. This property does not have a hidden value.</p> | How to hide a text with media queries when user agent stylesheets and display flex overwrite my media query? | html|css|sass | 0 | 45 | 1 | 71,139,841 | 71,139,841 | 0 | true | 2022-02-16T09:59:06.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to hide a text with media queries when user agent stylesheets and display flex overwrite my media query?<p>Well, I am working on a web just to practice H... |
71,139,982 | How to use django groups and perms in django-rest-framework<p>How to handle complex required permissions in any API using django-rest-framework?</p>
<p>For example, you have three tier support operators who have access to APIs, but they should only have access to respective endpoint and as the last tier, superadmin sho... | <p>Create new permission model permission from django base model permission like this:</p>
<pre><code>from rest_framework.permissions import DjangoModelPermissions
class FullDjangoModelPermissions(DjangoModelPermissions):
perms_map = {
'GET': ['%(app_label)s.view_%(model_name)s'],
'OPTIONS': ['%(a... | How to use django groups and perms in django-rest-framework | django-rest-framework|permissions | 0 | 271 | 1 | 71,139,983 | 71,139,983 | 0 | true | 2022-02-16T10:20:55.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use django groups and perms in django-rest-framework<p>How to handle complex required permissions in any API using django-rest-framework?</p>
<p>For e... |
71,139,825 | using setState with an array of objects<p>I am having a state with two products like this:</p>
<pre><code>const [product, setProduct] = useState([
{
name: 'Hat',
description: 'Nice cartoon hat',
images: [
'linktoimage',
],
amount: 799,
currency: 'eur',
quantity: 0,
... | <p>This is a way you can do to update the quantity of element:</p>
<blockquote>
<pre><code>...
{product.map((p, indx) => (
...
<button
className='btn btn-sm btn-success'
onClick={() => {
const updateProducts = product
updateProducts[indx... | using setState with an array of objects | javascript|reactjs | 0 | 36 | 4 | 71,140,130 | 71,140,130 | 0 | true | 2022-02-16T10:10:26.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
using setState with an array of objects<p>I am having a state with two products like this:</p>
<pre><code>const [product, setProduct] = useState([
{
... |
71,139,562 | Google Sheets Select text from cell and export header names from corresponding column<p>I have a list of student names in a column and assessments names as a header. Along side each student I have a dropdown with either:</p>
<ul>
<li>NS</li>
<li>S</li>
<li>MIS</li>
</ul>
<p><a href="https://i.stack.imgur.com/R1JEN.png... | <p>One option that comes to mind:</p>
<p><a href="https://i.stack.imgur.com/1l4wQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1l4wQ.png" alt="enter image description here" /></a></p>
<p>Formula in <code>G3</code>:</p>
<pre><code>=INDEX(TEXTJOIN(", ",1,FILTER(B$2:F$2,REGEXMATCH(B3:F3,&qu... | Google Sheets Select text from cell and export header names from corresponding column | google-sheets|select|drop-down-menu|google-sheets-formula|textjoin | 0 | 31 | 1 | 71,140,500 | 71,140,500 | 0 | true | 2022-02-16T09:52:56.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google Sheets Select text from cell and export header names from corresponding column<p>I have a list of student names in a column and assessments names as a... |
71,138,522 | Create dynamic variables in Jinja2<p>I'm trying to create router configs automatically with Ansible and a Jinja2 template. My vars are in two different files: one valid for all routers (all.yml) and an additional one per router (router.yml). I'd like to create a variable to look up the IP address in the router.yml but ... | <p>You can use the classic dictionary key access in Jinja as well, e.g. <code>router[vlan.id ~ '_ip']</code>. The <a href="https://jinja.palletsprojects.com/en/3.0.x/templates/#other-operators" rel="nofollow noreferrer">tilde operator</a> is for string concatenation.</p>
<pre><code>{% set vlans = [{'id': 2001, 'name': ... | Create dynamic variables in Jinja2 | jinja2 | 0 | 275 | 1 | 71,140,977 | 71,140,977 | 0 | true | 2022-02-16T08:38:10.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create dynamic variables in Jinja2<p>I'm trying to create router configs automatically with Ansible and a Jinja2 template. My vars are in two different files... |
71,140,962 | How to get data where ImageField in not null in django?<p>context_processor.py file</p>
<pre><code> def context_processor(request):
context={}
context['services'] = Services.objects.filter(bg_image__isnull=False)
return context
</code></pre>
<p>models.py</p>
<pre><code>class Services(models.Model):
t... | <p>Try this:</p>
<pre><code>Services.objects.exclude(bg_image='')
</code></pre> | How to get data where ImageField in not null in django? | python|django|django-queryset | 0 | 23 | 2 | 71,141,304 | 71,141,304 | 0 | true | 2022-02-16T11:26:26.033Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get data where ImageField in not null in django?<p>context_processor.py file</p>
<pre><code> def context_processor(request):
context={}
con... |
71,140,622 | Jsonnet object comprehension in array<p>I know how to do Array comprehension in Jsonnet like this, with the for loop the one object in the array gets looped with all my defined values:</p>
<pre><code>local values = [
'foo',
'bar',
'foobar',
];
{
list: 'movies',
items: [
{
title: 'title',
language: ... | <p>Pasting below two possible solutions, with their own tradeoffs (depending on how further you need to customize the final <code>items</code> array):</p>
<h2>1) Mixing arrays, with value "placement" in the comprehension</h2>
<pre class="lang-jsonnet prettyprint-override"><code>local values = [
'foor',
'b... | Jsonnet object comprehension in array | json|jsonnet | 0 | 546 | 1 | 71,141,583 | 71,141,583 | 0 | true | 2022-02-16T11:03:47.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Jsonnet object comprehension in array<p>I know how to do Array comprehension in Jsonnet like this, with the for loop the one object in the array gets looped ... |
71,133,463 | Neo4j : Modeling Many to Many Relation<p>How can i model the following data :</p>
<ul>
<li>"Person A" was hired by "Studio 1" to act in "Movie A"</li>
<li>"Person A" was hired by "Studio 1" to act in "Movie B"</li>
<li>"Person A" was hired by "S... | <p>The thing is that with the current model you will lose the context about which movie the studio hired the actor to perform in. Imagine if two studios hired a single person to perform in two movies. What you will end up with is:</p>
<p><a href="https://i.stack.imgur.com/tAiBW.png" rel="nofollow noreferrer"><img src="... | Neo4j : Modeling Many to Many Relation | neo4j | 0 | 27 | 1 | 71,142,183 | 71,142,183 | 0 | true | 2022-02-15T21:12:47.150Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Neo4j : Modeling Many to Many Relation<p>How can i model the following data :</p>
<ul>
<li>"Person A" was hired by "Studio 1" to act in &... |
71,142,117 | GridLayout not showing images in Android<p><strong>So this is xml file having GridLayout inside RelativeLayout</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schem... | <p>It's because you are giving android:width="wrap_content" which takes as the actual with of the image. So, please make it 0dp like below: and, also provide fixed height else it will take a whole screen. And, I have given a margin to each imageview so that it looks nice.</p>
<pre><code><RelativeLayout xml... | GridLayout not showing images in Android | java|android|xml|imageview | 0 | 32 | 1 | 71,142,402 | 71,142,402 | 0 | true | 2022-02-16T12:44:55.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
GridLayout not showing images in Android<p><strong>So this is xml file having GridLayout inside RelativeLayout</strong></p>
<pre><code><?xml version="... |
71,142,494 | Unable to see changes to a global variable from a different Python module<p>Consider the following Python application of two files, namely <code>app.py</code>:</p>
<pre class="lang-py prettyprint-override"><code>#!/usr/bin/env python3
import other
MY_DICT = {'initial': 10}
def main():
print('before main:', MY_D... | <p><strong>Solution</strong>: don't do that. Do not import the entry point Python script as a module. Create a separate small file which is never imported by anyone else and is intended to be run from the shell.</p>
<p>When you run the app as <code>./app.py</code> Python actually loads your <code>app.py</code> as a mod... | Unable to see changes to a global variable from a different Python module | python|global-variables|python-module | 0 | 16 | 1 | 71,142,495 | 71,142,495 | 0 | true | 2022-02-16T13:10:18.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to see changes to a global variable from a different Python module<p>Consider the following Python application of two files, namely <code>app.py</code... |
71,142,366 | How can I render Alarm item in FlatList with typescript?<p>I'm making a FlatList rendering Alarm items. (react-native-simple-alarm)</p>
<p>the tsx file where my FlatList is</p>
<pre><code>const [alarms, setAlarms] = useState<AlarmType[]>([]);
...
const renderItem: ListRenderItem<AlarmType> = ({item}) =>... | <p>You are passing the props incorrectly.</p>
<p>When you do something like</p>
<pre><code><ListItem props={item} />
</code></pre>
<p>You are passing props that contain a property called <code>props</code>, so in <code>ListItem</code>, the <code>prop</code> would be something like <code>{props: item}</code>.</p>
... | How can I render Alarm item in FlatList with typescript? | reactjs|typescript|react-native | 0 | 38 | 1 | 71,142,504 | 71,142,504 | 0 | true | 2022-02-16T13:01:11.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I render Alarm item in FlatList with typescript?<p>I'm making a FlatList rendering Alarm items. (react-native-simple-alarm)</p>
<p>the tsx file where... |
71,142,929 | How to query data which is not unique up to a certain point?<p>Basically the current conditions of the query are</p>
<pre><code>WHERE data_payload_uri BETWEEN
'/organization/team/folder/2021'
AND
'/organization/team/folder/2022'
</code></pre>
<p>And this gets all data for the year of 2021.</p>
<p>A sample of the data_p... | <p>You can use the analytic <code>COUNT</code> function:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT *
FROM (
SELECT t.*,
COUNT(DISTINCT data_payload_uri) OVER (
PARTITION BY SUBSTR(data_payload_uri, 1, INSTR(data_payload_uri, '/', -1))
) AS cnt
FROM table_name t
W... | How to query data which is not unique up to a certain point? | sql|oracle | 0 | 22 | 1 | 71,143,169 | 71,143,169 | 0 | true | 2022-02-16T13:41:13.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to query data which is not unique up to a certain point?<p>Basically the current conditions of the query are</p>
<pre><code>WHERE data_payload_uri BETWEE... |
71,128,275 | Caching constructor selection instead of lamda conversion<p>We have a very large number of autofac resolutions that occur in our application. We've always had a very long time (about 50% of our web requests) of processing belonging to the autofac resolution stage.</p>
<p>It came to our attention how very important swit... | <p>Autofac does cache a lot of what it can, but even with container immutability, there's...</p>
<ul>
<li>Registration sources: dynamic suppliers of registrations (that's how open generics get handled, for example)</li>
<li>Child lifetime scopes: the root container might not have the current <code>HttpRequestMessage</c... | Caching constructor selection instead of lamda conversion | autofac | 0 | 18 | 1 | 71,143,358 | 71,143,358 | 0 | true | 2022-02-15T14:34:31.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Caching constructor selection instead of lamda conversion<p>We have a very large number of autofac resolutions that occur in our application. We've always ha... |
71,144,551 | Css grid area not binding areas as intended<p>So, I'm facing an issue where my grid areas are not bound like I want them to be.
I'm trying to get one block per line, on different columns, but they appear to all stack on the first line.</p>
<p>This is how they are bound. They ain't in their areas and I'm wondering why.<... | <p>Use your browser's dev tool inspect facility on one of the misplaced items.</p>
<p>You will see that it has a warning that the value is illegal.</p>
<p>That is because you have put quotes around the value ('a', 'b' and 'c').</p>
<p>Remove those and all is well.</p>
<p><div class="snippet" data-lang="js" data-hide="f... | Css grid area not binding areas as intended | css|grid | 0 | 16 | 1 | 71,144,785 | 71,144,785 | 0 | true | 2022-02-16T15:23:35.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Css grid area not binding areas as intended<p>So, I'm facing an issue where my grid areas are not bound like I want them to be.
I'm trying to get one block p... |
71,144,323 | How can I show the Text and Label in the CityDetailVC in swift?<p>Cities</p>
<pre><code>import Foundation
struct City {
var image:String = ""
var name:String = ""
var text:String = ""
init(image: String, name: String, text: String){
self.image = image
s... | <p>First of all the <code>init</code> method in <code>City</code> is not needed and at least <code>name</code> and <code>image</code> are constants</p>
<pre><code>struct City {
let image : String
let name : String
var text : String = ""
}
</code></pre>
<p>In <code>didSelectItemAt</code> pass the <... | How can I show the Text and Label in the CityDetailVC in swift? | swift | 0 | 22 | 1 | 71,144,937 | 71,144,937 | 0 | true | 2022-02-16T15:07:10.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I show the Text and Label in the CityDetailVC in swift?<p>Cities</p>
<pre><code>import Foundation
struct City {
var image:String = ""
... |
71,145,477 | unable to fetch a get request and print the output using fetch api<p>I am using react to get the data from an API using fetch API and print it but i was unable to retrieve data from after doing a fetch request. Here is the code<a href="https://codesandbox.io/s/determined-banzai-xuzfty?file=/src/App.js" rel="nofollow no... | <p>Couple of issues here.</p>
<ol>
<li>Your submit button is not of type submit, so submit method is never called.</li>
<li>You will also want to put a preventDefault() on your submit handler, as the default will reload the page.</li>
</ol>
<p>so changes are-></p>
<pre><code><Button type="submit" varian... | unable to fetch a get request and print the output using fetch api | javascript|reactjs|forms|fetch|fetch-api | 0 | 37 | 2 | 71,145,624 | 71,145,624 | 0 | true | 2022-02-16T16:19:41.687Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
unable to fetch a get request and print the output using fetch api<p>I am using react to get the data from an API using fetch API and print it but i was unab... |
71,145,419 | Add together cells depending on value in another cell<p>Is it possible to write a sum-formula in Google Sheet that would add together all the values in the E-column which number in the F-column for example is "2"?</p>
<p><a href="https://i.stack.imgur.com/LO4y9.png" rel="nofollow noreferrer">Visual example</a... | <h2>solution #1</h2>
<p>Make a pivot table</p>
<h2>solution #2</h2>
<pre><code>=QUERY(E2:F,"select F,sum(E) where F is not null group by F ")
</code></pre> | Add together cells depending on value in another cell | google-sheets|google-sheets-formula | 0 | 27 | 1 | 71,145,653 | 71,145,653 | 0 | true | 2022-02-16T16:15:54.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Add together cells depending on value in another cell<p>Is it possible to write a sum-formula in Google Sheet that would add together all the values in the E... |
71,135,216 | What's the right way to allow systemd-timesyncd through iptables firewall?<p>First, I set up my firewall like this to allow everything:</p>
<pre class="lang-sh prettyprint-override"><code>sudo iptables -P INPUT ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables --flush
</code></pre>
<p>... | <h2>Summary</h2>
<p><code>--dport</code> and <code>--sport</code> are switched.</p>
<h2>Explanation</h2>
<p>For the other services that I am allowing through the firewall, my machine is the <em>server</em>. For NTP, my machine is the <em>client</em>. Because the rest of my original configuration actually looked more li... | What's the right way to allow systemd-timesyncd through iptables firewall? | iptables|ntp | 0 | 264 | 1 | 71,146,732 | 71,146,732 | 0 | true | 2022-02-16T00:56:05.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What's the right way to allow systemd-timesyncd through iptables firewall?<p>First, I set up my firewall like this to allow everything:</p>
<pre class="lang-... |
71,146,627 | ActiveMQ Artemis equivalent to ActiveMQ Classic networkConnector with duplex<p>Is there an equivalent to ActiveMQ Classic's <code>networkConnector</code> with <code>duplex</code> connection (bi-directional bridge) in ActiveMQ Artemis?</p>
<p>In core bridge I did not find duplex parameter.</p> | <p>No. There is no equivalent to ActiveMQ Classic's <code>networkConnector</code> with <code>duplex</code> connection in ActiveMQ Artemis.</p> | ActiveMQ Artemis equivalent to ActiveMQ Classic networkConnector with duplex | activemq-artemis | 0 | 35 | 1 | 71,146,914 | 71,146,914 | 0 | true | 2022-02-16T17:34:23.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ActiveMQ Artemis equivalent to ActiveMQ Classic networkConnector with duplex<p>Is there an equivalent to ActiveMQ Classic's <code>networkConnector</code> wit... |
71,146,796 | Using the function 'get_rect' to remove trail<p>I'm trying to make a game where the red dot moves in the maze using pygame, however when it moves it leaves a trail. I read that I am supposed to use the <code>get_rect</code> function to make it so that it doesn't leave the trail however I have not been successful at imp... | <p>You need to draw the circles on the display instead of on the map:</p>
<p><s><code>pygame.draw.circle(map, red, (rx , ry), 2)</code></s></p>
<pre class="lang-py prettyprint-override"><code>pygame.draw.circle(display_surface, red, (rx , ry), 2)
</code></pre> | Using the function 'get_rect' to remove trail | python|pygame|sprite|trail | 0 | 26 | 1 | 71,147,115 | 71,147,115 | 0 | true | 2022-02-16T17:46:42.787Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using the function 'get_rect' to remove trail<p>I'm trying to make a game where the red dot moves in the maze using pygame, however when it moves it leaves a... |
71,098,151 | Installing ZPsycopgDA on Zope<p>So, I'm trying to install ZPsycopgDA on Zope, but it keeps giving me the following error on the log file:</p>
<pre><code>2022-02-13T02:11:01 ERROR Application Couldn't install ZPsycopgDA
Traceback (most recent call last):
File "/home/rubens/zope/lib64/python2.7/site-packages/OFS/... | <p>Found the solution. Had to install Products.ZSQLMethods (<code>pip install Products.ZSQLMethods==2.13.4</code>). I've installed this version because of Zope2==2.13.30 compatibility.</p> | Installing ZPsycopgDA on Zope | database|postgresql|zope | 0 | 31 | 1 | 71,147,512 | 71,147,512 | 0 | true | 2022-02-13T05:28:04.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Installing ZPsycopgDA on Zope<p>So, I'm trying to install ZPsycopgDA on Zope, but it keeps giving me the following error on the log file:</p>
<pre><code>2022... |
71,147,224 | d3 draggable threshold, d.x is undefined<p><a href="https://jsfiddle.net/wiremanj20/cfsh4gvo/150/" rel="nofollow noreferrer">https://jsfiddle.net/wiremanj20/cfsh4gvo/150/</a></p>
<pre><code>d3.selectAll("circle")
.attr("fill", function(d) {
console.log(linePosition)
// console.log... | <p>d is not an object, is an array that has two values. That's why if you use d.x the output is undefined, because is not an object that contains a x property.</p>
<p>To solve you problem, you have to replace d.x to d[0] (is the first element of the array).</p>
<pre class="lang-js prettyprint-override"><code>d3.selectA... | d3 draggable threshold, d.x is undefined | javascript|d3.js|jsfiddle | 0 | 19 | 1 | 71,147,664 | 71,147,664 | 0 | true | 2022-02-16T18:14:42.963Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
d3 draggable threshold, d.x is undefined<p><a href="https://jsfiddle.net/wiremanj20/cfsh4gvo/150/" rel="nofollow noreferrer">https://jsfiddle.net/wiremanj20/... |
71,147,496 | How do I group by a certain field in reporting services?<p>I have the following table:</p>
<p><a href="https://i.stack.imgur.com/iFkWA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iFkWA.png" alt="enter image description here" /></a></p>
<p>I want to create a report that groups by the "Date&qu... | <p>You don't need a subreport, you need to add a group to your tablix. With the "details" row selected (by clicking on the left side) right-click to get a context menu and pick "Add group" - "Parent Group" and for the "Group By" pick the name of your date field.</p>
<p><a href="h... | How do I group by a certain field in reporting services? | reporting-services | 0 | 17 | 1 | 71,147,872 | 71,147,872 | 0 | true | 2022-02-16T18:36:51.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I group by a certain field in reporting services?<p>I have the following table:</p>
<p><a href="https://i.stack.imgur.com/iFkWA.png" rel="nofollow nor... |
71,146,117 | How to configure Middleware to Blazor app<p>I there,</p>
<p>I've a Blazor app here that I would like to add Middleware class to it. but I can't find the <code>startup.cs/IApplicationBuilder</code> to add it.</p>
<p>My project only have a Program.cs class with a <code>void Main</code> method.</p>
<p>So how to configure ... | <blockquote>
<p>So how to configure a Middleware?</p>
</blockquote>
<p>Middleware runs on the server. You posted the startup code for the Client.</p>
<p>Middleware is 'not applicable' in a Browser based app.</p> | How to configure Middleware to Blazor app | c#|blazor|middleware | 0 | 534 | 2 | 71,148,377 | 71,148,377 | 0 | true | 2022-02-16T17:00:03.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to configure Middleware to Blazor app<p>I there,</p>
<p>I've a Blazor app here that I would like to add Middleware class to it. but I can't find the <cod... |
71,144,287 | Array that flags the last step of the user so i can identify where he left out my bot<p>I have a dataset grouped by steps and userids, the steps are utilized so i can identify where my user passed through.</p>
<pre><code>Input:
Unique Step | Grouped UserId
"Step 1" Bunch of Userids
"Step 2&quo... | <p>Manage to apply only the list value, by changing up the first line of code to this</p>
<pre><code>df2=df.groupby(['Steps']).UserPhones.unique().reset_index()
</code></pre>
<p>And after that was just a little bit of list camparison, and definition.</p> | Array that flags the last step of the user so i can identify where he left out my bot | python|pandas|numpy | 0 | 27 | 1 | 71,148,672 | 71,148,672 | 0 | true | 2022-02-16T15:04:58.583Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Array that flags the last step of the user so i can identify where he left out my bot<p>I have a dataset grouped by steps and userids, the steps are utilized... |
71,141,688 | What task can a sigle layer perceptron do better than a multilayer perceptron?<p>Are there tasks a sigle layer perceptron can do better than a multilayer perceptron?
If yes, do you have an example?</p> | <p>Any dataset, where the underlying relation is linear, but number of training datapoints is very low will benefit from having the linear model to begin with. It is a relation of task + amount of data, more than nature of the task itself. Another example could be a bit contrived task of extrapolation, where you train ... | What task can a sigle layer perceptron do better than a multilayer perceptron? | machine-learning|neural-network|perceptron | 0 | 22 | 1 | 71,148,874 | 71,148,874 | 0 | true | 2022-02-16T12:14:57.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What task can a sigle layer perceptron do better than a multilayer perceptron?<p>Are there tasks a sigle layer perceptron can do better than a multilayer per... |
71,146,440 | I need to fetch the second highest salary per department using correlated subquery and oracle sql<p>if I run the code like that I get the result I need, but I also need to add the name column, and once I add it, the result changes</p>
<pre><code>select department_id, max(salary)
from employees e1
where salary <
(s... | <p>I don't have your tables so I'll use Scott's <code>EMP</code>. This is its contents:</p>
<pre><code>SQL> select deptno, ename, sal from emp order by deptno, sal desc;
DEPTNO ENAME SAL
---------- ---------- ----------
10 KING 5000
10 CLARK 2450 --> 2nd h... | I need to fetch the second highest salary per department using correlated subquery and oracle sql | sql|oracle|filtering|correlated-subquery|correlated | 0 | 555 | 2 | 71,148,946 | 71,148,946 | 0 | true | 2022-02-16T17:20:38.830Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I need to fetch the second highest salary per department using correlated subquery and oracle sql<p>if I run the code like that I get the result I need, but ... |
71,113,923 | React Native Video selectedVideoTrack prop not working in android phones<p><code>selectedVideoTrack</code> prop not working in android phone. Here is the Video componenet</p>
<pre><code> <Video
source={{uri: uri}}
ref={videoPlayer}
poster={thumbnail}
style={orie... | <p>added these lines in <code>react-native.config.js</code> help me to achieve it in android</p>
<pre><code>module.exports = {
dependencies: {
'react-native-video': {
platforms: {
android: {
sourceDir: '../node_modules/react-native-video/android-exoplayer',
... | React Native Video selectedVideoTrack prop not working in android phones | react-native|react-native-video | 0 | 531 | 1 | 71,148,981 | 71,148,981 | 0 | true | 2022-02-14T15:03:14.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React Native Video selectedVideoTrack prop not working in android phones<p><code>selectedVideoTrack</code> prop not working in android phone. Here is the Vid... |
71,149,145 | Python/Selenium, xpath suddenly stops working<p>I have a script that extracts names from a crypto list on coinmarketcap. To get the names I use the function:</p>
<pre class="lang-py prettyprint-override"><code>num = 0
def print_name():
global num
num = num + 1
if num == 100:
exit()
sleep(0.1)
... | <p>To extract the names from the Top DeFi Tokens by Market Capitalization within <a href="https://coinmarketcap.com/view/defi/" rel="nofollow noreferrer">Coinmarketcap</a> you have to induce <a href="https://stackoverflow.com/a/59130336/7429447">WebDriverWait</a> for <a href="https://stackoverflow.com/a/64770041/742944... | Python/Selenium, xpath suddenly stops working | python|html|selenium|xpath|error-handling | 0 | 270 | 1 | 71,149,368 | 71,149,368 | 0 | true | 2022-02-16T20:53:52.870Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python/Selenium, xpath suddenly stops working<p>I have a script that extracts names from a crypto list on coinmarketcap. To get the names I use the function:... |
71,147,331 | How to send information from a class using a backgroundworker, back to the mainform<p>Hi,</p>
<p>I'm trying to write a UDP-client that listens to a port, and then display the incoming data in a textbox.</p>
<p>I have written a class; UDP_Receive() that starts a backgroundworker that listens to a specified port and rece... | <p>You can write this kind of code to keep the UI separate from the <code>UDP_Receive</code> class:</p>
<pre><code>internal class UDP_Receive
{
private Action<string> _invoke;
public UDP_Receive(Action<string> invoke)
{
_invoke = invoke;
}
public void Foo()
{
_in... | How to send information from a class using a backgroundworker, back to the mainform | c#|multithreading|class|udp | 0 | 24 | 1 | 71,150,347 | 71,150,347 | 0 | true | 2022-02-16T18:23:27.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to send information from a class using a backgroundworker, back to the mainform<p>Hi,</p>
<p>I'm trying to write a UDP-client that listens to a port, and... |
71,150,470 | Pandas show the url with ..., How can I fix it?<p>I am trying to make a scraper but it is giving me problems because the url is not showing them completely, instead it only shows ... and it does not allow me to scrape as it should. This is the code:</p>
<pre><code>from bs4 import BeautifulSoup
import requests
import ur... | <p>Just replace <code>print(df)</code> with</p>
<pre><code> print(df.url.values[0])
</code></pre> | Pandas show the url with ..., How can I fix it? | python|pandas | 0 | 24 | 1 | 71,150,625 | 71,150,625 | 0 | true | 2022-02-16T23:14:32.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pandas show the url with ..., How can I fix it?<p>I am trying to make a scraper but it is giving me problems because the url is not showing them completely, ... |
71,150,400 | DjangoORM/Postgres: Get latest row based on distinct values of certain column when ordered by date<p>I have a Django model called <code>Comment</code> (database is Postgres) which I populate with responses from an external API.</p>
<pre><code>class Poster(models.Model):
username = models.TextField()
class Comment(... | <p>I have solved this with the method in <a href="https://stackoverflow.com/a/28570944/2052575">this answer</a>...</p>
<pre><code>Comment.objects.all(
).order_by('poster__username', '-created_dt'
).distinct('poster__username'
).values('poster__username', 'client_version', 'created_dt')]
</code></pre>
<p>Thi... | DjangoORM/Postgres: Get latest row based on distinct values of certain column when ordered by date | postgresql|django-orm | 0 | 10 | 1 | 71,150,725 | 71,150,725 | 0 | true | 2022-02-16T23:05:09.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
DjangoORM/Postgres: Get latest row based on distinct values of certain column when ordered by date<p>I have a Django model called <code>Comment</code> (datab... |
71,151,359 | Auth0 NuGet packages for Xamarin Forms 5.0<p>I'm building a new Xamarin mobile app using Xamarin Forms 5.0 and tried to install <code>Auth0.OidcClient.iOS</code> and <code>Auth0.OidcClient.Android</code> as suggested by the instructions on Auth0 website here: <a href="https://auth0.com/docs/quickstart/native/xamarin" r... | <p>as the name suggests <code>Auth0.OidcClient.iOS</code> should be installed in your <strong>iOS</strong> project and <code>Auth0.OidcClient.Android</code> should be installed in your <strong>Android</strong> project. You are apparently trying to install them in the shared Forms project</p> | Auth0 NuGet packages for Xamarin Forms 5.0 | xamarin|xamarin.forms|auth0 | 0 | 40 | 1 | 71,151,482 | 71,151,482 | 0 | true | 2022-02-17T01:24:56.410Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Auth0 NuGet packages for Xamarin Forms 5.0<p>I'm building a new Xamarin mobile app using Xamarin Forms 5.0 and tried to install <code>Auth0.OidcClient.iOS</c... |
71,148,573 | Google Cloud Functions Checking for changes in Firestore at the end of the day<p>Is there a possible way to check for changes in Firestore with google cloud functions at the end of the day?</p>
<p>From the documentation I only can take the classic Firestore triggers(Oncreate, onchange, ondelete, onwrite).</p>
<p>In my ... | <p>There is no built in functionality to either trigger Cloud Functions daily with all documents that were modified, or even in the Firestore API to get all documents that were modified in a certain time interval.</p>
<p>What you can do is:</p>
<ol>
<li><p>Add a <code>lastModified</code> field to each document that you... | Google Cloud Functions Checking for changes in Firestore at the end of the day | google-cloud-firestore|google-cloud-functions | 0 | 278 | 1 | 71,151,871 | 71,151,871 | 0 | true | 2022-02-16T20:03:31.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Google Cloud Functions Checking for changes in Firestore at the end of the day<p>Is there a possible way to check for changes in Firestore with google cloud ... |
71,151,833 | Div is not showing up in page when created with javascript<p>Hello my new div is not appearing in my html site when the function is ran. It creates the div but its not visible. Im new to js and any help will be appreciated. Excuse my bad programming skills.</p>
<pre><code>function newProject(projectName, projectLang, p... | <p>in the end you have to append this in the document to be useful</p>
<pre><code>document.body.appendChild("div");
</code></pre>
<p>in the line</p>
<pre><code>let newProjectBox = document.createElement('div');
</code></pre>
<p>you first have to call this to create a div before converting it into a variable.... | Div is not showing up in page when created with javascript | javascript|html|dom | 0 | 29 | 3 | 71,151,892 | 71,151,892 | 0 | true | 2022-02-17T02:41:14.423Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Div is not showing up in page when created with javascript<p>Hello my new div is not appearing in my html site when the function is ran. It creates the div b... |
71,150,874 | StartActivity in a Thread<p>Why does MainActivity not start after 1 sec?</p>
<pre><code>class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
supportActionBar?.hide()
setContentView(R.layout.activity_splash)
Thread {
T... | <p><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#run()" rel="nofollow noreferrer">Thread.run()</a>. You have to run the Thread.</p> | StartActivity in a Thread | android | 0 | 33 | 3 | 71,151,910 | 71,151,910 | 0 | true | 2022-02-17T00:06:56.460Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
StartActivity in a Thread<p>Why does MainActivity not start after 1 sec?</p>
<pre><code>class SplashActivity : AppCompatActivity() {
override fun onCreate(sa... |
71,148,476 | remoteMessage firebase expecting function invocation<p>I'm learning firebase cloud messaging. I've implemented it in app run notification, but it seems that doesn't work. The problem is that, when I use the firebase keyword called <code>remoteMessage</code>, it says that it needs to be an invocation. Here's the code:</... | <p>Your <code>RemoteMessage</code> parameter to <code>onMessageReceived</code> is called <code>p0</code>, so to get its title you'd do:</p>
<pre><code>p0.notification?.title
</code></pre>
<p>I recommend carefully reading and following the code in the Firebase documentation on <a href="https://firebase.google.com/docs/c... | remoteMessage firebase expecting function invocation | android|firebase|kotlin|firebase-cloud-messaging | 0 | 41 | 1 | 71,151,933 | 71,151,933 | 0 | true | 2022-02-16T19:55:15.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
remoteMessage firebase expecting function invocation<p>I'm learning firebase cloud messaging. I've implemented it in app run notification, but it seems that ... |
71,151,565 | How to start Kivy and start coding<p>I successfully installed Kivy under Ubuntu: pip install kivy[full] kivy-examples</p>
<p>Now, what command to use to start Kivy and get on with the coding?</p>
<p>There is no icon for Kivy under the startmenu Development folder.</p> | <p>Kivy is a library for python, it is not a development environment. You have to use your own IDE and then you can implement kivy into your python code.</p> | How to start Kivy and start coding | kivy | 0 | 37 | 1 | 71,152,220 | 71,152,220 | 0 | true | 2022-02-17T01:58:14.870Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to start Kivy and start coding<p>I successfully installed Kivy under Ubuntu: pip install kivy[full] kivy-examples</p>
<p>Now, what command to use to star... |
71,151,888 | Using JavaScript how do I get the padding/margin settings to always retrieve the CSS set % and not px size<p>For a div with css of {padding:10% 10px 20% 10px;} I need to be able to retrieve via JavaScript the padding as it is set but window.getComputedStyle(myelement).getPropertyValue('padding'); returns different resu... | <p>Hi friend maybe this example could help you.
In resume the function that i test get the topBottom and leftRight property style and use split to get each side and concatenate in the right way. I hope you can use it.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<... | Using JavaScript how do I get the padding/margin settings to always retrieve the CSS set % and not px size | javascript|jquery|css | 0 | 30 | 1 | 71,152,354 | 71,152,354 | 0 | true | 2022-02-17T02:50:14.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using JavaScript how do I get the padding/margin settings to always retrieve the CSS set % and not px size<p>For a div with css of {padding:10% 10px 20% 10px... |
71,153,063 | How do I center a letter on its background-color when using the letter-spacing property?<p>I'm trying to highlight every letter of a word in a different color by using the <code>background-color</code> property, but I want to separate the letters to give them a blocky look. The problem is that when I increase the <code... | <p>If they're already in separate elements, you could just use padding.</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>mark
{
color: white;
padding: 0 1em;
}</code></p... | How do I center a letter on its background-color when using the letter-spacing property? | html|css | 0 | 26 | 1 | 71,153,096 | 71,153,096 | 0 | true | 2022-02-17T05:48:19.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I center a letter on its background-color when using the letter-spacing property?<p>I'm trying to highlight every letter of a word in a different colo... |
71,127,914 | VueJS dynamic content<p>I'm still quite new to the world of Vue so I've been struggling a little with the task I have in hands.</p>
<p>Let me explain what should it be doing:<br>
So we have a JSON structure that comes from our API, and the idea is to create a dynamic "Content Component" that will fetch data f... | <p>I didn't quite understand your question, but I think you'll need:
Dynamic component
<a href="https://v2.vuejs.org/v2/guide/components-dynamic-async.html" rel="nofollow noreferrer">https://v2.vuejs.org/v2/guide/components-dynamic-async.html</a></p>
<p>Or simple call component with condition v-if with a computed</p> | VueJS dynamic content | vue.js|vuex|vue-router|vuejs3 | 0 | 297 | 1 | 71,154,614 | 71,154,614 | 0 | true | 2022-02-15T14:10:06.233Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
VueJS dynamic content<p>I'm still quite new to the world of Vue so I've been struggling a little with the task I have in hands.</p>
<p>Let me explain what sh... |
71,154,624 | Eclipse SWT: Switch field using TAB instead of adding space<p>Usually, when you press TAB in Eclipse SWT, you switch to the next field. But in certain text-fields it is adding spaces instead of switching the field. How to program this?</p> | <p>This normally happens for <code>StyledText</code> controls.</p>
<p>Add a Traverse listener to the control and enable traversal for tab:</p>
<pre><code>StyledText text = ....
text.addListener(SWT.Traverse, event -> {
if (event.detail == SWT.TRAVERSE_TAB_NEXT ||
event.detail == SWT.TRAVERSE_TAB_PREVI... | Eclipse SWT: Switch field using TAB instead of adding space | java|eclipse|swt|field | 0 | 42 | 1 | 71,154,826 | 71,154,826 | 0 | true | 2022-02-17T08:26:12.303Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Eclipse SWT: Switch field using TAB instead of adding space<p>Usually, when you press TAB in Eclipse SWT, you switch to the next field. But in certain text-f... |
71,146,081 | Complementing Application.Resources.Style with UserControl.Style for DataRow in DataGrid<p>I have a <em>global</em> style used in all the applications <code>DataGrid</code>'s, defined in the <code>Application.Resources</code>:</p>
<pre><code><Application.Resources>
<ResourceDictionary>
<Style... | <p>That is what the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.style.basedon?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(System.Windows.Style.BasedOn);k(VS.XamlEditor)%26rd%3Dtrue&view=windowsdesktop-6.0" rel="nofollow noreferrer"><code>BasedOn</code></a> property is for.</p>
<blockquot... | Complementing Application.Resources.Style with UserControl.Style for DataRow in DataGrid | c#|wpf|xaml|datagrid|styles | 0 | 17 | 1 | 71,154,974 | 71,154,974 | 0 | true | 2022-02-16T16:57:40.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Complementing Application.Resources.Style with UserControl.Style for DataRow in DataGrid<p>I have a <em>global</em> style used in all the applications <code>... |
71,113,624 | Issue with JSON serialization in specific configuration in angular application<p>some time ago I was using Angular 9 in my application and I decided to update it to version 12. After this I couldn't debug my application using Chrome debugger. It turned out that command "ng serve" was using "development&q... | <p>I found a root cause of this issue.
It is fault of array.map() and it looks like setup: optimization + buildOptimizer in pair cause improper behavior of map() method (maybe on account of parallelism). I replaced it with brute-force foreach approach:</p>
<pre><code>export class A
{
children: A[] = [];
param: stri... | Issue with JSON serialization in specific configuration in angular application | angular | 0 | 31 | 1 | 71,155,153 | 71,155,153 | 0 | true | 2022-02-14T14:40:17.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Issue with JSON serialization in specific configuration in angular application<p>some time ago I was using Angular 9 in my application and I decided to updat... |
71,152,083 | How to extract all the column name from the required table by Excel(or maybe python)<p>Now I have table1 as below:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>A</th>
<th>B</th>
<th>C</th>
</tr>
</thead>
<tbody>
<tr>
<td>First</td>
<td>Second</td>
<td>Second</td>
</tr>
<tr>
<td>Second</t... | <p>While I prefer GordonAitchJay's answer as it uses an existing library, most (if not all) spreadsheet editors can export sheets in .csv format (comma-separated values). From there you could read the first line containing the column names, and split on commas.</p>
<p>Off the top of my head it should look something lik... | How to extract all the column name from the required table by Excel(or maybe python) | python|python-3.x|excel | 0 | 33 | 2 | 71,155,199 | 71,155,199 | 0 | true | 2022-02-17T03:18:52.800Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to extract all the column name from the required table by Excel(or maybe python)<p>Now I have table1 as below:</p>
<div class="s-table-container">
<table... |
71,155,363 | Pandas compare column in same data frame and replace values based on comparison<p>I have a excel sheet that consist of over 6000 rows. There are two column , "IP Address CMDB" that contain IP addresses and another column called "IP Address LM".
I am trying to look for IP address that belongs to &quo... | <p>You can simply use the below code to check whether the <strong>IP Address LM</strong> contains what belongs to <strong>IP Address CMDB</strong>:</p>
<pre class="lang-py prettyprint-override"><code>checkColumn = []
for index, row in df.iterrows():
Ip = row["IP Address LM"]
toCheck = row["IP Address... | Pandas compare column in same data frame and replace values based on comparison | python|pandas | 0 | 258 | 2 | 71,155,581 | 71,155,581 | 0 | true | 2022-02-17T09:21:28.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Pandas compare column in same data frame and replace values based on comparison<p>I have a excel sheet that consist of over 6000 rows. There are two column ,... |
71,155,221 | Catiascript or VBA macro to save body in different format<p>I am new at using macros. I tried making a simple code where a macro would save my part in different formats. stp, igs and 3dxml.</p>
<pre><code>Sub CatMain()
pathInputBox = InputBox("Enter path")
Set objFSO = CreateObject("Scripting.FileSyste... | <p>ExportData exports only geometry that is visible.<br />
The simplest way would be to show only one body and hide all others.<br />
To do this, select the body and show or hide it using the <code>VisProperties</code> (<code>setShow</code>).</p> | Catiascript or VBA macro to save body in different format | vba|catia | 0 | 257 | 1 | 71,155,625 | 71,155,625 | 0 | true | 2022-02-17T09:10:50.967Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Catiascript or VBA macro to save body in different format<p>I am new at using macros. I tried making a simple code where a macro would save my part in differ... |
71,151,037 | force query to return duplicate values sql oracle<p>i have a simple query</p>
<pre><code>SELECT table1.no,table1.surname,table2.gender FROM table1 JOIN table2 on table1.no= table2.no WHERE table1.no in ('123','456','789','123')
</code></pre>
<p>so when this query runs and returns output it only shows 3 rows</p>
<pre><c... | <p>Pass in a collection rather than using an <code>IN</code> filter:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT t1.no,
t1.surname,
t2.gender
FROM table1 t1
INNER JOIN table2 t2
ON (t1.no = t2.no)
INNER JOIN TABLE(SYS.ODCINUMBERLIST(123,456,789,123)) l
ON (t1.... | force query to return duplicate values sql oracle | sql|oracle | 0 | 33 | 2 | 71,156,092 | 71,156,092 | 0 | true | 2022-02-17T00:33:42.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
force query to return duplicate values sql oracle<p>i have a simple query</p>
<pre><code>SELECT table1.no,table1.surname,table2.gender FROM table1 JOIN table... |
71,156,409 | How do I know if the component the user being navigated to has state navigate('/tsaks/updateTask', { state: {task: data})<p>I have a component that list all the tasks, and if the user click on that task he will be redirected to /tsaks/updateTask along with the data of that task.</p>
<pre><code>navigate('/tsaks/updateTa... | <p>A way to achieve the same thing would be to do a check for the data at updateTask component like this</p>
<pre><code>let location = useLocation();
const taskData = location.state?.task
if (!taskData)
return <Navigate replace to={'/tasks'} />
...
// rest of your code
</code></pre> | How do I know if the component the user being navigated to has state navigate('/tsaks/updateTask', { state: {task: data}) | reactjs|react-router | 0 | 14 | 1 | 71,156,678 | 71,156,678 | 0 | true | 2022-02-17T10:30:24.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I know if the component the user being navigated to has state navigate('/tsaks/updateTask', { state: {task: data})<p>I have a component that list all ... |
71,155,913 | How do I instantiate a Dinero object with an amount that I have as a number?<p>I am currently designing a test that uses Cypress to add up product prices in a confirmation email and compare them with the total price. I read that you use Dinero.js in Typescript. Is that right? Is there anything better? How do I instanti... | <p>I solved it myself:</p>
<pre><code>import { Dinero, dinero, add, equal } from 'dinero.js'
import { USD } from '@dinero.js/currencies'
const cents = (amount: any) => dinero({ amount, currency: USD })
const addMany = (addends: any) => addends.reduce(add)
const expectedTotal = cents(30074 * 100)
</code></pre>
<p... | How do I instantiate a Dinero object with an amount that I have as a number? | typescript|dinero.js | 0 | 16 | 1 | 71,157,055 | 71,157,055 | 0 | true | 2022-02-17T09:56:56.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I instantiate a Dinero object with an amount that I have as a number?<p>I am currently designing a test that uses Cypress to add up product prices in ... |
71,132,047 | How to adjust my basketball-FT(Free throw) simulation to find the necessary torque(s) on joints<p>I'm working on a simulation of a basketball throw which starts with a angular motion and passes into a projectile motion. <a href="https://i.stack.imgur.com/D3a5W.png" rel="nofollow noreferrer">Physics set-up of simulation... | <p>I would probably store the values of each simulation in a dictionary, that way you can write that to file and then just call on a specific release angle and torque to display, as opposed to trying to plot each one. But you just need to work out the logic for the nested loop here.</p>
<p>You could then loop through t... | How to adjust my basketball-FT(Free throw) simulation to find the necessary torque(s) on joints | physics|differential-equations|rigid-bodies|projectile|kinematics | 0 | 39 | 1 | 71,157,606 | 71,157,606 | 0 | true | 2022-02-15T19:09:10.637Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to adjust my basketball-FT(Free throw) simulation to find the necessary torque(s) on joints<p>I'm working on a simulation of a basketball throw which sta... |
71,156,425 | Flutter Dev, did you know how to fix this icon?<p>When you use vscode and call <strong>Icon(Icons."the icon")</strong> to your code, the icon always showed up in the code line number section right (I don't about Android Studio). The scale icon that I called doesn't appear on the side, then when I hover my cur... | <p>This problem is not related to Flutter or Dart in any way - that's the IDE issue you are using (it seems that you are using Visual Studio Code).</p>
<p>In fact, this is a known issue that is mentioned in the Flutter context <a href="https://github.com/Dart-Code/Dart-Code/issues/3470#issuecomment-879004511" rel="nofo... | Flutter Dev, did you know how to fix this icon? | flutter|dart|visual-studio-code | 0 | 279 | 1 | 71,157,607 | 71,157,607 | 0 | true | 2022-02-17T10:31:15.380Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter Dev, did you know how to fix this icon?<p>When you use vscode and call <strong>Icon(Icons."the icon")</strong> to your code, the icon alway... |
71,157,502 | Laravel : Anyone know how to foreach api from database?<p>im new to laravel</p>
<p>I Have this data on my database Tiktoks table :</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Id</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Example</td>
</tr>
</tbody>
</table>
</div>... | <p>Just remove <code>->toArray()</code> from your code</p> | Laravel : Anyone know how to foreach api from database? | laravel|database|laravel-8 | 0 | 44 | 1 | 71,157,946 | 71,157,946 | 0 | true | 2022-02-17T11:41:43.420Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Laravel : Anyone know how to foreach api from database?<p>im new to laravel</p>
<p>I Have this data on my database Tiktoks table :</p>
<div class="s-table-co... |
71,157,526 | Using Pandas Series of dates(strings) as x ticks on a plot<p>I have 3 csv's with stock data, all from 2012-01-1 to 2017-01-01. I have used Pandas to make Dataframes out of them, and am instructed to turn them into this example plot:
[Desired outcome][1]</p>
<p>My only issue is that Pandas isn't taking the 'Date' Series... | <p>Select the index of the dates you want to display (say, one tick every 200 value), and use plt.xticks. Try this:</p>
<pre><code>import numpy as np
ford['Open'].plot()
tesla['Open'].plot()
GM['Open'].plot()
plt.legend(['Ford','Tesla','GM'])
ticks = np.arange(0, len(ford['Date']), 200)
plt.xticks(ticks, ford['Date'][... | Using Pandas Series of dates(strings) as x ticks on a plot | python|pandas|matplotlib|data-visualization | 0 | 37 | 2 | 71,158,173 | 71,158,173 | 0 | true | 2022-02-17T11:43:27.350Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using Pandas Series of dates(strings) as x ticks on a plot<p>I have 3 csv's with stock data, all from 2012-01-1 to 2017-01-01. I have used Pandas to make Dat... |
71,149,945 | Identity Server 4 AuthorizationContext.PromptModes empty<p>I am using the <a href="https://www.npmjs.com/package/oidc-client" rel="nofollow noreferrer">oidc-client</a> library to authorize with our own <a href="https://identityserver4.readthedocs.io" rel="nofollow noreferrer">Identity Server 4</a>. It is working fine a... | <p>It looks like you check the value in an inappropriate place.
The answer for a <a href="https://github.com/IdentityServer/IdentityServer4/issues/5002" rel="nofollow noreferrer">similar question on Github</a> was:</p>
<blockquote>
<p>we have to remove the prompt parameter because we would otherwise run into an endless... | Identity Server 4 AuthorizationContext.PromptModes empty | identityserver4|openid-connect|oidc-client | 0 | 42 | 1 | 71,158,174 | 71,158,174 | 0 | true | 2022-02-16T22:14:12.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Identity Server 4 AuthorizationContext.PromptModes empty<p>I am using the <a href="https://www.npmjs.com/package/oidc-client" rel="nofollow noreferrer">oidc-... |
71,158,211 | Empty Dataframe after appening<p>I have the following code :</p>
<pre><code>df = df_final[['p1','p2']].copy()
dff = df_final[['p2','p3']].copy()
dfff = df_final[['p3','p1']].copy()
df_input_output = pd.DataFrame(columns = range(2))
df_input_output.columns = ['1','2']
df_input_output.append(df,ignore_index=True)
df_in... | <p>You need to capture the return value</p>
<pre><code>df_input_output = df_input_output.append(df,ignore_index=True)
df_input_output = df_input_output.append(dff,ignore_index=True)
df_input_output = df_input_output.append(dfff,ignore_index=True)
</code></pre> | Empty Dataframe after appening | python|pandas | 0 | 42 | 1 | 71,158,287 | 71,158,287 | 0 | true | 2022-02-17T12:33:27.303Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Empty Dataframe after appening<p>I have the following code :</p>
<pre><code>df = df_final[['p1','p2']].copy()
dff = df_final[['p2','p3']].copy()
dfff = df_fi... |
71,154,039 | Globalization in Razor view doesn't work asp.net core 3.1<p>I've read <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-3.1" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-3.1</a> and added everything needed.... | <p>I had <code>RootNamespace</code> element set in <code>.csproj</code>, by removing the element, I removed the issue.</p> | Globalization in Razor view doesn't work asp.net core 3.1 | asp.net-core-3.1 | 0 | 40 | 1 | 71,159,234 | 71,159,234 | 0 | true | 2022-02-17T07:31:46.590Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Globalization in Razor view doesn't work asp.net core 3.1<p>I've read <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=as... |
71,159,537 | python filter out NoneType in mixed list<p>Have this list from ldap search result, trying to parse to csv. But have to filter out None's first. But getting just the same content as search_res. Something I'm doing wrong?</p>
<p>search_res:</p>
<pre><code>[('CN=GON,OU=App,OU=Groups,DC=com', {'member': [b'CN=user1,OU=User... | <p>The entries of your list are tuples, and your are checking if the tuples are None. However, it looks like you want to check that the first element of your tuples are not None. So you have change your filter function as</p>
<pre class="lang-py prettyprint-override"><code>lame = lambda x: (x and x[0] is not None)
</co... | python filter out NoneType in mixed list | python|list|nonetype | 0 | 39 | 1 | 71,159,634 | 71,159,634 | 0 | true | 2022-02-17T14:00:00.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
python filter out NoneType in mixed list<p>Have this list from ldap search result, trying to parse to csv. But have to filter out None's first. But getting j... |
71,159,336 | How to structure a JMeter test plan properly for a sockets.io scenario - event "subscription"<h3>Scenario Outline</h3>
<p>Test sends a REST API request to activate a game.
Website receives a socket.io event and displays an alert on the browser.</p>
<h3>Question</h3>
<p>Since I don't know when the event will be sent, do... | <p>You can consider using <strong>WebSocket Text Frame Filter</strong></p>
<p><a href="https://i.stack.imgur.com/pRiQI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pRiQI.png" alt="enter image description here" /></a></p>
<p>If you add the filter configured like above it will remove all the frames ... | How to structure a JMeter test plan properly for a sockets.io scenario - event "subscription" | sockets|websocket|jmeter|jmeter-plugins | 0 | 36 | 1 | 71,159,917 | 71,159,917 | 0 | true | 2022-02-17T13:46:50.920Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to structure a JMeter test plan properly for a sockets.io scenario - event "subscription"<h3>Scenario Outline</h3>
<p>Test sends a REST API request to ac... |
71,159,622 | Trouble with Description naming GITHUB<p>Hi i new to Git bash and currently i had some difficulties it seem i can't change the description of the File on the git hub i think on the git bash i click on
<code>git commit -m 'initial commit'</code> and now the description say's Initial commit as the description here i uplo... | <p>The string you write inside the <code>""</code> after the message argument <code>-m</code> is the description which will appear in the place.</p>
<p>You may change it to the desired string of your choice.<br />
Eg : <code>git commit -m "<Your description>"</code></p>
<p>Reference : <a href=... | Trouble with Description naming GITHUB | github|git-bash | 0 | 32 | 1 | 71,160,115 | 71,160,115 | 0 | true | 2022-02-17T14:05:10.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trouble with Description naming GITHUB<p>Hi i new to Git bash and currently i had some difficulties it seem i can't change the description of the File on the... |
71,160,102 | Selenium python cant find element<pre><code>from selenium import webdriver
browser = webdriver.Chrome()
browser.get('https://instagram.com')
browser.maximize_window()
browser.find_element_by_xpath("//body/div[@id='react-root']/section[1]/main[1]/article[1]/div[2]/div[1]/div[1]/form[1]/div[1]/div[1]/div[1]/label[1... | <p>you should use wait</p>
<pre><code>from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
wait = WebDriverWait(browser, 10)
wait.until(EC.visibility_of_element_located((By.XPATH, '.your xpath')))
</code></p... | Selenium python cant find element | python|selenium | 0 | 35 | 1 | 71,160,219 | 71,160,219 | 0 | true | 2022-02-17T14:34:36.757Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Selenium python cant find element<pre><code>from selenium import webdriver
browser = webdriver.Chrome()
browser.get('https://instagram.com')
browser.maximize... |
71,159,534 | Domain changes when copying<p>I have set up a webserver and connected a dns with the domain shown bellow to it. The Problem is that when I copy and paste the domain it changes to a weird string, as shown bellow.</p>
<p>The original domain i used is "https://negertöter.de" and it changes to "https://xn--n... | <p>What you see is ok and works as designed. What you see is not a "weird" string, it is the ASCII representation of Internationalized Domain Names aka IDNs which are domain names using characters outside of the ASCII range.</p>
<p>You can search for IDNA specification to understand more about that.</p>
<p>Br... | Domain changes when copying | dns|subdomain | 0 | 13 | 1 | 71,160,582 | 71,160,582 | 0 | true | 2022-02-17T13:59:52.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Domain changes when copying<p>I have set up a webserver and connected a dns with the domain shown bellow to it. The Problem is that when I copy and paste the... |
71,148,756 | Why can't I call custom component's methods in chrome?<p>so I developed and tested the whole project using Firefox and everything was just fine but when I tried to run it in Chrome, the browser kept saying that my custom components methods don't exist. Why is that? From what I know, Chrome supports Web Components.</p>
... | <p>I found the issue. I've changed the class my components were deriving from (from HTMLDivElement to HTMLElement) and removed the <code>{ extends: 'div' }</code> option from their definition and everything started to work!</p> | Why can't I call custom component's methods in chrome? | javascript|html|google-chrome | 0 | 33 | 1 | 71,161,260 | 71,161,260 | 0 | true | 2022-02-16T20:18:32.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why can't I call custom component's methods in chrome?<p>so I developed and tested the whole project using Firefox and everything was just fine but when I tr... |
71,120,306 | How to open the track panel in GameMaker<p>I am new to Game Maker. I opened a sequence and accidentally closed the track panel. I don't know how to open it, and I need the track panel for my game.</p> | <p><a href="https://i.stack.imgur.com/m63wO.png" rel="nofollow noreferrer">Press arrows to open Track Panel and Timeline in Sequence Editor</a></p>
<p><a href="https://i.stack.imgur.com/Ip4UM.png" rel="nofollow noreferrer">Or press Reset Layout in Layouts</a></p> | How to open the track panel in GameMaker | drag-and-drop|game-maker|game-maker-studio-2 | 0 | 38 | 1 | 71,161,265 | 71,161,265 | 0 | true | 2022-02-15T01:57:53.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to open the track panel in GameMaker<p>I am new to Game Maker. I opened a sequence and accidentally closed the track panel. I don't know how to open it, ... |
71,161,199 | How to escape the "at" (@) symbol when setting a property to a constant string?<p>Look at this code:</p>
<pre><code><MyComponent Param1="@SomeValue" />
</code></pre>
<p>In MyComponent, Param1 will be set to the value of SomeValue variable.
How can i set Param1 to "@SomeValue" String?</p> | <p>You can wrap it inside <code>@(" ")</code>:</p>
<pre class="lang-csharp prettyprint-override"><code><MyComponent Param1="@("@SomeValue")" />
</code></pre>
<p>...or, in case you ever rename <code>SomeValue</code>, play it safe:</p>
<pre class="lang-csharp prettyprint-override"><cod... | How to escape the "at" (@) symbol when setting a property to a constant string? | blazor|blazor-server-side | 0 | 39 | 2 | 71,161,515 | 71,161,515 | 0 | true | 2022-02-17T15:46:10.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to escape the "at" (@) symbol when setting a property to a constant string?<p>Look at this code:</p>
<pre><code><MyComponent Param1="@SomeValue&q... |
71,157,183 | How to zoom in and zoom out on canvas using button in konvajs react<p>I want to make my canvas zoom in and zoom out through button onclick function
i have implemented through onwheel but unable to do it through button please help
<a href="https://codesandbox.io/s/react-canvas-n779q2?file=/src/App.js" rel="nofollow nore... | <pre class="lang-js prettyprint-override"><code>function App() {
const stageRef = useRef(null);
const width = 500;
const height = 500;
const [stage, setStage] = useState({
scale: 1,
x: 0,
y: 0
});
const scaleRelativeToPoint = (point, increaseScale) => {
const scaleBy = 1.02;
const s... | How to zoom in and zoom out on canvas using button in konvajs react | reactjs|konvajs|react-konva|konva | 0 | 1,570 | 1 | 71,161,864 | 71,161,864 | 0 | true | 2022-02-17T11:20:22.210Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to zoom in and zoom out on canvas using button in konvajs react<p>I want to make my canvas zoom in and zoom out through button onclick function
i have im... |
71,159,236 | Load ViewModel before running codebehind<p>I'm trying to dynamically create tabs for a iOS app.</p>
<p>I've passed through a variable, with shell navigation, that loads items from a database for which we create a tab for each object.</p>
<p>The problem I have is that the codebehind runs before the shell navigation has ... | <p>I ended up using Messaging Center:</p>
<p>CodeBehind</p>
<pre><code>public TabbedPage()
{
InitializeComponent();
BindingContext = _viewModel = new TabbedPageViewModel();
MessagingCenter.Subscribe<TabbedPageViewModel>(this, "NumberChanged", (se... | Load ViewModel before running codebehind | c#|xamarin|mvvm | 0 | 40 | 2 | 71,161,966 | 71,161,966 | 0 | true | 2022-02-17T13:41:03.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Load ViewModel before running codebehind<p>I'm trying to dynamically create tabs for a iOS app.</p>
<p>I've passed through a variable, with shell navigation,... |
71,124,536 | Can't add reg expression for a #define in ctags<p>I can't figure out how to make ctags detect the __mrs_s definition. It doesn't add the search pattern so I can't find it in vi.</p>
<pre><code>$cat /tmp/qq.h
int test(int i)
{
printf("Hello!");
return 0;
}
#define __mrs_s(v, r) \
DEF... | <p>Use <code>--excmd=pattern</code> option like:</p>
<pre><code>[root@localhost ~]# cat /tmp/qq.h
int test(int i)
{
printf("Hello!");
return 0;
}
#define __mrs_s(v, r) \
DEFINE_MRS_S \
" mrs_s " v ", " __stringify(r) "\n" ... | Can't add reg expression for a #define in ctags | ctags | 0 | 18 | 1 | 71,162,374 | 71,162,374 | 0 | true | 2022-02-15T10:05:59.100Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't add reg expression for a #define in ctags<p>I can't figure out how to make ctags detect the __mrs_s definition. It doesn't add the search pattern so I ... |
71,161,674 | 32bit Outlook script in Office 2021 64bit<p>I have this script that I used for years which stores emails from outlook in a folder on the hard disk for archiving. It always worked great, but no I changed to Office '21 64bit and I get an error message compiling. I have seen similar questions but I'm a total noob, so the ... | <p>To write code that can work in both new and older versions of Office, you can use a combination of the new VBA7 and Win64 conditional Compiler constants. The Vba7 conditional compiler constant is used to determine if code is running in version 7 of the VB editor (the VBA version that ships in Office 2010). The Win64... | 32bit Outlook script in Office 2021 64bit | outlook|64-bit|32-bit|declare | 0 | 44 | 1 | 71,162,573 | 71,162,573 | 0 | true | 2022-02-17T16:15:10.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
32bit Outlook script in Office 2021 64bit<p>I have this script that I used for years which stores emails from outlook in a folder on the hard disk for archiv... |
71,162,412 | Oracle SQL Filter common registries (1:1) between two tables<p>I need some help to approach a proper counting between 2 tables.</p>
<p>There are 2 tables with duplicated fields on each table. I need to filter same registries between these 2 tables but it must be counted only once per ID on both tables.</p>
<pre><code>T... | <p>Looks like you want a position matching</p>
<pre><code>select A.*, B.*
from (
select tbl1.*, row_number() over(partition by msisdn, data order by id) pos
from tbl1) A
inner join (
select tbl2.*, row_number() over(partition by line, bytes order by id) pos
from tbl2) B
on A.msisdn = B.line and A.data = B.byte... | Oracle SQL Filter common registries (1:1) between two tables | sql|oracle | 0 | 16 | 1 | 71,162,584 | 71,162,584 | 0 | true | 2022-02-17T17:03:56.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Oracle SQL Filter common registries (1:1) between two tables<p>I need some help to approach a proper counting between 2 tables.</p>
<p>There are 2 tables wit... |
71,131,486 | Labelling big serialized data in R (fst & Hmisc)<p>I have a question about how to save labeled data when using the <code>fst</code> package.
I've been using the <code>Hmisc</code> package to label data, such as:</p>
<pre><code>library(fst)
library(Hmisc)
# make an example dataset
df <- data.frame(id = letters[1:4],... | <p>For anyone who has a similar issue in the future, it appears this is a <a href="https://github.com/fstpackage/fst/issues/256" rel="nofollow noreferrer">known bug</a> of <code>fst</code>. One helpful commentator on that thread suggests <code>qs</code> as a similar package that retains labels, although I'm remiss to l... | Labelling big serialized data in R (fst & Hmisc) | r|serialization|label|bigdata|hmisc | 0 | 44 | 1 | 71,162,613 | 71,162,613 | 0 | true | 2022-02-15T18:19:56.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Labelling big serialized data in R (fst & Hmisc)<p>I have a question about how to save labeled data when using the <code>fst</code> package.
I've been using ... |
71,161,192 | position multiple html elements at the bottom without overlap<p>this may be a silly question, but I can't figure it out.</p>
<p>I have an HTML column that has multiple buttons in it. Some of these buttons I want to stack up top and others, I'd like to stack on the bottom. Is there a simple way to do this with CSS only?... | <p>You can split the buttons into two sections (as seen below into top buttons & bottom-buttons div), place them inside the left-column class and set display: flex; to the left-column class, since you want them to go from top to bottom I set a flex direction: column; now the magic in setting the top and bottom posi... | position multiple html elements at the bottom without overlap | html|css|position | 0 | 38 | 1 | 71,162,693 | 71,162,693 | 0 | true | 2022-02-17T15:45:49.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
position multiple html elements at the bottom without overlap<p>this may be a silly question, but I can't figure it out.</p>
<p>I have an HTML column that ha... |
71,162,650 | How can I check if there is a value in a MongoDB object<p>I have my users in MongoDB that I identify with "nir" and "sN" my goal is to locate the user with nir 33 and sN 1234, once the user is located, see if "sR" has a "local" or "mobile" value, depending on whether it... | <p>You can simply do a find, and use the projection to wrangle the 2 flags.</p>
<pre class="lang-js prettyprint-override"><code>db.collection.find({
// input your query here
nir: 33,
sN: 1234
},
{
isLocal: {
"$cond": {
"if": {
$ne: [
{
"$indexOfCP... | How can I check if there is a value in a MongoDB object | javascript|mongodb | 0 | 24 | 1 | 71,162,940 | 71,162,940 | 0 | true | 2022-02-17T17:20:11.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I check if there is a value in a MongoDB object<p>I have my users in MongoDB that I identify with "nir" and "sN" my goal is to lo... |
71,145,894 | Is there a way of styling images using styled components in ReactJS?<p>I have just started working with Styled Components and I 've been running into problems with styling images and I don't mean background images.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
<div ... | <p>I've finally figured it out
After your div's CSS, you just type in the ampersand character (&) and then the image you are trying to style like the way it's shown below</p>
<p>NOTE: The image has to be inside the specific div before you can access it though</p>
<p>That was how I was able to style the image using ... | Is there a way of styling images using styled components in ReactJS? | javascript|css|reactjs | 0 | 22 | 1 | 71,163,244 | 71,163,244 | 0 | true | 2022-02-16T16:47:14.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way of styling images using styled components in ReactJS?<p>I have just started working with Styled Components and I 've been running into problem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.