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,305,692
HTML5 Table Tab Focus, how to always iterate over the same row with the tab key?<p>The following situation: there is a HTML table.</p> <p>With the tab key, the user can now go over the individual fields of the row. At the last field, however, it jumps to the next row.</p> <p><strong>What I want:</strong> it should jump...
<p>I found a solution. the last element now has a function <code>onfocusout=setnewfocus()</code> and this simply sets the focus back to the first element.</p>
HTML5 Table Tab Focus, how to always iterate over the same row with the tab key?
javascript|html|css|html-table
-1
72
1
72,306,561
72,306,561
0
true
2022-05-19T13:44:18.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: HTML5 Table Tab Focus, how to always iterate over the same row with the tab key?<p>The following situation: there is a HTML table.</p> <p>With the tab key, t...
72,267,219
Using http.dart to Call CoinMarketCap API. Not sure what to do<p>So I'm new to flutter and dart and am trying to call from the CoinMarketCap API. I'm using the HTTP package to call the data and the API. I'm not super familiar with them but here's what I came up with...</p> <pre><code>import 'package:http/http.dart' as ...
<p><strong>CODE UPDATED #1</strong></p> <pre><code>import 'package:wnetworking/wnetworking.dart'; class CoinMarketCap { static const _apiKey = '111111111111111111111111111111'; static const _url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency'; static Future&lt;void&gt; getListingLatest(int limit) async...
Using http.dart to Call CoinMarketCap API. Not sure what to do
flutter|dart|visual-studio-code|coinmarketcap
0
72
2
72,267,781
72,267,781
0
true
2022-05-17T01:25:31.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using http.dart to Call CoinMarketCap API. Not sure what to do<p>So I'm new to flutter and dart and am trying to call from the CoinMarketCap API. I'm using t...
72,392,133
Using .loc to categorize data and iterate over a dataframe using python to a CSV file<p>I have a CSV file with a list of items that I want to categorize based on a different category rather than color. The CSV file is:</p> <pre><code> ITEM PRICE QUANTITY CATEGORY 0 Carrot 5 10 Orange 1 Potato ...
<p>First of all, you're using == for assignment instead of =.</p> <p>You can use this to assign CATEGORY based on ITEM value:</p> <pre><code>df.loc[df['ITEM'] == 'Carrot', 'CATEGORY'] = 'VEGETABLE' </code></pre>
Using .loc to categorize data and iterate over a dataframe using python to a CSV file
python|pandas|dataframe|csv
0
72
3
72,392,235
72,392,235
0
true
2022-05-26T12:51:53.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using .loc to categorize data and iterate over a dataframe using python to a CSV file<p>I have a CSV file with a list of items that I want to categorize base...
72,365,117
Does VSCode snippet syntax allow optional parameters to a command<p>I recently started using a 3rd party extension for language supporting robot programming (<a href="https://github.com/RoboDK" rel="nofollow noreferrer">RoboDK</a>). The extension is pretty good but doesn't include many of the commands I would like to u...
<blockquote> <p>Is there a way to edit the snippets json to not enter the optional part unless I start typing a backslash followed by text?</p> </blockquote> <p>No, I don't think there is any way to do that within the same snippet. You could make another snippet with the backslash prefix but that is cumbersome.</p> <p...
Does VSCode snippet syntax allow optional parameters to a command
visual-studio-code|robotics|vscode-snippets
0
72
1
72,369,226
72,369,226
0
true
2022-05-24T14:55:02.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does VSCode snippet syntax allow optional parameters to a command<p>I recently started using a 3rd party extension for language supporting robot programming ...
72,260,891
How to change a UI's color when its being hovered over<p>I'm trying to make a UI that changes to a lighter color when its hovered over (roblox's default is darker)</p> <p>MouseEnter and MouseLeave have already been tested and don't work the way I want it to. MouseEnter keeps the darkening and makes my target color dark...
<p>MouseEnter and MouseLeave will work, you just need to disable your button's <a href="https://developer.roblox.com/en-us/api-reference/property/GuiButton/AutoButtonColor" rel="nofollow noreferrer">AutoButtonColor</a> property. From the docs :</p> <blockquote> <p>The AutoButtonColor determines whether the button autom...
How to change a UI's color when its being hovered over
lua|roblox
0
72
1
72,263,028
72,263,028
0
true
2022-05-16T14:31:24.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change a UI's color when its being hovered over<p>I'm trying to make a UI that changes to a lighter color when its hovered over (roblox's default is d...
72,278,242
Adding Password With Special Characters to WildFly Credential Store<p>I am configuring a [second] datasource in WildFly and I seem to be having trouble adding the password to the credential store. I can create the datasource (and connect) using the clear-text password option; but when I add the password to and attempt ...
<p>In addition to the other special characters, I did also need to escape the '\' characters in the password. My issue apparently was the updates I was making to the credential store were not being used until the credential store was reloaded. I discovered this by writing a quick REST end-point to grab the credential ...
Adding Password With Special Characters to WildFly Credential Store
wildfly|wildfly-26
0
72
1
72,352,993
72,352,993
0
true
2022-05-17T17:20:03.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding Password With Special Characters to WildFly Credential Store<p>I am configuring a [second] datasource in WildFly and I seem to be having trouble addin...
72,247,280
Array by percentage of the previous value<p>I have an array of strings, amount and a percentage.</p> <p>Every key is found in the object. Its value is equal to the previous value plus the percentage.</p> <p>This is the code I wrote:</p> <pre><code>const keys = ['a', 'b', 'c']; const amount = 300; const precentage = 0.5...
<p>You can simply track the previous amount and update it on each iteration.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const keys = ['a', 'b', 'c']; const amount = 300; c...
Array by percentage of the previous value
javascript|arrays
1
72
7
72,247,371
72,247,371
0
true
2022-05-15T10:06:01.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Array by percentage of the previous value<p>I have an array of strings, amount and a percentage.</p> <p>Every key is found in the object. Its value is equal ...
72,262,247
How to delete an element of a list which is greater than a value?<p>I have a function that takes a string as its input. The string can contain Integer numbers as well. I want to remove the spaces between the words and any integer that is greater than, for example, 5. How can I do this?</p> <pre><code>def my(str): x...
<p>You can add all the requirements into a single list comprehension:</p> <pre><code>p = [x for x in '7 monkeys and 1 tiger' if ((not x.isdigit() and not x ==' ') or (x.isdigit() and int(x) &lt; 5))] print(p) </code></pre> <p>There are two choices, the index is a digit and less than 5: <code>(x.isdigit() and int(x) &lt...
How to delete an element of a list which is greater than a value?
python
-1
72
2
72,262,394
72,262,394
1
true
2022-05-16T16:07:13.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to delete an element of a list which is greater than a value?<p>I have a function that takes a string as its input. The string can contain Integer number...
72,252,063
API for getting language server info from extension (bracket pairs, function begin/end, ...)<p>I'm currently writing an extension for VSCode which needs to have some good knowledge about the currently shown code in the editor and I'm wondering if there is some API available which can give me the needed information (e.g...
<p>You can have only half of that via VS Code APIs.</p> <blockquote> <p>Is pos inside a function and if so, where does the function start &amp; end?</p> </blockquote> <p>Using the <code>vscode.executeDocumentSymbolProvider</code> command, you can gather all functions from a file and check if the current position is ins...
API for getting language server info from extension (bracket pairs, function begin/end, ...)
visual-studio-code|vscode-extensions
0
72
1
72,265,396
72,265,396
1
true
2022-05-15T20:45:33.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: API for getting language server info from extension (bracket pairs, function begin/end, ...)<p>I'm currently writing an extension for VSCode which needs to h...
72,265,934
Checking if a set of strings exist in a column with a custom function<p>Fellow contributors,</p> <p>I would like to check if a set of specific key words exists on a grouped pandas DataFrame. The words I would like to check are <code>start</code>, <code>pending</code> and either <code>finished</code> or <code>almost_fin...
<p>You can aggregate with <code>set</code> and use <code>intersection</code> to check.</p> <p>But first, I would map <code>partially_finished</code> or <code>almost_finished</code> to <code>finished</code>, if these should be treated equally.</p> <pre class="lang-py prettyprint-override"><code>df['status'] = df.status....
Checking if a set of strings exist in a column with a custom function
python-3.x|pandas|dataframe
0
72
3
72,267,300
72,267,300
1
true
2022-05-16T21:43:19.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Checking if a set of strings exist in a column with a custom function<p>Fellow contributors,</p> <p>I would like to check if a set of specific key words exis...
72,267,082
Monitor not showing the right memory usage<p>I want to know how I can use the resource monitor, any kind, <code>htop</code> <code>top</code>, etc. to track the memory usage of a processes. Let's write a simple C program.</p> <pre class="lang-c prettyprint-override"><code>int main() { while(1){} return 0; } </co...
<blockquote> <p>As I understood, the code has no variable, no malloc and all kinds of statement that requires any additional memory usage other than the code itself, which will be loaded to the memory when running.</p> </blockquote> <p>Your code doesn't have much; but your code is typically linked with some startup cod...
Monitor not showing the right memory usage
c|memory|memory-management|operating-system
0
72
1
72,268,724
72,268,724
1
true
2022-05-17T00:50:57.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Monitor not showing the right memory usage<p>I want to know how I can use the resource monitor, any kind, <code>htop</code> <code>top</code>, etc. to track t...
72,269,970
Python dataclass and date issue<p>I have this data class in python.</p> <pre><code>from dataclasses import dataclass from dataclasses_json import dataclass_json @dataclass @dataclass_json class Test: publis...
<p>Another option you could look into, assuming that you don't need to work with <code>marshmallow</code> schemas, would be the <a href="https://dataclass-wizard.readthedocs.io/" rel="nofollow noreferrer">dataclass-wizard</a>. It should overall be slightly faster - I added a quick comparison i put together below.</p> <...
Python dataclass and date issue
python
-2
72
1
72,275,063
72,275,063
1
true
2022-05-17T07:41:13.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python dataclass and date issue<p>I have this data class in python.</p> <pre><code>from dataclasses import dataclass from dataclasses_json import dataclass_j...
72,276,098
React: how to update an array in a usestate<p>I'm using axios to populate an array with useState.</p> <p>When the page render in the first time, the array update. But when I call the function after an edit, nothing happens.</p> <pre><code>const [recursos, setRecursos] = useState([]); const getRecursos = () =&gt; { ...
<p>First of all, any of the code you write should be in English.</p> <p>In terms of the updating of the array, please try to:</p> <pre><code>setRecursos([...recursos, retorno.Values]) </code></pre> <p>as you might be overwriting the previous values and only store the values from the latest response.</p>
React: how to update an array in a usestate
javascript|reactjs
0
72
2
72,276,202
72,276,202
1
true
2022-05-17T14:45:18.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React: how to update an array in a usestate<p>I'm using axios to populate an array with useState.</p> <p>When the page render in the first time, the array up...
72,276,148
How to "flatten" list of dictionaries in python<p>I have a list of dictionaries that looks like this:</p> <pre><code>test_dict = [{'id': 0, 'name': ['Jim'], 'lastname': ['kkk']}, {'id': 1, 'name': ['John'], 'lastname': ['lll']}] test_dict [{'id': 0, 'name': ['Jim'], 'lastname': ['kkk']}, {'id': 1, 'name': ['John'], ...
<p>Try this in one line:</p> <pre><code>result = {str(i[&quot;id&quot;]): {&quot;name&quot;: i[&quot;name&quot;], &quot;lastname&quot;: i[&quot;lastname&quot;]} for i in test_dict} </code></pre> <p>the result will be:</p> <pre><code>{'0': {'name': ['Jim'], 'lastname': ['kkk']}, '1': {'name': ['John'], 'lastname': ['ll...
How to "flatten" list of dictionaries in python
python|list|dictionary|flatten
0
72
3
72,276,208
72,276,208
1
true
2022-05-17T14:47:43.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to "flatten" list of dictionaries in python<p>I have a list of dictionaries that looks like this:</p> <pre><code>test_dict = [{'id': 0, 'name': ['Jim'], ...
72,277,334
Comparing characters at the same index of two strings<p>I am trying to compare the characters of two strings at a given index. However, I am getting the following error:</p> <pre><code>Line 9: Char 26: error: invalid operands to binary expression ('const __gnu_cxx::__alloc_traits&lt;std::allocator&lt;char&gt;, char&gt;...
<p>In your code, <code>smallest</code> is a</p> <pre><code>std::vector&lt;std::string&gt;::iterator const </code></pre> <p>which is a random access iterator, hence provides <code>operator[]</code>.</p> <p>However,</p> <pre><code>smallest[i] </code></pre> <p>is equivalent to</p> <pre><code>*(smallest + i) </code></pre> ...
Comparing characters at the same index of two strings
c++
0
72
1
72,277,842
72,277,842
1
true
2022-05-17T16:06:04.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Comparing characters at the same index of two strings<p>I am trying to compare the characters of two strings at a given index. However, I am getting the foll...
72,276,666
How to use Variables in GitLab CI pipeline without AttributeError?<p>I am using a variable to define the ROOT_DIR in my .gitlab-ci.yml</p> <pre><code>variables: ROOT_DIR: &quot;/builds/company/projects/projectname/&quot; </code></pre> <p>in the job I call the test.py function:</p> <pre><code>ut-job: stage: test s...
<p>The issue here is that when you call <code>unittest.main</code>, it inspects the contents of <code>sys.argv</code> for parameters, in this case, test names. It will try to use provided arguments to get tests to run by using getattr on the current module. In this case, resulting in an attribute error.</p> <p>For exam...
How to use Variables in GitLab CI pipeline without AttributeError?
python|gitlab|continuous-integration
1
72
2
72,281,131
72,281,131
1
true
2022-05-17T15:21:12.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use Variables in GitLab CI pipeline without AttributeError?<p>I am using a variable to define the ROOT_DIR in my .gitlab-ci.yml</p> <pre><code>variabl...
72,289,850
MongoDB - How to use $graphLookup then $group and $sort after<p>Suppose I have this dataset:</p> <pre class="lang-json prettyprint-override"><code> [ { _id: '1', name: 'test1', children: ['test2', so on...], status: 'enabled', version: 1, },...
<p>You can do the followings in aggregation pipeline:</p> <ol> <li><code>$unwind</code> the the <code>$graphLookup</code> result.</li> <li><code>$sort</code> by <code>version</code></li> <li><code>$group</code> at <code>spreadChildren.name</code> level and persist all fields; use <code>$first</code> to keep the largest...
MongoDB - How to use $graphLookup then $group and $sort after
mongodb|mongodb-query|aggregation-framework
0
72
1
72,290,506
72,290,506
1
true
2022-05-18T13:09:36.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MongoDB - How to use $graphLookup then $group and $sort after<p>Suppose I have this dataset:</p> <pre class="lang-json prettyprint-override"><code> [ ...
72,279,104
Unable to connect to mysql flexible server from deployed node azure function using sequelize and Serverless Framework<p>As the title says, I have a series of azure functions (function app) which call on a database (mysql) also deployed on azure using sequelize and all of them are in the same resource group (deployed to...
<p>you can add the required configuration setting physically inside the azure portal.</p> <pre><code>function app &gt;&gt; configuration &gt;&gt; application setting </code></pre> <p><a href="https://i.stack.imgur.com/IfTxh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IfTxh.png" alt="enter image ...
Unable to connect to mysql flexible server from deployed node azure function using sequelize and Serverless Framework
mysql|node.js|azure|azure-functions|sequelize.js
0
72
1
72,306,664
72,306,664
1
true
2022-05-17T18:36:35.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to connect to mysql flexible server from deployed node azure function using sequelize and Serverless Framework<p>As the title says, I have a series of...
72,309,764
Customising the default device access permission dialog in Android<p>I have a business requirement wherein when user is working on his mobile phone and access my app then I need to show a single custom permission dialog to allow/deny the permission. Is it possible to overwrite the text of the default permission popup. ...
<p>It is impossible and will never be possible!</p> <p>If you could change the text, you could lie to the user about what permission you are requesting, and thus create malware.</p> <p>What you can do, is display &quot;rational text&quot;, a separate dialog explaining to the user why your application needs the specific...
Customising the default device access permission dialog in Android
android
0
72
1
72,309,868
72,309,868
1
true
2022-05-19T18:55:29.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Customising the default device access permission dialog in Android<p>I have a business requirement wherein when user is working on his mobile phone and acces...
72,311,364
App crashes when sending image to Firebase storage<p>So in my app i need profile images but when i select one it crashes my app. I added all the sdk's also tried fixing it by adding permission for Google photo's but that didn't help. I really have no idea what could have caused this problem I also added my bucket url s...
<p>If you look at the first few lines of the stack trace you can find out a few things</p> <pre><code>java.lang.IllegalArgumentException: quality must be 0..100 at android.graphics.Bitmap.compress(Bitmap.java:1436) at com.example.dogsharev2.activities.TinderActivity.storeImage(TinderActivity.kt:155) </c...
App crashes when sending image to Firebase storage
android|firebase|kotlin|firebase-storage
-2
72
1
72,318,827
72,318,827
1
true
2022-05-19T21:41:34.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: App crashes when sending image to Firebase storage<p>So in my app i need profile images but when i select one it crashes my app. I added all the sdk's also t...
72,318,925
In array of multiple objects and key value pairs, convert all number values to negative<pre><code>let array = [ {2008: 234, 2009: 234, 2010: 234, 2011: 234, 2012: 234, Type: 'A', ID: 'A1'}, {2008: 237, 2009: 243, 2010: 325, 2011: 378, 2012: 375, Type: 'B', ID: 'B1'}, {2008: 172, ...
<p>you were almost there</p> <p>try this</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>let array = [ {2008: 234, 2009: 234, 2010: 234, 2011: 234, 2012: 234, Type: 'A', ID: 'A...
In array of multiple objects and key value pairs, convert all number values to negative
javascript|arrays|object
0
72
2
72,319,042
72,319,042
1
true
2022-05-20T12:26:31.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In array of multiple objects and key value pairs, convert all number values to negative<pre><code>let array = [ {2008: 234, 2009: 234, 2010: 234, 2011: 234, ...
72,313,746
Is there a way to count auto-incrementally?<p>The question is:</p> <p>Get the 5 podcasts with the most views, each listen is counted if <code>timeDuration &gt; 29s</code> (only taking active songs). Each 29s will count as 1 TIMES so it will count base on PodcastID. 1 podcast with multiple episodes, 1 episode of multipl...
<p>If I understand correctly, then a report row means, someone listened to music in the podcast. The row contains the duration in seconds which you want to regard as a number of blocks of 29 seconds. So, divide the durations by 29 and work with this.</p> <pre><code>with listened as ( select id as id_podcast, ...
Is there a way to count auto-incrementally?
sql|sql-server
-1
72
1
72,325,061
72,325,061
1
true
2022-05-20T04:56:06.287Z
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 count auto-incrementally?<p>The question is:</p> <p>Get the 5 podcasts with the most views, each listen is counted if <code>timeDuration &g...
72,342,547
Remove css linear-gradient white line<p>I think it's kind of an optical illusions... but wonder how to remove white line of end of linear-gradient. Here is my css code.</p> <pre><code>position: absolute; z-index: 1; bottom: 0; background: linear-gradient(180deg, rgba(210, 210, 210, 0) 18.61%, #262626 100%); width: 100%...
<p>This is what you need! <a href="https://css-tricks.com/easing-linear-gradients/" rel="nofollow noreferrer">Easing linear gradients</a>.</p> <p>It's a really interesting read, but it essentially boils down to manually easing your gradient like this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-co...
Remove css linear-gradient white line
css|gradient|linear-gradients
1
72
1
72,342,588
72,342,588
1
true
2022-05-23T01:58:37.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove css linear-gradient white line<p>I think it's kind of an optical illusions... but wonder how to remove white line of end of linear-gradient. Here is m...
72,341,779
Pass param to @proxy location?<p>I'd like to set up nuxt with NGINX as load balancer. Additionally, I'd like to add some caching to the images.</p> <p>Now I get 404 for my images using this:</p> <pre><code> location ~ ^/img.+\.(?:ico|gif|jpe?g|webp|png|woff2?|eot|otf|ttf|svg|js|css)$ { expires 365d; ...
<p>No, it isn't completely wrong to specify an URI using variables for the <code>proxy_pass</code> directive inside the named (as well as the regex) locations. However such a thing will have a drawback - if you can't specify your upstream address using IP rather than hostname, you'll need either a <a href="https://ngin...
Pass param to @proxy location?
nginx|nginx-reverse-proxy|nginx-location
0
72
1
72,344,258
72,344,258
1
true
2022-05-22T22:43:48.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass param to @proxy location?<p>I'd like to set up nuxt with NGINX as load balancer. Additionally, I'd like to add some caching to the images.</p> <p>Now I ...
72,348,447
How can I access JavaScript Class and it's methods in browser Window object?<p>I have a JavaScript class that I want to read and set a property called <code>selection</code> of it from another file, and I was trying to access the class/methods from the browser <code>window</code> object, but the class doesn't show up t...
<p>If you want to define a class and use its own instance variable, you can do this</p> <pre class="lang-js prettyprint-override"><code>class UI { constructor() { this.selection = {}; // I want to read and set this property } } window.UI = new UI() window.UI.selection.name = &quot;foo&quot; console.log...
How can I access JavaScript Class and it's methods in browser Window object?
javascript|oop
0
72
2
72,348,608
72,348,608
1
true
2022-05-23T12:22:07.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I access JavaScript Class and it's methods in browser Window object?<p>I have a JavaScript class that I want to read and set a property called <code>...
72,325,245
C# Can we instantiate Interface with concrete type in ViewModel<p>I'm trying to implement MVVM pattern in <code>WPF</code> app. I've used dependency injection to get types inside my viewmodel's constructor like this.</p> <pre><code>private IEntity _newEntity; private readonly IEntityService _entityService; public Main...
<p>If the view model is responsible for creating entities, then creating these by doing <code>new Entity()</code> is perfectly fine.</p> <p>The other option is to inject the view model with a factory that creates the entities on the behalf of the view model.</p>
C# Can we instantiate Interface with concrete type in ViewModel
c#|wpf|mvvm
0
72
2
72,349,125
72,349,125
1
true
2022-05-20T22:15:42.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Can we instantiate Interface with concrete type in ViewModel<p>I'm trying to implement MVVM pattern in <code>WPF</code> app. I've used dependency injectio...
72,350,241
Im trying to sort a list of Cities and their Temperature using a bubblesort<p>Im fairly new to C++ and im trying to convert an int &quot;city.temp[4]&quot; to a string and then adding that to an already existing string &quot;city.name[4]&quot; which would then sort the cities and their temperatures based on low to high...
<p>The good solution is to have a City-class with a name and a temperature and swap cities based on the order of the temperature with <code>std::sort</code>.</p> <p>The easy fix for now is to use <code>std::swap</code> to swap the temperatures and at the same time swap the names:</p> <pre><code>if(city.temp[j] &gt; ci...
Im trying to sort a list of Cities and their Temperature using a bubblesort
c++
-2
72
1
72,350,390
72,350,390
1
true
2022-05-23T14:27:07.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Im trying to sort a list of Cities and their Temperature using a bubblesort<p>Im fairly new to C++ and im trying to convert an int &quot;city.temp[4]&quot; t...
72,349,133
Plot your own generated confidence interval with ggplot2 in R<p>Following this question <a href="https://stackoverflow.com/questions/72339064/bootstrapping-ci-for-a-quantile-regression-in-r-outside-the-quantreg-framework/72340868#72340868">Bootstrapping CI for a quantile regression in R outside the quantreg framework</...
<p>As mentioned in the comments, you can do this with <code>geom_ribbon()</code>, you just need to merge the CI data with the model coefficient data.</p> <pre class="lang-r prettyprint-override"><code>CIs_to_plot &lt;- map_dfr(1:dim(CI_mod1)[3], ~as_tibble(CI_mod1[,,.x], rownames = &quot;pctle&quot;), ...
Plot your own generated confidence interval with ggplot2 in R
r|ggplot2|regression|quantile-regression
0
72
1
72,356,013
72,356,013
1
true
2022-05-23T13:11:13.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Plot your own generated confidence interval with ggplot2 in R<p>Following this question <a href="https://stackoverflow.com/questions/72339064/bootstrapping-c...
72,364,597
iCal4j example snippet produces the wrong output<p>When I run the code snippet present under this link, no output is produced.</p> <p><a href="https://www.ical4j.org/examples/model/#creating-a-meeting-of-four-hour-duration" rel="nofollow noreferrer">https://www.ical4j.org/examples/model/#creating-a-meeting-of-four-hour...
<p>I figured it out. I was using 4.0.0-alpha version. However, when I switched it to the version: 3.2.2 it worked fine.</p>
iCal4j example snippet produces the wrong output
ical4j
0
72
1
72,365,281
72,365,281
1
true
2022-05-24T14:20:54.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: iCal4j example snippet produces the wrong output<p>When I run the code snippet present under this link, no output is produced.</p> <p><a href="https://www.ic...
72,359,149
When to choose Example based testing and property based for Stateful Testing<p>I'm doing unit testing mostly these days for Android SDK in Android Studio and using <a href="https://github.com/jlink/jqwik" rel="nofollow noreferrer">Jqwik</a> which is a Property-Based testing tool on the JUnit Platform.</p> <p>While expl...
<p>For me it’s usually not an either-or question, but examples and properties often complement each other. Whereas examples are good starting points for the intended behaviour of the code under test, properties serve to give me sufficient trust in the breadth of functionality and expected behaviour in edge and corner c...
When to choose Example based testing and property based for Stateful Testing
unit-testing|testing|property-based-testing|jqwik
0
72
2
72,367,896
72,367,896
1
true
2022-05-24T07:53:47.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When to choose Example based testing and property based for Stateful Testing<p>I'm doing unit testing mostly these days for Android SDK in Android Studio and...
72,367,820
margin between two select box<p>I have two select box one by one like below. And my prob is I would like to give some space (margin) in between this select box.</p> <pre><code> import Select from '@mui/material/Select' &lt;FormControl&gt; &lt;InputLabel id=&quot;demo-simple-select-label&quot;...
<p>Wrap all form controls with <a href="https://mui.com/material-ui/react-stack/" rel="nofollow noreferrer">Mui <code>Stack</code> component</a>.</p> <p>Use the <code>spacing</code> prop to set the exact space you need between the components.</p>
margin between two select box
reactjs|material-ui
0
72
2
72,367,936
72,367,936
1
true
2022-05-24T18:29:52.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: margin between two select box<p>I have two select box one by one like below. And my prob is I would like to give some space (margin) in between this select ...
72,372,717
How to check "switch" statements with json data in swift<p>I need to check multiple if conditions in for loop so, i am not able to check like that so how to use <code>switch</code> statements with this below code</p> <p><strong>code:</strong> here how to turn below code into <code>switch</code> statements. please guide...
<p>You can use Switch Statement like this</p> <pre><code>switch self.keyword { case oneSerdet.sub_category?.title: break case oneSerdet.category?.title: break default: break } </code></pre>
How to check "switch" statements with json data in swift
ios|swift|if-statement|switch-statement
-2
72
1
72,372,923
72,372,923
1
true
2022-05-25T06:14:49.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check "switch" statements with json data in swift<p>I need to check multiple if conditions in for loop so, i am not able to check like that so how to ...
72,364,415
Refactoring: How to replace a type (and update imports)?<p>i.e. currently we use a type <code>OldType</code> from an npm package <code>@old-package</code> in our code base.</p> <p>We want to replace it with our own type <code>NewType</code>, which can be imported via <code>@new-package</code>.</p> <h1>Example</h1> <h2>...
<p>Structural searching for imports is not supported/implemented at this time (related feature request: <a href="https://youtrack.jetbrains.com/issue/IDEA-285199" rel="nofollow noreferrer">IDEA-285199</a>). You can try some solutions available on the web, see <a href="https://www.npmjs.com/package/refactor-imports?acti...
Refactoring: How to replace a type (and update imports)?
typescript|intellij-idea|refactoring
0
72
1
72,381,358
72,381,358
1
true
2022-05-24T14:07:34.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Refactoring: How to replace a type (and update imports)?<p>i.e. currently we use a type <code>OldType</code> from an npm package <code>@old-package</code> in...
72,383,785
PasswordCredential does not store the data<p>I'm using the PasswordCredential API in Google Chrome and Edge to store authentication credentials, however this data is not saved.</p> <p>I'm using the code below, and I only fire it if my AJAX login is successful.</p> <pre><code>var cred = new PasswordCredential({ name...
<p>As per <a href="https://w3c.github.io/webappsec-credential-management/#algorithm-store" rel="nofollow noreferrer">W3C</a> it store api will return the promise to make sure it has raised proper request to browser or not, it will not tell if use save or not. If you want to achieve this, you may create setInterval wher...
PasswordCredential does not store the data
javascript|html
0
72
1
72,384,005
72,384,005
1
true
2022-05-25T20:26:48.147Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PasswordCredential does not store the data<p>I'm using the PasswordCredential API in Google Chrome and Edge to store authentication credentials, however this...
72,388,965
Aesthetics of Kable Extra and Rmardown<p>I am reproducing the following code in R to style my table</p> <pre><code> library(kableExtra) library(knitr) item&lt;-c(&quot;question1.NATURALES&quot; , &quot;question2.NATURALES&quot; , &quot;question3.NATURALES&quot; , &quot;question4.NATURALES&quot;, &quot;quest...
<p>I tried to print your table using Rmarkdown. I found that we can get the striped style in PDF by using <code>latex_options = &quot;striped&quot;</code> in <code>kable_styling()</code> function.</p> <pre><code>library(tidyverse) library(kableExtra) library(knitr) item&lt;-c(&quot;question1.NATURALES&quot; , &quot;...
Aesthetics of Kable Extra and Rmardown
r|r-markdown|kableextra
1
72
1
72,389,779
72,389,779
1
true
2022-05-26T08:32:56.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Aesthetics of Kable Extra and Rmardown<p>I am reproducing the following code in R to style my table</p> <pre><code> library(kableExtra) library(knitr) item&...
72,390,418
Why I can't do with Switch-Case what I do with If-Else in JS?<p>Can you help about the JS DOM example below,</p> <p>The <strong>if-else structure</strong> I specified in example 1 works, but the <strong>switch-case structure</strong> I specified in example 2 does not work. The <strong>switch-case structure</strong> doe...
<p>Please not that they are not the same. In the first one you are calling function add taking the output whereas in the second one all you are passing via switch statement is the reference to function. The <code>size.classlist.contains</code> is a function which expects an argument. Please know the difference.</p>
Why I can't do with Switch-Case what I do with If-Else in JS?
javascript|if-statement|dom|switch-statement|dom-events
2
72
3
72,390,631
72,390,631
1
true
2022-05-26T10:33:41.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why I can't do with Switch-Case what I do with If-Else in JS?<p>Can you help about the JS DOM example below,</p> <p>The <strong>if-else structure</strong> I ...
72,777,970
How to collect messages past a specific date in discord.py<p>Im trying to add a function that will check the number of messages sent by a user within the last 2 days, right now im looping through all the channels history and checking the message 1 at a time, but with a guild that gets thousands of messages a day this t...
<p>There is a version of the <code>history</code> that works on the channels. You can also specify a time frame to look at.</p> <p>See <a href="https://discordpy.readthedocs.io/en/latest/api.html?highlight=history#discord.TextChannel.history" rel="nofollow noreferrer"><code>TextChannel.history</code></a>.</p> <pre clas...
How to collect messages past a specific date in discord.py
python|discord.py
0
72
1
72,793,167
72,793,167
1
true
2022-06-27T20:31:03.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to collect messages past a specific date in discord.py<p>Im trying to add a function that will check the number of messages sent by a user within the las...
72,796,631
Batch file not executing a command<p>I am trying to create a .bat file that will back-up the database inside the container. After the first command (that is used to enter the container) the next one is ignored.</p> <pre><code>docker exec -it CONTAINER_NAME /bin/bash cd /var/opt/mssql/data </code></pre> <p>Any ideas why...
<p>When running <code>docker exec -it CONTAINER_NAME /bin/bash</code>, you are opening a <code>bash</code>-shell INSIDE the docker container.</p> <p>The next command, i.e. <code>cd /var/opt/mssql/data</code>, is only executed, if the previous command, <code>docker exec -it CONTAINER_NAME /bin/bash</code> has exited suc...
Batch file not executing a command
docker|batch-file|docker-container
-2
72
1
72,796,728
72,796,728
1
true
2022-06-29T06:21:02.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Batch file not executing a command<p>I am trying to create a .bat file that will back-up the database inside the container. After the first command (that is ...
72,802,842
Run thyrlian / AndroidSDK docker image on Mac<p>As the title says, I'm trying to get <a href="https://github.com/thyrlian/AndroidSDK" rel="nofollow noreferrer">thyrlian / AndroidSDK</a> running on Mac — specifically:</p> <ul> <li>macOS Monterey 12.4</li> <li>Intel Core i7</li> <li>docker desktop 4.6.1</li> </ul> <p>The...
<p><code>-gpu swiftshader_indirect</code> option in the emulator launch command is the key:</p> <pre><code>emulator -avd armeabi-v7a -no-audio -no-boot-anim -accel on -gpu swiftshader_indirect &amp; </code></pre> <p>Here is the <a href="https://github.com/thyrlian/AndroidSDK/discussions/68" rel="nofollow noreferrer">Gi...
Run thyrlian / AndroidSDK docker image on Mac
android|docker|docker-desktop
0
72
1
72,810,787
72,810,787
1
true
2022-06-29T14:10:12.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Run thyrlian / AndroidSDK docker image on Mac<p>As the title says, I'm trying to get <a href="https://github.com/thyrlian/AndroidSDK" rel="nofollow noreferre...
72,813,422
Add User as owner of Azure AD Group through REST API<p>Is it possible to add the owner to the Azure AD group from any REST API?</p> <p>I think I should have one service principal and I have to generate an access token to do that.</p> <p>I tried to generate access token and used below query to add owner via Postman.</p>...
<p><em><strong>You can make use of <a href="https://developer.microsoft.com/en-us/graph/graph-explorer" rel="nofollow noreferrer">Microsoft Graph Explorer</a> instead of Postman that doesn't require you to generate access token separately.</strong></em></p> <p>You can call the same query by granting below <code>permiss...
Add User as owner of Azure AD Group through REST API
azure-rest-api|azure-ad-b2b
1
72
1
72,814,501
72,814,501
1
true
2022-06-30T09:30:56.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add User as owner of Azure AD Group through REST API<p>Is it possible to add the owner to the Azure AD group from any REST API?</p> <p>I think I should have ...
72,814,983
get data from .dat file with python<p>I need to read a .dat file in python, i need to read two value from dat file</p> <pre><code>[Registration information] Name=nikam Key=**KDWOE** </code></pre> <p>need to get <strong>nilkam</strong> from name and <strong>KDWOE</strong> from key</p> <pre><code> datContent = [i.stri...
<p>I'm not sure what a <code>.dat</code> file is, and you don't specify, but given your example it looks like the <a href="https://docs.python.org/3/library/configparser.html" rel="nofollow noreferrer">configparser</a> library might work for you.</p> <pre class="lang-py prettyprint-override"><code>import configparser ...
get data from .dat file with python
python|database
0
72
1
72,815,123
72,815,123
1
true
2022-06-30T11:27:56.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: get data from .dat file with python<p>I need to read a .dat file in python, i need to read two value from dat file</p> <pre><code>[Registration information] ...
72,817,596
What is the most efficient way to loop through lists in python?<p>I'm trying to figure out what would be the best way to loop through a list, and I want to convince myself that it is effectively the fastest.</p> <p>I want to compare these 3 :</p> <pre><code>for i in range(len(data)): ... </code></pre> <pre><code>fo...
<p>It seems like I had a problem while executing my tests. Printing values seemed to break my results.</p> <p>I just executed this code :</p> <pre><code>master=''' data=[2*x for x in range(10000)] ''' test1=''' for i in range(len(data)): data[i]=data[i]*5 ''' test2=''' for item in data: item=item*5 ''' test3...
What is the most efficient way to loop through lists in python?
python|list|performance|for-loop
-4
72
1
72,817,897
72,817,897
1
true
2022-06-30T14:30:14.343Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the most efficient way to loop through lists in python?<p>I'm trying to figure out what would be the best way to loop through a list, and I want to c...
72,823,028
How to test a protected member from multiple inheritance in GoogleTest?<p>Imagine I have a <code>Foo</code> class which contains a <code>protected</code> member. <code>Foo</code> is my template base class. Then I have a <code>Bar</code> class, which inherits from <code>Foo</code>. The <code>protected</code> member will...
<blockquote> <p>why can't I access my mMember method?</p> </blockquote> <p>It is not <em>my <code>mMember</code></em>, it is <code>bar</code>'s member.</p> <p>GoogleTest manual:</p> <blockquote> <p>When you need to test the private or protected members of a class, use the <code>FRIEND_TEST</code> macro to declare your ...
How to test a protected member from multiple inheritance in GoogleTest?
c++|c++11|inheritance|googletest|protected
1
72
2
72,823,422
72,823,422
1
true
2022-06-30T23:34:19.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to test a protected member from multiple inheritance in GoogleTest?<p>Imagine I have a <code>Foo</code> class which contains a <code>protected</code> mem...
72,823,590
Make 2 numbers reach their target numbers at the same time<p>I'm trying to code a mouse drag function in C. Basically, i want X to reach targetX, and Y to reach targetY at the same time. For example:</p> <pre><code>x = 0, y = 0; targetX = 10, targetY = 20; </code></pre> <p>I want to make <code>x</code> reach <code>targ...
<ol> <li>Save the initial x.</li> <li>Save the initial y.</li> <li>delta x = target x - initial x</li> <li>delta y = target y - initial y</li> <li>num steps = max of the deltas (or whatever you want)</li> <li>For step = 1 .. num steps, <ol> <li>fraction = step / num steps</li> <li>x = initial x + ( fraction * delta x )...
Make 2 numbers reach their target numbers at the same time
c|math|axis
0
72
1
72,824,252
72,824,252
1
true
2022-07-01T01:38:52.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make 2 numbers reach their target numbers at the same time<p>I'm trying to code a mouse drag function in C. Basically, i want X to reach targetX, and Y to re...
72,826,889
Showsnackbar in flutter<p>I don't want to call show SnackBar on every single Page. Is there any way to call snack bar globally only once? I used this But it shows context error.</p> <pre><code>ScaffoldMessenger.of(context).showSnackBar(snackBar); </code></pre>
<p>You must write this method in a separate file. Call it where you need it, and it is necessary to pass the current class <strong>context</strong>.</p> <pre><code>showAlert(BuildContext context) { ScaffoldMessenger.of(context).showSnackBar( const SnackBar( content: Text(&quot;Type Your message here...&quot...
Showsnackbar in flutter
flutter|dart|snackbar
0
72
1
72,826,912
72,826,912
1
true
2022-07-01T09:05:13.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Showsnackbar in flutter<p>I don't want to call show SnackBar on every single Page. Is there any way to call snack bar globally only once? I used this But it ...
72,827,390
Telegram sendPhoto with multipart/form-data not working?<p>Hi I am trying to send an image. The documentation states that I can send a file using multipart/form-data.</p> <p><a href="https://i.stack.imgur.com/c55Ua.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c55Ua.png" alt="enter image descriptio...
<p>Using the <a href="https://github.com/php-telegram-bot" rel="nofollow noreferrer">php-telegram-bot </a> library, <code>sendPhoto</code> can be used like so:</p> <pre class="lang-php prettyprint-override"><code>&lt;?php require __DIR__ . '/vendor/autoload.php'; use Longman\TelegramBot\Telegram; use Longm...
Telegram sendPhoto with multipart/form-data not working?
php|telegram-bot
0
72
1
72,827,617
72,827,617
1
true
2022-07-01T09:44:36.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Telegram sendPhoto with multipart/form-data not working?<p>Hi I am trying to send an image. The documentation states that I can send a file using multipart/f...
72,837,700
Create Arrow Button in Qt Designer?<p>In Qt Designer I can only drag the ToolButton from Widget box. The generated code will look like this.</p> <pre><code> self.toolButton = QtWidgets.QToolButton(Frame) self.toolButton.setGeometry(QtCore.QRect(350, 480, 26, 22)) self.toolButton.setObjectName(&quot;toolButto...
<p>Its in the settings for the tool button on the right hand side</p> <p><a href="https://i.stack.imgur.com/EHleR.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EHleR.gif" alt="enter image description here" /></a></p>
Create Arrow Button in Qt Designer?
pyqt|pyqt5|qt-designer
1
72
1
72,838,108
72,838,108
1
true
2022-07-02T08:43:18.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create Arrow Button in Qt Designer?<p>In Qt Designer I can only drag the ToolButton from Widget box. The generated code will look like this.</p> <pre><code> ...
72,847,989
Python says "UnboundLocalError: local variable 'key' referenced before assignment"<p>i understand that this error happens when a variable gets mentioned before its defined but &quot;key&quot; is assigned to its value. I started learning python a week ago so i am sorry if my question has a really simple answer.</p> <p>t...
<p>this is not exactly the reason you wrote, the fact is that the function cannot see variables that are outside the function. In order for the function to see them, you need to pass the variable as an argument to the function. That is, you need to change line 86 like this: cypher(key). But as you can see, this will gi...
Python says "UnboundLocalError: local variable 'key' referenced before assignment"
python|variables|unassigned-variable
-3
72
1
72,848,155
72,848,155
1
true
2022-07-03T15:59:37.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python says "UnboundLocalError: local variable 'key' referenced before assignment"<p>i understand that this error happens when a variable gets mentioned befo...
72,853,630
Word search in Laravel: returning the nearest matches first (MySql 5.7)<p>I am building a sort of urban dictionary for the language of my home island. I have this kind of set up in the database:</p> <p>table: words table: word_definitions (has a word_id column)</p> <p>I am just using Eloquent to the pattern matching in...
<p>Looking at your requirement, the best possible approach is to use <a href="https://dev.mysql.com/doc/refman/8.0/en/fulltext-search.html" rel="nofollow noreferrer"><code>MySQL Full text search</code></a> as already mentioned.</p> <hr /> <p><strong>PHP Approach:</strong></p> <p>You can use <a href="https://www.php.net...
Word search in Laravel: returning the nearest matches first (MySql 5.7)
php|sql|laravel|sorting
0
72
1
72,855,048
72,855,048
1
true
2022-07-04T08:15:19.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Word search in Laravel: returning the nearest matches first (MySql 5.7)<p>I am building a sort of urban dictionary for the language of my home island. I have...
72,859,930
how to type props for text area react typescript<p>I have a react component that looks like this:</p> <pre><code>import { TextareaHTMLAttributes} from 'react' import styled from 'styled-components' const TextAreaElement = styled.textarea` border-radius: 40px; border: none; background: white; ` const TextArea = ...
<p>You can pass the props as regular HTML element</p> <pre><code>import React from &quot;react&quot;; const CustomTA = (props: React.HTMLProps&lt;HTMLTextAreaElement&gt;) =&gt; { return &lt;textarea {...props} /&gt;; }; </code></pre>
how to type props for text area react typescript
javascript|reactjs|typescript|ecmascript-6
0
72
1
72,860,208
72,860,208
1
true
2022-07-04T16:53:41.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to type props for text area react typescript<p>I have a react component that looks like this:</p> <pre><code>import { TextareaHTMLAttributes} from 'react...
72,862,800
Bots are able to mint in candy machine bypassing whitelist tokens?<p>This is a question related to the Metaplex candy machine.</p> <p>I noticed that bots are able to mint bypassing the whitelist tokens.</p> <p>This is a whitelist config I had:</p> <pre><code>{ &quot;price&quot;: 1, &quot;number&quot;: 777, ...
<p>You set ur presale to true and goLiveDate is on the past. When you set presale: true means that whitelistSettings will be aplied before goLiveDate but when goLiveDate happens your mint will not be a presale and will be a public mint.</p> <p>You can set presale: false so ur mint will be a whitelistMint (will be using...
Bots are able to mint in candy machine bypassing whitelist tokens?
solana|metaplex|candy-machine
0
72
1
72,862,802
72,862,802
1
true
2022-07-04T23:38:22.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bots are able to mint in candy machine bypassing whitelist tokens?<p>This is a question related to the Metaplex candy machine.</p> <p>I noticed that bots are...
72,871,346
How to simply build an external project with cmake externalproject_add<p>I've got a library I want to integrate into an existing cmake build. All cmake has to do is go into that directory, run &quot;make&quot;, perform install steps as I lay out (probably just a copy to an included binary directory), and then keep doin...
<p>If you aren't downloading code then <code>SOURCE_DIR</code> needs to be set to an existing directory containing your library.</p> <p>If you aren't using cmake then you need to set <code>CONFIGURE_COMMAND</code> to an empty string as stated in the <a href="https://cmake.org/cmake/help/latest/module/ExternalProject.ht...
How to simply build an external project with cmake externalproject_add
c++|cmake
0
72
1
72,873,055
72,873,055
1
true
2022-07-05T14:44:09.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to simply build an external project with cmake externalproject_add<p>I've got a library I want to integrate into an existing cmake build. All cmake has t...
72,888,368
CartItems routing error using React-Router-Dom v6<p>I am trying to introduce 'cartItems' functionality to my react-redux app and store the added data in the browser's local storage.</p> <p>Indeed the problem raises when I try to show cart items by clicking on the cart link at the navbar section. The error message is ...
<p>It seems the issue here might be resolved by using the same logic in my answer <a href="/a/72875538/8690857">here</a> to your other <a href="/questions/72874131/no-routes-matched-location-for-cartitems-app">question</a> regarding route matching. It wasn't explicitly called out as an issue or something the <em>needed...
CartItems routing error using React-Router-Dom v6
react-router|react-router-dom|react-router-redux|react-router-component|connected-react-router
1
72
1
72,889,189
72,889,189
1
true
2022-07-06T18:32:16.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CartItems routing error using React-Router-Dom v6<p>I am trying to introduce 'cartItems' functionality to my react-redux app and store the added data in the ...
72,877,054
I want to store my firestore value as boolean but it is being stored as string<p>I have a form in reactjs when i submit it it stores value in firestore database. I have a status feild where users can choose true or false, my problem is this option gets submitted as a string, i want it to get it is submitted as a boolea...
<p><code>option</code> doesn't accept boolean type of data but there are many ways to convert string into boolean but the most simplest way is to assign the value of <strong><code>True</code></strong> as <strong><code>1</code></strong> and <strong><code>False</code></strong> as <strong><code>0</code></strong>. See exam...
I want to store my firestore value as boolean but it is being stored as string
javascript|reactjs|firebase|google-cloud-firestore
0
72
2
72,891,224
72,891,224
1
true
2022-07-06T01:32:46.813Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want to store my firestore value as boolean but it is being stored as string<p>I have a form in reactjs when i submit it it stores value in firestore datab...
72,871,937
2 layer doughnut chart using Chart.js<p>I am trying to create a pie chart that displays an array of countries at the first level and the cities for each country at the second level.</p> <p>I have a JSON file (below) with data that I modified in order to get closer to what I am trying to achieve but it does not seem to ...
<p>Please take a look at below runnable code and see how it could be done.</p> <blockquote> <p>When it comes to the <code>legend</code>, you'll probably have to implement a solution as explained in this <a href="https://stackoverflow.com/a/70721322/2358409">answer</a>.</p> </blockquote> <p><div class="snippet" data-lan...
2 layer doughnut chart using Chart.js
javascript|arrays|json|angular|chart.js
1
72
1
72,901,611
72,901,611
1
true
2022-07-05T15:25:49.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 2 layer doughnut chart using Chart.js<p>I am trying to create a pie chart that displays an array of countries at the first level and the cities for each coun...
72,905,444
Calculate time difference between two dates in the same column in Pandas<p>I have a column (DATE) with multiple data times and I want to find the difference in minutes from date to date and store it into a new column (time_interval).</p> <p>This is what I have tried:</p> <p>df['time_interval'] = (df['DATE'],axis=0 - df...
<p>Depending on how you'd care to store the differences, either</p> <pre class="lang-py prettyprint-override"><code>df = pd.DataFrame(data=['01-01-2006 00:53:00', '01-01-2006 01:53:00', '01-01-2006 02:53:00', '01-01-2006 03:53:00', ...
Calculate time difference between two dates in the same column in Pandas
python|pandas
0
72
2
72,905,565
72,905,565
1
true
2022-07-08T00:14:26.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calculate time difference between two dates in the same column in Pandas<p>I have a column (DATE) with multiple data times and I want to find the difference ...
72,909,258
switch in switch, does the outer case break if inner case break<p>In languages that have <code>switch</code>, usually a <code>break;</code> statement is needed. What if a <code>switch</code> within a <code>switch</code> statement? Is it necessary to put a <code>break;</code> statement in the outer <code>switch</code> w...
<p>Both <code>break</code> statements are useful. This gives the language greater flexibility, and it keeps the language itself simpler to work with.</p> <p>You seem to be thinking of a simple situation, where the nested <code>switch</code> is choosing which one thing to do. This is often a good design. However, what i...
switch in switch, does the outer case break if inner case break
c++|c|switch-statement|break
0
72
2
72,909,955
72,909,955
1
true
2022-07-08T09:20:00.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: switch in switch, does the outer case break if inner case break<p>In languages that have <code>switch</code>, usually a <code>break;</code> statement is need...
72,923,507
Navigate to a search page after a search in the search bar and reuse the search bar within the search page<p>In my React application, at the layout level and in addition to the main content, I have a sidebar and a header with a profile section and a search bar - all different components.</p> <p>The header goes with eve...
<h1>Issues</h1> <ol> <li>The <code>SearchSection</code> doesn't navigate to <code>&quot;/search&quot;</code> with the new search value when the URL path is already on `&quot;/search&quot;.</li> <li>The <code>SearchPage</code> component doesn't &quot;listen&quot; to changes in the route state (<em>from the <code>locatio...
Navigate to a search page after a search in the search bar and reuse the search bar within the search page
reactjs|react-router-dom
1
72
1
72,924,561
72,924,561
1
true
2022-07-09T17:45:00.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Navigate to a search page after a search in the search bar and reuse the search bar within the search page<p>In my React application, at the layout level and...
72,928,226
Multiple Condition and Inequality Join<p>I've the following code. This code has been in SQL. I want to replicate the same code in R (prefereably <code>dplyr</code>). I found ways to join using inequality conditions but not <code>AND</code> and <code>OR</code> condition. Can someone please guide me?</p> <pre><code>libra...
<p>probably the simplest solution is to merge by nothing then filter</p> <pre><code>dat_col |&gt; merge(dat1, by = NULL) |&gt; filter(start_date &lt;= date_col, (end_date &lt; date_col | is.na(end_date))) |&gt; arrange(-desc(date_col)) </code></pre> <pre><code> date_col start_date end_date 1 2022-02-02 ...
Multiple Condition and Inequality Join
r|dplyr
2
72
4
72,928,463
72,928,463
1
true
2022-07-10T11:42:57.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Multiple Condition and Inequality Join<p>I've the following code. This code has been in SQL. I want to replicate the same code in R (prefereably <code>dplyr<...
72,933,882
How to escape Athena INSERT INTO error if string contains single quote and comma?<p>I have to INSERT a record into Athena, I have used below INSERT INTO query but I am getting error because of the column title which contains single quote and a comma after 35 in the string.</p> <pre><code>insert into database.product (t...
<p>You need to escape single quote in <code>'Waxpol Vinyl &amp; Leather Polish (35', Ltr.)'</code> otherwise it becomes <code>'Waxpol Vinyl &amp; Leather Polish (35'</code> string followed by some invalid SQL. You can do it by using extra single quote:</p> <pre class="lang-sql prettyprint-override"><code>insert into da...
How to escape Athena INSERT INTO error if string contains single quote and comma?
sql|amazon-web-services|amazon-s3|amazon-athena|presto
0
72
1
72,934,004
72,934,004
1
true
2022-07-11T04:56:52.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to escape Athena INSERT INTO error if string contains single quote and comma?<p>I have to INSERT a record into Athena, I have used below INSERT INTO quer...
72,944,059
pass in vue data into a component but I have other props too<p>I have data in App.vue that looks like this:</p> <pre><code>data() { return { information: { item1: 'item 1 string', item2: 'item 2 string', item3: 'item 3 string' } } }, </code></pre> <p>I want to pas...
<p>You should access directly the data returned from the <code>data</code> option and bind it to the prop :</p> <pre class="lang-html prettyprint-override"><code>&lt;ComponentName :info=&quot;information.item1&quot;&gt; </code></pre>
pass in vue data into a component but I have other props too
javascript|vue.js|prop
0
72
3
72,944,122
72,944,122
1
true
2022-07-11T20:03:17.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pass in vue data into a component but I have other props too<p>I have data in App.vue that looks like this:</p> <pre><code>data() { return { info...
72,944,223
How to convert typescript modules to javascript<p>I have a src working directory like this:</p> <pre><code>- src - functions - final - utils </code></pre> <p>I have <strong>two</strong> files, both inside &quot;final&quot; which I need to transpile from typescript to javascript to run in browser.</p> <p>The thing...
<p><code>tsc</code> only compiles files in place. It does not bundle.</p> <p>To run your project in the browser, you typically need a bundler (such as webpack, parcel, vite, or rollup) to compile and package your code for use in web browsers.</p>
How to convert typescript modules to javascript
javascript|typescript|module|tsconfig
0
72
1
72,945,061
72,945,061
1
true
2022-07-11T20:19:10.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to convert typescript modules to javascript<p>I have a src working directory like this:</p> <pre><code>- src - functions - final - utils </code></p...
72,943,113
What is the best way to add additional templates to a helm chart?<h1>Background</h1> <p>I'm installing Elastic Search into my cluster with a helm chart with the following command:</p> <pre class="lang-bash prettyprint-override"><code>helm -n elasticsearch upgrade --install -f values_elasticsearch.yaml elasticsearch el...
<p>helm subchart is ideal way</p> <ul> <li>You can create a helm chart and add the elasticsearch as subchart</li> <li>You can add required istio yaml files inside your template folder</li> <li>First you should run <code>helm dep update</code> then run the install/upgrade command</li> </ul>
What is the best way to add additional templates to a helm chart?
elasticsearch|kubernetes|kubernetes-helm
0
72
1
72,947,121
72,947,121
1
true
2022-07-11T18:32:15.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the best way to add additional templates to a helm chart?<h1>Background</h1> <p>I'm installing Elastic Search into my cluster with a helm chart with ...
72,944,395
Uncaught SyntaxError: Function statements require a function name<p>I'm trying to use an <code>onClick</code> in a <code>v-btn</code> that calls a function that will perform an action, when I click the browser console returns the following error:</p> <blockquote> <p>Uncaught SyntaxError: Function statements require a f...
<p>To bind a click event on any element in Vue. You have to use either <code>@click</code> or <code>v-on:click</code>. You can have a look into this official documentation of <a href="https://vuejs.org/guide/essentials/event-handling.html#listening-to-events" rel="nofollow noreferrer"><code>Event Handling</code></a> to...
Uncaught SyntaxError: Function statements require a function name
javascript|vue.js
1
72
2
72,950,389
72,950,389
1
true
2022-07-11T20:37:00.797Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Uncaught SyntaxError: Function statements require a function name<p>I'm trying to use an <code>onClick</code> in a <code>v-btn</code> that calls a function t...
72,948,703
Blazor component inheritance: Derived component HTML inside parent's html<p>I'm trying to create a BaseComponent with shared logic and template. For that I created this &quot;base class&quot; inside of <code>MyBaseComponent.razor</code>:</p> <pre><code>&lt;div class=&quot;parent-container&quot;&gt; &lt;!-- Derived Co...
<p>This is one way you can achieve this.</p> <p>Use a RenderFragment for the derived content in the base markup:</p> <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;parent-container&quot;&gt; @DerivedContent &lt;/div&gt; &lt;button onclick=&quot;@ButtonClick&quot; disabled=@(!IsEnabled)&gt;Click...
Blazor component inheritance: Derived component HTML inside parent's html
blazor
0
72
2
72,951,148
72,951,148
1
true
2022-07-12T07:43:42.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Blazor component inheritance: Derived component HTML inside parent's html<p>I'm trying to create a BaseComponent with shared logic and template. For that I c...
72,953,681
Overriding MUI Stepper<p>I need to change a Mui Stepper ( which the code works perfetly ) but what I need is a bit different , Instead of having this : <a href="https://i.stack.imgur.com/tKySj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tKySj.png" alt="the render of the code" /></a></p> <p>I want...
<p>Okay so basically it was 2 steps. The first one was to make the labels appear below the icons which was relatively easy.</p> <p>I had to add <code>alternativeLabel</code> as a prop to the <code>&lt;Stepper /&gt;</code>.</p> <p>The next step was to remove the lines and replace them with <code>&lt;</code> which wasn't...
Overriding MUI Stepper
reactjs|material-ui|stepper
0
72
1
72,954,751
72,954,751
1
true
2022-07-12T14:06:04.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Overriding MUI Stepper<p>I need to change a Mui Stepper ( which the code works perfetly ) but what I need is a bit different , Instead of having this : <a hr...
72,839,039
Expand dimension of "EmguCV.Mat" or "Onnx Tensor"<p>I am using Onnxruntime in C# for yolov4. Here is the pretrained yolo model: <a href="https://github.com/onnx/models/tree/main/vision/object_detection_segmentation/yolov4/model" rel="nofollow noreferrer">https://github.com/onnx/models/tree/main/vision/object_detection_...
<p>I found one solution myself :D</p> <p>Maybe it helps somebody else, with the same problem.</p> <p>For me, this code is about 10 times faster than the original code (preprocess_CV function in the question).</p> <pre><code>static List&lt;NamedOnnxValue&gt; preprocess_CV_v2(Mat im) { CvInvoke.Resize(im, im...
Expand dimension of "EmguCV.Mat" or "Onnx Tensor"
c#|onnx|image-preprocessing|yolov4|onnxruntime
0
72
1
72,962,195
72,962,195
1
true
2022-07-02T12:27:16.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Expand dimension of "EmguCV.Mat" or "Onnx Tensor"<p>I am using Onnxruntime in C# for yolov4. Here is the pretrained yolo model: <a href="https://github.com/o...
72,965,047
Calculate distance between two coordinates for a fixed point in a DataFrame<p>I have the following DataFrame in pandas:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>code</th> <th>latitude</th> <th>longitude</th> </tr> </thead> <tbody> <tr> <td>01</td> <td>40.410323</td> <td>-3.993046</td...
<pre><code>from typing import Tuple import geopy.distance def distance( lat: float, lon: float, fixed_coords: Tuple[float] = (36.7196, -4.42002) ) -&gt; float: return geopy.distance.distance((lat, lon), fixed_coords).km df[&quot;km_to_fixed_coords&quot;] = df.apply(lambda row: distance(row.latitude, row.lon...
Calculate distance between two coordinates for a fixed point in a DataFrame
python|pandas|dataframe|geopy
0
72
2
72,965,139
72,965,139
1
true
2022-07-13T10:49:20.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calculate distance between two coordinates for a fixed point in a DataFrame<p>I have the following DataFrame in pandas:</p> <div class="s-table-container"> <...
72,965,739
How to check if option value was selected? Angular<p>I have a template, with mat-autocomplete, in which I search for elements and I have <code>option</code> elements - each individual element. My goal is to write logic: if I have an element selected, my input should be disabled. How can I check whether a certain elemen...
<p>According to the docs (<a href="https://material.angular.io/components/autocomplete/api" rel="nofollow noreferrer">https://material.angular.io/components/autocomplete/api</a>) MatAutoComplete has a <code>optionSelected</code> output. Hence I'd try the following:</p> <pre><code>&lt;input [matAutocomplete]=&quot;auto&...
How to check if option value was selected? Angular
angular|typescript|mat-autocomplete|mat-option
1
72
2
72,965,844
72,965,844
1
true
2022-07-13T11:46:52.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if option value was selected? Angular<p>I have a template, with mat-autocomplete, in which I search for elements and I have <code>option</code> ...
72,966,990
Android studio how to get sqlite table name from user in java<p>I want to get a name with edittext from user, and set this name as new table name in SQLite. Like</p> <p><code>database.execSQL(&quot;CREATE TABLE IF NOT EXISTS variable_name (...)&quot;)</code></p>
<p>Names of elements, such as table names, column names, trigger names, index names etc cannot be passed as variables within SQL to SQLite for SQLite to resolve. You would have to resolve the variable name when building the SQL statement.</p> <p>e.g.</p> <pre><code>database.execSQL(&quot;CREATE TABLE IF NOT EXISTS &quo...
Android studio how to get sqlite table name from user in java
java|sqlite|android-studio|android-sqlite
-5
72
1
72,973,560
72,973,560
1
true
2022-07-13T13:16:19.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android studio how to get sqlite table name from user in java<p>I want to get a name with edittext from user, and set this name as new table name in SQLite. ...
72,986,817
How to use IDXGIOutputDuplication to capture multiple screens?<p>Is there a way to screen capture multi monitor setups with windows duplication api (IDXIOutputDuplication) rather than gdi? Windows duplication is now the preferred (faster and more efficient) way of screen capturing on Windows machines. This is a questio...
<p>You will need to obtain an IDXGIOutputDuplication interface for each IDXGIOutput you wish to have duplicated. Whether those outputs are on one adapter or multiple doesn't matter. I can't speak to whether you will need to run each duplication loop on a dedicated thread.</p>
How to use IDXGIOutputDuplication to capture multiple screens?
c++|windows|winapi
0
72
1
72,987,010
72,987,010
1
true
2022-07-14T21:25:47.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use IDXGIOutputDuplication to capture multiple screens?<p>Is there a way to screen capture multi monitor setups with windows duplication api (IDXIOutp...
72,988,729
how to reduce line height of a table row<p>I wanna reduce the line height between table rows. I used the following code, But it didn't work for me. Please look at my picture. I wanna reduce the line height between <strong>&quot;Mon-Sat 09:00 AM - 7:00 PM&quot;</strong> and <strong>&quot;We closed Sunday &amp; Holidays&...
<p>The <code>p</code> tag has margin at top and bottom from the browser css. Please just add the below condition and adjust the margins to your desired height!</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lan...
how to reduce line height of a table row
html|css
1
72
3
72,988,778
72,988,778
1
true
2022-07-15T03:22:17.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to reduce line height of a table row<p>I wanna reduce the line height between table rows. I used the following code, But it didn't work for me. Please lo...
72,982,344
Terraform doesnt realise Im already connected to Azure?<p>Using an Azure Devops Pipeline, I have a cli task which connects to the azure subscription in my yaml file as below, i then run a script command after this task to run terraform plan but Terraform doesnt realise im already connected to Azure and gives a connecti...
<p>From your YAML sample, you are using Azure CLI task to connect azure subscription and save credentials.</p> <p>This credential is only valid in Azure Cli task.</p> <p>After the Azure Cli task is executed, <code>az account clear</code> command will be run to clear the credentials, so the credentials cannot be used by...
Terraform doesnt realise Im already connected to Azure?
azure-devops|terraform|azure-pipelines
0
72
1
72,989,842
72,989,842
1
true
2022-07-14T14:39:12.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Terraform doesnt realise Im already connected to Azure?<p>Using an Azure Devops Pipeline, I have a cli task which connects to the azure subscription in my ya...
72,988,325
When do user-defined rust types implement drop?<p>Do user-defined rust types get an automatic drop implementation for them, if they have a field or variant that might contain an item that needs to be dropped?</p> <p>Consider a struct as follows:</p> <pre class="lang-rust prettyprint-override"><code>struct Guard&lt;T&gt...
<p>I think your question stems from some confusion between implementing the Drop trait, and variables being dropped when they go out of scope.</p> <p>When a variable goes out of scope it is dropped (unless it is uninitialized) meaning its destructor is called and its memory can be reused after the destructor has finish...
When do user-defined rust types implement drop?
rust|memory-management|borrow-checker
0
72
2
72,992,883
72,992,883
1
true
2022-07-15T01:54:00.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When do user-defined rust types implement drop?<p>Do user-defined rust types get an automatic drop implementation for them, if they have a field or variant t...
72,861,145
Bold text in LibreOffice using macros (LibreOffice Basic)<p>I am doctor (X-ray). Asking my friend to create text macros for me to write protocols faster. I just wanted to push ALT+Q (or another letter). Then push ALT+number (from 0 to 9). For each ALT+number I insert prepared text. It is work. Part of inserted text sho...
<p>I'm unable to give exact details because I don't use Libreoffice Basic but in <code>python</code> you need to grab the <code>cursor</code> and apply the font attributes to that.<br /> i.e. something along the lines of:</p> <pre><code>desktop = XSCRIPTCONTEXT.getDesktop() cursor = desktop.getCurrentComponent().getCur...
Bold text in LibreOffice using macros (LibreOffice Basic)
libreoffice|libreoffice-basic
1
72
1
72,996,662
72,996,662
1
true
2022-07-04T19:14:41.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bold text in LibreOffice using macros (LibreOffice Basic)<p>I am doctor (X-ray). Asking my friend to create text macros for me to write protocols faster. I j...
73,006,164
Communicate between two widgets not directly related<p>I have a GUI with widgets that has multiple child widgets inside, as you can see in the image:</p> <p><a href="https://i.stack.imgur.com/Ndn3H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ndn3H.jpg" alt="enter image description here" /></a></p...
<p>Singletons, or static initialisation for that matter ought to be the last resort as they can cause all sorts of headaches, especially in multi-threaded environment. Definitely do not go for that in this case.</p> <p>What I have personally done in my project in this case, I emitted a signal in the first widget and th...
Communicate between two widgets not directly related
python|qt|pyqt|pyqt5|pyside2
3
72
1
73,006,250
73,006,250
1
true
2022-07-16T17:03:07.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Communicate between two widgets not directly related<p>I have a GUI with widgets that has multiple child widgets inside, as you can see in the image:</p> <p>...
73,009,928
Trying to get data from api and map to another component in React<p>I'm trying to map an array of movies which I get from an API.</p> <p>The data is fetched successfully but when I try to map the values and display, it becomes <code>undefined</code> and does not show anything.</p> <p>I'm new to React so any help and ad...
<p>First, your <strong>items</strong> value is an empty array<code>[]</code> as you have initialized with <code>setState([])</code> and your <code>useEffect()</code> runs only after your component is rendered which means even before you could do your data fetching, your HTML is being displayed inside which you are tryi...
Trying to get data from api and map to another component in React
reactjs|axios
0
72
3
73,010,072
73,010,072
1
true
2022-07-17T07:26:01.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to get data from api and map to another component in React<p>I'm trying to map an array of movies which I get from an API.</p> <p>The data is fetched ...
73,014,231
regex with range decimal positive and negative number<p>How to allow user to put negative, positive and decimal number with range with regex?</p> <p>I use the <code>(/^[-+]?[0-9]\d{0,5}(\.\d+)?$/)</code> regex below it works with positive and negative number but to range decimal number for maximum number 6, it doesn't ...
<p>How about using a negative <a href="https://www.regular-expressions.info/lookaround.html" rel="nofollow noreferrer">lookahead</a> after first digit to limit max length:</p> <pre><code>^[-+]?\d(?!.{7})\d{0,5}(?:\.\d+)?$ </code></pre> <p><a href="https://regex101.com/r/oAIUJZ/1" rel="nofollow noreferrer">See the demo ...
regex with range decimal positive and negative number
regex|decimal
0
72
3
73,015,492
73,015,492
1
true
2022-07-17T18:11:18.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: regex with range decimal positive and negative number<p>How to allow user to put negative, positive and decimal number with range with regex?</p> <p>I use th...
73,012,607
Gitlab docker instance doesn't take my external URL<p>I launched a gitlab container like this:</p> <pre><code>sudo docker run --detach --hostname MY_URL.com --publish 4433:443 --publish 8080:80 --publish 2222:22 --name gitlab --og/gitlab --volume /data/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest </code></pre> <...
<p>Because you are providing an external NGINX configuration that also terminates SSL, you have to apply a configuration to your GitLab instance for <a href="https://docs.gitlab.com/omnibus/settings/nginx.html#external-proxy-and-load-balancer-ssl-termination" rel="nofollow noreferrer">external proxy/load-balancer SSL t...
Gitlab docker instance doesn't take my external URL
docker|nginx|gitlab
0
72
1
73,021,833
73,021,833
1
true
2022-07-17T14:23:45.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Gitlab docker instance doesn't take my external URL<p>I launched a gitlab container like this:</p> <pre><code>sudo docker run --detach --hostname MY_URL.com ...
73,024,868
How to pass dates as parameters in Ajax url get call?<p>I have an Ajax call that tries to populate a <code>highchart</code> by calling an <code>api</code>. I am trying to access date values from <code>ViewBag</code> and passing them to the <code>AJAX</code> url, I end up getting an error</p> <blockquote> <p>jQuery.Defe...
<p>Because you are calling a view it will render it as <code>'api/getProvinceData/'+ Jun-2020,</code> so the best way to access it is to just have it inside the quotes and not concatenate it so it will be</p> <pre><code>$.ajax({ url: 'api/getProvinceData/@ViewBag.reportinPeriod', type: 'GET...
How to pass dates as parameters in Ajax url get call?
javascript|jquery|asp.net|ajax|viewbag
2
72
1
73,024,957
73,024,957
1
true
2022-07-18T15:28:57.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass dates as parameters in Ajax url get call?<p>I have an Ajax call that tries to populate a <code>highchart</code> by calling an <code>api</code>. I...
73,007,304
undefined method `receive' in Rspec Rails<p>I am trying to test a <code>worker</code> in <code>Rspec</code> using <code>receive</code>. (This test in for my <code>user.rb</code> model)</p> <pre><code>require 'rails_helper' require 'cancan/matchers' describe User, type: :model do context 'when an user' do subjec...
<p>You need to allow the worker to receive calls, use the following.</p> <pre><code>it 'calls a worker when user is created' do allow(CreateContactWorker).to receive(:perform_async) subject expect(CreateContactWorker).to have_received(:perform_async).with(user_id, first_name, last_name, email).once end </code></p...
undefined method `receive' in Rspec Rails
ruby-on-rails|rspec|rspec-rails|ruby-mocha
0
72
1
73,031,487
73,031,487
1
true
2022-07-16T20:03:25.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: undefined method `receive' in Rspec Rails<p>I am trying to test a <code>worker</code> in <code>Rspec</code> using <code>receive</code>. (This test in for my ...
73,023,144
Is it possible to modify the requester in an Azure DevOps pipeline?<p>We have an Azure DevOps pipeline to run tests, that is triggered by the completion of another pipeline that builds and publishes artifacts when a pull request completes.</p> <p>Ideally we would like the second pipeline to show the user that completed...
<p>To make the second pipeline to show the user that completed the original Pull Request, please use Build.RequestedFor predefined variable to get the user who completed the original Pull Request. Then, use variable group with PowerShell task to transfer the value to the second pipeline. Here is an example below :</p> ...
Is it possible to modify the requester in an Azure DevOps pipeline?
git|azure-devops|azure-pipelines
1
72
1
73,033,260
73,033,260
1
true
2022-07-18T13:30:52.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to modify the requester in an Azure DevOps pipeline?<p>We have an Azure DevOps pipeline to run tests, that is triggered by the completion of a...
73,025,279
Getting/setting registers for arm32 executable on aarch64<p>My goal is to use <code>ptrace</code> to set the program counter (and other registers) of a process running a 32-bit ARM executable on a 64-bit processor.</p> <p>If this was a 64-bit executable, then I could use the <code>pc</code> field of <code>struct user_p...
<p>Even when running on a 64-bit processor, <code>ptrace</code> hands back the <em>effective</em> 32-bit registers. To confirm this, consider the following two executables (for brevity's sake, I've omitted the header files):</p> <p>test.c</p> <pre class="lang-c prettyprint-override"><code>int main() { printf(&quot...
Getting/setting registers for arm32 executable on aarch64
c|arm|cpu-registers|arm64|ptrace
1
72
1
73,026,007
73,026,007
1
true
2022-07-18T15:59:31.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting/setting registers for arm32 executable on aarch64<p>My goal is to use <code>ptrace</code> to set the program counter (and other registers) of a proce...
72,893,088
React Native : There are some issues with autocomplete?<p>I use a library <strong>״react-native-autocomplete-input״</strong></p> <ol> <li><p>The keyboard disappears after each letter is typed or deleted</p> </li> <li><p>The align of text from right to left in both the text box and the display of the autocomplete not wo...
<p>Refering your <a href="https://snack.expo.dev/@roei133/efc1a6" rel="nofollow noreferrer">code,</a> you can prevent the focus issue by calling function as function instead as component like below</p> <pre><code>// main screen return ( &lt;&gt; &lt;KeyboardAwareScrollView behavior={Platform.OS ==...
React Native : There are some issues with autocomplete?
javascript|reactjs|react-native|autocomplete
1
72
2
72,896,877
72,896,877
1
true
2022-07-07T06:19:00.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Native : There are some issues with autocomplete?<p>I use a library <strong>״react-native-autocomplete-input״</strong></p> <ol> <li><p>The keyboard dis...
72,993,182
How to set object value as key to other value of object<p>current data</p> <pre><code>[ { &quot;id&quot;: 0, &quot;name&quot;: &quot;Active&quot;, &quot;value&quot;: &quot;Y&quot;, z&quot; }, { &quot;id&quot;: 1, &quot;name&quot;: &quot;controls&quot;, &quot;value&quot;: &quot;N&quot;...
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>x = [{ "id": 0, "name": "Active", "value": "Y", }, { "id": 1, "name": "controls", "value": "N", } ] a...
How to set object value as key to other value of object
javascript|arrays|object
-1
72
3
72,993,250
72,993,250
1
true
2022-07-15T11:19:29.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set object value as key to other value of object<p>current data</p> <pre><code>[ { &quot;id&quot;: 0, &quot;name&quot;: &quot;Active&quot;,...
72,904,098
How to persist a List<String> toDo = ['eat', 'sleep', 'code'] using Flutter's SharedPreferences please?<p>I am making a Tasks app where users type in their tasks for the day and they can check off a task once complete. To Store tasks, i am starting with an empty [ ] that gets populated with user's input. How do i save...
<p>I created two functions:</p> <p>To <em>load</em> from shared preferences:</p> <pre class="lang-dart prettyprint-override"><code>List&lt;String&gt;? _toDoList; Future&lt;void&gt; _loadToDoItems() async { SharedPreferences prefs = await SharedPreferences.getInstance(); setState(() { _toDoList = prefs....
How to persist a List<String> toDo = ['eat', 'sleep', 'code'] using Flutter's SharedPreferences please?
flutter|dart|flutter-listview|flutter-sharedpreference
0
72
2
72,904,639
72,904,639
1
true
2022-07-07T20:53:25.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to persist a List<String> toDo = ['eat', 'sleep', 'code'] using Flutter's SharedPreferences please?<p>I am making a Tasks app where users type in their t...
72,803,151
map through an object and fill another object<p>I am trying to map through the data.scales array of objects and display the values in the obj createvalues array as shown in the output. I cannot quite figure this out. I have to make sure I do not delete the values existing in the createValues array</p> <pre><code>const ...
<p>You were almost there, continuing from your solution you can do</p> <p><strong>Solution 1</strong></p> <pre><code>const results = Object.entries(data.scales).map(([key, value]) =&gt; { return ({ field: value.ScaleId, value: value.Value }) }); obj.createValues = [...obj.createValues, ...results...
map through an object and fill another object
javascript|reactjs
1
72
1
72,803,690
72,803,690
1
true
2022-06-29T14:30:37.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: map through an object and fill another object<p>I am trying to map through the data.scales array of objects and display the values in the obj createvalues ar...
72,965,714
JavaScript two arrays merge into new Array<p>I have two sets of arrays data, one for orders and one for picking orders. The order id of those arrays is the same. Data for picking orders is nested arrays. There is one value named <code>orderHasAlcohol</code> in the <code>Picking</code> orders data. I'd like to make a ne...
<p>I don't know Ramda but with native js it should looks like this :</p> <p>First you simplify <code>expectedArrays</code> to get an <code>array</code> of <code>object</code> which associate the <code>orderId</code> to the property <code>orderHasAlcohol</code> :</p> <pre><code>let pickingOrderSimplified = Object.fromEn...
JavaScript two arrays merge into new Array
javascript|arrays
1
72
4
72,965,950
72,965,950
1
true
2022-07-13T11:45:07.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JavaScript two arrays merge into new Array<p>I have two sets of arrays data, one for orders and one for picking orders. The order id of those arrays is the s...
72,934,984
Grok Conditional pattern in Logstash yaml (if..else)<p>I would like to do grok pattern based on filter conditions using if-else. I've tried but I got the wrong output. Please help me on identifying the error here.</p> <pre><code>filter { if ([service] =~ /service-name/) { grok { match =&gt; { &quot;message&...
<p>In your first grok the timestamp is HTTPDATE format instead of ISO8601 format, you must change it. Delete also the white space after <code>\]</code></p> <p>Here my suggestions</p> <pre><code>filter { if ([service] =~ /service-name/) or ([service] =~ /service-name1/) { grok { match =&gt; { &quot;message&q...
Grok Conditional pattern in Logstash yaml (if..else)
amazon-web-services|logstash|devops|logstash-grok
0
72
1
72,936,641
72,936,641
1
true
2022-07-11T07:20:50.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Grok Conditional pattern in Logstash yaml (if..else)<p>I would like to do grok pattern based on filter conditions using if-else. I've tried but I got the wro...
72,939,591
Move files into subdirectories based on prefix combinations<p>I have a directory with very large number of files following this pattern:</p> <p>filtered.{x}.R1.clean.id_{y}.{z}</p> <p>x and y are wildcards, z is file format.</p> <p>I hope to move the files into subdirectories with X_Y based on their x and y combination...
<p>How about this?</p> <pre class="lang-bash prettyprint-override"><code>#!/bin/bash while IFS='/' read -r x y do d=${x}_$y mkdir -p &quot;$d&quot; mv filtered.&quot;$x&quot;.R1.clean.id_&quot;$y&quot;.* &quot;$d/&quot; done &lt; &lt;( printf '%s\n' filtered.*.R1.clean.id_*.* | sed -nE 's/^filtered...
Move files into subdirectories based on prefix combinations
bash|wildcard|subdirectory
1
72
1
72,940,107
72,940,107
1
true
2022-07-11T13:45:39.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Move files into subdirectories based on prefix combinations<p>I have a directory with very large number of files following this pattern:</p> <p>filtered.{x}....
72,800,611
How to add and display the suffix m² to a SharePoint number column in Powerapps<p>In a SharePoint list one column is declared as numeric, and with SharePoint's own &quot;suffix adding tool&quot; I assigned <strong>m²</strong> to the column value. The input <strong>1000</strong> is then correctly displayed in the list v...
<p>You could add a label on top of the input. Then conditionally show/hide the label based on the formMode. Users wouldn't see the &quot;m²&quot; when entering data into the form (aka form in edit mode), but they would see the &quot;m²&quot; when the form is in view mode.</p> <p><a href="https://i.stack.imgur.com/D9rvH...
How to add and display the suffix m² to a SharePoint number column in Powerapps
forms|sharepoint|formatting|powerapps|suffix
0
72
1
72,803,234
72,803,234
1
true
2022-06-29T11:26:47.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add and display the suffix m² to a SharePoint number column in Powerapps<p>In a SharePoint list one column is declared as numeric, and with SharePoint...
73,016,779
Excel filter using the Dynamic Array of another filter function<p>I have been struggling with this for a while and am unable to find a solution on google, so any help would be greatly appreciated!</p> <p>The function is trying to list all the courses that a student is taking, based on all the students that are taking &...
<p>As Harun24hr said, you cannot compare each individual element (given_names) in the dynamic array with multiple values. The filter function simply takes one final TRUE or FALSE for each row in the table while your written criteria give a list of TRUE or FALSE for each row which is why your external filter fails when ...
Excel filter using the Dynamic Array of another filter function
arrays|excel|filter
0
72
1
73,019,057
73,019,057
1
true
2022-07-18T02:34:02.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel filter using the Dynamic Array of another filter function<p>I have been struggling with this for a while and am unable to find a solution on google, so...
72,980,661
Calculate mean and standard deviation for subgroups<p>I want to calculate the mean and standard deviation for subgroups every column in my dataset. The membership of the subgroups is based on the values in the column of interest and these subgroups are specific to each column of interest.</p> <pre><code># Example data ...
<p>Here's a tidyverse method that gives an easy-to-read and easy-to-plot output:</p> <pre class="lang-r prettyprint-override"><code>library(tidyverse) set.seed(1) df &lt;- data.frame(baseline = runif(100), `Week0_12` = runif(100), `Week12_24` = runif(100)) df2 &lt;- df %&gt;% s...
Calculate mean and standard deviation for subgroups
r
-1
72
3
72,981,252
72,981,252
1
true
2022-07-14T12:39:19.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calculate mean and standard deviation for subgroups<p>I want to calculate the mean and standard deviation for subgroups every column in my dataset. The membe...
72,895,909
How to do a try catch in bash scripts with curly braces?<p>A recommended pattern that mimics try-catch in bash scripts is to use curly braces. This does not work as expected, though. The following script outputs <code>A B 1</code>. Why is that the case and how must the script be modified to output the intended <code>A ...
<p>There are many issues with the 'set -e' - it does not work well in many error conditions. This has been covered in many posting, just search 'errexit bash'. For example: <a href="https://stackoverflow.com/questions/29532904/bash-subshell-errexit-semantics">Bash subshell errexit semantics</a></p> <p>At this time, the...
How to do a try catch in bash scripts with curly braces?
bash
1
72
3
72,896,137
72,896,137
1
true
2022-07-07T10:03:42.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to do a try catch in bash scripts with curly braces?<p>A recommended pattern that mimics try-catch in bash scripts is to use curly braces. This does not ...
72,977,564
Symbolic calls with Quickcheck in erlang<p>Hi I am trying to learn quickcheck (quviq) in erlang and I have come across an exercise where I have to test a simulated cache with symbolic calls. However I encounter problems because I get an</p> <pre><code>31&gt; eqc:quickcheck(test_cache:prop_cache()). Faile...
<p>The error is telling you that you are trying to call a bad function <code>{call,test_cache,mkt,[set,{0,10}]}</code>, which is, indeed, not a function. This happens when trying to invoke it as <code>TT1(new)</code>, <em>prior</em> to calling <code>eval/1</code>. Do <code>eval(TT1)</code> first, and then apply the arg...
Symbolic calls with Quickcheck in erlang
erlang|quickcheck|erlang-shell
1
72
1
72,994,358
72,994,358
1
true
2022-07-14T08:32:48.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Symbolic calls with Quickcheck in erlang<p>Hi I am trying to learn quickcheck (quviq) in erlang and I have come across an exercise where I have to test a sim...
72,891,543
How I can reduce the decimal numbers after the point and fix a bug that show a lot of words?<p>First, my code asks your name and it shows a random number and you need to extract the square root of it. So if the code shows <code>81</code>, you need to type <code>9</code>. But, when the number is decimal (<code>1.54896</...
<p>There are multiple problems in your code:</p> <ul> <li><p><code>for (a = 0; a &lt; 1; a++)</code> just iterates once, not very useful and definitely not needed in a minimal example.</p> </li> <li><p><code>c = 10 rand() % 100 + 1;</code> is a syntax error. Use <code>c = rand() % 100 + 1;</code></p> </li> <li><p><code...
How I can reduce the decimal numbers after the point and fix a bug that show a lot of words?
c|cs50
2
72
1
72,893,418
72,893,418
1
true
2022-07-07T02:03:32.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How I can reduce the decimal numbers after the point and fix a bug that show a lot of words?<p>First, my code asks your name and it shows a random number and...
72,839,030
For Loop while referring to an array with Length<p>I'm very new to javascript and have just recently learned about For loops. I have a variable that consists of an array containing a bunch names, and I would like to add last names to each of them. I wrote the code as shown below and have a few questions.</p> <p><div cl...
<p>For your first question:</p> <p>Inside the for loop, if you start from 0, and the condition is <code>i &lt; array.length</code> and the length of the array is 6, it will go from 0 to 5, and when it reaches 6 it will not respect the condition (6 &lt; 6 <code>false</code>) so it will exit the <code>for</code> loop bef...
For Loop while referring to an array with Length
javascript|for-loop
1
72
1
72,839,074
72,839,074
1
true
2022-07-02T12:25:52.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: For Loop while referring to an array with Length<p>I'm very new to javascript and have just recently learned about For loops. I have a variable that consists...
72,791,190
ListView goes up and down when i scroll it - flutter<p>I made a listview on flutter but it goes up and down when I scroll it</p> <p>things I already tried:</p> <ul> <li>Changing the expanded to a container with a limited height</li> <li>add the shrinkwrap parameter</li> </ul> <p><a href="https://drive.google.com/file/d...
<p>To change the axis of scroll use</p> <pre><code>scrollDirection: Axis.horizontal, </code></pre> <p><strong>Edit</strong> To keep the background without scrolling use the layout as below</p> <pre><code>import 'package:flutter/material.dart'; const Color darkBlue = Color.fromARGB(255, 18, 32, 47); void main() { ru...
ListView goes up and down when i scroll it - flutter
flutter|dart|flutter-layout|material-design
1
72
3
72,791,381
72,791,381
1
true
2022-06-28T18:01:38.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ListView goes up and down when i scroll it - flutter<p>I made a listview on flutter but it goes up and down when I scroll it</p> <p>things I already tried:</...
72,856,464
what does -cat tty: true mean in yaml configuration of kubernetes agent in Jenkinsfile?<pre><code>apiVersion: v1 kind: Pod spec: serviceAccountName: &lt;service account name in kubernetes&gt; containers: - name: spark-submit image: &lt;image arn&gt; command: - cat tty: true - name: kube-tools ...
<p>Please note that these are two different settings. With <code>tty: true</code> you enable a TTY which is required for execution of a shell.</p> <p>The second is <code>cat</code> as argument for the container <code>command</code>. It means that the <code>cat</code> executable is run without further arguments. If you ...
what does -cat tty: true mean in yaml configuration of kubernetes agent in Jenkinsfile?
kubernetes|jenkins|jenkins-pipeline
0
72
1
72,856,583
72,856,583
1
true
2022-07-04T12:06:12.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: what does -cat tty: true mean in yaml configuration of kubernetes agent in Jenkinsfile?<pre><code>apiVersion: v1 kind: Pod spec: serviceAccountName: &lt;se...
72,379,387
How to handle error messages when validating a form across different FieldLists of FormFields?<p>I have a form that contains (among other fields) 2 FieldLists. Each FieldList is a list of FormFields. In each FieldList, the forms all represent projects. One fieldlist is for projects having budget taken away, and the ...
<p>Your approach of using <code>validate</code> makes sense to me and I think you are close to reaching your goal.<br /> In order to be able to assign the error message to a field, you can temporarily store the necessary fields and then add an entry to the tuple of error messages of the respective field for as long as ...
How to handle error messages when validating a form across different FieldLists of FormFields?
python|flask|wtforms
2
72
1
72,455,129
72,455,129
1
true
2022-05-25T14:22:17.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to handle error messages when validating a form across different FieldLists of FormFields?<p>I have a form that contains (among other fields) 2 FieldList...