question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,027,162 | the potential inadvisability of moving JS files to site-packages/notebook/static<p>I have a setup.py configuration that works, but it feels extremely hackish.
It is for a widget (via <code>ipywidgets.DOMWidget</code> inheritance) whose JS code is multipartite and broken in all CDNs —so I cannot simply <code>require(['w... | <p>The official-ish solution appears to be <a href="https://github.com/jupyter/jupyter-packaging" rel="nofollow noreferrer">https://github.com/jupyter/jupyter-packaging</a>
This is used for example in <a href="https://github.com/jupyter-widgets/widget-cookiecutter" rel="nofollow noreferrer">https://github.com/jupyter-w... | the potential inadvisability of moving JS files to site-packages/notebook/static | python-3.x|jupyter-notebook|widget|pypi | 0 | 17 | 1 | 72,029,755 | 72,029,755 | 0 | true | 2022-04-27T10:25:22.997Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
the potential inadvisability of moving JS files to site-packages/notebook/static<p>I have a setup.py configuration that works, but it feels extremely hackish... |
72,029,409 | Why the watermark would not be processed while lastOutputStreamStatus.isActive() and channelStatuses[channelIndex].streamStatus.isActive()?<p>The <code>if</code> condition of this <code>inputWatermark</code> method confused me.</p>
<p>Why the input watermark would be ignored?</p>
<p>Can the watermark of that inputChann... | <p>We don't want watermarks from idle channels to hold back the overall watermark; watermarks from idle channels should be ignored.</p> | Why the watermark would not be processed while lastOutputStreamStatus.isActive() and channelStatuses[channelIndex].streamStatus.isActive()? | java|apache-flink | 0 | 13 | 1 | 72,029,817 | 72,029,817 | 0 | true | 2022-04-27T13:12:59.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why the watermark would not be processed while lastOutputStreamStatus.isActive() and channelStatuses[channelIndex].streamStatus.isActive()?<p>The <code>if</c... |
72,029,725 | State name spellcheck code not working with two word state names<p>I am working on vetting someone else's state spellchecker. The test data they ran seemed to work fine, but trying a different data set, it doesn't seem to be able to get past the first word "North" in a state name.</p>
<p>I need the code to be... | <p>In your <code>else</code> statement, you have a logic error</p>
<pre class="lang-py prettyprint-override"><code> else:
misspelledState = False in (stateWord in spell for stateWord in stateWordList)
if misspelledState == True:
pass
else:
correctState = input("'{}' is not a valid state, p... | State name spellcheck code not working with two word state names | python-3.x|pandas|spelling | 0 | 21 | 1 | 72,030,000 | 72,030,000 | 0 | true | 2022-04-27T13:33:17.840Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
State name spellcheck code not working with two word state names<p>I am working on vetting someone else's state spellchecker. The test data they ran seemed t... |
72,024,389 | error PYRO0260 : Product 'xxxxx': Table 'CreateFolder'<p>We are introducing a new component in a WiX patch and encountered the below error-</p>
<p>error PYRO0260 : Product 'xxxxx': Table 'CreateFolder' has a new row 'SampleDir/SampleServiceComp' added. This makes the patch not uninstallable.
pyro.exe : error PYRO0261 :... | <p>The errors are telling you that you can't add a <code>CreateFolder</code> row in a patch and have it still be uninstallable. That's covered in the <a href="https://docs.microsoft.com/en-us/windows/win32/msi/uninstallable-patches#patches-that-are-not-uninstallable" rel="nofollow noreferrer">SDK documentation</a>. You... | error PYRO0260 : Product 'xxxxx': Table 'CreateFolder' | wix | 0 | 27 | 1 | 72,030,274 | 72,030,274 | 0 | true | 2022-04-27T06:45:33.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
error PYRO0260 : Product 'xxxxx': Table 'CreateFolder'<p>We are introducing a new component in a WiX patch and encountered the below error-</p>
<p>error PYRO... |
72,030,536 | when Component is re-rendered, is the function object deleted completely and re-created?<p>As I know, when component is re-rendered, codes inside component is deleted and re-created
( except when you use useCallback or useMemo ..etc)
but in the following codes, I guess the function object is not deleted but keep it's s... | <p>If you write code in your component which <em>creates</em> a function, then that creation will happen on every render. However, <code>usePromise</code> is not being created, it's just being called. The function was created some time ago, when the /lib/usePromise.js file was loaded.</p>
<p><code>usePromise</code> is ... | when Component is re-rendered, is the function object deleted completely and re-created? | reactjs | 0 | 18 | 1 | 72,030,860 | 72,030,860 | 0 | true | 2022-04-27T14:26:56.417Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
when Component is re-rendered, is the function object deleted completely and re-created?<p>As I know, when component is re-rendered, codes inside component i... |
72,028,266 | Labels in tiles for this module not reading in correct sequence on down key arrow press<p>The below code contains multiple div so jaws read div by div correctly, but I want to make jaws to focus and read in different way.</p>
<pre><code> <div class="row paddingBottom2Pcnt">
<div class=&q... | <p>The down arrow key with screen readers (JAWS and NVDA) will essentially walk the DOM (*) (document object model) so whatever order your HTML code is in will be the order that JAWS reads it.</p>
<p>So one way to get the order you want is to change the order of your code so that DOB is first, then the date, then the S... | Labels in tiles for this module not reading in correct sequence on down key arrow press | html|jaws-screen-reader | 0 | 25 | 1 | 72,031,431 | 72,031,431 | 0 | true | 2022-04-27T11:55:01.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Labels in tiles for this module not reading in correct sequence on down key arrow press<p>The below code contains multiple div so jaws read div by div correc... |
72,031,356 | Python Pandas Reordering columns side by side for count<p>I have a DataFrame called by_country. In this DF, I have multiple columns, first half is the total number of answers by age, the other half is the number of answers 'yes' by age.
I am going to reorder the total and 'yes' answer side by side for every different a... | <p>Seems like you can just sort the columns using <code>sorted</code> and a key that takes the last <code>_</code>-separated item:</p>
<pre><code>by_country.columns = sorted(by_country.columns, key=lambda x: x.split('_')[-1])
</code></pre> | Python Pandas Reordering columns side by side for count | python|pandas|dataframe|multiple-columns | 0 | 29 | 1 | 72,031,436 | 72,031,436 | 0 | true | 2022-04-27T15:22:28.957Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python Pandas Reordering columns side by side for count<p>I have a DataFrame called by_country. In this DF, I have multiple columns, first half is the total ... |
72,031,899 | Why is my result array with a hydrated associated entity shaped differently using query builder vs createQuery?<p>Doctrine's <a href="https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html#joins" rel="nofollow noreferrer">documentation</a> describes two ways to selec... | <p>I think I found my answer in the related questions section: <a href="https://stackoverflow.com/questions/31960865/symfony2-query-builder-joins-to-get-objects-as-a-single-array?rq=1">Symfony2 query builder joins to get objects as a single array</a></p>
<p>Instead of joining with the fully qualified names of the entit... | Why is my result array with a hydrated associated entity shaped differently using query builder vs createQuery? | php|orm|doctrine-orm | 0 | 26 | 1 | 72,032,111 | 72,032,111 | 0 | true | 2022-04-27T15:58:54.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is my result array with a hydrated associated entity shaped differently using query builder vs createQuery?<p>Doctrine's <a href="https://www.doctrine-pr... |
72,026,564 | CAS 6.5.x - Add custom fields in login page<p>I need to add a custom field in login page and I use CAS 6.5.x.</p>
<p>I saw the official documentation of Apereo CAS on user interface customization (<a href="https://apereo.github.io/cas/6.5.x/ux/User-Interface-Customization-Views.html#custom-fields" rel="nofollow norefer... | <p>You can add these properties in <code>etc/cas/config/cas.properties</code>. You can find this file in your CAS overlay project: <a href="https://github.com/apereo/cas-overlay-template/blob/master/etc/cas/config/cas.properties" rel="nofollow noreferrer">https://github.com/apereo/cas-overlay-template/blob/master/etc/c... | CAS 6.5.x - Add custom fields in login page | cas | 0 | 275 | 1 | 72,032,510 | 72,032,510 | 0 | true | 2022-04-27T09:40:23.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CAS 6.5.x - Add custom fields in login page<p>I need to add a custom field in login page and I use CAS 6.5.x.</p>
<p>I saw the official documentation of Aper... |
72,032,181 | Embedded Ignite with spring never calls custom SegmentationResolver<p>I try to manage network segmentation in a Ignite cluster that is embedded in a tomcat webapp. I create a custom segmentationResolver that ping database server.</p>
<p>So I configure Ignite with spring context</p>
<pre><code><beans:bean id="se... | <p>Segmentation resolvers are called by a <code>GridSegmentationProcessor</code>. The default processor is <code>org.apache.ignite.internal.processors.segmentation.os.GridOsSegmentationProcessor</code> which is noop in fact. <strong>GridGain Enterprise Edition</strong> (it's a vendor-supported delivery of Apache Ignite... | Embedded Ignite with spring never calls custom SegmentationResolver | spring|tomcat|ignite | 0 | 28 | 1 | 72,032,703 | 72,032,703 | 0 | true | 2022-04-27T16:18:33.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Embedded Ignite with spring never calls custom SegmentationResolver<p>I try to manage network segmentation in a Ignite cluster that is embedded in a tomcat w... |
72,029,749 | iOS buttons in overlays fire additional clicks on elements below the overlay<p>I am facing a strange problem on iOS devices.</p>
<p>When clicking on buttons/links in an overlaying container, the element below fires also a click event. I have a "filter" button that opens an overlaying div with all the filter o... | <p>I could solve it with fastclick.js
<a href="https://github.com/ftlabs/fastclick" rel="nofollow noreferrer">https://github.com/ftlabs/fastclick</a></p>
<p>Not what is designed for, but fortunately it solved the click issue on iOS.</p> | iOS buttons in overlays fire additional clicks on elements below the overlay | javascript|css|ios | 0 | 20 | 1 | 72,033,020 | 72,033,020 | 0 | true | 2022-04-27T13:34:26.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
iOS buttons in overlays fire additional clicks on elements below the overlay<p>I am facing a strange problem on iOS devices.</p>
<p>When clicking on buttons/... |
72,032,646 | Grouping a Pandas DataFrame by Months for Distributor Names<p>I have a dataframe that looks like this:
[1]: <a href="https://i.stack.imgur.com/KnHba.png" rel="nofollow noreferrer">https://i.stack.imgur.com/KnHba.png</a></p>
<p>Essentially, there is a distributor name column, a sales column, and a MM/DD/YYYY Date column... | <p>The correct way to group by multiple columns is to put them in a list as a first argument:</p>
<pre class="lang-py prettyprint-override"><code>result = df.groupby(['Distributor Name', df.date.dt.month])['Sales'].sum()
</code></pre>
<p>This creates a multiindex pandas series, with <code>Distributor Name</code> and <c... | Grouping a Pandas DataFrame by Months for Distributor Names | python|dataframe|pandas-groupby | 0 | 24 | 1 | 72,033,030 | 72,033,030 | 0 | true | 2022-04-27T16:57:14.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Grouping a Pandas DataFrame by Months for Distributor Names<p>I have a dataframe that looks like this:
[1]: <a href="https://i.stack.imgur.com/KnHba.png" rel... |
72,009,617 | Socket.emit doesn't trigger for all clients<p>I am new to react with socket.io, and I am stuck on the retrieving data permanently on frontend. What I'm trying to do is to create a little game and first step is to have a lobby page where multiple users can join.</p>
<hr />
<p>Here is the part where I have problems becau... | <p>Ok, I figured it out, the problem was not on the client side but on server side.. So I edited the title from</p>
<p><em>Socket.io doesn't trigger event for previous tabs - React</em></p>
<p><strong>to</strong></p>
<p><em>Socket.emit doesn't trigger for all clients</em>.</p>
<hr />
<p>I was trying to emit the event o... | Socket.emit doesn't trigger for all clients | node.js|reactjs|socket.io | 0 | 30 | 1 | 72,033,172 | 72,033,172 | 0 | true | 2022-04-26T07:01:18.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Socket.emit doesn't trigger for all clients<p>I am new to react with socket.io, and I am stuck on the retrieving data permanently on frontend. What I'm tryin... |
72,002,790 | Alternative for Deprecated NSKeyedUnarchiver.UnarchiveTopLevelObject in Xamarin IOS<p>I'm creating a .Net MAUI app, and since I need to render higher number of points to the UI, I'm going platform native to render.</p>
<p>I'm new to IOS, and for performance efficient renderings I have referred the sample given in this ... | <p>Finally I have solved myself. Instead using deprecated UnarchiveTopLevelObject we can use GetUnArchiveObject and additional parameter need to be given which represents type of object to get. Here I'm getting from CAShapeLyer, you can give as object.Class(here it is drawingLayer.Class). The following code solves my p... | Alternative for Deprecated NSKeyedUnarchiver.UnarchiveTopLevelObject in Xamarin IOS | xamarin.ios|.net-maui | 0 | 17 | 1 | 72,033,489 | 72,033,489 | 0 | true | 2022-04-25T16:28:29.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Alternative for Deprecated NSKeyedUnarchiver.UnarchiveTopLevelObject in Xamarin IOS<p>I'm creating a .Net MAUI app, and since I need to render higher number ... |
72,029,442 | EMV Tag 91 - why the last 2 bytes are "0010"?<p>EMV Tag 91<br />
in the following example, why the last 2 bytes are "0010"?
example: TLV [910ABCF266A64FF136630010]
I need most help
Thanks!!!</p> | <p>The first 8 bytes are mandatory and contain the cryptogram.</p>
<p>The optional 1–8 bytes that follow are proprietary. Therefore, you need to know what payment application (and version) you are using: e.g., Mastercard M/Chip, American Express AEIPS, etc.</p>
<p>See 6.5.4 External Authenticate in EMV 4.3 Book 3</p> | EMV Tag 91 - why the last 2 bytes are "0010"? | tags|emv|mastercard | 0 | 273 | 2 | 72,034,281 | 72,034,281 | 0 | true | 2022-04-27T13:14:46.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
EMV Tag 91 - why the last 2 bytes are "0010"?<p>EMV Tag 91<br />
in the following example, why the last 2 bytes are "0010"?
example: TLV [910ABCF26... |
72,011,759 | Laravel implement assertSentFrom specific address Mailable Testing<p>Trying to get to grips with Mocking and test cases, I want to test that a Mailable <code>TestMail</code> is sent <em>from</em> company@company.com, the documentation provides <code>hasTo</code>, <code>hasCc</code>, and <code>hasBcc</code> but doesn't ... | <p>MailFake doesn't provide <code>hasFrom</code> method in the class and therefore will return false.</p>
<p>The workaround below however doesn't work when using the environmental variable MAIL_FROM_ADDRESS, <code>->from()</code> has to be called within <code>build()</code>.</p>
<p>A couple of GitHub issues have bee... | Laravel implement assertSentFrom specific address Mailable Testing | laravel|email|testing|phpunit|phpmailer | 0 | 34 | 1 | 72,012,500 | 72,012,500 | 0 | true | 2022-04-26T09:43:55.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Laravel implement assertSentFrom specific address Mailable Testing<p>Trying to get to grips with Mocking and test cases, I want to test that a Mailable <code... |
71,839,799 | Add space above x-caption on D3js multiline chart<p>I am trying to add space between xCaption and x-axis labels on D3js multiline chart but not able to. Also, how can I get rid of the last x-label (the one after 5).
<a href="https://i.stack.imgur.com/a79nC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | <p>You can slide down your x caption by changing y:</p>
<pre><code>const XCaption = svg.append('g')
.attr('class', 'x axis')
.attr('transform', `translate(0, ${height - margin})`)
.call(xAxis)
.append('text')
.text('Sprints')
.attr('x', (width/2) - 24)
.attr('y', ... | Add space above x-caption on D3js multiline chart | d3.js|charts|multiline|x-axis | 0 | 22 | 1 | 71,846,667 | 71,846,667 | 0 | true | 2022-04-12T08:57:44.950Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Add space above x-caption on D3js multiline chart<p>I am trying to add space between xCaption and x-axis labels on D3js multiline chart but not able to. Also... |
71,905,392 | Using async value in another function (Dart)<p>Here's the simplifed code to show what I'm trying to achieve:</p>
<pre><code>class MyClass {
MyClass() {
authorize();
}
String? token;
void authorize() async {
final response =
await Future<String>.delayed(Duration(seconds: 1), (() => &qu... | <p>Your <code>MyClass</code> implementation does not provide any <code>Future</code>s to its consumers, and consumers therefore will not be able to be notified when asynchronous operations in <code>MyClass</code> complete. There are two specific problems:</p>
<ol>
<li><p>You've made the <code>authorize</code> method <... | Using async value in another function (Dart) | dart | 0 | 26 | 1 | 71,905,568 | 71,905,568 | 0 | true | 2022-04-17T20:53:51.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using async value in another function (Dart)<p>Here's the simplifed code to show what I'm trying to achieve:</p>
<pre><code>class MyClass {
MyClass() {
... |
71,437,897 | mongodb , how to push data to array in object?<pre><code>{
name: "jeet",
address: "Highway 71",
data: {
connnection: 2,
frds: [
// push here.
{
id: 8349,
name: "manoj"
},
{
id: 3232,
name: "magan"
}
]... | <p>Query1</p>
<ul>
<li>push at position 0 (start of the array)</li>
</ul>
<p><a href="https://cmql.org/playmongo/?q=622b56109096ce67bc696763" rel="nofollow noreferrer">Playmongo</a></p>
<pre class="lang-js prettyprint-override"><code>update(
{"name": {"$eq": "jeet"}},
{"$push":
... | mongodb , how to push data to array in object? | node.js|arrays|mongodb|object | 0 | 39 | 2 | 71,438,852 | 71,438,852 | 0 | true | 2022-03-11T11:33:49.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
mongodb , how to push data to array in object?<pre><code>{
name: "jeet",
address: "Highway 71",
data: {
connnection: 2,
frd... |
71,922,668 | Can I Add Discount Code To Metafield And Include In Add To Cart Button to auto apply to checkout page?<p>I have created a new product metafield: product.metafields.my_fields.discount_code</p>
<p>In my product-template.liquid, there is this section:</p>
<pre><code><button class="btn cv_addtocart{% if section.set... | <p>So I have figured out a more reliable route:</p>
<p>I located my cart template liquid file and searched for a form</p>
<pre><code><form action="/cart" method="post" >
</code></pre>
<p>Directly below this line I inserted this</p>
<pre><code>{%- for item in cart.items -%}
{%- if item.pro... | Can I Add Discount Code To Metafield And Include In Add To Cart Button to auto apply to checkout page? | shopify|liquid | 0 | 271 | 1 | 71,924,848 | 71,924,848 | 0 | true | 2022-04-19T09:30:37.060Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can I Add Discount Code To Metafield And Include In Add To Cart Button to auto apply to checkout page?<p>I have created a new product metafield: product.meta... |
71,941,490 | Unable to position expanding lists relative to their parent on a horizontal navigation bar<p>I'm attempting to create an expanding list that drops relative to the parent's position.</p>
<p>I currently have the position to absolute which lines the lists up incorrectly.</p>
<p>When I switch it to relative positioning, I ... | <p>Make your <code>dropdown-two</code> relative and remove the relative from your <code>dropdown-two ul</code> and give it top 100%:</p>
<p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false">
<div class="snippet-code snippet-currently-hidden">
<pre class="snippet-code-css lang-... | Unable to position expanding lists relative to their parent on a horizontal navigation bar | html|css | 0 | 18 | 1 | 71,941,716 | 71,941,716 | 0 | true | 2022-04-20T14:31:33.687Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to position expanding lists relative to their parent on a horizontal navigation bar<p>I'm attempting to create an expanding list that drops relative t... |
71,941,988 | Material UI Color Overwrite in React Slider<p>How to overwrite primary, secondary , info, type default color through scss ? Please help</p>
<pre><code>$primary: rgb(11, 136, 245);
$secondary: rgb(83, 83, 83);
:export {
primary: $primary;
secondary: $secondary;
}
</code></pre>
<p><a href="https://codesandbox.io/s/c... | <p>You can wrap your sliders in a <code>ThemeProvider</code>:</p>
<pre><code>import { ThemeProvider, createTheme } from "@mui/material/styles";
const theme = createTheme({
palette: {
primary: {
main: "#00F"
},
secondary: {
main: "#F00"
}
}
});
<ThemePro... | Material UI Color Overwrite in React Slider | reactjs|sass|material-ui | 0 | 33 | 1 | 71,942,430 | 71,942,430 | 0 | true | 2022-04-20T15:03:19.293Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Material UI Color Overwrite in React Slider<p>How to overwrite primary, secondary , info, type default color through scss ? Please help</p>
<pre><code>$prima... |
71,967,380 | PostgreSQL subqueries as values<p>I am trying to use a postgreSQL INSERT query with a subquery as parameter value. This is to find the corresponding user_id from an accompanying auth_token in user_info tabel first and then create a new entry in a different table with the corresponding user_id.</p>
<p>My query looks som... | <p>To expand on my comment (it <em>is</em> probably a solution, IIUC): Easiest in this case would be to make the inner query return all the values. So, assuming columns from the inner query have the right names, you could just</p>
<pre class="lang-sql prettyprint-override"><code>INSERT INTO user_movies(user_id, date, ... | PostgreSQL subqueries as values | sql|node.js|postgresql | 0 | 31 | 2 | 71,967,610 | 71,967,610 | 0 | true | 2022-04-22T10:36:40.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PostgreSQL subqueries as values<p>I am trying to use a postgreSQL INSERT query with a subquery as parameter value. This is to find the corresponding user_id ... |
71,834,745 | How do I make sure that radiobuttons arent clickable if the checkbox is unchecked in android studio?<p>I'm practicing an exercise from a book, and it's asking me to first, create a checkbox and then three radiobuttons. If the checkbox is unchecked, then the radiobuttons should appear to be disabled/grey/unclickable. Ho... | <p>You can use if statement for check your checkbox is already click or not. Set your button in condition disabled/grey first after that use if statement for check your checkbox, if checkbox have clicked usable your button.</p>
<p>your code will look like this</p>
<pre><code>Button button1, button2, button3;
Checkbox c... | How do I make sure that radiobuttons arent clickable if the checkbox is unchecked in android studio? | android-studio|checkbox|radio-button|onclicklistener|radio-group | 0 | 25 | 1 | 71,836,210 | 71,836,210 | 0 | true | 2022-04-11T21:59:58.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I make sure that radiobuttons arent clickable if the checkbox is unchecked in android studio?<p>I'm practicing an exercise from a book, and it's askin... |
71,944,071 | error when installing windows-build-tools and nodejsv 18.0.0<p>With python2.7 and buildtools installed manually. Python is in the path</p>
<pre><code>npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "py... | <p>It isn't recommended to install <code>windows-build-tools</code>, as it is deprecated, and there are build tools from the Node.js installer.</p>
<hr />
<p>To install it, follow the steps below.</p>
<ol>
<li>Head to <a href="https://nodejs.org/" rel="nofollow noreferrer">nodejs.org</a>, and download and run the LTS i... | error when installing windows-build-tools and nodejsv 18.0.0 | javascript|windows-build-tools | 0 | 27 | 1 | 71,945,334 | 71,945,334 | 0 | true | 2022-04-20T17:48:37.743Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
error when installing windows-build-tools and nodejsv 18.0.0<p>With python2.7 and buildtools installed manually. Python is in the path</p>
<pre><code>npm ERR... |
71,920,881 | VSTO Project: 'Sub Main' not found after changing Project Assembly Name<p>I received above mentioned error after changing my project assembly name in Project > Properties > Application > Assembly Name</p>
<p>Any Ideas how to solve it?</p>
<p>I already tried these 2 solutions but none of them worked:</p>
<p>1-... | <p>I found the problem:</p>
<p>I also mistakenly had changed my <strong>Application Type</strong> from <strong>Class Library</strong> to <strong>Windows Form Application</strong> so changing it back to <strong>Class</strong> solved my problem.</p> | VSTO Project: 'Sub Main' not found after changing Project Assembly Name | vb.net|visual-studio|vsto | 0 | 33 | 1 | 71,921,779 | 71,921,779 | 0 | true | 2022-04-19T07:04:44.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
VSTO Project: 'Sub Main' not found after changing Project Assembly Name<p>I received above mentioned error after changing my project assembly name in Projec... |
72,033,206 | how can i stop my header overflowing with lorem https://jsfiddle.net/joshbjs/r9scauqe/3/<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>.box {
border-bottom: 10px solid #ccc;
... | <p>It's because you're using <code>position: fixed;</code> and the positional attributes on your header, so that box is going to overlap other elements. Unless you have a reason for doing that that you didn't specify in your question, you can just remove those attributes.</p>
<p>See here for more info on <code>position... | how can i stop my header overflowing with lorem https://jsfiddle.net/joshbjs/r9scauqe/3/ | html|css|layout|header|navbar | 0 | 33 | 2 | 72,033,278 | 72,033,278 | 0 | true | 2022-04-27T17:46:25.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can i stop my header overflowing with lorem https://jsfiddle.net/joshbjs/r9scauqe/3/<p><div class="snippet" data-lang="js" data-hide="false" data-console... |
71,818,182 | Filtering data where threshold is broken in Python Datafr<p>I'm trying to filter a list of temperature data, where the temperature breaks the 7 - 10 degree threshold. My goal is to create a filtered dataset of days where the temperature breaks the threshold, but not the data in between. I've attached a sample table; cu... | <p>To get rows where a column is in between two values (both inclusive) you can use <code>between</code>. For the purpose of demonstration, store this in a temporary column</p>
<pre class="lang-py prettyprint-override"><code>df['in_range'] = df.Temperature.between(7, 10)
</code></pre>
<p>to get this (ignoring the <code... | Filtering data where threshold is broken in Python Datafr | python | 0 | 27 | 1 | 71,818,240 | 71,818,240 | 0 | true | 2022-04-10T15:48:06.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Filtering data where threshold is broken in Python Datafr<p>I'm trying to filter a list of temperature data, where the temperature breaks the 7 - 10 degree t... |
71,912,071 | JSON object with id as primary key schema design<p>I want to use an ID as the primary key in a JSON object. This way all users in the list are unique.</p>
<p>Like so:</p>
<pre><code>{
"user": [{
"id": 1,
"name": "bob"
}]
}
</code></pre>
<p>In an applicati... | <p>It depends on what format you want objects to look like, how much processing you want to do on your objects and how much data you have.</p>
<p>When dealing with web data you will often see the first format. If there is a lot of data then you will need to iterate through all records to find your matching id because y... | JSON object with id as primary key schema design | json|primary-key-design | 0 | 268 | 1 | 71,912,120 | 71,912,120 | 0 | true | 2022-04-18T12:53:11.460Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JSON object with id as primary key schema design<p>I want to use an ID as the primary key in a JSON object. This way all users in the list are unique.</p>
<p... |
72,029,209 | looping through customViews in a viewgroup, as that custom view<p>I have a grid full of a custom view I've created. I can easily loop through it using <code>for (item in grid) {}</code> and I can then set things such as onClick etc.
However, my custom View has it's own functions which I would like to access and kotlin ... | <p>Here <code>for (item in grid as CustomView)</code>, you've used <code>grid as CustomView</code> that is trying to cast the <code>grid</code> as a <code>CustomView</code>, which is why the compiler is complaining <code>this cast can never succeed</code>.</p>
<p>You have to cast the item inside the body of the <code>f... | looping through customViews in a viewgroup, as that custom view | android|kotlin | 0 | 17 | 1 | 72,029,555 | 72,029,555 | 0 | true | 2022-04-27T12:57:41.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
looping through customViews in a viewgroup, as that custom view<p>I have a grid full of a custom view I've created. I can easily loop through it using <code>... |
71,797,700 | Using CONVERT and extracting a week number<p>I'm trying to get a week number from "EndDate" column (nvarchar data type).
Convert function works fine below.</p>
<pre><code>SELECT
EndDate,
CONVERT(DATE,EndDate,113) as "Date",
</code></pre>
<p><a href="https://i.stack.imgur.com/aTA1V.png" rel="nofollo... | <p>To extract the weeknumber from a date you can use the datename or datepart tfunction</p>
<pre><code>select datename(week, '20220408'),
datename(iso_week, '20220408'),
datepart(week, '20220408'),
datepart(iso_week, '20220408')
</code></pre>
<p>returns</p>
<div class="s-table-container">
<table cl... | Using CONVERT and extracting a week number | sql-server|date|type-conversion|nvarchar|datepart | 0 | 36 | 1 | 71,797,789 | 71,797,789 | 0 | true | 2022-04-08T13:15:13.043Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using CONVERT and extracting a week number<p>I'm trying to get a week number from "EndDate" column (nvarchar data type).
Convert function works fin... |
71,847,936 | How do reduce a set of columns along another set of columns, holding all other columns?<p>I think this is a simple operation, but for some reason I'm not finding immediate indicators in my quick perusal of the Pandas docs.</p>
<p>I have prototype working code below, but it seems kinda dumb IMO. I'm sure that there are ... | <p>Actually, looks like <code>DataFrame.groupby(hold_cols).agg({k: ["mean"] for k in reduce_cols})</code> is what I want. Source: <a href="https://jamesrledoux.com/code/group-by-aggregate-pandas" rel="nofollow noreferrer">https://jamesrledoux.com/code/group-by-aggregate-pandas</a></p>
<pre class="lang-py pret... | How do reduce a set of columns along another set of columns, holding all other columns? | python|pandas | 0 | 31 | 1 | 71,862,507 | 71,862,507 | 0 | true | 2022-04-12T19:09:14.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do reduce a set of columns along another set of columns, holding all other columns?<p>I think this is a simple operation, but for some reason I'm not fin... |
71,975,605 | Why i dont see some things in day/night mode<p>i have a problem with day and night mode becouse when i use night mode i see the menu bar and i dont see a button and when i use a day mode i dont see the menu bar but i se the button and i dont know what shoud i do (i see the add button in all modes but i dont see the ret... | <p>Themes.xml</p>
<pre><code><resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.DoktaraSor" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Primary brand color. -->
<... | Why i dont see some things in day/night mode | android|kotlin|theme-daynight | 0 | 33 | 1 | 71,978,181 | 71,978,181 | 0 | true | 2022-04-22T23:27:14.477Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why i dont see some things in day/night mode<p>i have a problem with day and night mode becouse when i use night mode i see the menu bar and i dont see a but... |
71,976,378 | Populate model with API result<p>I am looking to populate my model with the "payload" section from my endpoint. I have created a model of DataResponse which has a record property of Payload. I would like to get only the data from the payload section of the API endpoint. My network call is incorrect and I must... | <p>you need to fix 2 things to be able to decode your json data:</p>
<p>You need the models that match your json data. Such as:</p>
<pre><code>struct DataResponse: Decodable {
let record: Record
}
struct Record: Decodable {
let payload: Payload
}
struct Payload: Decodable {
let SoldToday: Int
}
<... | Populate model with API result | ios|json|swift|parsing | 0 | 34 | 1 | 71,976,814 | 71,976,814 | 0 | true | 2022-04-23T02:35:32.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Populate model with API result<p>I am looking to populate my model with the "payload" section from my endpoint. I have created a model of DataRespo... |
71,938,354 | Trying t scrape table provide empty output<p>I am to scrape the table but they will provide me empty output theses is page link <a href="https://www.sidmartinbio.org/why-is-the-jugular-vein-so-important/" rel="nofollow noreferrer">https://www.sidmartinbio.org/why-is-the-jugular-vein-so-important/</a></p>
<pre><code>fro... | <p>It was a bit hard to xpath selection correctly.Now it's working.</p>
<pre><code>from scrapy.http import Request
import scrapy
class PushpaSpider(scrapy.Spider):
name = 'pushpa'
page_number = 1
start_urls = [
'https://www.sidmartinbio.org/why-is-the-jugular-vein-so-important']
def parse(... | Trying t scrape table provide empty output | python|web-scraping|scrapy | 0 | 34 | 1 | 71,943,301 | 71,943,301 | 0 | true | 2022-04-20T10:49:05.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trying t scrape table provide empty output<p>I am to scrape the table but they will provide me empty output theses is page link <a href="https://www.sidmarti... |
71,928,373 | Output Issue with FreeBusy for Outlook using Python<p>When I use the below code, the response is <code>11111001111100111110011111000</code> and <code>29</code>. Which doesn't make sense because there are only 24 hours in a day. Is there something I am missing?</p>
<p>Also, is it possible to dynamically do this over a d... | <p>You are asking for <code>60*24=1440</code> minutes per character, which means each character corresponds to the whole day. If you want one hour per character, pass <code>60</code>.</p> | Output Issue with FreeBusy for Outlook using Python | python|python-3.x|outlook|office-automation | 0 | 26 | 2 | 71,928,462 | 71,928,462 | 0 | true | 2022-04-19T16:36:06.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Output Issue with FreeBusy for Outlook using Python<p>When I use the below code, the response is <code>11111001111100111110011111000</code> and <code>29</cod... |
71,851,712 | How determine Python script run from IDE or standalone<p>I've recently started learning python and am still a newbie.
How can I determine if my code run from IDE or run standalone?
My code is not imported so
<code>__name__ == "__main__" </code> .
Someone suggested checking sys.executable name but I'm looking ... | <p>Here's a link to the page pyinstaller has on their site giving information about how to check the Run-Time information of your file: <a href="https://pyinstaller.org/en/stable/runtime-information.html" rel="nofollow noreferrer">https://pyinstaller.org/en/stable/runtime-information.html</a></p>
<p>Basically it says t... | How determine Python script run from IDE or standalone | python-3.x | 0 | 28 | 1 | 71,851,772 | 71,851,772 | 0 | true | 2022-04-13T04:00:40.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How determine Python script run from IDE or standalone<p>I've recently started learning python and am still a newbie.
How can I determine if my code run from... |
71,846,410 | Is there a way to search for an element inside a JSON array using sql in snowflake?<p>I have a column in a table which contains, for each row, a JSONarray. I need to extract certain the same elements from it for each row, however, as it is an array, the order of the elements inside the array is not always the same and ... | <p>There is no need to know the size of array:</p>
<pre><code>CREATE OR REPLACE TABLE tab_name
AS
SELECT 1 AS id, PARSE_JSON('[1,2,3]') AS col_array
UNION ALL
SELECT 2 AS id, PARSE_JSON('[1]') AS col_array;
</code></pre>
<p>Query:</p>
<pre><code>SELECT t.id
,f.INDEX
,f.VALUE
FROM tab_name t
, LATERAL FLATTEN(INPU... | Is there a way to search for an element inside a JSON array using sql in snowflake? | sql|arrays|json|snowflake-cloud-data-platform | 0 | 267 | 3 | 71,846,436 | 71,846,436 | 0 | true | 2022-04-12T16:45:53.057Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to search for an element inside a JSON array using sql in snowflake?<p>I have a column in a table which contains, for each row, a JSONarray. I... |
72,017,009 | Using vimeo api (Python)<p>I have a mission to get for example the numbers of views of some video on vimeo using vimeo api.</p>
<p>I opened a user (developer), i send request for some video and i recived an html object.</p>
<p>NEW EDIT : This is my code :</p>
<pre><code>import vimeo
client = vimeo.VimeoClient(
Api det... | <p>LAST EDIT: although the play count is documented in the API at <a href="https://developer.vimeo.com/api/reference/response/video" rel="nofollow noreferrer">https://developer.vimeo.com/api/reference/response/video</a> (under stats.plays) after testing it myself it looks like it always returns "null" - they ... | Using vimeo api (Python) | python|api|vimeo | 0 | 262 | 1 | 72,017,101 | 72,017,101 | 0 | true | 2022-04-26T15:56:18.357Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using vimeo api (Python)<p>I have a mission to get for example the numbers of views of some video on vimeo using vimeo api.</p>
<p>I opened a user (developer... |
71,892,935 | How to plot data categorically with facet_wrap when values of one category are updated? Keeping both on plot<p>I have a dataframe which is something like this:</p>
<pre><code>#sample dataframe
set.seed(42)
dates <- seq.Date(as.Date("2020-01-01"), as.Date("2021-12-30"), "day")
n <- le... | <p>I did some work and came up with this solution, posting here so it might help someone else.</p>
<p>Creating sample new dataframe with <strong>Clean_Values</strong> and <strong>Clean_Count</strong>.</p>
<pre><code>dat1 <- data.frame(created_at = dates,
category = rep(LETTERS[2:2], n/2),
Clean_Values = samp... | How to plot data categorically with facet_wrap when values of one category are updated? Keeping both on plot | r|ggplot2 | 0 | 26 | 1 | 71,907,886 | 71,907,886 | 0 | true | 2022-04-16T10:07:50.960Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to plot data categorically with facet_wrap when values of one category are updated? Keeping both on plot<p>I have a dataframe which is something like thi... |
71,930,415 | React Virtualized List - How do you use the measureAllRows method on a List?<p>I'm trying to render my list of data using the WindowScroller and List from react-virtualized, but for some reason, only a portion of my data is rendering. I've read over the docs and I believe I have all the necessary props...help is apprec... | <p>I can say that the problem lies in one of the parent div for <code>WindowScroller</code> component which is causing this behaviour.</p>
<p>The overflow property cannot be set to auto for <code>WindowScroller</code> to work. If you try executing only the <code>windowScroller</code> part without modal window it works ... | React Virtualized List - How do you use the measureAllRows method on a List? | react-virtualized | 0 | 269 | 2 | 71,967,204 | 71,967,204 | 0 | true | 2022-04-19T19:38:19.617Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React Virtualized List - How do you use the measureAllRows method on a List?<p>I'm trying to render my list of data using the WindowScroller and List from re... |
71,926,382 | Chopping suffixes in variable expansion within a Makefile<p>As the title states, I have a problem being able to remove suffix from a package name if I need to provide several suffixes (pattern-list)</p>
<p><em>Note: I have forced bash usage in the Makefile (<code>SHELL=/bin/bash</code>)</em></p>
<ul>
<li><p><code>DEST_... | <p>Maybe it's simpler to use GNU make functions? Something like this:</p>
<pre><code>for pkg in $(patsubst %OPT1,%,$(patsubst %OPT2,%,$(PKG_LIST))) ; do \
cp -a tmp/$${pkg} $(DEST_DIR) ; \
done
</code></pre>
<p>This will do the wrong thing (maybe?) if you have names like fooOPT1OPT2 (both will be stripped) but tha... | Chopping suffixes in variable expansion within a Makefile | shell|makefile|variable-expansion | 0 | 30 | 1 | 71,926,771 | 71,926,771 | 0 | true | 2022-04-19T14:09:21.463Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Chopping suffixes in variable expansion within a Makefile<p>As the title states, I have a problem being able to remove suffix from a package name if I need t... |
71,893,123 | Find pairs of array such as array_1 = -array_2<p>I search a way to find all the vector from a <code>np.meshgrid(xrange, xrange, xrange)</code> that are related by k = -k.</p>
<p>For the moment I do that :</p>
<pre><code>
@numba.njit
def find_pairs(array):
boolean = np.ones(len(array), dtype=np.bool_)
pairs = []... | <p>The main problem is that <code>comb_array</code> has a shape of <code>(R, 3)</code> where <code>R = N**3</code> and the nested loop in <code>find_pairs</code> runs at least in quadratic time since <code>idx.remove</code> runs in linear time and is called in the for loop. Moreover, there are cases where the for loop ... | Find pairs of array such as array_1 = -array_2 | numpy|numpy-ndarray | 0 | 33 | 1 | 71,893,866 | 71,893,866 | 0 | true | 2022-04-16T10:33:42.350Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find pairs of array such as array_1 = -array_2<p>I search a way to find all the vector from a <code>np.meshgrid(xrange, xrange, xrange)</code> that are relat... |
71,837,859 | React Conditional Rendering: How can hide the Button when the array "Name" has more than two values?<p>How can hide the Button when the array <strong>"Name"</strong> has more than two values?</p>
<p>Code sandbox link
<a href="https://codesandbox.io/s/patient-platform-3zs7li?file=/src/App.js" rel="nofollow nor... | <p>I have updated your code in codesnadbox according to your requirement.</p>
<p><a href="https://codesandbox.io/s/peaceful-platform-dvdy5e?file=/src/App.js:0-325" rel="nofollow noreferrer">https://codesandbox.io/s/peaceful-platform-dvdy5e?file=/src/App.js:0-325</a></p>
<pre class="lang-js prettyprint-override"><code>i... | React Conditional Rendering: How can hide the Button when the array "Name" has more than two values? | reactjs | 0 | 21 | 1 | 71,837,930 | 71,837,930 | 0 | true | 2022-04-12T06:10:26.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React Conditional Rendering: How can hide the Button when the array "Name" has more than two values?<p>How can hide the Button when the array <strong>"N... |
71,909,401 | else statement is ignored in react<p>when i am trying to perform this task to change password, everything works fine if the response is 200 and it also gives me the pop up window, but if its not it dosent perform the else statement,it like no else. completely ignored.</p>
<p>here is the code</p>
<pre><code>const submit... | <p>Axios throws the response if the status code is something else than 2xx. Which means that if you get e.g. 4xx or 5xx the <code>then</code> clause is not run. Instead you need a <code>catch</code> clause that will handle this case.</p>
<pre><code>.then((response) => {
const Swal = require('sweetalert2');
c... | else statement is ignored in react | reactjs|if-statement|popup|response | 0 | 30 | 1 | 71,909,591 | 71,909,591 | 0 | true | 2022-04-18T08:31:12.063Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
else statement is ignored in react<p>when i am trying to perform this task to change password, everything works fine if the response is 200 and it also gives... |
72,033,412 | How do I get rid of depreciated code in this class file for java antlr?<pre><code>import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.ParseTree;
import java.io.FileInputStream;
import java.io.InputStream;
public class Calc {
public static void main(String[] args) throws Exception {
String inp... | <p>Try something like this:</p>
<pre class="lang-java prettyprint-override"><code>
public static void main(String[] args) throws Exception {
CharStream charStream = args.length > 0
? CharStreams.fromFileName(args[0])
: CharStreams.fromStream(System.in);
CalculatorLexer lexer = new CalculatorLexer(cha... | How do I get rid of depreciated code in this class file for java antlr? | antlr | 0 | 21 | 1 | 72,034,182 | 72,034,182 | 0 | true | 2022-04-27T18:05:14.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I get rid of depreciated code in this class file for java antlr?<pre><code>import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.ParseTree;
... |
71,867,047 | Joining two CSV files with common column in Python without Pandas<p>I wanted to inquire on how I could merge 2 csv files so that I can generate queries. Note that I am not allowed to use the "pandas" library.</p>
<p>As an example I have these 2 csv:</p>
<p><strong>data.csv:</strong></p>
<pre><code>cod_pers, c... | <p>You can do this in pretty straight-forward approach with just the CSV module.</p>
<p>I create a map of each row in data.csv to its <code>code_enti</code> value. Then, for every row in enti.csv that has a matching code_enti, I update the row in the map:</p>
<pre class="lang-py prettyprint-override"><code>import csv
... | Joining two CSV files with common column in Python without Pandas | python|csv | 0 | 279 | 1 | 71,872,556 | 71,872,556 | 0 | true | 2022-04-14T05:51:44.290Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Joining two CSV files with common column in Python without Pandas<p>I wanted to inquire on how I could merge 2 csv files so that I can generate queries. Note... |
71,997,114 | Perform a test when the column containing the condition varies (R)<p>I have at hand a dataset where answers to some questions depends on other questions asked before and need to perform an aggregation taking these questions into account (for example : "difficultyX" needs "isdifficult" == 1, and I m... | <pre><code>library(dplyr)
library(tidyr)
test<-tibble(Y1=1:3,Y2=1:3,var_to_test=c("x1","x2","x3"),condition=c("Y1","Y2","Y2"),value=c(1,2,2))
</code></pre>
<p>Possible solution using <code>tidyr::pivot_longer</code>:</p>
<p>1.Bring data in long form with a... | Perform a test when the column containing the condition varies (R) | r|loops|if-statement|dplyr|mapping | 0 | 29 | 1 | 71,998,123 | 71,998,123 | 0 | true | 2022-04-25T09:15:09.697Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Perform a test when the column containing the condition varies (R)<p>I have at hand a dataset where answers to some questions depends on other questions aske... |
71,428,026 | how to save counts of logical values in a table in R<p>I have a df "merged.blood.BP.anthrop_1row" that has data on 250 metabolites.</p>
<p>I'd like, First, to check the number of outliers in the 250 metabolites (> 4*SD)</p>
<p>I made the following function and thought I can save the output in a new df easi... | <p>Here are some possibilities. Note that I've used <code>3*sd</code> to get some <code>TRUE</code> values in a small dataset.</p>
<pre><code>> # The function
> show_outliers <- function (x) {
+ return(abs(x - mean(x, na.rm = TRUE)) > 3 * sd(x, na.rm = TRUE))
+ }
> # Fake data
> dat <- data.fram... | how to save counts of logical values in a table in R | r | 0 | 21 | 1 | 71,428,292 | 71,428,292 | 0 | true | 2022-03-10T17:02:26.870Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to save counts of logical values in a table in R<p>I have a df "merged.blood.BP.anthrop_1row" that has data on 250 metabolites.</p>
<p>I'd like... |
72,022,174 | PHP HTML Table is not sorting numerically when cells are hyperlinks<p>So I have a HTML table inside my PHP page (filled from MySQL database) and a specific column that I want to sort it numerically on click on the column header.
Alphabetically, the sort function is working with no problem.
Numerically, the sort functio... | <p>You are using <code>innerHTML</code> which will include the inner HTML markup so numeric conversion will be ... interesting.</p>
<p>Use <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText" rel="nofollow noreferrer"><code>innerText</code></a> or <a href="https://developer.mozilla.org/en-US... | PHP HTML Table is not sorting numerically when cells are hyperlinks | javascript|php|sorting | 0 | 26 | 1 | 72,022,219 | 72,022,219 | 0 | true | 2022-04-27T01:01:53.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP HTML Table is not sorting numerically when cells are hyperlinks<p>So I have a HTML table inside my PHP page (filled from MySQL database) and a specific c... |
71,906,589 | Cannot get specific information from a database using SQL<p>it's my first time making two SQL requests in on 'connection.query' and something is definetly not right, first of all here is my code:</p>
<pre class="lang-js prettyprint-override"><code>pool.getConnection(function (err, connection) {
if (err) throw err;
... | <p>Normally, a query result is an array of rows. However, since you performed <em>multiple</em> queries, <code>result</code> is an array of results of your queries; and each result is an array of rows returned by each query. Thus, you have one more level of nesting than in the scenario where you only have one query.</p... | Cannot get specific information from a database using SQL | javascript|mysql|sql|node.js|discord.js | 0 | 35 | 1 | 71,906,602 | 71,906,602 | 0 | true | 2022-04-18T00:48:55.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot get specific information from a database using SQL<p>it's my first time making two SQL requests in on 'connection.query' and something is definetly no... |
72,006,143 | Show column according to parameter<p>I'm trying to write a SQL script that shows a column based on a user parameter. I can't find an acceptable answer anywhere. </p>
<p>This is a simplified version of what I want to do (in OracleDB):</p>
<pre><code>SELECT Table_car.purchase_date AS PurchaseDate,
Table_car.sale_... | <p>You can just put the logic into the <code>where</code> clause, with <code>or</code>; something like:</p>
<pre><code>SELECT Table_car.purchase_date AS PurchaseDate,
Table_car.sale_date AS SaleDate,
Table_car.car_brand AS CarBrand
FROM Table_car
WHERE :userinput = 999 OR Table_car.car_brand = :userinp... | Show column according to parameter | sql|oracle|oracle-sqldeveloper | 0 | 26 | 1 | 72,006,404 | 72,006,404 | 0 | true | 2022-04-25T22:00:14.570Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Show column according to parameter<p>I'm trying to write a SQL script that shows a column based on a user parameter. I can't find an acceptable answer anywhe... |
71,430,831 | Visual Studio 2022 not recognizing SDK project format<p>My VS 2022 Community Edition seems to not recognize the SDK project file format in a .NET 6 solution which works fine for my team mates. Solution explorer is empty, the existing files get shown only by activating the "Show all files" option. I can "... | <p>After deleting and cloning the repository again, it worked. The solution folder name contained a blank which got replaced by <code>%20</code> in the git clone link. When I cloned it for the first time, I didn't replace the %20 for the locally created folder which by default has the same name like in the link.</p>
<p... | Visual Studio 2022 not recognizing SDK project format | visual-studio|csproj | 0 | 270 | 1 | 71,437,954 | 71,437,954 | 0 | true | 2022-03-10T21:08:06.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Visual Studio 2022 not recognizing SDK project format<p>My VS 2022 Community Edition seems to not recognize the SDK project file format in a .NET 6 solution ... |
72,002,763 | How to run what I have in package.json into Docker?<p>I have to dockerize an app but I didn't work with docker before. It's an angular app, but every time I try to build it I got an error because it can't run a script I have in package.json because it says there is no package.json? Can someone look over my dockerfile a... | <p>WORKDIR changes the current dir, so when you COPY the files first and then set the WORKDIR, you copy the files to another directory than the workdir.</p>
<p>When you want your app to be served by Nginx, you also need to build, so you can copy the built app to Nginx.</p>
<p>Try this</p>
<pre><code>FROM node:16.13.0-a... | How to run what I have in package.json into Docker? | docker | 0 | 17 | 1 | 72,002,843 | 72,002,843 | 0 | true | 2022-04-25T16:26:59.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to run what I have in package.json into Docker?<p>I have to dockerize an app but I didn't work with docker before. It's an angular app, but every time I ... |
71,832,832 | Cannot Dismiss EKEventViewController in Landscape View<p>When I open a calendar event in my app using <code>EKEventViewController</code> using the code below it correctly displays my event in a modal view.</p>
<pre><code>let eventModalVC = EKEventViewController()
eventModalVC.event = myEvent
eventModalVC.allowsEditing ... | <p>I was hoping that the EKEventViewController offers a similar convenient and intuitive way to dismiss it in landscape view as it does in portrait view but have not had any luck.</p>
<p>To get the back button I now enclosed my modal view in its own navigation controller. That reveals a "Done" button (as well... | Cannot Dismiss EKEventViewController in Landscape View | ios|swift|modal-dialog|ekeventviewcontroller | 0 | 23 | 1 | 71,839,217 | 71,839,217 | 0 | true | 2022-04-11T18:47:20.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot Dismiss EKEventViewController in Landscape View<p>When I open a calendar event in my app using <code>EKEventViewController</code> using the code below... |
71,879,312 | Create a matrix with initiated data in python then modify a cell<p>I am trying to create a 3x3 matrix with lists in python with initial value 0 then modify a cell in it like the following:</p>
<p><code>matrix = [[0]*3]*3</code></p>
<p>When I assign the cell x=1 y=1 the value 1 as the following:</p>
<p><code>matrix[1][1... | <p>This is because the <code>*</code> operator doesn't create new arrays in multi-dimensional lists it simply copies them.</p>
<p>You create the first list with <code>[0]*3</code> and the other lists are simply copies of that same list. And since lists are mutable, editing one of them edit's all of them.</p>
<p>In you... | Create a matrix with initiated data in python then modify a cell | python|matrix | 0 | 23 | 2 | 71,879,678 | 71,879,678 | 0 | true | 2022-04-15T02:03:38.263Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create a matrix with initiated data in python then modify a cell<p>I am trying to create a 3x3 matrix with lists in python with initial value 0 then modify a... |
71,436,786 | Invalid Certificate (HTTPS) while deploy in apache tomcat but work perfectly in Intelij (local)<p>I have application that using https to send data, to doing that , i implement https certificate that i grab from destination website.
<a href="https://i.stack.imgur.com/UfcxH.png" rel="nofollow noreferrer">certificate dest... | <p>Finally, after a week struggling with this issue, i solve this problem.
The problem is keystore server (destination server) contain just server certificate without root CA certificate and intermediate certificate.
Thats why while handshake process made, its make failure connection. Because while connection made, ser... | Invalid Certificate (HTTPS) while deploy in apache tomcat but work perfectly in Intelij (local) | ssl|ssl-certificate|rhel|tomcat9|jks | 0 | 281 | 2 | 71,600,401 | 71,600,401 | 0 | true | 2022-03-11T10:03:17.327Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Invalid Certificate (HTTPS) while deploy in apache tomcat but work perfectly in Intelij (local)<p>I have application that using https to send data, to doing ... |
71,436,300 | Navbar with margin wont be set to "0"<p>So I'm working on a website and I wanted to try including bootstrap in it. I've used the navbar tags and some custom CSS but I can't remove the margin. So basically the navbar looks weird because of it.</p>
<p>Heres the code:</p>
<p>Html:</p>
<pre><code>
<!DOCTYPE html>
<... | <p>You could try setting:</p>
<pre><code>margin: 0 !important;
</code></pre>
<p>Or you could get more specific with the selector.</p>
<p>If you are in Chrome for instance, and right click on the element in question, you should see that it has a more specific selector.</p>
<p>Just as an example:</p>
<pre><code>html body... | Navbar with margin wont be set to "0" | html|css|web|bootstrap-5 | 0 | 45 | 1 | 71,436,360 | 71,436,360 | 0 | true | 2022-03-11T09:24:21.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Navbar with margin wont be set to "0"<p>So I'm working on a website and I wanted to try including bootstrap in it. I've used the navbar tags and some custom ... |
71,433,371 | How to pass Bitbucket pipeline repository variables to npm run script?<p>How do I pass a Bitbucket repository variable into the Cypress.io test script that I am running with <code>npm run</code> in a pipeline?</p>
<p>The pipeline and tests work, but I am unable to get a Bitbucket variable into the test file iteself. I... | <p>I found the Cypress.io documentation on environment variables:
<a href="https://docs.cypress.io/guides/guides/environment-variables" rel="nofollow noreferrer">https://docs.cypress.io/guides/guides/environment-variables</a></p>
<p><strong>bitbucket-pipeline.yml</strong></p>
<pre><code>image: cypress/included:3.2.0
p... | How to pass Bitbucket pipeline repository variables to npm run script? | npm|cypress|bitbucket-pipelines|npm-scripts|docker-image | 0 | 787 | 2 | 71,445,617 | 71,445,617 | 0 | true | 2022-03-11T03:37:29.893Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to pass Bitbucket pipeline repository variables to npm run script?<p>How do I pass a Bitbucket repository variable into the Cypress.io test script that I... |
71,437,518 | Maven downloads the wrong version<p>I specified dependency version 75.1.3 in my pom.xml pointing to one of my other projects:</p>
<pre><code> <properties>
<myotherproject.version>75.1.3</myotherproject.version>
</properties>
<dependencies>
<dependency>
... | <p>I finally found the cause.
The version in the pom.xml of my main project had been updated, but not the version in the pom.xml of its child projects. Thus the child projects were built based on an old snapshot, referencing an older version of the dependency (the other project).</p>
<p>What I was thinking it was:</p>
... | Maven downloads the wrong version | maven|maven-dependency | 0 | 285 | 2 | 71,441,300 | 71,441,300 | 0 | true | 2022-03-11T11:02:47.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Maven downloads the wrong version<p>I specified dependency version 75.1.3 in my pom.xml pointing to one of my other projects:</p>
<pre><code> <properties&... |
71,916,180 | Can't get v-model work with Composition API and Vuex<p>I've read several posts on stackoverflow and other websites, but still can't figure out what's going wrong in my case.</p>
<p>I'm building an app following composition api approach and using a variable called <em>modelStartDate</em> (which I initiate at Jan 3, 2022... | <p>First, I don't know which tutorial you read. But to me, the problem is here:</p>
<pre class="lang-js prettyprint-override"><code>const modelStartDateProxy = computed({
get: () => store.state.modelStartDate,
set: (newDate) => store.commit("modelStartDateMutation", newDate)
})
const modelStart... | Can't get v-model work with Composition API and Vuex | vue.js|vuex|vue-composition-api | 0 | 277 | 2 | 71,916,952 | 71,916,952 | 0 | true | 2022-04-18T19:25:08.393Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't get v-model work with Composition API and Vuex<p>I've read several posts on stackoverflow and other websites, but still can't figure out what's going w... |
71,874,681 | Import table content from one database of one environment and write to other environment using XQUERY transformation in MARKLOGIC<p>I am being asked to work on a POC which is -</p>
<p>import data from one database from one environment and import the data to another environment using XQuery transformation in MarkLogic.<... | <p>There are many options for exporting and importing data.</p>
<p>If there is a LOT of data, then <a href="https://docs.marklogic.com/guide/admin/backup_restore" rel="nofollow noreferrer">backup/restore</a>, <a href="https://docs.marklogic.com/guide/flexrep/rep_intro" rel="nofollow noreferrer">flexible replication</a>... | Import table content from one database of one environment and write to other environment using XQUERY transformation in MARKLOGIC | xquery|marklogic | 0 | 31 | 1 | 71,875,038 | 71,875,038 | 0 | true | 2022-04-14T16:15:34.203Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Import table content from one database of one environment and write to other environment using XQUERY transformation in MARKLOGIC<p>I am being asked to work ... |
71,919,592 | How to format an activity output as YYYY-MM-DD hh:mm:ss in Azure data factory<p>In my ADF pipeline I am trying to convert an output from my lookup activity to be in YYYY-MM-DD hh:mm:ss date format within the source query of a copy activity. The current output from my lookup activity is in YYYY-MM-DDThh:mm:ss format and... | <p>Use the lookup activity output <code>(activity('Lookup1').output.value[0].columnName)</code> value in your expression with column name as shown below to refer the lookup activity output in later activities.</p>
<p><strong>Lookup activity output:</strong></p>
<p><a href="https://i.stack.imgur.com/I8vEA.png" rel="nofo... | How to format an activity output as YYYY-MM-DD hh:mm:ss in Azure data factory | datetime|azure-data-factory | 0 | 516 | 1 | 71,925,336 | 71,925,336 | 0 | true | 2022-04-19T04:13:39.300Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to format an activity output as YYYY-MM-DD hh:mm:ss in Azure data factory<p>In my ADF pipeline I am trying to convert an output from my lookup activity t... |
71,839,924 | Why is Line Discovery Tile not removing previous data?<p>So here is my problem: I want to make a <strong>Line Discovery Tile</strong> for my <strong>Discovery Dashboard</strong>. I have another tile generating an event with information in order to fetch the right data. Sometimes I have GTS data of the same label and so... | <p>it was a bug and should be fixed with Discovery 1.0.127</p> | Why is Line Discovery Tile not removing previous data? | visualization|discovery|warp10|warpscript | 0 | 22 | 1 | 71,840,919 | 71,840,919 | 0 | true | 2022-04-12T09:07:53.063Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is Line Discovery Tile not removing previous data?<p>So here is my problem: I want to make a <strong>Line Discovery Tile</strong> for my <strong>Discover... |
71,860,778 | I cannot register new admin panel block Django<p>I'm trying to register my model in admin panel by this code</p>
<pre class="lang-py prettyprint-override"><code>from django.contrib import admin
from advertisements.models import Advertisement
@admin.register(Advertisement)
class AdvertisementAdmin(admin.ModelA... | <p>You could try using something like:</p>
<pre class="lang-py prettyprint-override"><code>class AdvertisementAdmin(admin.ModelAdmin):
pass
admin.site.register(Advertisement, AdvertisementAdmin)
</code></pre> | I cannot register new admin panel block Django | django-models|django-admin | 0 | 21 | 1 | 71,929,701 | 71,929,701 | 0 | true | 2022-04-13T16:22:27.220Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I cannot register new admin panel block Django<p>I'm trying to register my model in admin panel by this code</p>
<pre class="lang-py prettyprint-override"><c... |
71,864,715 | Plotting values over time with Pandas Dataframe<p>I'm looking to gather datapoints from each country for percentage and time from this Pandas dataframe. <a href="https://i.stack.imgur.com/lp8Tk.png" rel="nofollow noreferrer">Pandas Dataframe</a></p>
<p>By using the pandas.iloc function I've been able to isolate each c... | <p>What's going on here is that Python sees this as a single object, a Pandas Series (pandas.core.series.Series). When you try to perform multiple assignment, it thinks you're trying to assign each value from the series to a variable and finds that there aren't enough variables to use.</p>
<p>You can access just the in... | Plotting values over time with Pandas Dataframe | python|pandas|dataframe | 0 | 35 | 1 | 71,864,774 | 71,864,774 | 0 | true | 2022-04-13T23:07:15.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Plotting values over time with Pandas Dataframe<p>I'm looking to gather datapoints from each country for percentage and time from this Pandas dataframe. <a ... |
72,024,555 | How can I detect from where was set value in database?<p>It's a first time that I'm working on a big project and I can't find from where specific field receiving its values(setter wasn't used in code). Is there a way to find out this from database?
<a href="https://i.stack.imgur.com/W7KE8.png" rel="nofollow noreferrer"... | <p>From the database itself, you can track the changes through Transaction Logs (check out <a href="https://stackoverflow.com/questions/58724202/how-to-view-transaction-logs-in-oracle-of-recent-sql-commands-executed-by-a-hibe">this</a> answer, for instance).</p>
<p>If this project relies on spring-boot or hibernate, I ... | How can I detect from where was set value in database? | java|database | 0 | 33 | 1 | 72,024,769 | 72,024,769 | 0 | true | 2022-04-27T07:01:53.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I detect from where was set value in database?<p>It's a first time that I'm working on a big project and I can't find from where specific field recei... |
71,799,526 | Average time between delivered_dates for each product_id - pandas<p>How to find average time between delivered_date for each product_id?</p>
<p><strong>Dataset Sample</strong></p>
<pre><code> data = {
'product_id':[27036,1748, 8849, 10280, 28712, 27036, 1748, 8849, 10280, 28712, 27036, 1748, 8849, 10280, 28712, ... | <p>You should probably sort on the date first. Then <code>groupby</code> after calculating the differences to get the mean as a new column:</p>
<pre><code>#calculate the average time difference
df["interval"] = df.groupby("product_id")["delivered_datetime"].transform(lambda x: x.sort_value... | Average time between delivered_dates for each product_id - pandas | python|pandas | 0 | 36 | 1 | 71,799,611 | 71,799,611 | 0 | true | 2022-04-08T15:22:36.093Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Average time between delivered_dates for each product_id - pandas<p>How to find average time between delivered_date for each product_id?</p>
<p><strong>Datas... |
71,853,173 | Not passing the value in the object within function<p>The <strong>listCount--</strong> inside the <strong>function removeItem</strong> do not pass the value in list.itemCount but the <strong>itemLists.splice(indexOfLi, 1);</strong> in the same function is perfectly removing the value in the list.itemList. I am confused... | <p><code>listCount</code> variable inside the <code>removeItem</code> function does not contain a reference to the <code>list.itemCount</code> value and is actually a standalone variable.</p>
<p>The reason why this happens is because when the following is called:</p>
<p><code>displayValue(itemListText, list.itemList, l... | Not passing the value in the object within function | javascript|jquery|function|object | 0 | 34 | 1 | 71,853,447 | 71,853,447 | 0 | true | 2022-04-13T07:00:01.433Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Not passing the value in the object within function<p>The <strong>listCount--</strong> inside the <strong>function removeItem</strong> do not pass the value ... |
72,018,540 | How to use from my app another app to visualize an image?<p>I want to program an app. In this app, the user selects an image file path and the app opens another app (Google Photos) to show that image. This image is in the public folder Downloads.</p>
<p>I am using Android 9.0.</p>
<p>What I tried:</p>
<pre><code>File i... | <p>SOLVED:</p>
<pre><code>Uri collection = MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL);
String[] projection = new String[]{MediaStore.Files.FileColumns._ID};
String selection = MediaStore.Files.FileColumns.DATA + "=?";
String[] selectionArgs = new String[]{"/storage/emulated/0/DCIM/Camera/... | How to use from my app another app to visualize an image? | android | 0 | 27 | 1 | 72,020,369 | 72,020,369 | 0 | true | 2022-04-26T18:00:55.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use from my app another app to visualize an image?<p>I want to program an app. In this app, the user selects an image file path and the app opens anot... |
71,943,293 | How to write a macro whose body contains a user defined symbol?<p>I intend to create a macro that has the following behaviour:</p>
<pre><code>@pass_symbol sym func
</code></pre>
<p>Expands to:</p>
<pre><code>func(:sym)
</code></pre>
<p>The following experiments didn't yield any results:</p>
<pre><code>macro pass_symbol... | <pre><code>macro pass_symbol(symarg, funcarg)
quote
$funcarg($(Expr(:quote, (symarg))))
end
end
</code></pre>
<p>Or more concisely:</p>
<pre><code>macro pass_symbol(symarg, funcarg)
quote
$funcarg($(QuoteNode(symarg)))
end
end
</code></pre>
<p>But I'm still not sure why <code>QuoteNode</... | How to write a macro whose body contains a user defined symbol? | macros|julia | 0 | 26 | 1 | 71,943,294 | 71,943,294 | 0 | true | 2022-04-20T16:38:19.023Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to write a macro whose body contains a user defined symbol?<p>I intend to create a macro that has the following behaviour:</p>
<pre><code>@pass_symbol sy... |
71,859,319 | Excel Office Scripts - Copy and paste range if filtered data is not empty<p><strong>Summary</strong>: I have a multi-step script where I need an IF statement to handle a scenario when the range I am copying from could be empty. I need the script to move onto the next step even if it "skips" the immediate next... | <p>I think you can do this with your source table using the <code>getVisibleView()</code> method. Once you used that method, you could get the row count. Code that did that would look something like this:</p>
<pre><code> function main(workbook: ExcelScript.Workbook){
let sh: ExcelScript.Worksheet = workbook.getA... | Excel Office Scripts - Copy and paste range if filtered data is not empty | excel|if-statement|filter|office-scripts|undefined-function | 0 | 519 | 1 | 71,860,936 | 71,860,936 | 0 | true | 2022-04-13T14:35:31.513Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Excel Office Scripts - Copy and paste range if filtered data is not empty<p><strong>Summary</strong>: I have a multi-step script where I need an IF statement... |
71,999,973 | Screen Reader reading properly on Mac chrome but not on Windows Chrome React<p>I have a scenario where I have added an <code>aria-label</code> to a parent <code><div></code> which contains some text. Ideally the <code>aria-label</code> provided to the parent <code><div></code> should be narrated first and t... | <p>Screen readers are all over the map with respect to interpretting <code>aria-label</code> on non-interactive elements.</p>
<p>According to <a href="https://davidmacd.com/blog/does-aria-label-override-static-text.html" rel="nofollow noreferrer">David MacDonald's tests</a>, VoiceOver and TalkBack will read the <code>a... | Screen Reader reading properly on Mac chrome but not on Windows Chrome React | reactjs|windows|accessibility|screen-readers|nvda | 0 | 274 | 1 | 72,000,950 | 72,000,950 | 0 | true | 2022-04-25T13:02:04.303Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Screen Reader reading properly on Mac chrome but not on Windows Chrome React<p>I have a scenario where I have added an <code>aria-label</code> to a parent <c... |
71,824,025 | GMAIL: How to open a existing email in new window if I know its id?<p><strong>Shortly: How to open email in gmail if I know its id in new window?</strong></p>
<p>Greetings. I get from GMAIL API the id of needed email. I want it to open in separate window by, for example, btn click in my add-on.
What I know:</p>
<ul>
<l... | <p>Total recall. Solution was found. The solution can be applied to open email in any folder not only in Sent folder.
To Open email in new window need its <code>id</code> and <code>thread_id</code> of that email.
Also known as <code>messageId</code> and <code>conversationId</code>.<br />
By example messageId looks like... | GMAIL: How to open a existing email in new window if I know its id? | javascript|email|gmail|gmail-api | 0 | 282 | 1 | 71,936,238 | 71,936,238 | 0 | true | 2022-04-11T07:22:18.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
GMAIL: How to open a existing email in new window if I know its id?<p><strong>Shortly: How to open email in gmail if I know its id in new window?</strong></p... |
71,947,404 | Generating a large dropdown list<p>I'm making a large form in Laravel 8 and one of the dropdown lists has to contain values from 1 to 85.</p>
<p>Is there a way that I can generate the list using a loop instead of having to type out the whole 85 options?</p>
<p>My current code is</p>
<pre><code> <div class="c... | <pre><code>@for ($i = 1; $i <= 85; $i++)
@endfor
</code></pre>
<p><a href="https://laravel.com/docs/9.x/blade#loops" rel="nofollow noreferrer">https://laravel.com/docs/9.x/blade#loops</a></p> | Generating a large dropdown list | laravel|laravel-8 | 0 | 35 | 1 | 71,947,603 | 71,947,603 | 0 | true | 2022-04-20T23:56:08.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Generating a large dropdown list<p>I'm making a large form in Laravel 8 and one of the dropdown lists has to contain values from 1 to 85.</p>
<p>Is there a w... |
71,981,503 | How to resolve a shift/reduce conflict for nested lists using the same separator in JFLEX/CUP?<p>I'm trying to implement a parser in JFLEX/CUP (JFlex 1.8.2, Cup 0.11b) for a language in which lists containing different kinds of elements can be nested (e.g. lists of statements and statements containing lists of expressi... | <p>I think I have managed to solve the problem:</p>
<pre><code>list_a ::= item_a COMMA list_a | C list_b COMMA list_a | item_a | C list_b;
item_a ::= A;
list_b ::= list_b COMMA item_b | item_b;
item_b ::= B;
</code></pre> | How to resolve a shift/reduce conflict for nested lists using the same separator in JFLEX/CUP? | java|parsing|lalr|shift-reduce-conflict|cup | 0 | 30 | 1 | 71,982,616 | 71,982,616 | 0 | true | 2022-04-23T16:18:39.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to resolve a shift/reduce conflict for nested lists using the same separator in JFLEX/CUP?<p>I'm trying to implement a parser in JFLEX/CUP (JFlex 1.8.2, ... |
71,804,232 | Why does django continues naming my app as the previous name?<p>thanks for reading.</p>
<p>When I run "py manage.py makemigrations" I get the following message:
"ModuleNotFoundError: No module named 'transformaTe'"</p>
<p>This is the apps.py code:</p>
<pre><code>from django.apps import AppConfig
c... | <p>Well, it turns out that when you run makemigrations you have to check the project urls.py file, that was the only thing that was crashing my migrations.</p>
<p>ORIGINAL my-app/urls. py FILE:</p>
<pre><code> from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('', include('... | Why does django continues naming my app as the previous name? | python|django|django-migrations | 0 | 25 | 1 | 71,804,270 | 71,804,270 | 0 | true | 2022-04-09T00:02:18.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does django continues naming my app as the previous name?<p>thanks for reading.</p>
<p>When I run "py manage.py makemigrations" I get the follo... |
71,845,844 | Continously refreshing a matplotlib figure results in a slowdown<p>I have the following code that displays a figure with two images:</p>
<pre><code>import numpy as np
import matplotlib.pyplot as plt
img1 = np.zeros((400,400,3), dtype=np.uint8)
img2 = np.ones((400,400,3), dtype=np.uint8) * 255
f, axarr = plt.subplots(... | <p>Every time you call <code>axarr[0].imshow(img1)</code>, a new image will be added to the axes. Try to clear at each iteration the images stored with <code>axarr[0].images = []</code> and <code>axarr[1].images = []</code> (or <code>axarr[0].images.clear()</code> and <code>axarr[1].images.clear()</code>).</p> | Continously refreshing a matplotlib figure results in a slowdown | python-3.x|matplotlib | 0 | 22 | 1 | 71,846,220 | 71,846,220 | 0 | true | 2022-04-12T16:01:14.507Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Continously refreshing a matplotlib figure results in a slowdown<p>I have the following code that displays a figure with two images:</p>
<pre><code>import nu... |
71,953,066 | Delete p tag inside <li> tags xslt 1<p>I need to remove <code><p> tags inside <li></code> tags.
Example:</p>
<pre><code><ul><li id="62592d802d9bf64743a6103f"> <p> <u> <strong>WHAT IS CARRER DEVELOPMENT PLAIN ?</strong> </u> </p> </li></ul>... | <p>You can use the following XSLT-1.0 template. The <em>Identity Template</em> just copies all elements as they are. The second template does essentially the same, but without copying the current element (here only for the <code><p></code> element).</p>
<pre><code><xsl:stylesheet xmlns:xsl="http://www.w3.... | Delete p tag inside <li> tags xslt 1 | xslt|xslt-1.0 | 0 | 21 | 1 | 71,953,161 | 71,953,161 | 0 | true | 2022-04-21T10:38:05.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Delete p tag inside <li> tags xslt 1<p>I need to remove <code><p> tags inside <li></code> tags.
Example:</p>
<pre><code><ul><li id="... |
71,982,516 | Multiple condition search function in Laravel 7<p>I'm trying to search values with dropdown value and daterange.
But it works for only one at a time. Like if I select a value from dropdown and select daterange it doesn't show.</p>
<p>Here is my code</p>
<p>Controller:</p>
<pre><code>public function sale_index(request $... | <p>The two conditions are overwriting with a different query, instead of combining the <code>where</code> filters all as one query.</p>
<p>Try changing this:</p>
<pre><code>$sales = Sim::where('stock', '>', 0)->orderBy( 'id', 'desc')->get();
if($request->filled('search')){
$sales = Sim::where('user_id'... | Multiple condition search function in Laravel 7 | php|laravel|search | 0 | 272 | 1 | 71,982,622 | 71,982,622 | 0 | true | 2022-04-23T18:23:07.817Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multiple condition search function in Laravel 7<p>I'm trying to search values with dropdown value and daterange.
But it works for only one at a time. Like if... |
71,872,421 | Extract only a specific number from html table sell<p>I have this current lcode in my script which populates a cell in my sheet;</p>
<p><code>sheet.getRange(targetcell).setFormula('=INDEX(QUERY(IMPORTHTML("https://www.futwiz.com/en/consumables/positions","table",1),"select Col2"),G1)');</c... | <p>Try with</p>
<pre><code>.setFormula(`=regexextract(INDEX(QUERY(IMPORTHTML("https://www.futwiz.com/en/consumables/positions","table",1),"select Col2"),G1),"[0-9,.]+")`)
</code></pre> | Extract only a specific number from html table sell | google-apps-script|google-sheets | 0 | 22 | 2 | 71,873,187 | 71,873,187 | 0 | true | 2022-04-14T13:27:11.223Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extract only a specific number from html table sell<p>I have this current lcode in my script which populates a cell in my sheet;</p>
<p><code>sheet.getRange(... |
71,925,457 | Order counted and filtered Google Sheets Query Results<p>I am working on a Google Sheet intended to aid in the analysis of Marketing-related KPIs. For this, I have created (or rather researched from different sources) my first Query, which looks up different columns from a different sheet based on one column "date... | <p>Try</p>
<pre><code>=SORT(QUERY(UNIQUE(QUERY(
Gruppenname_klaeren!A3:I;"SELECT * WHERE I is not null
and B >= date'"&TEXT(today()-A2;"yyyy-mm-dd")&"'
and B <= date '"&TEXT(today();"yyyy-mm-dd")&"'
label I 'Kampagne'"));
"SELECT Col9, count... | Order counted and filtered Google Sheets Query Results | google-sheets|google-query-language | 0 | 19 | 1 | 71,925,751 | 71,925,751 | 0 | true | 2022-04-19T13:05:02.643Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Order counted and filtered Google Sheets Query Results<p>I am working on a Google Sheet intended to aid in the analysis of Marketing-related KPIs. For this, ... |
71,916,825 | want to add values not overwrite react.js and mongoDB<pre><code>function getFilterQuery() {
const completedWorkState = WorkflowStates.findOne({title: 'Completed'});
const inProgressWorkState = WorkflowStates.findOne({title: 'In Progress'});
const identifiedWorkState = WorkflowStates.findOne({title: 'Identified... | <p>You need to concat array in <code>finalQuery.workflowStateId</code>, but you only use object spread syntax to merge objects. You also have to use array spread syntax for <code>.workflowStateId</code> array which is nested in deeper level.</p>
<pre><code>if (params.completed) finalQuery = {
...finalQuery,
...{
... | want to add values not overwrite react.js and mongoDB | javascript|reactjs|mongodb | 0 | 33 | 1 | 71,917,220 | 71,917,220 | 0 | true | 2022-04-18T20:37:30.973Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
want to add values not overwrite react.js and mongoDB<pre><code>function getFilterQuery() {
const completedWorkState = WorkflowStates.findOne({title: 'Com... |
71,961,081 | Store Result of Bash Command in Shell Variable<p>I am trying to store the result of a bash command within a for loop for use in a command. This is what I currently have:</p>
<pre><code>for filename in /home/WIN/USER/files/*
var=$(basename ${filename%.*}) | awk -F'[_.]' '{print $1}'
do echo var
done
</code></pre>
<p>How... | <p>Your <code>for</code> statement is wrong, and your variable assignment statement is also wrong. You shall write something like this:</p>
<pre><code>for filename in /home/WIN/USER/files/*; do
var=$( your shell code goes here ) # you assign the output of the shell code here
echo $var # you echo the results her... | Store Result of Bash Command in Shell Variable | bash|shell|script | 0 | 29 | 1 | 71,961,113 | 71,961,113 | 0 | true | 2022-04-21T21:30:22.837Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Store Result of Bash Command in Shell Variable<p>I am trying to store the result of a bash command within a for loop for use in a command. This is what I cur... |
71,932,663 | React Typescript - Can't stablish type of object well<p>i'm just started learning Typescript. I trying to migrate a project from Javascript, but I got stuck with a custom hook.</p>
<p>The hook, useForm, just handle the onChange event of inputs in a form and then updates their values so I can write in and control their ... | <p>I got it working using:</p>
<pre><code>import { useState } from "react";
interface InitialStateTypes {
[key: string]: string;
}
export const useForm = (initialState: InitialStateTypes): [InitialStateTypes, ({ target }: React.ChangeEvent<HTMLInputElement>) => void, ()=> void] => {
con... | React Typescript - Can't stablish type of object well | reactjs|typescript|react-hooks | 0 | 34 | 2 | 71,934,669 | 71,934,669 | 0 | true | 2022-04-20T00:07:19.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React Typescript - Can't stablish type of object well<p>i'm just started learning Typescript. I trying to migrate a project from Javascript, but I got stuck ... |
71,943,139 | How to get what percentage of total users joined what number of meetings in PostgreSQL?<p>There are two tables, one is called "user_preference" that contains all users:</p>
<pre><code> id | firstname | lastname | email |
</code></pre>
<p>And "match" which combines users with meetups they joined:</p>... | <p>In the end I did this by making simple queries and looping through them in the code, its far from elegant solution but it should work.</p>
<p>If someone posts SQL solution I will accept and upvote it...</p>
<pre><code>export const getDevStats = async () => {
const users = await getRepository(UserPreference).que... | How to get what percentage of total users joined what number of meetings in PostgreSQL? | sql|postgresql | 0 | 30 | 1 | 72,001,023 | 72,001,023 | 0 | true | 2022-04-20T16:26:35.377Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get what percentage of total users joined what number of meetings in PostgreSQL?<p>There are two tables, one is called "user_preference" tha... |
71,800,240 | Why linear_search function do not work correctly?<p>Why this code works only if target==theFirstElement ? it return None even though target==5 or any other element in the list.</p>
<pre><code>def linear_search(lista, target):
for i in range(8):
if lista[i]==target:
return i
return None
... | <p>There is a bug with your code: you should return <code>None</code> only once the for loop is done and you visited all the elements:</p>
<pre><code>def linear_search(lista, target):
for i, elem in enumerate(lista):
if elem == target:
return i
# if you don't find the target return None
... | Why linear_search function do not work correctly? | python|linear-search | 0 | 28 | 2 | 71,800,327 | 71,800,327 | 0 | true | 2022-04-08T16:14:18.677Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why linear_search function do not work correctly?<p>Why this code works only if target==theFirstElement ? it return None even though target==5 or any other e... |
71,897,750 | Android: Can't detect when ScrollView scrolled to the bottom<p>Here is my extracted code. I have tried some solution online but not working</p>
<pre><code> private val scrollView = View.findViewById<NestedScrollView>(R.id.scroll)
scrollView.setOnScrollChangeListener { _, _, Y, _, oY ->
va... | <p>Try this code</p>
<pre><code>scrollView.setOnScrollChangeListener(NestedScrollView.OnScrollChangeListener { view, _, YAxis, _, _ ->
if (view.getChildAt(0).bottom <= scrollView.height + YAxis) {
//this detect when at the bottom
}else{
}
})
</code></pre> | Android: Can't detect when ScrollView scrolled to the bottom | android | 0 | 27 | 1 | 71,897,765 | 71,897,765 | 0 | true | 2022-04-16T21:54:02.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android: Can't detect when ScrollView scrolled to the bottom<p>Here is my extracted code. I have tried some solution online but not working</p>
<pre><code> ... |
71,971,574 | passing value from one page to another using input "type=text" element in javascript<p>page name 3.html</p>
<pre><code><html>
<body>
<form action="4.html" onSubmit="cal()">
<table>
<tr>
<td><input type="text" id="sen&q... | <p>Looks like you have an error when calling the function
onSubmit="<strong>cal()</strong>"</p>
<p>The defined function name is <strong>call()</strong></p>
<p>Apart that you are trying to set the session with key <strong>a</strong> and retrieve it with key <strong>seen</strong>.</p> | passing value from one page to another using input "type=text" element in javascript | javascript|html | 0 | 28 | 1 | 71,971,620 | 71,971,620 | 0 | true | 2022-04-22T15:59:19.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
passing value from one page to another using input "type=text" element in javascript<p>page name 3.html</p>
<pre><code><html>
<body>
<form... |
72,016,645 | End parameter in print() function<p>I'm looking at this code:</p>
<pre><code>import time
def countdown(t):
while t:
mins, secs = divmod(t,60)
timer = '{:02d}:{:02d}'.format(mins,secs)
print(timer, end='\r')
time.sleep(1)
t-=1
print("Timer is completed")
t=inp... | <p>In python, <code>\r</code>in a string stands for the <a href="https://en.wikipedia.org/wiki/Carriage_return" rel="nofollow noreferrer">carriage return</a> character. It does reset the position of the cursor to the start of the current line. The end argument in the print function is the string that is printed after t... | End parameter in print() function | python|timer | 0 | 796 | 2 | 72,016,808 | 72,016,808 | 0 | true | 2022-04-26T15:30:49.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
End parameter in print() function<p>I'm looking at this code:</p>
<pre><code>import time
def countdown(t):
while t:
mins, secs = divmod(t,60)
... |
71,379,908 | How to check if a field of 'type' is undefined in TypeScript?<p>I have created a <code>type</code> in TypeScript which is a bit complex (has objects and maps within it).</p>
<p>Is there a way to check if this type has any undefined value or should I go through every part of it to check if it is undefined?</p>
<p>Would ... | <p>I have create a recursive function to check an object and its attributes even if it has a nested object and return a <em><code>boolean</code></em></p>
<pre><code>function checkObjectsForUndefined(myObject:object | undefined):boolean
{
if(myObject === undefined)
return true;
let result = false;
... | How to check if a field of 'type' is undefined in TypeScript? | typescript|undefined | 0 | 1,039 | 2 | 71,843,281 | 71,843,281 | 0 | true | 2022-03-07T10:49:47.497Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to check if a field of 'type' is undefined in TypeScript?<p>I have created a <code>type</code> in TypeScript which is a bit complex (has objects and maps... |
72,029,796 | How do I convert multiple multiline txt files to excel - ensuring each file is its own line, then each line of text is it own row? Python3<p>Using openpyxl and Path I aim to:
Create multiple multiline .txt files,
then insert .txt content into a .xlsx file ensuring file 1 is in column 1 and each line has its own row.</p... | <p>The problem is in the for loop while writing, change the line <code>sheet.cell(row=row, column=col).value = listOfText[txtFile][0]</code> to <code> sheet.cell(row=col, column=row).value = listOfText[row-1][col-1]</code> and it will work</p> | How do I convert multiple multiline txt files to excel - ensuring each file is its own line, then each line of text is it own row? Python3 | python-3.x|openpyxl|xlsx | 0 | 33 | 1 | 72,030,075 | 72,030,075 | 0 | true | 2022-04-27T13:37:20.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I convert multiple multiline txt files to excel - ensuring each file is its own line, then each line of text is it own row? Python3<p>Using openpyxl a... |
71,850,263 | How do I toggle tkinter button text when right clicked<p>I'm trying to get these buttons to toggle the text between "F" and "" when right-clicked. Right now, nothing happens when I right-click on them, not even the little relief animation that normally occurs when a button is pressed. The problem is... | <p>I needed to use cget() instead of config() to check the text. Changing that makes it work properly!</p>
<pre><code>def right(ind):
if btn_grid[ind].cget("text") == "":
btn_grid[ind].config(text="F")
elif btn_grid[ind].cget("text") == "F":
btn_... | How do I toggle tkinter button text when right clicked | python|tkinter | 0 | 29 | 1 | 71,850,325 | 71,850,325 | 0 | true | 2022-04-12T23:46:08.677Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I toggle tkinter button text when right clicked<p>I'm trying to get these buttons to toggle the text between "F" and "" when right... |
71,238,000 | ZingChart nested pie: customising chart<p>How can I get a nested ZingChart pie chart to (a) start at 12 o'clock, and (b) have different colours for the rings?</p>
<p>I've tried using the <code>plot.styles</code> array for the colours, and the <code>refAngle</code> for the starting angle, but those only seem to apply to... | <p>For the North orientation, in your configuration just add</p>
<pre><code> plot: {
refAngle: -90
},
</code></pre>
<p>If you want 2 slices to have different colors, use 2 items in your series:</p>
<pre><code> {
text: 'Used',
values: [10, 0],
backgroundColor: "blue... | ZingChart nested pie: customising chart | zingchart | 0 | 30 | 1 | 71,965,686 | 71,965,686 | 0 | true | 2022-02-23T13:41:58.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ZingChart nested pie: customising chart<p>How can I get a nested ZingChart pie chart to (a) start at 12 o'clock, and (b) have different colours for the rings... |
71,948,664 | Insert tab character into SlateJS text editor<p><strong>How to insert tab characters into SlateJS?</strong></p>
<p>So inserting <code>&emsp;</code> is a tab character, however, when inserting this as text, it appears as the literal characters <code>&emsp;</code> not the text with a tab spacing.</p>
<pre><code>/... | <p>Just dawned on me I could insert 4 spaces instead of a tab character... Although, this isn't perfect, you have to backspace 4 times instead of a single time like tabs.</p>
<pre><code>const insertText = (editor, format) => {
Editor.insertText(editor, ' ')
}
</code></pre>
<p>Could also insert tab space chara... | Insert tab character into SlateJS text editor | javascript|reactjs|slatejs | 0 | 270 | 2 | 71,976,104 | 71,976,104 | 0 | true | 2022-04-21T03:40:26.150Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Insert tab character into SlateJS text editor<p><strong>How to insert tab characters into SlateJS?</strong></p>
<p>So inserting <code>&emsp;</code> is a ... |
71,256,656 | Debugging Azure Function with vscode<p>I've been struggling to debug an <code>HttpTrigger</code> type azure function with vscode.</p>
<p>My assumption is that the issue might be related to the config files within <code>.vscode/</code> or at worst, my own environment.</p>
<p>As of now, when I try to debug a recently cre... | <p>Replacing the <code>type</code> from <strong>process</strong> to <strong>shell</strong> inside <code>tasks.json</code> solved it.</p>
<p><a href="https://i.stack.imgur.com/P3ZLk.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P3ZLk.gif" alt="enter image description here" /></a></p>
<ul>
<li>FWIW, ... | Debugging Azure Function with vscode | visual-studio-code|azure-functions|vscode-debugger|azure-functions-core-tools | 0 | 523 | 1 | 71,500,427 | 71,500,427 | 0 | true | 2022-02-24T18:32:20.597Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Debugging Azure Function with vscode<p>I've been struggling to debug an <code>HttpTrigger</code> type azure function with vscode.</p>
<p>My assumption is tha... |
71,820,624 | Delete multiple array // "route doesn't exist"<p>I tried to delete the array of multiple elements but I guess I do something wrong.</p>
<p>My app looks like <a href="https://i.stack.imgur.com/MPVxd.png" rel="nofollow noreferrer">this picture</a></p>
<p>So, when I press on mass delete I get an error that the route doesn... | <p>The error is because the only delete endpoint that exists is the one where you pass an id as the parameter <code>router.route("/:id").delete(deleteProduct);</code>, so when you target <code>localhost:5000/api/v1/</code> with a <code>HTTP DELETE</code> it throws a 404 error.</p>
<p>For multiple deletion you... | Delete multiple array // "route doesn't exist" | node.js|reactjs | 0 | 31 | 1 | 71,820,718 | 71,820,718 | 0 | true | 2022-04-10T21:14:27.927Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Delete multiple array // "route doesn't exist"<p>I tried to delete the array of multiple elements but I guess I do something wrong.</p>
<p>My app looks like ... |
71,436,156 | Create error-logfile only if there is an error<p>I have a simple powershell-script which I use to execute a python-script.
I have predefined paths for redirectStandardOutput and redirectstandarderror so I can check on the execution afterwards.</p>
<pre><code>$datestring = (Get-Date).ToString(“s”).Replace(“:”,”-”)
$bas... | <p>I think that by using parameter <code>-RedirectStandardError</code>, the log file is always created, whether errors will be written in it or not.<br />
How about checking if an error log file exists and has zero length afterwards. If so, delete it?</p>
<pre><code>$datestring = (Get-Date).ToString("s").Repl... | Create error-logfile only if there is an error | python|powershell|logfile | 0 | 39 | 3 | 71,441,582 | 71,441,582 | 0 | true | 2022-03-11T09:11:41.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Create error-logfile only if there is an error<p>I have a simple powershell-script which I use to execute a python-script.
I have predefined paths for redire... |
72,017,052 | How do I get multiple listbox selectedItems to a Grid<p>Hi Thanks so much for your help, I am just starting coding and trying to send more than one item to the Grid but using the clistBox1.SelectedIndices.Count is not working as it is only getting the same information n times (count result). I am looking for maybe some... | <p>instead of <code>SelectedIndices</code> use <code>SelectedItems</code>:</p>
<pre><code>private void button1_Click(object sender, EventArgs e)
{
dataGridView1.Rows.Clear();
foreach (var item in listBox1.SelectedItems)
{
var frase = item.ToString();
int index = dataGridView1.Rows.Add... | How do I get multiple listbox selectedItems to a Grid | c#|.net|visual-studio | 0 | 31 | 2 | 72,017,798 | 72,017,798 | 0 | true | 2022-04-26T15:59:37.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I get multiple listbox selectedItems to a Grid<p>Hi Thanks so much for your help, I am just starting coding and trying to send more than one item to t... |
71,949,220 | How can I add a conditional within my model that changes a model field based on a previous fields value?<p>Using Django/python. So I have a 'food' model that is taking multiple user inputs, one of which is 'type' and has the options of 'fresh' and 'pantry'.</p>
<p>Another is a DateField that represents an expiration da... | <p>try overriding save method with something like this</p>
<pre><code>def save(self, *args, **kwargs):
if not self.exp:
if self.type == 'Fresh':
self.exp = Date.now()+timedelta(days=3)
super().save(*args, **kwargs)
</code></pre>
<p>just verify if Date.now() is properly defined</p>
<p>or for ... | How can I add a conditional within my model that changes a model field based on a previous fields value? | python|python-3.x|django-models|django-forms|conditional-statements | 0 | 32 | 1 | 71,949,438 | 71,949,438 | 0 | true | 2022-04-21T05:10:35.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I add a conditional within my model that changes a model field based on a previous fields value?<p>Using Django/python. So I have a 'food' model that... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.