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,927,550
How do I position the img to look the same way it does in the figma file?<p>I am doing a frontend mentor challenge and I cant get the picture to look how it looks in the picture. I tried making the container position relative and the position absolute but it makes the page wider even if i put overflow: hidden. I am do...
<p><strong>In your media query <code>(min-width: 768px)</code></strong>:<br /> Use <code>transform: scale(2);</code> and <code>left: 200px;</code> on your header-image and adjust the value of left and scale property according to your need. Also you can remove <code>overflow: hidden;</code> from header-image as well. Do...
How do I position the img to look the same way it does in the figma file?
html|css|position
-2
54
1
72,927,621
72,927,621
0
true
2022-07-10T09:43:51.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I position the img to look the same way it does in the figma file?<p>I am doing a frontend mentor challenge and I cant get the picture to look how it ...
72,914,393
How to validate array of files in Laravel?<p>I'm working on a project where every user is able to add multiple product images. I'm using a single form to submit the product which does 2 things in ProductController@store which are creating new product + creating images belongs to this product in Images table.</p> <p><st...
<p>I have mixed the stackoverflow solution with Laravel's custom validation rule which solved my problem with a modern solution.</p> <p><a href="https://dev.to/moose_said/create-custom-laravel-validation-rule-for-total-uploaded-files-size-1odb" rel="nofollow noreferrer">https://dev.to/moose_said/create-custom-laravel-v...
How to validate array of files in Laravel?
php|laravel|validation|laravel-9
-1
54
1
72,928,039
72,928,039
0
true
2022-07-08T16:31:39.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to validate array of files in Laravel?<p>I'm working on a project where every user is able to add multiple product images. I'm using a single form to sub...
72,908,574
Web page that contains frames is shown as a blank page in Internet Explorer<p>How to embed HTML content in a frame in Internet Explorer? Web page that contains frames is shown as a blank page in Internet Explorer.</p> <p>I have checked FRAMESET, FRAME, embed, and object tags. All these have 'src' attribute to specify t...
<p>You can use <code>iframe.contentWindow.document.write()</code> to embed HTML in iframe. The sample code is like below:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot; /&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;iframe id=&quot;iframe1...
Web page that contains frames is shown as a blank page in Internet Explorer
html|iframe|internet-explorer-11|frame
-1
54
1
72,933,356
72,933,356
0
true
2022-07-08T08:18:21.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Web page that contains frames is shown as a blank page in Internet Explorer<p>How to embed HTML content in a frame in Internet Explorer? Web page that contai...
72,934,766
Create csv file using python, where all the values are seperated after first spacing and creates one column<p>I need help to convert simple_line.txt file to csv file using the pandas library. However, I am unable to categorize image file where i want to create all the values after first space in one column.</p> <p>Here...
<p>try this:</p> <pre><code>import pandas as pd def write_file(filename, output): df = pd.DataFrame() lines = open(filename, 'r').readlines() for l in range(1, len(lines)): line = lines[l] arr = line.split(&quot; &quot;, maxsplit=1) image_line = arr[0] label_line = arr[1].re...
Create csv file using python, where all the values are seperated after first spacing and creates one column
python|csv|encoding|txt
-2
54
3
72,935,568
72,935,568
0
true
2022-07-11T06:56:51.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create csv file using python, where all the values are seperated after first spacing and creates one column<p>I need help to convert simple_line.txt file to ...
72,935,789
In multer file extension which shouldnt be saved getting saved<p>TASK OF CODE : The code telling multer to save file with pdf extension</p> <p>PROBLEM : I am getting back error in response but the file getting saved inside the folder</p> <pre><code>const express = require(&quot;express&quot;); const app = new express()...
<p>Looks like the problem is that the code execution continues after <code>cb(new Error(..)</code>, thus <code>cb(undefined,true)</code> gets called as well, telling multer that everything is ok. Change it to:</p> <pre><code>if (!file.originalname.toLowerCase().endsWith(&quot;pdf&quot;)) { return cb(new Error(&quot;p...
In multer file extension which shouldnt be saved getting saved
javascript|node.js|multer
1
54
2
72,935,983
72,935,983
0
true
2022-07-11T08:40:08.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In multer file extension which shouldnt be saved getting saved<p>TASK OF CODE : The code telling multer to save file with pdf extension</p> <p>PROBLEM : I am...
72,935,887
How to add to export default class extends Component - ({navigation})?<p>I have a problem with adding the {navigation} parameter to the export default class extends Component, I need it for the FlatList</p> <p>How can I add it here?</p> <pre><code>export default class ENews extends Component { render() { return ( ...
<p>You need to get navigation from props you can either deconstruct this.props and get navigation like this</p> <pre class="lang-js prettyprint-override"><code>const { navigation } = this.props; </code></pre> <p>or you can directly use it like this</p> <pre class="lang-js prettyprint-override"><code>this.props.navigati...
How to add to export default class extends Component - ({navigation})?
react-native
0
54
2
72,936,302
72,936,302
0
true
2022-07-11T08:50:14.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add to export default class extends Component - ({navigation})?<p>I have a problem with adding the {navigation} parameter to the export default class ...
72,929,533
NodeJS Error The above error occurred in the <path> component<p>This is my standard bootstrap code snippet. I want to use the bootstrap menu I had previously written these codes in PHP and I just started learning NodeJS and I want to implement it in NodeJS.</p> <p>I create this function in NodeJS</p> <pre><code>import...
<p>The problem was with the stolen tag After seeing the link below, I made changes in the HTML code that fixed the bugs. <a href="https://www.w3schools.com/react/react_css_styling.asp" rel="nofollow noreferrer">https://www.w3schools.com/react/react_css_styling.asp</a></p> <p>For example, as follows: ‍‍‍</p> <pre><code>...
NodeJS Error The above error occurred in the <path> component
html|node.js|reactjs
1
54
1
72,938,560
72,938,560
0
true
2022-07-10T15:10:21.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NodeJS Error The above error occurred in the <path> component<p>This is my standard bootstrap code snippet. I want to use the bootstrap menu I had previously...
72,930,427
How to load data into a vector from a text file that has been created inside the same program. in C++<p>I want to load data from a Text file that has been created in the same program into a vector of strings. But no line of text is getting pushed into the vector here.</p> <p>Here First I am reading data from some input...
<p>Here's a mini-code review:</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;bits/stdc++.h&gt; // Don't do this; doesn't even compile for me using namespace std; // Don't do this either int main() { string inputFileName; cout &lt;&lt; &quot;Enter the Input File Name: &quot;; cin &g...
How to load data into a vector from a text file that has been created inside the same program. in C++
c++|fstream|file-handling|ifstream|ofstream
-3
54
1
72,939,308
72,939,308
0
true
2022-07-10T17:16:02.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to load data into a vector from a text file that has been created inside the same program. in C++<p>I want to load data from a Text file that has been cr...
72,885,832
R Plotly changing a 3D plot camera in code<p>I am currently trying to plot subplots of differents datas.</p> <p>I need the code to plot the different figures exactly the way I want them without me having to modify them after.</p> <p>I have a problem with a 3D plot overlapped with the other plot in a subplot, as you can...
<p>I didn't download all of that data. A small sample is usually more than enough. I created data; I used the same names, so this should migrate to your project pretty well.</p> <p>I see that you had tried working with the <code>up</code> setting. You were close. You needed the <code>eye</code>. Depending on how you us...
R Plotly changing a 3D plot camera in code
r|plot|plotly|r-plotly
1
54
1
72,942,086
72,942,086
0
true
2022-07-06T15:02:08.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R Plotly changing a 3D plot camera in code<p>I am currently trying to plot subplots of differents datas.</p> <p>I need the code to plot the different figures...
72,941,265
Git Changes and Git Repo in Visual Studio<p>Why, in the dropdown menus at the top of Visual Studio 2022, are &quot;Git Changes&quot; and &quot;Git Repo&quot; in the &quot;View&quot; dropdown, rather than the &quot;Git&quot; dropdown? I understand it's something that is part of the view, but to me it seems like it's mor...
<p>Actually, those 2 options are in both the &quot;View&quot; and &quot;Git&quot; dropdown menus, but they are called different things:</p> <ul> <li>View-&gt;Git Changes = Git-&gt;&quot;Commit or Stash...&quot;</li> <li>View-&gt;Git Repository = Git-&gt;Manage Branches</li> </ul> <p>I do think this is a little odd, sin...
Git Changes and Git Repo in Visual Studio
git|visual-studio
0
54
1
72,943,114
72,943,114
0
true
2022-07-11T15:50:00.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Git Changes and Git Repo in Visual Studio<p>Why, in the dropdown menus at the top of Visual Studio 2022, are &quot;Git Changes&quot; and &quot;Git Repo&quot;...
72,948,004
JavaScript - how to make form String to Array?<p>I have data <code>const { data: communityData } = useQuery(SEE_ALL_COMMUNITIES_QUERY);</code></p> <p>communtyData is Array and it has field named communityName.</p> <p>if I console.log <code>communityData.communityName[0]</code> then '<strong>abs</strong>' comes.</p> <...
<p>You don't want to turn this into an Array but into JSON specifically if you want to get the effect you wrote the map should look like this</p> <pre><code>const communityNameList = arr.map((community, index) =&gt; { return { &quot;label&quot;: community.communityName, &quot;value&quot;: community....
JavaScript - how to make form String to Array?
javascript
0
54
2
72,948,088
72,948,088
0
true
2022-07-12T06:40:02.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JavaScript - how to make form String to Array?<p>I have data <code>const { data: communityData } = useQuery(SEE_ALL_COMMUNITIES_QUERY);</code></p> <p>commu...
72,921,596
How to automatically append gtkwidget in new line when no horizontal space is available in gtkbox?<p>Let's say I have the following code</p> <pre class="lang-cpp prettyprint-override"><code>m_box=gtk_box_new(GTK_ORIENTATION_HORIZONTAL,4); gtk_widget_set_halign (m_box, GTK_ALIGN_START); gtk_widget_set_valign (m_box, GTK...
<p>This is not something a <code>GtkBox</code> can do. It's quite &quot;dumb&quot; in that it doesn't care about reflowing or anything like that. It does one thing and one thing only: putting child widgets next to each other in a specific orientation.</p> <p>For your use case, you might be more interested in <a href="h...
How to automatically append gtkwidget in new line when no horizontal space is available in gtkbox?
c++|c|gtk
2
54
1
72,948,819
72,948,819
0
true
2022-07-09T13:05:32.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to automatically append gtkwidget in new line when no horizontal space is available in gtkbox?<p>Let's say I have the following code</p> <pre class="lang...
72,949,921
return qs._result_cache[0] IndexError: list index out of range [12/Jul/2022 14:43:28] "GET /shop/products/15 HTTP/1.1" 500 68001<p>return qs._result_cache[0] IndexError: list index out of range [12/Jul/2022 14:43:28] &quot;GET /shop/products/15 HTTP/1.1&quot; 500 68001</p>
<p><code>qs._result_cache</code> obviously is an empty list or string.</p>
return qs._result_cache[0] IndexError: list index out of range [12/Jul/2022 14:43:28] "GET /shop/products/15 HTTP/1.1" 500 68001
python|django
-4
54
1
72,949,954
72,949,954
0
true
2022-07-12T09:19:12.493Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: return qs._result_cache[0] IndexError: list index out of range [12/Jul/2022 14:43:28] "GET /shop/products/15 HTTP/1.1" 500 68001<p>return qs._result_cache[0]...
72,773,640
Write in JSON file - Data not inserted in the correct order<p>I am creating a desktop app using QT C++ that take a text file and convert it to JSON File like this example:</p> <pre><code>{ &quot;102&quot;: { &quot;NEUTRAL&quot;: { &quot;blend&quot;: &quot;100&quot; }, &quot;AE&qu...
<p>I did resolve it using rapidjson library instead of QJsonObject</p> <p>Based on this example</p> <pre><code>#include &lt;rapidjson/document.h&gt; #include &lt;rapidjson/writer.h&gt; #include &lt;rapidjson/stringbuffer.h&gt; #include &quot;rapidjson/filewritestream.h&quot; #include &lt;string&gt; #include &quot;Rapid...
Write in JSON file - Data not inserted in the correct order
c++|json|qt|qjsonobject|qjsondocument
0
54
2
72,953,110
72,953,110
0
true
2022-06-27T14:19:26.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Write in JSON file - Data not inserted in the correct order<p>I am creating a desktop app using QT C++ that take a text file and convert it to JSON File like...
72,955,310
Got empty array when send array from Axios to Laravel function<p>I am trying to send multidimensional array from javascript to laravel function and save it in session</p> <p>my JS array looking like this:</p> <pre><code>[ 1 =&gt; [ 2022-07-12 =&gt; [1, 2], [2, 3] 2022-07-13 =&gt; [2, 1], [3, 3] ], ...
<p>In order for <code>$request-&gt;weeksMeals</code> to work, you need to send the data from your <code>Axios</code> call with <code>weeksMeals</code> as an <code>object</code> index:</p> <pre><code>Axios.post('/meal-plans/set-weeks-meals', {'weeksMeals': weeksMeals}).then((response) =&gt; { console.log(response.dat...
Got empty array when send array from Axios to Laravel function
javascript|laravel|axios
1
54
1
72,956,910
72,956,910
0
true
2022-07-12T16:09:07.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Got empty array when send array from Axios to Laravel function<p>I am trying to send multidimensional array from javascript to laravel function and save it i...
72,943,922
How to assign the FIPS codes to multiple Counties by name?<p>New R user looking to assign the FIPS code to the counties within a dataset. I have multiple point data with a county name attached to the information, and I want to assign the appropriate FIPS code to all counties within the dataset.</p> <p>Data example:</p>...
<p>For anybody interested, I was able to download the FIPS codes using the TIGRIS package, and then assign it with various join functions.</p> <pre><code> ##Assign FIPS by State ##DE_2016small$StateFIPS &lt;- fips(DE_2016small$Residence_Addresses_State_2016) ##Assign FIPS by County ##Download FIPS from TidyCens...
How to assign the FIPS codes to multiple Counties by name?
r|geometry|fips|census|tigris
0
54
1
72,957,223
72,957,223
0
true
2022-07-11T19:49:37.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to assign the FIPS codes to multiple Counties by name?<p>New R user looking to assign the FIPS code to the counties within a dataset. I have multiple poi...
72,957,650
Query the entire Active Directory and its GC Servers for a list of AD users<p>My intention is to query the entire Active Directory Domain, which incorporates a total of 5 Global Catalogue Servers ($ServerList), for a list of AD users in a text file ($UserList) in order to check if the users are still enabled and what s...
<p>Your <code>-Server</code> expects a single string whereas you're passing it an array of strings:</p> <pre><code>foreach ($server in $serverList) { foreach ($user in $userList) { try { Get-ADUser -Filter &quot;userprincipalname -like '*$user*'&quot; -Properties &quot;UserPrincipalName&quo...
Query the entire Active Directory and its GC Servers for a list of AD users
powershell|foreach
0
54
1
72,958,004
72,958,004
0
true
2022-07-12T19:47:36.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Query the entire Active Directory and its GC Servers for a list of AD users<p>My intention is to query the entire Active Directory Domain, which incorporates...
72,959,376
How to make reset.css not apply inside 1 element?<p>I want to do this because I get stylized text from &quot;Portable Text to React&quot;. However my index.css (global style) which has a css reset, removes all the default styling from elements of the portable text.</p> <p>How can I exclude the reset.css from this 1 rea...
<p>Solved: Give this class to the element. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/revert" rel="nofollow noreferrer">revert</a> behaves exactly the way I want. Returns all elements inside this one element to browser default styling, while my css reset remains active on rest of the application. I don't...
How to make reset.css not apply inside 1 element?
html|css|reactjs
0
54
2
72,959,514
72,959,514
0
true
2022-07-12T23:32:52.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make reset.css not apply inside 1 element?<p>I want to do this because I get stylized text from &quot;Portable Text to React&quot;. However my index.c...
72,955,975
How to use sed command to change string in a file<p>OS: Windows 10</p> <p>Tool: git bash</p> <p>I want to use sed command to change the version string in some files. In git bash, I tried below command and it works.</p> <pre><code>$ sed -i 's/1.0.0.21/1.0.0.22/g' ../fossa/PluginManifest.xml </code></pre> <p>Then I put s...
<p>In general, any and all input should validated, sanitized, and/or encoded as appropriate before use, especially for input being passed to a command/control interface, such as a shell-executed sed.</p> <p>In your example, the following may be appropriate (with <code>.</code>s being escaped, as suggested by anubhava a...
How to use sed command to change string in a file
windows|bash|script
0
54
1
72,959,575
72,959,575
0
true
2022-07-12T17:04:58.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use sed command to change string in a file<p>OS: Windows 10</p> <p>Tool: git bash</p> <p>I want to use sed command to change the version string in som...
72,956,779
How to check if the mentioned participant has rights Discord.js<p>I'm trying to check if the mentioned member has admin rights, but I only know the option with the author of the post</p> <pre><code>message.member.permissions.has(&quot;BAN_MEMBERS&quot;) </code></pre> <p>Is there another option?</p>
<p>I'm not entirely sure but if your issue is checking to see if they have admin or finding that was mentioned, but just for checking to see if they have admin you can use</p> <pre><code>&lt;user&gt;.permissions.has(&quot;ADMINISTRATOR&quot;); </code></pre> <p>If your issue was finding the user that was mentioned, you ...
How to check if the mentioned participant has rights Discord.js
javascript|node.js|discord.js
0
54
1
72,960,318
72,960,318
0
true
2022-07-12T18:20:20.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if the mentioned participant has rights Discord.js<p>I'm trying to check if the mentioned member has admin rights, but I only know the option wi...
72,960,796
Why is my grouped bar graph not showing all 3 bars and how to make it more neater?<p>This is in connection to my earlier question with the link here: <a href="https://stackoverflow.com/questions/72960167/how-do-i-add-labels-and-trace-lines-into-my-grouped-bar-graph?noredirect=1#comment128865858_72960167">How do I add l...
<p>The reason for the overlap is because of the code in the <code>rects1/2/3</code> - these are basically plotting the rectangles required. In your code, you have them as <code>x - width/2</code>, <code>x + width/2</code> and <code>x - width/2</code>. As you can see, the x-coordinates for the blue bar is the same as th...
Why is my grouped bar graph not showing all 3 bars and how to make it more neater?
python|pandas|matplotlib
1
54
1
72,961,279
72,961,279
0
true
2022-07-13T04:01:11.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is my grouped bar graph not showing all 3 bars and how to make it more neater?<p>This is in connection to my earlier question with the link here: <a href...
72,963,207
Cypress, javascript: dayjs does not return current date correctly<p>I am coding cypress tests. I use cypress v10.3.0.</p> <p>I am getting a wrong date when I use dayjs function for the second time.</p> <pre><code>var dayjs = require('dayjs') cy.log(dayjs(new Date()).format('DD/MM/YYYY HH:mm:ss')) cy.wait(5000) cy.log(d...
<p>That is the expected output.</p> <p>Reason is, <code>cy.log()</code> (both lines) takes it's value before the commands run, before the <code>cy.wait()</code> happens.</p> <p>You can change it to this</p> <pre class="lang-js prettyprint-override"><code>cy.log(dayjs(new Date()).format('DD/MM/YYYY HH:mm:ss')) cy.wait(5...
Cypress, javascript: dayjs does not return current date correctly
javascript|datetime|cypress|dayjs|cypress-dayjs
1
54
1
72,963,255
72,963,255
0
true
2022-07-13T08:35:18.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cypress, javascript: dayjs does not return current date correctly<p>I am coding cypress tests. I use cypress v10.3.0.</p> <p>I am getting a wrong date when I...
72,963,262
Give access to trigger pipeline with deployment to reporters<p>I have omnibus ce instance. There is a project on which a dozen developers and the same number of testers work. For testing, a dynamic environment was set up in .gitlab-ci.yaml, application test (codeception) for each push and some stage for review</p> <p>....
<p>You must either give the testers developer membership or higher in the project if you want them to be able to trigger the pipeline through the web UI or directly in GitLab in any way.</p> <p>As a workaround, you can generate <a href="https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html" rel="n...
Give access to trigger pipeline with deployment to reporters
gitlab|environment-variables|gitlab-ci
0
54
1
72,963,461
72,963,461
0
true
2022-07-13T08:40:10.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Give access to trigger pipeline with deployment to reporters<p>I have omnibus ce instance. There is a project on which a dozen developers and the same number...
72,954,393
Trying to convert specific Json with JSON.NET gives me Error Converting Value<p>I am actually implementing some new functionality for my company's app, the previous dev already did some similar deserialization with JSON.NET successfully and I was trying to make it work with my new functionality.</p> <p>Here is the obje...
<p>You cannot deserialize <code>HistoryList</code> like that. It's just an array containing a single string, there is no inherent meaning in them being particular properties. Instead you will have to parse it out manually:</p> <pre class="lang-cs prettyprint-override"><code>public class GetHistory { public List&lt;...
Trying to convert specific Json with JSON.NET gives me Error Converting Value
c#|json|json.net
1
54
1
72,963,600
72,963,600
0
true
2022-07-12T14:57:35.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to convert specific Json with JSON.NET gives me Error Converting Value<p>I am actually implementing some new functionality for my company's app, the p...
72,968,765
How to use state variable for conditional declaring of array of objects?<p>In React js, What I want to do is: declare an array of objects (routes) and export. For conditional declaration of array of objects, I want to use an state variable (which returns whether user logged in or not).</p> <p>Aim:</p> <ul> <li>user log...
<p>Move your AppState to a context/reducer so that whenever a user authenticates we can properly react to this state change then</p> <pre><code>const routes=[ { title:&quot;home page&quot;, private:false, }, { title:&quot;put rating&quot;, private:true, } ]; </code></pre> <p>Create a separate co...
How to use state variable for conditional declaring of array of objects?
javascript|reactjs|react-hooks|conditional-statements|use-state
0
54
1
72,968,920
72,968,920
0
true
2022-07-13T15:21:39.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use state variable for conditional declaring of array of objects?<p>In React js, What I want to do is: declare an array of objects (routes) and export...
72,969,871
External application dashboard in Banno<p>We created a custom application and linked it to the dashboard. The UI is loading inside the dashboard in Mobile App but not loading in Edge/Chrome. In the browser, UI is loading after clicking the primary action button.</p>
<p>Modern web browsers have become increasingly restrictive about how content is handled from secure contexts (i.e., <em>https</em>) and unsecure contexts (i.e., <em>http</em>) and generally doesn't like to mix the two.</p> <p>Banno Online is served up in an https context so all of the content (including plugins) shoul...
External application dashboard in Banno
banno-digital-toolkit
0
54
1
72,972,716
72,972,716
0
true
2022-07-13T16:48:27.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: External application dashboard in Banno<p>We created a custom application and linked it to the dashboard. The UI is loading inside the dashboard in Mobile Ap...
72,974,126
junit @RunWith(Parameterized.class) annotation is throwing null<p>I have a test which is extending to baseTest which is where I have included the parameters.</p> <p>ATest.class</p> <pre><code>public class ATest extends BaseTest { @Test public void test() { System.out.println(fSomething); } } </code...
<p>I notice you use Jupiter from jUnit 5, but jUnit 4 API.</p> <p>If you use jUnit 5, reimplement the test using <code>@ParametrizedTest</code> annotation instead. Start here: <a href="https://junit.org/junit5/docs/current/user-guide/#writing-tests-parameterized-tests" rel="nofollow noreferrer">https://junit.org/junit5...
junit @RunWith(Parameterized.class) annotation is throwing null
java|selenium|junit
1
54
2
72,975,042
72,975,042
0
true
2022-07-14T00:58:05.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: junit @RunWith(Parameterized.class) annotation is throwing null<p>I have a test which is extending to baseTest which is where I have included the parameters....
72,974,251
How to I reshape the 2D array like this? (By using tensor)<p>I want to resize my image from 32 * 32 to 16 * 16. (By using torch.tensor) Like decreasing the resolution? Can anyone help me?</p>
<p>If you have an image (stored in a tensor) and you want to decrease it's <em>resolution</em>, then you are not <code>reshaping</code> it, but rather <em>resizing</em> it.<br /> To that end, you can use pytorch's <a href="https://pytorch.org/docs/stable/generated/torch.nn.functional.interpolate.html" rel="nofollow nor...
How to I reshape the 2D array like this? (By using tensor)
python|numpy|pytorch
0
54
2
72,975,662
72,975,662
0
true
2022-07-14T01:29:18.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to I reshape the 2D array like this? (By using tensor)<p>I want to resize my image from 32 * 32 to 16 * 16. (By using torch.tensor) Like decreasing the r...
72,977,493
How to work with GO SDK while Azure AD user creation?<p>Would like to create Azure AD user from GO SDK programmatically but can't find any related docs. I am new to this platform.</p> <p>From Azure Portal I know how to create user, but the requirement is do it from GO.</p> <p>Anyone tried and got the results? Can someo...
<blockquote> <p><strong>To create user from GO SDK, you can make use of below sample code as mentioned in this</strong> <a href="https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&amp;tabs=go#request" rel="nofollow noreferrer"><strong>MsDoc</strong></a>:</p> </blockquote> <pre class="lang-cs...
How to work with GO SDK while Azure AD user creation?
go|azure-ad-b2b
0
54
1
72,978,241
72,978,241
0
true
2022-07-14T08:27:35.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to work with GO SDK while Azure AD user creation?<p>Would like to create Azure AD user from GO SDK programmatically but can't find any related docs. I am...
72,979,325
Unable to read csv file on Google Colab<p>I'm trying to read a sample dataset from Kaggle on Google Colab. I've tried to read the csv file by uploading it to my Google Drive as well as by loading it to my ipynb using the Kaggle API.</p> <p>This is the command I'm trying:</p> <pre><code>df=pd.read_csv(&quot;/content/qua...
<p>Try removing dtype and use this instead:</p> <pre><code>df=pd.read_csv(&quot;/content/quality/MiningProcess_Flotation_Plant_Database.csv&quot;,usecols=[0,1]) </code></pre> <p>need_cols should be like [0,1]</p>
Unable to read csv file on Google Colab
python|pandas|csv|google-colaboratory
-3
54
1
72,979,493
72,979,493
0
true
2022-07-14T10:53:11.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to read csv file on Google Colab<p>I'm trying to read a sample dataset from Kaggle on Google Colab. I've tried to read the csv file by uploading it to...
72,937,106
How can I interact with html elements use QT<p>For example, I have a simple HTML page with button and label (or something else). How can I change the text in label (or something else) and catch the button click use QT. I try to use QWebEngineView to show html, but I don`t know how to interact with elements from QT modu...
<p>To be able to interact with HTML rendered with QWebEngine you need to use <a href="https://doc.qt.io/qt-6/qwebchannel.html#details" rel="nofollow noreferrer">QWebChannel</a>. You can find the basic guidelines at <a href="https://doc.qt.io/qt-6/qtwebchannel-javascript.html" rel="nofollow noreferrer">Qt WebChannel Jav...
How can I interact with html elements use QT
c++|qt|qwebengineview
-1
54
1
72,982,039
72,982,039
0
true
2022-07-11T10:26:59.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I interact with html elements use QT<p>For example, I have a simple HTML page with button and label (or something else). How can I change the text in...
72,976,348
How "Symbolic Constants in C " are read by Conditional Loops in C?<p>I am trying to use the symbolic constant in the condition or test of a conditional loop. Here is what I tried:</p> <pre><code>#include &lt;stdio.h&gt; #define TEST 0 void main() { int c; while ((c = getchar()) != TEST) putchar(c); } ...
<p>If you want the program to stop when you type <code>0</code>, you should compare the return value of <code>getchar()</code> to the character constant <code>'0'</code> instead of the number <code>0</code>. Note that you should also check for <code>EOF</code> to avoid an infinite loop at end of file:</p> <pre><code>#i...
How "Symbolic Constants in C " are read by Conditional Loops in C?
c
-1
54
1
72,984,376
72,984,376
0
true
2022-07-14T06:51:32.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How "Symbolic Constants in C " are read by Conditional Loops in C?<p>I am trying to use the symbolic constant in the condition or test of a conditional loop....
72,985,380
Class properties not applying to all divs<p>I am creating a footer <code>section</code> which has 4 <code>div</code> each having a common class. The first <code>div</code> for some reason is taking more width than it should be taking. The remaining 3 <code>div</code> are taking the width of the elements in it, why isn'...
<p>Your particular case can be solved by using rem or em unit</p> <p><strong>What really happened?</strong> when you use flex, the size of each containers are on auto adjusted based on the largest intrinsic dimension of the element inside.</p> <p>In the first div, it's your image which has the largest intrinsic dimensi...
Class properties not applying to all divs
html|css|flexbox
0
54
3
72,987,172
72,987,172
0
true
2022-07-14T18:51:55.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Class properties not applying to all divs<p>I am creating a footer <code>section</code> which has 4 <code>div</code> each having a common class. The first <c...
72,959,645
How to make the sum of output to 1<p>My (PyTorch) sum of model’s output isn’t 1. And this is the structure of model.</p> <pre><code>LSTM(4433, 64) LSTM(64, 64) Linear(64, 4433) Sigmoid() </code></pre> <p>And this is the predicted output of the model. Input</p> <p><code>[1, 0, 0, …, 0, 0] </code></p> <p>Output</p> <pre>...
<p><strong>Sigmoid</strong> activation function maps every input to a value between [0, 1], without taking into account other elements in the input vector. However, <strong>Softmax</strong> does a similar transformation but the output vector sums 1.</p> <p><strong>TL;DR:</strong> use softmax instead of sigmoid.</p>
How to make the sum of output to 1
deep-learning|pytorch
-1
54
1
72,988,732
72,988,732
0
true
2022-07-13T00:24:59.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make the sum of output to 1<p>My (PyTorch) sum of model’s output isn’t 1. And this is the structure of model.</p> <pre><code>LSTM(4433, 64) LSTM(64, 6...
72,988,598
ngfor does not work when displaying multiple cards in ionic angular<p>Good morning, I am consuming an api that I made in laravel and so far if I am bringing the data well, since I tested them by the console. Now the problem is that when I generate some cards in ionic to show the data that I am consuming does not show m...
<p>I think the error was in the forEach when adding them. I applied another logic using only the map</p> <p>code</p> <pre><code>all(): Observable&lt;any&gt; { return this.http.get(`${this.url}usuario`).pipe( // &lt;-- URL and pipe is for 404 error map((res: any) =&gt; { this.usuarios...
ngfor does not work when displaying multiple cards in ionic angular
angular|ionic-framework
1
54
2
72,989,235
72,989,235
0
true
2022-07-15T02:55:12.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ngfor does not work when displaying multiple cards in ionic angular<p>Good morning, I am consuming an api that I made in laravel and so far if I am bringing ...
72,987,583
How to capture output of curl piped with grep into a variable in a shell script<p>I realise there are quite a few posts that show how to capture output of curl or grep, but haven't been able to find any post where I can capture the value of a group in the grep's regular expression.</p> <p>I need to capture output of th...
<p>First, I don't know where <code>eu_3qrEWJFAz_4hL7bOIvA</code> comes from in your example. I'll assume you meant <code>J3cKzWIbi_w6Fr1G-tO03Q</code>.</p> <p>Second, your command line output doesn't make sense, unless you played around with the shell and some global state remains. When I run it, I get a empty output, ...
How to capture output of curl piped with grep into a variable in a shell script
bash|shell|curl
0
54
2
72,989,266
72,989,266
0
true
2022-07-14T23:23:13.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to capture output of curl piped with grep into a variable in a shell script<p>I realise there are quite a few posts that show how to capture output of cu...
72,989,460
Draw vertical lines in chart for a list of dates<p>I get this error: &quot;line 14: Cannot call 'timestamp' with argument 'dateString'='call 'array.get' (series string)'. An argument of 'series string' type was used but a 'const string' is expected; line 14: Variable 'lineDate' is not found in scope '#global_#0_#0', ca...
<p>You cannot convert dynamic string to timestamp in pinescript. You will have to convert it where you have hardcoded the date. Then save in an integer array and plot it. Example below</p> <pre><code>//@version=5 indicator(&quot;Mein Skript&quot;, overlay=true,max_lines_count=500) var dates = array.new&lt;int&gt;(2) a...
Draw vertical lines in chart for a list of dates
pine-script|pinescript-v5
0
54
1
72,991,047
72,991,047
0
true
2022-07-15T05:35:53.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Draw vertical lines in chart for a list of dates<p>I get this error: &quot;line 14: Cannot call 'timestamp' with argument 'dateString'='call 'array.get' (ser...
72,991,286
SwiftUI best way to create base view that will be inherited<p>I try to find the best way to make a View that will be served like a base view with some default behavior. Here is a example of what I did the best so far:</p> <pre><code>struct BaseView &lt;Content: View&gt;: View{ @Binding var showSideMenu: Bool ...
<p>How about using a custom View Modifier. It gets content passed in and you don't need extra stacks:</p> <pre><code>struct ContentView: View { @State var showSideMenu: Bool = false var body: some View { VStack{ Text(&quot;HOME&quot;) Button(action: { wi...
SwiftUI best way to create base view that will be inherited
swiftui
-3
54
1
72,992,149
72,992,149
0
true
2022-07-15T08:37:06.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SwiftUI best way to create base view that will be inherited<p>I try to find the best way to make a View that will be served like a base view with some defaul...
72,951,307
Play and Stop sound file according a particular condition checked every 2 secs with java<p>I consume a service every 2 secs and according its response I want to play or stop a WAVE sound. All seems to work fine (except the overlap of several WAVE executions =&gt; but this is not the principal problem), but I cannot sto...
<p>Ok I fixed this problem with this code</p> <p>musicStuff.java</p> <pre><code>package hello; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import javazoom.jl.player.Player; public class musicStuff { FileInputStream fileInputStream; Buff...
Play and Stop sound file according a particular condition checked every 2 secs with java
java|audio|mp3
-1
54
1
72,992,510
72,992,510
0
true
2022-07-12T11:06:40.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Play and Stop sound file according a particular condition checked every 2 secs with java<p>I consume a service every 2 secs and according its response I want...
72,997,000
SQL - How to answer this question : List employees who were hired on Tuesday and sort them from Z to A<p>I am working on something. I have tried everything....</p> <pre><code>SELECT last_name, hire_date FROM employees WHERE TO_CHAR(hire_date, 'DAY') = 'TUESDAY' ORDER BY last_name DESC; </code></pre> <p>Please let me kn...
<p>alter session set nls_territory = 'AMERICA';</p> <p>SELECT last_name, hire_date FROM employees WHERE TO_CHAR(hire_date, 'DAY') = 'TUESDAY' ORDER BY last_name DESC;</p> <p>Try with alter session</p>
SQL - How to answer this question : List employees who were hired on Tuesday and sort them from Z to A
sql|oracle
0
54
3
72,997,584
72,997,584
0
true
2022-07-15T16:23:12.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL - How to answer this question : List employees who were hired on Tuesday and sort them from Z to A<p>I am working on something. I have tried everything.....
72,998,174
Selenium multiple input fields<p>I am stuck on how to enter the input value selecting a building. Initially, there will be only two empty input fields for selecting a building, as you enter one it will add an empty input field. I don't see any indexing on how to select and enter the building names one by one without ov...
<p>Something to try. Get all building inputs and index them to send text:</p> <pre><code>fields = driver.find_elements_by_xpath(&quot;//div[contains(@class,'text form-control js-checkout-field-validation')]&quot;) fields[0].send_keys(buil[0]) fields[1].send_keys(buil[1]) </code></pre> <p>Or you can just us...
Selenium multiple input fields
python|html|selenium
0
54
2
72,998,490
72,998,490
0
true
2022-07-15T18:16:18.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Selenium multiple input fields<p>I am stuck on how to enter the input value selecting a building. Initially, there will be only two empty input fields for se...
72,997,351
Reading in-memory Avro file from S3: 'AttributeError:'<p>I'm trying to read Avro files stored in S3 by a vendor and write to a DW. See code below. (Was roughly working from this <a href="https://stackoverflow.com/questions/45487588/how-to-read-avro-files-from-s3-in-python">S/O thread</a>.)</p> <pre><code>obj = obj.get(...
<p>This is a bug in version 1.11.0 that has been fixed but a new version hasn't been released: <a href="https://issues.apache.org/jira/browse/AVRO-3252" rel="nofollow noreferrer">https://issues.apache.org/jira/browse/AVRO-3252</a>.</p> <p>To resolve this, you can do one of the following:</p> <ol> <li>Wait until the new...
Reading in-memory Avro file from S3: 'AttributeError:'
python|amazon-s3|avro|bytesio
0
54
1
72,999,100
72,999,100
0
true
2022-07-15T16:53:57.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reading in-memory Avro file from S3: 'AttributeError:'<p>I'm trying to read Avro files stored in S3 by a vendor and write to a DW. See code below. (Was rough...
72,995,843
Non-breaking space without quotation mark in the batch file FOR in (string) script<p>I am writing a batch file and expect to output three lines of string sentences to a txt file, just like this:</p> <pre><code>powershell &quot;Get-appxprovisionedpackage -Online&quot; complete 123456 </code></pre> <p>however, the first ...
<p>Simple:</p> <pre><code>@ECHO on SETLOCAL enableDelayedExpansion for /F &quot;delims=&quot; %%A in (^&quot; powershell &quot;Get-appxprovisionedpackage -Online&quot;^ complete^ 123456 ^&quot;) do echo %%A&gt;&gt; D:\BatOutput.txt </code></pre> <p>Just change the <code>FOR</code> by <code>FOR /F &quot;delims=&quot;<...
Non-breaking space without quotation mark in the batch file FOR in (string) script
batch-file
0
54
2
73,000,722
73,000,722
0
true
2022-07-15T14:51:38.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Non-breaking space without quotation mark in the batch file FOR in (string) script<p>I am writing a batch file and expect to output three lines of string sen...
72,958,932
EF .FromSqlRaw call ending "500, An unhandled error occurred"<p>.netcore 3.1, EF 5.0, C#:</p> <pre><code>[HttpGet] public IActionResult Get() { var r = _context.mymodel.FromSqlRaw&lt;mytype&gt;(&quot;[dbo].[test]&quot;); return Ok(r); } </code></pre> <p>Breakpoint at <code>return Ok(r)</code> shows no <strong>Excep...
<p>Two issues found and resolved:</p> <ol> <li>A parameter is <code>guid</code> type, when passing in as a string, DebugView-&gt;Query, ran ok at SQL, but EF API fails no exception.</li> <li>Two columns returned from SP sharing the same name in diff case, like <code>[orderid]</code> and <code>[ORDERID]</code> (from dif...
EF .FromSqlRaw call ending "500, An unhandled error occurred"
asp.net-core|.net-core|asp.net-core-webapi|asp.net-core-3.1
-1
54
2
73,001,286
73,001,286
0
true
2022-07-12T22:15:58.263Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: EF .FromSqlRaw call ending "500, An unhandled error occurred"<p>.netcore 3.1, EF 5.0, C#:</p> <pre><code>[HttpGet] public IActionResult Get() { var r = _co...
73,001,433
How can I manually change a cell's contents when I have a script to automatically set that cell?<p>I have created the below script:</p> <pre><code>function onEdit() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sh = ss.getSheetByName(&quot;Sheet1&quot;); var cell = sh.getRange(&quot;A1:A1&quot;); var cells = sh...
<p><strong>You try this function</strong></p> <pre><code>function onEdit(e) {let cellDate=e.source.getActiveSheet().getRange('B1'); if(e.range.getA1Notation()=='A1'&amp;&amp;e.source.getSheetName()=='Sheet1') {if(e.value==null) cellDate.clearContent(); else cellDate.setValue(new Date());} } </code></...
How can I manually change a cell's contents when I have a script to automatically set that cell?
javascript|google-apps-script|google-sheets
0
54
1
73,003,082
73,003,082
0
true
2022-07-16T04:04:10.797Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I manually change a cell's contents when I have a script to automatically set that cell?<p>I have created the below script:</p> <pre><code>function o...
73,006,641
Python findall() not working like I think it should<p>In python, I'm attempting to collect the nodes of my xml file with the tag 'offer' whose direct parent is 'Offers'. When I run the code, 'offers is empty. Any help is greatly appreciated.</p> <pre><code>import xml.etree.ElementTree as ET tree = ET.parse('xmlRespon...
<p>You have to deal with <a href="https://docs.python.org/3/library/xml.etree.elementtree.html#parsing-xml-with-namespaces" rel="nofollow noreferrer">the namespaces in your xml</a> (which, at least in your question, is not well-formed). Assuming your xml is fixed, you can select, for example, the seller ID in each offe...
Python findall() not working like I think it should
python|elementtree
1
54
1
73,007,064
73,007,064
0
true
2022-07-16T18:15:29.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python findall() not working like I think it should<p>In python, I'm attempting to collect the nodes of my xml file with the tag 'offer' whose direct parent ...
73,008,047
Spreadsheet Service: Reading Data<p>I am following this <a href="https://bootstrapping.tools/how-to-autosend-slack-direct-messages-from-google-sheets/#:%7E:text=const%20latest_metrics%20%3D-,sheet.getRange" rel="nofollow noreferrer">tutorial</a> to read data from a Google Spreadsheet. However, I am trying to find some ...
<p>How to get all values in a column</p> <pre><code>function getLatestRotations() { const ss = SpreadsheetApp.openById(&quot;&lt;SPREADSHEET ID&gt;&quot;); const sh = ss.getSheetByName(&quot;&lt;SHEET NAME&gt;&quot;) const column = 1; const vs = sh.getRange(1,column,sh.getLastRow()).getValues(); Logger.log(JS...
Spreadsheet Service: Reading Data
javascript|google-apps-script|google-sheets
0
54
1
73,008,967
73,008,967
0
true
2022-07-16T22:29:52.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spreadsheet Service: Reading Data<p>I am following this <a href="https://bootstrapping.tools/how-to-autosend-slack-direct-messages-from-google-sheets/#:%7E:t...
72,978,460
Spring Websocket : send notification to subscribed client without any request<p>Im writing back front java code spring 2.2.5. The front is connected to the back via a websocket. I want to send notifications to the client without request sent by client only connection and subscrition events are received by the server. I...
<p>I finally find the solution: In my previous PreSend interceptor, i can save all subscribed clients :</p> <pre><code>xxxx.Channels.add(channel); </code></pre> <p>In xxx class : Channels is defined as :</p> <pre><code>public final ArrayList&lt;MessageChannel&gt; Channels = new ArrayList&lt;MessageChannel&gt;(); </cod...
Spring Websocket : send notification to subscribed client without any request
java|spring|http|websocket
0
54
1
73,011,001
73,011,001
0
true
2022-07-14T09:42:50.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spring Websocket : send notification to subscribed client without any request<p>Im writing back front java code spring 2.2.5. The front is connected to the b...
73,013,957
Element not interactable in Selenium<p>I want Selenium to write <code>hello</code> in this username field</p> <p><img src="https://i.stack.imgur.com/67rAn.png" alt="this username field" /></p> <pre><code>&lt;input autocomplete=&quot;off&quot; autocapitalize=&quot;off&quot; autocorrect=&quot;off&quot; spellcheck=&quot;f...
<p>You can try below line of code</p> <pre><code>driver.get('https://account.proton.me/signup?plan=free&amp;billing=12&amp;currency=EUR&amp;language=en') driver.maximize_window() driver.switch_to.frame(driver.find_element(By.XPATH,&quot;//iframe[@class='challenge-width-increase h-custom']&quot;)) email1=driver.find_e...
Element not interactable in Selenium
python|selenium
1
54
1
73,014,410
73,014,410
0
true
2022-07-17T17:33:14.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Element not interactable in Selenium<p>I want Selenium to write <code>hello</code> in this username field</p> <p><img src="https://i.stack.imgur.com/67rAn.pn...
73,017,337
How do I set flutter app timeline according to device time?<p>For example, I want to execute some function after 2 hours from the current time on the device (I did this using Timer()). But I want if I change the time on the device faster than 2 hours, those functions will execute immediately instead of waiting 2 hours....
<p>Use shared preferences package</p> <p><a href="https://pub.dev/packages/shared_preferences" rel="nofollow noreferrer">https://pub.dev/packages/shared_preferences</a></p> <p>When you wish to start the timer get the datetime and save it in shared preferences</p> <pre class="lang-dart prettyprint-override"><code>Shared...
How do I set flutter app timeline according to device time?
android|ios|flutter|dart|mobile
2
54
1
73,017,485
73,017,485
0
true
2022-07-18T04:29:12.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I set flutter app timeline according to device time?<p>For example, I want to execute some function after 2 hours from the current time on the device ...
73,019,039
How to measure the average CPU usage by a process in python<p>I want to measure the average CPU usage of a process in python. With <code>psutil</code> I can only get the CPU consumption at a given time.</p> <p>What I decided to do is this:</p> <pre><code> import psutil import time start = time.time() end = time.time()...
<p>Let's say you found your process name and process ID you can call <strong>cpu_percent(interval=1))</strong> function and pass the interval for how long you want to monitor that process here 1 = 1sec</p> <pre><code>import psutil #PID=3124320 #to get pid use os.getpid() my_process = psutil.Process(3124320) print(&qu...
How to measure the average CPU usage by a process in python
python|cpu
0
54
1
73,019,257
73,019,257
0
true
2022-07-18T08:00:55.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to measure the average CPU usage by a process in python<p>I want to measure the average CPU usage of a process in python. With <code>psutil</code> I can ...
73,021,936
Divide cells in selected range by another column value<p>I'm trying to write a code in Excel VBA that firstly will let user to select a range of values he wants to divide as an input and then select a range that defines the number for division. At this moment the code I wrote works only with a single row, however I wou...
<p>Sticking as far as possible with your own code, the following works are you requested:</p> <pre><code>Sub DivideRange() Dim r As Range Dim W As Range Dim i As Integer Dim target_col As Range Dim LFcount As Integer myTitle = &quot;divide range by a number&quot; Set W = Application.Sele...
Divide cells in selected range by another column value
excel|vba
0
54
2
73,023,996
73,023,996
0
true
2022-07-18T11:55:38.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Divide cells in selected range by another column value<p>I'm trying to write a code in Excel VBA that firstly will let user to select a range of values he wa...
72,823,253
Why my encrypt method doesn't work, encoding without string argument?<p>I made a bin file without extension, and that file contain a text that is encrypted, the problem is that when I want to retrieve the text I get this error message</p> <pre><code>Exception in Tkinter callback Traceback (most recent call last): ...
<p>SOLUTION.</p> <p>Well at first place i saw the comments but i didn't understand what they was saying, they gave me the idea of replacing or changing several code lines the next code line</p> <pre><code>message = pad(bytes(str(text), 'utf-8'), 16) </code></pre> <p>replaced this one</p> <pre><code>entryMessage = pad(...
Why my encrypt method doesn't work, encoding without string argument?
python|encryption|aes
0
54
1
73,058,763
73,058,763
0
true
2022-07-01T00:23:02.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why my encrypt method doesn't work, encoding without string argument?<p>I made a bin file without extension, and that file contain a text that is encrypted, ...
72,845,879
Adding widevine to my QT project doesn't work<p>I downloaded the <code>widevinecdm.dll</code> file from Chrome, then in my .pro file in QT i enabled propietary codecs as said <a href="https://doc.qt.io/qt-6/qtwebengine-features.html#audio-and-video-codecs" rel="nofollow noreferrer">here</a> i added also the path to th...
<p>This problem was solved after building QtWebEngine with proprietary codecs enabled.</p>
Adding widevine to my QT project doesn't work
qt|widevine
2
54
1
73,097,805
73,097,805
0
true
2022-07-03T10:53:45.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding widevine to my QT project doesn't work<p>I downloaded the <code>widevinecdm.dll</code> file from Chrome, then in my .pro file in QT i enabled propieta...
73,019,735
CRA Service worker not working in production<p>Hello and thanks in advance for any help. I got a service-worker up and running with my react-app, it runs perfectly on local builds and when deployed from Azure pipelines as well. Problem is in production, which is deployed via Cloudflare, the service worker throws this e...
<p>Ok, problem solved, and in our case it was actually an error in the server not serving the file whne requested, so apparently nothing was wrong client-side</p>
CRA Service worker not working in production
reactjs|service-worker|cloudflare
1
54
2
73,105,687
73,105,687
0
true
2022-07-18T08:59:36.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CRA Service worker not working in production<p>Hello and thanks in advance for any help. I got a service-worker up and running with my react-app, it runs per...
73,027,006
How to download file from firebase storage and turn it into .stl file with react?<p>I am trying to download a file I stored on firebase storage and then turn it into an stl file to be later used by ThreeJs. Currently I am trying to use the following code but it results in a file with 0 size:</p> <pre><code>const [blobD...
<p>I was using the STLLoader from react three fiber and it turnes out you can give the URL from firebase storage directly to this loader.</p>
How to download file from firebase storage and turn it into .stl file with react?
reactjs|firebase|three.js|firebase-storage
0
54
1
73,139,326
73,139,326
0
true
2022-07-18T18:30:37.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to download file from firebase storage and turn it into .stl file with react?<p>I am trying to download a file I stored on firebase storage and then turn...
72,963,506
Change Unit ID in modbus_read_registers of libmodbus<p>I have used the libmodbus to build a project to connect to my device by modbus-tcp. The project run. But Unit ID is wrong. My ID slave is 0xFE. However it is fixed as 0xFF whenever I send a modbus-tcp package. I had tried to change it by function <code>modbus_set_s...
<p>Actually function <code>modbus_set_slave</code> is the answer. The reason why it did not work is that I made a mistake with the link. Moreover, I can chang the ID unit by fixing it in other function because the library is available to modify.</p>
Change Unit ID in modbus_read_registers of libmodbus
modbus-tcp|libmodbus
1
54
1
73,148,807
73,148,807
0
true
2022-07-13T08:56:39.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change Unit ID in modbus_read_registers of libmodbus<p>I have used the libmodbus to build a project to connect to my device by modbus-tcp. The project run. B...
72,779,949
I2C read() lost 1 bit<p>I try to use I2C to read data from ADS1110, the address of ADS1110 is seven bits, which is <code>1001 000</code>. Writing data can only change the configuration register, which is done in the form of address + configuration. Reading data returns 3 bytes of data, which are high-order bytes data, ...
<p>There is an NS2009 on the board, and the address conflicts with the ADS1110.</p>
I2C read() lost 1 bit
c|linux-device-driver|i2c|iio
1
54
1
73,191,300
73,191,300
0
true
2022-06-28T01:56:58.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I2C read() lost 1 bit<p>I try to use I2C to read data from ADS1110, the address of ADS1110 is seven bits, which is <code>1001 000</code>. Writing data can on...
72,980,082
WebSphere 9.0 is out of sync<p>I'm running WebSphere 9.0 (WAS) with eclipse and when I run the ear in the debug's pespective, I note that a out of sync. The steps are different the code line. I builded the project and I deploy severals time and this behaver persist. Does anyone have any idea? It's look like a cache, b...
<p>The solution to this behavior is:</p> <ol> <li>Check the ear's path.</li> <li>Using the console's WAS to delete the application and install again.</li> <li>Stop/start the WAS.</li> </ol> <p>I lost so much time to find the problem and I think the WebSphere was out of sync.</p>
WebSphere 9.0 is out of sync
eclipse|eclipse-plugin|websphere|websphere-liberty|websphere-8
0
54
1
73,221,644
73,221,644
0
true
2022-07-14T11:56:06.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WebSphere 9.0 is out of sync<p>I'm running WebSphere 9.0 (WAS) with eclipse and when I run the ear in the debug's pespective, I note that a out of sync. The...
73,017,371
Scipy Optimise (minimize) not giving correct results<p>I am trying to do a simple minimisation as below using SciPy optimise, but the expected results are NOT matching the optimiser output:</p> <pre><code>x0 = [0.2, 0.2, 0.2, 0.4] x_expected = np.array([0., 0., 0., 1]) bounds = ((0, 1), (0, 1), (0, 1), (0, 1)) df = pd....
<p>SLSQP solver failed to find the optimal value for your problem.</p> <pre><code>def obj(x): return np.std(np.dot(df, x.T), ddof=1) def ineq(x): # Non-negative return np.greater_equal(x, min).sum() + np.less_equal(x, max).sum() - 2 * df.shape[1] def eq(x): # Zero return 1 - np.sum(x) result = sc...
Scipy Optimise (minimize) not giving correct results
python|optimization|scipy|constraints|minimize
0
54
1
73,017,505
73,017,505
0
true
2022-07-18T04:34:46.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Scipy Optimise (minimize) not giving correct results<p>I am trying to do a simple minimisation as below using SciPy optimise, but the expected results are NO...
72,899,472
AuthorizationFailed while using AZ CLI<p>Today I have tried to perform action on Azur ADF using CLI (Portal for that subscription can be only used as &quot;read&quot;) AZ CLI is installed on AZ VM that via Managed identity has received Contributor role on the whole subscription. Running command ended with Authorization...
<p>I assume that the CLIENT_ID and SUBSCRIPTION_ID actually are real values and you have replaced them to not disclose the here, correct?</p> <p>To be sure that you are in the correct context you could first issue 'az account show' after you logged in using 'az login -i'. Is the response to that what you expected?</p> ...
AuthorizationFailed while using AZ CLI
azure|azure-rbac
0
54
1
72,899,555
72,899,555
0
true
2022-07-07T14:18:26.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AuthorizationFailed while using AZ CLI<p>Today I have tried to perform action on Azur ADF using CLI (Portal for that subscription can be only used as &quot;r...
72,839,784
Camera image from FileProvider Uri only displaying for first time<p>My Jetpack Compose camera app is targeting API Level 32 and is being tested on an Android 11 phone. I'm generating a <code>Uri</code> with <code>FileProvider</code> to take a photo with the stock camera app. Logcat shows the <code>Uri</code> every time...
<p>I found the issue. After debugging the app, I discovered that I needed to set the <code>hasImage</code> state variable to <code>false</code> in the <code>Take photo</code> button's <code>onclick</code> logic like below:</p> <pre><code> Button( modifier = Modifier.align(alignment = Alignment.CenterHorizontally), ...
Camera image from FileProvider Uri only displaying for first time
android|android-camera|android-jetpack-compose|android-fileprovider|android-compose-image
1
54
1
72,842,469
72,842,469
0
true
2022-07-02T14:21:45.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Camera image from FileProvider Uri only displaying for first time<p>My Jetpack Compose camera app is targeting API Level 32 and is being tested on an Android...
72,917,225
How to completely copy a class instance in Python? copy.deepcopy doesn't work<p>Let's say I have a simple python class, such as</p> <pre class="lang-py prettyprint-override"><code>class A(): def __init__(self, b): self.b = pygame.image.load(b) </code></pre> <p>I want to make a function that copies everythin...
<p>You cannot <code>deepcopy</code> a <a href="https://www.pygame.org/docs/ref/surface.html" rel="nofollow noreferrer"><code>pygame.Surface</code></a> object, however a <code>pygame.Surface</code> has a <a href="https://www.pygame.org/docs/ref/surface.html#pygame.Surface.copy" rel="nofollow noreferrer"><code>copy</code...
How to completely copy a class instance in Python? copy.deepcopy doesn't work
python|pygame|copy
1
54
2
72,919,517
72,919,517
0
true
2022-07-08T21:35:40.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to completely copy a class instance in Python? copy.deepcopy doesn't work<p>Let's say I have a simple python class, such as</p> <pre class="lang-py prett...
72,856,713
Keep placeholder partially while typing in input type text<p>How can I create a input text in React with placeholder as DD-MM-YYYY, when I start typing the value, the placeholder should be removed partially. For eg if I type 02-MM-YYYY(in this case -MM-YYYY should be visible part of the placeholder)</p>
<p>The pattern you are describing is an <em>input mask</em>, so you might have more luck searching for this than placeholder.</p> <p>First of all, have you considered using <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date" rel="nofollow noreferrer"><code>&lt;input type=&quot;date&quot;&gt;<...
Keep placeholder partially while typing in input type text
javascript|html|css|reactjs|material-ui
1
54
1
72,856,960
72,856,960
0
true
2022-07-04T12:23:31.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Keep placeholder partially while typing in input type text<p>How can I create a input text in React with placeholder as DD-MM-YYYY, when I start typing the v...
72,849,091
Access to update the user/middleware<p>I have a simple put method to update the user and i added a middleware(Auth) to check the user is login or not but i have a problem that Any logged in user can update another users.</p> <p>I want each user to be able to <strong>update her/his profile only</strong></p> <pre><code>...
<p>What you can do is compare <code>req.params.id</code> (id passed in parameter) and <code>req.user._id</code> (id of the user who made this request) initially in the function. Your middleware auth function, after authenticating puts the user's data in req.user (user that made the request). If the two ids are equal th...
Access to update the user/middleware
node.js|middleware
0
54
1
72,849,598
72,849,598
0
true
2022-07-03T18:47:01.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Access to update the user/middleware<p>I have a simple put method to update the user and i added a middleware(Auth) to check the user is login or not but i ...
72,797,864
Linq query cant be translated<p>I have these queries:</p> <pre><code> weathers = query.Skip(args.Skip.Value).Take(args.Top.Value).ToList&lt;Weather&gt;(); List&lt;IGrouping&lt;int, Weather&gt;&gt; averages = context.Weathers .Where(w =&gt; weathers.Select(lw =&gt; lw.Date.DayOfYear).Contains(w.Date.DayOfYear...
<p>I solved my problem like this:</p> <pre class="lang-cs prettyprint-override"><code>var averages1 = context.Weathers .Where(w =&gt; weathers.Select(lw =&gt; lw.Date.DayOfYear).Contains(w.Date.DayOfYear)) .ToList(); averages = averages1.GroupBy(w =&gt; w.Date.DayOfYear).ToList(); </code></pre> <p>it...
Linq query cant be translated
c#|linq|entity-framework-core
0
54
1
72,798,102
72,798,102
0
true
2022-06-29T08:05:38.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Linq query cant be translated<p>I have these queries:</p> <pre><code> weathers = query.Skip(args.Skip.Value).Take(args.Top.Value).ToList&lt;Weather&gt;(); ...
72,886,193
Making a Convolutional Neural Network from a flow diagram<p>I am trying to make a neural network from a flow diagram. It is necessary for my analysis to translate this network into a code. Could you help me if I'm doing anything wrong. Here is the diagram. The author used binary classification but I'm doing multiple so...
<p><code>Concatenate()</code> is done by doing <code>Concatenate(**args)([layers])</code></p> <pre><code>keras.layers.concatenate([layer_1, layer_2,layer_3], axis=1) </code></pre> <p>should be (note the capitalization)</p> <pre><code>keras.layers.Concatenate(axis=1)([layer_1, layer_2,layer_3]) # axis=1 is default, so y...
Making a Convolutional Neural Network from a flow diagram
python|image-processing|keras|conv-neural-network|tf.keras
0
54
1
72,890,615
72,890,615
0
true
2022-07-06T15:25:27.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Making a Convolutional Neural Network from a flow diagram<p>I am trying to make a neural network from a flow diagram. It is necessary for my analysis to tran...
72,893,520
How to create List<string> from a string by replacing the character with range of numbers in better way<p>Input string: &quot;Hello_World_{0}&quot;</p> <p>I need to create a string list which is like Hello_World_1,Hello_World_2,Hello_World_3,etc... to the given input range.</p> <p>I have tried below approach, it's work...
<p>Select -&gt; Fetches each item from the range of 1 -10. Input string is replaced with each item and creates a list of strings. ToList -&gt; converts this into list.</p> <pre><code>string input = &quot;Hello_World_{0}&quot;; List&lt;string&gt; lst = Enumerable.Range(1, 10).Select(item =&gt; string.Format(input ,item)...
How to create List<string> from a string by replacing the character with range of numbers in better way
c#|list|linq|ienumerable
0
54
1
72,893,762
72,893,762
0
true
2022-07-07T07:00:47.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create List<string> from a string by replacing the character with range of numbers in better way<p>Input string: &quot;Hello_World_{0}&quot;</p> <p>I ...
72,950,815
I got RecursionError while load_model with a custom_objects in keras〔RecursionError: maximum recursion depth exceeded in __instancecheck__〕<ul> <li>I tried to train a <strong>model with a customized activation function</strong>, and <strong>saved a model for each epoch</strong>.</li> <li>I made a loop of 3500 iteration...
<p>According to the documents: <a href="https://keras.io/guides/serialization_and_saving/#savedmodel-format" rel="nofollow noreferrer">https://keras.io/guides/serialization_and_saving/#savedmodel-format</a></p> <ul> <li>Using <code>model.save(&quot;my_model&quot;)</code> enables Keras to restore both built-in layers <s...
I got RecursionError while load_model with a custom_objects in keras〔RecursionError: maximum recursion depth exceeded in __instancecheck__〕
python|tensorflow|machine-learning|keras
0
54
1
73,127,328
73,127,328
0
true
2022-07-12T10:27:18.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I got RecursionError while load_model with a custom_objects in keras〔RecursionError: maximum recursion depth exceeded in __instancecheck__〕<ul> <li>I tried t...
72,857,368
How to loop over a map and return value if it matches with a value from a list in Terraform<p>I have a map with variable names of a subnet and their ids eg:</p> <pre><code>subnet_id = { subnet-a=&quot;XXXX/subnet-a&quot;, subnet-b=&quot;XXXX/subnet-b&quot;, subnet-c=&quot;XXXX/sub...
<p>You can use a condition with <a href="https://www.terraform.io/language/functions/contains" rel="nofollow noreferrer"><code>contains</code></a> and <a href="https://www.terraform.io/language/functions/keys" rel="nofollow noreferrer"><code>keys</code></a> functions:</p> <pre><code>resource &quot;xxx&quot; &quot;xxx&q...
How to loop over a map and return value if it matches with a value from a list in Terraform
terraform|terraform-provider-azure
1
54
1
72,859,559
72,859,559
0
true
2022-07-04T13:14:45.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to loop over a map and return value if it matches with a value from a list in Terraform<p>I have a map with variable names of a subnet and their ids eg:<...
72,949,759
How can i solve this exercixe with String.prototype?<p><img src="https://i.stack.imgur.com/G1sOs.jpg" alt="enter image description here" /></p> <p>How can i create this to console log like this?</p> <pre><code>String.prototype.sheldonize = function () { return `knock ${this}` } 'Penny'.sheldonize(3) </code></pre> <p...
<p>Use the repeat method to establish a number of 'knocks' in the line and to establish how many times the line should repeat</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>St...
How can i solve this exercixe with String.prototype?
javascript
-2
54
3
72,949,876
72,949,876
0
true
2022-07-12T09:09:54.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i solve this exercixe with String.prototype?<p><img src="https://i.stack.imgur.com/G1sOs.jpg" alt="enter image description here" /></p> <p>How can i ...
72,784,505
Figure out which desktop is active at the moment from the Win service<p>I have a Win service running under the SYSTEM account. In case the user logs out from the system, the service should detect this and restart particular application on the logon desktop (and stop itself in case than user closing this application man...
<p>Services run in a different session than users do. Desktops (and other UI resources) belong to the Session they are created in, and cannot be accessed across session boundaries. So the service simply can't <em>directly</em> access a user's desktops at all.</p> <p>To access a given user's desktop, you will have to ru...
Figure out which desktop is active at the moment from the Win service
c++|windows|winapi|service|logoff
0
54
1
72,790,117
72,790,117
0
true
2022-06-28T10:06:29.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Figure out which desktop is active at the moment from the Win service<p>I have a Win service running under the SYSTEM account. In case the user logs out from...
72,833,618
How to plot a continuous rectangle with different colors<p>I have a data frame like this:</p> <pre><code>Start End Color 1 2 Blue 3 4 Red 5 6 Grey 7 8 Blue 9 10 Red 11 12 Grey </code></pre> <p>I want to create a rectangle along X-axis. For every row in ...
<p>You can use <code>Rectangle</code> from Matplotlib for each row in your dataframe and plot them together to make one, continuous rectangle.</p> <p>Here is how you could do it.</p> <pre><code>import matplotlib.pyplot as plt from matplotlib.patches import Rectangle import pandas as pd df = pd.DataFrame({'Start': [1, ...
How to plot a continuous rectangle with different colors
python|pandas|matplotlib
0
54
1
72,833,887
72,833,887
0
true
2022-07-01T19:00:09.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to plot a continuous rectangle with different colors<p>I have a data frame like this:</p> <pre><code>Start End Color 1 2 Blue 3 4 ...
72,844,275
How to combine two different models on the basis of user and send a single response- Django Rest Framework<p>I have two different models in my project. The <strong>StudentDetail</strong> model has an one-to-one connection with the student-user and the <strong>EnrollmentList</strong> has a foreign key connection with th...
<p>Define your serializer like that:</p> <pre><code>class AllReqs(serializers.ModelSerializer): student_name = serializers.CharField(source='student.user.name') class Meta: model = EnrollmentList fields = ['id','student_name', 'home_tuition'] </code></pre> <p>additional StudentDetail serial...
How to combine two different models on the basis of user and send a single response- Django Rest Framework
django|django-models|django-rest-framework|django-serializer
2
54
1
72,845,487
72,845,487
0
true
2022-07-03T06:08:58.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to combine two different models on the basis of user and send a single response- Django Rest Framework<p>I have two different models in my project. The <...
72,975,074
Cypress is returning an empty array when trying to log sheetnames of an excel file<p>I am currently trying to get the sheetnames of an excel file but Cypress is returning an empty array. Is there something I missed? I'll be using it to verify data on later steps.</p> <p>I'm using Cypress 9.6.0 with Cucumber. Below are ...
<p>I've always used the buffer version of <code>xlsx.read()</code>.</p> <p>From <a href="https://www.npmjs.com/package/xlsx" rel="nofollow noreferrer">xlsx package</a></p> <blockquote> <p>For Node ESM, the readFile helper is not enabled. Instead, fs.readFileSync should be used to read the file data as a Buffer for use ...
Cypress is returning an empty array when trying to log sheetnames of an excel file
excel|cypress
2
54
1
72,975,159
72,975,159
0
true
2022-07-14T04:05:03.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cypress is returning an empty array when trying to log sheetnames of an excel file<p>I am currently trying to get the sheetnames of an excel file but Cypress...
72,853,761
R - Boxplots from different datasets but same color legend<p>I have two datasets that represent the same, but one from simulated data and other from real data. I want to compare both with boxplots. So far, I did plot them as you can see in the image. The question is, I want each boxplot in a group to have a different c...
<p>Try this:</p> <pre class="lang-r prettyprint-override"><code>library(tidyverse) # Made-up data simulation &lt;- tribble( ~param, ~data, ~algo, &quot;Dt&quot;, 1, &quot;GBR&quot;, &quot;Dt&quot;, 1.3, &quot;GBR&quot;, &quot;Dt&quot;, 1.5, &quot;ETR&quot;, &quot;Dt&quot;, 1.7, &quot;ETR&quot;, &quot;Dv&qu...
R - Boxplots from different datasets but same color legend
r|ggplot2|dataset|legend|boxplot
0
54
1
72,854,572
72,854,572
0
true
2022-07-04T08:27:11.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R - Boxplots from different datasets but same color legend<p>I have two datasets that represent the same, but one from simulated data and other from real dat...
72,835,284
Django (proxy and abstract) add extra fields to child of a custom-user class (AbstrsactBaseUser)<p>I created a custom user class that is inherited from AbstractBaseUser, this class has a chil class. The problem is I can't add new fields to the children's classes because they had (class Meta: proxy = Ture). The followin...
<p>It worked, I deleted the class Meta for both proxy and abstract:</p> <p>user_model.py</p> <pre><code>class AppUser(AbstractBaseUser, PermissionsMixin): objects = MyUserManager() username = models.CharField(max_length=128) email = models.EmailField(max_length=64, unique=True) . . class ...
Django (proxy and abstract) add extra fields to child of a custom-user class (AbstrsactBaseUser)
python|django|django-models|django-database|django-custom-user
0
54
1
72,835,509
72,835,509
0
true
2022-07-01T23:00:18.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django (proxy and abstract) add extra fields to child of a custom-user class (AbstrsactBaseUser)<p>I created a custom user class that is inherited from Abstr...
72,929,553
How to create object that contains a list of object in a single form?<pre><code>public class Basket { public int Id { get; set; } public string Sharp { get; set; } public string Material { get; set; } public List&lt;Fruit&gt; Fruits { get; set; } } public class Fruit { public int Id { get; set; } ...
<blockquote> <p>It is possible to avoid using JavaScript in this case?</p> </blockquote> <p>Based on your scenario and current architecture what you need to do is, there should be a <code>table</code> where you would be adding your <code>fruit object</code> as it's a <code>List&lt;Fruit&gt; Fruit</code> kind of. As per...
How to create object that contains a list of object in a single form?
asp.net-mvc|asp.net-core|.net-core
0
54
1
72,947,622
72,947,622
0
true
2022-07-10T15:14:14.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create object that contains a list of object in a single form?<pre><code>public class Basket { public int Id { get; set; } public string Sharp...
72,880,297
Split a Boolean expression into all possibilities with PyParsing<p>I am creating a program which is filtering an excel document. In some Cells, there are combinations of codes separated by Boolean expressions. I need to split these into every possibility, and I am looking at achieving this via PyParsing.</p> <p>For exa...
<p>Here is a start, a parser that will process those inputs as &amp; and | operations:</p> <pre class="lang-py prettyprint-override"><code>import pyparsing as pp operand = pp.Word(pp.alphanums) bool_expr = pp.infix_notation(operand, [ ('&amp;', 2, pp.opAssoc.LEFT), ('|', 2, pp.opAssoc.LEFT), ]) tests = [sing...
Split a Boolean expression into all possibilities with PyParsing
python|boolean-logic|pyparsing
1
54
1
72,890,416
72,890,416
0
true
2022-07-06T08:35:36.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split a Boolean expression into all possibilities with PyParsing<p>I am creating a program which is filtering an excel document. In some Cells, there are com...
72,932,761
How to apply the css on all ID starting with<p>On my website I have an AJAX search form. The HTML code displays this ID:</p> <pre><code>id=&quot;edit-field-geolocation-proximity-center-geocoder--Bq5Bx8zXA1A&quot; </code></pre> <p>I want to apply a style to it. My problem is that the code at the end of <code>Bq5Bx8zXA1A...
<p>Welcome to Stack Overflow! I can help with that. One way to achieve what you are looking for in pure CSS is with an attribute prefix selector (which uses a form of regular expressions). In your case the following would likely do the trick:</p> <pre class="lang-css prettyprint-override"><code>[id^=&quot;edit-field-ge...
How to apply the css on all ID starting with
javascript|html|css|ajax
0
54
1
72,932,790
72,932,790
0
true
2022-07-11T00:34:09.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to apply the css on all ID starting with<p>On my website I have an AJAX search form. The HTML code displays this ID:</p> <pre><code>id=&quot;edit-field-g...
73,018,971
Follow tree structure of sql database with python<p>I have a database with structure like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: center;">Mother</th> <th style="text-align: center;">Child1</th> <th style="text-align: center;">Child2</th> <th style="text-ali...
<p>You could extract the contents of your database as a flat table like this, then cycle over the records to build a <code>graph</code> in a module like <a href="https://networkx.org/" rel="nofollow noreferrer">NetworkX</a></p> <p>In the below, I setup a pandas dataframe to host the data, but for you, you'd need to dea...
Follow tree structure of sql database with python
python|mysql|database
0
54
2
73,019,571
73,019,571
0
true
2022-07-18T07:55:11.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Follow tree structure of sql database with python<p>I have a database with structure like this:</p> <div class="s-table-container"> <table class="s-table"> <...
72,921,298
mognoDB calculate average over a date range but my date is in ISO format and I need to match a day irrespective of exact time<p><strong>Goal ---&gt;</strong> I want to calculate the daily average and also the average for a specific date range.</p> <p>My date is in ISO format, so when I do the following aggregation it m...
<p>To elaborate on why your original query returns an average of 20 rather than an average of 30 like you're expecting, It's because the average of those three numbers <em>IS</em> 20.</p> <p>But I'm assuming the behaviour you want is to sum the litres for each day and then calculate the average.</p> <p><strike>Note tha...
mognoDB calculate average over a date range but my date is in ISO format and I need to match a day irrespective of exact time
node.js|database|mongodb|mongoose|aggregation-framework
0
54
1
72,921,635
72,921,635
0
true
2022-07-09T12:18:49.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: mognoDB calculate average over a date range but my date is in ISO format and I need to match a day irrespective of exact time<p><strong>Goal ---&gt;</strong>...
72,952,426
Converting cells in a dataframe to binary values if they contain a certain string<p>I have a dataframe with a column called <code>player_traits</code>, which contains zero, one or more traits for each player, e.g. 'Injury Prone', 'Long Shot Taker', 'Power Header' etc.</p> <p>I want to change this column so that if a ce...
<p>This will cycle through all of your different traits and assign a binary value for them:</p> <pre class="lang-py prettyprint-override"><code>###### Recreate OP's data######## import pandas as pd traits = ['Injury Prone', 'Long Shot Taker', 'Power Header'] players = [&quot;Player1&quot;, &quot;Player2&quot;] player_t...
Converting cells in a dataframe to binary values if they contain a certain string
python|pandas|dataframe
0
54
2
72,952,642
72,952,642
0
true
2022-07-12T12:35:19.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Converting cells in a dataframe to binary values if they contain a certain string<p>I have a dataframe with a column called <code>player_traits</code>, which...
72,925,378
Returning positive values in R using only vectorization and indexes<p>I have created a data frame which has string and integers. The integers which are positive and negative. I have to change all the ints to be positive without using for/if loops but by only using vectorization and indexing. I have created one with a f...
<p>You can use</p> <pre><code>df[] &lt;- lapply(df , \(x) if(is.numeric(x)) abs(x)*10 else x) </code></pre> <ul> <li>Output</li> </ul> <pre><code> x y z 1 a 40 30 2 b 20 40 3 c 0 50 4 d 20 60 5 e 40 80 </code></pre>
Returning positive values in R using only vectorization and indexes
r|indexing|vectorization
0
54
3
72,925,430
72,925,430
0
true
2022-07-10T00:02:17.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Returning positive values in R using only vectorization and indexes<p>I have created a data frame which has string and integers. The integers which are posit...
73,030,931
How to efficiently check if read line from Buffered reader contains a string from an enum list<p>I am a computer science university student working on my first 'big' project outside of class. I'm attempting to read through large text files (2,000 - 3,000 lines of text), line by line with buffered reader. When a keyword...
<p>I cannot improve over the core of your code: the looping on <code>values()</code> of the enum, performing a <code>String#contains</code> for each enum object’s string, and using a <code>switch</code>. I can make a few minor suggestions.</p> <p>I suggest you <em>not</em> override the <code>toString</code> method on ...
How to efficiently check if read line from Buffered reader contains a string from an enum list
java|string|bufferedreader
0
54
1
73,031,864
73,031,864
0
true
2022-07-19T03:53:16.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to efficiently check if read line from Buffered reader contains a string from an enum list<p>I am a computer science university student working on my fir...
73,000,416
Chaining commands together in .bashrc<p>I'm trying to chain two commands together in a function or alias. What I want to do is ssh into a proxy box, and then into another box from there. So something like:</p> <pre><code>ssh -J mylogin@host mylogin@host2 </code></pre> <p>So far i've tried:</p> <pre><code>function doot ...
<p>Neither of your attempted functions or alias do <code>ssh -J mylogin@host mylogin@host2</code>. Why?</p> <p>The use of <code>&amp;&amp;</code> and <code>';'</code> separate <em>commands</em>. In your case that would make two separate commands out of <code>ssh -J mylogin@host</code> and <code>mylogin@&quot;$1&quot;</...
Chaining commands together in .bashrc
bash
0
54
2
73,000,720
73,000,720
0
true
2022-07-15T23:19:58.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Chaining commands together in .bashrc<p>I'm trying to chain two commands together in a function or alias. What I want to do is ssh into a proxy box, and then...
72,997,846
Retrieve JSON values via Python<p>I want to get &quot;Ilan No&quot; from the following JSON object.</p> <p>With Javascript I can get it with these commands:</p> <pre><code>var jsons= document.getElementById(&quot;gaPageViewTrackingJson&quot;) var housePrice = $(jsons).data('json')['customVars'][11].value </code></pre> ...
<p>Extract the attribute value and use <code>json.loads()</code> to convert the string to JSON / dict:</p> <pre><code>json.loads(soup.find(&quot;div&quot;, {&quot;id&quot;: &quot;gaPageViewTrackingJson&quot;}).get('data-json')) </code></pre> <h5>Example</h5> <pre><code>from bs4 import BeautifulSoup import json html='''...
Retrieve JSON values via Python
python|json|web-scraping|beautifulsoup
1
54
1
72,997,894
72,997,894
0
true
2022-07-15T17:40:25.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Retrieve JSON values via Python<p>I want to get &quot;Ilan No&quot; from the following JSON object.</p> <p>With Javascript I can get it with these commands:<...
72,830,999
Chartjs unexpected behaviour of updates given double Slider<p>The unexpected behaviour is due to how the chart (ChartJs) is updating due to the values of the input&lt;'input-left'&gt; and input&lt;'input-right'&gt; which is done by the 'UpdateSlider' function. When I move the input&lt;'input-right'&gt; to the left, the...
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var inputLeft = document.getElementById("input-left"); var inputRight = document.getElementById("input-right"); var thumbLeft = doc...
Chartjs unexpected behaviour of updates given double Slider
javascript|html|css|chart.js
0
54
1
72,834,675
72,834,675
0
true
2022-07-01T14:46:44.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Chartjs unexpected behaviour of updates given double Slider<p>The unexpected behaviour is due to how the chart (ChartJs) is updating due to the values of the...
72,796,864
How to retrieve data from field with multiple="true" in AEM's WorkflowProcess?<p>Sorry if this is a basic question, as I am quite new to AEM.</p> <p>I have a <code>cq dialog</code> allowing multiple tags to be entered.</p> <pre><code>&lt;tags cq:showOnCreate=&quot;{Boolean}true&quot; jcr:primaryType=&quot;nt:unstructur...
<p>After looking into the source implementation, it is using an Array, not a List. so here is how to retrieve the passed in data.</p> <pre><code>Node node = (Node) session.getItem(path); String[] cars = {}; String[] tags = processArguments.get(&quot;TAGS&quot;,cars); node.setProperty(&quot;cq:tags&quot;, tags); </cod...
How to retrieve data from field with multiple="true" in AEM's WorkflowProcess?
dialog|adobe|workflow|aem|aem-6
0
54
1
72,808,107
72,808,107
0
true
2022-06-29T06:43:13.293Z
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 field with multiple="true" in AEM's WorkflowProcess?<p>Sorry if this is a basic question, as I am quite new to AEM.</p> <p>I have a...
72,869,161
Count records based on a repeating field while returning other values<p>I have the following query</p> <pre><code>SELECT DISTINCT a.uid AS uid, a.creation_date as creation_date, a.activity_date as activity_date, feature1 as feature1, feature2 as feature2, feature3 as feature3, FROM ( table a INNER JOIN...
<p>Since an analytic(window) function is evaluated after <strong>JOIN</strong> and <strong>GROUP BY</strong> clause, you can simply add <strong>COUNT(*) OVER (PARTITION BY uid) AS uid_count</strong> in the middle of <strong>SELECT</strong> list.</p> <pre class="lang-sql prettyprint-override"><code>SELECT DISTINCT a.u...
Count records based on a repeating field while returning other values
sql|google-bigquery
-1
54
2
72,869,679
72,869,679
0
true
2022-07-05T12:05:45.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Count records based on a repeating field while returning other values<p>I have the following query</p> <pre><code>SELECT DISTINCT a.uid AS uid, a.creatio...
73,021,694
Counting values in data frame rows against another df to see how many values are higher<p>I have two data frames</p> <ul> <li>df2022fl One is a list of 24 rows</li> <li>df One is one row of values</li> </ul> <p>1759 columns in each df.</p> <p>I want to reference every row in dataframe with 24 rows too count how many co...
<p>Compare both the dataframe using</p> <pre><code>df2022fl.ge(df.iloc[0]).sum() </code></pre> <p>This gives us the number of values in df2022fl which is greater than the value in df</p> <p><strong>Output :</strong></p> <pre><code>id 24 table_position 20 performance_r...
Counting values in data frame rows against another df to see how many values are higher
python|pandas|dataframe
1
54
1
73,023,679
73,023,679
0
true
2022-07-18T11:35:11.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Counting values in data frame rows against another df to see how many values are higher<p>I have two data frames</p> <ul> <li>df2022fl One is a list of 24 ro...
72,895,117
Check if a value is present in the row and extract the name of column - Pandas<p>I have a dataframe as follows:</p> <pre><code>df = A col_1 col_45 col_9 col_10 1.0 4.0 45.0 NaN 34.9 NaN 2.0 4.0 NaN NaN 23.4 45.6 3.0 49....
<p>For column names, you could use a <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.stack.html" rel="nofollow noreferrer"><code>stack</code></a> (to get rid of all NaN automatically), then a <a href="https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.DataFrameGroupBy.aggregate.html...
Check if a value is present in the row and extract the name of column - Pandas
python|pandas|dataframe
0
54
2
72,895,159
72,895,159
0
true
2022-07-07T09:08:19.473Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if a value is present in the row and extract the name of column - Pandas<p>I have a dataframe as follows:</p> <pre><code>df = A col_...
72,997,348
React/Firebase. How can i filter some products by categories using firebase?<p>How can i filter some products by categories using firebase? <a href="https://codesandbox.io/s/headless-flower-nqq6cr" rel="nofollow noreferrer">This is a fragment of my code</a></p>
<p>Not sure if you have a correct db.json file, i had to flatMap the result but here is a working code. I used require to load you json file and left <code>const [products, setProducts] = useState([]);</code> just in case. Also i switched <code>categories</code> to <code>useMemo</code> so this variable will not update ...
React/Firebase. How can i filter some products by categories using firebase?
reactjs|firebase|filter
0
54
1
73,003,823
73,003,823
0
true
2022-07-15T16:53:39.620Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React/Firebase. How can i filter some products by categories using firebase?<p>How can i filter some products by categories using firebase? <a href="https://...
72,777,811
How to hide button after slide?<p>I have a slider with &quot;next&quot; and &quot;previous&quot; buttons, &quot;previous&quot; button is hidden I want to hide &quot;next&quot; button when last slide is shown and show &quot;previous&quot; button after first transform of the slide. Whant to realyse it in java script, ca...
<p>You could add a function which updates the visibility after every slide-change.</p> <pre><code>let next = document.querySelector('.btn_next_slide'), prev = document.querySelector('.btn_prev_slide'), line = document.querySelector('.product_slider_line'), slides = document.getElementsByClassName('product_s...
How to hide button after slide?
javascript|html|css
0
54
2
72,783,620
72,783,620
0
true
2022-06-27T20:12:22.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to hide button after slide?<p>I have a slider with &quot;next&quot; and &quot;previous&quot; buttons, &quot;previous&quot; button is hidden I want to hi...
72,931,862
How do I find a certain subset of the binomial coefficient<p>Let's suppose we have an array with length n. We'll call this array</p> <pre><code>keys[n] = {...} </code></pre> <p>What I am looking for is a certain array of subsets given by &quot;n choose 3&quot;. We'll call this</p> <pre><code>combination[?][3] = {...} <...
<p>Here is the original solution to a single cover (oops).</p> <p>Some solutions are more likely than others, but it is still pretty random. It is fast if not a lot of backtracking happens. So 13, for example, runs fast. But 8 runs slowly because the shortest solution has 11 triples, and it has to fail at 10 over an...
How do I find a certain subset of the binomial coefficient
arrays|algorithm|combinations
2
54
1
72,944,299
72,944,299
0
true
2022-07-10T21:00:14.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I find a certain subset of the binomial coefficient<p>Let's suppose we have an array with length n. We'll call this array</p> <pre><code>keys[n] = {.....
72,933,781
How can i make to reenter my input fields and that my form do not submits?<p>I have a form which shows an alert with a message when the two password input fields do not match but if they do match it shows a confirmation message before creating the user. The issue im having is that even if my confirmation function retur...
<p>So I am guessing you wrapped the html provided inside a form, which is causing the submission, since input is of type <code>submit</code>, I removed that and moved it to the <code>onSubmit</code> event and called the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault" rel="nofollow norefe...
How can i make to reenter my input fields and that my form do not submits?
javascript|html
1
54
2
72,933,825
72,933,825
0
true
2022-07-11T04:38:40.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i make to reenter my input fields and that my form do not submits?<p>I have a form which shows an alert with a message when the two password input fi...
73,011,139
How to Modify FlutterFire UI Accent Colour<p>I've been struggling with attempting to modify the accent colour in FlutterFire UI.</p> <p>Namely, I'd like to change the blue accent colour <a href="https://user-images.githubusercontent.com/64292655/179394275-3a765c05-ced2-45b8-b5ea-22d56e92e42e.png" rel="nofollow noreferr...
<p>I ended up finding the answer to my own question. Turns out the theming is part of the colour scheme property, and I ended up defining the following:</p> <pre class="lang-dart prettyprint-override"><code>colorScheme: ColorScheme.fromSwatch().copyWith( primary: Colors.deepPurpleAccent ) </code></pre> <p>This set ...
How to Modify FlutterFire UI Accent Colour
flutter|dart|flutter-theme
0
54
3
73,011,379
73,011,379
0
true
2022-07-17T10:50:00.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Modify FlutterFire UI Accent Colour<p>I've been struggling with attempting to modify the accent colour in FlutterFire UI.</p> <p>Namely, I'd like to c...
72,912,988
Making multiple requests with Alamofire depending on array of chunks<p>I'm struggling with making badge requests with <code>Alamofire</code> and I need help.</p> <p>I have some ids and with them I need to struct parameters (Dictionary String) and send a <strong>GET</strong> request with <code>Alamofire</code>. Everythi...
<p>Thanks to <code>Larme's</code> comment I was able to find my mistake. When making request to API I was passing the decoded response to the <strong>completion closure</strong>. To fix this I had to declare an array of model <code>let responses:[SomeModel] = []</code> and append the decoded result to it. I used <code>...
Making multiple requests with Alamofire depending on array of chunks
swift|alamofire
0
54
1
72,936,476
72,936,476
0
true
2022-07-08T14:34:00.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Making multiple requests with Alamofire depending on array of chunks<p>I'm struggling with making badge requests with <code>Alamofire</code> and I need help....
72,922,172
Can´t join a list the way I would like<p>In this code:</p> <pre><code>lista = [] número = int(input(&quot;Introduce números que se añadirán a una lista, cuando termines escribe un 0: &quot;)) while número != 0: lista.append(número) número = int(input(&quot;Introduce otro número: &quot;)) x = &quot;&lt;&quot;.jo...
<p><code>str</code> converts the <code>list</code> into its string representation. Use <code>map</code> to convert each number in the <code>list</code> to <code>str</code>:</p> <pre><code>lista = [1,2,3,4,9,5] print(&quot;&lt;&quot;.join(map(str, sorted(lista)))) &gt;&gt;&gt; 1&lt;2&lt;3&lt;4&lt;5&lt;9 </code></pre>
Can´t join a list the way I would like
python
-5
54
1
72,922,211
72,922,211
0
true
2022-07-09T14:27:02.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can´t join a list the way I would like<p>In this code:</p> <pre><code>lista = [] número = int(input(&quot;Introduce números que se añadirán a una lista, cuan...
73,028,353
How do you ORDER BY a column when the CASE name is the same name as the column<p>I'm fairly new to SQL and am currently learning through Codecademy.</p> <p>I'm doing a CASE statement query but I wanted to do a little extra by adding an ORDER BY.</p> <p>The question is:</p> <blockquote> <p>Use a CASE statement to change...
<p>Repeat the CASE expression in the ORDER BY clause, but with no name. I know it seems like a lot of code and bad DRY, but it's really just one copy/paste operation and there are a number of places in SQL where we unfortunately have to break the &quot;don't repeat yourself&quot; rule.</p> <p>Or maybe I misunderstood, ...
How do you ORDER BY a column when the CASE name is the same name as the column
sql
-1
54
1
73,028,622
73,028,622
0
true
2022-07-18T20:39:04.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you ORDER BY a column when the CASE name is the same name as the column<p>I'm fairly new to SQL and am currently learning through Codecademy.</p> <p>I...