qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,631,840
<p>Is there a way to have a default value when doing string formatting? For example:</p> <pre><code>s = &quot;Text {0} here, and text {1} there&quot; s.format('foo', 'bar') </code></pre> <p>What I'm looking for is setting a default value for a numbered index, so that it can be skipped in the placeholder, e.g. <em>somet...
[ { "answer_id": 74631847, "author": "dbonev", "author_id": 4200334, "author_profile": "https://Stackoverflow.com/users/4200334", "pm_score": 0, "selected": false, "text": "$('section li').load(function() {\n $.ajax({\n type: 'GET',\n url: 'includes/ext-content/cpu-shop.html',...
2022/11/30
[ "https://Stackoverflow.com/questions/74631840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/738154/" ]
74,631,940
<p>A sequence of non-empty strings stringList is given, containing only uppercase letters of the Latin alphabet. For all strings starting with the same letter, determine their total length and obtain a sequence of strings of the form <code>&quot;S-C&quot;</code>, where <code>S</code> is the total length of all strings ...
[ { "answer_id": 74632043, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 1, "selected": false, "text": "var result = stringList.GroupBy(e => e[0]).Select(e => $\"{e.Sum(o => o.Length)}-{e.Key}\").ToArray();\n" }, ...
2022/11/30
[ "https://Stackoverflow.com/questions/74631940", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20569938/" ]
74,631,945
<p>I would like to set my stop-loss at the low of my entry bar.</p> <p>what is the condition I need to use ?</p> <p>I try</p> <pre><code>if strategy.position_size &lt; 0 strategy.exit(id=&quot;Close Short&quot;, stop=low[1]) </code></pre> <p>but this my stop-loss change everytime</p>
[ { "answer_id": 74632043, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 1, "selected": false, "text": "var result = stringList.GroupBy(e => e[0]).Select(e => $\"{e.Sum(o => o.Length)}-{e.Key}\").ToArray();\n" }, ...
2022/11/30
[ "https://Stackoverflow.com/questions/74631945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648245/" ]
74,631,959
<p>I'm having the following error in React:</p> <p><a href="https://i.stack.imgur.com/89oAY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/89oAY.png" alt="enter image description here" /></a></p> <p>Here's my code:</p> <pre><code>import React, { useEffect } from 'react' import './Mark.css' import { ...
[ { "answer_id": 74632071, "author": "Ferin Patel", "author_id": 11812450, "author_profile": "https://Stackoverflow.com/users/11812450", "pm_score": 0, "selected": false, "text": "{} \nreturn (\n <mark\n style={{ backgroundColor: 'rgba(0,0,0,0)', display: 'inline-grid', rowGap: '0'...
2022/11/30
[ "https://Stackoverflow.com/questions/74631959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20303244/" ]
74,632,001
<p>JSON: <a href="https://www.cc.puv.fi/%7Easa/cgi-bin/fetchOrders.py" rel="nofollow noreferrer">https://www.cc.puv.fi/~asa/cgi-bin/fetchOrders.py</a></p> <p>Im trying to fetch objects and arrays within the object but im only fetching the objects.</p> <p>How do i fetch also &quot;products&quot; arrays?</p> <p>My javasc...
[ { "answer_id": 74632071, "author": "Ferin Patel", "author_id": 11812450, "author_profile": "https://Stackoverflow.com/users/11812450", "pm_score": 0, "selected": false, "text": "{} \nreturn (\n <mark\n style={{ backgroundColor: 'rgba(0,0,0,0)', display: 'inline-grid', rowGap: '0'...
2022/11/30
[ "https://Stackoverflow.com/questions/74632001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645377/" ]
74,632,002
<pre><code>private static IEnumerable&lt;string&gt; getExtrato(string query) { using (var cn = new SqlConnection(&quot;Data Source=MAD-PC-023\\SQLEXPRESS;Database=bank;Trusted_Connection=True;&quot;)) { cn.Open(); using (var cmd = new SqlCommand() { Connection = cn, CommandText = query }) ...
[ { "answer_id": 74632317, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 2, "selected": true, "text": "private static IEnumerable<string> getExtrato(string query)\n{\n using (var cn = new SqlConnection(\"Data Sou...
2022/11/30
[ "https://Stackoverflow.com/questions/74632002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20571251/" ]
74,632,009
<p>I am stuck on this and would love some help</p> <p>Here is my table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Product</th> <th>Type</th> <th>Ranking</th> <th>Number of Columns Needed is 3 which is calculated formula</th> </tr> </thead> <tbody> <tr> <td>Gum</td> <td>Wrigley</td> <td...
[ { "answer_id": 74632317, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 2, "selected": true, "text": "private static IEnumerable<string> getExtrato(string query)\n{\n using (var cn = new SqlConnection(\"Data Sou...
2022/11/30
[ "https://Stackoverflow.com/questions/74632009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20160838/" ]
74,632,012
<pre><code>&lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-lg-3 &quot; style=&quot;border: groove;&quot;&gt; &lt;p class=&quot;circle col-xs-1 center-block&quot;&gt;01&lt;/p&gt; &lt;h3&gt;trending courses&lt;/h3&gt; &lt;p&gt;Lorem ipsum dolor sit amet consectetur ad...
[ { "answer_id": 74632287, "author": "Sanay Varghese", "author_id": 20193094, "author_profile": "https://Stackoverflow.com/users/20193094", "pm_score": -1, "selected": false, "text": "margin:auto m-auto .circle {\n margin:auto\n }\n m-auto <p class=\"circle text-center m-auto\">0...
2022/11/30
[ "https://Stackoverflow.com/questions/74632012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14768620/" ]
74,632,019
<p>I need to extract a sequence of coma separated numbers after specific substring. When the substring is in the beginning of the string it works fine, but not when its in the middle.</p> <p>The regex <code>'Port':\ .([0-9]+)</code> works fine with the example below to get the value <code>2</code>.</p> <p>String exampl...
[ { "answer_id": 74632080, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 1, "selected": false, "text": "print() ast.literal_eval() >>> import ast\n>>> d = ast.literal_eval(\"\"\"{'Port': '2', 'Array': '[0, 0]', 'Field': '[2,...
2022/11/30
[ "https://Stackoverflow.com/questions/74632019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4342378/" ]
74,632,025
<p>So, I created a minigame bot on telegram. The bot just contains a fishing game, and it's already running. I want if a user fishes and gets a fish, the fish will be stored in a database. So the user can see what he got while fishing. Does this is require SQL?</p> <p>I haven't tried anything, because I don't understan...
[ { "answer_id": 74633072, "author": "Lonami", "author_id": 4759433, "author_profile": "https://Stackoverflow.com/users/4759433", "pm_score": 1, "selected": false, "text": "json DATABASE = 'database.json' # (name or extension don't actually matter)\n\nimport json\n\n# loading\nwith open(D...
2022/11/30
[ "https://Stackoverflow.com/questions/74632025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20146680/" ]
74,632,055
<p>I am trying to find the best property for centering elements. I am new so, i want to know from the best.</p> <p>I have asked a question about css and want to know what people think of it.</p>
[ { "answer_id": 74633072, "author": "Lonami", "author_id": 4759433, "author_profile": "https://Stackoverflow.com/users/4759433", "pm_score": 1, "selected": false, "text": "json DATABASE = 'database.json' # (name or extension don't actually matter)\n\nimport json\n\n# loading\nwith open(D...
2022/11/30
[ "https://Stackoverflow.com/questions/74632055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20645265/" ]
74,632,068
<p>I'm using Bootstrap to make two buttons so that when the screen width decreases, they divide the screen not horizontally, but vertically, something like in the picture <img src="https://i.stack.imgur.com/2PY7M.png"></p> <p>I tried this</p> <p>index.php:</p> <pre><code>&lt;div class=&quot;container-fluid&quot;&gt; ...
[ { "answer_id": 74633072, "author": "Lonami", "author_id": 4759433, "author_profile": "https://Stackoverflow.com/users/4759433", "pm_score": 1, "selected": false, "text": "json DATABASE = 'database.json' # (name or extension don't actually matter)\n\nimport json\n\n# loading\nwith open(D...
2022/11/30
[ "https://Stackoverflow.com/questions/74632068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648217/" ]
74,632,086
<p>In Django, I am trying to prevent an already existing user to register (sign up) again. In my case, the user can sign up with a form. My approach is to check in <code>views.py</code> if the user already exists by checking <code>is_authenticated</code> upfront. If the user does not exist, then the form entries will b...
[ { "answer_id": 74633072, "author": "Lonami", "author_id": 4759433, "author_profile": "https://Stackoverflow.com/users/4759433", "pm_score": 1, "selected": false, "text": "json DATABASE = 'database.json' # (name or extension don't actually matter)\n\nimport json\n\n# loading\nwith open(D...
2022/11/30
[ "https://Stackoverflow.com/questions/74632086", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10966677/" ]
74,632,105
<p>I am beginning learning the basics of developing APIs and am following along with a video on YouTube by a developer named Ania Kubow. There are three javascript libraries in use which are ExpressJS, Cheerio &amp; Axios. I have picked up what she is telling us and going well enough. I am however, getting an error whe...
[ { "answer_id": 74632235, "author": "Ailton", "author_id": 16636381, "author_profile": "https://Stackoverflow.com/users/16636381", "pm_score": -1, "selected": false, "text": "res.json(articlesData) app.get('/news', (req, res) => {\n axios.get('https://www.theguardian.com/environment/clim...
2022/11/30
[ "https://Stackoverflow.com/questions/74632105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10072194/" ]
74,632,106
<ul> <li>I need to see the logs of all the pods in a deployment with N worker pods</li> <li>When I do <code>kubectl logs deployment/name --tail=0 --follow</code> the command syntax makes me assume that it will tail all pods in the deployment</li> <li>However when I go to process I don't see any output as expected until...
[ { "answer_id": 74632235, "author": "Ailton", "author_id": 16636381, "author_profile": "https://Stackoverflow.com/users/16636381", "pm_score": -1, "selected": false, "text": "res.json(articlesData) app.get('/news', (req, res) => {\n axios.get('https://www.theguardian.com/environment/clim...
2022/11/30
[ "https://Stackoverflow.com/questions/74632106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/52074/" ]
74,632,110
<p>I'm using Ubuntu 20.04.5 LTS. Output of <code>python3 --version</code> command: <em>Python 3.8.10</em> When I type <code>pip</code> in terminal and press TAB, it responds with the following options: <strong>pip</strong>, <strong>pip3</strong>, <strong>pip3.10</strong> and <strong>pip3.8</strong></p> <p>But, when I u...
[ { "answer_id": 74632235, "author": "Ailton", "author_id": 16636381, "author_profile": "https://Stackoverflow.com/users/16636381", "pm_score": -1, "selected": false, "text": "res.json(articlesData) app.get('/news', (req, res) => {\n axios.get('https://www.theguardian.com/environment/clim...
2022/11/30
[ "https://Stackoverflow.com/questions/74632110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15824843/" ]
74,632,112
<p>I want to create a trigger, but I'm getting an error.</p> <p>I have 2 tables STOK and STOK_HAREKET:</p> <ul> <li>STOK = (ID,URUN,FIYAT,MINIMUM,MAXIMUM)\</li> <li>STOK_HAREKET = (STOK_ID,FİYAT,GIRIS,CIKIS)\</li> </ul> <p>I want to build a trigger to STOK_HAREKET. On insert and update, the GIRIS and CIKIS ın STOK_HARE...
[ { "answer_id": 74632235, "author": "Ailton", "author_id": 16636381, "author_profile": "https://Stackoverflow.com/users/16636381", "pm_score": -1, "selected": false, "text": "res.json(articlesData) app.get('/news', (req, res) => {\n axios.get('https://www.theguardian.com/environment/clim...
2022/11/30
[ "https://Stackoverflow.com/questions/74632112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19864538/" ]
74,632,122
<pre><code>const names = [&quot;Daniel&quot;, &quot;Lucas&quot;, &quot;Gwen&quot;, &quot;Henry&quot;, &quot;Jasper&quot;]; </code></pre> <pre><code>const random = [&quot;hi&quot;, &quot;Lucas&quot;, &quot;apple&quot;, &quot;banana&quot;, &quot;Jasper&quot;, &quot;hello&quot;, &quot;meow&quot;]; </code></pre> <p>What I...
[ { "answer_id": 74632164, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 3, "selected": true, "text": "const names = [\"Daniel\", \"Lucas\", \"Gwen\", \"Henry\", \"Jasper\"];\nconst random = [\"hi\", \"Lucas\", \"apple\",...
2022/11/30
[ "https://Stackoverflow.com/questions/74632122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14489531/" ]
74,632,146
<p>Is there a way to kill several processes faster?</p> <pre><code>TASKKILL /F /IM process1.exe TASKKILL /F /IM process2.exe TASKKILL /F /IM process3.exe TASKKILL /F /IM process4.exe TASKKILL /F /IM process5.exe </code></pre> <p>Instead of waiting for the previous process to finish, finish them at the same time, or is ...
[ { "answer_id": 74632164, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 3, "selected": true, "text": "const names = [\"Daniel\", \"Lucas\", \"Gwen\", \"Henry\", \"Jasper\"];\nconst random = [\"hi\", \"Lucas\", \"apple\",...
2022/11/30
[ "https://Stackoverflow.com/questions/74632146", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17038199/" ]
74,632,153
<p>I'm running into a few problems defining a surjective predicate for maps and functions.</p> <pre><code>predicate isTotal&lt;G(!new), B(!new)&gt;(f:G -&gt; B) reads f.reads; { forall g:G :: f.requires(g) } predicate Surjective&lt;A(!new), B(!new)&gt;(f: A -&gt; B) requires isTotal(f) { forall b: B ...
[ { "answer_id": 74633567, "author": "Hath995", "author_id": 821989, "author_profile": "https://Stackoverflow.com/users/821989", "pm_score": 0, "selected": false, "text": "lemma TotalColorMapIsTotal<B>(m: map<Color, B>) \n requires m.Keys == {Red, Blue, Green, Yellow}\n // ensures fo...
2022/11/30
[ "https://Stackoverflow.com/questions/74632153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/821989/" ]
74,632,174
<p>I'm following this <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-dynamo-db.html" rel="nofollow noreferrer">AWS Tutorial</a> to access a DynamoDB using https requests. Using the provided JavaScript example does work, so the API Gateway configuration seems to work. I can send requests ...
[ { "answer_id": 74633261, "author": "bddap", "author_id": 4225678, "author_profile": "https://Stackoverflow.com/users/4225678", "pm_score": 0, "selected": false, "text": "{\n \"eventType\": ...,\n \"routeKey\": ...\n}\n {\n \"requestContext\": {\n \"eventType\": ...,\n \"routeKey...
2022/11/30
[ "https://Stackoverflow.com/questions/74632174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12072774/" ]
74,632,179
<p>I am trying to create an array to object, it's working fine now. But, there is a dependency in to the object <strong>{ ids: [], items: {} }</strong> Before I have declared the object with the required properties. I am trying to achieve the same thing without the object dependency at the beginning, initially it will ...
[ { "answer_id": 74632335, "author": "James", "author_id": 535480, "author_profile": "https://Stackoverflow.com/users/535480", "pm_score": 0, "selected": false, "text": "const thing = Object.fromEntries(\n items.map(i => [i.id, i])\n);\nconst converter = {ids: Object.keys(thing), items: t...
2022/11/30
[ "https://Stackoverflow.com/questions/74632179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7940824/" ]
74,632,184
<p>I have an array <code>a</code> with shape <code>(43,9)</code>. I want to plot all rows of this array in one diagram. for this I used the following code:</p> <pre><code>plt.plot(a) </code></pre> <p>it produces this diagram but I think it is wrong: <a href="https://i.stack.imgur.com/ILmJ1.png" rel="nofollow noreferrer...
[ { "answer_id": 74632335, "author": "James", "author_id": 535480, "author_profile": "https://Stackoverflow.com/users/535480", "pm_score": 0, "selected": false, "text": "const thing = Object.fromEntries(\n items.map(i => [i.id, i])\n);\nconst converter = {ids: Object.keys(thing), items: t...
2022/11/30
[ "https://Stackoverflow.com/questions/74632184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11013499/" ]
74,632,214
<p>I have a problem, I am programming in C and it turns out that I am copying some characters from one string to another but I do it manually, you know with a function that it creates, but I want to know if there is any standard C function that allows me to do that, I will put An example so you can understand what I'm ...
[ { "answer_id": 74632335, "author": "James", "author_id": 535480, "author_profile": "https://Stackoverflow.com/users/535480", "pm_score": 0, "selected": false, "text": "const thing = Object.fromEntries(\n items.map(i => [i.id, i])\n);\nconst converter = {ids: Object.keys(thing), items: t...
2022/11/30
[ "https://Stackoverflow.com/questions/74632214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646496/" ]
74,632,245
<p>I am using a flexbox on my site to display post previews as tiles. Each one is a fixed size (384*384px) and displays as a grid that fits as many tiles in each row as it can horizontally and it rearranges itself dynamically as the page is resized. This is the current CSS for this:</p> <pre class="lang-css prettyprint...
[ { "answer_id": 74632335, "author": "James", "author_id": 535480, "author_profile": "https://Stackoverflow.com/users/535480", "pm_score": 0, "selected": false, "text": "const thing = Object.fromEntries(\n items.map(i => [i.id, i])\n);\nconst converter = {ids: Object.keys(thing), items: t...
2022/11/30
[ "https://Stackoverflow.com/questions/74632245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20141464/" ]
74,632,313
<p>Can I somehow delete a value from a dictionary using its key? The function <code>del_contact</code> is supposed to delete a <code>contact</code> using only the name of the contact, but unfortunately I have the dictionary and the value, but not the key. How can this be solved?</p> <pre class="lang-py prettyprint-over...
[ { "answer_id": 74632391, "author": "Nimrod Shanny", "author_id": 20631164, "author_profile": "https://Stackoverflow.com/users/20631164", "pm_score": 2, "selected": true, "text": "my_contacts = {1: {\"Name\": \"Tom Jones\",\n \"Number\": \"911\",\n \"Bi...
2022/11/30
[ "https://Stackoverflow.com/questions/74632313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20642580/" ]
74,632,315
<p>How can I change the size of an <code>icon()</code> in shiny dashboard?</p> <pre><code>library(shiny) library(shinydashboardPlus) shinyApp( ui = dashboardPage(skin = &quot;purple&quot;, options = list(sidebarExpandOnHover = TRUE), header = dashboardHeader( ...
[ { "answer_id": 74632391, "author": "Nimrod Shanny", "author_id": 20631164, "author_profile": "https://Stackoverflow.com/users/20631164", "pm_score": 2, "selected": true, "text": "my_contacts = {1: {\"Name\": \"Tom Jones\",\n \"Number\": \"911\",\n \"Bi...
2022/11/30
[ "https://Stackoverflow.com/questions/74632315", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9198260/" ]
74,632,362
<p>I would like it to return true in C1 if A1 and B1 have at least one common character and return false in C2 if A2 and B1 do not have any common character</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th></th> <th>A</th> <th>B</th> <th>C</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>[1, ...
[ { "answer_id": 74632391, "author": "Nimrod Shanny", "author_id": 20631164, "author_profile": "https://Stackoverflow.com/users/20631164", "pm_score": 2, "selected": true, "text": "my_contacts = {1: {\"Name\": \"Tom Jones\",\n \"Number\": \"911\",\n \"Bi...
2022/11/30
[ "https://Stackoverflow.com/questions/74632362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20613916/" ]
74,632,371
<p>For each element in a list I want to add the value before and after the element and append the result to an empty list. The problem is that at index 0 there is no index before and at the end there is no index next. At index 0 I want to add the value of index 0 with value of index 1, and in the last index I want to a...
[ { "answer_id": 74632469, "author": "Hunter", "author_id": 15076691, "author_profile": "https://Stackoverflow.com/users/15076691", "pm_score": 1, "selected": false, "text": "0 vec for i in range(1, ...) 1 i vec = [1,2,3,4,5]\nnewVec = []\nvec.insert(0, 0)\nvec.insert(len(vec) + 1, 0)\nfor...
2022/11/30
[ "https://Stackoverflow.com/questions/74632371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19952753/" ]
74,632,381
<p>I want to show timer of 1 minute when user click on Re-send</p> <p><a href="https://i.stack.imgur.com/b6cds.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b6cds.png" alt="enter image description here" /></a></p> <p><a href="https://i.stack.imgur.com/K73QB.png" rel="nofollow noreferrer"><img src="...
[ { "answer_id": 74633185, "author": "Thracian", "author_id": 5457853, "author_profile": "https://Stackoverflow.com/users/5457853", "pm_score": 4, "selected": true, "text": "@Composable\nprivate fun ResendTextSample() {\n\n val str = \"Did you not receive the email? \"\n val length =...
2022/11/30
[ "https://Stackoverflow.com/questions/74632381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18823812/" ]
74,632,426
<p>I've created this dataframe -</p> <pre><code>Range = np.arange(1,101,1) A={ 0:-1, 1:0, 2:4 } Table = pd.DataFrame({&quot;Row&quot;: Range}) Table[&quot;Intervals&quot;]=np.where(Table[&quot;Row&quot;]==1,0,(Table[&quot;Row&quot;]%3).map(A)) Table Row Intervals 0 1 0 1 2 4 2 3 -1 3 4 0 4 5 ...
[ { "answer_id": 74633185, "author": "Thracian", "author_id": 5457853, "author_profile": "https://Stackoverflow.com/users/5457853", "pm_score": 4, "selected": true, "text": "@Composable\nprivate fun ResendTextSample() {\n\n val str = \"Did you not receive the email? \"\n val length =...
2022/11/30
[ "https://Stackoverflow.com/questions/74632426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16667667/" ]
74,632,438
<p>I need to make sure that the pipeline runs every day except every second Thursday and Friday by cron. The cron is located in the azure pipeline. Now I have this:</p> <pre><code>schedules: - cron: 0 19 * * 1-5 displayName: evening-deployment branches: include: - develop always: false </code></pre>
[ { "answer_id": 74633185, "author": "Thracian", "author_id": 5457853, "author_profile": "https://Stackoverflow.com/users/5457853", "pm_score": 4, "selected": true, "text": "@Composable\nprivate fun ResendTextSample() {\n\n val str = \"Did you not receive the email? \"\n val length =...
2022/11/30
[ "https://Stackoverflow.com/questions/74632438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14751570/" ]
74,632,445
<p>I'm new to prolog, I don't understand much of the language and I had already posted a question about Prolog before. Now I want to obtain, from a list of integers, the numbers in the interval that contains the largest amount of numbers in that list, in other words the maximum range. Example:</p> <pre><code>maxrange(X...
[ { "answer_id": 74633185, "author": "Thracian", "author_id": 5457853, "author_profile": "https://Stackoverflow.com/users/5457853", "pm_score": 4, "selected": true, "text": "@Composable\nprivate fun ResendTextSample() {\n\n val str = \"Did you not receive the email? \"\n val length =...
2022/11/30
[ "https://Stackoverflow.com/questions/74632445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19936225/" ]
74,632,449
<p>I have a json file with multiple json objects (each object can be a multiple line json) Example:</p> <pre class="lang-none prettyprint-override"><code>{&quot;date&quot;: &quot;2022-11-29&quot;, &quot;runs&quot;: [{&quot;23597&quot;: 821260}, {&quot;23617&quot;: 821699}]} {&quot;date&quot;: &quot;2022-11-30&quot;, &q...
[ { "answer_id": 74633185, "author": "Thracian", "author_id": 5457853, "author_profile": "https://Stackoverflow.com/users/5457853", "pm_score": 4, "selected": true, "text": "@Composable\nprivate fun ResendTextSample() {\n\n val str = \"Did you not receive the email? \"\n val length =...
2022/11/30
[ "https://Stackoverflow.com/questions/74632449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15289474/" ]
74,632,472
<p>I'm trying to contain this image grid within the viewport height and it works if I use overflow: hidden on its wrapper. However, I want to add label elements to the images that overflow their wrappers, so I need to find a solution that would keep them visible. I also need the images to stay grouped together even if ...
[ { "answer_id": 74633315, "author": "Pete Pearl", "author_id": 14290361, "author_profile": "https://Stackoverflow.com/users/14290361", "pm_score": 0, "selected": false, "text": "#_parent {\n display: flex;\n position: relative;\n height: 100vh;\n width: 50vw;\n}\n\n#_grid {\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74632472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18618451/" ]
74,632,492
<p>I have a spreadsheet where I automatically get hundreds urls and spreadsheet names (half home address half full names) and put them in the spreadsheet column. I only need around 50 of the urls based on a set of addresses I track.</p> <p>Each spreadsheet name has the address inside of it that I need to search for.</p...
[ { "answer_id": 74632733, "author": "rockinfreakshow", "author_id": 5479575, "author_profile": "https://Stackoverflow.com/users/5479575", "pm_score": 2, "selected": true, "text": "=BYROW(A:A,LAMBDA(ax,if(ax=\"\",,xlookup(ax&\"*\",'Finding INformation'!B:B,'Finding INformation'!A:A,,2))))"...
2022/11/30
[ "https://Stackoverflow.com/questions/74632492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648105/" ]
74,632,499
<p>I am trying to join two data sets together, while at the same time aggregating data from the joining table based on timestamp values from the main table. Essentially, I have two data sets, the first one looks like this:</p> <pre><code>Table_1 user id | change | timestamp ------------------------------- ...
[ { "answer_id": 74632733, "author": "rockinfreakshow", "author_id": 5479575, "author_profile": "https://Stackoverflow.com/users/5479575", "pm_score": 2, "selected": true, "text": "=BYROW(A:A,LAMBDA(ax,if(ax=\"\",,xlookup(ax&\"*\",'Finding INformation'!B:B,'Finding INformation'!A:A,,2))))"...
2022/11/30
[ "https://Stackoverflow.com/questions/74632499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4709889/" ]
74,632,508
<p>By default, Python's <code>logging</code> module uses a special format for times, which includes milliseconds: <code>2003-01-23 00:29:50,411</code>.</p> <p>Notably, <code>strftime</code> and <code>strptime</code> don't have a standard &quot;milliseconds&quot; specifier (so <code>logging</code> first prints everythin...
[ { "answer_id": 74632733, "author": "rockinfreakshow", "author_id": 5479575, "author_profile": "https://Stackoverflow.com/users/5479575", "pm_score": 2, "selected": true, "text": "=BYROW(A:A,LAMBDA(ax,if(ax=\"\",,xlookup(ax&\"*\",'Finding INformation'!B:B,'Finding INformation'!A:A,,2))))"...
2022/11/30
[ "https://Stackoverflow.com/questions/74632508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3233017/" ]
74,632,510
<p>I want to find one city for each state that has the maximum average population? I have three table state, city and population. The table provided are simplified, to only have 2 states</p> <p>&quot;state&quot; Code is our key that is unquie for each state</p> <div class="s-table-container"> <table class="s-table"> ...
[ { "answer_id": 74632733, "author": "rockinfreakshow", "author_id": 5479575, "author_profile": "https://Stackoverflow.com/users/5479575", "pm_score": 2, "selected": true, "text": "=BYROW(A:A,LAMBDA(ax,if(ax=\"\",,xlookup(ax&\"*\",'Finding INformation'!B:B,'Finding INformation'!A:A,,2))))"...
2022/11/30
[ "https://Stackoverflow.com/questions/74632510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20265307/" ]
74,632,526
<p>I am writing code, which loads the data of a JSON file and parses it using Pydantic.</p> <p>Here is the Python code:</p> <pre class="lang-py prettyprint-override"><code>import json import pydantic from typing import Optional, List class Car(pydantic.BaseModel): manufacturer: str model: str date_of_manu...
[ { "answer_id": 74632606, "author": "Crimp City", "author_id": 7211646, "author_profile": "https://Stackoverflow.com/users/7211646", "pm_score": 0, "selected": false, "text": "\"price\": \"100,000\" \"price\": 100000" }, { "answer_id": 74633080, "author": "Paul", "author_i...
2022/11/30
[ "https://Stackoverflow.com/questions/74632526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442433/" ]
74,632,527
<p>I have pageView builder which each page contains different paragraph I want to let this paragraph take all the space in page without spaces to be in the same aligment.</p> <p>I tried it by my my problem was that some paragraphs come with 7 lines which can take 100% of the page but some of them come with 3 lines and ...
[ { "answer_id": 74632606, "author": "Crimp City", "author_id": 7211646, "author_profile": "https://Stackoverflow.com/users/7211646", "pm_score": 0, "selected": false, "text": "\"price\": \"100,000\" \"price\": 100000" }, { "answer_id": 74633080, "author": "Paul", "author_i...
2022/11/30
[ "https://Stackoverflow.com/questions/74632527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570798/" ]
74,632,528
<p>I have the following data:</p> <pre><code>1 2 3 4 1 2 3 4 1 2 4 1 2 4 </code></pre> <p>If I use</p> <pre><code>plot &quot;file&quot; u 1:3 </code></pre> <p>then it plots {1,3},{1,3},{1,4},{1,4}</p> <p>How do I plot it following the column?</p> <p>This is a txt file.</p>
[ { "answer_id": 74632962, "author": "theozh", "author_id": 7295599, "author_profile": "https://Stackoverflow.com/users/7295599", "pm_score": 1, "selected": false, "text": "whitespace help datafile separator set datafile separator \" \" 1 2.1 3.1 4.1\n2 2.2 3.2 4.2\n3 2.3 4.3 # two s...
2022/11/30
[ "https://Stackoverflow.com/questions/74632528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4497470/" ]
74,632,543
<p>I have a table in a JSON whereby I need an entire row to be deleted/ filtered based on the condition if &quot;Disposition (Non Open Market)&quot; in &quot;transactionType&quot; then delete/ filter entry in all columns. Below is what my JSON file looks like:</p> <pre><code>{ &quot;lastDate&quot;:{ &quot;0...
[ { "answer_id": 74632720, "author": "jvx8ss", "author_id": 11107859, "author_profile": "https://Stackoverflow.com/users/11107859", "pm_score": 0, "selected": false, "text": "data = {\n \"lastDate\":{\n \"0\":\"11\\/22\\/2022\",\n \"1\":\"10\\/28\\/2022\",\n \"2\":\...
2022/11/30
[ "https://Stackoverflow.com/questions/74632543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18823431/" ]
74,632,544
<p>I created an element visibility trigger and attached it to my tag. The element visibility trigger was based on an id. It turns out that that id was not unique. Hence the tag connected to my trigger is being triggered for behaviors I don't want the tag triggered for. However there is a unique message that appears alo...
[ { "answer_id": 74632720, "author": "jvx8ss", "author_id": 11107859, "author_profile": "https://Stackoverflow.com/users/11107859", "pm_score": 0, "selected": false, "text": "data = {\n \"lastDate\":{\n \"0\":\"11\\/22\\/2022\",\n \"1\":\"10\\/28\\/2022\",\n \"2\":\...
2022/11/30
[ "https://Stackoverflow.com/questions/74632544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648637/" ]
74,632,566
<p>I am trying to create a sample noisy signal that I will be filtering in C. I have written the code in python but will be deploying it to a microcotroller so I want to create it in C.</p> <p>Here is the python code I am trying to replicate</p> <pre><code># 1000 samples per second sample_rate = 1000 # frequency in Hz ...
[ { "answer_id": 74632720, "author": "jvx8ss", "author_id": 11107859, "author_profile": "https://Stackoverflow.com/users/11107859", "pm_score": 0, "selected": false, "text": "data = {\n \"lastDate\":{\n \"0\":\"11\\/22\\/2022\",\n \"1\":\"10\\/28\\/2022\",\n \"2\":\...
2022/11/30
[ "https://Stackoverflow.com/questions/74632566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648642/" ]
74,632,576
<p>I need to find a regex that will match both date formats:</p> <pre><code>MM/dd/yyyy and M/d/yyyy ex. 01/31/2022, 1/1/2022, 12/13/2022, 12/1/2022 </code></pre> <p>So far I tried</p> <pre><code>^(1[0-2]|0[1-9])/(3[01]|[12][0-9]|0[1-9]{1}$)/[0-9]{4}$ </code></pre> <p>Which seems to be the closes to what I need, but it'...
[ { "answer_id": 74632659, "author": "Alexander Ivanchenko", "author_id": 17949945, "author_profile": "https://Stackoverflow.com/users/17949945", "pm_score": 2, "selected": false, "text": "\"M/d/yyyy\" M d DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"M/d/yyyy\");\nSystem.out...
2022/11/30
[ "https://Stackoverflow.com/questions/74632576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2873779/" ]
74,632,596
<p>I have a property in my state which is Map&lt;string, object | 'error'&gt; . When I get response from service I wish to update this map. I have tried below in the reducer</p> <pre><code> on(setMapData, (state, action) =&gt; { const { data } = action data.forEach( (value, id) =&gt; { let dataMap =...
[ { "answer_id": 74632659, "author": "Alexander Ivanchenko", "author_id": 17949945, "author_profile": "https://Stackoverflow.com/users/17949945", "pm_score": 2, "selected": false, "text": "\"M/d/yyyy\" M d DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"M/d/yyyy\");\nSystem.out...
2022/11/30
[ "https://Stackoverflow.com/questions/74632596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2261968/" ]
74,632,637
<p>I've tried all types of date extraction from this timestamp but nothing works.</p> <p>Data samples:</p> <ol> <li>Mon 2021 Jul 26 2021 8:26 PM</li> <li>Wed May 19 2021 22:54:00 GMT+0800 (Hong Kong Standard Time)</li> </ol> <p>Tried MOD, = Time,Minute, and Timevalue</p> <p>Does anyone have any idea?</p> <p>Tried MOD, ...
[ { "answer_id": 74632721, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 0, "selected": false, "text": "regexextract() =to_date( value( regexextract( to_text(A2), \"^\\w+ (\\w+ \\w+ \\w+)\" ) ) )" }, { "ans...
2022/11/30
[ "https://Stackoverflow.com/questions/74632637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20001886/" ]
74,632,639
<p>I have a data frame (df) that is a larger version of this:</p> <pre><code>txnID date product sold repID lastName 1001 8/5/2020 Clobromizen 600 203 Kappoorthy 1002 6/28/2020 Alaraphosol 276 887 da Silva 1003 6/28/2020 Alaraphosol 184 887 da Sil...
[ { "answer_id": 74632663, "author": "Vinícius Félix", "author_id": 9696037, "author_profile": "https://Stackoverflow.com/users/9696037", "pm_score": 2, "selected": false, "text": "dplyr library(dplyr)\n\ndf %>% \n filter(!(product %in% c(\"Xinoprozen\", \"Diaprogenix\") )%>%\n group_by(...
2022/11/30
[ "https://Stackoverflow.com/questions/74632639", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19095892/" ]
74,632,645
<p><a href="https://i.stack.imgur.com/iJRPM.png" rel="nofollow noreferrer">example background</a></p> <p>I've been trying to replicate the background pattern on the photo above. It seems to me like there is a linear gradient with 2 radial gradients nested within it. But I'm not sure... Can someone please confirm? Can s...
[ { "answer_id": 74632829, "author": "mahdi gholami", "author_id": 19267262, "author_profile": "https://Stackoverflow.com/users/19267262", "pm_score": 1, "selected": false, "text": "div{\nwidth:100%;\nheight:400px;\nbackground-image:radial-gradient(circle at 20% 70%,yellow 0%, transparent ...
2022/11/30
[ "https://Stackoverflow.com/questions/74632645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20398101/" ]
74,632,650
<p>Having a dataframe like this:</p> <pre><code>structure(list(id = c(&quot;id1&quot;, &quot;id1&quot;, &quot;id2&quot;, &quot;id2&quot;, &quot;id3&quot;, &quot;id3&quot; ), title_num = c(1, 2, 1, 2, 1, 2), title_name = c(&quot;amazon1&quot;, &quot;yahoo2&quot;, &quot;google1&quot;, NA, &quot;yahoo1&quot;, &quot;amazo...
[ { "answer_id": 74632829, "author": "mahdi gholami", "author_id": 19267262, "author_profile": "https://Stackoverflow.com/users/19267262", "pm_score": 1, "selected": false, "text": "div{\nwidth:100%;\nheight:400px;\nbackground-image:radial-gradient(circle at 20% 70%,yellow 0%, transparent ...
2022/11/30
[ "https://Stackoverflow.com/questions/74632650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20224217/" ]
74,632,667
<p>I have two lists:</p> <pre><code>expected = [&quot;apple&quot;, &quot;banana&quot;, &quot;pear&quot;] actual = [&quot;banana_yellow&quot;, &quot;apple&quot;, &quot;pear_green&quot;] </code></pre> <p>I'm trying to assert that expected = actual. Even though the color is added at the end to some elements, it should sti...
[ { "answer_id": 74632829, "author": "mahdi gholami", "author_id": 19267262, "author_profile": "https://Stackoverflow.com/users/19267262", "pm_score": 1, "selected": false, "text": "div{\nwidth:100%;\nheight:400px;\nbackground-image:radial-gradient(circle at 20% 70%,yellow 0%, transparent ...
2022/11/30
[ "https://Stackoverflow.com/questions/74632667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19643955/" ]
74,632,677
<p>I'm attempting to setup an <code>async</code> function so that my next step will not start until the function finishes.</p> <p>I coded one module to connect to mongodb server, and then check to see if it's connected. These two functions work well together.</p> <pre><code>const mongoose = require('mongoose'); const m...
[ { "answer_id": 74633297, "author": "OliverRadini", "author_id": 5011469, "author_profile": "https://Stackoverflow.com/users/5011469", "pm_score": 2, "selected": true, "text": "setTimeout(() => {\n this.checkState();\n}, 1000);\n let attempts = 0;\n\nconst isConnected = async () => {\n...
2022/11/30
[ "https://Stackoverflow.com/questions/74632677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12986274/" ]
74,632,776
<p>Been spending the past few hours figuring out why Axios is doing this.</p> <p>I tried to do this in the request library in nodeJS and it works fine, but Axios isn't.</p> <p>Essentially what i'm doing is sending a request of XML data:</p> <pre><code> var options = { 'method': 'POST', 'url': 'https://r...
[ { "answer_id": 74633297, "author": "OliverRadini", "author_id": 5011469, "author_profile": "https://Stackoverflow.com/users/5011469", "pm_score": 2, "selected": true, "text": "setTimeout(() => {\n this.checkState();\n}, 1000);\n let attempts = 0;\n\nconst isConnected = async () => {\n...
2022/11/30
[ "https://Stackoverflow.com/questions/74632776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15006497/" ]
74,632,777
<p>My goal is to create simple search filter by name in html/javascript for data that I am getting from API in JSON format. In bash script I already formatted data so it is in right format for me to filter it later in javascript:</p> <p>Data ready to be pushed/imported into let jsonData array (inside html file) from da...
[ { "answer_id": 74633297, "author": "OliverRadini", "author_id": 5011469, "author_profile": "https://Stackoverflow.com/users/5011469", "pm_score": 2, "selected": true, "text": "setTimeout(() => {\n this.checkState();\n}, 1000);\n let attempts = 0;\n\nconst isConnected = async () => {\n...
2022/11/30
[ "https://Stackoverflow.com/questions/74632777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13365019/" ]
74,632,789
<p>I am trying to replicate this plot using ggplot</p> <pre><code>pacman::p_load(tidyverse, pls, remotes) install_github(&quot;rwehrens/ChemometricsWithR&quot;) data(gasoline) wavelengths &lt;- seq(900,1700, 2) matplot(wavelengths, t(gasoline$NIR), type = &quot;l&quot;, lty = 1, xlab = &quot;Wavelength (nm)&quot;, yla...
[ { "answer_id": 74632790, "author": "user7264", "author_id": 16085883, "author_profile": "https://Stackoverflow.com/users/16085883", "pm_score": 1, "selected": false, "text": "pacman::p_load(tidyverse, pls, remotes)\ninstall_github(\"rwehrens/ChemometricsWithR\")\n\ngasoline2 <- as.data.f...
2022/11/30
[ "https://Stackoverflow.com/questions/74632789", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16085883/" ]
74,632,796
<p>I am trying to delete an item from a shopping cart and I am using the filter hook to accomplish this. I have looked at the documentation for this and at the answers here on stack overflow. unfortunately no luck.</p> <p>this is my code for the entire component. the function is of course &quot;deleteItemFromBasket&quo...
[ { "answer_id": 74632854, "author": "Zehan Khan", "author_id": 16884475, "author_profile": "https://Stackoverflow.com/users/16884475", "pm_score": -1, "selected": false, "text": "function CheckoutProduct({id, title, price, description, rating, category, image }) {\n const [baskets, add...
2022/11/30
[ "https://Stackoverflow.com/questions/74632796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14108719/" ]
74,632,798
<p>I need to shift valid values to the top the of dataframe withing each <code>id</code>. Here is an example dataset:</p> <pre><code>df &lt;- data.frame(id = c(1,1,1,2,2,2,3,3,3,3), itemid = c(1,2,3,1,2,3,1,2,3,4), values = c(1,NA,0,NA,NA,0,1,NA,0,NA)) df id itemid values 1 1...
[ { "answer_id": 74632870, "author": "Ben", "author_id": 3460670, "author_profile": "https://Stackoverflow.com/users/3460670", "pm_score": 4, "selected": true, "text": "tidyverse arrange values library(tidyverse)\n\ndf %>%\n arrange(id, is.na(values))\n id itemid values\n <dbl> <...
2022/11/30
[ "https://Stackoverflow.com/questions/74632798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5933306/" ]
74,632,800
<p>I need an output of current count vs total count in single line. I would like to know if this could be done Via Bash using 'for' 'while' loop.</p> <p>Expecting an output that should only update the count and should not display multiple lines</p> <p>File Content</p> <pre><code>$ cat ~/test.rtf hostname1 hostname2 hos...
[ { "answer_id": 74633041, "author": "M. Nejat Aydin", "author_id": 13809001, "author_profile": "https://Stackoverflow.com/users/13809001", "pm_score": 0, "selected": false, "text": "file=~/test.rtf\nnl=$(wc -l \"$file\")\nnl=${nl%%[[:blank:]]*}\ni=0\nwhile IFS= read -r line; do\n i=$((...
2022/11/30
[ "https://Stackoverflow.com/questions/74632800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9379443/" ]
74,632,802
<p>LibreOffice API object is returning a URI path that contains relative path in the middle of the string, like:</p> <p><code>file:///C:/Program%20Files/LibreOffice/program/../share/gallery/sounds/apert2.wav</code></p> <p>How to convert this to the absolute like:</p> <p><code>file:///C:/Program%20Files/LibreOffice/shar...
[ { "answer_id": 74632822, "author": "9769953", "author_id": 9769953, "author_profile": "https://Stackoverflow.com/users/9769953", "pm_score": 2, "selected": false, "text": "os.path.normpath import os\n\nos.path.normpath(\"file:///C:/Program%20Files/LibreOffice/program/../share/gallery/sou...
2022/11/30
[ "https://Stackoverflow.com/questions/74632802", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1171746/" ]
74,632,805
<ul> <li>Laravel Version: 9.42.0</li> <li>PHP Version: 8.1.13</li> <li>Database Driver &amp; Version:</li> </ul> <h3>Description:</h3> <p>Before laravel 9 update, form rules were working as I wanted. It started behaving differently after the update.</p> <p>While the same code and the same request occur without an error...
[ { "answer_id": 74635611, "author": "Tyler Wall", "author_id": 551878, "author_profile": "https://Stackoverflow.com/users/551878", "pm_score": 0, "selected": false, "text": "HTTP 422 HTTP 200 return response() HTTP 200 'exclude_if + required_with' required required_with" } ]
2022/11/30
[ "https://Stackoverflow.com/questions/74632805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2470529/" ]
74,632,830
<p>Write a function that accepts a weekday as a string (e.g. ‘Sunday’) and returns the number of days to the next specified weekday. The input should be case-insensitive. If the specified weekday is today, return <code>Hey, today is ${ specifiedWeekday } =)</code>, otherwise return <code>It's ${ number } day(s) left ti...
[ { "answer_id": 74635611, "author": "Tyler Wall", "author_id": 551878, "author_profile": "https://Stackoverflow.com/users/551878", "pm_score": 0, "selected": false, "text": "HTTP 422 HTTP 200 return response() HTTP 200 'exclude_if + required_with' required required_with" } ]
2022/11/30
[ "https://Stackoverflow.com/questions/74632830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648825/" ]
74,632,882
<p>I have the following code</p> <pre><code>query = query.Where(x =&gt; words.Any(x.Message.Contains)); </code></pre> <p><code>words</code> is a <code>string[]</code> and <code>x.Message</code> is a <code>string</code></p> <p>I would like to filter out my query based on all the words in my array but I would like this n...
[ { "answer_id": 74632967, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 1, "selected": false, "text": ".ToLower() query = query.Where(x => words.Any(s => x.Message.ToLower().Contains(s.ToLower())));\n" }, { "...
2022/11/30
[ "https://Stackoverflow.com/questions/74632882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1797038/" ]
74,632,926
<p>I have GitHub repository with multiple branches, and I want to commit and push changes to a specific branch, how can I switch from &quot;master*&quot; branch to another branch?</p> <p>I tried to switch by clicking the branch name in the left bottom side of the screen and it didn't switch.</p>
[ { "answer_id": 74632967, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 1, "selected": false, "text": ".ToLower() query = query.Where(x => words.Any(s => x.Message.ToLower().Contains(s.ToLower())));\n" }, { "...
2022/11/30
[ "https://Stackoverflow.com/questions/74632926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19402870/" ]
74,632,992
<div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">keyword</th> <th style="text-align: center;">value</th> <th style="text-align: right;">keyword</th> <th style="text-align: right;">value</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Apple</td> <td style=...
[ { "answer_id": 74632967, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 1, "selected": false, "text": ".ToLower() query = query.Where(x => words.Any(s => x.Message.ToLower().Contains(s.ToLower())));\n" }, { "...
2022/11/30
[ "https://Stackoverflow.com/questions/74632992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648840/" ]
74,633,002
<p>We have a Typescript based NodeJs project that makes use of Mongoose. We are trying to find an appropriate way to define an enum field on a Mongoose schema, based on a Typescript enum. Taking an example enum:</p> <pre><code>enum StatusType { Approved = 1, Decline = 0, } </code></pre> <pre><code>const userSch...
[ { "answer_id": 74632967, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 1, "selected": false, "text": ".ToLower() query = query.Where(x => words.Any(s => x.Message.ToLower().Contains(s.ToLower())));\n" }, { "...
2022/11/30
[ "https://Stackoverflow.com/questions/74633002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12047433/" ]
74,633,024
<p>I have an array as</p> <pre><code>[&quot;first_name&quot;] </code></pre> <p>and I want to convert it to</p> <pre><code>[&quot;user.first_name&quot;] </code></pre> <p>I cannot figure out how I can do this in rails.</p>
[ { "answer_id": 74633434, "author": "Jesse Antunes", "author_id": 17750651, "author_profile": "https://Stackoverflow.com/users/17750651", "pm_score": 3, "selected": true, "text": "my_array = [\"test\", \"test2\", \"first_name\"]\nnew_array = my_array.collect{|value| \"user.#{value}\" }\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12763413/" ]
74,633,032
<p>I am trying to update .</p> <p><strong>I am getting the error</strong></p> <p>The POST method is not supported for this route. Supported methods: GET, HEAD.</p> <p>Following are the code</p> <p><strong>In Route</strong></p> <p><code>Route::post('editcountries','App\Http\Controllers\backend\admineditcountryController...
[ { "answer_id": 74633434, "author": "Jesse Antunes", "author_id": 17750651, "author_profile": "https://Stackoverflow.com/users/17750651", "pm_score": 3, "selected": true, "text": "my_array = [\"test\", \"test2\", \"first_name\"]\nnew_array = my_array.collect{|value| \"user.#{value}\" }\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633032", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648937/" ]
74,633,037
<p>Sample:</p> <pre><code>id value 1 a 1 b 1 c 1 d 1 a 1 b 1 d 1 a </code></pre> <p>Expected outcome:</p> <pre><code>id value outcome 1 a 1 1 b 1 1 c 1 1 d 1 1 a 2 1 b 2 1 d 2 1 a 3 </code></pre> <p>So the basic idea is that I need ...
[ { "answer_id": 74633115, "author": "Guru Stron", "author_id": 2501279, "author_profile": "https://Stackoverflow.com/users/2501279", "pm_score": 3, "selected": true, "text": "row_number value id value -- sample data\nwith dataset(id, value) as(\n values (1, 'a'),\n (1, 'b'),\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3642271/" ]
74,633,040
<p>Hi I am trying to use Data Service Call. When I use it in any proxy service in wso2 I get an error Unknown mediator referenced by configuration element: dataServiceCall</p> <blockquote> <p><a href="https://apim.docs.wso2.com/en/latest/reference/mediators/dss-mediator/" rel="nofollow noreferrer">https://apim.docs.wso...
[ { "answer_id": 74634772, "author": "ycr", "author_id": 2627018, "author_profile": "https://Stackoverflow.com/users/2627018", "pm_score": 1, "selected": true, "text": "Integration Studio DataServiceCall Mediator" } ]
2022/11/30
[ "https://Stackoverflow.com/questions/74633040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19503782/" ]
74,633,109
<p>I'm trying to dynamically size a container to the width of its children when they're broken down into columns and rows. This can easily be achieved by writing a bunch of media queries and hard coding the width of the container, but I'm looking for a way to do it dynamically with CSS.</p> <p>In this example id like <...
[ { "answer_id": 74633152, "author": "Seyfullah Akgun", "author_id": 18068342, "author_profile": "https://Stackoverflow.com/users/18068342", "pm_score": 0, "selected": false, "text": ".item {\n width: 100%;\n}" }, { "answer_id": 74634707, "author": "Temani Afif", "author_i...
2022/11/30
[ "https://Stackoverflow.com/questions/74633109", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648878/" ]
74,633,150
<p>I have this dataset <a href="https://dbfiddle.uk/wtbPEvoE" rel="nofollow noreferrer">https://dbfiddle.uk/wtbPEvoE</a></p> <p>like this:</p> <pre class="lang-sql prettyprint-override"><code>CREATE TABLE #RegionSales ( Region VARCHAR(100), Distributor VARCHAR(100), Sales INTEGER, PRIMARY KEY (Region, Dis...
[ { "answer_id": 74633232, "author": "Luuk", "author_id": 724039, "author_profile": "https://Stackoverflow.com/users/724039", "pm_score": 1, "selected": false, "text": "WITH cte as (\n SELECT distinct region \n FROM #RegionSales )\nSELECT * \nFROM cte\nLEFT JOIN #...
2022/11/30
[ "https://Stackoverflow.com/questions/74633150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20169539/" ]
74,633,161
<p>I am trying to scrape information from a website with the following HTML format:</p> <pre><code>&lt;tr class=&quot;odd&quot;&gt; &lt;td class=&quot;&quot;&gt; &lt;table class=&quot;inline-table&quot;&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td rowspan=&quot;2&quot;&gt; &lt;img src=&quot...
[ { "answer_id": 74633232, "author": "Luuk", "author_id": 724039, "author_profile": "https://Stackoverflow.com/users/724039", "pm_score": 1, "selected": false, "text": "WITH cte as (\n SELECT distinct region \n FROM #RegionSales )\nSELECT * \nFROM cte\nLEFT JOIN #...
2022/11/30
[ "https://Stackoverflow.com/questions/74633161", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648951/" ]
74,633,165
<p>I'm using <a href="https://github.com/kylefox/jquery-modal#installation" rel="nofollow noreferrer">this</a> jQuery Modal Plugin to show a popup on my site.</p> <p>When the page loads, I want to delay the popup by 5 seconds, but is not working together with the &quot;setTimeout&quot; method.</p> <p>Here is my HTML:</...
[ { "answer_id": 74633232, "author": "Luuk", "author_id": 724039, "author_profile": "https://Stackoverflow.com/users/724039", "pm_score": 1, "selected": false, "text": "WITH cte as (\n SELECT distinct region \n FROM #RegionSales )\nSELECT * \nFROM cte\nLEFT JOIN #...
2022/11/30
[ "https://Stackoverflow.com/questions/74633165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13264461/" ]
74,633,181
<p>Suppose I have 2 tables in my database and 2 Windows Forms (C#) for each table <code>Section</code> and <code>Pages</code>. Now each <code>Section</code> can have 10 <code>Pages</code>.</p> <p><strong>Note</strong> that I am creating a Windows Forms app and first form looks like this</p> <p><a href="https://i.stack....
[ { "answer_id": 74633232, "author": "Luuk", "author_id": 724039, "author_profile": "https://Stackoverflow.com/users/724039", "pm_score": 1, "selected": false, "text": "WITH cte as (\n SELECT distinct region \n FROM #RegionSales )\nSELECT * \nFROM cte\nLEFT JOIN #...
2022/11/30
[ "https://Stackoverflow.com/questions/74633181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19601212/" ]
74,633,246
<p>I am trying to make sort of sliding carousel that shows a different slide based on what the user has its mouse over. I am working with z-index to show the correct slide on top. But important is that the previous slide is underneath. So the idea is:</p> <ol> <li>All slides <code>z-index: 1</code> by default</li> <li>...
[ { "answer_id": 74633405, "author": "Fanvaron", "author_id": 2814958, "author_profile": "https://Stackoverflow.com/users/2814958", "pm_score": 1, "selected": false, "text": "function onNavigationHover(navItem) {\n let slideKey = navItem.dataset.slide;\n\n slides.forEach((slide, index) =...
2022/11/30
[ "https://Stackoverflow.com/questions/74633246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10546172/" ]
74,633,248
<p>Given a div such as <code>&lt;div class=&quot;abcd ws-compid rh03 a11y-true&quot;&gt;&lt;/div&gt;</code>, I need to be able to find the last class on each div and pull it's value.</p> <p>I can currently get all the classes with classList, but can't seem to get the last class in the DOMTokenList:</p> <pre><code>[...d...
[ { "answer_id": 74633292, "author": "Robdll", "author_id": 2324133, "author_profile": "https://Stackoverflow.com/users/2324133", "pm_score": 1, "selected": false, "text": " Array.from(\n document.getElementsByTagName(\"div\")\n ).map( i => ({\n type: i.className.split(' ').pop(),\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/350305/" ]
74,633,287
<p>I'm fairly new to firebase and I'm trying to get the path to one of my subcollections in order to install a firebase extension.</p> <p>This is how my JSON looks like</p> <p><img src="https://i.stack.imgur.com/gqHkx.png" alt="firebase-image" /></p> <p>The issue is I'm trying to get the subcollection &quot;comments&qu...
[ { "answer_id": 74633292, "author": "Robdll", "author_id": 2324133, "author_profile": "https://Stackoverflow.com/users/2324133", "pm_score": 1, "selected": false, "text": " Array.from(\n document.getElementsByTagName(\"div\")\n ).map( i => ({\n type: i.className.split(' ').pop(),\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13599741/" ]
74,633,288
<p>I am using React + d3js to render data on svg, i have a large array with data like this</p> <pre><code>const arrayItemExample = { id: 1, text: 'Some Text for node', x: 100, y: 300, selected: false, dragging: false } </code></pre> <p>The list of such elements can reach tens of thousands. The main problem ...
[ { "answer_id": 74633292, "author": "Robdll", "author_id": 2324133, "author_profile": "https://Stackoverflow.com/users/2324133", "pm_score": 1, "selected": false, "text": " Array.from(\n document.getElementsByTagName(\"div\")\n ).map( i => ({\n type: i.className.split(' ').pop(),\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9722233/" ]
74,633,313
<p>I've got a basic swing GUI set up, including a dialog window. It looks the way I want it to, and acts the way I want it to... except that when I resize the dialog window vertically, it stretches a text field instead of the <code>JScrollPane</code> like I would like it to do.</p> <p>I've found lots of advice around t...
[ { "answer_id": 74633292, "author": "Robdll", "author_id": 2324133, "author_profile": "https://Stackoverflow.com/users/2324133", "pm_score": 1, "selected": false, "text": " Array.from(\n document.getElementsByTagName(\"div\")\n ).map( i => ({\n type: i.className.split(' ').pop(),\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6888191/" ]
74,633,320
<p>I have tried to implement a flatten function to even flatten strings but got an error for Recursion. Could someone help resolve this puzzle?</p> <pre><code>def flatten(items): for x in items: if isinstance(x, Iterable): yield from flatten(x) else: yield x items = [2, [3, 4, [5, 6], 7...
[ { "answer_id": 74633468, "author": "Orfeas Bourchas", "author_id": 16781682, "author_profile": "https://Stackoverflow.com/users/16781682", "pm_score": 2, "selected": false, "text": "yield from flatten(x) from collections.abc import Iterable\ndef flatten(items):\n for x in items:\n ...
2022/11/30
[ "https://Stackoverflow.com/questions/74633320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1350219/" ]
74,633,345
<p>I have some code like:</p> <pre><code>num_grades = 0 for num_grades in range(8): grade = int(input(&quot;Enter grade &quot; + str(num_grades + 1) + &quot;: &quot;)) # additional logic to check the grade and categorize it print(&quot;Total number of grades:&quot;, num_grades) # additional code to output more ...
[ { "answer_id": 74633385, "author": "Juan Cruz Carrau", "author_id": 13262535, "author_profile": "https://Stackoverflow.com/users/13262535", "pm_score": 1, "selected": false, "text": "num_grades num_grades + 1 num_grades num_grades" }, { "answer_id": 74633454, "author": "BSimj...
2022/11/30
[ "https://Stackoverflow.com/questions/74633345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20649181/" ]
74,633,352
<p>I have a dataset of part numbers, and for each of those part numbers, they were replaced at a certain cycle count. For example, in the below table is an example of my data, first column being the part number, and the second being the cycle count it was replaced (ie: part abc was replaced at 100 cycles, and then agai...
[ { "answer_id": 74633385, "author": "Juan Cruz Carrau", "author_id": 13262535, "author_profile": "https://Stackoverflow.com/users/13262535", "pm_score": 1, "selected": false, "text": "num_grades num_grades + 1 num_grades num_grades" }, { "answer_id": 74633454, "author": "BSimj...
2022/11/30
[ "https://Stackoverflow.com/questions/74633352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19935294/" ]
74,633,357
<p>I've written this code not for practical purpose but mostly out of curiosity... (btw, I know the title is not great but I couldn't think of something better... suggestions are welcome)</p> <p>Consider the following:</p> <pre><code>State next = Stream.generate(q::poll).takeWhile(Objects::nonNull) .filter(s -&gt; ...
[ { "answer_id": 74635343, "author": "Curiosa Globunznik", "author_id": 1428369, "author_profile": "https://Stackoverflow.com/users/1428369", "pm_score": 0, "selected": false, "text": "s.expand() t.findAny() t.reduce(false, (x,y) -> true) t.collect(Collectors.toList()).isEmpty() t.iterator...
2022/11/30
[ "https://Stackoverflow.com/questions/74633357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2375105/" ]
74,633,362
<p>We have data in DB2 something similar as below :</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>GUID</th> <th>ID</th> <th>Key</th> <th>SubKey</th> </tr> </thead> <tbody> <tr> <td>ABC-123-DEF</td> <td>1234567</td> <td>20</td> <td>1</td> </tr> <tr> <td>ABC-123-DEF</td> <td>1234567</td> <t...
[ { "answer_id": 74635343, "author": "Curiosa Globunznik", "author_id": 1428369, "author_profile": "https://Stackoverflow.com/users/1428369", "pm_score": 0, "selected": false, "text": "s.expand() t.findAny() t.reduce(false, (x,y) -> true) t.collect(Collectors.toList()).isEmpty() t.iterator...
2022/11/30
[ "https://Stackoverflow.com/questions/74633362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8195845/" ]
74,633,372
<p>Here is the error I get and I don't know what's the problem.</p> <p><a href="https://i.stack.imgur.com/3gKqd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3gKqd.png" alt="Error" /></a></p>
[ { "answer_id": 74635343, "author": "Curiosa Globunznik", "author_id": 1428369, "author_profile": "https://Stackoverflow.com/users/1428369", "pm_score": 0, "selected": false, "text": "s.expand() t.findAny() t.reduce(false, (x,y) -> true) t.collect(Collectors.toList()).isEmpty() t.iterator...
2022/11/30
[ "https://Stackoverflow.com/questions/74633372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20649236/" ]
74,633,377
<p>I have a page control, with a control called MyControl, and inside that is a 3rd party control called Autocomplete.</p> <p>In MyControl, I've setup the inner Autocomplete control to bind to propertiers in MyControl:</p> <pre><code>&lt;Autocomplete @bind-SelectedValue=&quot;@SelectedValue&quot; ...
[ { "answer_id": 74635343, "author": "Curiosa Globunznik", "author_id": 1428369, "author_profile": "https://Stackoverflow.com/users/1428369", "pm_score": 0, "selected": false, "text": "s.expand() t.findAny() t.reduce(false, (x,y) -> true) t.collect(Collectors.toList()).isEmpty() t.iterator...
2022/11/30
[ "https://Stackoverflow.com/questions/74633377", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9266/" ]
74,633,427
<p>I have a column containing single characters, and want to concatenate them in reverse order. How can this be accomplished in an Excel formula, without explicitly providing some list? E.g., If my input is [a;b;c;d] stored in cells A1:A4, I want to get the string &quot;dcba&quot; back. The following Excel function ...
[ { "answer_id": 74633792, "author": "Scott Craner", "author_id": 4851590, "author_profile": "https://Stackoverflow.com/users/4851590", "pm_score": 2, "selected": false, "text": "=CONCAT(INDEX(A1:A4,SEQUENCE(ROWS(A1:A4),,ROWS(A1:A4),-1)))\n =LET(rng,A1:A4,rw,ROWS(rng),CONCAT(INDEX(rng,SEQU...
2022/11/30
[ "https://Stackoverflow.com/questions/74633427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/960115/" ]
74,633,479
<p>I just cloned the a project and modified it but the centering of my logo does not work properly. When the side bar is unfolded my logo is centered properly but when its folded its not.</p> <p><a href="https://i.stack.imgur.com/GxA42.png" rel="nofollow noreferrer">Unfolded</a>, <a href="https://i.stack.imgur.com/Ts3A...
[ { "answer_id": 74633792, "author": "Scott Craner", "author_id": 4851590, "author_profile": "https://Stackoverflow.com/users/4851590", "pm_score": 2, "selected": false, "text": "=CONCAT(INDEX(A1:A4,SEQUENCE(ROWS(A1:A4),,ROWS(A1:A4),-1)))\n =LET(rng,A1:A4,rw,ROWS(rng),CONCAT(INDEX(rng,SEQU...
2022/11/30
[ "https://Stackoverflow.com/questions/74633479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,633,504
<p>I wish to run a line detector between two known points on an image but firstly I need to widen the area around the line so my line detector has more area to work with. The main issue it stretch the area around line with respect to the line slope. For instance: <a href="https://i.stack.imgur.com/0eZsr.png" rel="nofol...
[ { "answer_id": 74635056, "author": "Rotem", "author_id": 4926757, "author_profile": "https://Stackoverflow.com/users/4926757", "pm_score": 2, "selected": false, "text": " angle = np.deg2rad(rect[2]) # Angle of minAreaRect\n pad_x = 20*np.sin(angle)\n pad_y = 20*np.cos(angle)\n rect bo...
2022/11/30
[ "https://Stackoverflow.com/questions/74633504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20614959/" ]
74,633,530
<p>We have a list of orders that have multiple items, request is to have a value for each of the individual set of IDs. Like this:</p> <pre><code>order_id id_number ABC123 1 ABC123 1 DEF456 2 DEF456 2 DEF456 2 DEF456 2 GHI987 3 </code></pre> <p>So that way we get a single number fo...
[ { "answer_id": 74635056, "author": "Rotem", "author_id": 4926757, "author_profile": "https://Stackoverflow.com/users/4926757", "pm_score": 2, "selected": false, "text": " angle = np.deg2rad(rect[2]) # Angle of minAreaRect\n pad_x = 20*np.sin(angle)\n pad_y = 20*np.cos(angle)\n rect bo...
2022/11/30
[ "https://Stackoverflow.com/questions/74633530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13552281/" ]
74,633,538
<p>I have a query in Microsoft SQL Server Management Studio 18 and I am trying to show the 5 most recent dates for each customer.</p> <p>Here is the query I use:</p> <pre><code>SELECT Customer, Plant, ForecastDate FROM (SELECT *, ROW_NUMBER() OVER (PARTITION BY Plant, ForecastDate ORDER ...
[ { "answer_id": 74635056, "author": "Rotem", "author_id": 4926757, "author_profile": "https://Stackoverflow.com/users/4926757", "pm_score": 2, "selected": false, "text": " angle = np.deg2rad(rect[2]) # Angle of minAreaRect\n pad_x = 20*np.sin(angle)\n pad_y = 20*np.cos(angle)\n rect bo...
2022/11/30
[ "https://Stackoverflow.com/questions/74633538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19880719/" ]
74,633,636
<p>I have a table with two columns, and the two entries of a row show that they are related:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Col1</th> <th>Col2</th> </tr> </thead> <tbody> <tr> <td>a</td> <td>A</td> </tr> <tr> <td>b</td> <td>B</td> </tr> <tr> <td>a</td> <td>C</td> </tr> <tr>...
[ { "answer_id": 74635056, "author": "Rotem", "author_id": 4926757, "author_profile": "https://Stackoverflow.com/users/4926757", "pm_score": 2, "selected": false, "text": " angle = np.deg2rad(rect[2]) # Angle of minAreaRect\n pad_x = 20*np.sin(angle)\n pad_y = 20*np.cos(angle)\n rect bo...
2022/11/30
[ "https://Stackoverflow.com/questions/74633636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5680455/" ]
74,633,650
<p>So I have an assignment that asked me to draw any regular polygon using Turtle and I created the code. It works but my mentor said to try again. I would like to know what I did wrong, Thank you!</p> <p>The requirements for this assignment are:</p> <ul> <li>The program should take in input from the user.</li> <li>The...
[ { "answer_id": 74635056, "author": "Rotem", "author_id": 4926757, "author_profile": "https://Stackoverflow.com/users/4926757", "pm_score": 2, "selected": false, "text": " angle = np.deg2rad(rect[2]) # Angle of minAreaRect\n pad_x = 20*np.sin(angle)\n pad_y = 20*np.cos(angle)\n rect bo...
2022/11/30
[ "https://Stackoverflow.com/questions/74633650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20421383/" ]
74,633,667
<p>I have a noisy list with 3 different rows that looks like this:</p> <pre><code>array = ['Apple Mug Seaweed Wallet Toilet Bear Toy Key Alcohol Paper', 'cup, egg, pillow, leash, banana, raindrop, phone, animal, shirt, basket', '1. Dog 2. America 3. Notebook 4. Moisturizer 5. ADHD 6. Balloon 7. Con...
[ { "answer_id": 74633781, "author": "S3DEV", "author_id": 6340496, "author_profile": "https://Stackoverflow.com/users/6340496", "pm_score": 3, "selected": true, "text": "[a-zA-Z]+ str.join() import re\n\nout = [' '.join(re.findall('[a-zA-Z]+', i)) for i in array]\n ['Apple Mug Seaweed Wal...
2022/11/30
[ "https://Stackoverflow.com/questions/74633667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18317880/" ]
74,633,694
<p>I have a registered <code>onmousemove</code> event in useEffect as follows. But in order not to run the effect every time the component renders I pass it an empty array dependency. But still the function that handles the event is called. But the function is inside useEffect. How could this be possible?</p> <pre><cod...
[ { "answer_id": 74633781, "author": "S3DEV", "author_id": 6340496, "author_profile": "https://Stackoverflow.com/users/6340496", "pm_score": 3, "selected": true, "text": "[a-zA-Z]+ str.join() import re\n\nout = [' '.join(re.findall('[a-zA-Z]+', i)) for i in array]\n ['Apple Mug Seaweed Wal...
2022/11/30
[ "https://Stackoverflow.com/questions/74633694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17051327/" ]
74,633,695
<p>I would like to create a numeric indicator variable that captures the levels of a complex string <code>id</code> variable in SAS. Note that I cannot use if-then logic, as the <code>id</code> values will change constantly.</p> <p>I have searched multiple threads and previous questions, and I am unable to find an app...
[ { "answer_id": 74633781, "author": "S3DEV", "author_id": 6340496, "author_profile": "https://Stackoverflow.com/users/6340496", "pm_score": 3, "selected": true, "text": "[a-zA-Z]+ str.join() import re\n\nout = [' '.join(re.findall('[a-zA-Z]+', i)) for i in array]\n ['Apple Mug Seaweed Wal...
2022/11/30
[ "https://Stackoverflow.com/questions/74633695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/798099/" ]
74,633,702
<p>I'm facing this weird issue with <code>fillMaxWidth(fraction = ...)</code> with an AlertDialog and Button, where the Button shows up initially at one size, and on click it shrinks to wrapping its content. Here is the most basic example I can create. I've tried with multiple versions of Compose but they all do the sa...
[ { "answer_id": 74634186, "author": "Chris", "author_id": 2199001, "author_profile": "https://Stackoverflow.com/users/2199001", "pm_score": 0, "selected": false, "text": "@Composable\nfun AlertDialogSample() {\n MaterialTheme {\n Column {\n val openDialog = remember {...
2022/11/30
[ "https://Stackoverflow.com/questions/74633702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7359286/" ]
74,633,705
<p>I have an <code>unordered_map</code> which is supposed to mimic a filter, taking key and value as <code>std::string_view</code> respectively. Now say I want to compare two filters that have the same key-value-pairs: Will they always compare equal?</p> <p>My thought is the following: The compiler tries its best to me...
[ { "answer_id": 74634186, "author": "Chris", "author_id": 2199001, "author_profile": "https://Stackoverflow.com/users/2199001", "pm_score": 0, "selected": false, "text": "@Composable\nfun AlertDialogSample() {\n MaterialTheme {\n Column {\n val openDialog = remember {...
2022/11/30
[ "https://Stackoverflow.com/questions/74633705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11770390/" ]
74,633,709
<p>When I try to install npm I get this error version 8.19.3</p> <p>npm ERR! 404 Not Found - GET <a href="https://skimdb.npmjs.com/registry/laravel-echo-server/-/laravel-echo-server-1.6.3.tgz" rel="nofollow noreferrer">https://skimdb.npmjs.com/registry/laravel-echo-server/-/laravel-echo-server-1.6.3.tgz</a> - not_found...
[ { "answer_id": 74634186, "author": "Chris", "author_id": 2199001, "author_profile": "https://Stackoverflow.com/users/2199001", "pm_score": 0, "selected": false, "text": "@Composable\nfun AlertDialogSample() {\n MaterialTheme {\n Column {\n val openDialog = remember {...
2022/11/30
[ "https://Stackoverflow.com/questions/74633709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20649071/" ]