qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,390,753
<p>I'm referring to the snippet in useEffect in the for loop at the last line. After I ran the code once and I console.logged the grids state with the button I rendered I'd get an array with only the number 196.</p> <pre><code>import { useState, useEffect } from &quot;react&quot;; const Gameboard = () =&gt; { const ...
[ { "answer_id": 74390824, "author": "Rono", "author_id": 2292457, "author_profile": "https://Stackoverflow.com/users/2292457", "pm_score": 3, "selected": true, "text": "if (yourArray.Any(a => example1.StartsWith(a))\n" }, { "answer_id": 74392129, "author": "vivek nuna", "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74390753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20306342/" ]
74,390,767
<pre><code>{&quot;reels&quot;:{&quot;6592252783&quot;:{&quot;id&quot;:&quot;6592252783&quot;,&quot;latest_reel_media&quot;:1668086478,&quot;expiring_at&quot;:1668172878,&quot;seen&quot;.... </code></pre> <p>How can we do 6592252783 is changing every time.</p> <pre><code>Root myDeserializedClass = JsonConvert.Deserializ...
[ { "answer_id": 74390824, "author": "Rono", "author_id": 2292457, "author_profile": "https://Stackoverflow.com/users/2292457", "pm_score": 3, "selected": true, "text": "if (yourArray.Any(a => example1.StartsWith(a))\n" }, { "answer_id": 74392129, "author": "vivek nuna", "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74390767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5695903/" ]
74,390,792
<p><strong>EDIT</strong>:</p> <p>It seems that there is a something unsupported by valgrind with alpine ditrib. With a simple main like this :</p> <pre><code>#include &lt;iostream&gt; int main() {return 0;} </code></pre> <p>valgrind return a leak :</p> <pre><code>==8== Memcheck, a memory error detector ==8== Copyright ...
[ { "answer_id": 74393766, "author": "Paul Floyd", "author_id": 6594576, "author_profile": "https://Stackoverflow.com/users/6594576", "pm_score": 1, "selected": false, "text": "--track-origins=yes --keep-debuginfo=yes #include <stdlib.h>\n\nint main()\n{\n int* pi = malloc(3456);\n}\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74390792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17457691/" ]
74,390,817
<p>I am trying to call an api base on scroll View current position but not sure how to I achieve that.</p> <p>This is my code</p> <pre><code> &lt;ScrollView ref={scrollViewRef} scrollEventThrottle={0} onScroll={({nativeEvent}) =&gt; { console.log( nati...
[ { "answer_id": 74391291, "author": "Yusuf Dimari", "author_id": 15664914, "author_profile": "https://Stackoverflow.com/users/15664914", "pm_score": 1, "selected": false, "text": "useEffect(() => {\n Window.addEventListener(‘scroll’_.debounce(setScroll,1000));},[]);\n" }, { "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74390817", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7588807/" ]
74,390,879
<p>I try to make a code more compact by coding a helper method, because the code is very repetitive.</p> <p>The code consists of:</p> <ol> <li>call a command (remote ssh, or local command, this part is not interesting for my question)</li> <li>check if it was a success</li> <li>if not, stop here and return the return c...
[ { "answer_id": 74391291, "author": "Yusuf Dimari", "author_id": 15664914, "author_profile": "https://Stackoverflow.com/users/15664914", "pm_score": 1, "selected": false, "text": "useEffect(() => {\n Window.addEventListener(‘scroll’_.debounce(setScroll,1000));},[]);\n" }, { "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74390879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/937028/" ]
74,390,909
<p>I am Trying to serialise an ojekt to json but it givs me alway an emty json obiject bak I am usning the default build in serialiser.</p> <p>My Object to seriaclise:</p> <pre><code>using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; [Serializable] public class Ord...
[ { "answer_id": 74391469, "author": "n-azad", "author_id": 5997281, "author_profile": "https://Stackoverflow.com/users/5997281", "pm_score": 0, "selected": false, "text": "var order = new Order(89745, \"F\", DateTime.Now.TimeOfDay, 84537, \"FU\");\nvar options = new JsonSerializerOptions ...
2022/11/10
[ "https://Stackoverflow.com/questions/74390909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12343364/" ]
74,390,953
<p>Most time I use a jQuery event handler to do CSS styling. And this is the first time I try to accomplish this by using the HTML event attribute. Here's my code:</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-j...
[ { "answer_id": 74391044, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": true, "text": "this onclick=\"btnClick(this)\"\n function btnClick(element) {\n $('.navBtn').on('click', function() {\n var length = $(...
2022/11/10
[ "https://Stackoverflow.com/questions/74390953", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4416562/" ]
74,390,997
<p>I need to get only the latest input from my text widget, and then append that character to a list. I am using <code>Text.get(1.0,'end-1c')</code> , and it does not work because the loop constantly gets all the input, instead of only getting the latest input when there is a new latest input.</p> <pre><code>def main_s...
[ { "answer_id": 74391208, "author": "DonPre", "author_id": 7022759, "author_profile": "https://Stackoverflow.com/users/7022759", "pm_score": 2, "selected": true, "text": "text_area <KeyPress> typed_text text_area.bind(\"<KeyPress>\", lambda _: getKey(_, typed_text))\n while True:\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74390997", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20170478/" ]
74,391,012
<p>I have to implement a relatively simple communication protocol on top of RS-232. It's an ASCII based text protocol with a couple of frame types.</p> <p>Each frame looks something like this:</p> <pre><code> * ___________________________________ * | | | | | * | SOH | Data | CRC-16 | EO...
[ { "answer_id": 74391319, "author": "Lundin", "author_id": 584518, "author_profile": "https://Stackoverflow.com/users/584518", "pm_score": 2, "selected": false, "text": "uint8_t uint8_t" }, { "answer_id": 74393363, "author": "chux - Reinstate Monica", "author_id": 2410359,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469410/" ]
74,391,013
<p>I am pulling data from a table that changes often using Python - and the method I am using is not ideal. What I would like to have is a method to pull all strings that contain only one letter and leave out anything that is 2 or more.</p> <p>An example of data I might get:</p> <pre><code>115 19A6 HYS8 568 </code></pr...
[ { "answer_id": 74391319, "author": "Lundin", "author_id": 584518, "author_profile": "https://Stackoverflow.com/users/584518", "pm_score": 2, "selected": false, "text": "uint8_t uint8_t" }, { "answer_id": 74393363, "author": "chux - Reinstate Monica", "author_id": 2410359,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469665/" ]
74,391,025
<p>I have an array called responseData, it serves for me to show the available card options on the screen</p> <pre><code>public responseData = [ { id: 1399, pessoa_id: 75898, created_at: '2022-11-08T16:59:59.000000Z', holder: 'LEONARDO ', validade: '2029-05-01', }, { id: 13932, pessoa_id: 75898, created...
[ { "answer_id": 74391103, "author": "Luca Angrisani", "author_id": 13240452, "author_profile": "https://Stackoverflow.com/users/13240452", "pm_score": 3, "selected": true, "text": " this.responseData = this.responseData.filter(\n (card) => card.id != this.cardDelete.id\n );\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19574035/" ]
74,391,026
<p>How do you convert a float32 pointer <code>*float32</code> to a float64 pointer <code>*float64</code>.</p> <pre class="lang-golang prettyprint-override"><code>package main import &quot;fmt&quot; func main() { var value *float32 v := float64(*value) vp := &amp;v fmt.Println(vp) } </code></pre> <p>Th...
[ { "answer_id": 74391103, "author": "Luca Angrisani", "author_id": 13240452, "author_profile": "https://Stackoverflow.com/users/13240452", "pm_score": 3, "selected": true, "text": " this.responseData = this.responseData.filter(\n (card) => card.id != this.cardDelete.id\n );\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391026", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9236687/" ]
74,391,030
<p>I'm decoding a base64 image with the following code:</p> <pre class="lang-py prettyprint-override"><code>def string_to_image(base64_string): decoded = base64.b64decode(base64_string) np_data = np.frombuffer(decoded, np.uint8) img = cv2.imdecode(np_data, cv2.IMREAD_UNCHANGED) return img </code></pre> ...
[ { "answer_id": 74391120, "author": "AndreaYolo", "author_id": 15982708, "author_profile": "https://Stackoverflow.com/users/15982708", "pm_score": 2, "selected": false, "text": "tf.squeeze tf.squeeze image_resized = tf.reshape(decoded_image, (-1, 256, 256, 3, 1))\nimage_resized = tf.squee...
2022/11/10
[ "https://Stackoverflow.com/questions/74391030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16524788/" ]
74,391,038
<pre><code>string small = &quot;12&quot;; string big = &quot;123456789&quot;; </code></pre> <p><strong>I need to get exactly 8 characters (addition and removal respectively)</strong><br /> The result be like this:</p> <pre><code>small = &quot;12 &quot;; big = &quot;12345678&quot;; </code></pre>
[ { "answer_id": 74391091, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 3, "selected": true, "text": "String.PadRight string result = small.PadRight(8);\n string result = text.Length > 8 ? text.Remove(8) : text.PadR...
2022/11/10
[ "https://Stackoverflow.com/questions/74391038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19401967/" ]
74,391,073
<p>I want to be able to write a size for a input and after that enter each number seperated by space which is less or equal than the size.</p> <p>Like this:</p> <p>First input (length): 3</p> <p>inputs: 1 2 3</p> <p>This should also be converted as an integer and stored in a list</p> <p>I have tried this:</p> <pre><cod...
[ { "answer_id": 74391091, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 3, "selected": true, "text": "String.PadRight string result = small.PadRight(8);\n string result = text.Length > 8 ? text.Remove(8) : text.PadR...
2022/11/10
[ "https://Stackoverflow.com/questions/74391073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1020623/" ]
74,391,089
<p>I have a filter macro that will filter a table for items and delete rows with that item. This is done by looping through an array which referenced a finite range on reference worksheet.</p> <p>I am trying to change this array to be dynamic so that I can add or remove items to be deleted without having to open the co...
[ { "answer_id": 74391202, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 2, "selected": false, "text": "ActiveSheet Rows Cells Worksheets(\"Sheet1\") ArrCategory = Worksheets(\"Sheet1\").Range(\"B8:B\" & Cells(Rows.Count,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12351932/" ]
74,391,139
<p>I want to check if the subdomain <code>demo</code> exists in my URL.</p> <p>So if my URL is either <code>https://demo.stackoverflow.com/</code> or <code>https://demo.stacks.com/</code> or <code>https://demo.hello.com/</code>, the function should return true.</p> <p>If the URL is just <code>https://stackoverflow.com/...
[ { "answer_id": 74391202, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 2, "selected": false, "text": "ActiveSheet Rows Cells Worksheets(\"Sheet1\") ArrCategory = Worksheets(\"Sheet1\").Range(\"B8:B\" & Cells(Rows.Count,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8305219/" ]
74,391,144
<p>I need to read data from the database, send them to <code>Kafka</code>, and then delete those data (which were successfully sent) from the database. I would think to do it straitforward:</p> <pre><code>public void syncData() { List&lt;T&gt; data = repository.findAll(); data.forEach(value -&gt; kafkaTemplate....
[ { "answer_id": 74391202, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 2, "selected": false, "text": "ActiveSheet Rows Cells Worksheets(\"Sheet1\") ArrCategory = Worksheets(\"Sheet1\").Range(\"B8:B\" & Cells(Rows.Count,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4003272/" ]
74,391,145
<p>I have several widgets that I'd like to toggle on click/blur/submit.</p> <p>Let's take a simple example with an input (Vue 2 style)</p> <p><strong>Input.vue</strong></p> <pre class="lang-html prettyprint-override"><code>&lt;template&gt; &lt;input ref=&quot;input&quot; :value=&quot;value&quot; @input=&q...
[ { "answer_id": 74391202, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 2, "selected": false, "text": "ActiveSheet Rows Cells Worksheets(\"Sheet1\") ArrCategory = Worksheets(\"Sheet1\").Range(\"B8:B\" & Cells(Rows.Count,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/305189/" ]
74,391,203
<p>I'm creating a SPM project and I need to check if the data I get from an API is correct. How can I print out this data?</p> <p>I tried to create a view inside the SPM and adding it to an App project and it works, but it doesn't exist an easier alternative?</p> <p>Console doesn't show anything, no print no logs...</p...
[ { "answer_id": 74391202, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 2, "selected": false, "text": "ActiveSheet Rows Cells Worksheets(\"Sheet1\") ArrCategory = Worksheets(\"Sheet1\").Range(\"B8:B\" & Cells(Rows.Count,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469775/" ]
74,391,269
<p>Language used : js with react</p> <p>I need to count how much &quot;theme&quot; I have but not if he's already count/exist</p> <p>data example :</p> <pre><code> movies = [{&quot;id&quot; : 1, &quot;name&quot;: &quot;Ps: i love you&quot;, &quot;theme&quot;: { &quot;id&quot;: 1, &quot;name&quot;: &quot;love&quot;} }...
[ { "answer_id": 74391407, "author": "Besufkad Menji", "author_id": 10239185, "author_profile": "https://Stackoverflow.com/users/10239185", "pm_score": 0, "selected": false, "text": "movies = [{\"id\": 1, \"name\": \"Ps: i love you\", \"theme\": {\"id\": 1, \"name\": \"love\"}},\n{\"id\": ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19389219/" ]
74,391,333
<p>I would like this ForEach to return h3 to me only once, instead of three which is the length of the array. How can I do? Thanks to those who will answer</p> <pre><code> @foreach (var winelistObj in Model.winetype.Where(s =&gt; s.name == Request.Query[&quot;wine&quot;])) { &lt;h3 class=&quot;text-uppercase font-logo...
[ { "answer_id": 74391407, "author": "Besufkad Menji", "author_id": 10239185, "author_profile": "https://Stackoverflow.com/users/10239185", "pm_score": 0, "selected": false, "text": "movies = [{\"id\": 1, \"name\": \"Ps: i love you\", \"theme\": {\"id\": 1, \"name\": \"love\"}},\n{\"id\": ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19761134/" ]
74,391,344
<p>I have two fragments that share information with each other, in the first one I have an edit text and button widget. The second fragment is just a listview. When the user clicks the button, it displays whatever is in the edit text widget in the second fragment. So if the user enters the text study and clicks the bu...
[ { "answer_id": 74391407, "author": "Besufkad Menji", "author_id": 10239185, "author_profile": "https://Stackoverflow.com/users/10239185", "pm_score": 0, "selected": false, "text": "movies = [{\"id\": 1, \"name\": \"Ps: i love you\", \"theme\": {\"id\": 1, \"name\": \"love\"}},\n{\"id\": ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20283835/" ]
74,391,375
<p>Given an integer in Java, is there an easy way you could represent this in binary as an array of <code>boolean</code>?</p> <pre><code>int input = 12; return {True, True, False, False}; </code></pre> <p>And what about, for example, if you already had a set list length? How would you make it return a list with the se...
[ { "answer_id": 74391456, "author": "Rob Spoor", "author_id": 1180351, "author_profile": "https://Stackoverflow.com/users/1180351", "pm_score": 3, "selected": true, "text": "BitSet bitSet = BitSet.valueOf(new long[] { 12});\n BitSet {2, 3} {0, 1, 2, 3}" }, { "answer_id": 74391626,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18345621/" ]
74,391,376
<p>I have a Blazor Maui application where I'd like to have the option to receive push notifications on. I'd like to send the push notifications from a server project inside the same solution where I have my Blazor Maui project. For example : the server should contain a Gui with a textbox for the title and messagebody. ...
[ { "answer_id": 74391456, "author": "Rob Spoor", "author_id": 1180351, "author_profile": "https://Stackoverflow.com/users/1180351", "pm_score": 3, "selected": true, "text": "BitSet bitSet = BitSet.valueOf(new long[] { 12});\n BitSet {2, 3} {0, 1, 2, 3}" }, { "answer_id": 74391626,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20281236/" ]
74,391,457
<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>class MyElement extends HTMLElement { constructor() { super(); // Props this._color = this.getAttribut...
[ { "answer_id": 74391456, "author": "Rob Spoor", "author_id": 1180351, "author_profile": "https://Stackoverflow.com/users/1180351", "pm_score": 3, "selected": true, "text": "BitSet bitSet = BitSet.valueOf(new long[] { 12});\n BitSet {2, 3} {0, 1, 2, 3}" }, { "answer_id": 74391626,...
2022/11/10
[ "https://Stackoverflow.com/questions/74391457", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5276057/" ]
74,391,480
<p>Please help me to solve this error. If click Save button display the following error. I am using ASP.NET Core 3.1 with Entity Framework Core.</p> <blockquote> <p>An unhandled exception occurred while processing the request. InvalidOperationException: The view 'Save' was not found. The following locations were search...
[ { "answer_id": 74394804, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 1, "selected": false, "text": "[HttpPost]\n[ActionName(\"Save\")]\n[ValidateAntiForgeryToken]\npublic IActionResult Save(CascadingModel ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16437954/" ]
74,391,481
<p>I've a file with a line that looks like this &quot;Room,home,You are in your home&quot;</p> <p>I wanna read the file and then create an object (I have created a class called Room), what I wanna do now is like read the line and creat something like this.</p> <p>Room home = new Room (You are in your home)</p> <p>I hav...
[ { "answer_id": 74394804, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 1, "selected": false, "text": "[HttpPost]\n[ActionName(\"Save\")]\n[ValidateAntiForgeryToken]\npublic IActionResult Save(CascadingModel ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16086533/" ]
74,391,486
<pre><code>&lt;label&gt;Gender&lt;span class=&quot;note&quot;&gt;*&lt;/span&gt;:&lt;/label&gt; &lt;select name=&quot;gender&quot;&gt; &lt;option value=&quot;1&quot; selected &lt;?= ($_POST['gender'] == &quot;1&quot;)? &quot;selected&quot;:&quot;&quot;;?&gt;&gt;Select&lt;/option&gt; &lt;option value=&quot;male&q...
[ { "answer_id": 74394804, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 1, "selected": false, "text": "[HttpPost]\n[ActionName(\"Save\")]\n[ValidateAntiForgeryToken]\npublic IActionResult Save(CascadingModel ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18224896/" ]
74,391,520
<p>Let's say I have a model called <code>Research</code>. Each research belongsToMany <code>Location</code> models. And each <code>Location</code> model BelongsToMany <code>Contact</code> models. BUT, each <code>Contact</code> is also related to <code>Research</code>.</p> <pre><code>class Research extends Model { pr...
[ { "answer_id": 74391880, "author": "gkouem", "author_id": 18035371, "author_profile": "https://Stackoverflow.com/users/18035371", "pm_score": 0, "selected": false, "text": "with $research = Research::with(['YOUR RELATION' => function ($query) {\n $query->where('YOUR COLUMN', 'EQUALS T...
2022/11/10
[ "https://Stackoverflow.com/questions/74391520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1263987/" ]
74,391,527
<p>I have a dataset where the data is reported by week and year like: YYWW. I have split it into to columns: Year and Week.</p> <p>I need to get a date from the week: Week_start_date. My weeks start at mondays, so I would like to get the monday and sunday date from each week.</p> <div class="s-table-container"> <table ...
[ { "answer_id": 74391692, "author": "Reeza", "author_id": 1919583, "author_profile": "https://Stackoverflow.com/users/1919583", "pm_score": 1, "selected": false, "text": "data have;\ninfile cards dlm='09'x;\ninput ID $ YYWW year week ;\nformat year 8. week z2.;\ncards; \n1 1504 ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469428/" ]
74,391,592
<p>I need a little help removing unique characters in a doubly linked list in C. So here's the logic I tried implementing: I counted the occurrence of each character in the doubly linked list. If it's occurrence is 1 time, then it is unique element and needs to be deleted. I'll be repeating the process for all elements...
[ { "answer_id": 74391692, "author": "Reeza", "author_id": 1919583, "author_profile": "https://Stackoverflow.com/users/1919583", "pm_score": 1, "selected": false, "text": "data have;\ninfile cards dlm='09'x;\ninput ID $ YYWW year week ;\nformat year 8. week z2.;\ncards; \n1 1504 ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19611563/" ]
74,391,598
<p>I've recently started working on a frontend project that uses Next.js, and I'm trying to figure out how to best take advantage of the SSR it provides. I want to use some client-side fetching as well, and while the <a href="https://nextjs.org/learn/foundations/how-nextjs-works/rendering" rel="nofollow noreferrer">doc...
[ { "answer_id": 74470693, "author": "Sparko Sol", "author_id": 20407048, "author_profile": "https://Stackoverflow.com/users/20407048", "pm_score": 0, "selected": false, "text": "import React from 'react';\n\nimport { useRouter } from 'next/router';\n\n\nconst Page = () => {\n\n const rout...
2022/11/10
[ "https://Stackoverflow.com/questions/74391598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460574/" ]
74,391,605
<p>I am learning python as a novice and I was asked to solve the total of seconds in the problem. I was given the format but it still seems that I can not get a hand of it. it keeps telling me that I didn't get the minute and seconds part</p> <p>I tried this:</p> <pre><code>def get_seconds(hours, minutes, seconds): r...
[ { "answer_id": 74391652, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 1, "selected": false, "text": "amount_a = get_seconds(2, 30, 0) # 2 hours and 30 minutes\namount_b = get_seconds(0, 45, 15) # 45 minutes and 15 ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20441278/" ]
74,391,607
<p>I need to persist my domain objects into two different databases. This use case is purely write-only. I don't need to read back from the databases.</p> <p>Following <code>Domain Driven Design</code>, I typically create a repository for each aggregate root.</p> <p>I see two alternatives. I can create one single repos...
[ { "answer_id": 74391652, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 1, "selected": false, "text": "amount_a = get_seconds(2, 30, 0) # 2 hours and 30 minutes\namount_b = get_seconds(0, 45, 15) # 45 minutes and 15 ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4811392/" ]
74,391,674
<p>I have a string as this, and I want to convert it into dictionary.</p> <pre><code>test= '{&quot;age&quot;:59.0,&quot;bp&quot;:70.0,&quot;sg&quot;:1.01,&quot;al&quot;:3.0,&quot;su&quot;:0.0,&quot;rbc&quot;:1.0,&quot;ba&quot;:0.0,&quot;bgr&quot;:76.0,&quot;bu&quot;:186.0,&quot;sc&quot;:15.0,&quot;sod&quot;:135.0,&quot...
[ { "answer_id": 74391699, "author": "It_is_Chris", "author_id": 9177877, "author_profile": "https://Stackoverflow.com/users/9177877", "pm_score": 3, "selected": true, "text": "import ast\n\nnew_dict = ast.literal_eval(test)\n" }, { "answer_id": 74391772, "author": "Samwise", ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11589463/" ]
74,391,744
<p>I am learning to use SQL in R. I want to query a database about the mountains whose height is less than 100 meter difference from the average height of all mountains.</p> <p>My code so far looks like this:</p> <pre class="lang-r prettyprint-override"><code>sql6 = &quot;SELECT Name, Height, AVG(Height) FROM mountain ...
[ { "answer_id": 74391699, "author": "It_is_Chris", "author_id": 9177877, "author_profile": "https://Stackoverflow.com/users/9177877", "pm_score": 3, "selected": true, "text": "import ast\n\nnew_dict = ast.literal_eval(test)\n" }, { "answer_id": 74391772, "author": "Samwise", ...
2022/11/10
[ "https://Stackoverflow.com/questions/74391744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4636470/" ]
74,391,760
<pre><code>def get_student_list(): iStr = &quot;&quot; stdlist = [] x = 1 while not iStr == &quot;quit&quot;: iStr = input(f'Please enter a new student name, (&quot;quit&quot; if no more student)') if not iStr == &quot;quit&quot;: stdlist.append(iStr) elif iStr == &qu...
[ { "answer_id": 74391821, "author": "Hai Vu", "author_id": 459745, "author_profile": "https://Stackoverflow.com/users/459745", "pm_score": 0, "selected": false, "text": "stdlist get_student_list() print def get_student_list():\n # All your code here\n return stdlist\n\nstdlist = get...
2022/11/10
[ "https://Stackoverflow.com/questions/74391760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470075/" ]
74,391,782
<p>So the this dictionary is basically from a txt file and I formatted in order to have the same format as its supposed to have in order for my other definitions to work. The problem I'm having is that the for the loadInventory function, dictionary works inside the function but outside even though I've returned the dic...
[ { "answer_id": 74391868, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 2, "selected": true, "text": " # this looks like it never gets used for anything\n dicty = {} \n # this overwrites the \"dictionary\" pa...
2022/11/10
[ "https://Stackoverflow.com/questions/74391782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470030/" ]
74,391,797
<p>I have this:</p> <pre><code>let time = store.time; const run = setInterval(() =&gt; { const delay = store.delay; setTimeout(() =&gt; { console.log(&quot;Execute event....&quot;); }, delay * 1000); time--; if (time === 0) { clearInterval(run); } }, 1000); </code></pre> <p>I jus...
[ { "answer_id": 74391868, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 2, "selected": true, "text": " # this looks like it never gets used for anything\n dicty = {} \n # this overwrites the \"dictionary\" pa...
2022/11/10
[ "https://Stackoverflow.com/questions/74391797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19950248/" ]
74,391,842
<p>I have a list of numbers of varying lengths stored in a file, like this...</p> <pre><code>98 132145 132324848 4435012341 1254545221 2314565447 </code></pre> <p>I need a function that looks through the list and counts every number that is 10 digits in length and begins with the number 1. I have stored the list in bot...
[ { "answer_id": 74392334, "author": "romain gal", "author_id": 9612932, "author_profile": "https://Stackoverflow.com/users/9612932", "pm_score": 0, "selected": false, "text": "# Get your file content as a string.\nwith open(r\"C:\\Desktop\\file.csv\") as f:\n s = \" \".join([l.rstrip(\"\...
2022/11/10
[ "https://Stackoverflow.com/questions/74391842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469699/" ]
74,391,854
<p>We created several views postgresql 12 (not materialized views) which include nested queries and multiple joins. we are facing a strange behavior, are noticing that some views are disappearing from the view list and others are remaining. is this related to Database configuration.</p> <p>Are we missing some configura...
[ { "answer_id": 74398317, "author": "Laurenz Albe", "author_id": 6464308, "author_profile": "https://Stackoverflow.com/users/6464308", "pm_score": 2, "selected": true, "text": "DROP DROP TABLE some_table CASCADE;\n" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74391854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/523008/" ]
74,391,865
<p>I am just getting started with OOP, so I apologise in advance if my question is as obvious as 2+2. :)</p> <p>Basically I created a class that adds attributes and methods to a panda data frame. That's because I am sometimes looking to do complex but repetitive tasks like merging with a bunch of other tables, dropping...
[ { "answer_id": 74391907, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 4, "selected": true, "text": "MySupperTable class MySupperTable:\n\n # ... other stuff in the class\n\n def __str__(self) -> str:\n re...
2022/11/10
[ "https://Stackoverflow.com/questions/74391865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12159955/" ]
74,391,887
<p>I want to change the color of all elements with <li> tags to red.</p> <p>I'm doing:-</p> <pre><code>document.getElementsByTagName(&quot;li&quot;).style.color = &quot;red&quot; </code></pre> <p>This isn't working. But it's working with querySelectorAll method and getElementsByClassName method.</p> <p>Does it mean tha...
[ { "answer_id": 74391907, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 4, "selected": true, "text": "MySupperTable class MySupperTable:\n\n # ... other stuff in the class\n\n def __str__(self) -> str:\n re...
2022/11/10
[ "https://Stackoverflow.com/questions/74391887", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19464505/" ]
74,391,916
<p>I've got 2 arrays:</p> <p>$array1 = ('1','2','7','9') $array2 = ('7','9','1','2')</p> <p>These collections are dynamically changed and I need to add the values from the first array to second. I need to create a condition if.... and check... if these arrays are equals - do nothing.</p> <p>But, if the first array has ...
[ { "answer_id": 74392003, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 2, "selected": false, "text": "$array2 = @($array1;$array2) |Sort-Object -Unique\n $array2 $set = [System.Collections.Generic.HashSet[psobj...
2022/11/10
[ "https://Stackoverflow.com/questions/74391916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18644650/" ]
74,391,929
<p>Maybe somebody could help me. I don't understand what is wrong with my code.</p> <p>I want loop through the ArrayList, get the index value of each element (index number itself) and add these index values to another array. Don't ask me why =))</p> <p>Here's my code:</p> <pre><code>List&lt;Integer&gt; a = new ArrayLis...
[ { "answer_id": 74392003, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 2, "selected": false, "text": "$array2 = @($array1;$array2) |Sort-Object -Unique\n $array2 $set = [System.Collections.Generic.HashSet[psobj...
2022/11/10
[ "https://Stackoverflow.com/questions/74391929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16730985/" ]
74,391,970
<p>React Native List with Map Method</p> <p>What I want to achieve, I want when click item then a new Item (I preferer add a new custom View) is added below the Selected item.</p> <blockquote> <p>Expo Snack code&gt; <a href="https://snack.expo.dev/@stefanosalexandrou/tenacious-french-fries" rel="nofollow noreferrer">ht...
[ { "answer_id": 74392003, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 2, "selected": false, "text": "$array2 = @($array1;$array2) |Sort-Object -Unique\n $array2 $set = [System.Collections.Generic.HashSet[psobj...
2022/11/10
[ "https://Stackoverflow.com/questions/74391970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20379858/" ]
74,391,992
<p>As mentioned I have a vector of 1D matrice, such as:</p> <pre><code>P_predefined = [[.3 .4 .2 .1], [.2 .3 .5 0.], [.1 0. .8 .1], [.4 0. 0. .6]] </code></pre> <p>I would like to turn it into a matrix of 2D, I tried to use vcat, for which I expected to behave like vstack in Python, but it doesn't work.</p> <pre><code>...
[ { "answer_id": 74392069, "author": "phipsgabler", "author_id": 1346276, "author_profile": "https://Stackoverflow.com/users/1346276", "pm_score": 2, "selected": false, "text": "vcat(A...) reduce(vcat, x) julia> reduce(vcat, P_predefined)\n4×4 Matrix{Float64}:\n 0.3 0.4 0.2 0.1\n 0.2 0...
2022/11/10
[ "https://Stackoverflow.com/questions/74391992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13241995/" ]
74,392,036
<p>I'm trying to make a website for a fake company and im struggling with putting an image and a dropdown on the same line</p> <p>This is what I tried :</p> <pre><code>&lt;body&gt; &lt;img src=&quot;Kharabora Coding-1 (1).png&quot; height=&quot;150px&quot; class=&quot;img&quot;&gt; &lt;form style=&quot...
[ { "answer_id": 74392069, "author": "phipsgabler", "author_id": 1346276, "author_profile": "https://Stackoverflow.com/users/1346276", "pm_score": 2, "selected": false, "text": "vcat(A...) reduce(vcat, x) julia> reduce(vcat, P_predefined)\n4×4 Matrix{Float64}:\n 0.3 0.4 0.2 0.1\n 0.2 0...
2022/11/10
[ "https://Stackoverflow.com/questions/74392036", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470296/" ]
74,392,040
<p>I have a function which takes a array of GitHub repository names and then I want to send a request with every repository, to get the data about used languages in this repository and add it to an array. It looks like this:</p> <pre><code>function getRepositoryLanguages(owner, repos) { var stats = []; repos.forEac...
[ { "answer_id": 74392216, "author": "dangarfield", "author_id": 3265253, "author_profile": "https://Stackoverflow.com/users/3265253", "pm_score": 2, "selected": false, "text": ".forEach getRepositoryLanguages async for.. of.. const doSomethingAsync = (repoName) => {\n return new Promis...
2022/11/10
[ "https://Stackoverflow.com/questions/74392040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17885211/" ]
74,392,043
<pre><code>banword = [&quot;/&quot;,&quot;\n&quot;,'&quot;',&quot;'&quot;,&quot;Badword&quot;,&quot;*&quot;,&quot;badword&quot;,&quot;badword&quot;,&quot;badword&quot;] okword = [&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;f&quot;,&quot;&quot;,&quot;Badword&quot;,&quot;badword&quot;,&quot;badword&quot;] f...
[ { "answer_id": 74392119, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 2, "selected": true, "text": "replace azpeo.replace(banword[c],okword[c])\n azpeo = azpeo.replace(banword[c],okword[c])\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20457318/" ]
74,392,046
<p>We have a few controllers that were written in a way that allows the <code>Error [ERR_HTTP_HEADERS_SENT]</code> error to be sent.</p> <p>For context this happens in code similar to... <em>This is a <strong>very</strong> contrived example</em></p> <pre><code>try{ if(someCheck) { res.status(400).send({someStatus}); ...
[ { "answer_id": 74392119, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 2, "selected": true, "text": "replace azpeo.replace(banword[c],okword[c])\n azpeo = azpeo.replace(banword[c],okword[c])\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/718003/" ]
74,392,077
<p>I have a variable with a lot of categories, individuals were asked to choose their first 3 choices. So the choices are <code>A</code>, <code>B</code>, <code>C</code> and <code>D</code> here (It's true that in my database there are more than 4 possible choices)</p> <pre><code>`var1:choice1`&lt;-c(&quot;A&quot;,&quot;...
[ { "answer_id": 74392148, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 2, "selected": false, "text": "mydata %>% \n pivot_longer(-id) %>% \n mutate(var = paste0(substr(name, 1, 5), value)) %>% \n select(id, va...
2022/11/10
[ "https://Stackoverflow.com/questions/74392077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11652655/" ]
74,392,105
<p>I'm trying to insert text into Entry and when I try to run this code I get an error message:</p> <p><code>&quot;System.ArgumentException: 'Parameter &quot;parameter&quot; (object) cannot be of type Pension.ViewsModels.MainViewModel, as the command type requires an argument of type Pension.Models.Order. (Parameter 'p...
[ { "answer_id": 74392148, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 2, "selected": false, "text": "mydata %>% \n pivot_longer(-id) %>% \n mutate(var = paste0(substr(name, 1, 5), value)) %>% \n select(id, va...
2022/11/10
[ "https://Stackoverflow.com/questions/74392105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13622774/" ]
74,392,110
<p>I want to do something like this:</p> <pre><code>=MYFUNC(my_number, limit_down, limit_up) </code></pre> <p>If the number goes out of limits, bring it to the closest limit and some examples, what I want:</p> <pre><code>=MYFUNC(1, 4, 8) ==&gt; 4 =MYFUNC(5, 4, 8) ==&gt; 5 =MYFUNC(6, 4, 8) ==&gt; 6 =MYFUNC(8, 4, 8) =...
[ { "answer_id": 74392672, "author": "Ping", "author_id": 20288037, "author_profile": "https://Stackoverflow.com/users/20288037", "pm_score": 1, "selected": false, "text": "=LAMBDA(INT,MIN,MAX,\n IF(INT <= MIN, MIN, IF(INT>= MAX, MAX, INT))\n)(my_number, limit_down, limit_up)\n" }, { ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19540382/" ]
74,392,142
<p>My application uses OpenID to authenticate the user.</p> <p>The first page is more of a splash screen that hands the user to a webpage to authorise if needed or just perform a background refresh of the token the navigate to the main screen.</p> <p>I'm unsure of how to start the authentication flow without a button c...
[ { "answer_id": 74392453, "author": "Steyrix", "author_id": 7221362, "author_profile": "https://Stackoverflow.com/users/7221362", "pm_score": 3, "selected": true, "text": "@Composable\nfun OnLifecycleEvent(onEvent: (owner: LifecycleOwner, event:Lifecycle.Event) -> Unit) {\n val eventHa...
2022/11/10
[ "https://Stackoverflow.com/questions/74392142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/655703/" ]
74,392,143
<p>Can i showDialog inside a function without passing context?</p> <pre><code>void test(){ showDialog(context: context, builder: (_) =&gt; AlertDialog( content: Column( children: [ Row( children: const [ Icon(Icons.check_circle, color: Colors.green,), T...
[ { "answer_id": 74392453, "author": "Steyrix", "author_id": 7221362, "author_profile": "https://Stackoverflow.com/users/7221362", "pm_score": 3, "selected": true, "text": "@Composable\nfun OnLifecycleEvent(onEvent: (owner: LifecycleOwner, event:Lifecycle.Event) -> Unit) {\n val eventHa...
2022/11/10
[ "https://Stackoverflow.com/questions/74392143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7385152/" ]
74,392,152
<p>we're developping an app that will run as a service. One of the feature would be to download file at given URL (ex PDF) and save it into the download folder so user can load it from a specific application (Avenza Maps).</p> <p>All the download process should be without any user interaction since it's by a service th...
[ { "answer_id": 74392453, "author": "Steyrix", "author_id": 7221362, "author_profile": "https://Stackoverflow.com/users/7221362", "pm_score": 3, "selected": true, "text": "@Composable\nfun OnLifecycleEvent(onEvent: (owner: LifecycleOwner, event:Lifecycle.Event) -> Unit) {\n val eventHa...
2022/11/10
[ "https://Stackoverflow.com/questions/74392152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19411871/" ]
74,392,160
<p>Im trying to flatten 2 columns from a table loaded into a dataframe as below:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">u_group</th> <th style="text-align: left;">t_group</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">{&quot;link&quot;: &qu...
[ { "answer_id": 74392453, "author": "Steyrix", "author_id": 7221362, "author_profile": "https://Stackoverflow.com/users/7221362", "pm_score": 3, "selected": true, "text": "@Composable\nfun OnLifecycleEvent(onEvent: (owner: LifecycleOwner, event:Lifecycle.Event) -> Unit) {\n val eventHa...
2022/11/10
[ "https://Stackoverflow.com/questions/74392160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8259636/" ]
74,392,162
<p>The update for Visual Studio 17.4 has changed the font in the text editor, so that it is very thin and a bit of a strain on the eyes to the read. How can you change this back, short of rolling back the update?</p> <p>Please note that I've searched a little bit for this, and I see the following setting:</p> <p><a hr...
[ { "answer_id": 74395442, "author": "Tyler", "author_id": 6804626, "author_profile": "https://Stackoverflow.com/users/6804626", "pm_score": 2, "selected": false, "text": "Cascadia Mono SemiBold bold 10 Cascadia Code SemiBold" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74392162", "https://Stackoverflow.com", "https://Stackoverflow.com/users/279112/" ]
74,392,179
<p>In the matrix of my report where there is a blank I would like to display a zero.</p> <p>This is my expression</p> <pre><code> =Sum(IIF(Fields!CondSubstantive.Value = True , 1, 0)) </code></pre> <p>I've been trying similar things to the below but not having much success</p> <pre><code>=Sum(IIF(isnothing(Fields!C...
[ { "answer_id": 74392555, "author": "Alan Schofield", "author_id": 1775389, "author_profile": "https://Stackoverflow.com/users/1775389", "pm_score": 2, "selected": true, "text": "=VAL(Sum(IIF(Fields!CondSubstantive.Value = True , 1, 0)))\n" }, { "answer_id": 74397784, "author"...
2022/11/10
[ "https://Stackoverflow.com/questions/74392179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10021463/" ]
74,392,207
<p>I wanted to use BigQuery's array aggregate function, array_concat_agg over a window function. It doesn't look like this is possible - and actually, I might have a second issue regarding the accessibility of my window function to an inner query.</p> <p>Here is my current SQL:</p> <pre class="lang-sql prettyprint-over...
[ { "answer_id": 74392555, "author": "Alan Schofield", "author_id": 1775389, "author_profile": "https://Stackoverflow.com/users/1775389", "pm_score": 2, "selected": true, "text": "=VAL(Sum(IIF(Fields!CondSubstantive.Value = True , 1, 0)))\n" }, { "answer_id": 74397784, "author"...
2022/11/10
[ "https://Stackoverflow.com/questions/74392207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17277930/" ]
74,392,212
<p>I have a day name such as Monday. and the current day is Wednesday. Now i want to get the date of next coming Monday. How can i do it with a best practice in a very short way. right now i am trying to do this with bunch of if conditions and it made things messy and very difficult.</p> <p>here is my code :</p> <pre><...
[ { "answer_id": 74392509, "author": "Jay", "author_id": 8677071, "author_profile": "https://Stackoverflow.com/users/8677071", "pm_score": 3, "selected": true, "text": "day_time day_time = timezone.now()\ncoming_day = \"monday\"\nwhile day_time.strftime(\"%A\") != coming_day:\n day_time...
2022/11/10
[ "https://Stackoverflow.com/questions/74392212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20286415/" ]
74,392,218
<p>I need to filter array of objects with the existing filter, for example</p> <pre><code>const students= [ { id: 1, name: &quot;Alan&quot;, subjects: [ { name: &quot;math&quot;, mark: 5 }, { name: &quot;poet...
[ { "answer_id": 74392509, "author": "Jay", "author_id": 8677071, "author_profile": "https://Stackoverflow.com/users/8677071", "pm_score": 3, "selected": true, "text": "day_time day_time = timezone.now()\ncoming_day = \"monday\"\nwhile day_time.strftime(\"%A\") != coming_day:\n day_time...
2022/11/10
[ "https://Stackoverflow.com/questions/74392218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6356416/" ]
74,392,230
<p>I manage an array of Objects like this</p> <p><a href="https://i.stack.imgur.com/41HKp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/41HKp.jpg" alt="enter image description here" /></a></p> <p>I see that this is the same</p> <p><a href="https://i.stack.imgur.com/Gsgny.jpg" rel="nofollow noreferr...
[ { "answer_id": 74392509, "author": "Jay", "author_id": 8677071, "author_profile": "https://Stackoverflow.com/users/8677071", "pm_score": 3, "selected": true, "text": "day_time day_time = timezone.now()\ncoming_day = \"monday\"\nwhile day_time.strftime(\"%A\") != coming_day:\n day_time...
2022/11/10
[ "https://Stackoverflow.com/questions/74392230", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3367720/" ]
74,392,253
<p>I have 2 classes. AlchemicalStorage class is used to store the AlchemicalElement objects.</p> <pre><code>class AlchemicalElement: def __init__(self, name: str): self.name = name def __repr__(self): return f'&lt;AE: {self.name}&gt;' class AlchemicalStorage: def __init__(self): ...
[ { "answer_id": 74392399, "author": "jprebys", "author_id": 3268228, "author_profile": "https://Stackoverflow.com/users/3268228", "pm_score": 2, "selected": true, "text": "def pop(self, element_name: str) -> AlchemicalElement | None:\n for element in reversed(self.storage_list):\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20421646/" ]
74,392,277
<p>I'm just about finished with a project but I'm getting these two errors. Does anyone know how I can fix this?</p> <p>src\App.js Line 118:4: React Hook useEffect has a missing dependency: 'getMoviesData'. Either include it or remove the dependency array react-hooks/exhaustive-deps</p> <p>src\components\MusicPlayer.js...
[ { "answer_id": 74392504, "author": "Jack Ecuyer", "author_id": 14559762, "author_profile": "https://Stackoverflow.com/users/14559762", "pm_score": 2, "selected": true, "text": "getMoviesData() useEffect useEffect(() => {\n const getMoviesData = async function (url, tvUrl, topPicks, ki...
2022/11/10
[ "https://Stackoverflow.com/questions/74392277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20165435/" ]
74,392,306
<p>First of all this is my first question here...</p> <p>Ok, and now my problem: I created a formula that generates a dynamic Query if you are searching for data in multiple sheets. I just write the names of the sheets in green field and it changes the Query. <a href="https://i.stack.imgur.com/3RUTa.png" rel="nofollow ...
[ { "answer_id": 74392504, "author": "Jack Ecuyer", "author_id": 14559762, "author_profile": "https://Stackoverflow.com/users/14559762", "pm_score": 2, "selected": true, "text": "getMoviesData() useEffect useEffect(() => {\n const getMoviesData = async function (url, tvUrl, topPicks, ki...
2022/11/10
[ "https://Stackoverflow.com/questions/74392306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470447/" ]
74,392,339
<p>I'm a beginner with Django 4.1. I'm using the model to edit a form and render it on a webpage. This runs correctly. When I click on submit, my function recognizes the <em>POST</em> method but never validates the form. I'm sure that I have to fix a bug in my models or my form but I don't know where.</p> <p>in <em><st...
[ { "answer_id": 74392504, "author": "Jack Ecuyer", "author_id": 14559762, "author_profile": "https://Stackoverflow.com/users/14559762", "pm_score": 2, "selected": true, "text": "getMoviesData() useEffect useEffect(() => {\n const getMoviesData = async function (url, tvUrl, topPicks, ki...
2022/11/10
[ "https://Stackoverflow.com/questions/74392339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19836827/" ]
74,392,376
<p>I have the following form in an angular component:</p> <pre><code>this.signUpForm = this.fb.group({ agencyName: ['', [Validators.required], taxId: ['', [Validators.required], address: ['', Validators.required], city: ['', Validators.required], state: ['', Validators.required], zip: ['', Validators.requir...
[ { "answer_id": 74393001, "author": "Chady BAGHDADI", "author_id": 16227834, "author_profile": "https://Stackoverflow.com/users/16227834", "pm_score": 2, "selected": true, "text": "this.control = this.signUpForm..get('state')\n get state() {\n\n return this.signUpForm.get('state');\n...
2022/11/10
[ "https://Stackoverflow.com/questions/74392376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1819315/" ]
74,392,398
<p>I don't get the RedemptionLoader work with Visual Basic .Net (Visual Studio 2019) at all.</p> <p>I'm trying to avoid registering Redemption.dll (Redemption64.dll) on users machines. I tried to following instructions from <a href="https://www.dimastr.com/redemption/security.htm#redemptionloader" rel="nofollow norefer...
[ { "answer_id": 74393001, "author": "Chady BAGHDADI", "author_id": 16227834, "author_profile": "https://Stackoverflow.com/users/16227834", "pm_score": 2, "selected": true, "text": "this.control = this.signUpForm..get('state')\n get state() {\n\n return this.signUpForm.get('state');\n...
2022/11/10
[ "https://Stackoverflow.com/questions/74392398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470372/" ]
74,392,402
<p>I am looking to try and create a small image converter that would convert HEIC files that are uploaded to a php web document to .JPG (or any other generic file format).</p> <p>I am running PHP off a unix server and have ImageMagick installed on the server. The following command line code works from the server:</p> <...
[ { "answer_id": 74393001, "author": "Chady BAGHDADI", "author_id": 16227834, "author_profile": "https://Stackoverflow.com/users/16227834", "pm_score": 2, "selected": true, "text": "this.control = this.signUpForm..get('state')\n get state() {\n\n return this.signUpForm.get('state');\n...
2022/11/10
[ "https://Stackoverflow.com/questions/74392402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14122581/" ]
74,392,428
<p><strong>TL;DR</strong></p> <p>If my <code>Content-Type &quot;application/x-ourformat&quot;</code> bound custom <code>TextInputFormatter</code> cannot parse the input, I want to return HTTP <code>400</code> (possibly <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415" rel="nofollow noreferrer"><cod...
[ { "answer_id": 74393617, "author": "jdweng", "author_id": 5015238, "author_profile": "https://Stackoverflow.com/users/5015238", "pm_score": -1, "selected": false, "text": "HTTP/1.1 200 OK\nDate: Mon, 27 Jul 2009 12:28:53 GMT\nServer: Apache\nLast-Modified: Wed, 22 Jul 2009 19:15:56 GMT\n...
2022/11/10
[ "https://Stackoverflow.com/questions/74392428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/321013/" ]
74,392,432
<p>I would like to discover the version number of docker-compose. The format differs per version.</p> <p>Ex: Running docker-compose --version</p> <pre><code>docker-compose version 1.29.2, build someId Docker Compose version v2.12.2 </code></pre> <p>I have separate sed statements that grab the version number, but if p...
[ { "answer_id": 74392491, "author": "anubhava", "author_id": 548225, "author_profile": "https://Stackoverflow.com/users/548225", "pm_score": 3, "selected": true, "text": "sed sed -E 's/^[dD]ocker[- ][cC]ompose version +v?([^,]+).*/\\1/'\n\n1.29.2\n2.12.2\n ^ [dD]ocker[- ][cC]ompose versio...
2022/11/10
[ "https://Stackoverflow.com/questions/74392432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4726822/" ]
74,392,439
<p>i am triying to pull a branch in my local but i didn't have the same data like in github repository, in the terminal, says: <code>Already up to date</code>.</p> <p>For examples in my github repository, i have a file named <code>data.json</code>, the content of this this is not the same as the <code>data.json</code> ...
[ { "answer_id": 74392491, "author": "anubhava", "author_id": 548225, "author_profile": "https://Stackoverflow.com/users/548225", "pm_score": 3, "selected": true, "text": "sed sed -E 's/^[dD]ocker[- ][cC]ompose version +v?([^,]+).*/\\1/'\n\n1.29.2\n2.12.2\n ^ [dD]ocker[- ][cC]ompose versio...
2022/11/10
[ "https://Stackoverflow.com/questions/74392439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18631280/" ]
74,392,457
<p>I was wondering is there a way to automate (e.g., loop) the subtraction of (<code>X2-X1</code>), (<code>X3-X1</code>), (<code>X3-X2</code>) in my <code>data</code> below and add them as three new columns to the <code>data</code>?</p> <pre><code>m=&quot; id X1 X2 X3 A 1 0 4 B 2 2 2 C 3 4 1&quot; data &lt;- ...
[ { "answer_id": 74392491, "author": "anubhava", "author_id": 548225, "author_profile": "https://Stackoverflow.com/users/548225", "pm_score": 3, "selected": true, "text": "sed sed -E 's/^[dD]ocker[- ][cC]ompose version +v?([^,]+).*/\\1/'\n\n1.29.2\n2.12.2\n ^ [dD]ocker[- ][cC]ompose versio...
2022/11/10
[ "https://Stackoverflow.com/questions/74392457", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16760971/" ]
74,392,468
<p>This is my code:</p> <pre><code>$arr = [ [step_1] =&gt; Array ( [method] =&gt; getLastRealisesData [description] =&gt; Get last realises data [error] =&gt; null [done] =&gt; 0 ) [step_2] =&gt; Array ( [method] =&gt; downl...
[ { "answer_id": 74392564, "author": "RiggsFolly", "author_id": 2310830, "author_profile": "https://Stackoverflow.com/users/2310830", "pm_score": 2, "selected": false, "text": "\nforeach($arr as &$item){\n// note ^ reference\n $result = 0;\n if($result == 0){\n $item['...
2022/11/10
[ "https://Stackoverflow.com/questions/74392468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20166453/" ]
74,392,477
<p>The user input represents half of the rows in the diamonds (top triangles). If I enter the input as 9, I should have 9 rows including the center/longest line. But, underneath I only have 8 lines (I need to have 9 on the bottom too, including a copy of the line above so it’s even). I need to make it so that both of m...
[ { "answer_id": 74392564, "author": "RiggsFolly", "author_id": 2310830, "author_profile": "https://Stackoverflow.com/users/2310830", "pm_score": 2, "selected": false, "text": "\nforeach($arr as &$item){\n// note ^ reference\n $result = 0;\n if($result == 0){\n $item['...
2022/11/10
[ "https://Stackoverflow.com/questions/74392477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20277384/" ]
74,392,598
<p>I am building an angular application. A list of child controls will be dynamicly built based on the conditions in the parent control.</p> <p>The dynamic control is embedded in the parent form:</p> <pre><code>&lt;app-dynamic-form [searchItem]=&quot;searchItemValue&quot;&gt;&lt;/app-dynamic-form&gt; </code></pre> <p>H...
[ { "answer_id": 74393015, "author": "Eliseo", "author_id": 8558186, "author_profile": "https://Stackoverflow.com/users/8558186", "pm_score": -1, "selected": false, "text": "<ng-container formArrayName=\"dynamicFormArray\" *ngIf=\"(dynamicFormFields && dynamicFormFields.length)\">\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18246660/" ]
74,392,603
<p>I ran into this problem and don't know how to solve it. I need to drag and drop a point inside the map and save its new coordinates relative to the map.</p> <p>Let's say I have a layout like in the picture I've attached. How can I get information about exactly where x or y in relation to this map I moved the element...
[ { "answer_id": 74392756, "author": "Little_Dev", "author_id": 19524489, "author_profile": "https://Stackoverflow.com/users/19524489", "pm_score": 1, "selected": false, "text": "function dodrop(event) {\n var dt = event.dataTransfer;\n var files = dt.files;\n\n var count = files.length...
2022/11/10
[ "https://Stackoverflow.com/questions/74392603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15028649/" ]
74,392,615
<p>I am trying to pull data from a folder containing 300 Workbooks, each named 001, 002 etc. I am only interested in pulling the data from column G of each file and copying it into a separate folder (each file does not have the same amount if data in row G)</p> <p>I have been able to copy the data across, but I can't s...
[ { "answer_id": 74392756, "author": "Little_Dev", "author_id": 19524489, "author_profile": "https://Stackoverflow.com/users/19524489", "pm_score": 1, "selected": false, "text": "function dodrop(event) {\n var dt = event.dataTransfer;\n var files = dt.files;\n\n var count = files.length...
2022/11/10
[ "https://Stackoverflow.com/questions/74392615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470612/" ]
74,392,634
<p>In python I'm trying to write nested loops in one line. I've seen a lot of examples, but in all of them the inner iterable variable is different compared to the outer one. So in my case, it won't work. Here's my try:</p> <pre><code>my_list = [for ip in subnet for subnet in subnets] </code></pre> <p>where I'm getting...
[ { "answer_id": 74392724, "author": "cmauck10", "author_id": 19935366, "author_profile": "https://Stackoverflow.com/users/19935366", "pm_score": 2, "selected": true, "text": "my_list = [ip for subnet in subnets for ip in subnet]\n" }, { "answer_id": 74392737, "author": "Ljg", ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470733/" ]
74,392,651
<p>I'm trying to use the append (<code>+=</code>) operator for a JSX expression:</p> <pre><code>let j = &quot;&quot;; for (let i in [1,2,3]) { j += &lt;span&gt;{i}&lt;/span&gt;; } </code></pre> <p>But it unexpectedly renders as three strings, instead of HTML:</p> <p><code>[object Object][object Object][object Object]...
[ { "answer_id": 74392652, "author": "emallove", "author_id": 712035, "author_profile": "https://Stackoverflow.com/users/712035", "pm_score": 2, "selected": false, "text": "[1,2,3].map((i) =>\n <span>{i}</span>\n);\n" }, { "answer_id": 74394679, "author": "codinn.dev", "au...
2022/11/10
[ "https://Stackoverflow.com/questions/74392651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/712035/" ]
74,392,666
<p>I am implemented 5mins alarm app, where we can set alarm at increment of 5mins. Ex, If I open app at 01:00PM and press button three time the alarm is set for 01:05PM, 01:10PM and 01:15PM. I used AlarmManager to set the pending intent for future broadcast and in broadcast receiver I used Notification to show notifica...
[ { "answer_id": 74392652, "author": "emallove", "author_id": 712035, "author_profile": "https://Stackoverflow.com/users/712035", "pm_score": 2, "selected": false, "text": "[1,2,3].map((i) =>\n <span>{i}</span>\n);\n" }, { "answer_id": 74394679, "author": "codinn.dev", "au...
2022/11/10
[ "https://Stackoverflow.com/questions/74392666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16373444/" ]
74,392,699
<p>I am struggling with vertically aligning the text that is shown in the navbar below. I have one div that extends over the entire navbar as a container, and two child divs two cover each the right and left part of the navbar side by side. Centering it horizontally is no problem.</p> <p>It's worth noticing that the tw...
[ { "answer_id": 74392791, "author": "goga iosebashvili", "author_id": 20121566, "author_profile": "https://Stackoverflow.com/users/20121566", "pm_score": 2, "selected": true, "text": "\n\n.topnav-left{\nfloat: left;\nwidth: 50%;\ndisplay:flex;\nalign-items:center;\n}\n\n.topnav-right{\nfl...
2022/11/10
[ "https://Stackoverflow.com/questions/74392699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20412483/" ]
74,392,708
<p>I have a list like the following:</p> <pre><code>T = [10.749957462142994, 10.90579301143351, 10.981580990083001] </code></pre> <p>That contains <code>timestamp</code> in a decimal format</p> <pre><code>hours = [ int(x) for x in T ] minutes =[ (x*60) % 60 for x in T] print(&quot;%d:%02d&quot;%(hours[0], minutes[0])...
[ { "answer_id": 74393061, "author": "dan04", "author_id": 287586, "author_profile": "https://Stackoverflow.com/users/287586", "pm_score": 2, "selected": true, "text": "import datetime\n\nDUMMY_DATETIME = datetime.datetime(2000, 1, 1, 0, 0)\nHOUR = datetime.timedelta(hours=1)\n\nT = [10.74...
2022/11/10
[ "https://Stackoverflow.com/questions/74392708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3590067/" ]
74,392,749
<p>Hello I am having some trouble with removing items from selectedTags state array onClick. Please see the below react component:</p> <p>TagPosts.tsx</p> <pre class="lang-js prettyprint-override"><code>interface Tag { id: string; name: string; } const TagPosts: React.FC= () =&gt; { let [tags, setTags] = useSta...
[ { "answer_id": 74392842, "author": "SnNeposis", "author_id": 20347565, "author_profile": "https://Stackoverflow.com/users/20347565", "pm_score": 1, "selected": false, "text": "selectedTags const newSelectedTags = selectedTags; newSelectedTags = [...selectedTags]" }, { "answer_id"...
2022/11/10
[ "https://Stackoverflow.com/questions/74392749", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17481492/" ]
74,392,773
<p>I need to count the avg number of messages sent by distinct users_id. I have the messages under the table &quot;comments&quot; , and the distinct users_id under the table &quot;user&quot;. They join under the use of another table &quot;tickets&quot; this way:</p> <pre class="lang-sql prettyprint-override"><code>left...
[ { "answer_id": 74392842, "author": "SnNeposis", "author_id": 20347565, "author_profile": "https://Stackoverflow.com/users/20347565", "pm_score": 1, "selected": false, "text": "selectedTags const newSelectedTags = selectedTags; newSelectedTags = [...selectedTags]" }, { "answer_id"...
2022/11/10
[ "https://Stackoverflow.com/questions/74392773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470674/" ]
74,392,814
<p>I have two lists and I need to print matching characters to string in order of characters in list 2. If there is no match, i need to print &quot;-&quot; instead of that character. Final string should have same length of chars as list 2</p> <p>Example 1 :</p> <pre><code>list 1 = [&quot;r&quot;, &quot;w&quot;, &quot;d...
[ { "answer_id": 74392946, "author": "Cobra", "author_id": 17580381, "author_profile": "https://Stackoverflow.com/users/17580381", "pm_score": 1, "selected": false, "text": "list_1 = [\"r\", \"w\", \"d\"]\nlist_2 = [\"w\", \"o\", \"r\", \"d\"]\nprint(*[e.upper() if e in list_1 else '-' for...
2022/11/10
[ "https://Stackoverflow.com/questions/74392814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16806651/" ]
74,392,817
<p>Is there a way to import rotated text from a PDF table such as with tabula-py in python?</p> <p>I realize I can just rename the column headers in this case, but I was wondering if there is a way to set a parameter for importing rotated text. I don't see any mention of rotation in the readthedocs for tabula-py and h...
[ { "answer_id": 74392946, "author": "Cobra", "author_id": 17580381, "author_profile": "https://Stackoverflow.com/users/17580381", "pm_score": 1, "selected": false, "text": "list_1 = [\"r\", \"w\", \"d\"]\nlist_2 = [\"w\", \"o\", \"r\", \"d\"]\nprint(*[e.upper() if e in list_1 else '-' for...
2022/11/10
[ "https://Stackoverflow.com/questions/74392817", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3621575/" ]
74,392,837
<p>I have a netCDF file for temperature going back the last 22 thousand years at a decadal average (TraCE dataset). I want to calculate 100 or 1000 year averages.</p> <p>I am really stuck, if anyone could help then that would be great. I am mostly using <code>R</code>, but if it is simple in <code>cdo</code> then I can...
[ { "answer_id": 74392946, "author": "Cobra", "author_id": 17580381, "author_profile": "https://Stackoverflow.com/users/17580381", "pm_score": 1, "selected": false, "text": "list_1 = [\"r\", \"w\", \"d\"]\nlist_2 = [\"w\", \"o\", \"r\", \"d\"]\nprint(*[e.upper() if e in list_1 else '-' for...
2022/11/10
[ "https://Stackoverflow.com/questions/74392837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470859/" ]
74,392,851
<p>I need to create functions to perform the calculation of the triangle area that include error handling using exceptions.</p> <p>Def 1: Function named checkTriangleEdges(a, b, c) that verifies:</p> <ol> <li>That the three parameters are greater than 0, and</li> <li>if the three parameters can form a triangle. Raise a...
[ { "answer_id": 74393110, "author": "Cobra", "author_id": 17580381, "author_profile": "https://Stackoverflow.com/users/17580381", "pm_score": 1, "selected": false, "text": "def checkTriangleEdges(a, b, c):\n if a <= 0 or b <= 0 or c <= 0:\n raise ValueError(\"All triangle edges ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470589/" ]
74,392,870
<p>In the past hour I was searching here and couldn't find a very simple thing I need to do, duplicate a single row at <code>index</code> x, and just put in on <code>index x+1</code>.</p> <p>df</p> <pre><code> a b 0 3 8 1 2 4 2 9 0 3 5 1 </code></pre> <p>copy index 2 and insert it as is in the next row:</p> <pre>...
[ { "answer_id": 74393282, "author": "gotiredofcoding", "author_id": 18813761, "author_profile": "https://Stackoverflow.com/users/18813761", "pm_score": 0, "selected": false, "text": "df.loc[index+0.5] = df.loc[index].values\nreturn df.sort_index().reset_index(drop = True)\n" }, { ...
2022/11/10
[ "https://Stackoverflow.com/questions/74392870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18813761/" ]
74,392,911
<p>Given I have a svg as follows:</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-html lang-html prettyprint-override"><code>&lt;svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/...
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3475930/" ]
74,392,912
<p>I have a spreadsheet (Google Sheets) with several non-contiguous Cost columns. When I try to user ArrayFormula to sum each row &quot;Grand Total&quot;, it's returning some interesting (incorrect) numbers.</p> <p>Here's a sample, stripped down the number of cost columns for brevity.</p> <div class="s-table-container"...
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20334775/" ]
74,392,916
<p>i have the following codes,</p> <pre class="lang-dart prettyprint-override"><code>class mWidget extends StatefulWidget { mWidget({super.key, required this.text}); String text; @override State&lt;mWidget&gt; createState() =&gt; _mWidgetState(); } class _mWidgetState extends State&lt;mWidget&gt; { @overrid...
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14229865/" ]
74,392,937
<p>when I run this code below I am getting IndexError: list index out of range.</p> <p>I am trying to go through the list &quot;years&quot; and compare the value found in the list to the list of lists &quot;data&quot;. I am unsure why I am getting the error below. Any thoughts on why this is the case?</p> <p>PS. I am n...
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470671/" ]
74,392,957
<p>I am working on an angular app. I am making a progress bar in it. My code is as follows:</p> <p>CSS:</p> <pre><code>.progressbar { position: relative; /* for position absolute of pseudo element work */ height: 56px; margin: 5px; background: linear-gradient(to right, red 0%, yellow 50%, green 34%) ...
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17800542/" ]
74,392,966
<p>I get a runtime error when i try to remove a fox object from a dictionary when it has starved in my simulation program, how can i fix this?</p> <p>I tried to use other methods i discovered online, but i kept getting the same error.</p> <pre><code>import random class Simulation: def __init__(self): self....
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392966", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12363234/" ]
74,392,986
<p>I encounter strange behaviour.</p> <p>Produce: <a href="https://stackblitz.com/edit/angular-nk45eb?file=src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fstore%2Fdeployment.effects.ts,src%2Fapp%2Fstore%2Fdeployment.slice.ts" rel="nofollow noreferrer">https://stackblitz.com/edit/angular-nk45eb?file=s...
[ { "answer_id": 74394478, "author": "enxaneta", "author_id": 7897395, "author_profile": "https://Stackoverflow.com/users/7897395", "pm_score": 3, "selected": true, "text": "d fill-rule=\"evenodd\" body{background:silver} <svg width=\"200\" height=\"200\" viewBox=\"0 0 20 20\" fill=\"none\...
2022/11/10
[ "https://Stackoverflow.com/questions/74392986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3701812/" ]