qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,578,696
<p>I have a data file that I'm cleaning, and the source uses '--' to indicate missing data. I ultimately need to have this data field be either an integer or float. But I am not sure how to remove the string.</p> <p>I specified the types in a type_dict statement before importing the csv file. 6 of my 8 variables corre...
[ { "answer_id": 74578664, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "COALESCE() SELECT COALESCE(column1, column2) AS column1,\n column_a\nFROM yourTable;\n" }, { "...
2022/11/25
[ "https://Stackoverflow.com/questions/74578696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20361953/" ]
74,578,711
<p>so I got this dataframe showing the leading causes of death for each year in Chile.</p> <p><a href="https://i.stack.imgur.com/2wl7d.png" rel="nofollow noreferrer">Original Dataframe</a></p> <p>What I want to do is to make something like this:</p> <p><a href="https://i.stack.imgur.com/yEG6F.png" rel="nofollow norefer...
[ { "answer_id": 74578664, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "COALESCE() SELECT COALESCE(column1, column2) AS column1,\n column_a\nFROM yourTable;\n" }, { "...
2022/11/25
[ "https://Stackoverflow.com/questions/74578711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20209364/" ]
74,578,725
<p>I have a program that involves a menu from which the user can select various options. The selection is handled by a <code>scanf(&quot;%d&quot;)</code>.</p> <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt; int menu(); int main { int sel; do { sel = menu (); } while (s...
[ { "answer_id": 74578664, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "COALESCE() SELECT COALESCE(column1, column2) AS column1,\n column_a\nFROM yourTable;\n" }, { "...
2022/11/25
[ "https://Stackoverflow.com/questions/74578725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20603095/" ]
74,578,738
<p>Im struggling to get an example to stick both vertically and horizontally.</p> <p>So I am able to get the table header to stick. Im trying to get the Header and Footer to stick and not move when scrolling horizontally</p> <p><a href="https://codepen.io/blessenm/pen/xxzjNEK?editors=1100" rel="nofollow noreferrer">Her...
[ { "answer_id": 74578664, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "COALESCE() SELECT COALESCE(column1, column2) AS column1,\n column_a\nFROM yourTable;\n" }, { "...
2022/11/25
[ "https://Stackoverflow.com/questions/74578738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/548568/" ]
74,578,751
<p>I am trying to make an Actix API with Diesel, and in making the first endpoint (/books/create), I am having trouble trying to get the inserted value back into my code.</p> <p>This is my insert:</p> <pre><code>use diesel::prelude::*; use crate::models::Book; use crate::schema::books; use crate::db; pub fn create_bo...
[ { "answer_id": 74580192, "author": "Behrouz Roustaeifarsi", "author_id": 20604548, "author_profile": "https://Stackoverflow.com/users/20604548", "pm_score": -1, "selected": false, "text": "#[derive(Queryable, Serialize, Deserialize)]\npub struct Book {\n pub id: i32,\n pub title: Strin...
2022/11/26
[ "https://Stackoverflow.com/questions/74578751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2903610/" ]
74,578,794
<p>How to retrieve the identifier of an existing customer via his email address or create the customer if he does not hesitate when creating a payment with API Stripe?</p> <p>I searched in the Stripe documentation but couldn't find the answer.</p> <pre><code>require &quot;Stripe/vendor/autoload.php&quot;; // This is y...
[ { "answer_id": 74583739, "author": "Quintoche", "author_id": 18211119, "author_profile": "https://Stackoverflow.com/users/18211119", "pm_score": 1, "selected": false, "text": "$query->data[0]->id\n if(sizeof($query->data) !== 0)\n{\n for($i=0;$i<sizeof($query->data);$i++)\n {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74578794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785515/" ]
74,578,822
<p>I have the following example data that I'm trying to sort by multiple criteria:</p> <ol> <li><code>details.length</code> (from smaller to bigger)</li> <li><code>details.type</code> (alphabetically : Claimant, FellowPassenger)</li> </ol> <p>If I sort it by <code>details.length</code> it seems to work but <code>detail...
[ { "answer_id": 74583739, "author": "Quintoche", "author_id": 18211119, "author_profile": "https://Stackoverflow.com/users/18211119", "pm_score": 1, "selected": false, "text": "$query->data[0]->id\n if(sizeof($query->data) !== 0)\n{\n for($i=0;$i<sizeof($query->data);$i++)\n {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74578822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11886740/" ]
74,578,826
<p>I'm currently working with using some kind of recursion to go down an AST.</p> <p>I'm currently trying to recurse/iterate through this tree, and find all of the nodes that are of type &quot;em&quot;, to replace the content with &quot;this is italics&quot; (basically just to try to make sure I have the right AST).</p...
[ { "answer_id": 74579199, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": " if (node.content && Array.isArray(node.content)) {\n node.content = node.content.map(traverse)\n }\n" }, ...
2022/11/26
[ "https://Stackoverflow.com/questions/74578826", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20044158/" ]
74,578,827
<p>I need help formatting a legend in ggplot2. I have approximatley 45 legened items. When I display the legend, my graph shrinks becuase the graph and legend items don't fit. I'm wondering how I can get all my legend items to display, but also have a reasonably sized graph. Is there a way to make my longer legend item...
[ { "answer_id": 74579199, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": " if (node.content && Array.isArray(node.content)) {\n node.content = node.content.map(traverse)\n }\n" }, ...
2022/11/26
[ "https://Stackoverflow.com/questions/74578827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17371915/" ]
74,578,900
<p>We have an <strong>array</strong> with the name; <strong>chess_players</strong>, in each element of the array there is an <strong>object</strong> with two properties: <strong>the name of a chess player</strong> and the <strong>points</strong> he has obtained. In this activity, a function must be created (which allow...
[ { "answer_id": 74579199, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": " if (node.content && Array.isArray(node.content)) {\n node.content = node.content.map(traverse)\n }\n" }, ...
2022/11/26
[ "https://Stackoverflow.com/questions/74578900", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20491974/" ]
74,578,914
<p>In Julia, I would like to generate a matrix with exactly one nonzero entry in each row and column, where each of these <strong>nonzero entries has modulus one</strong>. Is there any way to this in Julia?</p>
[ { "answer_id": 74579199, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": " if (node.content && Array.isArray(node.content)) {\n node.content = node.content.map(traverse)\n }\n" }, ...
2022/11/26
[ "https://Stackoverflow.com/questions/74578914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19340302/" ]
74,578,923
<p>I know most people say to just use prepared statements, but I have a site with many existent queries and I need to sanitize the variables by the <code>mysqli_real_escape_string()</code> function method.</p> <p>Also the php manual of <code>mysqli_query()</code> says <code>mysqli_real_escape_string()</code> is an acce...
[ { "answer_id": 74579199, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": " if (node.content && Array.isArray(node.content)) {\n node.content = node.content.map(traverse)\n }\n" }, ...
2022/11/26
[ "https://Stackoverflow.com/questions/74578923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/928532/" ]
74,578,953
<p>I'm pretty new to C, and I know that static functions can only be used within the same object file. Something that still confuses me though, is how if I hover over a call to printf in my IDE it tells me that printf is a static function, when I can perfectly use printf in multiple object files without any problems? W...
[ { "answer_id": 74632430, "author": "zwol", "author_id": 388520, "author_profile": "https://Stackoverflow.com/users/388520", "pm_score": 3, "selected": true, "text": "static inline static inline stdio.h stdio.h &printf &printf printf(\"%s %d %p\", string, integer, pointer);\n fprintf(stdo...
2022/11/26
[ "https://Stackoverflow.com/questions/74578953", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19380261/" ]
74,578,957
<p>I have recently started to practice using LinkedList in Python and encountered the problem below. Both code seems like they are doing the same thing but 1 got the error while the other did not. Can someone let me know why this is the case?:</p> <p>The <code>ListNode</code> class is defined as:</p> <pre><code>#Python...
[ { "answer_id": 74632430, "author": "zwol", "author_id": 388520, "author_profile": "https://Stackoverflow.com/users/388520", "pm_score": 3, "selected": true, "text": "static inline static inline stdio.h stdio.h &printf &printf printf(\"%s %d %p\", string, integer, pointer);\n fprintf(stdo...
2022/11/26
[ "https://Stackoverflow.com/questions/74578957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13655702/" ]
74,578,963
<p>Take this class:</p> <pre><code>class Foo { public: using MyType = Foo; MyType* m = nullptr; //ok MyType* functor() { //ok return nullptr; } MyType() = default; //error ~MyType() = default; //error }; </code></pre> <p>Why can you use alias names for members, but not for constructors or des...
[ { "answer_id": 74579020, "author": "Remy Lebeau", "author_id": 65863, "author_profile": "https://Stackoverflow.com/users/65863", "pm_score": 3, "selected": true, "text": "m functor()" }, { "answer_id": 74579090, "author": "bitmask", "author_id": 430766, "author_profil...
2022/11/26
[ "https://Stackoverflow.com/questions/74578963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19333949/" ]
74,578,980
<p>I am trying to make a profile settings page where people can chane name email and password and only the password gets updated but all the rest remain the same. I cant understand why below i have the code Note i use breeze</p> <p>settings.blade.php</p> <pre><code>&lt;x-app-layout&gt; &lt;x-slot name=&quot;header&...
[ { "answer_id": 74579020, "author": "Remy Lebeau", "author_id": 65863, "author_profile": "https://Stackoverflow.com/users/65863", "pm_score": 3, "selected": true, "text": "m functor()" }, { "answer_id": 74579090, "author": "bitmask", "author_id": 430766, "author_profil...
2022/11/26
[ "https://Stackoverflow.com/questions/74578980", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13067971/" ]
74,578,995
<p>The goal is to start a Task, that loads some resources from the disk, on the UI thread, and then when it is finished to check if it threw an Exception without blocking the UI thread, and if it did, to rethrow the exception on the UI thread so the program ends and I get a stack trace.</p> <p>I have been able to figur...
[ { "answer_id": 74579028, "author": "Gabriel Luci", "author_id": 1202807, "author_profile": "https://Stackoverflow.com/users/1202807", "pm_score": 2, "selected": false, "text": "private TitlePage() {}\n\npublic static async Task<TitlePage> CreateTitlePage()\n{\n var titlePage = new Tit...
2022/11/26
[ "https://Stackoverflow.com/questions/74578995", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13264143/" ]
74,578,996
<p>Im starting to play around with the QUERY function on Google Sheets and I have 3 Columns with data from different users. Just as follows.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Users</th> <th>Amount</th> <th>Type</th> </tr> </thead> <tbody> <tr> <td>User 1</td> <td>4</td> <td>Cr...
[ { "answer_id": 74579028, "author": "Gabriel Luci", "author_id": 1202807, "author_profile": "https://Stackoverflow.com/users/1202807", "pm_score": 2, "selected": false, "text": "private TitlePage() {}\n\npublic static async Task<TitlePage> CreateTitlePage()\n{\n var titlePage = new Tit...
2022/11/26
[ "https://Stackoverflow.com/questions/74578996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20603396/" ]
74,579,046
<p>I hope you all have a great day. I am coding my own personal website and I have a section called to contact me. The problem I have with this section is that I am trying to send my client email to my email and when I am trying to send their message to my server through Graphql I get this error</p> <pre><code>[ { ...
[ { "answer_id": 74580242, "author": "Farbod Shabani", "author_id": 14712252, "author_profile": "https://Stackoverflow.com/users/14712252", "pm_score": 0, "selected": false, "text": "JSON.stringify() const emailMutationQuery = `\n mutation{\n sendEmail(EmailInput: {name: \"${send...
2022/11/26
[ "https://Stackoverflow.com/questions/74579046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14712252/" ]
74,579,048
<p>I am trying to display multiple checkbox values in a separate DIV to show the results of the checkboxes to the user. But I also want to remove the value if the user de-selects the checkbox. This is the code I have so far but can only display/hide one value at a time. For example, if I click checkboxes a, b, and c, i...
[ { "answer_id": 74579080, "author": "Samuel Schlemper", "author_id": 19848531, "author_profile": "https://Stackoverflow.com/users/19848531", "pm_score": 0, "selected": false, "text": "var checked = []\n\nfunction selectAcc(cb) {\n if(cb.checked){\n checked.push(cb.value)\n } ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16513652/" ]
74,579,088
<pre><code>print(&quot;test&quot;) m = input(&quot;Name: &quot;) print(m) </code></pre> <p>I was getting ready to start programing. I opened cmd and ran my program and it opened a new cmd and printed out my code. Why is python opening a new cmd window to run my script unstead of using the cmd that was opened?</p> <p>Al...
[ { "answer_id": 74579080, "author": "Samuel Schlemper", "author_id": 19848531, "author_profile": "https://Stackoverflow.com/users/19848531", "pm_score": 0, "selected": false, "text": "var checked = []\n\nfunction selectAcc(cb) {\n if(cb.checked){\n checked.push(cb.value)\n } ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20551179/" ]
74,579,119
<p>I have a list as follows:</p> <pre><code>['1', '5', '6', '7', '10'] </code></pre> <p>I want to find the missing element between two elements in the above list. For example, I want to get the missing elements between <code>'1'</code> and <code>'5'</code>, i.e. <code>'2'</code>, <code>'3'</code> and <code>'4'</code>. ...
[ { "answer_id": 74579139, "author": "wim", "author_id": 674039, "author_profile": "https://Stackoverflow.com/users/674039", "pm_score": 2, "selected": false, "text": "L = ['1', '5', '6', '7', '10']\nresult = []\nfor left, right in zip(L, L[1:]):\n left, right = int(left), int(right)\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16124033/" ]
74,579,137
<p>I have a large table something like this below. I want to filter the table by Office and Month. I was thinking to do this I would some how use .indexOf() twice. I tried to do this in different ways and did not figure it out.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Office</th> <th...
[ { "answer_id": 74579139, "author": "wim", "author_id": 674039, "author_profile": "https://Stackoverflow.com/users/674039", "pm_score": 2, "selected": false, "text": "L = ['1', '5', '6', '7', '10']\nresult = []\nfor left, right in zip(L, L[1:]):\n left, right = int(left), int(right)\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5091720/" ]
74,579,143
<p>I have two columns in Google Sheets, A,B with a long list of words. Something like this:</p> <pre><code>A: Red, yellow, blue C: Extra </code></pre> <p>​ I also have an empty cell, D1, to type in. And E2 to show the result.</p> <p>What I need is a formula that will return TRUE in E2 whenever any of the values from c...
[ { "answer_id": 74579139, "author": "wim", "author_id": 674039, "author_profile": "https://Stackoverflow.com/users/674039", "pm_score": 2, "selected": false, "text": "L = ['1', '5', '6', '7', '10']\nresult = []\nfor left, right in zip(L, L[1:]):\n left, right = int(left), int(right)\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19899375/" ]
74,579,151
<p>In the Next.js I'm working,you can get a post in the route <code>/posts/[id].tsx</code> ,I am using react-query to make the get request. I get the postId with</p> <blockquote> <p>const {id}=router.query</p> </blockquote> <p>But everytime I enter the page it sends the request to the server with <code>undefined</code>...
[ { "answer_id": 74579288, "author": "Edtimer", "author_id": 10017656, "author_profile": "https://Stackoverflow.com/users/10017656", "pm_score": 1, "selected": false, "text": "//[newsId].tsx\nimport {useRouter} from 'next/router\n\nfunction DetailPage(){\nconst router = useRouter();\n\n//g...
2022/11/26
[ "https://Stackoverflow.com/questions/74579151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19739351/" ]
74,579,152
<p>my url query string is <code>http://website.local/residences/?status=status2&amp;type=apartments&amp;price=null</code></p> <p>When I echo $_GET['status'] from my page template I get 'status2', which is obviously correct. But I try to get that value from my functions.php it returns false. I'm using ajax to load in mo...
[ { "answer_id": 74579613, "author": "Vijay Hardaha", "author_id": 11848895, "author_profile": "https://Stackoverflow.com/users/11848895", "pm_score": 2, "selected": false, "text": "$_GET http://website.local/residences/?status=status2&type=apartments&price=null http://website.local/wp-adm...
2022/11/26
[ "https://Stackoverflow.com/questions/74579152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8529928/" ]
74,579,167
<p>I have a pandas dataframe. In column I have list. But, some rows NaN. I want to find length of each list, in case it is NaN, I want 0 as length.</p> <pre><code>My_column [1, 2]-&gt; should return 2 [] -&gt; should return 0 NaN -&gt; should return 0 </code></pre> <p>Any help?</p> <p>Thank you.</p>
[ { "answer_id": 74579204, "author": "Marat", "author_id": 271641, "author_profile": "https://Stackoverflow.com/users/271641", "pm_score": 2, "selected": false, "text": "df['column'].str.len().fillna(0).astype(int)\n" }, { "answer_id": 74581261, "author": "ScottC", "author_...
2022/11/26
[ "https://Stackoverflow.com/questions/74579167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/626664/" ]
74,579,269
<p>Edit: I shall thank Magoo for the detailed answer. I edited my batch file according to Magoo's answer. Here is the new code:</p> <pre><code>@echo off mode 62,22 :Begin choice /c 12345 /M &quot;Insert a number (min. 1 - max. 5): &quot; set &quot;CommandVar0=%errorlevel%&quot; choice /c 12345 /M &quot;Please confirm t...
[ { "answer_id": 74579677, "author": "DSalomon", "author_id": 10402876, "author_profile": "https://Stackoverflow.com/users/10402876", "pm_score": -1, "selected": false, "text": "start EXAMPLE.exe %CommandVar1% && start EXAMPLE.exe %CommandVar2% && tasklist /fi \"imagename eq EXAMPLE.exe\" ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12261902/" ]
74,579,272
<p>Below is the code that I want to replicate without using break ///</p> <pre><code>while True: choice = input(&quot;Is it time to choose(Y/N)? &quot;) if choice.upper() == &quot;N&quot;: break idx = random.randint(0, len(contents)) fnd = False for i in range(3): for j in range(3):...
[ { "answer_id": 74579677, "author": "DSalomon", "author_id": 10402876, "author_profile": "https://Stackoverflow.com/users/10402876", "pm_score": -1, "selected": false, "text": "start EXAMPLE.exe %CommandVar1% && start EXAMPLE.exe %CommandVar2% && tasklist /fi \"imagename eq EXAMPLE.exe\" ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20603684/" ]
74,579,275
<p>I cannot create the table named <code>signal</code>, it shows me error like below:</p> <p><img src="https://i.stack.imgur.com/CX1Fp.png" alt="MySQL CREATE TABLE signal error 1064" /></p> <p>I tried with other name it works, when the table name is <code>signal</code> it does not work.</p> <p>I also ensured that there...
[ { "answer_id": 74579322, "author": "akseli", "author_id": 482270, "author_profile": "https://Stackoverflow.com/users/482270", "pm_score": 0, "selected": false, "text": "signal signal" }, { "answer_id": 74580043, "author": "Jonas Metzler", "author_id": 18794826, "autho...
2022/11/26
[ "https://Stackoverflow.com/questions/74579275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16183593/" ]
74,579,330
<p>I tried to make the simplest example of this here. When you check the box, the parent text Text #1 alternates back and forth from &quot;true&quot; to &quot;false&quot; while the child text Text #2 never changes. I want Text #2 to change just like Text #1 does.</p> <pre><code>function Parent(props) { const [sta...
[ { "answer_id": 74579322, "author": "akseli", "author_id": 482270, "author_profile": "https://Stackoverflow.com/users/482270", "pm_score": 0, "selected": false, "text": "signal signal" }, { "answer_id": 74580043, "author": "Jonas Metzler", "author_id": 18794826, "autho...
2022/11/26
[ "https://Stackoverflow.com/questions/74579330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5732910/" ]
74,579,355
<p>I need a SVG image something like the image bellow (open door architectural symbol ) that will be resized proportional but the height in green and width in red will stay same.The colors and sizes are just for illustrative purpose.</p> <p><a href="https://i.stack.imgur.com/8s9i6.jpg" rel="nofollow noreferrer"><img sr...
[ { "answer_id": 74579322, "author": "akseli", "author_id": 482270, "author_profile": "https://Stackoverflow.com/users/482270", "pm_score": 0, "selected": false, "text": "signal signal" }, { "answer_id": 74580043, "author": "Jonas Metzler", "author_id": 18794826, "autho...
2022/11/26
[ "https://Stackoverflow.com/questions/74579355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1740652/" ]
74,579,373
<p>i'm reading the source code of sentinel, i find when the map need adding a entry, it create a new hashmap replacing the old rather than using map.put directly. like this:</p> <pre class="lang-java prettyprint-override"><code>public class NodeSelectorSlot extends AbstractLinkedProcessorSlot&lt;Object&gt; { priva...
[ { "answer_id": 74579322, "author": "akseli", "author_id": 482270, "author_profile": "https://Stackoverflow.com/users/482270", "pm_score": 0, "selected": false, "text": "signal signal" }, { "answer_id": 74580043, "author": "Jonas Metzler", "author_id": 18794826, "autho...
2022/11/26
[ "https://Stackoverflow.com/questions/74579373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16321604/" ]
74,579,427
<p>This is a stupid question, but I really didn't make it...</p> <p>Here's what you get with &quot;archive/zip&quot;, I don't clear the order is unchanged.</p> <pre class="lang-js prettyprint-override"><code>[ &quot;a/&quot;, &quot;e.txt&quot;, &quot;a/b/&quot;, &quot;a/b/c/&quot;, &quot;a/b/c/d.txt...
[ { "answer_id": 74579322, "author": "akseli", "author_id": 482270, "author_profile": "https://Stackoverflow.com/users/482270", "pm_score": 0, "selected": false, "text": "signal signal" }, { "answer_id": 74580043, "author": "Jonas Metzler", "author_id": 18794826, "autho...
2022/11/26
[ "https://Stackoverflow.com/questions/74579427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9266268/" ]
74,579,455
<p>I was wondering if with <em>grep</em> and regex we can do something in the spirit of the following example:</p> <p><strong>Original text</strong>:</p> <pre><code>name_1_extratext name_2_extratext </code></pre> <p><strong>Target</strong>:</p> <pre><code>name_extratext_1 name_extratext_2 </code></pre> <p>I am particul...
[ { "answer_id": 74579597, "author": "Bohemian", "author_id": 256196, "author_profile": "https://Stackoverflow.com/users/256196", "pm_score": 0, "selected": false, "text": "grep sed echo \"name_1_extratext\" | sed -E 's/_([^_]+)_(.*)/_\\2_\\1/'\n" }, { "answer_id": 74580725, "a...
2022/11/26
[ "https://Stackoverflow.com/questions/74579455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4207869/" ]
74,579,472
<p>I want to know how to create a rating component with filled or unfilled stars based on the information in my json files. I already have the rating number on my json file, I must put it on my rating component.</p> <pre><code>import React, { useRef, useState } from &quot;react&quot;; import { ReactComponent as Star } ...
[ { "answer_id": 74579507, "author": "Opay Hero", "author_id": 10766263, "author_profile": "https://Stackoverflow.com/users/10766263", "pm_score": 1, "selected": false, "text": "disabled=true --rating=1" }, { "answer_id": 74579527, "author": "ray", "author_id": 636077, ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18944378/" ]
74,579,491
<p>I am doing time series analysis in R using the forecast package. The forecast::autoplot() creates a ggplot object.</p> <p>I have two questions about plotting decomposed series:</p> <ol> <li>How do I place text in the trend panel (next to the vertical red line). Using ggplot or other packages?</li> <li>How can I rena...
[ { "answer_id": 74579845, "author": "AndS.", "author_id": 9778513, "author_profile": "https://Stackoverflow.com/users/9778513", "pm_score": 2, "selected": false, "text": "library(tidyverse)\nlibrary(forecast) \n\n\nmy_new_autoplot <- function(decomp, \n facet...
2022/11/26
[ "https://Stackoverflow.com/questions/74579491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6390497/" ]
74,579,506
<p>This is the program to find mean, median, and mode of element in array and then make histogram from it,</p> <p>but the problem i have is only at the star count and print the star</p> <pre class="lang-c prettyprint-override"><code>#include&lt;stdio.h&gt; int main() { int sample[50] = {4,3,5,5,1,5,5,5,4,3,5,3,3,5...
[ { "answer_id": 74579745, "author": "qbizzle68", "author_id": 18984369, "author_profile": "https://Stackoverflow.com/users/18984369", "pm_score": 1, "selected": false, "text": "int f1 = 0, f2 = 0, f3 = 0, f4 = 0, f5 = 0;\n" }, { "answer_id": 74579785, "author": "abelenky", ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20596587/" ]
74,579,512
<p>When I try to run the code below, it gives me the response:</p> <blockquote> <p>&quot;Python: Download video with Youtube and pytube - fix error (regex...)&quot;</p> </blockquote> <p>Tried multiple solutions, all to no avail.</p> <p><strong>Here is my code:</strong></p> <pre class="lang-py prettyprint-override"><cod...
[ { "answer_id": 74579745, "author": "qbizzle68", "author_id": 18984369, "author_profile": "https://Stackoverflow.com/users/18984369", "pm_score": 1, "selected": false, "text": "int f1 = 0, f2 = 0, f3 = 0, f4 = 0, f5 = 0;\n" }, { "answer_id": 74579785, "author": "abelenky", ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20200629/" ]
74,579,535
<p>Im trying to achieve the gradient of the following image: Basically, I want a <strong>vertical</strong> gradient with 3 colors, left to right. And then I want a <strong>horizontal</strong> opacity gradient from top to bottom.</p> <p><img src="https://i.stack.imgur.com/TAXN2.png" alt="Different degree gradient" /></p...
[ { "answer_id": 74579745, "author": "qbizzle68", "author_id": 18984369, "author_profile": "https://Stackoverflow.com/users/18984369", "pm_score": 1, "selected": false, "text": "int f1 = 0, f2 = 0, f3 = 0, f4 = 0, f5 = 0;\n" }, { "answer_id": 74579785, "author": "abelenky", ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12028720/" ]
74,579,537
<p>I am new to programming and I am stuck on this. I have to edit a file to be able to sort an array. Previously, it was programmed to sort arrays that are powers of two. Now I have to make a change for it to be able to sort arrays of any number. I Could have sworn this worked when I submitted it, but my professor came...
[ { "answer_id": 74580203, "author": "Clement Faisandier", "author_id": 20603928, "author_profile": "https://Stackoverflow.com/users/20603928", "pm_score": 0, "selected": false, "text": "merge(key + j, key + j + k, w + j, k, k); k k=2 j=12 merge(key + j, key + j + k, w + j, k, k-((n-j)/2))...
2022/11/26
[ "https://Stackoverflow.com/questions/74579537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20603897/" ]
74,579,540
<p>I've checked the answer to a similar question, but it doesn't quite solve it.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>let qties = [ [12, 45, 56, "", 45, "", "", ...
[ { "answer_id": 74579591, "author": "Samathingamajig", "author_id": 12101554, "author_profile": "https://Stackoverflow.com/users/12101554", "pm_score": 4, "selected": true, "text": "Number isNaN let qties = [\n [12, 45, 56, \"\", 45, \"\", \"\", \"\"]\n]\nconst incomingBulkQty = qties[0]...
2022/11/26
[ "https://Stackoverflow.com/questions/74579540", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11832197/" ]
74,579,557
<pre><code>class WithdrawRequests(models.Model): withdraw_hash = models.CharField(max_length=255, unique=True, db_index=True) timestamp = models.DateTimeField(auto_now_add=True) username = models.CharField(max_length=255, unique=False, db_index=True) currency = models.CharField(max_length=255, unique=Fa...
[ { "answer_id": 74579646, "author": "akdev", "author_id": 2065831, "author_profile": "https://Stackoverflow.com/users/2065831", "pm_score": 1, "selected": false, "text": "“(0.011095555563904999,)” withdraw_amount" }, { "answer_id": 74579698, "author": "Sunderam Dubey", "au...
2022/11/26
[ "https://Stackoverflow.com/questions/74579557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6904605/" ]
74,579,566
<p>I have create a pipeline and trying to trigger and download the artifacts via Azure CLI (tried both windows powershell and Developer powershell).</p> <p>I can log in, trigger the pipeline without any issue, but when tried the below command to download the artifact it throws the error message 'TF400813: The user '' i...
[ { "answer_id": 74579646, "author": "akdev", "author_id": 2065831, "author_profile": "https://Stackoverflow.com/users/2065831", "pm_score": 1, "selected": false, "text": "“(0.011095555563904999,)” withdraw_amount" }, { "answer_id": 74579698, "author": "Sunderam Dubey", "au...
2022/11/26
[ "https://Stackoverflow.com/questions/74579566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20263228/" ]
74,579,595
<p>I am trying to create a loading sequence of 3 dots that repeats itself until input from the user breaks the loading sequence specifically the enter key. i connot for the life of me get the infinite while loop to end with input</p> <pre><code>public class loop { public static void AnyKey() { try { ...
[ { "answer_id": 74579673, "author": "Clement Faisandier", "author_id": 20603928, "author_profile": "https://Stackoverflow.com/users/20603928", "pm_score": 2, "selected": false, "text": "loading(true) while(status) AnyKey() System.in.read(); .read() .available()" }, { "answer_id": ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20602881/" ]
74,579,623
<pre><code>local player = game.Players.LocalPlayer local mouse = player:GetMouse() local mutebutton = script.Parent while true do wait() local b = game.StarterGui.MusicPlayer.Playlist:GetChildren() local c = math.random(1, #b) local d = b[c] d:Play() wait(d.TimeLength) mutebutton.Mous...
[ { "answer_id": 74579919, "author": "ivy", "author_id": 20604326, "author_profile": "https://Stackoverflow.com/users/20604326", "pm_score": 2, "selected": false, "text": "Sound :Pause() mutebutton.MouseButton1Click:Connect(function()\n d:Pause()\nend)\n" }, { "answer_id": 7...
2022/11/26
[ "https://Stackoverflow.com/questions/74579623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16091352/" ]
74,579,624
<p>I am relatively new to using Regular Expressions with JavaScript and come across a particular situation with regards to the '@' username pattern that has given me about 3 hours of trouble.</p> <p>I would like to replicate the @username pattern found on social media text fields on websites such as Facebook and Twitte...
[ { "answer_id": 74579651, "author": "Samathingamajig", "author_id": 12101554, "author_profile": "https://Stackoverflow.com/users/12101554", "pm_score": 3, "selected": true, "text": "(?<=YOUR_REGEX)\n /(?<=^|[^\\/])(@[A-Za-z0-9_.]{3,25})/gm\n" }, { "answer_id": 74579720, "autho...
2022/11/26
[ "https://Stackoverflow.com/questions/74579624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19588421/" ]
74,579,628
<p>I am integrating stripe with my application. I want to receive a one time payment from a logged in user and once the payment is done maybe save the payment status in the database.</p> <p>I have set up the stripe-checkout and stripe-webhook. But how would i know which logged in user from the client side has made the ...
[ { "answer_id": 74579766, "author": "mb_const", "author_id": 20597869, "author_profile": "https://Stackoverflow.com/users/20597869", "pm_score": 0, "selected": false, "text": "json web token (jwt) local storage" }, { "answer_id": 74591288, "author": "yuting", "author_id": ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12886867/" ]
74,579,676
<p>I have a PDF file, I need to convert it into a CSV file this is my pdf file example as link <a href="https://online.flippingbook.com/view/352975479/" rel="nofollow noreferrer">https://online.flippingbook.com/view/352975479/</a> the code used is</p> <pre><code>import re import parse import pdfplumber import pandas as...
[ { "answer_id": 74581099, "author": "Edo Akse", "author_id": 9267296, "author_profile": "https://Stackoverflow.com/users/9267296", "pm_score": 1, "selected": false, "text": "import pdfplumber\n\n\nfile = \"Battery Voltage.pdf\"\nskiplines = [\n \"Battery Voltage\",\n \"AM\",\n \"...
2022/11/26
[ "https://Stackoverflow.com/questions/74579676", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19908761/" ]
74,579,694
<p>I am using JDK/Java 19 in Windows 11 x64, IntelliJ IDEA 2022 Ultimate.</p> <pre class="lang-java prettyprint-override"><code>import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ZooInfo { public static void main(String[] args) { ExecutorService executorServic...
[ { "answer_id": 74579703, "author": "James Grey", "author_id": 3728901, "author_profile": "https://Stackoverflow.com/users/3728901", "pm_score": -1, "selected": false, "text": "executorService = Executors.newSingleThreadExecutor();" }, { "answer_id": 74579796, "author": "Basil...
2022/11/26
[ "https://Stackoverflow.com/questions/74579694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3728901/" ]
74,579,753
<p>Anyways I’m trying to make a lightbulb. It’s just a circle, I have an <code>onclick</code> event on a button, and the event function toggled a class, changing the color. But I want the text in the button to toggle as well when that class is activated.</p> <p>I finally made it work as I was writing this question. ...
[ { "answer_id": 74579778, "author": "Layhout", "author_id": 17308201, "author_profile": "https://Stackoverflow.com/users/17308201", "pm_score": 3, "selected": true, "text": "...\n\nfunction activity(event) {\n bulb.classList.toggle(\"lightOn\");\n lightSwitch.textContent = bulb.classL...
2022/11/26
[ "https://Stackoverflow.com/questions/74579753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19943108/" ]
74,579,755
<p>I want to fetch the latest entry to the database</p> <p>I have this data</p> <p><a href="https://i.stack.imgur.com/OhbgC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OhbgC.jpg" alt="enter image description here" /></a></p> <p>When I run this query</p> <p><code>select id, parent_id, amount, max(...
[ { "answer_id": 74579807, "author": "npe", "author_id": 20561457, "author_profile": "https://Stackoverflow.com/users/20561457", "pm_score": -1, "selected": false, "text": "select id, parent_id, amount, max(created_at)\nfrom table\ngroup by parent_id \norder by max(created_at) desc \nlimit...
2022/11/26
[ "https://Stackoverflow.com/questions/74579755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19999746/" ]
74,579,763
<p>I have below kind of kind of array of object data which contain nested array of object inside it, and I want to structure it based on what my Api needed.</p> <pre><code> [{ containerId: 'c12', containerNumber: '4321dkjkfdj', goods: [{ weight: '32kg', ...
[ { "answer_id": 74579821, "author": "Layhout", "author_id": 17308201, "author_profile": "https://Stackoverflow.com/users/17308201", "pm_score": 0, "selected": false, "text": "const a = [\n {\n containerId: 'c12',\n containerNumber: '4321dkjkfdj',\n goods: [{\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9700487/" ]
74,579,779
<p>I'm tasked to create an intrepreter for c#</p> <p>basically I want to split this string:</p> <p><code>&quot;multiply (add 5 5) 5&quot;</code></p> <p>into an array of string:</p> <p><code>[&quot;multiply&quot;, &quot;(add 5 5)&quot;, &quot;5&quot;]</code></p> <p>if I'm using string.Split based on delimiter of space: ...
[ { "answer_id": 74579821, "author": "Layhout", "author_id": 17308201, "author_profile": "https://Stackoverflow.com/users/17308201", "pm_score": 0, "selected": false, "text": "const a = [\n {\n containerId: 'c12',\n containerNumber: '4321dkjkfdj',\n goods: [{\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11817809/" ]
74,579,786
<p>I'm using the Stripe extension in Firebase to create subscriptions in a NextJS web app.</p> <p>My goal is to create a link for a returning user to edit their payments in Stripe without authenticating again (they are already auth in my web app and Firebase recognizes the auth).</p> <p>I'm using the test mode of Strip...
[ { "answer_id": 74579821, "author": "Layhout", "author_id": 17308201, "author_profile": "https://Stackoverflow.com/users/17308201", "pm_score": 0, "selected": false, "text": "const a = [\n {\n containerId: 'c12',\n containerNumber: '4321dkjkfdj',\n goods: [{\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579786", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8278075/" ]
74,579,793
<p>I'm new to AWS and a little perplexed as to the situation with var/www/html folder in an EC2 instance in which Apache has been installed.</p> <p>After setting up an Elastic Beanstalk service and uploading the files, I see that these are stored in the regular var/www/html folder of the instance.</p> <p>From reading A...
[ { "answer_id": 74579821, "author": "Layhout", "author_id": 17308201, "author_profile": "https://Stackoverflow.com/users/17308201", "pm_score": 0, "selected": false, "text": "const a = [\n {\n containerId: 'c12',\n containerNumber: '4321dkjkfdj',\n goods: [{\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9158810/" ]
74,579,824
<p>This is my original CSV file <a href="https://i.stack.imgur.com/xtosi.jpg" rel="nofollow noreferrer">enter image description here</a></p> <p>I want to make the genre column only the first tag. when I use</p> <pre><code>dataframe['genre'] = dataframe['genre'].str.extract('^(.+?),') </code></pre> <p>it gets the string...
[ { "answer_id": 74579844, "author": "Dash", "author_id": 11542834, "author_profile": "https://Stackoverflow.com/users/11542834", "pm_score": 1, "selected": false, "text": "dataframe['genre'] = dataframe['genre'].str.split(',').str[0]\n" }, { "answer_id": 74579869, "author": "m...
2022/11/26
[ "https://Stackoverflow.com/questions/74579824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604215/" ]
74,579,861
<p>I'm working in a Django project and it has a postgreSQL db.</p> <p>I'm calling multiple times the model to filter the results:</p> <pre><code>latest = Product.objects.all().order_by('-update_date')[:4] best_rate = Product.objects.all().order_by('rating')[:2] expensive = Product.objects.all().order_by('-price')[:3] <...
[ { "answer_id": 74579844, "author": "Dash", "author_id": 11542834, "author_profile": "https://Stackoverflow.com/users/11542834", "pm_score": 1, "selected": false, "text": "dataframe['genre'] = dataframe['genre'].str.split(',').str[0]\n" }, { "answer_id": 74579869, "author": "m...
2022/11/26
[ "https://Stackoverflow.com/questions/74579861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9672537/" ]
74,579,935
<p>We want to migrate some spreadsheets from Google sheets to Excel. We figured out how to manage all the needed formulas, except one: <code>SPLIT</code>.</p> <p>Here is a public view link to a sample file, which shows you how we currently do this in Google sheets: <a href="https://docs.google.com/spreadsheets/d/1D1ceu...
[ { "answer_id": 74579844, "author": "Dash", "author_id": 11542834, "author_profile": "https://Stackoverflow.com/users/11542834", "pm_score": 1, "selected": false, "text": "dataframe['genre'] = dataframe['genre'].str.split(',').str[0]\n" }, { "answer_id": 74579869, "author": "m...
2022/11/26
[ "https://Stackoverflow.com/questions/74579935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10602249/" ]
74,579,938
<p>I want to preserve references during function calls in C++. In The following example the function <code>baz</code> creates two classes: <code>Foo</code> and <code>Bar</code>. The class <code>foo</code> is then passed to <code>Bar</code> as reference but instead of keeping <code>foo</code> until <code>Bar</code> is d...
[ { "answer_id": 74579999, "author": "rokuz", "author_id": 20599616, "author_profile": "https://Stackoverflow.com/users/20599616", "pm_score": 0, "selected": false, "text": "Foo foo4 ( 4 ); Foo Bar delete" }, { "answer_id": 74580464, "author": "Dean Johnson", "author_id": 6...
2022/11/26
[ "https://Stackoverflow.com/questions/74579938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11875359/" ]
74,579,960
<p>i want to make a grid of image by 3 like instagram based on user upload. the streambuilder is not displaying any data from firestore. i already separate the stream so its not inside the streambuilder.</p> <p>this is the code</p> <pre><code>import 'dart:io'; import 'package:cloud_firestore/cloud_firestore.dart'; imp...
[ { "answer_id": 74579999, "author": "rokuz", "author_id": 20599616, "author_profile": "https://Stackoverflow.com/users/20599616", "pm_score": 0, "selected": false, "text": "Foo foo4 ( 4 ); Foo Bar delete" }, { "answer_id": 74580464, "author": "Dean Johnson", "author_id": 6...
2022/11/26
[ "https://Stackoverflow.com/questions/74579960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19826650/" ]
74,579,995
<p>I am trying switch to a different screen in Flutter project using onPressed but it is not generating any outcome not sure what is the reason.</p> <p>Here is the homescreen page:</p> <pre><code> onPressed: () { const User_Profile(); ...
[ { "answer_id": 74580032, "author": "Ravindra S. Patil", "author_id": 13997210, "author_profile": "https://Stackoverflow.com/users/13997210", "pm_score": 2, "selected": false, "text": "Navigator.push ElevatedButton(\n onPressed: () {\n Navigator.push(\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74579995", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14574691/" ]
74,580,008
<p>i am trying to remove all paddings (top + bottom) for a text inside a block using Bootstrap 5.</p> <p>when using html without Bootstrap, setting <code>padding: 0px</code> does exactly what i expect:</p> <p><code>&lt;div style=&quot;padding: 0px; background-color: gray;&quot;&gt;no bootstrap&lt;/div&gt;</code> // wo...
[ { "answer_id": 74580070, "author": "Imran Mohammed", "author_id": 7102863, "author_profile": "https://Stackoverflow.com/users/7102863", "pm_score": 0, "selected": false, "text": "<div class=\"p-0 m-0 bg-info\">Will remove all Paddings and margins (no extra space inside and outside div)</...
2022/11/26
[ "https://Stackoverflow.com/questions/74580008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6212776/" ]
74,580,010
<p>On creating / cloning Spring project using IDEA Ultimate, i always get PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed</p> <p><a href="https://i.stack.imgur.com/ehn6g.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ehn6g.png" alt="Error on start" /></a></p>...
[ { "answer_id": 74580751, "author": "Dev Lens", "author_id": 13121943, "author_profile": "https://Stackoverflow.com/users/13121943", "pm_score": 1, "selected": false, "text": "systemProp.http.ssl.insecure=true\nsystemProp.http.ssl.allowall=true\nsystemProp.http.ssl.ignore.validity.dates=t...
2022/11/26
[ "https://Stackoverflow.com/questions/74580010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15513319/" ]
74,580,049
<p>so you see the code here its working fine. But there is error that prevents be from building it. check the code</p> <p>im trying to assign onChange to onChange so when user press a key it will show up in the text field. Currently using <code>onChange={onChange}</code> it works in browser and for run dev but wont bui...
[ { "answer_id": 74580067, "author": "GMKHussain", "author_id": 4689036, "author_profile": "https://Stackoverflow.com/users/4689036", "pm_score": 0, "selected": false, "text": "onChange={handleChange}\n" }, { "answer_id": 74580216, "author": "Elvis Ohemeng Gyaase", "author_...
2022/11/26
[ "https://Stackoverflow.com/questions/74580049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19934976/" ]
74,580,074
<p>I am using Java in my project. I see code like below and not able to understand the flow.</p> <pre><code>public static void main(String[] args) { Person p1 = new Person(&quot;test1&quot;); Person p2 = new Person(&quot;test2&quot;); List&lt;Person&gt; l = List.of(p1, p2); var count = l.stream().filte...
[ { "answer_id": 74580067, "author": "GMKHussain", "author_id": 4689036, "author_profile": "https://Stackoverflow.com/users/4689036", "pm_score": 0, "selected": false, "text": "onChange={handleChange}\n" }, { "answer_id": 74580216, "author": "Elvis Ohemeng Gyaase", "author_...
2022/11/26
[ "https://Stackoverflow.com/questions/74580074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/646276/" ]
74,580,083
<p>In my JavaScript learning journey, I encountered a complex problem that lasted more than 24 hours to research and try several published solutions, but unfortunately, I did not succeed in solving my problem. Which tempted me to write this reply to solve this complex problem for me!</p> <pre class="lang-js prettyprint...
[ { "answer_id": 74580067, "author": "GMKHussain", "author_id": 4689036, "author_profile": "https://Stackoverflow.com/users/4689036", "pm_score": 0, "selected": false, "text": "onChange={handleChange}\n" }, { "answer_id": 74580216, "author": "Elvis Ohemeng Gyaase", "author_...
2022/11/26
[ "https://Stackoverflow.com/questions/74580083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19574722/" ]
74,580,132
<p>I would like a keyboard shortcut to copy the full path of the currently open file. Do I need to add a new key binding, or is there an already existing shortcut?</p> <p>I'm using a Mac.</p>
[ { "answer_id": 74580149, "author": "Dash", "author_id": 11542834, "author_profile": "https://Stackoverflow.com/users/11542834", "pm_score": 2, "selected": true, "text": "Preferences > Keyboard Shortcuts @command:copyFilePath" } ]
2022/11/26
[ "https://Stackoverflow.com/questions/74580132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4493564/" ]
74,580,139
<p><strong>This is a live demo of my calculator: <a href="https://kepplin.github.io/odin-calculator/" rel="nofollow noreferrer">https://kepplin.github.io/odin-calculator/</a></strong></p> <p>After the equals button is pressed and the calculation is displayed, if a number button is pressed, then instead of starting a ne...
[ { "answer_id": 74643699, "author": "Alex Badea", "author_id": 11309337, "author_profile": "https://Stackoverflow.com/users/11309337", "pm_score": 0, "selected": false, "text": "typeof num2 !== 'string' function handleNumber(number) {\n if (typeof num2 !== 'string' && operator ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15580759/" ]
74,580,151
<p>I have this code and it the result is Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'data')</p> <p>My create account function is giving me this error</p> <pre><code>const sendRequest = async () =&gt; { if (!name || !email || !password) return; const user = { name, email, passw...
[ { "answer_id": 74643699, "author": "Alex Badea", "author_id": 11309337, "author_profile": "https://Stackoverflow.com/users/11309337", "pm_score": 0, "selected": false, "text": "typeof num2 !== 'string' function handleNumber(number) {\n if (typeof num2 !== 'string' && operator ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16540622/" ]
74,580,166
<p>I have a bookstore project, and have 2 table: <code>publishers</code> and <code>books</code>. These is my two migrate file for books and publishers.</p> <pre><code>&lt;?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBoo...
[ { "answer_id": 74643699, "author": "Alex Badea", "author_id": 11309337, "author_profile": "https://Stackoverflow.com/users/11309337", "pm_score": 0, "selected": false, "text": "typeof num2 !== 'string' function handleNumber(number) {\n if (typeof num2 !== 'string' && operator ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20138812/" ]
74,580,180
<p>How to extract items from a 2d array.</p> <pre><code>const array = [[&quot;1&quot;, &quot;3&quot;],[&quot;4&quot;, &quot;3&quot;]] const itemToExclude = &quot;3&quot; </code></pre> <p>Use <code>itemToExclude</code> variable to exclude item from result (in this case <code>3</code>)</p> <p><strong>Expected result</str...
[ { "answer_id": 74643699, "author": "Alex Badea", "author_id": 11309337, "author_profile": "https://Stackoverflow.com/users/11309337", "pm_score": 0, "selected": false, "text": "typeof num2 !== 'string' function handleNumber(number) {\n if (typeof num2 !== 'string' && operator ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3717114/" ]
74,580,194
<p>I followed this tutorial on youtube for my school project. The app is able to display selected images from gallery but the recycler view have gaps in every row. What do I code to fix this app? help. <a href="https://i.stack.imgur.com/07V7b.png" rel="nofollow noreferrer">enter image description here</a></p> <p>here's...
[ { "answer_id": 74643699, "author": "Alex Badea", "author_id": 11309337, "author_profile": "https://Stackoverflow.com/users/11309337", "pm_score": 0, "selected": false, "text": "typeof num2 !== 'string' function handleNumber(number) {\n if (typeof num2 !== 'string' && operator ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604535/" ]
74,580,202
<p>Every time I run <code>npx create-react-app my-app</code> I get this error:</p> <pre><code>npm ERR! code ENOENT npm ERR! syscall mkdir npm ERR! path foo:\bar\node_modules\react npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, mkdir 'foo:\bar\node_modules\react' npm ERR! enoent This is related ...
[ { "answer_id": 74643699, "author": "Alex Badea", "author_id": 11309337, "author_profile": "https://Stackoverflow.com/users/11309337", "pm_score": 0, "selected": false, "text": "typeof num2 !== 'string' function handleNumber(number) {\n if (typeof num2 !== 'string' && operator ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604579/" ]
74,580,208
<p>new to kotlin and struggle with the syntax of compareBy and its lambda to get the 'a' and 'b' parameters for a custom compare:</p> <pre><code>public inline fun &lt;T&gt; compareBy(crossinline selector: (T) -&gt; Comparable&lt;*&gt;?): Comparator&lt;T&gt; = Comparator { a, b -&gt; compareValuesBy(a, b, selector) ...
[ { "answer_id": 74582919, "author": "Gowtham K K", "author_id": 9248098, "author_profile": "https://Stackoverflow.com/users/9248098", "pm_score": 2, "selected": true, "text": " val compareByDistance = Comparator<IntArray> { a:IntArray, b:IntArray ->\n // Return -1 , +1 ,0 - B...
2022/11/26
[ "https://Stackoverflow.com/questions/74580208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3657747/" ]
74,580,213
<p>I have an ASP.NET Core Web API published to Amazon ECS using AWS Fargate with working PATCH request that I have successfully tested using POSTMAN. Now I am trying to make that request in the client side application by following <a href="https://github.com/KevinDockx/JsonPatch#:%7E:text=Here%27s%20how%20to,support%20...
[ { "answer_id": 74582919, "author": "Gowtham K K", "author_id": 9248098, "author_profile": "https://Stackoverflow.com/users/9248098", "pm_score": 2, "selected": true, "text": " val compareByDistance = Comparator<IntArray> { a:IntArray, b:IntArray ->\n // Return -1 , +1 ,0 - B...
2022/11/26
[ "https://Stackoverflow.com/questions/74580213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14503866/" ]
74,580,238
<p>I am trying to learn TS for the first time, but there is one case, which does not click quite well in my mind. Let's say we have two variables:</p> <pre><code>let value1: 'POST' | number | boolean = 'POST'; let value2: 'POST' | number | boolean | string = 'POST'; </code></pre> <p>And let's say we have another variab...
[ { "answer_id": 74582919, "author": "Gowtham K K", "author_id": 9248098, "author_profile": "https://Stackoverflow.com/users/9248098", "pm_score": 2, "selected": true, "text": " val compareByDistance = Comparator<IntArray> { a:IntArray, b:IntArray ->\n // Return -1 , +1 ,0 - B...
2022/11/26
[ "https://Stackoverflow.com/questions/74580238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17564668/" ]
74,580,243
<p>Given the code below, which runs selenium as a <code>multiprocessing.Process</code>. Despite the process being terminated on macOS Ventura <code>13.0.1</code>, selenium window stays open. Why does the window stay? how to force its termination?</p> <pre><code>from multiprocessing import Process from selenium.webdriv...
[ { "answer_id": 74582919, "author": "Gowtham K K", "author_id": 9248098, "author_profile": "https://Stackoverflow.com/users/9248098", "pm_score": 2, "selected": true, "text": " val compareByDistance = Comparator<IntArray> { a:IntArray, b:IntArray ->\n // Return -1 , +1 ,0 - B...
2022/11/26
[ "https://Stackoverflow.com/questions/74580243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20280771/" ]
74,580,244
<p>I am using javascript to hide an image after one scroll. The code is working fine but I am unable to add any transition to it due to which there is a very choppy and rough feel.</p> <p>This is the code which I am using</p> <hr /> <pre><code>function runOnScroll() { if (document.body.scrollTop &gt; 20 || document...
[ { "answer_id": 74582919, "author": "Gowtham K K", "author_id": 9248098, "author_profile": "https://Stackoverflow.com/users/9248098", "pm_score": 2, "selected": true, "text": " val compareByDistance = Comparator<IntArray> { a:IntArray, b:IntArray ->\n // Return -1 , +1 ,0 - B...
2022/11/26
[ "https://Stackoverflow.com/questions/74580244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604634/" ]
74,580,249
<p>I want Split one row into multiple rows of 6 hours data based on 15 mins time interval in pandas data frame</p> <pre><code> start_time end_time 0 2022-08-22 00:15:00 2022-08-22 06:15:00 </code></pre> <p>I have tried one hrs time split and used below code</p> <pre><code>result['start_time'] = result...
[ { "answer_id": 74580348, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 1, "selected": false, "text": "from datetime import timedelta\n\ndf = pd.DataFrame({'start_time': ['2022-08-22 00:15:00'],'end_time': ['2022...
2022/11/26
[ "https://Stackoverflow.com/questions/74580249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5506647/" ]
74,580,252
<p>For example, lets say the original number is 1. When I click (+), it increases to 2. Then I cannot click(+) anymore. Then When I click (-), it decreases to 0 when the original num is 1. Then I cannot click(-) anymore. How can I go about this? Thank you for your time.</p> <p><div class="snippet" data-lang="js" data-h...
[ { "answer_id": 74580348, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 1, "selected": false, "text": "from datetime import timedelta\n\ndf = pd.DataFrame({'start_time': ['2022-08-22 00:15:00'],'end_time': ['2022...
2022/11/26
[ "https://Stackoverflow.com/questions/74580252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20464992/" ]
74,580,351
<p>I am trying to perform a DB migration with <a href="https://github.com/dimitri/pgloader/" rel="nofollow noreferrer">pgloader</a> and I would like to define a <a href="https://pgloader.readthedocs.io/en/latest/ref/transforms.html" rel="nofollow noreferrer">custom lisp transformation file for a datetime</a>, but I don...
[ { "answer_id": 74580348, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 1, "selected": false, "text": "from datetime import timedelta\n\ndf = pd.DataFrame({'start_time': ['2022-08-22 00:15:00'],'end_time': ['2022...
2022/11/26
[ "https://Stackoverflow.com/questions/74580351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/720743/" ]
74,580,358
<p>First time when my page loaded then my app total lost page. but when I comments my array /*ClientsList.map(item =&gt; so on */ which is displaying data then page loaded. then I uncomments my array then data displayed successfully and app run. Again If I refresh my page then app lost.</p> <pre><code> const [ClientsLi...
[ { "answer_id": 74580475, "author": "Muhammad Shafique Attari", "author_id": 11185806, "author_profile": "https://Stackoverflow.com/users/11185806", "pm_score": 0, "selected": false, "text": " const [ClientsList, setUsersList] = useState({}); \n\n ///To////\n\n const [ClientsList,...
2022/11/26
[ "https://Stackoverflow.com/questions/74580358", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11185806/" ]
74,580,360
<p>I am trying to make a Python script that will check appointment availability and inform me when an earlier date opens up.</p> <p>I am stuck at the 4th selection page, for locations. I can't seem to click the 'regions' to display the available actual locations.</p> <p>This is what I have:</p> <pre><code>from selenium...
[ { "answer_id": 74580475, "author": "Muhammad Shafique Attari", "author_id": 11185806, "author_profile": "https://Stackoverflow.com/users/11185806", "pm_score": 0, "selected": false, "text": " const [ClientsList, setUsersList] = useState({}); \n\n ///To////\n\n const [ClientsList,...
2022/11/26
[ "https://Stackoverflow.com/questions/74580360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604717/" ]
74,580,370
<p>The assigment is to write a program where the user enters numbers, and the program adds the entered number to a sum. At each entry, the sum is printed. The program terminates when the user enters 0.</p> <p>My code is:</p> <pre><code>#include &lt;stdio.h&gt; int main(){ int n; int i; int sum = 0; ...
[ { "answer_id": 74580475, "author": "Muhammad Shafique Attari", "author_id": 11185806, "author_profile": "https://Stackoverflow.com/users/11185806", "pm_score": 0, "selected": false, "text": " const [ClientsList, setUsersList] = useState({}); \n\n ///To////\n\n const [ClientsList,...
2022/11/26
[ "https://Stackoverflow.com/questions/74580370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20586358/" ]
74,580,371
<p>Hi I'm using 3GB txt file and want to change it to CSV but it gives error_bad_lines</p> <pre><code>ParserError: ' ' expected after '&quot;' </code></pre> <p>Code I am using</p> <pre><code>df1 = df.read_csv(&quot;path\\logs.txt&quot;, delimiter = &quot;\t&quot;, encoding = 'cp437',engine=&quot;python&quot;) df1.to_c...
[ { "answer_id": 74580475, "author": "Muhammad Shafique Attari", "author_id": 11185806, "author_profile": "https://Stackoverflow.com/users/11185806", "pm_score": 0, "selected": false, "text": " const [ClientsList, setUsersList] = useState({}); \n\n ///To////\n\n const [ClientsList,...
2022/11/26
[ "https://Stackoverflow.com/questions/74580371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604779/" ]
74,580,413
<p>I'm writing a Rust <a href="https://github.com/btzy/nfde-rs" rel="noreferrer">library</a> that wraps around some platform-specific API calls (in this case, to open the file picker).</p> <p>On Linux, there are two ways (&quot;backends&quot;) to open the file picker - using GTK or using Portals (what they actually are...
[ { "answer_id": 74581229, "author": "Finomnis", "author_id": 2902833, "author_profile": "https://Stackoverflow.com/users/2902833", "pm_score": 2, "selected": false, "text": "trait struct trait Option<dyn BackendTrait> main" }, { "answer_id": 74586266, "author": "Chayim Friedma...
2022/11/26
[ "https://Stackoverflow.com/questions/74580413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1021959/" ]
74,580,432
<p>I'm trying to hide all <code>&lt;thead&gt;&lt;/thead&gt;</code> except first table by using the following CSS rule:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>@med...
[ { "answer_id": 74580697, "author": "F. Müller", "author_id": 1294283, "author_profile": "https://Stackoverflow.com/users/1294283", "pm_score": -1, "selected": false, "text": "<thead> @media screen {\n .container>table:not(:first-child)>thead {\n display: none !important;\n }\n} <div...
2022/11/26
[ "https://Stackoverflow.com/questions/74580432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/770135/" ]
74,580,452
<p>I have some data in an object called all_lines that is a character class in R (as a result of reading into R a PDF file). My objective: to delete everything before a certain string and delete everything after another string.</p> <p>The data looks like this and it is stored in the object all_lines</p> <pre><code>clas...
[ { "answer_id": 74580700, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "gsub() all_lines <- paste(all_lines, collapse = \" \")\noutput <- gsub(\"^.*?(?=\\\\bIntroduction\\\\b)|(?<=...
2022/11/26
[ "https://Stackoverflow.com/questions/74580452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7504055/" ]
74,580,472
<p>I am trying to remove Test2 value from an input decorator value from the change component. But not able to remove it. so how to get solution for this.</p> <p>change component:</p> <pre><code>export class ChangeComponent implements OnInit { @ViewChild('changeComponent') changeComponent: TableComponent; constructor() ...
[ { "answer_id": 74580700, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "gsub() all_lines <- paste(all_lines, collapse = \" \")\noutput <- gsub(\"^.*?(?=\\\\bIntroduction\\\\b)|(?<=...
2022/11/26
[ "https://Stackoverflow.com/questions/74580472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19099386/" ]
74,580,505
<p>I have a Vue front end that collects data (and files) from a user and POST it to a Django Rest Framework end point using Axios.</p> <p>Here is the code for that function:</p> <pre><code>import { ref } from &quot;vue&quot;; import axios from &quot;axios&quot;; const fields = ref({ audience: &quot;&quot;, can...
[ { "answer_id": 74580700, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "gsub() all_lines <- paste(all_lines, collapse = \" \")\noutput <- gsub(\"^.*?(?=\\\\bIntroduction\\\\b)|(?<=...
2022/11/26
[ "https://Stackoverflow.com/questions/74580505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9361135/" ]
74,580,506
<p>2 tables employee_1 and bonus_1 joined and trying to update but gives me the error -</p> <pre><code>ERROR REPORT UNKNOWN COMMAND </code></pre> <pre class="lang-sql prettyprint-override"><code>UPDATE( SELECT e.first_name, sum(b.bonus_amount) as bon from employee_1 e LEFT join bonus_1 b ...
[ { "answer_id": 74580700, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "gsub() all_lines <- paste(all_lines, collapse = \" \")\noutput <- gsub(\"^.*?(?=\\\\bIntroduction\\\\b)|(?<=...
2022/11/26
[ "https://Stackoverflow.com/questions/74580506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604900/" ]
74,580,519
<p>If there is an incorrect user input that was put into the commandline, for example I clear it by using</p> <pre><code>menu: answer = Console.ReadLine(); if(!int.TryParse(answer, out val)) { Console.Clear(); goto menu; } </code></pre> <p>However, doing this clears all the console window,...
[ { "answer_id": 74580741, "author": "Steve", "author_id": 1197518, "author_profile": "https://Stackoverflow.com/users/1197518", "pm_score": 2, "selected": true, "text": "static void Main(string[] args)\n{\n Console.SetCursorPosition(5, 5);\n Console.Write(\"Hello:\");\n while (tr...
2022/11/26
[ "https://Stackoverflow.com/questions/74580519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19987539/" ]
74,580,527
<p>I have a simple graph to make, whose source code is below:</p> <pre><code>import pandas as pd def plot_responses(index, y): index='Arsen initial' y=pd.Series({1: 0.8, 2: 0.8, 3: 0.59, 4: 0.54, 5: 0.86, 6: 0.54, 7: 0.97, 8: 0.69, 9: 1.39, 10: 0.95, 11: 2.12, 12: 1.95, 13: 0.99, 14: 0.76, 15: 0.82, 16: 0.63, ...
[ { "answer_id": 74580741, "author": "Steve", "author_id": 1197518, "author_profile": "https://Stackoverflow.com/users/1197518", "pm_score": 2, "selected": true, "text": "static void Main(string[] args)\n{\n Console.SetCursorPosition(5, 5);\n Console.Write(\"Hello:\");\n while (tr...
2022/11/26
[ "https://Stackoverflow.com/questions/74580527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1999585/" ]
74,580,543
<p>I'm newish to HTML/CSS (~2 months overall) and stack overflow (first post). Using fontawesome.com my idea is to make this icon flip when the cursor hovers over it. The icon flips when the class includes 'fa-flip' and doesn't when it's not. So I was trying to change the class with hover. How can i fix this?</p> <p>HT...
[ { "answer_id": 74580741, "author": "Steve", "author_id": 1197518, "author_profile": "https://Stackoverflow.com/users/1197518", "pm_score": 2, "selected": true, "text": "static void Main(string[] args)\n{\n Console.SetCursorPosition(5, 5);\n Console.Write(\"Hello:\");\n while (tr...
2022/11/26
[ "https://Stackoverflow.com/questions/74580543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20513242/" ]
74,580,570
<p>Can't bind to 'dataSource' since it isn't a known property of 'mat-table'.</p> <ol> <li>If 'mat-table' is an Angular component and it has 'dataSource' input, then verify that it is part of this module.</li> <li>If 'mat-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this com...
[ { "answer_id": 74581137, "author": "Mohameden Haden", "author_id": 14815961, "author_profile": "https://Stackoverflow.com/users/14815961", "pm_score": 1, "selected": false, "text": " ngAfterViewInit(): void {\n this.dataSource = new TablesDataSource(this.data);\n this.dataSource...
2022/11/26
[ "https://Stackoverflow.com/questions/74580570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15998078/" ]
74,580,590
<p>Could someone help me with the following task? Unfortunately, I find it too complicated.</p> <p>Write a recursive function ADD that takes a list as a parameter and adds all the numbers from the list together, sums up the result and outputs it. The function should be defined so that the passed list can also contain s...
[ { "answer_id": 74581161, "author": "Martin Půda", "author_id": 13590263, "author_profile": "https://Stackoverflow.com/users/13590263", "pm_score": 2, "selected": false, "text": "(defun add (l)\n (if (null l) 0\n (+ (first l) (add (rest l)))))\n (defun add (l)\n (cond ((null l) 0)\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434143/" ]
74,580,650
<p>Here is a console command I wrote in Laravel, and I was wondering how can I make it better and faster? What have I done wrong?</p> <p>And if you can introtuce me a book so I can get better at algorithms and writing better code I would appreciate it.</p> <p>Thanks</p> <pre><code>$process = Process::create([ 'star...
[ { "answer_id": 74581161, "author": "Martin Půda", "author_id": 13590263, "author_profile": "https://Stackoverflow.com/users/13590263", "pm_score": 2, "selected": false, "text": "(defun add (l)\n (if (null l) 0\n (+ (first l) (add (rest l)))))\n (defun add (l)\n (cond ((null l) 0)\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74580650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14786603/" ]
74,580,659
<p>For the given code</p> <pre><code>def greater(n): if n &gt; 3: res = True else: res = False return res a = greater(5) print(hex(id(a))) print(hex(id(True))) b = True print(hex(id(b))) if a == True: print('yes') else: print('no') </code></pre> <p><code>pylint</code> suggests ...
[ { "answer_id": 74580681, "author": "Daweo", "author_id": 10785975, "author_profile": "https://Stackoverflow.com/users/10785975", "pm_score": 0, "selected": false, "text": "if greeting:\n if greeting == True:\n if greeting is True:\n" }, { "answer_id": 74580711, "author": "Das...
2022/11/26
[ "https://Stackoverflow.com/questions/74580659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20038265/" ]
74,580,707
<p>A common problem in React, especially among beginners (like me). This is due to the fact that setState is an asynchronous function and React does not change values one by one, but accumulates some pool if it is not otherwise instructed. (please correct me if the wording is wrong)</p> <p>So here's the question. One s...
[ { "answer_id": 74580681, "author": "Daweo", "author_id": 10785975, "author_profile": "https://Stackoverflow.com/users/10785975", "pm_score": 0, "selected": false, "text": "if greeting:\n if greeting == True:\n if greeting is True:\n" }, { "answer_id": 74580711, "author": "Das...
2022/11/26
[ "https://Stackoverflow.com/questions/74580707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18146547/" ]