qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,350,412
<p>Can anyone help I am a beginner? I want the variable choice to be displayed after the menu is but I need the variable to be on top so the name inserted can be shown beside add player name.</p> <pre class="lang-py prettyprint-override"><code>choice = input(&quot;Input your menu choice: &quot;) choice = False if choi...
[ { "answer_id": 74350614, "author": "Johnny John Boy", "author_id": 7553746, "author_profile": "https://Stackoverflow.com/users/7553746", "pm_score": 1, "selected": false, "text": "import random\n\nname = 'Anonomous'\n\nplaying = True\n\nwhile playing == True:\n print(\" ...
2022/11/07
[ "https://Stackoverflow.com/questions/74350412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442394/" ]
74,350,413
<p>This is my dataframe:</p> <pre><code>df &lt;- structure(list(month_date = structure(c(19117, 19149, 19180, 19212, 19244, 19275), class = &quot;Date&quot;), Values = c(9693, 10227, 10742, 11672, 10565, 10080)), row.names = c(NA, -6L), class = c(&quot;tbl_df&quot;, &quot;tbl&quot;, &quot;data.frame&quot;)) </code><...
[ { "answer_id": 74350614, "author": "Johnny John Boy", "author_id": 7553746, "author_profile": "https://Stackoverflow.com/users/7553746", "pm_score": 1, "selected": false, "text": "import random\n\nname = 'Anonomous'\n\nplaying = True\n\nwhile playing == True:\n print(\" ...
2022/11/07
[ "https://Stackoverflow.com/questions/74350413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20359538/" ]
74,350,443
<p>In Azure Devops, let's say you have three self-hosted agents that run on three different Windows Servers and they are all part of the Default agent pool. When you create a build you're only able to specify what agent pool to pull from. If your wanting to create the build to run a specific agent (windows server) wher...
[ { "answer_id": 74350614, "author": "Johnny John Boy", "author_id": 7553746, "author_profile": "https://Stackoverflow.com/users/7553746", "pm_score": 1, "selected": false, "text": "import random\n\nname = 'Anonomous'\n\nplaying = True\n\nwhile playing == True:\n print(\" ...
2022/11/07
[ "https://Stackoverflow.com/questions/74350443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8481408/" ]
74,350,449
<p>I have a List. Employee, for example:</p> <pre><code>@Data @AllArgConstructor public class Employee { private string firstName; private string last name; private domestic salary; private LocalDataTime getSalary; } </code></pre> <p>The sheet can contain data with the same last name, first name, but dif...
[ { "answer_id": 74350726, "author": "YCF_L", "author_id": 5558072, "author_profile": "https://Stackoverflow.com/users/5558072", "pm_score": 1, "selected": false, "text": "BinaryOperator Collection<Employee> response = employee.stream()\n .collect(Collectors.toMap(\n e...
2022/11/07
[ "https://Stackoverflow.com/questions/74350449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17089505/" ]
74,350,501
<p>I have a dataset containing information of some purchases starting on <code>03/01/2018 03:00</code> and ending on <code>25/04/2022 15:00</code>. There's no pattern between dates and times of purchase occurrences. For instance, there's no purchase happening on <code>04/01/2018 05:00</code> or <code>04/01/2018 15:00<...
[ { "answer_id": 74351450, "author": "Dan Getz", "author_id": 3580870, "author_profile": "https://Stackoverflow.com/users/3580870", "pm_score": 3, "selected": true, "text": "DataFrames using DataFrames\nusing Dates\nusing IterTools\nusing Random\n\n# create test df\nRandom.seed!(123)\n\ndf...
2022/11/07
[ "https://Stackoverflow.com/questions/74350501", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13099604/" ]
74,350,517
<p>I'm using a database within my Titanium app to pull data, and in turn loop through display the section headers, then content within each section.</p> <p>All works great, with the exception of when I tap on any of the first 7 sections, they all return the last section details when I tap the listitem.</p> <p>Pretty su...
[ { "answer_id": 74351450, "author": "Dan Getz", "author_id": 3580870, "author_profile": "https://Stackoverflow.com/users/3580870", "pm_score": 3, "selected": true, "text": "DataFrames using DataFrames\nusing Dates\nusing IterTools\nusing Random\n\n# create test df\nRandom.seed!(123)\n\ndf...
2022/11/07
[ "https://Stackoverflow.com/questions/74350517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/228674/" ]
74,350,530
<p>I have a dictionary of lists, whose values are connections to other keys in that same dictionary. I need a summarized list of the connections between all of the keys regardless of how many levels the keys are away from each other.</p> <p>I can make this work with a bunch of for loops that keep searching back through...
[ { "answer_id": 74350787, "author": "Ben Grossmann", "author_id": 2476977, "author_profile": "https://Stackoverflow.com/users/2476977", "pm_score": 2, "selected": true, "text": "def dfs(v,component,unseen,adj):\n for w in adj[v]:\n if w in unseen:\n component.append(w...
2022/11/07
[ "https://Stackoverflow.com/questions/74350530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8161361/" ]
74,350,552
<p>I followed all the docs recomendation and still not working</p> <pre><code>const express = require('express') const app = express() const test = require('./middleware/test') app.use(express.json()) app.use(test) app.get('/home', (req,res) =&gt; { console.log('home') res.send(&quot;home&quot;) }) </code></pre> <p>T...
[ { "answer_id": 74352160, "author": "BISHAL GOON", "author_id": 20345598, "author_profile": "https://Stackoverflow.com/users/20345598", "pm_score": -1, "selected": false, "text": "const express = require(\"express\")\nconst app = express()\nconst errorHandler = require(\"./middleware/erro...
2022/11/07
[ "https://Stackoverflow.com/questions/74350552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16616472/" ]
74,350,575
<p>I created a html login box and designed it, the problem is the login box is stuck on the left side of the screen. I've tried to shift it to the right but my methods have failed. Wondering if there's a simple solution to the issue or if maybe I added too many elements that are affecting it?</p> <p>Example:</p> <p><di...
[ { "answer_id": 74350678, "author": "John", "author_id": 11111119, "author_profile": "https://Stackoverflow.com/users/11111119", "pm_score": 1, "selected": false, "text": "float: right; .loginbox .loginbox {\n width: 320px;\n background: #000;\n color: #fff;\n padding: 5px;\n flo...
2022/11/07
[ "https://Stackoverflow.com/questions/74350575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16941396/" ]
74,350,577
<p>As the title mentioned, I have to remove adjacent duplicates in doubly linked list such that if input is 'google', the adjacent duplicates removal is google--&gt;ggle--&gt;le and hence output should be 'le'. I'm supposed to code it in C. I tried to perform delete operation as shown in this image-<a href="https://i.s...
[ { "answer_id": 74351215, "author": "AR7CORE", "author_id": 12945333, "author_profile": "https://Stackoverflow.com/users/12945333", "pm_score": 0, "selected": false, "text": "current node = list\n\nwhile (current node != second last node)\n{\n if (current node == next node) \n {\n re...
2022/11/07
[ "https://Stackoverflow.com/questions/74350577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19611563/" ]
74,350,583
<p>If I have an offset abbreviation like <code>EDT</code>, then how can I find the zone it belongs to?</p> <pre><code>irb(main):001:0&gt; Time.find_zone(&quot;EDT&quot;) =&gt; nil irb(main):002:0&gt; ActiveSupport::TimeZone[&quot;EDT&quot;] =&gt; nil </code></pre> <p>(These work for <code>EST</code>)</p> <p>Looking at ...
[ { "answer_id": 74350796, "author": "Alexey Romanov", "author_id": 9204, "author_profile": "https://Stackoverflow.com/users/9204", "pm_score": 0, "selected": false, "text": "def tz_by_offset_abbr(abbr)\n year = Time.now.year\n dates = [Date.new(year, 1, 1), Date.new(year, 7, 1)]\n Acti...
2022/11/07
[ "https://Stackoverflow.com/questions/74350583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9204/" ]
74,350,610
<p>In my script setup SFC I want to dynamically call another function from the same component by it's name in string variable, right now I'm doing it that way:</p> <pre><code>let functionName = &quot;myFunction(param)&quot;; eval(functionName); </code></pre> <p>I read on MDN docs that using eval is dangerous, I tried t...
[ { "answer_id": 74350796, "author": "Alexey Romanov", "author_id": 9204, "author_profile": "https://Stackoverflow.com/users/9204", "pm_score": 0, "selected": false, "text": "def tz_by_offset_abbr(abbr)\n year = Time.now.year\n dates = [Date.new(year, 1, 1), Date.new(year, 7, 1)]\n Acti...
2022/11/07
[ "https://Stackoverflow.com/questions/74350610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9436295/" ]
74,350,616
<p>I'm aware that Python has a very nice function sorted() for this but I'd like to implement my own function to understand the logic. <strong>I have a list of strings and I'd like to sort them first by length, then alphabetically.</strong> For example,</p> <h4>Input:</h4> <pre><code>['daring','adequate','bold','bait',...
[ { "answer_id": 74350796, "author": "Alexey Romanov", "author_id": 9204, "author_profile": "https://Stackoverflow.com/users/9204", "pm_score": 0, "selected": false, "text": "def tz_by_offset_abbr(abbr)\n year = Time.now.year\n dates = [Date.new(year, 1, 1), Date.new(year, 7, 1)]\n Acti...
2022/11/07
[ "https://Stackoverflow.com/questions/74350616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17739476/" ]
74,350,626
<p>When running the code with <code>await asyncio.sleep(1)</code> below:</p> <pre class="lang-py prettyprint-override"><code>import asyncio async def test1(): for _ in range(0, 3): print(&quot;Test1&quot;) await asyncio.sleep(1) # Here async def test2(): for _ in range(0, 3): p...
[ { "answer_id": 74350627, "author": "Kai - Kazuya Ito", "author_id": 8172439, "author_profile": "https://Stackoverflow.com/users/8172439", "pm_score": 1, "selected": false, "text": "await asyncio.sleep(0) import asyncio\n\nasync def test1():\n for _ in range(0, 3):\n print(\"Tes...
2022/11/07
[ "https://Stackoverflow.com/questions/74350626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8172439/" ]
74,350,633
<p>In this piece of code:</p> <pre><code>void func(size_t dim, double **ptr){ (*ptr) = malloc(dim * sizeof **ptr); /* Perform Calculations...*/ } </code></pre> <p>What is the difference between using <code>sizeof **ptr</code> and <code>sizeof *ptr</code>? This is confusing me. It seems to have no difference when ...
[ { "answer_id": 74350840, "author": "AR7CORE", "author_id": 12945333, "author_profile": "https://Stackoverflow.com/users/12945333", "pm_score": 0, "selected": false, "text": "int * pointer = malloc(sizeof(* pointer));\n int ** pointer;\n\n// allocate enough space to store a pointer: sizeo...
2022/11/07
[ "https://Stackoverflow.com/questions/74350633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14523469/" ]
74,350,634
<p>I have a file (file.txt) that looks like this with 6 columns:</p> <pre><code>CHROM ID REF ALT ALT_FREQS OBS_CT 1 rs376342519:10616:CC:C CC C 0.995708 3862 1 1:54712:T:TTTTC T TTTTC 0.595903 3862 1 rs368808541:603010:C:A C A 0.00194132 3862 1 1:625248:CA:C CA C 0.00326171 3862 1...
[ { "answer_id": 74350840, "author": "AR7CORE", "author_id": 12945333, "author_profile": "https://Stackoverflow.com/users/12945333", "pm_score": 0, "selected": false, "text": "int * pointer = malloc(sizeof(* pointer));\n int ** pointer;\n\n// allocate enough space to store a pointer: sizeo...
2022/11/07
[ "https://Stackoverflow.com/questions/74350634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14614150/" ]
74,350,637
<p>I am trying to redo the following (simplified) python example in Haskell</p> <pre class="lang-py prettyprint-override"><code>zerosList = [0,0,0,0,0,0,0,0,0,0] for number in range(1,10): if (number &amp; 1) == 0: for index in range(number,9,2): zerosList[index] = zerosList[index]+1 </code></pre> <p>where ...
[ { "answer_id": 74351339, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 1, "selected": false, "text": "replace :: Int -> [Int] -> [Int]\nreplace _ [] = []\nreplace i [x] = [i]\nreplace i (x:y:xs) = i : y : replace (i+1)...
2022/11/07
[ "https://Stackoverflow.com/questions/74350637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15005121/" ]
74,350,663
<p>I am quite new to Android, and I don't know how to inherit from the class 'HereMapClass', in my case, into an activity 'HereMap' that extends AppCompatActivity?</p> <p>I think there is code in double, the goal is to have the main class that inherit all the functions of the HereMapClass. I would like to get the class...
[ { "answer_id": 74351339, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 1, "selected": false, "text": "replace :: Int -> [Int] -> [Int]\nreplace _ [] = []\nreplace i [x] = [i]\nreplace i (x:y:xs) = i : y : replace (i+1)...
2022/11/07
[ "https://Stackoverflow.com/questions/74350663", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3581620/" ]
74,350,677
<p>So I want to change the color of the text on <code>hover</code> <strong>or</strong> <code>focus</code></p> <pre><code>&lt;div class=&quot;hover:text-green-500 focus:text-green-500&quot;&gt;foo bar&lt;/div&gt; </code></pre> <p>But I was wondering if is possible to compress all in one statement, so I would not need to...
[ { "answer_id": 74351339, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 1, "selected": false, "text": "replace :: Int -> [Int] -> [Int]\nreplace _ [] = []\nreplace i [x] = [i]\nreplace i (x:y:xs) = i : y : replace (i+1)...
2022/11/07
[ "https://Stackoverflow.com/questions/74350677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10342557/" ]
74,350,679
<p>In the following example I show some mixins that may or may not use <code>*args</code> or <code>**kwargs</code>:</p> <pre><code>class AMixin(): def __init__(self, **kwargs): print(&quot;AMixin&quot;) self.a = 'a' + str(kwargs.get('a', '')) class BMixin(): def __init__(self, **kwargs)...
[ { "answer_id": 74351339, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 1, "selected": false, "text": "replace :: Int -> [Int] -> [Int]\nreplace _ [] = []\nreplace i [x] = [i]\nreplace i (x:y:xs) = i : y : replace (i+1)...
2022/11/07
[ "https://Stackoverflow.com/questions/74350679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2612235/" ]
74,350,680
<p>i'm creating a simple rpg game and i need to get information from one file and store it in my variables to be able to make the user save/modify items in the game easily, i can read my files but i do not know how to get the name and the numbers inside this lables:</p> <pre><code>itemName:(&quot;Steel Sword&quot;),ite...
[ { "answer_id": 74351087, "author": "hopperelec", "author_id": 17168710, "author_profile": "https://Stackoverflow.com/users/17168710", "pm_score": -1, "selected": false, "text": "{\"itemName\": \"Steel Sword\", \"itemStats\": [2,0,0]}\n" }, { "answer_id": 74354384, "author": "...
2022/11/07
[ "https://Stackoverflow.com/questions/74350680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442581/" ]
74,350,720
<p>Often i have a method where i want to return the error if something goes wrong, and instead of returning null, I want something less prone to errors at runtime and more easy to consume. Is there anything already done in .Net or maybe a nuget package? Maybe have a constructor with optional parameters or object initia...
[ { "answer_id": 74351171, "author": "Olivier Jacot-Descombes", "author_id": 880990, "author_profile": "https://Stackoverflow.com/users/880990", "pm_score": 1, "selected": false, "text": "Value public abstract class Result\n{\n public virtual string Message => null;\n\n public static...
2022/11/07
[ "https://Stackoverflow.com/questions/74350720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14892820/" ]
74,350,730
<p>I am trying to overwrite an object given specific changes to that object. The problem is that there are other nested objects that get overwritten as well. How would I prevent this?</p> <pre><code> const deviceChanges = { &quot;a&quot;: 5, &quot;card&quot;: { &quot;back&quot;: [ ...
[ { "answer_id": 74351155, "author": "danh", "author_id": 294949, "author_profile": "https://Stackoverflow.com/users/294949", "pm_score": 2, "selected": true, "text": "const changes = {\n \"b\": {\n \"x\": \"changed\",\n \"Z\": \"new key/value pair\"\n }\n};\n\nlet newBody = {\n \...
2022/11/07
[ "https://Stackoverflow.com/questions/74350730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442697/" ]
74,350,748
<p>I have a dataset like below -</p> <p><code>List((X,Set(&quot; 1&quot;, &quot; 7&quot;)), (Z,Set(&quot; 5&quot;)), (D,Set(&quot; 2&quot;)), (E,Set(&quot; 8&quot;)), (&quot;F &quot;,Set(&quot; 5&quot;, &quot; 9&quot;, &quot; 108&quot;)), (G,Set(&quot; 2&quot;, &quot; 11&quot;)), (A,Set(&quot; 7&quot;, &quot; 5&quot;))...
[ { "answer_id": 74350894, "author": "ravenspoint", "author_id": 16582, "author_profile": "https://Stackoverflow.com/users/16582", "pm_score": -1, "selected": false, "text": "X 1\nX 7\nZ 5\n...\n X 1\nD 2\nG 2\n...\n X \nD G\nZ F A\nX A\nE\nF\nG\n #include <string>\n#include <iostream>\n#i...
2022/11/07
[ "https://Stackoverflow.com/questions/74350748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2122502/" ]
74,350,788
<p>I want to change the property <code>amount</code> in a state object using buttons (increment and decrement). I checked using <code>console.log</code> and the property's value is changing when the buttons are clicked, but the displayed number is not changing. why is that? what am I doing wrong?</p> <p>here's my code:...
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350788", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1235167/" ]
74,350,813
<p>Current issue: Taking input to select a dictionary key, and add in a <code>quantity</code> key:value pair to that nested dictionary.</p> <p>This is my attempt</p> <pre class="lang-py prettyprint-override"><code>menu = { 1: {&quot;item&quot;: &quot;Green Beret Omelette&quot;, &quot;price&quot;: &quot;$12.99&quot;...
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11550733/" ]
74,350,818
<p>For the below code, specifically the <code>{}</code> that don't seem connected to anything, what is the syntax called and what is it doing?</p> <p>And when/why can I omit the <code>()</code> when using this syntax?</p> <pre><code>var a = new OpenApiSecurityRequirement() // Can I omit () and when/why? { { // What...
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3700261/" ]
74,350,829
<p>I have a problem with updating the state of parent component with a props from child component. It seems the following code is not working, however it looks fine</p> <pre><code>setUsersList(prevState =&gt; { return [...prevState, data]; }); </code></pre> <p>My parent component receives an object....
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11395158/" ]
74,350,835
<p>I am trying to save an excel file generated by another application that is open. i.e the excel application is in the foreground. This file has some data and it needs to be saved i.e written into the disk.</p> <p>In other words, I need to do an operation like File-&gt;SaveAs.</p> <p>Steps to reproduce:</p> <ol> <li>O...
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7067851/" ]
74,350,878
<p>I have an example of how the value of the Input element will change but the browser won't show the current value, you can check in the DevTools of the browser that the value is changed.</p> <p>I'm wondering why it's not showing the actual value of the Input element.</p> <pre><code>import { useState } from &quot;reac...
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11346798/" ]
74,350,895
<p>So im trying to make a if statement with a ui button in Uinty and i need to get the name of the button for the if state ment but it tells me that it is not convertabel even thou it is bouth a string or is it not?</p> <p>I tried it like this and was expecting it to work but it didnΒ΄t</p> <pre><code>public class UIGet...
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442602/" ]
74,350,958
<p>I already know that we can get outerHTML if the element can access direly like</p> <pre><code> var htmlString = $('#mySelectBox').outerHTML; </code></pre> <p>What if the element can't access directly because it is generated from a framework like ASP Entity Framework and we do not have direct access to that elemen...
[ { "answer_id": 74350954, "author": "Nice Books", "author_id": 994006, "author_profile": "https://Stackoverflow.com/users/994006", "pm_score": 1, "selected": false, "text": "let temp = data;\ntemp.amount++;\nsetData(temp);\n data temp == data temp.amount++ setData((data)=> {\n let temp...
2022/11/07
[ "https://Stackoverflow.com/questions/74350958", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6696702/" ]
74,350,962
<p>In Xamarin, I frequently used <code>&lt;NavigationPage.TitleView&gt;</code> to customize the navigation title bar in my views. Now that I am working in MAUI, this tag seems to have no effect on a ShellItem view.</p> <p>Here is <code>AppShell.xaml</code>:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot...
[ { "answer_id": 74351530, "author": "Jimmy", "author_id": 13445783, "author_profile": "https://Stackoverflow.com/users/13445783", "pm_score": 0, "selected": false, "text": "MainPage.xaml.cs MainPageViewModel.cs public class MainPageViewModel\n{\n public MainPageViewModel\n {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74350962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1256015/" ]
74,350,991
<p>I've installed intellij CE with jpabuddy but jpa buddy not appears to be working in my current project.</p> <p>This is my current pom.xml dependencies section</p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&...
[ { "answer_id": 74351031, "author": "duffymo", "author_id": 37213, "author_profile": "https://Stackoverflow.com/users/37213", "pm_score": 0, "selected": false, "text": "Preferences->Plugins" } ]
2022/11/07
[ "https://Stackoverflow.com/questions/74350991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5481641/" ]
74,351,005
<p>Update: I have already accepted the answer. However, if anyone could explain about why I got error message &quot;keyerror:1 &quot; in my method 2 in the question, I will be very happy with that. Thank you!</p> <p>----------------original question ----------------</p> <p>I 'm completing one exercise, but whatever I h...
[ { "answer_id": 74351031, "author": "duffymo", "author_id": 37213, "author_profile": "https://Stackoverflow.com/users/37213", "pm_score": 0, "selected": false, "text": "Preferences->Plugins" } ]
2022/11/07
[ "https://Stackoverflow.com/questions/74351005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442786/" ]
74,351,008
<p>I use MAUI.NET with MVVM architecture. Because of this I do not want to manage things through an events.</p> <p>I want to visualize two moments:</p> <ul> <li>when the user hover over the button</li> <li>when the user click on the button</li> </ul> <p>After these moments I want to button looks normal as nothing happe...
[ { "answer_id": 74351031, "author": "duffymo", "author_id": 37213, "author_profile": "https://Stackoverflow.com/users/37213", "pm_score": 0, "selected": false, "text": "Preferences->Plugins" } ]
2022/11/07
[ "https://Stackoverflow.com/questions/74351008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12698833/" ]
74,351,011
<p>I have unbalanced panel data (repeated observations per ID at different points in time). I need to identify for a change in variable per person over time.</p> <p>Here is the code to generate the data frame:</p> <pre><code>df = pd.DataFrame( { &quot;region&quot;: [&quot;C1&quot;, &quot;C1&quot;, &quot;C2&...
[ { "answer_id": 74352517, "author": "ali ardakani", "author_id": 14883419, "author_profile": "https://Stackoverflow.com/users/14883419", "pm_score": 2, "selected": true, "text": "df[\"change\"] = df.groupby(\n[\"id\"])[\"job\"].transform(lambda x: x.ne(x.shift().bfill())).astype(int)\n" ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11611258/" ]
74,351,014
<p>I have a regular expression like the following: (Running on Oracle's <code>regexp_like()</code>, despite the question isn't Oracle-specific)</p> <pre><code>abc|bcd|def|xyz </code></pre> <p>This basically matches a <code>tags</code> field on database to see if <code>tags</code> field contains <code>abc</code> <strong...
[ { "answer_id": 74351790, "author": "p3consulting", "author_id": 4956336, "author_profile": "https://Stackoverflow.com/users/4956336", "pm_score": 0, "selected": false, "text": "with data(val) AS (\n select 'cdefg abcd xyz' from dual union all\n select 'cba lmnop xyz' from dual\n),\...
2022/11/07
[ "https://Stackoverflow.com/questions/74351014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2526586/" ]
74,351,063
<p>I am building a MySQL image using <code>buildah bud -f .podman/MySQL.conf -t localhost/mysql:mushroom</code> and the following dockerfile (located at .podman/MYSQL.conf)<br></p> <pre><code> FROM mysql:8.0 ...
[ { "answer_id": 74365952, "author": "Richard Huxton", "author_id": 1029453, "author_profile": "https://Stackoverflow.com/users/1029453", "pm_score": 1, "selected": false, "text": "Dockerfile podman build . podman run 8a0516eaa26e [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for c...
2022/11/07
[ "https://Stackoverflow.com/questions/74351063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4374801/" ]
74,351,076
<p>I would like to find an elegant way of initializing C++ array elements with their indices. I have a lot of code that looks like this:</p> <pre><code>static constexpr size_t ELEMENT_COUNT = 8; MyObject x[ELEMENT_COUNT] = {{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}}; </code></pre> <p>Where <code>MyObject</code> is effecti...
[ { "answer_id": 74351185, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 4, "selected": true, "text": "std::iota std::array template<typename T, std::size_t N>\nconstexpr auto initialize_array_with_indices() {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351076", "https://Stackoverflow.com", "https://Stackoverflow.com/users/402169/" ]
74,351,090
<p>I've got to create a 4 meal option, of which 3 meals also have sauce options. No loop and/or functions are allowed.</p> <p>So I got 4 meals; 1) Steak, 2) Mussels, 3) Scampi, 4) Quinoa The user get's asked what meals he wants, by inserting the corresponding number. Any other number should result in a; &quot;We do not...
[ { "answer_id": 74351185, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 4, "selected": true, "text": "std::iota std::array template<typename T, std::size_t N>\nconstexpr auto initialize_array_with_indices() {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442768/" ]
74,351,091
<p>I'm using Azure Cosmos DB for NoSQL. I made a container with a partitionkey called 'pricedate' but not really. It's really called '/pricedate' because it's required to have the slash. How do I query it in python with <code>azure.cosmos</code> version 4.3.0 library?</p> <p>I've tried:</p> <pre><code>x=container.qu...
[ { "answer_id": 74351185, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 4, "selected": true, "text": "std::iota std::array template<typename T, std::size_t N>\nconstexpr auto initialize_array_with_indices() {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1818713/" ]
74,351,093
<p>I need some help with RegEx. I have a URL:</p> <p><code>article/life/food/woman-who-called-911-over-pink-bbq-tells-her-side-of-the-story/275-88a8538f-4c62-4204-aed8-4381d618208d</code></p> <p>This URL is not fixed and this changes every time. I only need to extract <code>woman-who-called-911-over-pink-bbq-tells-her-...
[ { "answer_id": 74351185, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 4, "selected": true, "text": "std::iota std::array template<typename T, std::size_t N>\nconstexpr auto initialize_array_with_indices() {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10422686/" ]
74,351,118
<p>I am trying to write a generic wrapper function, and thought that this would work, but it is not:</p> <pre><code>function wrapFunctionWithLogging&lt;T extends Function&gt;(f: (...args: Parameters&lt;T&gt;) =&gt; ReturnType&lt;T&gt;): ReturnType&lt;T&gt; { return function (...args: Parameters&lt;T&gt;) { ...
[ { "answer_id": 74351185, "author": "user17732522", "author_id": 17732522, "author_profile": "https://Stackoverflow.com/users/17732522", "pm_score": 4, "selected": true, "text": "std::iota std::array template<typename T, std::size_t N>\nconstexpr auto initialize_array_with_indices() {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/125032/" ]
74,351,127
<p>I have an example df:</p> <pre><code>df &lt;- data.frame( group = c(&quot;a&quot;, &quot;a&quot;, &quot;a&quot;, &quot;a&quot;, &quot;b&quot;, &quot;b&quot;, &quot;c&quot;, &quot;c&quot;, &quot;c&quot;, &quot;c&quot;, &quot;d&quot;, &quot;d&quot;, &quot;d&quot;, &quot;e&quot;, &quot;e&quot;, &quot;e&quot;, &quot;e...
[ { "answer_id": 74351327, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "if/else library(dplyr)\ndf %>% \n group_by(group) %>%\n mutate(flag = c(\"\", \"Y\")[1+ (if(1 %in% col1) col1 == 1 el...
2022/11/07
[ "https://Stackoverflow.com/questions/74351127", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8864308/" ]
74,351,257
<p>How do I generate <code>5</code> random <code>rasters</code> with values within defined bounds (different for each raster), and with pixel values summing up to <code>1</code>?</p> <p>Here are the bounds</p> <pre><code>xmin &lt;- c(0, 0, 0, 0, 0) xmax &lt;- c(26.0, 78.6, 14.4, 39.4, 70.8) </code></pre> <p>Can I also ...
[ { "answer_id": 74351327, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "if/else library(dplyr)\ndf %>% \n group_by(group) %>%\n mutate(flag = c(\"\", \"Y\")[1+ (if(1 %in% col1) col1 == 1 el...
2022/11/07
[ "https://Stackoverflow.com/questions/74351257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1280548/" ]
74,351,275
<p>I tried to change a display color from Blue to Orange when the temperature &gt; 30'C or &gt; 86'F by using a toggle switch and a range slider. the toggle switch is working ok, but the range slider doesn't work correctly.</p> <p>For example,</p> <p>When move the range slider to 87'F, sometimes the display is Blue (it...
[ { "answer_id": 74351435, "author": "John Li", "author_id": 20436957, "author_profile": "https://Stackoverflow.com/users/20436957", "pm_score": 2, "selected": false, "text": "const bgColor = (toggle && value > 30) || (!toggle && value > 86) ? 'hot' : 'cold'\n <div className={`display ${bg...
2022/11/07
[ "https://Stackoverflow.com/questions/74351275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20441670/" ]
74,351,288
<p>Having a problem with my mocked return response from my controller.</p> <p>The async response is returning as the actual POJO not the serialized json.</p> <p>Running the application and using Postman, the returned response is indeed a JSON Object... but testing it returns the actual mock POJO I've created... here is...
[ { "answer_id": 74351950, "author": "Lesiak", "author_id": 1570854, "author_profile": "https://Stackoverflow.com/users/1570854", "pm_score": 2, "selected": true, "text": "@WebFluxTest(CustomerController.class)\nclass CustomerControllerTest {\n @Autowired\n private WebTestClient webC...
2022/11/07
[ "https://Stackoverflow.com/questions/74351288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8759986/" ]
74,351,315
<p>I want to call my HTTP callable functions in my front-end but cannot import firebase properly. I tried reading the <a href="https://firebase.google.com/docs/functions/callable#set_up_your_client_development_environment" rel="nofollow noreferrer">firebase documentation</a> but am still confused.</p> <p>My questions:<...
[ { "answer_id": 74351950, "author": "Lesiak", "author_id": 1570854, "author_profile": "https://Stackoverflow.com/users/1570854", "pm_score": 2, "selected": true, "text": "@WebFluxTest(CustomerController.class)\nclass CustomerControllerTest {\n @Autowired\n private WebTestClient webC...
2022/11/07
[ "https://Stackoverflow.com/questions/74351315", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19797781/" ]
74,351,323
<p>I would like to print out total amount for each date so that my new dataframe will have date and and total amount columns. My data frame looks like this</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>permitnum</th> <th>amount</th> </tr> </thead> <tbody> <tr> <td>6/1/2022</td> <td>na</td...
[ { "answer_id": 74351950, "author": "Lesiak", "author_id": 1570854, "author_profile": "https://Stackoverflow.com/users/1570854", "pm_score": 2, "selected": true, "text": "@WebFluxTest(CustomerController.class)\nclass CustomerControllerTest {\n @Autowired\n private WebTestClient webC...
2022/11/07
[ "https://Stackoverflow.com/questions/74351323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20412105/" ]
74,351,335
<p>Well I am a beginner with android and kotlin so I have been trying to send a variable <strong>semesterSelected</strong> from the fragment <strong>ViewCourses</strong> to my viewmodel <strong>UserViewModel</strong> is the codes are down below.</p> <pre><code>`class ViewCourses(path: String) : ReplaceFragment() { ...
[ { "answer_id": 74351950, "author": "Lesiak", "author_id": 1570854, "author_profile": "https://Stackoverflow.com/users/1570854", "pm_score": 2, "selected": true, "text": "@WebFluxTest(CustomerController.class)\nclass CustomerControllerTest {\n @Autowired\n private WebTestClient webC...
2022/11/07
[ "https://Stackoverflow.com/questions/74351335", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13925224/" ]
74,351,352
<p>I am trying to input an array and then print it in reverse order using for loop. Firstly, I tried to print out the array elements in original order as follows:</p> <pre><code>#include &lt;stdio.h&gt; int main() { int a[100]; int n,i; int *p=a; printf(&quot;Enter size of array:&quot;); scanf(&quo...
[ { "answer_id": 74351387, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 3, "selected": true, "text": "for (i=n-1;i>=0;i--){\n" }, { "answer_id": 74351452, "author": "AR7CORE", "author_id": 12945333, "a...
2022/11/07
[ "https://Stackoverflow.com/questions/74351352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10838122/" ]
74,351,404
<p>By using <code>TextEditingController</code> in Flutter, I'm trying to force the user to enter a number that starts with zero and then the number 4 or 8, then enter whatever he wants. Like this:</p> <pre><code>04****** or 08****** </code></pre> <p>What should I do?</p> <p>My code:</p> <pre><code> TextFormField( ...
[ { "answer_id": 74351387, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 3, "selected": true, "text": "for (i=n-1;i>=0;i--){\n" }, { "answer_id": 74351452, "author": "AR7CORE", "author_id": 12945333, "a...
2022/11/07
[ "https://Stackoverflow.com/questions/74351404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20114679/" ]
74,351,425
<p>I Try To Pass Parameter To With() Function For Model:</p> <pre><code>Model::with(['functionA($parameters)', 'functionB']) </code></pre>
[ { "answer_id": 74351968, "author": "Mahmoud", "author_id": 10094324, "author_profile": "https://Stackoverflow.com/users/10094324", "pm_score": -1, "selected": false, "text": "$model = new Model(); // or $model = Model::where(anyConditionYouWant)->first();\n$model->functionA($parameters);...
2022/11/07
[ "https://Stackoverflow.com/questions/74351425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11064578/" ]
74,351,428
<p>I need a function to count the total number of days in the 'days' column between a start date of 1st Jan 1995 and an end date of 31st Dec 2019 in a dataframe taking Leapyears into account as well</p> <p>For example:</p> <ul> <li>1st Jan 1995 - Day 1</li> <li>1st Feb 1995 - Day 32</li> <li>2nd Feb 1995 - Day 33...</l...
[ { "answer_id": 74351559, "author": "Mateusz Dorobek", "author_id": 8081835, "author_profile": "https://Stackoverflow.com/users/8081835", "pm_score": 1, "selected": false, "text": "days df.days.dtype datetime64 object df.days = pd.to_datetime(df.days)\n df['days_diff'] = (df.days - pd.Tim...
2022/11/07
[ "https://Stackoverflow.com/questions/74351428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442029/" ]
74,351,434
<p>I'm struggling to understand why is the <code>__gc</code> metamethod is not being called here. I immediately removed the reference to <code>x</code> and triggered a GC, so why?</p> <pre class="lang-lua prettyprint-override"><code>local obj = {} obj.__index = obj function obj:__gc() print(&quot;gc&quot;) end func...
[ { "answer_id": 74351619, "author": "Optimum", "author_id": 12135804, "author_profile": "https://Stackoverflow.com/users/12135804", "pm_score": 0, "selected": false, "text": "__gc" }, { "answer_id": 74351734, "author": "Ravener", "author_id": 17027299, "author_profile"...
2022/11/07
[ "https://Stackoverflow.com/questions/74351434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17027299/" ]
74,351,436
<p>I have two GitHub accounts setup with ssh keys, one personal and one enterprise.</p> <p>I have an ssh config file as such:</p> <pre><code># * GitHub CKO SSH Key Host github-enterprise HostName github.com AddKeysToAgent yes UseKeychain yes User git IdentityFile ~/.ssh/id_ed25519_github # * GitHub Personal ...
[ { "answer_id": 74351500, "author": "m0j0", "author_id": 31319, "author_profile": "https://Stackoverflow.com/users/31319", "pm_score": 0, "selected": false, "text": "~/.ssh/config ~/.ssh/config Host *\n PreferredAuthentications publickey\n IdentityFile ~/.ssh/my-work-ssh-key\n ServerAl...
2022/11/07
[ "https://Stackoverflow.com/questions/74351436", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6884119/" ]
74,351,486
<p>The script makes an ajax call to a PHP file on input change, but the JSON isn't parsing and I don't know why Here's the Javascript</p> <pre><code> input.addEventListener(&quot;input&quot;, (event) =&gt; {output.innerHTML = &quot;Cerca &quot; + document.getElementById(&quot;tophead-searchbar&quot;).value + &qu...
[ { "answer_id": 74351500, "author": "m0j0", "author_id": 31319, "author_profile": "https://Stackoverflow.com/users/31319", "pm_score": 0, "selected": false, "text": "~/.ssh/config ~/.ssh/config Host *\n PreferredAuthentications publickey\n IdentityFile ~/.ssh/my-work-ssh-key\n ServerAl...
2022/11/07
[ "https://Stackoverflow.com/questions/74351486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19436223/" ]
74,351,494
<p>I want to take two fields from my model, one is a float, and the other is a ManyToMany and do an arithmetic operation on them and add them in a field with annotate</p> <p>At one point it worked for me and then it didn't.</p> <p>I don't know what would be the correct way I show some things from my files.</p> <p>model...
[ { "answer_id": 74351500, "author": "m0j0", "author_id": 31319, "author_profile": "https://Stackoverflow.com/users/31319", "pm_score": 0, "selected": false, "text": "~/.ssh/config ~/.ssh/config Host *\n PreferredAuthentications publickey\n IdentityFile ~/.ssh/my-work-ssh-key\n ServerAl...
2022/11/07
[ "https://Stackoverflow.com/questions/74351494", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1005875/" ]
74,351,496
<p>I've a file as follows:</p> <pre><code>[para1] abc-1-10 interpreter=/bin/sed abc-1-11 interpreter=/bin/sed [para2] abc-2-100 interpreter=/bin/sed abc-2-205 interpreter=/bin/sed abc-2-206 interpreter=/bin/sed [para3] abc-3-15 interpreter=/bin/sed abc-3-18 interpreter=/bin/sed </code></pre> <p>I need each para written...
[ { "answer_id": 74351693, "author": "HatLess", "author_id": 16372109, "author_profile": "https://Stackoverflow.com/users/16372109", "pm_score": 2, "selected": true, "text": "awk $ awk '/^\\[para/ {close(para);para=\"file\"++c\".txt\"}{print > para}' input_file\n$ head file*.txt\n==> file1...
2022/11/07
[ "https://Stackoverflow.com/questions/74351496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4204237/" ]
74,351,515
<p>I have a future call that I want to get 2 list Strings</p> <p>But I get the return value it's a Future&lt;List&lt; dynamic &gt;&gt;</p> <pre><code>var datasource = const FutureInformation(); getSliderDetailsEvents() async { SliderDetails futureEvents = await datasource.getSliderDetails(); List&lt;St...
[ { "answer_id": 74351693, "author": "HatLess", "author_id": 16372109, "author_profile": "https://Stackoverflow.com/users/16372109", "pm_score": 2, "selected": true, "text": "awk $ awk '/^\\[para/ {close(para);para=\"file\"++c\".txt\"}{print > para}' input_file\n$ head file*.txt\n==> file1...
2022/11/07
[ "https://Stackoverflow.com/questions/74351515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1348731/" ]
74,351,550
<p>I see gobs of posts about passing column names as strings to function but none of them consider this use case. All the methods I see don't work. Here is one. Please compare the <code>what_I_want</code> column to the <code>what_I_get</code> column below. I want the value of items in the column, not the column name,...
[ { "answer_id": 74351585, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 0, "selected": false, "text": "ensym Fun <- function(df,column) {\n df %>%\n mutate(what_I_want = !! rlang::ensym(column)) \n \n}\n > mtcar...
2022/11/07
[ "https://Stackoverflow.com/questions/74351550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4634335/" ]
74,351,551
<p>I set up a small vba macro that loops through a selected user range and changes the font of the cell. However, when I accidentally press Ctrl+A and change the font with my code the whole sheet crashes (I believe because it's too many cells to loop through).</p> <p>Is there a way to speed up the loop or make it more ...
[ { "answer_id": 74351634, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 3, "selected": true, "text": "If TypeOf Selection Is Range Then\n Select Case selectedIndex\n Case 0\n Selection.Font.Color = R...
2022/11/07
[ "https://Stackoverflow.com/questions/74351551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20214787/" ]
74,351,552
<p>I have abstracted some logic for fetching data into its own service.</p> <pre><code> import type { Todo } from './Todo'; class TodoService { private async secretFetch() { const todos = await fetch('https://jsonplaceholder.typicode.com/todos/'); return (await todos.json()) as Todo[]; } async fetchTodo...
[ { "answer_id": 74351634, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 3, "selected": true, "text": "If TypeOf Selection Is Range Then\n Select Case selectedIndex\n Case 0\n Selection.Font.Color = R...
2022/11/07
[ "https://Stackoverflow.com/questions/74351552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8897307/" ]
74,351,554
<p>I have a class <code>SqlGetGroupCutRates</code> which has a</p> <pre><code>public bool UpdateDefaultTarget(string param1) </code></pre> <p>method. In this method, I am using the <code>SqlClient.SqlCommand</code> class.</p> <pre><code>public bool UpdateDefaultTarget(string g1) { string myworkCenterCode = Form1.g...
[ { "answer_id": 74351634, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 3, "selected": true, "text": "If TypeOf Selection Is Range Then\n Select Case selectedIndex\n Case 0\n Selection.Font.Color = R...
2022/11/07
[ "https://Stackoverflow.com/questions/74351554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11943666/" ]
74,351,555
<p>I am building a cross platform app using Xamarin forms on a mac using Visual code for mac.</p> <p>I need to be able to change the status bar text and background colors on both the iOS and Android version of the APP.</p> <p>I tried James Montemagno's solution from his video. <a href="https://www.youtube.com/watch?v=G...
[ { "answer_id": 74351634, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 3, "selected": true, "text": "If TypeOf Selection Is Range Then\n Select Case selectedIndex\n Case 0\n Selection.Font.Color = R...
2022/11/07
[ "https://Stackoverflow.com/questions/74351555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/796060/" ]
74,351,568
<p>Consider data frame below</p> <pre><code>df &lt;- data.frame(a=c(&quot;Y&quot;, &quot;Y&quot;,&quot;N&quot;, &quot;Y&quot;, &quot;N&quot;, &quot;N&quot;), b = c(200, 1,1.4,1.3,2,1.6), c = c(200,-200,10,12,14,15), d = c(&quot;f&quot;,&quot;f&quot;,&quot;m&quot;, &quo...
[ { "answer_id": 74351653, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": true, "text": "if_all filter numeric where(is.numeric) library(dplyr)\ndf %>%\n filter(if_all(where(is.numeric),\n ~ between(.x,...
2022/11/07
[ "https://Stackoverflow.com/questions/74351568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16354132/" ]
74,351,588
<p>I'm using a transaction to see how long a device is RFM mode and the duration field increases with each table row. How I think it should work is that while the field is 'yes' it would calculate the duration that all events equal 'yes', but I have a lot of superfluous data that shouldn't be there IMO. I only want to ...
[ { "answer_id": 74351653, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": true, "text": "if_all filter numeric where(is.numeric) library(dplyr)\ndf %>%\n filter(if_all(where(is.numeric),\n ~ between(.x,...
2022/11/07
[ "https://Stackoverflow.com/questions/74351588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3567091/" ]
74,351,624
<p>I would like to have a chart that connects missing points by a line, but not show a symbol at the missing point. Here is some code that creates some test data and produces a chart, but I would like a (id=B) green line joining points 4 and 6 with a straight line, but no green triangle at time 5. I did try <code>geom_...
[ { "answer_id": 74351704, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 3, "selected": true, "text": "NA df2 <- df[!is.na(df$y), ]\n\nggplot(data=df2, aes(x=x, y=y, group=group)) +\n geom_line(aes(colour=group))+\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5770273/" ]
74,351,625
<p>Ideally, for populate to work during queries in mongoose, both the schemas of that which is been populated and the calling schema needs to be imported in same file under same repo.</p> <p>Now, I have a scenario where a schema called <code>AuthorSchema</code> was created by another internal micro-service in another r...
[ { "answer_id": 74351704, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 3, "selected": true, "text": "NA df2 <- df[!is.na(df$y), ]\n\nggplot(data=df2, aes(x=x, y=y, group=group)) +\n geom_line(aes(colour=group))+\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15155716/" ]
74,351,639
<p>I have some buttons with data-attibutes that are passing to html when they are clicked. I'm not beeing able to hide the div of .discounts when the value inserted on the data-attibute is equal to 0. Here is my code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> ...
[ { "answer_id": 74351709, "author": "Alexis", "author_id": 13986485, "author_profile": "https://Stackoverflow.com/users/13986485", "pm_score": 0, "selected": false, "text": "element.style.display = \"none\" discount == 0 .discounts" }, { "answer_id": 74351751, "author": "Amirh...
2022/11/07
[ "https://Stackoverflow.com/questions/74351639", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14185251/" ]
74,351,647
<p>I've run into an issue with our current mobile project where our click wont interact with a save button on our device page. This is currently the only scenario we have run into this with so far. I've tried various xpaths/locators including placing coordinates into the xpath itself with no luck. Additionally I notice...
[ { "answer_id": 74351709, "author": "Alexis", "author_id": 13986485, "author_profile": "https://Stackoverflow.com/users/13986485", "pm_score": 0, "selected": false, "text": "element.style.display = \"none\" discount == 0 .discounts" }, { "answer_id": 74351751, "author": "Amirh...
2022/11/07
[ "https://Stackoverflow.com/questions/74351647", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9553478/" ]
74,351,687
<p>I've got a ViewModel which conforms the <code>ObservableObject</code> protocol.</p> <p>This ViewModel holds a enum variable.</p> <pre><code>class DeviceViewModel:ObservableObject { enum ConnectionState: Equatable, CaseIterable { case NoConnected case Connected } @Published var c...
[ { "answer_id": 74351709, "author": "Alexis", "author_id": 13986485, "author_profile": "https://Stackoverflow.com/users/13986485", "pm_score": 0, "selected": false, "text": "element.style.display = \"none\" discount == 0 .discounts" }, { "answer_id": 74351751, "author": "Amirh...
2022/11/07
[ "https://Stackoverflow.com/questions/74351687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/426180/" ]
74,351,690
<p>I'm trying to use Nivo charts with typescript and I'm not sure how to define the type of data Nivo expects for their Bar Chart. (<a href="https://nivo.rocks" rel="nofollow noreferrer">https://Nivo.Rocks</a>)</p> <p>I've been trying to use</p> <ol> <li>Object Index Signature ... <code>{[Key: string]: string;}</code>...
[ { "answer_id": 74351781, "author": "GatesKennedy", "author_id": 9380773, "author_profile": "https://Stackoverflow.com/users/9380773", "pm_score": 0, "selected": false, "text": "BarDatum <ResponsiveBar/> BarDatum[] data export interface BarDatum {\n [key: string]: string | number;\n}\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74351690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9380773/" ]
74,351,697
<p>my output file has random data when I write something on it,I checked multiple sources of writing object on a file and this seems correct still can't enter the right data</p> <p><a href="https://i.stack.imgur.com/SOiyH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SOiyH.png" alt="enter image des...
[ { "answer_id": 74351828, "author": "Mark Ransom", "author_id": 5987, "author_profile": "https://Stackoverflow.com/users/5987", "pm_score": 2, "selected": false, "text": "outf.write(&obj.eventName, strlen(obj.eventName));\n" }, { "answer_id": 74351873, "author": "Silvio Mayolo...
2022/11/07
[ "https://Stackoverflow.com/questions/74351697", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11199128/" ]
74,351,715
<p>I'm coding ( Slice ) from Redux, but I need the ( initialState ) to be NULL, what's the best way to do this? I tried inserting the comma but it didn't work.</p> <p><strong>My Code:</strong></p> <pre><code>import { createSlice } from '@reduxjs/toolkit'; export const slice = createSlice({ name: 'initial', ...
[ { "answer_id": 74351828, "author": "Mark Ransom", "author_id": 5987, "author_profile": "https://Stackoverflow.com/users/5987", "pm_score": 2, "selected": false, "text": "outf.write(&obj.eventName, strlen(obj.eventName));\n" }, { "answer_id": 74351873, "author": "Silvio Mayolo...
2022/11/07
[ "https://Stackoverflow.com/questions/74351715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17016241/" ]
74,351,720
<p>When I hover the SVG, both SVG and text of link change color. But when I hover the text, only the text changes color. Is there a way to combine both as a kind of one link area?</p> <p>I would like to get a kind of field, where both SVG and text change color, when I hover over one of them. So the user sees that it be...
[ { "answer_id": 74351909, "author": "j08691", "author_id": 616443, "author_profile": "https://Stackoverflow.com/users/616443", "pm_score": 3, "selected": true, "text": ".svg-social-menu svg:hover .svg-social-menu a:hover svg .svg-social-menu li {\n display: inline-block;\n list-style-t...
2022/11/07
[ "https://Stackoverflow.com/questions/74351720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442845/" ]
74,351,726
<p>I'm trying to calculate paths for a pip install from a internal devpi server. I'm running a self-hosted runner on a Windows server virtual machine. I'm trying to install the latest PIP package to the tool directory by calculating the path as follows;</p> <pre><code> - name: pip install xmlcli env: ...
[ { "answer_id": 74351909, "author": "j08691", "author_id": 616443, "author_profile": "https://Stackoverflow.com/users/616443", "pm_score": 3, "selected": true, "text": ".svg-social-menu svg:hover .svg-social-menu a:hover svg .svg-social-menu li {\n display: inline-block;\n list-style-t...
2022/11/07
[ "https://Stackoverflow.com/questions/74351726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12345332/" ]
74,351,742
<p>I'm trying to do this:</p> <pre><code>services.AddDbContext&lt;AppDbContext&gt;( opt =&gt; opt.UseSqlServer( configuration.GetConnectionString(&quot;AppConnectionString&quot;), x =&gt; x.UseNetTopologySuite(), options =&gt; options.EnableRetryOnFail...
[ { "answer_id": 74351909, "author": "j08691", "author_id": 616443, "author_profile": "https://Stackoverflow.com/users/616443", "pm_score": 3, "selected": true, "text": ".svg-social-menu svg:hover .svg-social-menu a:hover svg .svg-social-menu li {\n display: inline-block;\n list-style-t...
2022/11/07
[ "https://Stackoverflow.com/questions/74351742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13445783/" ]
74,351,766
<p>What's the wrong in my code?</p> <p>I used 'cors' package to pass cors policy, but it doesn't work.</p> <p>My server code is:</p> <pre><code>const express = require(&quot;express&quot;); const app = express(); require(&quot;dotenv&quot;).config(); const bodyParser = require(&quot;body-parser&quot;); const cors = re...
[ { "answer_id": 74351897, "author": "ruriko123", "author_id": 16617908, "author_profile": "https://Stackoverflow.com/users/16617908", "pm_score": 0, "selected": false, "text": " \"proxy\": \"http://localhost:5000\"\n const res = await axios.get(\"/auth/Login\");\n" }, { "answer_id...
2022/11/07
[ "https://Stackoverflow.com/questions/74351766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16815849/" ]
74,351,830
<p>I have a sales database and I want to display the least used payment method. From the query that displays the times each payment method is used, I want to display the name of the method and how many times it was used only.</p> <p>To display the payment methods and counts I used SELECT Payment, COUNT(Payment) AS Occ ...
[ { "answer_id": 74351897, "author": "ruriko123", "author_id": 16617908, "author_profile": "https://Stackoverflow.com/users/16617908", "pm_score": 0, "selected": false, "text": " \"proxy\": \"http://localhost:5000\"\n const res = await axios.get(\"/auth/Login\");\n" }, { "answer_id...
2022/11/07
[ "https://Stackoverflow.com/questions/74351830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20443347/" ]
74,351,833
<p>I have a class Person with the attributes name and level</p> <pre><code>class Person: def __init__(self, name, level): self.name = name self.level = level </code></pre> <p>let's say i have a bunch of objects from that class with different attributes</p> <pre><code>p1 = Person(&quot;...
[ { "answer_id": 74351984, "author": "quamrana", "author_id": 4834, "author_profile": "https://Stackoverflow.com/users/4834", "pm_score": 2, "selected": true, "text": "people_list = [p1, p2, p3]\n def lvlFinder(people_list):\n for item in people_list:\n y = item.level\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74351833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20443179/" ]
74,351,838
<p>Im trying to just capture the following string: <code>u00</code> because i need to replace it to <code>\u00</code>.</p> <p>Sometimes this characters appear with a <code>\</code> before, in that case, i don't want to capture it. At other times, the simbol is <code>&quot;</code>, i want to capture it, but just the <co...
[ { "answer_id": 74351987, "author": "craigb", "author_id": 20236884, "author_profile": "https://Stackoverflow.com/users/20236884", "pm_score": 0, "selected": false, "text": "r'(?<!\\\\)(u00)' u00 \\" }, { "answer_id": 74352147, "author": "Wiktor StribiΕΌew", "author_id": 38...
2022/11/07
[ "https://Stackoverflow.com/questions/74351838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12725687/" ]
74,351,855
<p>I have a data model with two tables sharing the same columns. I have merged the tables using the prefixes &quot;Old.&quot; and &quot;New.&quot; I'd like to add a calculated column for each column that shows if the values are different with the name like &quot;Column_IsDifferent&quot; and a boolean value of true or f...
[ { "answer_id": 74353367, "author": "horseyride", "author_id": 9264230, "author_profile": "https://Stackoverflow.com/users/9264230", "pm_score": 0, "selected": false, "text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\n#\"Added Index\" = Table.AddIndexColumn(Source...
2022/11/07
[ "https://Stackoverflow.com/questions/74351855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5986209/" ]
74,351,882
<p>I am struggling with getting SSRS to have a domain name without naming the virtual directory. To give an example.</p> <p>I currently have reporting.domain.com/reports working fine. It's great. However, I want to eliminate the /reports, and I want to use reports.domain.com.</p> <p>I have tried to google this, but I h...
[ { "answer_id": 74353367, "author": "horseyride", "author_id": 9264230, "author_profile": "https://Stackoverflow.com/users/9264230", "pm_score": 0, "selected": false, "text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\n#\"Added Index\" = Table.AddIndexColumn(Source...
2022/11/07
[ "https://Stackoverflow.com/questions/74351882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11396082/" ]
74,351,933
<p>I know there's a way to configure a Spark Application based in your cluster resources (&quot;Executor memory&quot; and &quot;number of Executor&quot; and &quot;executor cores&quot;) I'm wondering if exist a way to do it considering the data input size?</p> <p>What would happen if data input size does not fit into al...
[ { "answer_id": 74352987, "author": "Zafar", "author_id": 4373061, "author_profile": "https://Stackoverflow.com/users/4373061", "pm_score": 1, "selected": false, "text": "spark.executor.cores spark.executor.memory spark.sql.shuffle.partitions=<number of cores * 50>" }, { "answer_i...
2022/11/07
[ "https://Stackoverflow.com/questions/74351933", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18931096/" ]
74,351,969
<p>I have the following program that prints even numbers in a provided range. However, I'd like to make it so that if the second number is smaller than the 1st number, e.g. end &lt; start, then print the even numbers but in reverse order.</p> <p>I'm thinking we would need two separate loops for each condition based on ...
[ { "answer_id": 74352040, "author": "Jean-FranΓ§ois Fabre", "author_id": 6451573, "author_profile": "https://Stackoverflow.com/users/6451573", "pm_score": 1, "selected": true, "text": "start = 20\nend = 30\n\n# uncomment to swap start & end\n#start,end = end,start\n\n# compute direction. 2...
2022/11/07
[ "https://Stackoverflow.com/questions/74351969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8397835/" ]
74,352,005
<p>My web method:</p> <pre><code> [HttpPost] public async Task&lt;IActionResult&gt; UploadFile2(IFormFile file, int idPackage) { string output = $&quot;{file.FileName} - {file.Length} - {idPackage}&quot;; return Ok(output); } </code></pre> <p>My Postman request:</p> <pre><code>POST https:...
[ { "answer_id": 74352668, "author": "K. A.", "author_id": 11696753, "author_profile": "https://Stackoverflow.com/users/11696753", "pm_score": 1, "selected": false, "text": "public class UploadFileDTO \n{\n public IFormFile File { get; set; } \n public int IdPackage { get; set; }\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74352005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1018165/" ]
74,352,053
<p>Based on the data below how can I average the columns <code>InIndividuals</code>, <code>OutIndividuals</code>, <code>InAGI</code> and <code>OutAGI</code> by <code>FIPS</code>? I am using <code>FIPS</code> because there are several counties with the same name. So the column <code>Key</code> is no longer needed as it'...
[ { "answer_id": 74352668, "author": "K. A.", "author_id": 11696753, "author_profile": "https://Stackoverflow.com/users/11696753", "pm_score": 1, "selected": false, "text": "public class UploadFileDTO \n{\n public IFormFile File { get; set; } \n public int IdPackage { get; set; }\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74352053", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12547996/" ]
74,352,076
<p>The problem is that the database does not have time to be processed and there is a call on the second circle. How to make the database processing happen and the cycle goes on. asynchronously</p> <pre><code>async def send_mes_to_users(client): async with client: user = 'userrrrrrrrr' try: ...
[ { "answer_id": 74352668, "author": "K. A.", "author_id": 11696753, "author_profile": "https://Stackoverflow.com/users/11696753", "pm_score": 1, "selected": false, "text": "public class UploadFileDTO \n{\n public IFormFile File { get; set; } \n public int IdPackage { get; set; }\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74352076", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17103932/" ]
74,352,097
<p>I know this question has been asked many times but it just doesnt work for me and i dont know why. I need to see a graph without zero values, but it only shows a graph with them no matter what i try</p> <p>These are the first 5 rows from .csv file. I need this kind of values</p> <pre><code>0 2022-10-24T12:12:35Z 4...
[ { "answer_id": 74352129, "author": "Naveed", "author_id": 3494754, "author_profile": "https://Stackoverflow.com/users/3494754", "pm_score": 2, "selected": true, "text": "# select rows that has value 0\n# then take negation of it and return the DF using LOC\n\ndf=df.loc[~df['value'].eq(0)...
2022/11/07
[ "https://Stackoverflow.com/questions/74352097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20350038/" ]
74,352,116
<p>I am trying to match partials from a list with a complete match in the other list.</p> <pre><code>match_list = ['abc', 'bcc'] # etc files = os.listdir() files = ['hello-abc', 'bye-abc', 'byebyebcc', 'byehelloxyz'] # List comprehension to match partial 'hello-abc'(example) in files with element 'abc' in files. # ...
[ { "answer_id": 74352146, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 2, "selected": false, "text": "any() match_list = ['abc', 'bcc'] # etc\nfiles = ['hello-abc', 'bye-abc', 'byebyebcc', 'byehelloxyz']\nfiles = [i fo...
2022/11/07
[ "https://Stackoverflow.com/questions/74352116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6387095/" ]
74,352,124
<p>I have this clunky code here and hope there is any way to shorten this. By the way, &quot;req.query&quot; is my query object from an nodejs express server.</p> <pre><code> const q = req.query User.insertOne({ firstName: q.firstName, lastName: q.lastName, bestFriend: q.bestFriend, ...
[ { "answer_id": 74352523, "author": "jessica-98", "author_id": 20261328, "author_profile": "https://Stackoverflow.com/users/20261328", "pm_score": 0, "selected": false, "text": "const _ = require(\"lodash\"); \nUser.insertOne(_.pick(req.query, [\n \"firstName\",\n \"lastName\",\n \"be...
2022/11/07
[ "https://Stackoverflow.com/questions/74352124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19762828/" ]
74,352,125
<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>function storage(data) { let object = {}; data.forEach(line =&gt; { let [product, quantity] = line.split(' '); if (!...
[ { "answer_id": 74352523, "author": "jessica-98", "author_id": 20261328, "author_profile": "https://Stackoverflow.com/users/20261328", "pm_score": 0, "selected": false, "text": "const _ = require(\"lodash\"); \nUser.insertOne(_.pick(req.query, [\n \"firstName\",\n \"lastName\",\n \"be...
2022/11/07
[ "https://Stackoverflow.com/questions/74352125", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12153732/" ]
74,352,126
<p>I am trying to get the result of games where records are not in team_id array.</p> <p>from front end, sending array of team_id [ 23, 24 ], the result should not consider 23, 24 id from game_teams table</p> <p><strong>games table</strong></p> <pre><code>| id | name | | 42 | game 1 | | 43 | game 2 | </code></pr...
[ { "answer_id": 74352523, "author": "jessica-98", "author_id": 20261328, "author_profile": "https://Stackoverflow.com/users/20261328", "pm_score": 0, "selected": false, "text": "const _ = require(\"lodash\"); \nUser.insertOne(_.pick(req.query, [\n \"firstName\",\n \"lastName\",\n \"be...
2022/11/07
[ "https://Stackoverflow.com/questions/74352126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15593322/" ]
74,352,148
<p>There's a table with three columns: start date, end date and task duration in hours. For example, something like that:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Id</th> <th>StartDate</th> <th>EndDate</th> <th>Duration</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>07-11-2022</td> ...
[ { "answer_id": 74352481, "author": "John Cappelletti", "author_id": 1570000, "author_profile": "https://Stackoverflow.com/users/1570000", "pm_score": 2, "selected": false, "text": "Select ID\n ,Month = month(D)\n ,HoursPerMonth = (sum(1.0) / (1+max(datediff(DAY,StartDate,EndDat...
2022/11/07
[ "https://Stackoverflow.com/questions/74352148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20443475/" ]
74,352,251
<p>I wrote some code to solve project Eulers #8. I have seen a few other solutions to this problem on line, but I do not understand how they create the nested loop, or it is a different method.</p> <p>Problem OVERVIEW: Find the thirteen adjacent digits in the 1000-digit number(string with no delimitator) that have the ...
[ { "answer_id": 74352406, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 0, "selected": false, "text": "reduce(lambda x,y: x*y, map(int, your_string)) from functools import reduce\na = \"\"\"73167...
2022/11/07
[ "https://Stackoverflow.com/questions/74352251", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20303754/" ]
74,352,270
<p>I am new to pygame (and coding) and can't figure out how to move my player from one side of the screen to the other, like the side gates in pacman, here's my code i hope someone can help me cuz it's seems like it's something easy but i just can't think of a solution yet</p> <pre><code>import pygame white=(255,255,2...
[ { "answer_id": 74352406, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 0, "selected": false, "text": "reduce(lambda x,y: x*y, map(int, your_string)) from functools import reduce\na = \"\"\"73167...
2022/11/07
[ "https://Stackoverflow.com/questions/74352270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20441186/" ]
74,352,273
<p>Hello I Have problem with getting signal in my second program. I have code like this:</p> <p>Program1:</p> <pre><code>int main() { int id = fork(); if (id == 0) { execl(&quot;program2&quot;, &quot;program2&quot;, NULL); kill(id, SIGUSR1); } return 0; } </code></pre> <p>Program 2:...
[ { "answer_id": 74352406, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 0, "selected": false, "text": "reduce(lambda x,y: x*y, map(int, your_string)) from functools import reduce\na = \"\"\"73167...
2022/11/07
[ "https://Stackoverflow.com/questions/74352273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15403065/" ]
74,352,280
<p>I have two dataframes that I'd like to join if one column's value is contained in the other column. The dataframes look like this:</p> <pre><code>df1 = pl.DataFrame({&quot;col1&quot;: [1, 2, 3], &quot;col2&quot;: [&quot;x1, x2, x3&quot;, &quot;x2, x3&quot;, &quot;x3&quot;]}) df2 = pl.DataFrame({&quot;col3&quot;: [4...
[ { "answer_id": 74368943, "author": "jqurious", "author_id": 20454927, "author_profile": "https://Stackoverflow.com/users/20454927", "pm_score": 2, "selected": false, "text": "col2 .explode() .join() >>> (df1.with_column(df1[\"col2\"].str.split(\", \").alias(\"col4\"))\n... .explode(\"...
2022/11/07
[ "https://Stackoverflow.com/questions/74352280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2690677/" ]