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,827,493
How can I find and edit the html code for Moodle without using the additional HTML box?<p>I've been hunting for days now and for whatever reason the code seems to be pretty elusive with files linking to files that link to other files that don't exist. So can anyone tell me where i can find the HTML / PHP / SQL code, or...
<p>In moodle, you can use the theme plugin renderers to render the core outputs. Please refer to the theme renderer method.<br /> <a href="https://docs.moodle.org/dev/Overriding_a_renderer" rel="nofollow noreferrer">https://docs.moodle.org/dev/Overriding_a_renderer</a></p> <p>you can find the full_header function in <s...
How can I find and edit the html code for Moodle without using the additional HTML box?
moodle|moodle-theme
0
79
1
72,851,858
72,851,858
0
true
2022-07-01T09:53:10.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I find and edit the html code for Moodle without using the additional HTML box?<p>I've been hunting for days now and for whatever reason the code see...
72,854,496
Using AMPScript to extract text from a String after nth delimiter<p>I need to be able to extract from a string after nth delimiter. In this case, the delimiter is an <em><strong>underscore</strong></em>.</p> <p>The challenge is that the last delimiter could be in the 2nd, 3rd,4th or 5th position</p> <p><strong>Example<...
<p>Using the <a href="https://ampscript.guide/regexmatch" rel="nofollow noreferrer">RegExMatch()</a> function may be your best bet:</p> <pre class="lang-ampscript prettyprint-override"><code>%%[ set @pattern = &quot;^.+_(.+\-\d+\-\d+\-.+)&quot; set @s1 = &quot;LB_AB_BookingReminder_123-1-2-1S&quot; set @s2 = &quot;LB_...
Using AMPScript to extract text from a String after nth delimiter
substring|ampscript
0
79
1
72,856,425
72,856,425
0
true
2022-07-04T09:26:10.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using AMPScript to extract text from a String after nth delimiter<p>I need to be able to extract from a string after nth delimiter. In this case, the delimit...
72,860,875
Debug.Print won't print anything in VBA Immediate Window<p>This code creates an array off a range. However when I try to see if the array is actually saving the elements, by using Debug.Print, nothing is shown in the Immediate Window, but it displays just blank spaces. There are no errors, just doesn't display anything...
<p>Immediate problem: <code>ReDim myArray(iCountLI)</code> creates an array with <em>empty</em> values. In the For Loop, <code>myArray(iElementLI - 1) = Cells(iElementLI + 2, 2).Value</code> overwrites the <em>first, second, etc.</em> values, yet your <code>Debug.Print myArray(iElementLI)</code> is printing the <em>sec...
Debug.Print won't print anything in VBA Immediate Window
arrays|excel|vba|debugging
0
79
2
72,861,689
72,861,689
0
true
2022-07-04T18:40:46.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Debug.Print won't print anything in VBA Immediate Window<p>This code creates an array off a range. However when I try to see if the array is actually saving ...
72,864,189
R ggplot2 facet_wrap: how to create different number of columns in different rows<p>I have 14 groups total, i want to present 4 columns in the first row, 5 in the 2nd and 3rd row. <img src="https://i.stack.imgur.com/akJvv.jpg" alt="1" /></p>
<p>As said in the comments you can use the package <code>ggh4x</code> where you can create your own layout. I would suggest having a look at the link mentioned in the comments, but I can give you an example where you have the layout you want. The important part is in the design where # means empty cell. You can make a ...
R ggplot2 facet_wrap: how to create different number of columns in different rows
r|ggplot2|facet-wrap
-1
79
1
72,867,291
72,867,291
0
true
2022-07-05T04:59:31.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R ggplot2 facet_wrap: how to create different number of columns in different rows<p>I have 14 groups total, i want to present 4 columns in the first row, 5 i...
72,828,240
AWS S3 Lifecycle Rule Not Taking Effect<p>I have a bucket with about 23 million objects in and each of these objects has a prefix e.g. <code>5f930e87b0f83/</code> where 5 or 6 objects share the same prefix. Some of the objects are a number of years old. The bucket is not versioned.</p> <p>I've set up a lifecycle rule o...
<p>Following on from the comment by <a href="https://stackoverflow.com/users/174777/john-rotenstein">John Rotenstein</a> (many thanks), it appears that the tag value was required for it to work. This had been left blank as it's marked as <em>optional</em> in the AWS console so it was assumed that a blank value would ca...
AWS S3 Lifecycle Rule Not Taking Effect
amazon-web-services|amazon-s3|s3-object-tagging
0
79
1
72,868,771
72,868,771
0
true
2022-07-01T11:00:01.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWS S3 Lifecycle Rule Not Taking Effect<p>I have a bucket with about 23 million objects in and each of these objects has a prefix e.g. <code>5f930e87b0f83/</...
72,871,801
Revoking a access token / refresh token revokes other token with different set of permissions<p>I am working with two sets of Google APIs and permissions one is for Google Calendar and another one is for Google Drive from the same OAuth 2.0 Client in the Google Cloud console.</p> <p>From obtaining tokens to revoking I'...
<p>Revoke will revoke a users access to your application. All of it no matter what api scope you requested access for. Its not limited by a single scope.</p> <p>My question is why you have two tokens for the same user. Why not just request drive and calendar access of the user once and have a single token granting yo...
Revoking a access token / refresh token revokes other token with different set of permissions
google-api|google-oauth
0
79
1
72,871,995
72,871,995
0
true
2022-07-05T15:16:01.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Revoking a access token / refresh token revokes other token with different set of permissions<p>I am working with two sets of Google APIs and permissions one...
72,864,873
Beckhoff PLC Routing on Linux<p>I am trying to communicate my Linux pc to Beckhoff CX9020 PLC. When I tried routing commands I am geting some errors. I think the errors are due to the wrong addresses I wrote. How can get this values ? On Windows or Linux is enough ?</p> <p>pyads.set_local_address ('1.2.3.4.1.1')</p> <p...
<p>you must create a route from the PLC (CX9020) to the Client (Ubuntu).</p> <p>I would start by deleting any routes already created if you have been struggling in case these get in the way. I would do this by plugging the CX into a monitor, keyboard and mouse and using the TwinCat route editor by right clicking on Twi...
Beckhoff PLC Routing on Linux
python|linux|routes|plc|communicate
0
79
1
72,874,470
72,874,470
0
true
2022-07-05T06:31:30.263Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Beckhoff PLC Routing on Linux<p>I am trying to communicate my Linux pc to Beckhoff CX9020 PLC. When I tried routing commands I am geting some errors. I think...
72,908,647
how to clear value in getxcontroller in flutter?<p>how can I clear value in get x controller? for now I need to restart my app every time I need to input different value.</p> <p>my text controller class :</p> <pre><code>import 'package:get/get.dart'; class TextControllers extends GetxController { Rx&lt;TextEditingCo...
<p>just use clear function</p> <pre><code> clearTextInput(){ usernameController.clear(); passwordController.clear(); vendor1Controller.clear(); stocktableController.clear(); fixassetController.clear(); } </code></pre>
how to clear value in getxcontroller in flutter?
android|flutter|flutter-getx
0
79
2
72,908,700
72,908,700
0
true
2022-07-08T08:24:54.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to clear value in getxcontroller in flutter?<p>how can I clear value in get x controller? for now I need to restart my app every time I need to input dif...
72,929,354
How to Install Kint Globally Drupal - Without Devel Module<p>I was trying to setup an easy way to debug the Lando Drupal installations using Kint module. But I don't want to install the <a href="https://www.drupal.org/project/devel" rel="nofollow noreferrer">Devel</a> and <a href="https://www.drupal.org/project/devel_...
<p>Yes, it is possible to install PHP Kint Library globally for Drupal Projects without Devel Module installed.</p> <h3><strong>Install Kint Globally</strong></h3> <p>Install <a href="https://github.com/kint-php/kint" rel="nofollow noreferrer">PHP Kint Library</a> globally.&nbsp;</p> <pre> composer global require kint-...
How to Install Kint Globally Drupal - Without Devel Module
drupal|composer-php|drupal-8|drupal-modules|kint
0
79
1
72,929,355
72,929,355
0
true
2022-07-10T14:45:21.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Install Kint Globally Drupal - Without Devel Module<p>I was trying to setup an easy way to debug the Lando Drupal installations using Kint module. Bu...
72,933,478
What is laragon alternative on linux?<p>Iam new on linux, what is laragon alternative on linux? is it better to use xampp or separate install like mysql, php myadmin?</p>
<p>The best alternative is XAMPP, which is both free and Open Source. Other great apps like Laragon are Vagrant, WampServer, BitNami Application Stacks and AMPPS. Laragon alternatives are mainly Web Servers but may also be Large File Transfer Services or Virtualization Tools</p> <p><a href="https://alternativeto.net/so...
What is laragon alternative on linux?
linux|xampp|laragon
1
79
1
72,933,863
72,933,863
0
true
2022-07-11T03:42:37.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is laragon alternative on linux?<p>Iam new on linux, what is laragon alternative on linux? is it better to use xampp or separate install like mysql, php...
72,939,077
Set width of div to full page<p>Hello i have a landing page. I would like to set width of my header to the full page with bootstrap. I was trying to set it with container-fluid class but its not working. How to fix this? That it will be responsive and width set to the full page? Thanks for Help</p> <p>Here is the code:...
<p>You can have it, hope it helps</p> <pre><code>&lt;div class=&quot;header container-fluid d-flex justify-content-between align-items-center&quot;&gt; &lt;div class=&quot;logo&quot;&gt;Logo&lt;/div&gt; &lt;nav class=&quot;nav&quot;&gt; &lt;ul class=&quot;d-flex&quot;&gt; &lt;li&gt; &lt;...
Set width of div to full page
html|css
0
79
2
72,940,950
72,940,950
0
true
2022-07-11T13:05:40.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set width of div to full page<p>Hello i have a landing page. I would like to set width of my header to the full page with bootstrap. I was trying to set it w...
72,935,892
gatsby-source-filesystem not sourcing files from site directory when used in a theme<p>I'm trying to build a gatsby theme that uses <code>gatsby-source-filesystem</code> to source images.</p> <p>I have set up a yarn workspace for development, my folder structure looks like this.</p> <pre><code>workspace/ ├─ example.com...
<p>Another solution and in this case the optimal one is to just use <code>images</code> as a path.</p> <pre><code>{ resolve: `gatsby-source-filesystem`, options: { name: `images`, path: `images`, }, }, </code></pre> <p>Based on <a href="https://github.com/gatsbyjs/gatsby/discussions/36103#discussio...
gatsby-source-filesystem not sourcing files from site directory when used in a theme
javascript|filesystems|gatsby|gatsby-theme
1
79
2
72,948,168
72,948,168
0
true
2022-07-11T08:50:26.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: gatsby-source-filesystem not sourcing files from site directory when used in a theme<p>I'm trying to build a gatsby theme that uses <code>gatsby-source-files...
72,950,249
How to use vue i18n $t in vuex getters in vue 3?<p>I want to use i18n $t in my getters for a static label. How can I do that?</p> <p>I've tried importing like this:</p> <pre><code>import { i18n } from '../../locales/i18n.js'; const getters = { guaranteePolicies: state =&gt; { let guaranteesState = state.ra...
<p>Figure it out how to use it!</p> <p>Instead of importing i18n with curly brackets, I'm importing like this:</p> <pre><code>import i18n from '../../locales/i18n.js' </code></pre> <p>and for accessing the $t function, I'm using</p> <pre><code> label : i18n.global.t(&quot;chooseGuarantee&quot;) </code></pre> <p>...
How to use vue i18n $t in vuex getters in vue 3?
vue.js|vuex|vuejs3|vue-i18n
0
79
1
72,952,985
72,952,985
0
true
2022-07-12T09:44:44.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use vue i18n $t in vuex getters in vue 3?<p>I want to use i18n $t in my getters for a static label. How can I do that?</p> <p>I've tried importing lik...
72,954,110
How do you write a presto query to split a string into its own column<p>Trying to splint a string into multiple columns in qubole using presto query.</p> <p><code>{&quot;field0&quot;:[{&quot;startdate&quot;:&quot;2022-07-13&quot;,&quot;lastnightdate&quot;:&quot;2022-07-16&quot;,&quot;adultguests&quot;:5,&quot;childgues...
<p>The data looks a lot like json, so you can process it using <a href="https://prestodb.io/docs/current/functions/json.html" rel="nofollow noreferrer">json functions</a> first (parse, extract, cast to <code>array(map(varchar, json))</code> or <code>array(map(varchar, varcchar))</code>) and then flatten with <code>unne...
How do you write a presto query to split a string into its own column
sql|presto|qubole
2
79
1
72,954,704
72,954,704
0
true
2022-07-12T14:37:58.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you write a presto query to split a string into its own column<p>Trying to splint a string into multiple columns in qubole using presto query.</p> <p>...
72,952,077
Copy data from Cosmos Db to table storage fails on custom RowKey<p>I'm trying to get a very simple data migration to work, where I want 3 fields from Cosmos Db documents to be inserted as entities in Table Storage. The challenge seems to be in the fact that I want an Id from the document, also to be the value of the pa...
<p><em><strong>I tried to reproduce the same in my environment and got the same error as below:</strong></em></p> <p><a href="https://i.stack.imgur.com/Mdg3P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mdg3P.png" alt="Ref1" /></a></p> <p><em><strong>If I specify unique identifier its working fine...
Copy data from Cosmos Db to table storage fails on custom RowKey
azure-data-factory|azure-data-factory-2
0
79
2
72,962,122
72,962,122
0
true
2022-07-12T12:09:25.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Copy data from Cosmos Db to table storage fails on custom RowKey<p>I'm trying to get a very simple data migration to work, where I want 3 fields from Cosmos ...
72,947,052
how can I receive all message by libevent<p>Currently, I use <code>libevent</code> to send and receive messages. The issue I am currently encountering is that I do not receive all messages on the server; and only receive the first message I sent.</p> <p>Client Code:</p> <pre><code>for (int i=0; i &lt; 10 ; i++) { b...
<p>This situation seems to be a bit like a spacket splicing problem, you can try this</p> <pre><code> static void read_cb(struct bufferevent* bev, void* arg) { char bufs[2048]; struct evbuffer *input = bufferevent_get_input(bev); size_t lens = evbuffer_get_length(input); char * rline =...
how can I receive all message by libevent
c++|networking|server|libevent
1
79
1
72,964,557
72,964,557
0
true
2022-07-12T04:28:45.703Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can I receive all message by libevent<p>Currently, I use <code>libevent</code> to send and receive messages. The issue I am currently encountering is tha...
72,850,737
How can I get a substring from each string in an array, without knowing the size of each?<p>Okay, I know this might be a weird one.</p> <p>I have this block of code in GAS:</p> <pre><code>function setHeroData(ss_id, column, row, valueInputOption) { try { var sheet = SpreadsheetApp.getActiveSheet(); let range ...
<p>After looking for a while, I found <a href="https://gamepress.gg/sites/default/files/aggregatedjson/hero-list-FEH.json?307903872838006085" rel="nofollow noreferrer">this</a> json file that contains all the information I need, and also has separate entries for the different Voice Actors of each character. This works ...
How can I get a substring from each string in an array, without knowing the size of each?
javascript|google-apps-script|web-scraping|google-sheets-api|cheerio
0
79
1
72,974,063
72,974,063
0
true
2022-07-04T00:17:43.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I get a substring from each string in an array, without knowing the size of each?<p>Okay, I know this might be a weird one.</p> <p>I have this block ...
72,984,784
Can you explain please, why I get "non-valid function does not return a value in all control paths" error if I use 'else if' instead of else? (C)<p>I'm learning implementing recursion in C programming language. In one of my simple programs I came across one particular error message, which I would like to understand and...
<p>With this code:</p> <pre><code> if (compared_value == main_value) // ending condition return 0; else if (compared_value &lt; main_value) return find_the_amount_of_smaller_numbers(main_value) + 1; else if (compared_value &gt; main_value) return find_the_amount_of_smaller_numbers(m...
Can you explain please, why I get "non-valid function does not return a value in all control paths" error if I use 'else if' instead of else? (C)
c|if-statement|recursion|return
0
79
2
72,984,892
72,984,892
0
true
2022-07-14T17:55:01.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can you explain please, why I get "non-valid function does not return a value in all control paths" error if I use 'else if' instead of else? (C)<p>I'm learn...
72,993,473
Replacing all non-numeric characters in certain columns in R<p>How can I remove all non-numeric characters from all columns expect &quot;a&quot;?</p> <p><strong>Simulated data</strong></p> <pre><code>library(tidyverse) d = tibble(a = c(&quot;Tom&quot;, &quot;Mary&quot;, &quot;Ben&quot;, &quot;Jane&quot;, &quot;Lucas&q...
<p>You could use <code>across</code> (within <code>mutate</code>) to do it over all columns but <code>a</code> and use <code>regex</code> (within <code>str_extract</code>) to extract only numerics (and convert to numerics type).</p> <pre class="lang-r prettyprint-override"><code>library(tidyverse) d |&gt; mutate(ac...
Replacing all non-numeric characters in certain columns in R
r|dplyr|data-manipulation
-1
79
2
72,993,493
72,993,493
0
true
2022-07-15T11:44:45.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replacing all non-numeric characters in certain columns in R<p>How can I remove all non-numeric characters from all columns expect &quot;a&quot;?</p> <p><str...
72,996,911
Swift 5.7 - The compiler cannot type-check complex regex which contains 5 captures<p>I wrote this code:</p> <pre class="lang-swift prettyprint-override"><code>let regex = Regex { let newline = #/\r|\n|\r\n/# let doubleNewline = Repeat(newline, count: 2) let dateFormatter = DateFormatter() ...
<p>You have a date formatter but you haven't configured it at all so what is it supposed to format? Setting a date format made the code compile for me.</p> <p>Example</p> <pre><code>let dateFormatter = DateFormatter() dateFormatter.dateFormat = &quot;yyyy-MM-dd&quot; </code></pre> <p>Note that I moved the DateFormatter...
Swift 5.7 - The compiler cannot type-check complex regex which contains 5 captures
swift|regex|swift-string
0
79
1
72,997,556
72,997,556
0
true
2022-07-15T16:17:11.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Swift 5.7 - The compiler cannot type-check complex regex which contains 5 captures<p>I wrote this code:</p> <pre class="lang-swift prettyprint-override"><cod...
72,998,676
trying to escape dynamic string in sql query<p>Running a SQL query like shown below. Here if the name is &quot;Tim's Store&quot; how do I escape it in my query below.</p> <p>Most of the time the name variable will not have a ' but sometimes it does and I run into an error.</p> <p>How do I escape this?</p> <pre><code>na...
<p>In order to escape your <em>name</em> variable, you can first place the full string in double quotes and then list the apostrophe as you currently have it as shown here:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet...
trying to escape dynamic string in sql query
javascript|mysql|sql|sql-injection
-1
79
1
72,999,121
72,999,121
0
true
2022-07-15T19:13:06.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: trying to escape dynamic string in sql query<p>Running a SQL query like shown below. Here if the name is &quot;Tim's Store&quot; how do I escape it in my que...
73,001,861
Conda Create Environment Takes Forever<p>Is it only me or is it like this with Conda? I'm having a environment file that looks like this:</p> <pre><code>name: python-cvcourse channels: - menpo - conda-forge - defaults dependencies: - jupyter=1.0.0 - jupyterlab=0.34.9 - keras=2.2.2=0 - matplotlib=2.2.3 -...
<p>I just tried running your yaml file myself and I was able to successfully create a conda environment with it. Instead of running <code>conda env update</code> try creating the environment from scratch with the yaml? The following is the command I ran: <code>conda env create -f environment.yml</code>. Where <code>env...
Conda Create Environment Takes Forever
python|conda
0
79
1
73,002,025
73,002,025
0
true
2022-07-16T05:53:26.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Conda Create Environment Takes Forever<p>Is it only me or is it like this with Conda? I'm having a environment file that looks like this:</p> <pre><code>name...
72,807,963
Update multiple rows with different values but with one where condition<p>Below is a table which includes data of store and are identified by order_id.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>order_id</th> <th>erp_id</th> <th>Serial_No</th> </tr> </thead> <tbody> <tr> <td>1234567</t...
<p>I found a solution by exporting a data in excel and generating a helper column and then vlookup to update the desired column. Thanks All :)</p>
Update multiple rows with different values but with one where condition
sql|oracle
0
79
1
73,005,121
73,005,121
0
true
2022-06-29T21:16:09.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Update multiple rows with different values but with one where condition<p>Below is a table which includes data of store and are identified by order_id.</p> <...
73,003,046
How to format numbers in a textField with math equation string?<p>I'm trying to format numbers in a <code>UITextField</code> consists of math equation <code>string</code>: &quot;number + number&quot;.</p> <p>At the moment I can type just a single number, then convert it to <code>Double</code> -&gt; format with <code>NS...
<p>Here is how I was able to solve my question:</p> <pre><code> func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -&gt; Bool { let formatter = NumberFormatter() formatter.numberStyle = .decimal formatter.maximumFractionDigits = 2 ...
How to format numbers in a textField with math equation string?
swift|string|uikit|uitextfield|nsnumberformatter
0
79
1
73,005,835
73,005,835
0
true
2022-07-16T09:27:09.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to format numbers in a textField with math equation string?<p>I'm trying to format numbers in a <code>UITextField</code> consists of math equation <code>...
73,009,557
security context in kubernetes deployment<p>I created a dockerfile which is use user 10001 if it is possible to kubernetes deployment with following security context</p> <pre class="lang-bash prettyprint-override"><code>user 10001 </code></pre> <pre class="lang-yaml prettyprint-override"><code>securityContext: runA...
<p>Yes, you can remote into the container and check with <code>id</code> command: <code>uid=1000 gid=3000 groups=2000</code></p>
security context in kubernetes deployment
security|kubernetes
0
79
1
73,009,665
73,009,665
0
true
2022-07-17T06:01:20.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: security context in kubernetes deployment<p>I created a dockerfile which is use user 10001 if it is possible to kubernetes deployment with following security...
73,016,841
Scheme with postfix<p>Does anyone can help me to deal with the problem? I tried for many times, but it still has the error information. This is my code(scheme) Thanks!!!</p> <pre><code>(define (postfix l s) (cond( ((null? l)(car s)) (else (postfix (cdr l) update-s((car s))))))) (define (update-s x s) ...
<p>Next time, don't forget to add a description of your problem (what should this code do?), expected inputs and outputs, and a version of Scheme you use.</p> <p>You should also use better names for variables (no <code>l</code>, <code>s</code>, <code>x</code>) and describe their meaning and expected type in your questi...
Scheme with postfix
scheme|postfix-notation
0
79
1
73,017,526
73,017,526
0
true
2022-07-18T02:47:03.647Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Scheme with postfix<p>Does anyone can help me to deal with the problem? I tried for many times, but it still has the error information. This is my code(schem...
72,957,733
OMPython File Specification to run OMCSessionZMQ()<p>I am trying to run OMPython and I am experiencing an error running the example shown at <a href="https://openmodelica.org" rel="nofollow noreferrer">https://openmodelica.org</a>.</p> <p>I can run the first line:</p> <pre><code> from OMPython import OMCSessionZMQ <...
<p>Answer as provided by Adrian Pop was to uninstall, restart, and reinstall OpenModelica. This fixed the error.</p>
OMPython File Specification to run OMCSessionZMQ()
python|python-3.x|modelica|openmodelica
0
79
1
73,058,426
73,058,426
0
true
2022-07-12T19:57:40.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: OMPython File Specification to run OMCSessionZMQ()<p>I am trying to run OMPython and I am experiencing an error running the example shown at <a href="https:/...
73,022,303
load data from csv file to table hive<p>Im new using hive,</p> <p>table tb1 is created as below:</p> <pre><code>create external table tb1 (id string, name string, product string, depart string) PARTITIONED BY (dt DATE); </code></pre> <p>I want to insert data in external tables using the command below:</p> <pre><code...
<p>Try to create a table like below:</p> <pre><code>CREATE EXTERNAL TABLE tb1 ( id int, name string, product string, depart string) PARTITIONED BY (dt DATE) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE; </code></pre>
load data from csv file to table hive
csv|hadoop|hive|beeline
0
79
1
73,059,942
73,059,942
0
true
2022-07-18T12:26:45.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: load data from csv file to table hive<p>Im new using hive,</p> <p>table tb1 is created as below:</p> <pre><code>create external table tb1 (id string, name s...
73,030,355
How to retrieve data from List<Map<String, dynamic>> model in DataTable flutter?<p>let's say I have a model like this ...</p> <pre><code>class UserModel { UserModel({ required this.data1, required this.data2, required this.sessions, }); String data1; String data2; List&lt;Map&lt;String, dynamic&g...
<p>Thank you for the previous answer so I can figure out the logic and solve the problem by reversing the code, I got the answer to a similar question from <a href="https://stackoverflow.com/a/59778238/17031433">StackOverflow</a>.</p> <p>hire my working full code :</p> <pre><code>class DetailPage extends StatefulWidget...
How to retrieve data from List<Map<String, dynamic>> model in DataTable flutter?
json|flutter|model|nested
0
79
3
73,060,897
73,060,897
0
true
2022-07-19T02:04:41.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to retrieve data from List<Map<String, dynamic>> model in DataTable flutter?<p>let's say I have a model like this ...</p> <pre><code>class UserModel { ...
73,016,762
Beginner - Why is execCommand() obsolete?<p>Not a coding question, and the question applies to a wider tag of XYZ becoming obsolete, but asking as there seems to be tons of comments on the web about how there are so many apps out there that use this command.</p> <p>Why is this now obsolete? (tried executing on vscode, ...
<p>Based on the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand" rel="nofollow noreferrer">MDN entry for <code>Document.execCommand</code></a>, in <em>most</em> cases the APIs made available by <code>execCommand</code> can be achieved using other modern, purpose-built JavaScript APIs that...
Beginner - Why is execCommand() obsolete?
javascript|execcommand|obsolete
0
79
1
73,096,167
73,096,167
0
true
2022-07-18T02:29:39.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Beginner - Why is execCommand() obsolete?<p>Not a coding question, and the question applies to a wider tag of XYZ becoming obsolete, but asking as there seem...
72,934,377
Get image data from canvas<p>I'm trying to add a signature feature to a web app. Users should have the possibility to sign with a pencil on a touch screen device. I'm using HTML5 canvas, JavaScript and PHP to get things done. I found a script for both mouse and touch support.</p> <p>The drawing on the canvas works fine...
<p>The problem is this jQuery line:</p> <pre><code>$.post('/scribble/ax/ins_scribble', $('#form-scribble').serialize() + '&amp;data=' + data, function(ans) { </code></pre> <p>Combining the serialize function and an addition of &amp;data= didn't work. So I changed it to:</p> <pre><code>$.post('/scribble/ax/ins_scribbl...
Get image data from canvas
javascript|canvas
1
79
2
73,099,494
73,099,494
0
true
2022-07-11T06:13:44.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get image data from canvas<p>I'm trying to add a signature feature to a web app. Users should have the possibility to sign with a pencil on a touch screen de...
73,027,625
Importing bluetooth module to python environment on windows 10<p>I am trying to develop a program to allow communication between my windows PC and a Raspberry Pi via bluetooth. Things have been moving smoothly on the Pi, but on my PC I cannot seem to get the <code>bluetooth</code> module to work correctly and I haven't...
<p>I solved the problem by making a virtual environment and using <code>conda install pybluez</code> just in the environment. This also only worked in certain python versions for me: 2.7 and &gt; 3.9. I canonly run the code from the command line, but works fine now!</p>
Importing bluetooth module to python environment on windows 10
python|bluetooth|windows-10
0
79
1
73,125,329
73,125,329
0
true
2022-07-18T19:26:36.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Importing bluetooth module to python environment on windows 10<p>I am trying to develop a program to allow communication between my windows PC and a Raspberr...
72,777,388
Ruby on Rails - How can I use UUID as a simple column in my project?<p>I want to use UUID as a column from the table Address, but I don`t want to use it as a primary key. Is it possible? How can I do it?</p>
<p>To use UUID the first thing you need to do is to enable it on a migration</p> <p><code>rails g migration EnableUUID</code></p> <pre><code>class EnableUuid &lt; ActiveRecord::Migration[7.1] def change enable_extension 'pgcrypto' end end </code></pre> <p>Now we have to run migrations <code>rake db:migrate</cod...
Ruby on Rails - How can I use UUID as a simple column in my project?
ruby-on-rails|ruby|uuid
0
79
2
72,781,488
72,781,488
0
true
2022-06-27T19:25:13.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ruby on Rails - How can I use UUID as a simple column in my project?<p>I want to use UUID as a column from the table Address, but I don`t want to use it as a...
72,770,872
Call C dll function from C#<p>A C dll has:</p> <pre><code>struct CredPair{ char usr[127]; char pas[127]; }; struct CredData{ enum CredType { PAIR, KEY } credType; void* CredVal; }; struct EndpointData { enum EndpointType { DIRECT } endpointType; void* endp...
<p>You have a number of issues with your PInvoke declarations</p> <ul> <li>You need to make sure to free your HGlobal memory, otherwise it will leak.</li> <li>The strings are declared as fixed size <code>char</code> arrays in C, so need to be <code>CharSet.Ansi</code>...</li> <li>... and they need to be declared <code>...
Call C dll function from C#
c#|c|dll|pinvoke|marshalling
0
79
1
72,774,356
72,774,356
0
true
2022-06-27T10:49:39.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Call C dll function from C#<p>A C dll has:</p> <pre><code>struct CredPair{ char usr[127]; char pas[127]; }; struct CredData{ enum CredType { ...
73,014,268
How can I replace ?? with ternary operator in js?<p>I have a JS file which was created using browserify, and it uses the <code>??</code> operator. The problem is, the environment where I am executing this JS file doesn't support that operator yet.</p> <p>Is there any way I can go through the file, search and replace it...
<p>Is it JS or Python?</p> <p>Anyway, try capturing the line with:</p> <pre><code>(([^ \t]+)[ \t]*\?\?[ \t]*\d+) </code></pre> <p>This expression returns two groups:</p> <ol> <li>The line to be replaced</li> <li>The <code>object.error</code></li> </ol> <p>You then need to replace group#1 by <code>x == undefined ? 0 : g...
How can I replace ?? with ternary operator in js?
javascript|python|replace|browserify
-3
79
1
73,014,305
73,014,305
0
true
2022-07-17T18:17:17.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I replace ?? with ternary operator in js?<p>I have a JS file which was created using browserify, and it uses the <code>??</code> operator. The proble...
72,775,265
trying to scrape youtube using scrapy and get no data<p>so i am learning scrapy and would like to get data from a youtube channel</p> <blockquote> <p><a href="https://www.youtube.com/c/JohnWatsonRooney" rel="nofollow noreferrer">https://www.youtube.com/c/JohnWatsonRooney</a> for example</p> </blockquote> <p>so i open u...
<p>The url is entirely dynamic that's why you can't pull the data. You have to use either an automation tool something like selenium or API (Youtube provides API). As you want to grab subscriptions count right now.So I use selenium as an example</p> <pre><code>import time from selenium import webdriver from selenium.we...
trying to scrape youtube using scrapy and get no data
python|scrapy
-1
79
1
72,775,682
72,775,682
0
true
2022-06-27T16:15:14.263Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: trying to scrape youtube using scrapy and get no data<p>so i am learning scrapy and would like to get data from a youtube channel</p> <blockquote> <p><a href...
72,940,772
Splitting a DataFrame based on a condition<pre><code> df = {'Source': ['-23456','-23456','3456','','56789','-12456','-13245','','45678','12346','','-23456','-23456','-234556','124566','098745','-67890'], 'number_mp': [369452,369452,369452,369452,369452,369452,369452,369452,369452,369452,369452,369452,369452,369...
<p>I'm still not entirely sure I understand your goal, but here's a suggestion:</p> <p>First group the indices in blocks, each block containing the indices that belong to the same date, and the blocks ordered by date:</p> <pre><code>from datetime import datetime from itertools import combinations, product def key(grou...
Splitting a DataFrame based on a condition
python|dataframe
0
79
1
72,973,468
72,973,468
0
true
2022-07-11T15:12:39.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Splitting a DataFrame based on a condition<pre><code> df = {'Source': ['-23456','-23456','3456','','56789','-12456','-13245','','45678','12346','','-23456'...
72,936,746
Find a list of unique IP address from a JSON log file in Python<p>How to write a program in python to find a list of the unique IP addresses from a JSON file?</p> <p>I am only a newbie at Python and I have the following data in JSON format. I want to find the unique values of &quot;remoteIp&quot; key.</p> <pre><code>{ ...
<p>use a set()</p> <pre><code>a = ['a','b','a'] b = set(a) b # print {'a', 'b'} </code></pre> <p>please print the type of s3</p> <pre><code>for d2 in data: #... s3 = (d2['httpRequest']['remoteIp']) #... print(&quot;length of unique ip set is &quot; + str(len(unique_ip))) unique_ip.add(''.join(s3)) ...
Find a list of unique IP address from a JSON log file in Python
python|json|list|ip
0
79
3
72,936,896
72,936,896
0
true
2022-07-11T09:59:30.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find a list of unique IP address from a JSON log file in Python<p>How to write a program in python to find a list of the unique IP addresses from a JSON file...
73,006,936
Is it more beneficial to read many small files or fewer large files of the exact same data?<p>I am working on a project where I am combining 300,000 small files together to form a dataset to be used for training a machine learning model. Because each of these files do not represent a single sample, but rather a variabl...
<p>Usually working with one bigger file is faster than working with many small files.</p> <p>It needs less <code>open</code>, <code>read</code>, <code>close</code>, etc. functions which need time to</p> <ul> <li>check if file exists,</li> <li>check if you have privilege to access this file,</li> <li>get file's informat...
Is it more beneficial to read many small files or fewer large files of the exact same data?
python|machine-learning|pytorch|iteration|dataloader
0
79
1
73,011,459
73,011,459
0
true
2022-07-16T19:02:03.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it more beneficial to read many small files or fewer large files of the exact same data?<p>I am working on a project where I am combining 300,000 small fi...
72,853,678
Declare bind variable in the Oracle SQL Developer<p>I'd like to try to execute this query via Oracle SQL Developer, but I always got the error message which is</p> <pre><code>ORA-01722: invalid number 01722. 00000 - &quot;invalid number&quot; *Cause: The specified number was invalid. *Action: Specify a valid numb...
<ul> <li><code>DEFINE</code> declares a substituition variable which will be prefixed by <code>&amp;</code> in the code and is processed in the client application (i.e. in SQL Developer) as if a find-replace occurs on the statement.</li> <li><code>VARIABLE</code> declares a bind-variable which will be prefixed by <code...
Declare bind variable in the Oracle SQL Developer
sql|oracle|oracle-sqldeveloper
0
79
1
72,854,307
72,854,307
0
true
2022-07-04T08:19:42.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Declare bind variable in the Oracle SQL Developer<p>I'd like to try to execute this query via Oracle SQL Developer, but I always got the error message which ...
72,950,875
How to disable "Use Strict" in Jest<p>I am writing some unit tests for a codebase which uses octal literals. Whenever the test is executed with <code>npm test</code>, a syntax error appears as follows:</p> <blockquote> <p>Legacy octal literals are not allowed in strict mode.</p> </blockquote> <p>I should stress that <c...
<p>Per <a href="https://jestjs.io/docs/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object" rel="nofollow noreferrer">the docs</a>:</p> <blockquote> <p>By default, Jest will use <code>babel-jest</code> transformer</p> </blockquote> <p>You can explicitly tell Jest you don't want it to try to...
How to disable "Use Strict" in Jest
javascript|node.js|jestjs|use-strict
1
79
1
72,951,113
72,951,113
0
true
2022-07-12T10:31:26.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to disable "Use Strict" in Jest<p>I am writing some unit tests for a codebase which uses octal literals. Whenever the test is executed with <code>npm tes...
72,902,607
React Router conditional redirect<p>I'm building a search UI using React, React Router and the awesome <a href="https://opensource.appbase.io/reactivesearch/" rel="nofollow noreferrer">Reactivesearch</a> library. I'm trying to figure out how I can prevent users from simply navigating to <strong>mydomain.com/search</str...
<p>If you want to conditionally render the <code>ReactiveList</code> component based on if there's a truthy <code>q</code> queryString parameter then you can use either a wrapper component, a layout route, or a Higher Order Component (HOC) to read the queryString and handle the redirection logic.</p> <h2><code>react-ro...
React Router conditional redirect
redirect|react-router-dom|reactivesearch
1
79
1
72,925,151
72,925,151
0
true
2022-07-07T18:26:13.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Router conditional redirect<p>I'm building a search UI using React, React Router and the awesome <a href="https://opensource.appbase.io/reactivesearch/...
72,818,517
Selenium 'send_keys' does not work for YouTube<p>I'm new to Selenium and I'm trying to create my first automatization test where OS is gonna open Chrome browser, opens YouTube and enteres a word in the search bar. Well, browser opens, YouTube opens, but OS doesn't enter any word. This is my code:</p> <pre><code>from se...
<p>Seems like there could be 2 element in the page with the same id as <code>search</code>, we need to get the <code>input</code> element having id <code>search</code>.</p> <p>The below code, with the changes should work fine now.</p> <pre><code>from selenium import webdriver from selenium.webdriver.common.by import By...
Selenium 'send_keys' does not work for YouTube
python|selenium|selenium-webdriver|xpath|youtube
0
79
1
72,818,717
72,818,717
0
true
2022-06-30T15:37:24.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Selenium 'send_keys' does not work for YouTube<p>I'm new to Selenium and I'm trying to create my first automatization test where OS is gonna open Chrome brow...
72,941,143
Incorrect df. iloc[:, 0]<p>My df has below columns</p> <pre><code>ID Number Name 11 ccc-456 dfg 45 ggt-56 ggg 33 67889 ttt </code></pre> <p>When I created a new dataframe (need it for merging with another dataframe)</p> <pre><code>df2 = df[['ID', 'Number']] </code></pre> <p>I got an error message stating ID ...
<h2>Your issue:</h2> <p>Based on the information provided, your &quot;ID&quot; column is set to your dataframe index.</p> <p>If you run this test code, you will get the same error that you described.</p> <pre><code>test_dict = { 'ID': [11,45,33], 'Number': ['ccc-456','ggt-56','67889'], 'Name': ['dfg','ggg',...
Incorrect df. iloc[:, 0]
python|pandas
0
79
1
72,941,268
72,941,268
0
true
2022-07-11T15:39:11.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Incorrect df. iloc[:, 0]<p>My df has below columns</p> <pre><code>ID Number Name 11 ccc-456 dfg 45 ggt-56 ggg 33 67889 ttt </code></pre> <p>When I...
72,886,950
limit client ip address connections, nginx<p>i'm in the middle of learning the basics of deployment of a simple weather web app using VM, flask, Nginx and gunicorn. i've been told to limit the amount of connections from the same ip address to 5. meaning - i would like that each ip client could open only 5 connections t...
<p>A quick tool to test rate limit scenarios is <code>siege</code>. Assuming you're using Debian-base distributions, install it using:</p> <pre class="lang-bash prettyprint-override"><code>sudo apt-get install siege </code></pre> <p>Usage:</p> <pre class="lang-bash prettyprint-override"><code># -v - verbose logging # -...
limit client ip address connections, nginx
python|nginx|flask|virtual-machine|gunicorn
0
79
1
72,887,431
72,887,431
0
true
2022-07-06T16:24:09.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: limit client ip address connections, nginx<p>i'm in the middle of learning the basics of deployment of a simple weather web app using VM, flask, Nginx and gu...
72,854,910
Python Selenium function keys aren't working (F5 or F12)<p>I am trying to get a selenium opened webpage to use function keys, however they don't seem to do anything. Current code is below:</p> <pre><code>from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver import ActionChai...
<p>I think this problem hasn't been solved yet. but there are some suggested solutions to go around this, Check this post: <a href="https://stackoverflow.com/questions/35132704/pressing-f12-key-directly-through-selenium">Pressing &quot;F12&quot; key directly through Selenium</a></p>
Python Selenium function keys aren't working (F5 or F12)
python|selenium
0
79
2
72,856,627
72,856,627
0
true
2022-07-04T09:58:47.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python Selenium function keys aren't working (F5 or F12)<p>I am trying to get a selenium opened webpage to use function keys, however they don't seem to do a...
72,801,637
ManyToMany - Cannot delete or update a parent row: a foreign key constraint fails (JAVA SPRING)<p>I did the merging of two columns into one and now when I try to delete some ethintent, Topic, throws me this error. The update works for me without any problems.</p> <p>How I join the columns:</p> <pre><code>@ManyToMany(ca...
<p>You can try writing Subject entity like this</p> <pre><code>@Entity public class Subject{ @ManyToMany(cascade =CascadeType.ALL) @JoinTable(name = &quot;subjects_topic&quot;, joinColumns = @JoinColumn(name = &quot;subject_id&quot;), inverseJoinColumns = @JoinColumn(name = &quot;topic_id&quot;)) private S...
ManyToMany - Cannot delete or update a parent row: a foreign key constraint fails (JAVA SPRING)
java|spring|spring-boot|many-to-many
0
79
1
72,803,727
72,803,727
0
true
2022-06-29T12:43:19.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ManyToMany - Cannot delete or update a parent row: a foreign key constraint fails (JAVA SPRING)<p>I did the merging of two columns into one and now when I tr...
72,772,061
How to set the ticks in matplotlib colorbar to be at the minimum and maximum value<p>I have a very simple plot of matplotlib.contourf like the following:</p> <pre><code>import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 10) y = np.linspace(0, 10, 10) xx,yy = np.meshgrid(x,y) X = np.array([xx,yy]...
<p>Colorbars are my bane. This problem is relatively simple yet it took me a few minutes.</p> <p>Add this line to the end of your code:</p> <pre class="lang-py prettyprint-override"><code>cbar.set_ticks(np.arange(0, 21, 5)) # 21 to guarantee 20 is included. </code></pre> <p>To get this:</p> <p><a href="https://i.stack....
How to set the ticks in matplotlib colorbar to be at the minimum and maximum value
matplotlib|contour|colormap
0
79
1
72,772,248
72,772,248
1
true
2022-06-27T12:24:02.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set the ticks in matplotlib colorbar to be at the minimum and maximum value<p>I have a very simple plot of matplotlib.contourf like the following:</p>...
72,779,355
How to keep track of "streaks" in the database?<p>In StackOverflow, you can earn a few badges which are based on <em>streaks</em>, and from those you can imagine some other use cases of tracking streaks:</p> <ul> <li>Visit the site every day for 30 days.</li> <li>Vote on 30 posts per day, for 7 days in a row.</li> <li>...
<p>The smallest data you need to keep track of here is going to be the date of the most recent action by the user and the current streak count.</p> <p>When the user done the streaked action, you need to check the date of the most recent action. If the most recent action happens within less than a day but now is already...
How to keep track of "streaks" in the database?
database|analytics
1
79
1
72,781,080
72,781,080
1
true
2022-06-27T23:47:35.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to keep track of "streaks" in the database?<p>In StackOverflow, you can earn a few badges which are based on <em>streaks</em>, and from those you can ima...
72,780,082
XPATH: Different inputs for multiple elements with same xpath, based on value of parent element<p>I have a relatively complex problem with xpath on Python. Here is my HTML layout:</p> <pre><code>&lt;label name=A&gt; &lt;span name=B&gt; &quot;Your Salary&quot; &lt;div name=C&gt; &lt;div name=D&gt; &lt;...
<p>You can take another approach to solve the issue.</p> <p>First you identify the <code>parent tags</code> which is label and then use <code>try..except</code> block to check if element there then set the <code>inputbox</code> value else go to except block and set the other <code>inputbox</code> value.</p> <pre><code>...
XPATH: Different inputs for multiple elements with same xpath, based on value of parent element
python|html|selenium|web-scraping|xpath
-2
79
2
72,786,173
72,786,173
1
true
2022-06-28T02:21:41.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XPATH: Different inputs for multiple elements with same xpath, based on value of parent element<p>I have a relatively complex problem with xpath on Python. H...
72,979,932
Eventarc Audit Log Scope Limited to Current Project<p>In GCP, I have a log sink which centralizes logs onto a GCP Project. I also have an EventArc trigger that listens for Cloud Resource Manager events, specifically the createProject method</p> <p><a href="https://i.stack.imgur.com/zIcHw.png" rel="nofollow noreferrer">...
<p>Since the createProject method is among the very first logs that gets generated in a newly created project, EventArc triggers will NOT pick them up since the trigger would have to be created after the project has been created. Triggers might <a href="https://cloud.google.com/eventarc/docs/issues#:%7E:text=Newly%20cr...
Eventarc Audit Log Scope Limited to Current Project
google-cloud-platform|event-arc
0
79
1
73,565,704
73,565,704
0
true
2022-07-14T11:42:41.813Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Eventarc Audit Log Scope Limited to Current Project<p>In GCP, I have a log sink which centralizes logs onto a GCP Project. I also have an EventArc trigger th...
73,025,258
Photoshop Javascript - Resize multiple layers<p>I have a script on Photoshop that allows me to resize a layer to the image bounds while maintaining the proportions.<br /> The code is the seguent:</p> <pre><code> var Document = app.activeDocument; var BND = app.activeDocument.activeLayer.bounds; var IHeight =...
<p>Since I wasn't able to resolve, I ultimately opted to group the layers and ungroup them once the resizing was done. The final code is the seguent:</p> <pre><code> var Document = app.activeDocument; // Select all layers with Action Manager (NAR = new ActionReference ()).putEnumerated (ID (&quot;layer&quot;), I...
Photoshop Javascript - Resize multiple layers
javascript|adobe|photoshop|extendscript
0
79
1
73,685,628
73,685,628
0
true
2022-07-18T15:57:56.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Photoshop Javascript - Resize multiple layers<p>I have a script on Photoshop that allows me to resize a layer to the image bounds while maintaining the propo...
72,985,063
Unable to read multiple channels from single ADC with DMA [bare metal]<p>I'm trying to read two ADC channels sequentially from my <a href="https://github.com/mcauser/BLACK_F407ZG" rel="nofollow noreferrer">STM32F407ZGT6</a> using DMA. I'm just trying to get the values from two potentiometers independently on each chann...
<p>I finally found a way to fix it!</p> <p>First of all, the <strong>ADC has to be enabled before the DMA</strong>. With the code above, <code>ADC1-&gt;CR2 |= set(1,ADC_CR2_DMA_Pos)</code> wouldn't get set because I was trying to set the DMA before the ADC. Hence, my interruption never got called. The correct order of ...
Unable to read multiple channels from single ADC with DMA [bare metal]
c|embedded|stm32|adc|bare-metal
0
79
1
73,337,398
73,337,398
0
true
2022-07-14T18:20:16.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to read multiple channels from single ADC with DMA [bare metal]<p>I'm trying to read two ADC channels sequentially from my <a href="https://github.com...
72,296,157
Inspect PostgreSQL constraints with Beekeeper-Studio<p>I was wondering if Beekeeper-Studio editor provides a functionality to inspect database constraints or if I have to run every time a little SQL script to inspect them.</p>
<p>As far as I know you cannot even drop or truncate a table in beekeeper, atleast not in my version (3.6.2)</p>
Inspect PostgreSQL constraints with Beekeeper-Studio
postgresql|constraints|editor
1
79
1
73,686,148
73,686,148
1
true
2022-05-18T21:24:43.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Inspect PostgreSQL constraints with Beekeeper-Studio<p>I was wondering if Beekeeper-Studio editor provides a functionality to inspect database constraints or...
72,245,976
How to remove space between expression and period within a string? (Python 3)<p>Good Morning,</p> <p>I've been trying to get rid of the space between the period and the number generated from sum(random_list) output [23739]. But can't seem to figure out how without turning the entire string to an f-string. I understand ...
<p>You can use <code>format</code> feature of string.</p> <pre><code>print(&quot;The sum of the elements in random list is {}.&quot;.format(sum(random_list))) </code></pre>
How to remove space between expression and period within a string? (Python 3)
python|python-3.x|string|list
-2
79
2
72,246,075
72,246,075
0
true
2022-05-15T06:23:11.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove space between expression and period within a string? (Python 3)<p>Good Morning,</p> <p>I've been trying to get rid of the space between the per...
72,263,777
httpd (apache server) on fedora, symbolic links work but unable to see/access files inside?<p>I'm running httpd on fedora server 35 and want to use it to serve files on my local network. It works fine for files stored under the /var/www/html directory directly (e.g. /var/www/html/videos/video.mp4 can be accessed with h...
<p>My issue was with SELinux. To get it working immediately I was able to set SELinux to permissive mode with</p> <pre><code># setenforce 0 </code></pre> <p>That refreshes on boot and is probably insecure, so the permanent fix (to just let httpd through) would be:</p> <pre><code># semanage permissive -a httpd_t </code>...
httpd (apache server) on fedora, symbolic links work but unable to see/access files inside?
apache|server|fedora|httpd.conf
1
79
1
72,264,760
72,264,760
0
true
2022-05-16T18:12:54.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: httpd (apache server) on fedora, symbolic links work but unable to see/access files inside?<p>I'm running httpd on fedora server 35 and want to use it to ser...
72,283,326
How to override a value of a single field in an object without copying the entire objects values<p>I want to replace a certain field deep inside an object of objects.</p> <p>The value I need to replace is in the Voucher object and it is located from</p> <p>CarBookingRequest&gt;CarSegment&gt;RentalPayentPref&gt;Voucher&...
<p>Why are you creating new objects, when you can get the existing objects from getter methods. You provided getter methods only in your answer, and not in the question. You can use them as follows:</p> <pre><code>originalRequest .getCarSegment() .getRentalPaymentPref() .getVoucher() .setType(newValue); </code>...
How to override a value of a single field in an object without copying the entire objects values
java|spring
0
79
2
72,284,190
72,284,190
0
true
2022-05-18T04:45:28.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to override a value of a single field in an object without copying the entire objects values<p>I want to replace a certain field deep inside an object of...
72,284,352
Changing hamburger menu color with eventlistener and scroll position<p>Im trying to change the color of my burger bar lines. I used an eventlistener and I try to target the spans that make up the burgermenu lines, by giving the span a class &quot;span&quot;. as u can see here</p> <pre><code> var distFromTop = document....
<p>English is not my first Language so please bear with me. Try adding new class to span when you scroll and give that class background-color property in your CSS file. Example</p> <p>Instead of this</p> <pre><code>document.querySelector(&quot;.span&quot;).style.backgroundColor = &quot;black&quot;; </code></pre> <p>Try...
Changing hamburger menu color with eventlistener and scroll position
javascript|css|event-listener
0
79
2
72,284,743
72,284,743
0
true
2022-05-18T06:46:11.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Changing hamburger menu color with eventlistener and scroll position<p>Im trying to change the color of my burger bar lines. I used an eventlistener and I tr...
72,277,757
Axios GET in for loop causing "Sort exceeded memory limit" error<p>I'm trying to load entries from my mongoDB database one at a time. It works for about 400/1000 entries then breaks with the following error:</p> <p><code>Executor error during find command :: caused by :: Sort exceeded memory limit of 33554432 bytes, bu...
<p>The syntax itself is fine, I am not quite sure why it's not working for you.</p> <p>I have two theory's that could be possible:</p> <ol> <li>You are hosting your db on Atlas and are using unqualified instances for this operations as specified in their <a href="https://www.mongodb.com/docs/atlas/reference/free-shared...
Axios GET in for loop causing "Sort exceeded memory limit" error
javascript|database|mongodb|mongoose|axios
1
79
2
72,288,528
72,288,528
0
true
2022-05-17T16:39:14.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Axios GET in for loop causing "Sort exceeded memory limit" error<p>I'm trying to load entries from my mongoDB database one at a time. It works for about 400/...
72,243,070
How to handle unexpected data length in Azure Synapse?<p>How do I handle a column with unexpected data length in Azure synapse like we have in SQL server VARCHAR(MAX) what data type should I use in synapse?</p>
<p>In synapse you cannot have varchar(max) while you are using { CLUSTERED COLUMNSTORE Ip put Therefore we need to use heap instead of clusted columnstore index { | HEAP }}</p>
How to handle unexpected data length in Azure Synapse?
azure|azure-synapse
0
79
1
72,295,066
72,295,066
0
true
2022-05-14T18:48:48.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to handle unexpected data length in Azure Synapse?<p>How do I handle a column with unexpected data length in Azure synapse like we have in SQL server VAR...
72,310,017
Take records from set and count how many records for each player id<p>I'm making a leaderboard in my game and I have tiles with certain player ids assigned to them.</p> <p>I need to take the following data (which is a set containing my 'Tile' records):</p> <pre><code> [Tile[id=eeebeaa4e03c8910e5c17925439f1fa1abb,pos...
<p>Iterate over your Tiles. <code>for(Tile t : getTiles())</code></p> <p>Extract the player ID. <code>String playerId = t.player_id()</code></p> <p>Check if the player ID exists in the HashMap. <code>if leaderboard.containsKey(playerId)</code></p> <p>If it does, increment the value for that key.</p> <p>If not, add the ...
Take records from set and count how many records for each player id
java|sorting|set|leaderboard
1
79
1
72,311,229
72,311,229
0
true
2022-05-19T19:18:06.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Take records from set and count how many records for each player id<p>I'm making a leaderboard in my game and I have tiles with certain player ids assigned t...
72,333,721
Access to fetch at 'https://localhost:7144/api/employees' from origin 'http://localhost:3000' has been blocked by CORS policy<p>Im getting this error when I try to fetch data from webapi to display in react js <a href="https://i.stack.imgur.com/SvnnC.png" rel="nofollow noreferrer">Here is a photo when I check the conso...
<p>you have to remove a trailing &quot;/&quot;, should be</p> <pre><code> builder.WithOrigins(&quot;http://localhost:3000&quot;) </code></pre>
Access to fetch at 'https://localhost:7144/api/employees' from origin 'http://localhost:3000' has been blocked by CORS policy
javascript|c#|reactjs|.net|asp.net-web-api
-1
79
1
72,335,259
72,335,259
0
true
2022-05-21T22:49:34.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Access to fetch at 'https://localhost:7144/api/employees' from origin 'http://localhost:3000' has been blocked by CORS policy<p>Im getting this error when I ...
72,329,258
Create a subset in bash script with variables that meet a condition<p>I am working on the following dataset (a sample can be found below) and I would like to create a bash script that allows me to select only the records that meet a set of conditions and all records fulfilling these conditions are collected in another ...
<ul> <li>You cannot include whitespaces in bash variable names.</li> <li>You've misspelled <code>Percentage</code> as <code>Percentatge</code>.</li> <li>You've miscouted the column position of <code>Continent</code>.</li> <li>Regex operator in bash is <code>=~</code>, not <code>~</code>.</li> <li>You should not enclose...
Create a subset in bash script with variables that meet a condition
bash|ubuntu
2
79
1
72,341,991
72,341,991
0
true
2022-05-21T11:47:51.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create a subset in bash script with variables that meet a condition<p>I am working on the following dataset (a sample can be found below) and I would like to...
72,342,813
Azure B2C force login after password reset sub journey<p>we're using password reset sub-journey as described here (<a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/add-password-reset-policy?pivots=b2c-custom-policy#self-service-password-reset-recommended" rel="nofollow noreferrer">https://docs.micro...
<p><strong>Option 1</strong></p> <p>A simple solution (might not be ideal) is to block the user using a self asserted page without cancel / continue buttons as the last step in password reset sub journey. That way the user never gets a jwt token.<br /> You could have some text in the self asserted page saying something...
Azure B2C force login after password reset sub journey
azure-ad-b2c|azure-ad-b2c-custom-policy|azure-b2c
0
79
1
72,344,402
72,344,402
0
true
2022-05-23T02:52:10.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure B2C force login after password reset sub journey<p>we're using password reset sub-journey as described here (<a href="https://docs.microsoft.com/en-us/...
72,249,042
Authorize a Credit Card returns empty refTransId on Sandbox environment<p>I use the NodeJS SDK to authorize the credit card for later capturing and get successful response but with empty refTransId, so I can't capture the transaction.</p> <p>I wonder why and if the Sandbox environment should return the refTransId?</p> ...
<p>I found out that my test account was on test mode and had to be switched to &quot;live&quot; in order to simulate transactions.</p>
Authorize a Credit Card returns empty refTransId on Sandbox environment
node.js|payment-gateway|authorize.net
1
79
1
72,345,338
72,345,338
0
true
2022-05-15T14:11:54.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Authorize a Credit Card returns empty refTransId on Sandbox environment<p>I use the NodeJS SDK to authorize the credit card for later capturing and get succe...
72,351,053
ListView Array Adapter error"None of the following functions can be called with the arguments supplied."<p>I'm trying to create a fragment with a ListView with the id=lv and the ArrayAdapter doesn't seem to work</p> <p>this is the fragment code</p> <pre><code>class Istoric : Fragment() { var array = arrayOf(&quot;i...
<p>You need to pass context instead of <strong>this</strong></p> <pre><code>val adapter = ArrayAdapter(requireContext(), R.layout.listview_item, array) </code></pre>
ListView Array Adapter error"None of the following functions can be called with the arguments supplied."
android|kotlin|android-fragments|android-listview|android-arrayadapter
-1
79
1
72,351,963
72,351,963
0
true
2022-05-23T15:24:21.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ListView Array Adapter error"None of the following functions can be called with the arguments supplied."<p>I'm trying to create a fragment with a ListView wi...
72,379,272
Transform Persian (Jalali Calendar) dates to Gregorian dates<p>How can one automatically transform <a href="https://en.wikipedia.org/wiki/Jalali_calendar" rel="nofollow noreferrer">Persian dates</a> (Jalali/Iranian calendar) to the dates according to the Gregorian calendar in R?</p> <p>Suppose the data format is organi...
<p>We have to fill in <em>something</em> for the year in order to use the existing machinery. The current year in Jalali is apparently 1401: <code>greg2jal(Sys.Date())</code> is (1401,3,4). So something like</p> <pre class="lang-r prettyprint-override"><code>mdvec &lt;- c(1.02, 2.03, 3.21) ## separate decimals into mo...
Transform Persian (Jalali Calendar) dates to Gregorian dates
r|calendar|transform
1
79
1
72,380,097
72,380,097
0
true
2022-05-25T14:15:08.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Transform Persian (Jalali Calendar) dates to Gregorian dates<p>How can one automatically transform <a href="https://en.wikipedia.org/wiki/Jalali_calendar" re...
72,392,540
How to convert gdoc files to txt files in Google Drive?<p>I loaded a bunch of txt files to my GDrive, to use them in Colab.</p> <p>They seem to have been converted to gdoc files, which I can't read with Colab.</p> <p>I am now trying to use the GoogleDrive API to change the MIME type, but the changes simply don't happen...
<p>I think that if you are trying to keep the file format in .txt you may just proceed to disable the setting &quot;Convert uploaded files to Google Docs editor format&quot; on the 'Gear' icon &gt; 'Settings' in the Drive UI.</p> <p>This feature seems to be enabled by default as per <a href="https://support.google.com/...
How to convert gdoc files to txt files in Google Drive?
python|google-drive-api|google-colaboratory
0
79
1
72,394,317
72,394,317
0
true
2022-05-26T13:22:00.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to convert gdoc files to txt files in Google Drive?<p>I loaded a bunch of txt files to my GDrive, to use them in Colab.</p> <p>They seem to have been con...
72,393,323
How can I increase number of concurrent task in Google App Engine?<p>I'm using App engine to concurrently handle a number of long running tasks (therefore I need to use basic scaling).</p> <p>I noticed with one instance, only 8 tasks can be handled simultaneously (consistent with the number of workers for a B4 instance...
<p>As a <a href="https://cloud.google.com/appengine/docs/standard/python3/runtime#entrypoint_best_practices" rel="nofollow noreferrer">best practice</a>, the number of workers you specify should match the instance class of your App Engine app, but you can change it by modifying the number of workers in the entrypoint a...
How can I increase number of concurrent task in Google App Engine?
google-app-engine
2
79
2
72,398,303
72,398,303
0
true
2022-05-26T14:19:38.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I increase number of concurrent task in Google App Engine?<p>I'm using App engine to concurrently handle a number of long running tasks (therefore I ...
72,378,653
How to customize the "multiple" attribute of a select tag in Symfony<p>I'm using Symfony 4 and <a href="https://sa-si-dev.github.io/virtual-select/#/" rel="nofollow noreferrer">Virtual Select</a>, &quot;A javascript plugin for dropdown with virtual scroll&quot;.</p> <p>By default, when Symfony renders a multiple select...
<p>In the end I used a workaround in javascript :</p> <pre><code>document.getElementById('select#whatever').setAttribute('multiple',''); </code></pre> <p>Which seems to satisfy Virtual Select.</p> <p>(And then I had to pile up more workarounds for other issues between Virtual Select and Symfony. All in all, you probabl...
How to customize the "multiple" attribute of a select tag in Symfony
symfony|drop-down-menu|symfony4
0
79
1
72,436,350
72,436,350
0
true
2022-05-25T13:34:51.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to customize the "multiple" attribute of a select tag in Symfony<p>I'm using Symfony 4 and <a href="https://sa-si-dev.github.io/virtual-select/#/" rel="n...
72,329,152
perMANOVA for small sample size<p>I have data of 6 groups with sample size of <code>n = 2, 10, 2, 9, 3, 1</code> and I want to perform Permutational multivariate analysis of variance (PERMANOVA) on these data.</p> <p>My question is: Is it correct to run perMANOVA on these data with the small sample size? The results lo...
<p>I have also received some answers from other platforms. I put them here for information:</p> <ol> <li><p>The sample size is simply too small to yield a stable solution via manova. Note that the <code>n = 1</code> cell contributes a constant value for that cell's mean, no matter what you do by way of permutations. Fi...
perMANOVA for small sample size
manova
0
79
2
72,443,544
72,443,544
0
true
2022-05-21T11:32:01.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: perMANOVA for small sample size<p>I have data of 6 groups with sample size of <code>n = 2, 10, 2, 9, 3, 1</code> and I want to perform Permutational multivar...
72,270,795
I need to add an alert (or similar popup) after hitting the "submit" button (with select & number options)<p>I am VERY knew to Javascript &amp; HTML, just started studying IT and this is my first assessment. Essentially, the task is - provide a dropdown list and an age input box, provide a &quot;Submit&quot; button and...
<p>Your id in document.getElementById(&quot;button&quot;).onclick is wrong. the id is submit not button</p> <pre><code> var select = document.getElementById(&quot;country&quot;); document.getElementById(&quot;submit&quot;).onclick = function(){ var value = select.value if (value == &quot;1&quot;) { alert(&qu...
I need to add an alert (or similar popup) after hitting the "submit" button (with select & number options)
javascript|html|dropdown|submit|alert
0
79
1
72,270,831
72,270,831
0
true
2022-05-17T08:40:04.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I need to add an alert (or similar popup) after hitting the "submit" button (with select & number options)<p>I am VERY knew to Javascript &amp; HTML, just st...
72,356,912
How can I add months Int to a choosen date on date picker in android Kotlin?<p>I have a working date picker in my app that replaces an <code>EditText</code> after a date selection. I want to add duration through a <code>RadioGroup</code> button that prints an Int to provoke an end date. How can I do that? I've spent th...
<blockquote> <p>I want to use the selected date that is <code>val startDay</code> instead of <code>val date = LocalDate.parse(&quot;2020-05-03&quot;)</code>. When I replace it, the app crashes.</p> </blockquote> <p><code>val startDay = (&quot;$day-$month-$year&quot;)</code> here you've created date as <code>dd-MM-yyyy<...
How can I add months Int to a choosen date on date picker in android Kotlin?
android|kotlin
0
79
2
72,363,922
72,363,922
0
true
2022-05-24T03:31:46.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I add months Int to a choosen date on date picker in android Kotlin?<p>I have a working date picker in my app that replaces an <code>EditText</code> ...
72,347,192
How to annotate top two corners of the rectangle on the top most facet only in ggplot<p>I am trying to annotate the top two corners of the rectangle on the top most facet only but the following code is not producing the desired output, it is not throwing any error either. It just plots the data without text annotations...
<p>Changing to <code>facet_wrap(~ fac, ...</code> gets the labels rendered:</p> <pre class="lang-r prettyprint-override"><code>library(tidyverse) set.seed(1234) data &lt;- cbind(1:50, matrix(rnorm(150), 50, 3)) data[,2] &lt;- data[,2] *100 d &lt;- c() for (i in 2:ncol(data)) { d &lt;- rbind(d, data[, c(1, i)]) } fac...
How to annotate top two corners of the rectangle on the top most facet only in ggplot
ggplot2|facet-wrap
0
79
1
72,347,742
72,347,742
0
true
2022-05-23T10:42:04.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to annotate top two corners of the rectangle on the top most facet only in ggplot<p>I am trying to annotate the top two corners of the rectangle on the t...
72,238,551
How to make multiple (more than 2) dependent Dropdowns in python<p>I have this case. There are 3 dropdown lists A,B,C. List A is independent. List B depends on value select in List A. List C depends on value selected in List B. Is it possible to make in Python/ Tkinter. I have successfully made the first part i-e List ...
<p>As you've been told in the comment, your code is working and list C content does change. If you want to automate the first selection of C then you are probably looking for the event_generate method that should come right after the setting of current(0):</p> <pre><code>def bind_mkmodel(e): if mkmodel.get() == &qu...
How to make multiple (more than 2) dependent Dropdowns in python
python|tkinter|dropdown
0
79
1
72,239,858
72,239,858
0
true
2022-05-14T08:31:10.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make multiple (more than 2) dependent Dropdowns in python<p>I have this case. There are 3 dropdown lists A,B,C. List A is independent. List B depends ...
72,317,430
Python Simplekml if folder already exists append the data inside folder as placemark tag<p>I have question related to SimpleKML. How to create(Append) a placemark inside a folder having the same name tag? Meaning inside one folder 2 data points are seen. Below is the output I am looking for. Thanks in advance.</p> <p>O...
<p>Simply initialize the simpleKML <code>Folder</code> once outside the rowwise loop. Then add <code>newpoint</code>s to this single Folder. To separate out the folder tags, run a <code>groupby</code> iteration and assign folder name before running data frame rowwise iteration.</p> <pre class="lang-py prettyprint-overr...
Python Simplekml if folder already exists append the data inside folder as placemark tag
python|pandas|kml
0
79
2
72,319,483
72,319,483
0
true
2022-05-20T10:32:38.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python Simplekml if folder already exists append the data inside folder as placemark tag<p>I have question related to SimpleKML. How to create(Append) a plac...
72,326,089
Android Studio Add text view on button click<p>So i'm trying to create a java app for tracking orders, and I need each button to create a view in an ordered list currently i'm just trying to get the first button to add information but it isn't doing anything. Any help would be appreciated as I am very new to android pr...
<p>I think you need to inflate the View you want to add differently.</p> <pre><code>View inflatedView = View.inflate(context, yourViewXML, null); //use null to not add View to parent </code></pre> <p>Solution found here: <a href="https://stackoverflow.com/a/24411058/17799032">https://stackoverflow.com/a/24411058/177990...
Android Studio Add text view on button click
java|android
-1
79
1
72,326,512
72,326,512
0
true
2022-05-21T01:47:01.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android Studio Add text view on button click<p>So i'm trying to create a java app for tracking orders, and I need each button to create a view in an ordered ...
72,273,533
Form Validation not working when using inheritance asp.net core 3.1<p>I am a beginner in asp.net core just started an EmployeeManagement project where Employee is my base class:</p> <pre class="lang-cs prettyprint-override"><code>public class Employee { public int Id { get; set; } [Required] [Display(Name=...
<blockquote> <p>An unhandled exception occurred while processing the request. NullReferenceException: Object reference not set to an instance of an object.</p> </blockquote> <p><code>NullReferenceException</code> is caused by the <strong>null object value</strong>. In your scenraio it is caused by <code>asp-items=@Mode...
Form Validation not working when using inheritance asp.net core 3.1
javascript|asp.net|asp.net-core|validation|inheritance
1
79
1
72,297,893
72,297,893
0
true
2022-05-17T11:49:40.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Form Validation not working when using inheritance asp.net core 3.1<p>I am a beginner in asp.net core just started an EmployeeManagement project where Employ...
72,242,495
How can I create a menu with my json info with REACT<p>what I try to do is to have the same display as this picture : <a href="https://i.stack.imgur.com/4CWcf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4CWcf.png" alt="enter image description here" /></a></p> <p>So in my menu the plant type (<cod...
<p>You can create a dropdown list on your own like below. I have added the logic of selecting items to the data itself.</p> <p>You can keep a component called <code>Category</code> to keep a single state of the parent menu item. Whether it's open or not. Then iterate over the plants as checkbox inputs to make them sele...
How can I create a menu with my json info with REACT
javascript|html|reactjs|json
1
79
1
72,243,068
72,243,068
0
true
2022-05-14T17:21:10.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I create a menu with my json info with REACT<p>what I try to do is to have the same display as this picture : <a href="https://i.stack.imgur.com/4CWc...
72,348,127
Find matching persons from one table with another (MS SQL Server)<p>I have two tables:</p> <p>table &quot;Person&quot;</p> <pre><code>ID FirstName LastName ----------- ---------- ---------- 1 Janez Novak 2 Matija Špacapan 3 Francka Joras </code></pre> <p>Table &quot;U...
<p><strong>Create tables</strong></p> <pre><code>create table persons ( id int IDENTITY(1,1) PRIMARY KEY, FirstName nvarchar(32) NOT NULL, LastName nvarchar(32) NOT NULL ); create table users ( id int IDENTITY(1,1) PRIMARY KEY, FullName nvarchar(32) NOT NULL ); </code></pre> <p><strong>Sample data</strong></...
Find matching persons from one table with another (MS SQL Server)
sql|sql-server|string|substring|match
0
79
3
72,349,330
72,349,330
0
true
2022-05-23T11:53:47.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find matching persons from one table with another (MS SQL Server)<p>I have two tables:</p> <p>table &quot;Person&quot;</p> <pre><code>ID FirstName ...
72,341,209
checking array if has same value<p>Learning by coding, here i have an array of objects (data), and nodeId which is number , i want to check if that arrays 'target' has same value as nodeId then 'return', should i use map(), find(), filter(), how should i know which to use ? english is not my mother language so could be...
<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some" rel="nofollow noreferrer"><code>.some()</code></a> is probably what you want to use</p> <pre><code>const check = data.some((elem) =&gt; elem.target === nodeId) console.log(check) // true if exist or false if it doe...
checking array if has same value
javascript|arrays|reactjs|function|filter
0
79
2
72,341,284
72,341,284
0
true
2022-05-22T20:50:57.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: checking array if has same value<p>Learning by coding, here i have an array of objects (data), and nodeId which is number , i want to check if that arrays 't...
72,359,679
saxonc's transform_to_file(), executed in a loop, doesn't transform but gives non-sensical errors or partial output<p>My transformation stylesheet file contains:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; ...
<p>With Apply_templates_returning_file() it works:</p> <pre><code>import os import xml.etree.ElementTree as ET from saxonpy import PySaxonProcessor def main(): print('starting code...') source_XML = ''' &lt;data&gt; &lt;country name=&quot;Denmark&quot; capital=&quot;Copenhagen&quot;/&gt; ...
saxonc's transform_to_file(), executed in a loop, doesn't transform but gives non-sensical errors or partial output
python|xml|xslt|saxon-c
0
79
3
72,368,533
72,368,533
0
true
2022-05-24T08:33:09.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: saxonc's transform_to_file(), executed in a loop, doesn't transform but gives non-sensical errors or partial output<p>My transformation stylesheet file conta...
72,237,782
how to insert a text in a container and padding for an image<p>I want to insert a text to my container I tried this code segment. but it is not displaying. first image showing how it display now. image two showing how I need it to be implement. also the image icon need to have padding from the corner. how can I do this...
<p><strong>Use Following Code But You need to edit the style according to you</strong></p> <pre><code>Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( height: 50, width: 200, // You can set width of container h...
how to insert a text in a container and padding for an image
flutter|flutter-layout
0
79
2
72,238,034
72,238,034
1
true
2022-05-14T06:12:30.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to insert a text in a container and padding for an image<p>I want to insert a text to my container I tried this code segment. but it is not displaying. f...
72,239,149
How Can i Arrange a list of integers in python in txt file?<p>How can I arrange a list of integers in python in txt file? Example = I am having:</p> <pre class="lang-py prettyprint-override"><code>['45 USD\n', '68 USD\n', '32 USD\n', '894 USD\n'] </code></pre> <p>I want to arrange them in this order:</p> <pre class="la...
<p>You can use the sort function for this.</p> <pre><code>a=['45 USD\n', '68 USD\n', '32 USD\n', '894 USD\n'] a.sort(reverse=True, key=lambda x: int(x.split()[0])) print(a) # ['894 USD\n', '68 USD\n', '45 USD\n', '32 USD\n'] </code></pre> <p>See <a href="https://www.w3schools.com/python/ref_list_sort.asp" rel="nofoll...
How Can i Arrange a list of integers in python in txt file?
python
0
79
2
72,239,299
72,239,299
1
true
2022-05-14T10:01:42.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How Can i Arrange a list of integers in python in txt file?<p>How can I arrange a list of integers in python in txt file? Example = I am having:</p> <pre cla...
72,241,816
GridFS Large File Download Crashes the Node.js Server. MongoServerError: Sort exceeded memory limit of bytes<p>So I'm running a Node.js server with mongoose and I've been trying to <strong>download a large file using the GridFS node package</strong> but I've been getting the following error:</p> <blockquote> <p>MongoSe...
<p>As it turns out, when you download a file by streaming it with GridFS, the documents that compose the file are sorted. According to <a href="https://developerslogblog.wordpress.com/2019/11/27/mongodb-sort-how-to-fix-maximum-ram-exceeded-error/" rel="nofollow noreferrer">this blog post</a>, when doing a sort, <strong...
GridFS Large File Download Crashes the Node.js Server. MongoServerError: Sort exceeded memory limit of bytes
node.js|mongodb|file|indexing|gridfs
2
79
1
72,241,817
72,241,817
1
true
2022-05-14T15:50:06.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GridFS Large File Download Crashes the Node.js Server. MongoServerError: Sort exceeded memory limit of bytes<p>So I'm running a Node.js server with mongoose ...
72,258,407
R: Nearest neighbour matching with MatchIT<p>I would like to use nearest neighbour matching with MatchIt in R. So far I have used the following code:</p> <pre><code>Matching&lt;- matchit(Treatment ~ Size+ Age + Expenses, data=data, method = &quot;nearest&quot;, distance=&quot;glm&quot;, replace=TRUE) </code></pre> <p>I...
<ol> <li><p>It is called 1:1 matching because each treated unit gets one match, but it is possible that control units are reused as matches for multiple treated units. If you set <code>ratio</code> to something other than 1, you would be doing k:1 matching, where each treated units gets k matches, composed of controls ...
R: Nearest neighbour matching with MatchIT
r|matching|nearest-neighbor
0
79
1
72,269,124
72,269,124
1
true
2022-05-16T11:23:20.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R: Nearest neighbour matching with MatchIT<p>I would like to use nearest neighbour matching with MatchIt in R. So far I have used the following code:</p> <pr...
72,260,249
How we can link multiple authentication providers for phone and email in jetpack compose?<p>I have mail and mobile authentication in my register app, in firebase when user sign up with mail and mobile phone it generate two different UID for a same user, what I wish to achieve is one user with one UID can login with e...
<p>I solve the problem when I add <code>auth.currentUser?.linkWithCredential(credential)</code> line of the code in otpVerification function.</p> <pre><code>fun otpVerification(otp: String) { val credential = PhoneAuthProvider.getCredential(verificationOtp, otp) auth.currentUser?.linkWithCredential(c...
How we can link multiple authentication providers for phone and email in jetpack compose?
android|firebase|kotlin|firebase-authentication
0
79
1
72,270,492
72,270,492
1
true
2022-05-16T13:45:34.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How we can link multiple authentication providers for phone and email in jetpack compose?<p>I have mail and mobile authentication in my register app, in fire...
72,252,571
I keep getting numberOfstops in the flightOffer API response as 0 even when there is a stop<p>I am new to the Amadeus API and generally the flight business as a whole but I have set up a dev account with Amadeus and I am on a <strong>test Plan</strong> at the moment. I made a call to the flightOffers API thus;</p> <pre...
<p><code>numberOfStops</code> is the number of stops planned on the segment for technical or operation purpose i.e. refueling. The API will rarely return with a value but when it does it means that a segment is flown with the same plane. This represents a scheduled stop for technical/operational purposes like for examp...
I keep getting numberOfstops in the flightOffer API response as 0 even when there is a stop
amadeus
1
79
1
72,271,434
72,271,434
1
true
2022-05-15T22:14:10.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I keep getting numberOfstops in the flightOffer API response as 0 even when there is a stop<p>I am new to the Amadeus API and generally the flight business a...
72,273,265
Recursive split of path with H2 DB and SQL<p>I've path names of the following common form (path depth not limited):</p> <p>/a/b/c/d/e/...</p> <p><strong>Example</strong></p> <blockquote> <p>/a/b/c/d/e</p> </blockquote> <p><strong>Expected result</strong></p> <p>What I'd like to achieve now is to split the path into a t...
<p>Do something like this:</p> <pre class="lang-sql prettyprint-override"><code>with recursive p(p) as (select '/a/b/c/d/e' as p), t(path, parent, folder, i) as ( select p, REGEXP_REPLACE(p, '(.*)/\w+', '$1'), REGEXP_REPLACE(p, '.*/(\w+)', '$1'), 1 from p union select ...
Recursive split of path with H2 DB and SQL
sql|h2
0
79
2
72,273,826
72,273,826
1
true
2022-05-17T11:30:12.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Recursive split of path with H2 DB and SQL<p>I've path names of the following common form (path depth not limited):</p> <p>/a/b/c/d/e/...</p> <p><strong>Exam...
72,273,833
Finding last row containing data not working - possible problem with table formatting<p>I've got a sheet called MachineData and I've got the following code</p> <pre><code>Worksheets(&quot;MachineData&quot;).Activate 'Last row with data on column AD (30) lrow3 = Cells(Rows.Count, 30).End(xlUp).Row </code></pre> <p>The ...
<p>For your particular context, i.e. with blank cells at the end of your table</p> <pre><code>lrow3 = Cells(Rows.Count, 30).End(xlUp).End(xlUp).Row </code></pre>
Finding last row containing data not working - possible problem with table formatting
vba
1
79
2
72,274,279
72,274,279
1
true
2022-05-17T12:11:18.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Finding last row containing data not working - possible problem with table formatting<p>I've got a sheet called MachineData and I've got the following code</...
72,277,308
Raspberry Pi Camera and Python Script Crashes while detecting Objects Crashes<p>I wrote a snippet of code to detect any kind of intrusions happening at my home and if any kind of object is detected, bounding Boxes are formed and then further actions needs to be performed. When i Test the code on my device's camera (Lap...
<p>Thanks to @toyata Supra. The error was solved and program is executing as expected.</p> <p>Solution:</p> <pre><code>x,y,w,h = cv2.boundingRect(c) </code></pre>
Raspberry Pi Camera and Python Script Crashes while detecting Objects Crashes
python|opencv|raspberry-pi|object-detection|raspberry-pi3
1
79
1
72,278,324
72,278,324
1
true
2022-05-17T16:03:53.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Raspberry Pi Camera and Python Script Crashes while detecting Objects Crashes<p>I wrote a snippet of code to detect any kind of intrusions happening at my ho...
72,277,336
Can't run shell command in VTE GTK4 Fake Terminal<p>I made a small sample code in gtk4 + vte to run a fake terminal with a button in the bottom to run a simple command when the button is clicked.</p> <p>main.c</p> <pre class="lang-c prettyprint-override"><code>#include &lt;gtk/gtk.h&gt; #include &lt;vte/vte.h&gt; #defi...
<p>I tested out your code and I believe I found the main issue with your terminal command along with some warnings that were displayed when I tested. First off, from reviewing other sample code using the &quot;vte_terminal_spawn_async&quot; function, the character string set included an ending array element of &quot;N...
Can't run shell command in VTE GTK4 Fake Terminal
c|segmentation-fault|gtk|gtk4|vte
0
79
1
72,280,001
72,280,001
1
true
2022-05-17T16:06:11.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't run shell command in VTE GTK4 Fake Terminal<p>I made a small sample code in gtk4 + vte to run a fake terminal with a button in the bottom to run a simp...
72,281,794
Pass event from one widget to another flutter (bottom nav bar tap)<p>I have a BottomNavBar widget which I navigate to from the app. Then the selected index determines which screen is visible in the body.</p> <p>My question is, how can I tell the HomeScreen() widget that a user has tapped the home button in the nav bar ...
<p>Just pass <code>ScrollController</code> to <code>HomeScreen()</code></p> <p>Example code:</p> <p><strong>main.dart</strong></p> <pre><code>import 'package:demo/home.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends S...
Pass event from one widget to another flutter (bottom nav bar tap)
flutter|dart
0
79
1
72,282,511
72,282,511
1
true
2022-05-17T23:41:28.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass event from one widget to another flutter (bottom nav bar tap)<p>I have a BottomNavBar widget which I navigate to from the app. Then the selected index d...
72,298,348
How to read the ref code from URL in react js<p>I want to get the ref code from the URL, http://localhost:3000/?ref=2926</p> <p>I try with const session = <code>${window.location.href}</code>; it gets the full current URL and tries to use split() the pathname but it didn't work, how to get only the ref code from the UR...
<p>You may try this:</p> <pre><code>${window.location.search.split('=')[1]} </code></pre>
How to read the ref code from URL in react js
javascript|reactjs|react-hooks
1
79
4
72,298,365
72,298,365
1
true
2022-05-19T03:36:46.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to read the ref code from URL in react js<p>I want to get the ref code from the URL, http://localhost:3000/?ref=2926</p> <p>I try with const session = <c...
72,300,357
How log to event properties without placing them in the message?<p>I'm current using NLog to log into Json format. I want to log event args in my logs under &quot;eventProperties&quot; without them being included in the message attribute.</p> <p>Current nlog.config:</p> <pre><code>&lt;target name=&quot;jsonFile&quot; x...
<p>You can output the message-template (instead of the formatted message) using <code>raw=true</code>:</p> <pre class="lang-xml prettyprint-override"><code> &lt;attribute name=&quot;message&quot; layout=&quot;${message:raw=true}&quot; /&gt; </code></pre> <p>See also: <a href="https://github.com/NLog/NLog/wiki/How-to...
How log to event properties without placing them in the message?
c#|json|.net|logging|nlog
1
79
1
72,309,616
72,309,616
1
true
2022-05-19T07:28:53.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How log to event properties without placing them in the message?<p>I'm current using NLog to log into Json format. I want to log event args in my logs under ...
72,322,466
Pandas_gbq does not append in order<p>I am using VM instance in google cloud and i want to use bigquery as well. I am trying to append the newly generated report in while loop to last row of the bigquery table every 10 minutes with below script.</p> <pre><code> position_size = np.zeros([24, 24], dtype=float) ... some ...
<p>How are you reading results? In most databases (BigQuery included), the row order is indeterminate in the absence of an ordering expression. You likely need an <code>ORDER BY</code> clause in your SELECT statement.</p>
Pandas_gbq does not append in order
python|pandas|google-cloud-platform|google-bigquery|pandas.dataframe.to-gbq
0
79
1
72,322,617
72,322,617
1
true
2022-05-20T17:03:06.877Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas_gbq does not append in order<p>I am using VM instance in google cloud and i want to use bigquery as well. I am trying to append the newly generated re...
72,339,492
In SwiftUI how do I animate changes one at a time when they occur in a called method?<p>Although I get an animation when I tap the button, it's not the animation I want. The entire view is being replaced at once, but I want to see each element change in sequence. I tried in both the parent view and in the called method...
<p>As mentioned in the comments, the lowest-tech version is probably just using a <code>DisatpchQueue.main.asyncAfter</code> call:</p> <pre><code>func sequencingMethod(items: Binding&lt;[SequencedCell]&gt;) { var wait: TimeInterval = 0.0 for cell in items { DispatchQueue.main.asyncAfter(deadline: ....
In SwiftUI how do I animate changes one at a time when they occur in a called method?
animation|swiftui
0
79
2
72,340,124
72,340,124
1
true
2022-05-22T16:42:28.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In SwiftUI how do I animate changes one at a time when they occur in a called method?<p>Although I get an animation when I tap the button, it's not the anima...
72,328,344
Creating a Custom Slider<p>I have created a custom slider, but the ValueChanged event is not triggered when changing the value of the slide, anyone can point out the reason why.</p> <pre><code>using Mobile.Resources; using System; using System.Windows.Input; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Mob...
<p>You could refer to the code below.</p> <ol> <li><p>Add the <code>ValueChanged</code> in your SliderControl Xaml:</p> <pre><code>&lt;Slider Maximum=&quot;100&quot; Minimum=&quot;0&quot; WidthRequest=&quot;300&quot; VerticalOptions=&quot;FillAndExpand&quot; ...
Creating a Custom Slider
ios|xamarin
1
79
2
72,344,719
72,344,719
1
true
2022-05-21T09:36:48.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating a Custom Slider<p>I have created a custom slider, but the ValueChanged event is not triggered when changing the value of the slide, anyone can point...
72,345,431
How to skip existing fields when unmarshal json in golang?<p>I use <code>json</code> file to configure my program arguments and use <code>flag</code> package to configure the same arguments.</p> <p>When some argument parsed by <code>json</code> file and <code>flag</code> at the same time, I wish use the arguments parse...
<p>One easy solution would be to first parse the JSON config file, and once that's done, then proceed to parse CLI arguments.</p> <p>The problem with this is that the JSON config file is also a CLI arg.</p> <p>The simplest solution would be to call <code>flag.Parse()</code> again after parsing the config file:</p> <pre...
How to skip existing fields when unmarshal json in golang?
json|go|unmarshalling
2
79
1
72,345,494
72,345,494
1
true
2022-05-23T08:27:54.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to skip existing fields when unmarshal json in golang?<p>I use <code>json</code> file to configure my program arguments and use <code>flag</code> package...
72,353,775
Safe Area + AppBar/NestedScrollView creates an unwanted bar in Flutter<p>When I work with NestedScrollView/SliverAppbar + want to keep the body in the Safe Area, it automatically creates an empty horizontal bar between the AppBar and the body (I made the color of this bar orange to visually help the issue). Is there a ...
<p>Remove the <strong>SafeArea</strong> from the body, instead set the whole <strong>Scaffold</strong> as child of a <strong>SafeArea</strong></p> <p>Your code should be:</p> <pre><code>import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widge...
Safe Area + AppBar/NestedScrollView creates an unwanted bar in Flutter
flutter|dart|flutter-appbar|sliverappbar
0
79
1
72,354,202
72,354,202
1
true
2022-05-23T19:16:44.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Safe Area + AppBar/NestedScrollView creates an unwanted bar in Flutter<p>When I work with NestedScrollView/SliverAppbar + want to keep the body in the Safe A...