qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,534,196
<p>I'm learning data structures in C++;</p> <p>I've written a destructor for a linked list as follows:</p> <pre><code> ~List(){ Node* temporary = new Node; Node* node = head; while(node != nullptr){ temporary = node; node = node-&gt;next; delete temporary; ...
[ { "answer_id": 74534365, "author": "Li-yao Xia", "author_id": 6863749, "author_profile": "https://Stackoverflow.com/users/6863749", "pm_score": 2, "selected": false, "text": "data S = S NP VP deriving Show\ndata N = Linguist | Chemist | Anglist | N ADJ N deriving Show\ndata NP = NP DET N...
2022/11/22
[ "https://Stackoverflow.com/questions/74534196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15235825/" ]
74,534,226
<p>How to hide the label &quot;phone number&quot; in onfocus by simple onclick. Or may be ppreciated if can do in css. i tried but need a better solution.Let me know if you can.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="...
[ { "answer_id": 74534277, "author": "angel.bonev", "author_id": 3768239, "author_profile": "https://Stackoverflow.com/users/3768239", "pm_score": 1, "selected": false, "text": ".phone-input:focus~div.phone-label label {\n display: none;\n} <div class=\"form-row\">\n <div class=\"input-d...
2022/11/22
[ "https://Stackoverflow.com/questions/74534226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19171988/" ]
74,534,247
<pre><code>var password=123; var input; var opp=0; for(var t=0;t&lt;=2;t++){ if(password!=input &amp;&amp; t&lt;=2){ input=prompt(&quot;enter your password&quot;); } else{ opp++; } } if(opp!=0){ alert(&quot;success&quot;); } else if(opp&lt;1){ alert(&quot;fail&quot;); } </code></pre> <p>im expect i...
[ { "answer_id": 74534277, "author": "angel.bonev", "author_id": 3768239, "author_profile": "https://Stackoverflow.com/users/3768239", "pm_score": 1, "selected": false, "text": ".phone-input:focus~div.phone-label label {\n display: none;\n} <div class=\"form-row\">\n <div class=\"input-d...
2022/11/22
[ "https://Stackoverflow.com/questions/74534247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20328653/" ]
74,534,252
<p><strong>Scenario</strong> I'm sending a request payload to the API that further calls the SMS service provider in the in-sequence flow, I need to share back the response from the SMS service provider as it is. The API works fine and I do receive SMS on phone but I'm unable to share back the response from the service...
[ { "answer_id": 74543270, "author": "Justin", "author_id": 9907182, "author_profile": "https://Stackoverflow.com/users/9907182", "pm_score": 1, "selected": false, "text": "<respond/> <call> <Send> <call> <respond/>" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74534252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7454536/" ]
74,534,254
<p>I'm trying to create an animation tween from 0 to 1:</p> <pre><code>final Tween&lt;double&gt; _tween = Tween(begin: 0, end: 1); late AnimationController _controller; late Animation&lt;double&gt; _animation; </code></pre> <p>And for some reason, sometimes I need to call <code>_controller.reverse()</code> or <code>_...
[ { "answer_id": 74543270, "author": "Justin", "author_id": 9907182, "author_profile": "https://Stackoverflow.com/users/9907182", "pm_score": 1, "selected": false, "text": "<respond/> <call> <Send> <call> <respond/>" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74534254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9618445/" ]
74,534,300
<p>I am new to dbt and in BigQuery I can query partitioned tables in a large dataset by using an asterix. e.g.</p> <pre><code>select * from x.ads_d_* </code></pre> <p>The asterix represents the year and month e.g. 202211. How do I create a source for this in dbt. If I use the code-gen package it creates a table for eve...
[ { "answer_id": 74534873, "author": "Cylldby", "author_id": 15062605, "author_profile": "https://Stackoverflow.com/users/15062605", "pm_score": 0, "selected": false, "text": "- identifier: ad_d_*\n" }, { "answer_id": 74546156, "author": "Paddy Alton", "author_id": 9044370,...
2022/11/22
[ "https://Stackoverflow.com/questions/74534300", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2785289/" ]
74,534,304
<p>With the following HTML and CSS I can't seem to be able to change the text color of the hyperlinks in blue or purple? What am I missing?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-...
[ { "answer_id": 74534363, "author": "Cédric", "author_id": 17684809, "author_profile": "https://Stackoverflow.com/users/17684809", "pm_score": 1, "selected": true, "text": "li a a a { \n color: white;\n}\n nav ul {\n list-style: none;\n text-align: center;\n background-color: #495e57;...
2022/11/22
[ "https://Stackoverflow.com/questions/74534304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573306/" ]
74,534,359
<p>I still very new using GGPLOT, but ive created the following graphic in which i would like to switch the colors blue and red. Should be simple enough but i cannot figure it out.</p> <pre><code>df &lt;- structure(list(Sex = c(&quot;M&quot;, &quot;M&quot;, &quot;M&quot;, &quot;M&quot;, &quot;M&quot;, &quot;M&quot;, &q...
[ { "answer_id": 74534363, "author": "Cédric", "author_id": 17684809, "author_profile": "https://Stackoverflow.com/users/17684809", "pm_score": 1, "selected": true, "text": "li a a a { \n color: white;\n}\n nav ul {\n list-style: none;\n text-align: center;\n background-color: #495e57;...
2022/11/22
[ "https://Stackoverflow.com/questions/74534359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16508809/" ]
74,534,392
<p>what does it means declare variables with the symbol <strong>&quot;#&quot;</strong> in javascript? I am learning about builder pattern and I found it with some examples. Also I saw that the variables are calls with this.#color.</p> <p><strong>#</strong> symbol is different to declare variable with let or var? what i...
[ { "answer_id": 74534430, "author": "Amir Popovich", "author_id": 3213034, "author_profile": "https://Stackoverflow.com/users/3213034", "pm_score": 3, "selected": true, "text": "class ClassWithPrivate {\n #privateField;\n #privateFieldWithInitializer = 42;\n\n #privateMethod() {\n /...
2022/11/22
[ "https://Stackoverflow.com/questions/74534392", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18797770/" ]
74,534,434
<pre><code>library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity equation_tb is end equation_tb; architecture Behavioral of equation_tb is signal x, y, z, t, w : std_logic; signal F : std_logic; begin UUT : entity work.equation port map (x, y, z, t, w, F); process begin x &lt;= '0...
[ { "answer_id": 74535802, "author": "the busybee", "author_id": 11294831, "author_profile": "https://Stackoverflow.com/users/11294831", "pm_score": 0, "selected": false, "text": "wait architecture Behavioral of equation_tb is\n signal x : std_logic := '0';\n signal y : std_logic := ...
2022/11/22
[ "https://Stackoverflow.com/questions/74534434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18406524/" ]
74,534,441
<p>I was looking for how to disable button using JS and I find this and it works:</p> <pre><code>&lt;button id=&quot;startbtn&quot; onclick=&quot;this.disabled=true; pausebtn.disabled=false; stopbtn.disabled=false;&quot;&gt;Start&lt;/button&gt; </code></pre> <p>but I want to disable it using addEventListener() method i...
[ { "answer_id": 74534504, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 1, "selected": true, "text": "Element.currentTarget.setAttribute(name, value) let start1 = document.getElementById('startbtn');\nstart1.ad...
2022/11/22
[ "https://Stackoverflow.com/questions/74534441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573325/" ]
74,534,455
<p>I have a problem, I need my Android app to stay active when it's in the background.</p> <p>Application.runInBackground = true;</p>
[ { "answer_id": 74534504, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 1, "selected": true, "text": "Element.currentTarget.setAttribute(name, value) let start1 = document.getElementById('startbtn');\nstart1.ad...
2022/11/22
[ "https://Stackoverflow.com/questions/74534455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17351668/" ]
74,534,469
<p>I am currently try to have the data like this (The <code>...</code> just means there are more lines, no need to post the entire file here.)</p> <pre><code>376 932 noms sommets 0000 Abbesses 0001 Alexandre Dumas 0002 Alma Marceau ... 0375 Étienne Marcel coord sommets 0000 308 536 0001 472 386 0002 193 404 ... 0375 34...
[ { "answer_id": 74534504, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 1, "selected": true, "text": "Element.currentTarget.setAttribute(name, value) let start1 = document.getElementById('startbtn');\nstart1.ad...
2022/11/22
[ "https://Stackoverflow.com/questions/74534469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11315832/" ]
74,534,513
<p>I am relatively new to Vega Lite and have a question that I'm hoping is fairly straightforward.</p> <p>I have a parameter array called myExtent that I've hard coded to [0, 6]. I'd like to be able to set the upper value of the array based on the data. Here, because the 4th row has &quot;flag&quot; = 1, I'd like to se...
[ { "answer_id": 74534504, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 1, "selected": true, "text": "Element.currentTarget.setAttribute(name, value) let start1 = document.getElementById('startbtn');\nstart1.ad...
2022/11/22
[ "https://Stackoverflow.com/questions/74534513", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20567568/" ]
74,534,517
<p>I would like to create a new column in the data frame that will search for the alphabet in a column. Based on it, it will then search for the next number and copy the alphabet and number into newly extracted column. Example:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Month</th> <th>...
[ { "answer_id": 74534662, "author": "user19077881", "author_id": 19077881, "author_profile": "https://Stackoverflow.com/users/19077881", "pm_score": 2, "selected": true, "text": "H\\d df['Sem'] = df['Sem_year'].str.extract(\"(H\\d)\")\n" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74534517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14363224/" ]
74,534,557
<p>I have an in put xml file which contain 20&lt;.entry&gt; element. the value of entry should be convert into word like &quot;Twenty&quot; I want to convert till number 100.</p> <p>Input:</p> <pre><code>&lt;input&gt; &lt;entry&gt;46&lt;/entry&gt; &lt;/input&gt; </code></pre> <p>XSLT:</p> <pre><code>&lt;xsl:stylesh...
[ { "answer_id": 74534662, "author": "user19077881", "author_id": 19077881, "author_profile": "https://Stackoverflow.com/users/19077881", "pm_score": 2, "selected": true, "text": "H\\d df['Sem'] = df['Sem_year'].str.extract(\"(H\\d)\")\n" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74534557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12111629/" ]
74,534,560
<p>This is my code in python whenever I click the start button it automatically stops by the way I am using replit IDE.</p> <pre><code>import discord class MyClient(discord.Client): async def on_ready(self): print(f'Logged on as {self.user}!') async def on_message(self, message): print(f'Mes...
[ { "answer_id": 74535230, "author": "stijndcl", "author_id": 13568999, "author_profile": "https://Stackoverflow.com/users/13568999", "pm_score": 0, "selected": false, "text": "client_start()" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74534560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485629/" ]
74,534,591
<p>I stored my social links data on firebase, and now I want to make a <code>&lt;li&gt;</code> list of my social links but the <code>icon</code> object I have here, is not showing me the icons instead it's showing me the elements like: <code>&lt;BsBehance /&gt;</code>. It should be displayed as icon, how can I do that?...
[ { "answer_id": 74534868, "author": "Miguel Caro", "author_id": 11206583, "author_profile": "https://Stackoverflow.com/users/11206583", "pm_score": 0, "selected": false, "text": "<ul className={classes.social_links}> \n {socialLinks.map((el) => {\n return (\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74534591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14152125/" ]
74,534,622
<p>I am struggling with the following issue: I would like to write some small code to deisotope mass spec data.</p> <p>For this, I compare, if the difference between two signals is equal the mass of a proton devided by the charge state. So far, so easy.</p> <p>I am struggling now, to find series of more than two peaks....
[ { "answer_id": 74535164, "author": "CodeKorn", "author_id": 10882128, "author_profile": "https://Stackoverflow.com/users/10882128", "pm_score": 3, "selected": true, "text": "d = {}\npairs = [(1,2), (2,3), (4,5), (7,9), (8,10), (9,11)]\nfor t in pairs:\n if t[0] in d:\n d[t[0]].a...
2022/11/22
[ "https://Stackoverflow.com/questions/74534622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14571316/" ]
74,534,658
<p>I have two arrays of:</p> <pre><code>x=43035000 51065000 67085000 36770000 57165000 54335000 46590000 64410000 39295000 37210000 41800000 y=397 420 349 300 387 417 365 567 321 314 341 </code></pre> <p>I would like to divide the first number in x with the first number in y and the second number in x with the second n...
[ { "answer_id": 74534865, "author": "Adrián Bíro", "author_id": 18172103, "author_profile": "https://Stackoverflow.com/users/18172103", "pm_score": 0, "selected": false, "text": "$ x=(43035000 51065000 67085000 36770000 57165000 54335000 46590000 64410000 39295000 37210000 41800000)\n$ y=...
2022/11/22
[ "https://Stackoverflow.com/questions/74534658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573207/" ]
74,534,666
<p>I am trying to return the objects relating to a through table which counts the number of reactions on a blog post.</p> <p>I have an Article model, Sentiment model and Reactions model. The sentiment is simply a 1 or 2, <code>1</code> representing <code>like</code> and <code>2</code> for <code>dislike</code>. On the f...
[ { "answer_id": 74534865, "author": "Adrián Bíro", "author_id": 18172103, "author_profile": "https://Stackoverflow.com/users/18172103", "pm_score": 0, "selected": false, "text": "$ x=(43035000 51065000 67085000 36770000 57165000 54335000 46590000 64410000 39295000 37210000 41800000)\n$ y=...
2022/11/22
[ "https://Stackoverflow.com/questions/74534666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14611431/" ]
74,534,695
<p>I need a query that every time the indicator column turns into zero and there are 3 zeros in a row, I would like to assign them a unique group number.</p> <p>Here is a sample data:</p> <pre><code>select 0 as offset, 1 as indicator, -1 as grp union all select 1, 1, -1 union all select 2, 1, -1 union all sel...
[ { "answer_id": 74534865, "author": "Adrián Bíro", "author_id": 18172103, "author_profile": "https://Stackoverflow.com/users/18172103", "pm_score": 0, "selected": false, "text": "$ x=(43035000 51065000 67085000 36770000 57165000 54335000 46590000 64410000 39295000 37210000 41800000)\n$ y=...
2022/11/22
[ "https://Stackoverflow.com/questions/74534695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3972214/" ]
74,534,736
<p>Here is my starting point:</p> <pre><code>#!/usr/bin/env perl use warnings; use strict; my %hash_a = ( &quot;num&quot; =&gt; 7, &quot;date&quot; =&gt; 20221104, &quot;prath&quot; =&gt; &quot;1.1.10&quot;, &quot;antema&quot; =&gt; &quot;1.1.15&quot; ); my %hash_b = ( &quot;num&quot; =&gt; 8, &quot;date&quot;...
[ { "answer_id": 74535129, "author": "Håkon Hægland", "author_id": 2173773, "author_profile": "https://Stackoverflow.com/users/2173773", "pm_score": 0, "selected": false, "text": "use feature qw(say);\nuse strict;\nuse warnings;\nuse experimental qw(declared_refs refaliasing);\n\nmy %hash_...
2022/11/22
[ "https://Stackoverflow.com/questions/74534736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1850133/" ]
74,534,742
<p>Given a message (b of type B), nested in another (a of type A); how does one get ‘a’? I was hoping for something like ‘b.getParent()’.</p> <pre class="lang-protobuf prettyprint-override"><code>message B { optional string name = 1; repeated B b = 2; } message A { optional string name = 1; repeated B b = 1; } </code...
[ { "answer_id": 74536772, "author": "Louis Wasserman", "author_id": 869736, "author_profile": "https://Stackoverflow.com/users/869736", "pm_score": 2, "selected": false, "text": "B A" }, { "answer_id": 74539463, "author": "phreed", "author_id": 345427, "author_profile"...
2022/11/22
[ "https://Stackoverflow.com/questions/74534742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/345427/" ]
74,534,756
<pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main(void) { long x, y; printf(&quot;Enter the first number: \n&quot;); scanf(&quot;%ld&quot;, &amp;x); printf(&quot;Enter the second number: \n&quot;); scanf(&quot;%ld&quot;, &amp;y); long z = x + y; ...
[ { "answer_id": 74534809, "author": "TrebledJ", "author_id": 10239789, "author_profile": "https://Stackoverflow.com/users/10239789", "pm_score": 2, "selected": false, "text": "long long long 2**31 - 1 unsigned long 2**32 - 1 long long unsigned long long %lu %lld %llu" }, { "answer...
2022/11/22
[ "https://Stackoverflow.com/questions/74534756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573579/" ]
74,534,780
<p>I am writing a function to conduct one way anova and was writing the below function</p> <pre><code>fun_aov &lt;- function(sps, param){ ths_data_aov &lt;- ths_data_aov |&gt; filter(Species == sps) |&gt; select(Species, Treatment, param) n_one_way_aov &lt;- aov( param ~ Treatment, data = ths_data_aov) ...
[ { "answer_id": 74534809, "author": "TrebledJ", "author_id": 10239789, "author_profile": "https://Stackoverflow.com/users/10239789", "pm_score": 2, "selected": false, "text": "long long long 2**31 - 1 unsigned long 2**32 - 1 long long unsigned long long %lu %lld %llu" }, { "answer...
2022/11/22
[ "https://Stackoverflow.com/questions/74534780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20121588/" ]
74,534,791
<p>I am currently using SAP CPI to achieve this conversion. I have tried the regular XML to JSON converter available but was not able to achieve this requirement. I then set out to try and see if XSLT can help.</p> <p>I am trying to convert the following XML payload:</p> <pre><code>&lt;root&gt; &lt;ClientID&gt;1&lt...
[ { "answer_id": 74535938, "author": "Heiko Theißen", "author_id": 16462950, "author_profile": "https://Stackoverflow.com/users/16462950", "pm_score": 1, "selected": false, "text": "count(*[name()=$childName]) > 1 <EducationList> <Education> List count(*[name()=$childName]) > 1 substring(n...
2022/11/22
[ "https://Stackoverflow.com/questions/74534791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573341/" ]
74,534,794
<p>This question applies only for HTTPS requests.</p> <p>Lets divide the problem in 3 areas.</p> <ol> <li>The origin. This is the user sending an HTTPS request.</li> <li>The proxy. This will handle the request, forward it to the remote and vice-versa.</li> <li>The remote. This is the server where the request is suppose...
[ { "answer_id": 74535938, "author": "Heiko Theißen", "author_id": 16462950, "author_profile": "https://Stackoverflow.com/users/16462950", "pm_score": 1, "selected": false, "text": "count(*[name()=$childName]) > 1 <EducationList> <Education> List count(*[name()=$childName]) > 1 substring(n...
2022/11/22
[ "https://Stackoverflow.com/questions/74534794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1976997/" ]
74,534,798
<p>Good day to you.</p> <p>I have a question.. i am using report builder to build some reports. And i got stuck in this place where i want to sum all the results of one month to be in one cell.</p> <p><a href="https://i.stack.imgur.com/3yjI6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3yjI6.png" ...
[ { "answer_id": 74535666, "author": "Zakaria Matlaoui", "author_id": 20167795, "author_profile": "https://Stackoverflow.com/users/20167795", "pm_score": 1, "selected": false, "text": "SELECT MT.[YEAR],\n MT.[ENROLMENT DATE],\n MT.[ENROLMENT DATE WEEK],\n MT.[COUNTRY]...
2022/11/22
[ "https://Stackoverflow.com/questions/74534798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15265191/" ]
74,534,813
<p>I ask for your help for a problem that I encounter with IONIC 1. When I change the API level from 30 to 31 in the config.xml file:</p> <p>this code is not working</p> <pre><code>$http.get($scope.url) .then(function (success) { ... }, function (error) { $scope.errTXT = JSON.stringify(error); }); </code></pre> <p>r...
[ { "answer_id": 74535666, "author": "Zakaria Matlaoui", "author_id": 20167795, "author_profile": "https://Stackoverflow.com/users/20167795", "pm_score": 1, "selected": false, "text": "SELECT MT.[YEAR],\n MT.[ENROLMENT DATE],\n MT.[ENROLMENT DATE WEEK],\n MT.[COUNTRY]...
2022/11/22
[ "https://Stackoverflow.com/questions/74534813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573004/" ]
74,534,816
<p>I'm beginer in C#. Now I have next task: In method I get template and arguments and I have to return formated string.</p> <p>For example:</p> <pre><code>template = &quot;Hello, {name}!&quot; name = &quot;Bob&quot; </code></pre> <p>So result must be a string -&gt; Hello, Bob!</p> <pre><code>public static string GetH...
[ { "answer_id": 74535000, "author": "Mong Zhu", "author_id": 5174469, "author_profile": "https://Stackoverflow.com/users/5174469", "pm_score": 0, "selected": false, "text": "string template = \"Hello, {0}!\"\n public static string Format (string format, params object?[] args);\n" }, {...
2022/11/22
[ "https://Stackoverflow.com/questions/74534816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20395904/" ]
74,534,817
<p>I've just started learning <code>malloc()</code> and <code>realloc()</code> and when testing them, I came across this issue with reallocating the size of an int array.</p> <p>the program is supposed to make an array, initially of size two, but it's supposed to increase its size and add values to it ten times. Howeve...
[ { "answer_id": 74535030, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 1, "selected": false, "text": "sizeof(array)/sizeof(array[0])\n sizeof( int * )/sizeof( int )\n (2+x) array = realloc(array, sizeof(int)*(...
2022/11/22
[ "https://Stackoverflow.com/questions/74534817", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18623170/" ]
74,534,831
<p>I want to drop columns if the values inside of them are the same as other columns. From DF, it should yields DF_new:</p> <pre><code>DF = pd.DataFrame(index=[1,2,3,4], columns = ['col1', 'col2','col3','col4','col5']) x = np.random.uniform(size=4) DF['col1'] = x DF['col2'] = x+2 DF['col3'] = x DF ['col4'] = x+2 DF['co...
[ { "answer_id": 74535313, "author": "jack23456", "author_id": 20247353, "author_profile": "https://Stackoverflow.com/users/20247353", "pm_score": 0, "selected": false, "text": "df = df.loc[:,~df.apply(lambda x: x.duplicated(),axis=1).all()].copy()\n" }, { "answer_id": 74536197, ...
2022/11/22
[ "https://Stackoverflow.com/questions/74534831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20198320/" ]
74,534,840
<p>I have some pdfs with data about machine parts and i am trying to extract sizes. I extracted the text from a pdf via pypdfium2.</p> <pre><code>import pypdfium2 as pdfium pdf = pdfium.PdfDocument(&quot;myfile.pdf&quot;) page=pdf[1] textpage = page.get_textpage() </code></pre> <p>Most of the text is readable but for s...
[ { "answer_id": 74536064, "author": "K J", "author_id": 10802527, "author_profile": "https://Stackoverflow.com/users/10802527", "pm_score": 1, "selected": false, "text": "UHIIUQ+ 3,0 8,8 +0,058/0 5,0 4,0 4,5 \\r\\n\\ = cR Nl (windows line feed \\x0d\\x0a)\n\\x13 has been mapped to 3\n\\x0...
2022/11/22
[ "https://Stackoverflow.com/questions/74534840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9764940/" ]
74,534,850
<p>I'm trying to iterate this block of code for displaying data in table. I want object arrays of equal length.</p> <p>Hence, need to fill undefined values for respective keys to make array of objects uniform (same length)</p> <p><strong>Original Json</strong></p> <pre><code>[ { &quot;toolName&quot;: &quot;Altery...
[ { "answer_id": 74534947, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 0, "selected": false, "text": "var s = [\n {\n \"toolName\": \"Alteryx\",\n \"contacts\": [\n {\n \"contactPerson\": \"...
2022/11/22
[ "https://Stackoverflow.com/questions/74534850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8478108/" ]
74,534,852
<p>I'm trying to pass a <code>shared_ptr</code> to an object around, which may or may not be null:</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt; #include &lt;memory&gt; struct MyObject { int i = 0; MyObject(const int i_) : i(i_) {} }; struct Command { std::shared_ptr&lt;MyObject...
[ { "answer_id": 74535116, "author": "Nelfeal", "author_id": 3854570, "author_profile": "https://Stackoverflow.com/users/3854570", "pm_score": 3, "selected": true, "text": "struct Command {\n std::shared_ptr<MyObject>* cmdObj;\n\n Command(std::shared_ptr<MyObject>& obj) : cmdObj(&obj) {\...
2022/11/22
[ "https://Stackoverflow.com/questions/74534852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/547768/" ]
74,534,857
<p>I know this question has been asked multiple times in different ways, but I can't find a solution where I would replace the text between some &quot;borders&quot; while keeping the borders.</p> <pre><code>input &lt;- &quot;this is my 'example'&quot; change &lt;- &quot;test&quot; </code></pre> <p>And now I want to rep...
[ { "answer_id": 74535116, "author": "Nelfeal", "author_id": 3854570, "author_profile": "https://Stackoverflow.com/users/3854570", "pm_score": 3, "selected": true, "text": "struct Command {\n std::shared_ptr<MyObject>* cmdObj;\n\n Command(std::shared_ptr<MyObject>& obj) : cmdObj(&obj) {\...
2022/11/22
[ "https://Stackoverflow.com/questions/74534857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2725773/" ]
74,534,869
<p>I don't know why I'm having so much trouble with this. I need to get the average of the sum that is outputted from def main():. I have tried to put the average within the def main and tried to use a separate def. both ways do not come out as expected.</p> <p>Below is where I am at currently.</p> <pre><code>def main(...
[ { "answer_id": 74535116, "author": "Nelfeal", "author_id": 3854570, "author_profile": "https://Stackoverflow.com/users/3854570", "pm_score": 3, "selected": true, "text": "struct Command {\n std::shared_ptr<MyObject>* cmdObj;\n\n Command(std::shared_ptr<MyObject>& obj) : cmdObj(&obj) {\...
2022/11/22
[ "https://Stackoverflow.com/questions/74534869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20034972/" ]
74,534,896
<p>I have this rust method error message:</p> <pre><code>error[E0277]: the `?` operator can only be used on `Option`s, not `Result`s, in an async function that returns `Option` </code></pre> <p>I must admit, I often encounter Rust error messages which appear confusing to me, while to most other coders they make absolut...
[ { "answer_id": 74534975, "author": "etchesketch", "author_id": 4066795, "author_profile": "https://Stackoverflow.com/users/4066795", "pm_score": 2, "selected": false, "text": "clear Option<String> conn.sscan(\"my_set\").await?; ? clear(&self) -> Option<String> Result Option<String> .ok()...
2022/11/22
[ "https://Stackoverflow.com/questions/74534896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/716568/" ]
74,534,904
<p>I'm trying to better understand Futures in Flutter. In this example, my app makes an API call to get some information of type <code>Future&lt;String&gt;</code>. I'd like to display this information in a <code>Text()</code> widget. However, because my <code>String</code> is wrapped in a <code>Future</code> I'm unable...
[ { "answer_id": 74534976, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": true, "text": "FutureBuilder FutureBuilder categoryText = FutureBuilder<String>(\n future: getData(),\n builder:...
2022/11/22
[ "https://Stackoverflow.com/questions/74534904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6483841/" ]
74,534,939
<p>i have an array like this</p> <pre><code>const arr = [1,2,3,4,5,6,7]; </code></pre> <p>i am trying to make sub arrays from this main array so that it will look something like this</p> <pre><code>const splitArray = [[1,4], [2,5], [3,6], [7]]; </code></pre> <p>what i have tried so far is</p> <pre><code>const convertTo...
[ { "answer_id": 74535182, "author": "Anshu", "author_id": 18638118, "author_profile": "https://Stackoverflow.com/users/18638118", "pm_score": -1, "selected": false, "text": "const arr = [1, 2, 3, 4, 5, 6, 7]\nconst splitArray = [];\n\nfor (i = 0; i < arr.length; i++) {\n if (arr[i + 3] !...
2022/11/22
[ "https://Stackoverflow.com/questions/74534939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10829671/" ]
74,534,952
<p>I have table data after doing all joins and restrictions like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Path</th> </tr> </thead> <tbody> <tr> <td>Item 1</td> <td>mobile</td> <td>/mobile/image1.jpg</td> </tr> <tr> <td>Item 1</td> <td>desktop</td> <t...
[ { "answer_id": 74535015, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 2, "selected": false, "text": "SELECT\n Name,\n MAX(CASE WHEN Type = 'mobile' THEN Path END) AS Path_Mobile,\n MAX(CASE WHEN Type...
2022/11/22
[ "https://Stackoverflow.com/questions/74534952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9300894/" ]
74,534,955
<p>My previous question was not understood, so I rephrase and post this one. I have a list of tuple for <code>(class, n_class_examples)</code> like this:</p> <pre class="lang-py prettyprint-override"><code>my_list = (0, 126), (1, 192), (2, 330), (3, 952) ] </code></pre> <p>So I am interested in generating a function, t...
[ { "answer_id": 74535100, "author": "whatf0xx", "author_id": 19625920, "author_profile": "https://Stackoverflow.com/users/19625920", "pm_score": 0, "selected": false, "text": "max_class = max(my_list, key=lambda x: x[1])[-1]\n" }, { "answer_id": 74535325, "author": "chepner", ...
2022/11/22
[ "https://Stackoverflow.com/questions/74534955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17487457/" ]
74,534,956
<p>Why std::transform doesn't work this way:</p> <pre><code>std::string tmp = &quot;WELCOME&quot;; std::string out = &quot;&quot;; std::transform(tmp.begin(), tmp.end(), out.begin(), ::tolower); </code></pre> <p>out is empty!</p> <p>But this works:</p> <pre><code>std::transform(tmp.begin(), tmp.end(), tmp.begin(), ::to...
[ { "answer_id": 74535009, "author": "Stack Danny", "author_id": 6039995, "author_profile": "https://Stackoverflow.com/users/6039995", "pm_score": 4, "selected": true, "text": "out tmp out std::back_inserter std::tolower std::transform(tmp.begin(), tmp.end(), std::back_inserter(out), [](au...
2022/11/22
[ "https://Stackoverflow.com/questions/74534956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4195836/" ]
74,534,961
<p>Need to make a password program, where the user sets a password at the beginning and the password can be entered 3 times before the program is stopped. The program can not be case sensitive.</p> <pre class="lang-java prettyprint-override"><code> public static void main(String[] args) { Scanner sc = new Scann...
[ { "answer_id": 74535031, "author": "anqit", "author_id": 4234254, "author_profile": "https://Stackoverflow.com/users/4234254", "pm_score": 2, "selected": false, "text": "The program can not be case sensitive Program prints as expected, but is not case sensitive String#equalsIgnoreCase !P...
2022/11/22
[ "https://Stackoverflow.com/questions/74534961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20436933/" ]
74,534,974
<p>my Https header is in this format in Mule http requester</p> <pre><code>%dw 2.0 output application/java { &quot;Content-Transfer-Encoding&quot; :&quot;base64&quot;, &quot;X-do-Authentication&quot; : {&quot;Username&quot;: &quot;xxx@yyy.org&quot;,&quot;Password&quot;: &quot;xxxyyy&quot;,&quot;IntegratorKey&qu...
[ { "answer_id": 74535429, "author": "Harshank Bansal", "author_id": 10946202, "author_profile": "https://Stackoverflow.com/users/10946202", "pm_score": 2, "selected": false, "text": "write %dw 2.0 \noutput application/java\n---\n{ \"Content-Transfer-Encoding\" :\"base64\",\n \"X-do-...
2022/11/22
[ "https://Stackoverflow.com/questions/74534974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9557351/" ]
74,534,991
<p>I got a dataset and I want to drop a few unusable rows. I used a filter to the specific condition in which i want the rows to be dropped</p> <p><code>filter = df.groupby(['Bairro'], group_keys=False, sort=True).size() &gt; 1 print(filter.to_string())</code></p> <div class="s-table-container"> <table class="s-table"...
[ { "answer_id": 74535263, "author": "Sam Donnermeyer", "author_id": 13778703, "author_profile": "https://Stackoverflow.com/users/13778703", "pm_score": 2, "selected": false, "text": "new_df = df.loc[df['col2'] == \"True\"]\n new_df = df.loc[(df['col1'] == \"True\") & (df['col2'] == \"True...
2022/11/22
[ "https://Stackoverflow.com/questions/74534991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16443121/" ]
74,535,008
<p>I want to apply padding to the right of this input field but its not working this is how it look like I want to add a margin like on the left side to the right side <a href="https://i.stack.imgur.com/VeBPN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VeBPN.png" alt="This is the how it look like...
[ { "answer_id": 74535191, "author": "Cédric", "author_id": 17684809, "author_profile": "https://Stackoverflow.com/users/17684809", "pm_score": 0, "selected": false, "text": "width: 100% calc() :root {\n --input-margin: 10px;\n}\n\nbody {\n margin: 0;\n padding: 10px;\n}\n\ninput {\n w...
2022/11/22
[ "https://Stackoverflow.com/questions/74535008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20370427/" ]
74,535,010
<p>Been struggling with this problem, can't figure it out. My simplified table schemas are:</p> <ol> <li>SalesOrderHeader(SalesOrderID int, ShipToAddressID int),</li> <li>SalesOrderDetails(SalesOrderID int, ProductID int),</li> <li>Address(ShipToAddressID int, City nvarchar),</li> <li>Product(ProductID int, ProductCate...
[ { "answer_id": 74535191, "author": "Cédric", "author_id": 17684809, "author_profile": "https://Stackoverflow.com/users/17684809", "pm_score": 0, "selected": false, "text": "width: 100% calc() :root {\n --input-margin: 10px;\n}\n\nbody {\n margin: 0;\n padding: 10px;\n}\n\ninput {\n w...
2022/11/22
[ "https://Stackoverflow.com/questions/74535010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19036367/" ]
74,535,025
<p><code>Concurrency::task.wait()</code> throws <code>invalid_operation</code> exception: <strong>&quot;Illegal to wait on a task in a Windows Runtime STA.&quot;</strong></p> <p>This exception occurs since ~14th November 2022 and seems to be Microsoft update related.</p> <p>The exception does not occur, when building i...
[ { "answer_id": 74557519, "author": "user2279376", "author_id": 2279376, "author_profile": "https://Stackoverflow.com/users/2279376", "pm_score": 1, "selected": false, "text": "try {\n response = client.request(request).get();\n} catch (...) {\n}\n" }, { "answer_id": 746559...
2022/11/22
[ "https://Stackoverflow.com/questions/74535025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11440276/" ]
74,535,066
<p>The powerset of {1, 2, 3} is:</p> <p>{{}, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}</p> <p>I have a String array in java,</p> <pre><code> String elements={&quot;apple&quot;,&quot;mango&quot;,&quot;banana&quot;}; String set[]=elements.split(&quot;[ ,]+&quot;); </code></pre> <p>How do I print th...
[ { "answer_id": 74557519, "author": "user2279376", "author_id": 2279376, "author_profile": "https://Stackoverflow.com/users/2279376", "pm_score": 1, "selected": false, "text": "try {\n response = client.request(request).get();\n} catch (...) {\n}\n" }, { "answer_id": 746559...
2022/11/22
[ "https://Stackoverflow.com/questions/74535066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17017229/" ]
74,535,138
<p>In Julia, some amazing packages like <code>ProgressMeter</code> provide an easy API for displaying progress bars in the REPL. However, it seems like they only work with regular for loops, comprehensions and map/reduce. So, e.g., these work:</p> <pre><code>using ProgressMeter function sleepyAdd(arg::Int64) sleep...
[ { "answer_id": 74538890, "author": "Dan Getz", "author_id": 3580870, "author_profile": "https://Stackoverflow.com/users/3580870", "pm_score": 3, "selected": false, "text": "@showprogress @macroexpand @showprogress... let t_nums = nums, \n t_meter = ProgressMeter.Progress(ProgressMeter...
2022/11/22
[ "https://Stackoverflow.com/questions/74535138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12104222/" ]
74,535,156
<p>I am using Elementor Anywhere to create a specific display for my WooCommerce products.</p> <p>I have a filter and for the filter works I need to use Post blocks Adv.</p> <p>There I ask to display current archive.</p> <p>I have the possibility to put a query filter, but I can't exclude products from a certain catego...
[ { "answer_id": 74538890, "author": "Dan Getz", "author_id": 3580870, "author_profile": "https://Stackoverflow.com/users/3580870", "pm_score": 3, "selected": false, "text": "@showprogress @macroexpand @showprogress... let t_nums = nums, \n t_meter = ProgressMeter.Progress(ProgressMeter...
2022/11/22
[ "https://Stackoverflow.com/questions/74535156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573761/" ]
74,535,179
<p>Firstly I'm using C language. I want a variable that I refer to as a parameter to change outside the function when it is changed inside the function. But the problem is that the variable is of type linked list and I want to add to the linked list.</p> <p>So what I'm trying to do is add the linked list outside the fu...
[ { "answer_id": 74538890, "author": "Dan Getz", "author_id": 3580870, "author_profile": "https://Stackoverflow.com/users/3580870", "pm_score": 3, "selected": false, "text": "@showprogress @macroexpand @showprogress... let t_nums = nums, \n t_meter = ProgressMeter.Progress(ProgressMeter...
2022/11/22
[ "https://Stackoverflow.com/questions/74535179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19912998/" ]
74,535,211
<p>I have a pandas df like this:</p> <pre><code>MEMBERSHIP [2022_K_, EWREW_NK] [333_NFK_,2022_K_, EWREW_NK, 000] </code></pre> <p>And I have a list of keys:</p> <pre><code>list_k = [&quot;_K_&quot;,&quot;_NK_&quot;,&quot;_NKF_&quot;,&quot;_KF_&quot;] </code></pre> <p>I want to add and create a column that count if any ...
[ { "answer_id": 74535624, "author": "coelidonum", "author_id": 12430846, "author_profile": "https://Stackoverflow.com/users/12430846", "pm_score": 0, "selected": false, "text": "count_row=0\ndf['Count']= None\nfor i in df['MEMBERSHIP_SPLIT']:\n count_element=0\n\n for sub in i:\n for...
2022/11/22
[ "https://Stackoverflow.com/questions/74535211", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12430846/" ]
74,535,282
<p>After upgrading in the backend by clicking on update button, I'm getting <em>&quot;Our website is currently undergoing maintenance.&quot;</em> both on front- and backend. Deleted update-assets folder, nothing changed. When I go to <em>mydomain/recovery/update/index.php</em> I'm getting:</p> <blockquote> <p>Slim Appl...
[ { "answer_id": 74537238, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 1, "selected": false, "text": "{shopwareRoot}/files/backup/auto_update/dummy" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74535282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2511599/" ]
74,535,285
<p>I've been trying to get the switch statement to work without having to be nested, but it won't work because it's linked to the if statement I've made.</p> <p>Does anybody know how i can move the boardType switch statement outside of the duration switch statement with the if statement still working? Thank you</p> <pr...
[ { "answer_id": 74537238, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 1, "selected": false, "text": "{shopwareRoot}/files/backup/auto_update/dummy" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74535285", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17145420/" ]
74,535,292
<p>I using <a href="https://github.com/dsherret/ts-morph" rel="nofollow noreferrer">ts-morph</a> to analyze my code and I want to get the parent <code>CallExpression</code> from <code>Identifier</code> location. So I use <code>.getParentWhileKind(SyntaxKind.CallExpression)</code>, but the function returns <code>null</...
[ { "answer_id": 74537238, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 1, "selected": false, "text": "{shopwareRoot}/files/backup/auto_update/dummy" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74535292", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10932853/" ]
74,535,293
<p>After starting the program (launching TomCat) there are no tables created in the schema, but the table &quot;player&quot; has to be created automatically.</p> <p>I checked hibernate config, but can't find where is the problem. I've tried changing hbm2ddl.auto to hibernate.hbm2ddl.auto (also create, create-drop etc.)...
[ { "answer_id": 74537238, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 1, "selected": false, "text": "{shopwareRoot}/files/backup/auto_update/dummy" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74535293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18504667/" ]
74,535,305
<p>I have dataframe, and I would like to merge the rows that has the same value in reversed columns. An example as below:</p> <pre><code>Column1 Column2 A B B A C D D C E F </code></pre> <p>Expected results:</p> <pre><code>Column1 Column2 A B C D E F </code></pre> <p>As ...
[ { "answer_id": 74537238, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 1, "selected": false, "text": "{shopwareRoot}/files/backup/auto_update/dummy" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74535305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14633866/" ]
74,535,309
<p>I'm trying to make an exercise app and when a user finishes a set of exercises, I want them to be able to press a button to go back into the home screen.</p> <p>There are 5 exercises in total, so I made 5 exercise views that shows the 5 different exercises and each exercise view has a navigation link at the bottom t...
[ { "answer_id": 74537238, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 1, "selected": false, "text": "{shopwareRoot}/files/backup/auto_update/dummy" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74535309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18810574/" ]
74,535,331
<p>Is there a way to print a specified character of a string in a certain position?</p> <p>For example:</p> <pre><code>char str[]=&quot;Hello&quot;; Output: o </code></pre> <p>I have to print the letter &quot;o&quot; in the position indicated by its index (in this case &quot;4&quot;);</p>
[ { "answer_id": 74537238, "author": "dneustadt", "author_id": 8556259, "author_profile": "https://Stackoverflow.com/users/8556259", "pm_score": 1, "selected": false, "text": "{shopwareRoot}/files/backup/auto_update/dummy" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74535331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523849/" ]
74,535,332
<p>I have a df like this:</p> <pre><code>data &lt;- tribble(~id, ~othervar, ~it_1, ~it_2, ~it_3, ~it_4, ~it_5, ~it_6, &quot;k01&quot;, &quot;lum&quot;, &quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;a&quot;, NA, NA, &quot;k01&quot;, &quot;lum&quot;, NA, NA, NA, NA, &quot;a&quot;, &quot;d...
[ { "answer_id": 74535435, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 1, "selected": false, "text": "ifelse summarise library(dplyr)\ndata %>% \n group_by(id) %>% \n summarise(across(everything(), ~ ifelse(any(comple...
2022/11/22
[ "https://Stackoverflow.com/questions/74535332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14119277/" ]
74,535,347
<p>I try to implement a method to segment image with seed points, and assign each pixel to nearest point.</p> <p>for example, if the pixel close to 1, then set to 1.</p> <p>input:</p> <pre><code>0 0 0 0 0 3 0 0 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 </code></pre> <p>output:</p> <pre><code>1 1 1 3 3 3 3 1 1 1 2 2 3 3 1...
[ { "answer_id": 74536942, "author": "Mark Setchell", "author_id": 2836621, "author_profile": "https://Stackoverflow.com/users/2836621", "pm_score": 3, "selected": true, "text": "magick -size 60x30 xc: \\\n -sparse-color Voronoi '10,10 red 40,20 lime 50,0 blue' \\\n result.png\n mag...
2022/11/22
[ "https://Stackoverflow.com/questions/74535347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7364454/" ]
74,535,353
<p>I'm using Laravel 9 with php 8.1 in a pretty advanced project. In this project I have a parent form which allows a purchase order document to be created. The po document has at least one child row which is added by clicking an add button using livewire. However when this is saved the document it belongs to has not b...
[ { "answer_id": 74536942, "author": "Mark Setchell", "author_id": 2836621, "author_profile": "https://Stackoverflow.com/users/2836621", "pm_score": 3, "selected": true, "text": "magick -size 60x30 xc: \\\n -sparse-color Voronoi '10,10 red 40,20 lime 50,0 blue' \\\n result.png\n mag...
2022/11/22
[ "https://Stackoverflow.com/questions/74535353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6236430/" ]
74,535,367
<p>I've written down this following &quot;Design source&quot; code (on Xilinx Vivado) The code is written in System Verilog, and it is the Hamming 7,4 encoder</p> <p><a href="https://en.wikipedia.org/wiki/Hamming(7,4)" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Hamming(7,4)</a></p> <pre><code> module eccpr...
[ { "answer_id": 74535456, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 3, "selected": true, "text": "assign always assign always always @(*) begin\n p1 = data_in[0] + data_in[1] + data_in[3];\n p2 = data_in[0] + dat...
2022/11/22
[ "https://Stackoverflow.com/questions/74535367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17773379/" ]
74,535,370
<p>This is my <code>pubspec.yaml</code></p> <pre><code>flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true # To add assets to your application, add an assets section, lik...
[ { "answer_id": 74535456, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 3, "selected": true, "text": "assign always assign always always @(*) begin\n p1 = data_in[0] + data_in[1] + data_in[3];\n p2 = data_in[0] + dat...
2022/11/22
[ "https://Stackoverflow.com/questions/74535370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17902196/" ]
74,535,375
<p>I have two dataframes:</p> <pre><code>df1 = pd.DataFrame({&quot;product&quot;:['apples', 'bananas', 'oranges', 'kiwi']}) df2 = pd.Dataframe({&quot;product&quot;:['apples', 'aples', 'appples', 'banans', 'oranges', 'kiwki'], &quot;key&quot;: [1, 2, 3, 4, 5, 6]}) </code></pre> <p>I want to use something like a set(df2)...
[ { "answer_id": 74535456, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 3, "selected": true, "text": "assign always assign always always @(*) begin\n p1 = data_in[0] + data_in[1] + data_in[3];\n p2 = data_in[0] + dat...
2022/11/22
[ "https://Stackoverflow.com/questions/74535375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573915/" ]
74,535,376
<p>Should I need to Global everything Global? Considering scope?</p> <p>I keep randomly running into this problem, Im gonna assume its some how a syntax problem on myside. But variables out side of a scope in python seems to be inconsistent... my situation is</p> <pre><code>libFound=False def Setup(): _setup_import...
[ { "answer_id": 74535456, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 3, "selected": true, "text": "assign always assign always always @(*) begin\n p1 = data_in[0] + data_in[1] + data_in[3];\n p2 = data_in[0] + dat...
2022/11/22
[ "https://Stackoverflow.com/questions/74535376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494804/" ]
74,535,377
<p><a href="https://i.stack.imgur.com/xnq3G.png" rel="nofollow noreferrer">Errors for this code</a>I don't understand how the code under the docstring is running. I am trying to make a main menu. I also keep getting errors under the comments</p> <pre><code>def main_menu(): # Function for the interface where the use...
[ { "answer_id": 74535456, "author": "toolic", "author_id": 197758, "author_profile": "https://Stackoverflow.com/users/197758", "pm_score": 3, "selected": true, "text": "assign always assign always always @(*) begin\n p1 = data_in[0] + data_in[1] + data_in[3];\n p2 = data_in[0] + dat...
2022/11/22
[ "https://Stackoverflow.com/questions/74535377", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573938/" ]
74,535,378
<p>I have two models:</p> <pre><code>class Student(models.Model): first_name = models.CharField() last_name = models.CharField() class Group(models.Model): name = models.CharField() students = models.ManyToManyField(Student) </code></pre> <p>Some data (<code>first_name</code> and <code>last_name</code...
[ { "answer_id": 74535641, "author": "Sunderam Dubey", "author_id": 17562044, "author_profile": "https://Stackoverflow.com/users/17562044", "pm_score": 0, "selected": false, "text": "groups = Group.objects.filter(students__first_name__in=['Jordan'])\n" }, { "answer_id": 74561823, ...
2022/11/22
[ "https://Stackoverflow.com/questions/74535378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9112151/" ]
74,535,394
<p>Apologies if this doesn't make sense! Fairly new to WinForms and this is for a uni assessment. My main form is as below with the method I want to call in another class. I've renamed from Form1 to LoginPage.</p> <pre><code>public partial class LoginPage : Form { public LoginPage() { In...
[ { "answer_id": 74535576, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "Program Application.Run(new Form1()); LoginPage Program public static LoginPage loginPage; Main static void Mai...
2022/11/22
[ "https://Stackoverflow.com/questions/74535394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17516619/" ]
74,535,405
<p>My method doesn't deliver the &quot;expect&quot; string that I expect to get from my input string. It should close the parenthesis after the list of words.</p> <pre><code>public static string Dostuff(string st) { String s = &quot;&quot;; String pattern = @&quot;[^($]&quot;; if (st.Contains(&quot;creat...
[ { "answer_id": 74535576, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "Program Application.Run(new Form1()); LoginPage Program public static LoginPage loginPage; Main static void Mai...
2022/11/22
[ "https://Stackoverflow.com/questions/74535405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18659251/" ]
74,535,526
<p>So suppose I have a function in my code like this:</p> <pre><code>const getAccountName = account =&gt; `${account.name} ${account.lastName}`; </code></pre> <p>Now, in the function I'm not doing something like <code>${account?.name ?? ''}</code> because in this particular case I'm 100% sure that account will always h...
[ { "answer_id": 74535576, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "Program Application.Run(new Form1()); LoginPage Program public static LoginPage loginPage; Main static void Mai...
2022/11/22
[ "https://Stackoverflow.com/questions/74535526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3549177/" ]
74,535,597
<p>I've made a histogram for the different age groups in my data:</p> <pre><code>&gt; dput(Agedata[1:20,]) structure(list(samples = c(&quot;Pt1&quot;, &quot;Pt10&quot;, &quot;Pt101&quot;, &quot;Pt103&quot;, &quot;Pt106&quot;, &quot;Pt11&quot;, &quot;Pt17&quot;, &quot;Pt18&quot;, &quot;Pt2&quot;, &quot;Pt24&quot;, &qu...
[ { "answer_id": 74535752, "author": "Allan Cameron", "author_id": 12500315, "author_profile": "https://Stackoverflow.com/users/12500315", "pm_score": 3, "selected": true, "text": "geom_bar gghistogram gghistogram geom_text gghistogram ggplot(Agedata, aes(age_group, color = resp)) +\n geo...
2022/11/22
[ "https://Stackoverflow.com/questions/74535597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17945841/" ]
74,535,599
<p>I have a class like this:</p> <pre><code>class ErrorMessages(object): &quot;&quot;&quot;a class that holds all error messages and then presents them to the user)&quot;&quot;&quot; messages= [] userStrMessages= &quot;&quot; def newError(self, Error): self.userStrMessages+= Error def __...
[ { "answer_id": 74535655, "author": "John Carter", "author_id": 459082, "author_profile": "https://Stackoverflow.com/users/459082", "pm_score": -1, "selected": false, "text": "myMessage = ErrorMessage()\nmyMessage.newError(\"important error message\")\n" }, { "answer_id": 74535690...
2022/11/22
[ "https://Stackoverflow.com/questions/74535599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20148636/" ]
74,535,615
<p>I'm trying to figure why/how can I make the button text update before the &quot;each&quot; loop, so I can provide feedback to the users while it's running... but it only seems to update after the &quot;each&quot; has completed.</p> <p>In my example, the button will go &quot;Updating please wait...&quot; after the ea...
[ { "answer_id": 74537998, "author": "nka", "author_id": 10946618, "author_profile": "https://Stackoverflow.com/users/10946618", "pm_score": 0, "selected": false, "text": " $(\"#UpdateRFID\").click(function() {\n $('#UpdateRFID').prop(\"disabled\", true).prop(\"value\", \"Recherche ...\...
2022/11/22
[ "https://Stackoverflow.com/questions/74535615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10946618/" ]
74,535,625
<p>Help please! I have installed for view class permission_class which allow GET-requests, but when i send GET-request i get messege: GET method is not allowed</p> <p>i have <strong>views.py</strong> file:</p> <pre><code>class WomenAPIList(generics.ListCreateAPIView): queryset = Women.objects.all() serializer_c...
[ { "answer_id": 74537998, "author": "nka", "author_id": 10946618, "author_profile": "https://Stackoverflow.com/users/10946618", "pm_score": 0, "selected": false, "text": " $(\"#UpdateRFID\").click(function() {\n $('#UpdateRFID').prop(\"disabled\", true).prop(\"value\", \"Recherche ...\...
2022/11/22
[ "https://Stackoverflow.com/questions/74535625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20461872/" ]
74,535,646
<p>I want to randomize the popping of the list of the baby variable, but it's only popping the baby[1].</p> <pre><code>&lt;body&gt; &lt;h1 id=&quot;1&quot;&gt;bebe&lt;/h1&gt; &lt;h1 id=&quot;2&quot;&gt;tae&lt;/h1&gt; &lt;script&gt; var baby = [document.getElementById('1').innerText, docum...
[ { "answer_id": 74537998, "author": "nka", "author_id": 10946618, "author_profile": "https://Stackoverflow.com/users/10946618", "pm_score": 0, "selected": false, "text": " $(\"#UpdateRFID\").click(function() {\n $('#UpdateRFID').prop(\"disabled\", true).prop(\"value\", \"Recherche ...\...
2022/11/22
[ "https://Stackoverflow.com/questions/74535646", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17085102/" ]
74,535,682
<p>i have this problem programming in Next.js 13. I really appreciate any help or suggestion =), here are the files:</p> <h1>typingtext.tsx</h1> <pre><code>import React from &quot;react&quot;; export function useTypedText(text: string, speed: number, delayTime?: number) { const [textState, setTextState] = React.useS...
[ { "answer_id": 74537998, "author": "nka", "author_id": 10946618, "author_profile": "https://Stackoverflow.com/users/10946618", "pm_score": 0, "selected": false, "text": " $(\"#UpdateRFID\").click(function() {\n $('#UpdateRFID').prop(\"disabled\", true).prop(\"value\", \"Recherche ...\...
2022/11/22
[ "https://Stackoverflow.com/questions/74535682", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17903717/" ]
74,535,707
<p>I am getting the following errors in Intellij whilst trying to connect to a H2 database.</p> <p><code>Hibernate: create table user (id bigint not null, email varchar(255), name varchar(255), primary key (id))</code></p> <p><code>2022-11-22 15:53:11.743 WARN 13376 --- [ main] o.h.t.s.i.ExceptionHandlerLogg...
[ { "answer_id": 74536398, "author": "abidinberkay", "author_id": 1261764, "author_profile": "https://Stackoverflow.com/users/1261764", "pm_score": 0, "selected": false, "text": "int long @Id\n @GeneratedValue(strategy = GenerationType.IDENTITY)\n GenerationType.AUTO CrudRepository<Us...
2022/11/22
[ "https://Stackoverflow.com/questions/74535707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20110547/" ]
74,535,727
<p>I have a strange bug, I am able to receive two different values from the server successfully and when I do Math calculations for them the returned value is always zero.</p> <p>My code is very simple</p> <pre><code> val achievedViews = campaign.achievedViews val totalViews = campaign.totalViews val percentage = ...
[ { "answer_id": 74535933, "author": "undermark5", "author_id": 3251429, "author_profile": "https://Stackoverflow.com/users/3251429", "pm_score": 1, "selected": true, "text": "achievedViews totalViews Int div 0 Float Double Int" }, { "answer_id": 74536642, "author": "ba1", ...
2022/11/22
[ "https://Stackoverflow.com/questions/74535727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8415711/" ]
74,535,746
<p>so here's my collection. This consists of users and their data</p> <pre><code>{ userId: 6udg, data: [ { date: 22-09-2022 hits: 98 }, { date: 23-09-2022 hits: 88 }, { date: 24-09-2022 hits: 100 }, { date: 24-11-2022 ...
[ { "answer_id": 74535933, "author": "undermark5", "author_id": 3251429, "author_profile": "https://Stackoverflow.com/users/3251429", "pm_score": 1, "selected": true, "text": "achievedViews totalViews Int div 0 Float Double Int" }, { "answer_id": 74536642, "author": "ba1", ...
2022/11/22
[ "https://Stackoverflow.com/questions/74535746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7599905/" ]
74,535,766
<p>Given the following task. We have an <code>Employee</code> and a <code>Company</code> classes. Each instance of <code>Employee</code> class is stored in array <code>Employee[] employees</code> in the <code>Company</code> class. I need a method which removes an instance of <code>Employee</code> in the array <code>Emp...
[ { "answer_id": 74536059, "author": "Lorenz Hetterich", "author_id": 20473701, "author_profile": "https://Stackoverflow.com/users/20473701", "pm_score": 3, "selected": true, "text": "public Employee removeEmployee(int id) {\n Optional<Employee> employee = Arrays.stream(employees)\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74535766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16561343/" ]
74,535,815
<p>Hey I am making a telegram bot and I need it to be able to run the same command multiple times at once.</p> <pre><code>dispatcher.add_handler(CommandHandler(&quot;send&quot;, send)) </code></pre> <p>This is the command ^</p> <p>And inside the command it starts a function:</p> <pre><code>sendmail(email, amount, updat...
[ { "answer_id": 74536037, "author": "Hunter", "author_id": 15076691, "author_profile": "https://Stackoverflow.com/users/15076691", "pm_score": 1, "selected": false, "text": "import threading\nx1 = threading.Thread(target=sendmail, args=(email, amount, update, context))\nx1.start()\n x1 = ...
2022/11/22
[ "https://Stackoverflow.com/questions/74535815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494538/" ]
74,535,821
<p>I am trying to enable touchdrag and mousedrag only for mobile devices.</p> <pre><code>customOptions: OwlOptions = { loop: true, mouseDrag: false, touchDrag: false, pullDrag: false, dots: false, navText: ['', ''], items: 4, responsive: { 0: { touchDrag: true, mous...
[ { "answer_id": 74536037, "author": "Hunter", "author_id": 15076691, "author_profile": "https://Stackoverflow.com/users/15076691", "pm_score": 1, "selected": false, "text": "import threading\nx1 = threading.Thread(target=sendmail, args=(email, amount, update, context))\nx1.start()\n x1 = ...
2022/11/22
[ "https://Stackoverflow.com/questions/74535821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18660674/" ]
74,535,834
<p>I would like to use the corr.test function from the psych package in order to calculate the correlation and the significance between corresponding columns of two dataframes. A simplified example of the dataframes <code>Df1</code> and <code>Df2</code> I am working with is this:</p> <pre><code>set.seed(42) Df1 &lt;- d...
[ { "answer_id": 74536169, "author": "Armel Soubeiga", "author_id": 11368978, "author_profile": "https://Stackoverflow.com/users/11368978", "pm_score": 0, "selected": false, "text": "rcorr() Hmisc library(\"Hmisc\")\nres2 <- rcorr(as.matrix(cbind(Df1, Df2)))\nres2\n P\n X1 X2 X3 ...
2022/11/22
[ "https://Stackoverflow.com/questions/74535834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7025817/" ]
74,535,852
<p>My custom post type &quot;references&quot; has a custom field called &quot;references_count&quot;. It has a numeric value.</p> <p>I have an custom taxonomy called &quot;country&quot; with a custom field called &quot;country_count&quot; for the terms.</p> <p><strong>Background:</strong> The custom post type &quot;ref...
[ { "answer_id": 74537879, "author": "Rizwan Ahmad", "author_id": 20133382, "author_profile": "https://Stackoverflow.com/users/20133382", "pm_score": 1, "selected": false, "text": "if($_SERVER[\"REMOTE_ADDR\"]=='111.111.111.111'){\n//run only my ip\n add_action(\"init\",\"update_all_ter...
2022/11/22
[ "https://Stackoverflow.com/questions/74535852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12405298/" ]
74,535,858
<p>I'm struggling with expression trees and Entity Framework Core.</p> <p>I have a method that returns an expression tree that I will use for filtering, something like:</p> <pre><code>public Expression&lt;Func&lt;E, bool&gt;&gt; GetWherePredicate&lt;E&gt;(Func&lt;E, NpgsqlTsVector&gt; selector, string queryText) { ...
[ { "answer_id": 74537879, "author": "Rizwan Ahmad", "author_id": 20133382, "author_profile": "https://Stackoverflow.com/users/20133382", "pm_score": 1, "selected": false, "text": "if($_SERVER[\"REMOTE_ADDR\"]=='111.111.111.111'){\n//run only my ip\n add_action(\"init\",\"update_all_ter...
2022/11/22
[ "https://Stackoverflow.com/questions/74535858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/726411/" ]
74,535,875
<p>I am trying to get the scroll position of a div in React. I tried getting the window the scroll values the values are always 0.</p> <pre><code> handleScrollPosition(e){ sessionStorage.setItem(&quot;scrollPosition&quot;, this.myRef.current!.scrollTop.toString()); }; &lt;SearchListWrapper className=&quo...
[ { "answer_id": 74536220, "author": "MalwareMoon", "author_id": 20241005, "author_profile": "https://Stackoverflow.com/users/20241005", "pm_score": 1, "selected": true, "text": "getBoundingClientRect().top document.getElementById(element).getBoundingClientRect().top;\n useRef yourRef.curr...
2022/11/22
[ "https://Stackoverflow.com/questions/74535875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574172/" ]
74,535,878
<p>I have the following folder structure</p> <p><a href="https://i.stack.imgur.com/GFOYv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GFOYv.png" alt="enter image description here" /></a></p> <p>I want to import both MessageList.tsx and MessageSent.tsx inside my Chat.tsx</p> <pre><code>// Chat.tsx ...
[ { "answer_id": 74536009, "author": "Art Bauer", "author_id": 8350191, "author_profile": "https://Stackoverflow.com/users/8350191", "pm_score": 0, "selected": false, "text": "// index.ts\nexport * from './MessageList';\nexport * from './MessageSent';\n" }, { "answer_id": 74536013,...
2022/11/22
[ "https://Stackoverflow.com/questions/74535878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12695692/" ]
74,535,917
<pre><code>async function change_status(object_id:number){ const response = await fetch('/api/db', { method: 'POST', body: JSON.parse(`{&quot;id&quot;:${object_id}}`) }); if (!response.ok){ throw new Error(response.statusText); } return await response.json(); }...
[ { "answer_id": 74536009, "author": "Art Bauer", "author_id": 8350191, "author_profile": "https://Stackoverflow.com/users/8350191", "pm_score": 0, "selected": false, "text": "// index.ts\nexport * from './MessageList';\nexport * from './MessageSent';\n" }, { "answer_id": 74536013,...
2022/11/22
[ "https://Stackoverflow.com/questions/74535917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12618447/" ]
74,535,921
<p>Here is my data:</p> <pre><code>df1 &lt;- fread(' id , date1 , date2 id_0001 , 2017-01-01, 2017-01-05 id_0002 , 2017-01-02, 2017-01-08 id_0003 , 2017-01-04, 2017-01-07 ') df2&lt;- fread(' date , value 2017-01-01, 1 2017-01-02, 2 2017-01-03, 5 ...
[ { "answer_id": 74536218, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 2, "selected": false, "text": "pmap between library(purrr)\nlibrary(dplyr)\ndf1 %>% \n mutate(mean = pmap(across(date1:date2), ~ mean(df2$value[bet...
2022/11/22
[ "https://Stackoverflow.com/questions/74535921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8188773/" ]
74,535,953
<p>I want to get count of form fields.</p> <p>Total count of fields and valid and invalid form fields. So I try with this function but getting this below error.</p> <p>Error I am getting below :</p> <pre><code>Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Abstract...
[ { "answer_id": 74536158, "author": "RenokK", "author_id": 2377357, "author_profile": "https://Stackoverflow.com/users/2377357", "pm_score": 0, "selected": false, "text": "[key: string]: T keyof firstFormGroup[name as keyof AbstractControl].status === 'INVALID'\n keyof typeof T const firs...
2022/11/22
[ "https://Stackoverflow.com/questions/74535953", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20200307/" ]
74,535,967
<p>So I have the following composable function:</p> <pre class="lang-kotlin prettyprint-override"><code>@Composable fun SearchResult() { if (searchInput.isNotEmpty()) { Column() { Text(&quot;Search Result!&quot;) } } } </code></pre> <p>Then I called the function from here:</p> <pre c...
[ { "answer_id": 74536068, "author": "Solved Games", "author_id": 18081244, "author_profile": "https://Stackoverflow.com/users/18081244", "pm_score": 0, "selected": false, "text": "searchInput @Composable\nfun SearchResult() {\n if (/*this one*/searchInput.isNotEmpty()) {\n Colum...
2022/11/22
[ "https://Stackoverflow.com/questions/74535967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18081244/" ]
74,535,973
<p>I have a dataframe with price quotes for a variety of parts and makers. ~10k parts and 10 makers, so my dataset contains up to 100k rows, looking roughly like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Part</th> <th>Maker</th> <th>Price</th> </tr> </thead> <tbody> <tr> <td>1<...
[ { "answer_id": 74536068, "author": "Solved Games", "author_id": 18081244, "author_profile": "https://Stackoverflow.com/users/18081244", "pm_score": 0, "selected": false, "text": "searchInput @Composable\nfun SearchResult() {\n if (/*this one*/searchInput.isNotEmpty()) {\n Colum...
2022/11/22
[ "https://Stackoverflow.com/questions/74535973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4039994/" ]
74,536,025
<p>I am trying to pull info from a log file but can not figure out how to limit the entries to include brackets and two digits in the bracket.</p> <p>The log file has entries similar to:</p> <pre><code>11/22/22 11:25:26 RandomUselessData12453: 053, Clen 24, Flen 25, Data: [00] Data: [00 01 23 45 03 15] </code></pre> <p...
[ { "answer_id": 74536120, "author": "Abraham Zinala", "author_id": 14903754, "author_profile": "https://Stackoverflow.com/users/14903754", "pm_score": 2, "selected": false, "text": "Data: [00] 'Data: \\[\\d{2}\\]' Select-String -Path \"C:\\blah\\log.log\" -Pattern 'Data: \\[\\d{2}\\]'| \...
2022/11/22
[ "https://Stackoverflow.com/questions/74536025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20531556/" ]
74,536,077
<p>I want to show error message like required error message for max input limit but using below code it work for required but not for maxlength . I also not to use ts file . Is there any way to achieve this. Thanks</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <di...
[ { "answer_id": 74536120, "author": "Abraham Zinala", "author_id": 14903754, "author_profile": "https://Stackoverflow.com/users/14903754", "pm_score": 2, "selected": false, "text": "Data: [00] 'Data: \\[\\d{2}\\]' Select-String -Path \"C:\\blah\\log.log\" -Pattern 'Data: \\[\\d{2}\\]'| \...
2022/11/22
[ "https://Stackoverflow.com/questions/74536077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20122571/" ]
74,536,093
<p>How can I schedule a task with Umbraco Cms. I would like to create scheduled emails with Umbraco 9.</p> <p>I have tried unsuccessfully to get a documentation that could help. Could you please help or refer me to a documentation</p>
[ { "answer_id": 74536120, "author": "Abraham Zinala", "author_id": 14903754, "author_profile": "https://Stackoverflow.com/users/14903754", "pm_score": 2, "selected": false, "text": "Data: [00] 'Data: \\[\\d{2}\\]' Select-String -Path \"C:\\blah\\log.log\" -Pattern 'Data: \\[\\d{2}\\]'| \...
2022/11/22
[ "https://Stackoverflow.com/questions/74536093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20281160/" ]
74,536,098
<p>I'm trying to write a PowerShell script to update a file inside of a zip file, as I need to automate this for a number of zips. My issue is that the file I need to update is inside a few directories inside the zip, such as:</p> <p>myZip.zip -&gt; dir1/dir2/file.txt</p> <p>I'm trying to use the command such as</p> <p...
[ { "answer_id": 74547816, "author": "tboyle3", "author_id": 20574212, "author_profile": "https://Stackoverflow.com/users/20574212", "pm_score": 1, "selected": false, "text": "myZip.zip\n-> dir1\n-> -> dir2\n-> -> -> dir3\n-> -> -> -> myFile.txt\n dir1\n-> dir2\n-> -> dir3\n-> -> -> myFile...
2022/11/22
[ "https://Stackoverflow.com/questions/74536098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574212/" ]