qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,355,749
<p>I am writing a salt state that will check the value of a registry key. This is returning 'NULL'. I suspect that my 'getregvalue' variable is not resolving with the variables i have passed to cmd.run. This works as expected when the -Path and -Name values are hardcoded. How do i pass the -Path and -Name variables dyn...
[ { "answer_id": 74355816, "author": "asdfasdf", "author_id": 20354959, "author_profile": "https://Stackoverflow.com/users/20354959", "pm_score": 1, "selected": false, "text": "def sort_dict(item: dict):\n for k, v in sorted(item.items()):\n item[k] = sorted(v) if isinstance(v, l...
2022/11/08
[ "https://Stackoverflow.com/questions/74355749", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12031497/" ]
74,355,756
<p>Sorry this topic has been covered many times. However, I just created a new rails 7 app using esbuild, added font-awesome-sass to the gem file, created application.css.scss (already had application.bootstrap.scss) and put &quot;@import 'font-awesome';&quot; in there.</p> <p>I then added the following to a view page...
[ { "answer_id": 74356920, "author": "Lee Drum", "author_id": 17457026, "author_profile": "https://Stackoverflow.com/users/17457026", "pm_score": 1, "selected": false, "text": "rails _7.0.4_ new demo-rails-with-react-frontend -j esbuild app/javascript/components/application.tsx import * as...
2022/11/08
[ "https://Stackoverflow.com/questions/74355756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1156973/" ]
74,355,782
<p>can you please check my code? I think something is wrong somewhere.</p> <pre><code> import datetime this_year = datetime.datetime.today().year def age_in_minutes(b_year: int): d1 = datetime.datetime.strptime(f'{this_year}', '%Y') d2 = datetime.datetime.strptime(f'{b_year}', '%Y') age = (d1-d2).days * 2...
[ { "answer_id": 74356920, "author": "Lee Drum", "author_id": 17457026, "author_profile": "https://Stackoverflow.com/users/17457026", "pm_score": 1, "selected": false, "text": "rails _7.0.4_ new demo-rails-with-react-frontend -j esbuild app/javascript/components/application.tsx import * as...
2022/11/08
[ "https://Stackoverflow.com/questions/74355782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20446052/" ]
74,355,812
<p>I'm getting a token from Azure KeyVault. I setup the keyvault in Program.cs file. It works as long as the Azure account in Visual Studio got access. obviously once that account doesn't have access, an error is thrown.</p> <p>How do I skip setting up the key vault in case it's development env AND get token value from...
[ { "answer_id": 74356920, "author": "Lee Drum", "author_id": 17457026, "author_profile": "https://Stackoverflow.com/users/17457026", "pm_score": 1, "selected": false, "text": "rails _7.0.4_ new demo-rails-with-react-frontend -j esbuild app/javascript/components/application.tsx import * as...
2022/11/08
[ "https://Stackoverflow.com/questions/74355812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17460932/" ]
74,355,834
<p>I want to get the locator of this element (5,126, 601) but seem cant get it normally.</p> <p>I think it will have to hover the mouse to the element and try to get the xpath but still I cant hover my mouse into it because it an SVG element . Any one know a way to get the locator properly?<br /> here is the link to th...
[ { "answer_id": 74357280, "author": "Prophet", "author_id": 3485434, "author_profile": "https://Stackoverflow.com/users/3485434", "pm_score": 2, "selected": false, "text": "\"//*[name()='text']//*[name()='tspan' and(contains(@style,'bold'))]\"\n total_text = driver.find_element(By.XPATH,...
2022/11/08
[ "https://Stackoverflow.com/questions/74355834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13973541/" ]
74,355,847
<p>How can I approach sorting with an Optional?</p> <p>Both <code>mainProducts</code> or <code>productSublist</code> in the code below maybe <code>null</code>. The resulting list <code>productSubList</code> should be sorted by Date.</p> <pre><code>List&lt;ProductSubList&gt; productSubList = Optional.of(mainProducts) ...
[ { "answer_id": 74357280, "author": "Prophet", "author_id": 3485434, "author_profile": "https://Stackoverflow.com/users/3485434", "pm_score": 2, "selected": false, "text": "\"//*[name()='text']//*[name()='tspan' and(contains(@style,'bold'))]\"\n total_text = driver.find_element(By.XPATH,...
2022/11/08
[ "https://Stackoverflow.com/questions/74355847", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15435022/" ]
74,355,848
<p><a href="https://i.stack.imgur.com/S19Rb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S19Rb.png" alt="open a file in python tkinter app" /></a></p> <pre><code>import sys sys. argv[1] </code></pre> <p>is the code equivalent of the above image. Please reply me</p>
[ { "answer_id": 74357280, "author": "Prophet", "author_id": 3485434, "author_profile": "https://Stackoverflow.com/users/3485434", "pm_score": 2, "selected": false, "text": "\"//*[name()='text']//*[name()='tspan' and(contains(@style,'bold'))]\"\n total_text = driver.find_element(By.XPATH,...
2022/11/08
[ "https://Stackoverflow.com/questions/74355848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15585008/" ]
74,355,864
<p>I'm getting a axios code 404 error on my front end part, here is the code</p> <pre><code> const [username, setUsername] = useState(''); const [password, setPassword] = useState(''); const submitHandler = async (e) =&gt; { e.preventDefault(); try { console.log(username, password) const { d...
[ { "answer_id": 74357280, "author": "Prophet", "author_id": 3485434, "author_profile": "https://Stackoverflow.com/users/3485434", "pm_score": 2, "selected": false, "text": "\"//*[name()='text']//*[name()='tspan' and(contains(@style,'bold'))]\"\n total_text = driver.find_element(By.XPATH,...
2022/11/08
[ "https://Stackoverflow.com/questions/74355864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18150722/" ]
74,355,872
<p>I've got a pandas DataFrame that looks like this:</p> <pre><code> molecule species 0 a dog 1 b horse 2 c [] 3 d pig 4 e [] </code></pre> <p>I want to replace the <code>[]</code> value with <code>NaN</code> us...
[ { "answer_id": 74355908, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 1, "selected": false, "text": "import numpy as np\ndf = pd.DataFrame({'molecule': ['a','b','c','d','e'], 'species' : ['hors...
2022/11/08
[ "https://Stackoverflow.com/questions/74355872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13536375/" ]
74,355,880
<p>I try to get the row where email is as in the session variable using the following code in my controller.</p> <pre><code> $usermodel = new \App\Models\UserModel(); $user=$usermodel-&gt;where('email', $session-&gt;get('email'))-&gt;find(); </code></pre> <p>I do not get the proper result. Instead of gettin...
[ { "answer_id": 74355908, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 1, "selected": false, "text": "import numpy as np\ndf = pd.DataFrame({'molecule': ['a','b','c','d','e'], 'species' : ['hors...
2022/11/08
[ "https://Stackoverflow.com/questions/74355880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20439651/" ]
74,355,891
<p>I am trying to make a typing effect, and its a very simple logic,,,but still i am not able to understand that why the 'e' in hello is always missing everything else is working fine. have not made the blinking cursor yet !!!!</p> <p><strong>CODE:</strong></p> <pre><code>import { useState } from &quot;react&quot;; exp...
[ { "answer_id": 74356545, "author": "Anh Le Hoang", "author_id": 16315750, "author_profile": "https://Stackoverflow.com/users/16315750", "pm_score": 1, "selected": false, "text": "Type function function type() {\n const timerId = setInterval(() => {\n setChar((prev) => {\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74355891", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20446115/" ]
74,355,904
<p>I have very large scale dataframe with 100,000 rows and 300 columns</p> <p>and I'm trying to fill out Nan rows in one columns by extracting the values from the other columns</p> <p>here is the example,</p> <p>let's say we have a sample dataframe such as:</p> <pre><code> NAME RRN_FRONT RRN_BACK EVENT_DTL...
[ { "answer_id": 74356545, "author": "Anh Le Hoang", "author_id": 16315750, "author_profile": "https://Stackoverflow.com/users/16315750", "pm_score": 1, "selected": false, "text": "Type function function type() {\n const timerId = setInterval(() => {\n setChar((prev) => {\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74355904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20376341/" ]
74,355,906
<p>Discord bots can have a <a href="https://support.discord.com/hc/en-us/articles/360040720412-Bot-Verification-and-Data-Whitelisting" rel="nofollow noreferrer">Verified check mark</a>. Is there a way to check if a Discord bot is verified using Discord.js?</p> <p><a href="https://i.stack.imgur.com/qyHjG.png" rel="nofol...
[ { "answer_id": 74357837, "author": "Ansh Tyagi", "author_id": 15023927, "author_profile": "https://Stackoverflow.com/users/15023927", "pm_score": 0, "selected": false, "text": "client.on('guildMemberAdd', member => {\n if (member.user.bot) {\n if is member.user.verified:\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74355906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18114046/" ]
74,355,913
<p>I have a dropdown in Navbar at right side, when I click on it, its menus are opening far right even not visible until I scroll horizontally.</p> <p>This is my code</p> <pre><code>&lt;nav class=&quot;navbar navbar-expand-lg navbar-light bg-light&quot;&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;di...
[ { "answer_id": 74355954, "author": "Junaid Shaikh", "author_id": 17033432, "author_profile": "https://Stackoverflow.com/users/17033432", "pm_score": 0, "selected": false, "text": "dropdown-menu-sm-right dropdown-menu-right dropdown-menu-sm-left" }, { "answer_id": 74358459, "a...
2022/11/08
[ "https://Stackoverflow.com/questions/74355913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8977696/" ]
74,355,921
<p>I am new to pygame. Whenever I press the key &quot;Delete&quot;. It prints &quot;key&quot; continuously. I only want it to print it only one time. How can I do this ?</p> <pre><code>import pygame import sys sprite = &quot;sprite_1.jpg&quot; position = (20,0) canvas = pygame.display.set_mode((952, 592)) color =...
[ { "answer_id": 74356153, "author": "Rabbid76", "author_id": 5577765, "author_profile": "https://Stackoverflow.com/users/5577765", "pm_score": 1, "selected": false, "text": "while not exit:\n canvas.fill(color)\n canvas.blit(back, dest = (0,0))\n canvas.blit(Sprite, dest=position...
2022/11/08
[ "https://Stackoverflow.com/questions/74355921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20200872/" ]
74,355,989
<p>I have a problem displaying errors message in update modal form. I'm using laravel request for validation and AJAX to submit form inside a modal. I would like to see the error message for each field that are inputted incorrectly. However, I'm getting this error:</p> <blockquote> <p>The Given data is invalid</p> </bl...
[ { "answer_id": 74356153, "author": "Rabbid76", "author_id": 5577765, "author_profile": "https://Stackoverflow.com/users/5577765", "pm_score": 1, "selected": false, "text": "while not exit:\n canvas.fill(color)\n canvas.blit(back, dest = (0,0))\n canvas.blit(Sprite, dest=position...
2022/11/08
[ "https://Stackoverflow.com/questions/74355989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10418084/" ]
74,356,017
<p>might be a dumb beginner question but When I run my code:</p> <pre><code>function love.draw() love.graphics.print(&quot;Hello World&quot;, 400, 300) end function love.load() 20, 20, 60, 20 end </code></pre> <p>it give me the error message:Error</p> <p>Syntax error: main.lua:5: unexpected symbol near '20'</p> <p>...
[ { "answer_id": 74356152, "author": "Dan Bonachea", "author_id": 3528321, "author_profile": "https://Stackoverflow.com/users/3528321", "pm_score": 2, "selected": true, "text": "love.load function love.load()\n return {20, 20, 60, 20}\nend\n" } ]
2022/11/08
[ "https://Stackoverflow.com/questions/74356017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20446226/" ]
74,356,020
<p>I need some help trying to figure out a way to make an if statement taking the users input after a category is typed in. If the user types in string categories[0] in the cin statement, which in this case is &quot;Number of drivers involved in fatal collisions per billion miles.&quot; I want it to display the first s...
[ { "answer_id": 74356103, "author": "chen", "author_id": 20064859, "author_profile": "https://Stackoverflow.com/users/20064859", "pm_score": 0, "selected": false, "text": "for(int i = 0; i < size(categories); i++){\n if(Input == categories[i]){\n cout << worstState[i] << endl;\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74356020", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,356,036
<p><strong>ProductTable.js</strong></p> <p>import React, { useEffect, useState } from &quot;react&quot;;</p> <pre><code>function ProductTable() { useEffect(() =&gt; { fetchData(); } const fetchData = () =&gt; { axios .get(&quot;http://localhost:4000/api/products/product/viewAllProduct&quot;) .th...
[ { "answer_id": 74356103, "author": "chen", "author_id": 20064859, "author_profile": "https://Stackoverflow.com/users/20064859", "pm_score": 0, "selected": false, "text": "for(int i = 0; i < size(categories); i++){\n if(Input == categories[i]){\n cout << worstState[i] << endl;\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74356036", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20355754/" ]
74,356,038
<p>This is my main urls.py:</p> <pre><code>urlpatterns = [ path('admin/', admin.site.urls), path('', include(&quot;shop.urls&quot;)), ] </code></pre> <p>I want that any url entered by user will redirect to shop.urls and find there like if the user enters <strong>/index</strong> it will search index in shop.urls...
[ { "answer_id": 74356103, "author": "chen", "author_id": 20064859, "author_profile": "https://Stackoverflow.com/users/20064859", "pm_score": 0, "selected": false, "text": "for(int i = 0; i < size(categories); i++){\n if(Input == categories[i]){\n cout << worstState[i] << endl;\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74356038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16527878/" ]
74,356,063
<p>this is the code</p> <pre><code>@page &quot;/&quot; @using Newtonsoft.Json @using System.Text.Json @using System.Text.Json.Serialization &lt;h1&gt;Hello World&lt;/h1&gt; @code { public class Account { public string Email { get; set; } public bool Active { get; set; } public DateTime CreatedDate { get;...
[ { "answer_id": 74356164, "author": "Natrium", "author_id": 59119, "author_profile": "https://Stackoverflow.com/users/59119", "pm_score": 3, "selected": true, "text": "@code {\n\n public class Account\n {\n public string Email { get; set; }\n public bool Active { get; ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20446282/" ]
74,356,143
<pre><code>int main() { int choice; printf(&quot;\n----------Welcome to Coffee Shop----------&quot;); printf(&quot;\n\n\t1. Login &quot;); printf(&quot;\n\t2. Sign Up &quot;); printf(&quot;\n\nPlease enter 1 or 2: &quot;); scanf(&quot; %d&quot;, &amp;choice); system(&quot;cls||clear&quot;)...
[ { "answer_id": 74356192, "author": "sirosi", "author_id": 20446397, "author_profile": "https://Stackoverflow.com/users/20446397", "pm_score": 1, "selected": false, "text": "int main() {\n int choice;\n char chars[100];\n printf(\"\\n----------Welcome to Coffee Shop----------\");...
2022/11/08
[ "https://Stackoverflow.com/questions/74356143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16687807/" ]
74,356,147
<p>I have 3 related tables; user, movie and score:</p> <p>*<strong>User:</strong></p> <pre><code>id | name | -------------- 1 | Hans | 2 | Carry | </code></pre> <br/> <p>*<strong>Movie:</strong></p> <pre><code>id | name | budget | ---------------------- 101 | Mov 1 | 200 | 102 | Mov 2 | 500 | 103 ...
[ { "answer_id": 74356192, "author": "sirosi", "author_id": 20446397, "author_profile": "https://Stackoverflow.com/users/20446397", "pm_score": 1, "selected": false, "text": "int main() {\n int choice;\n char chars[100];\n printf(\"\\n----------Welcome to Coffee Shop----------\");...
2022/11/08
[ "https://Stackoverflow.com/questions/74356147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20409000/" ]
74,356,183
<p>I have below code sample, if i create Cart object , im getting Items list as NULL.</p> <pre class="lang-java prettyprint-override"><code>@Data class Cart{ int cartId; List&lt;Item&gt; items; } @Data class Item{ int itemId; String itemName; } public class Test { public static void main(String...
[ { "answer_id": 74356192, "author": "sirosi", "author_id": 20446397, "author_profile": "https://Stackoverflow.com/users/20446397", "pm_score": 1, "selected": false, "text": "int main() {\n int choice;\n char chars[100];\n printf(\"\\n----------Welcome to Coffee Shop----------\");...
2022/11/08
[ "https://Stackoverflow.com/questions/74356183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17188780/" ]
74,356,208
<p>Just learning how maven and spring boot works so i've been practicing a little bit by doing simple projects. But i've run into an issue of my swagger-ui.html giving me an error of 404 not found.</p> <p>What i've added in my pom.xml for swagger-ui.</p> <p>`</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.spri...
[ { "answer_id": 74356943, "author": "Jilliss", "author_id": 12523079, "author_profile": "https://Stackoverflow.com/users/12523079", "pm_score": 0, "selected": false, "text": "pom.xml <properties>\n <java.version>17</java.version>\n</properties>\n" }, { "answer_id": 74380656, ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20287877/" ]
74,356,221
<p>I'm running into a weird error when trying to install pip This is the sequence that I typed into my command line: pip install opencv-python What could be causing this?</p> <p>This is what I get when I type in <code>echo %PATH%</code>:</p> <p><code>C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\int...
[ { "answer_id": 74356308, "author": "Mark Tolonen", "author_id": 235698, "author_profile": "https://Stackoverflow.com/users/235698", "pm_score": 2, "selected": true, "text": "“naglaa“ :\\users\\“naglaa“\\AppData\\Programs\\Python\\Python310 py py -m pip install opencv-python py -0 py -3.1...
2022/11/08
[ "https://Stackoverflow.com/questions/74356221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18741914/" ]
74,356,229
<p>I want dynamic gradients in Tailwinds, eg:</p> <pre><code>className={`bg-gradient-to-b from-[${gradientStart}] to-[${gradientEnd}]`} </code></pre> <p>but I notice some colours come up invisible sometimes. If I explicitly hardcode the colours, refresh the browser, and then revert the change, the colours show up. Any ...
[ { "answer_id": 74356285, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 1, "selected": false, "text": "<div class=\"text-{{ error ? 'red' : 'green' }}-600\"></div>\n <div class=\"{{ error ? 'text-red-600' : 'text-green-6...
2022/11/08
[ "https://Stackoverflow.com/questions/74356229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16514593/" ]
74,356,272
<p>The main function of this code is that when Firestore upload porocess end, then change the page to HomePage. But my &quot;.then&quot; code is inactivate.</p> <p>[Code]</p> <pre><code> await Firestore.instance.collection('post').add( { 'contents': textEditingController.text, 'displayName': wid...
[ { "answer_id": 74356285, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 1, "selected": false, "text": "<div class=\"text-{{ error ? 'red' : 'green' }}-600\"></div>\n <div class=\"{{ error ? 'text-red-600' : 'text-green-6...
2022/11/08
[ "https://Stackoverflow.com/questions/74356272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19711930/" ]
74,356,294
<p>I have an array of,</p> <p><img src="https://i.stack.imgur.com/NWA4c.jpg" alt="enter image description here" /></p> <p>I am trying to convert that to a JSON , so I can bind the data in a bootstrap table like this,</p> <pre><code>import &quot;bootstrap/dist/css/bootstrap.min.css&quot;; import Table from &quot;react-b...
[ { "answer_id": 74356418, "author": "Meet Majevadiya", "author_id": 16697937, "author_profile": "https://Stackoverflow.com/users/16697937", "pm_score": 2, "selected": true, "text": "const convertdata = contentResponse.map((item) =>{\n let obj={\n Name:item.path,\n Country:ite...
2022/11/08
[ "https://Stackoverflow.com/questions/74356294", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19672461/" ]
74,356,307
<p>I use Visual Studio Code. I noticed that, compared to PyCharm, it has a lack in the project folder explorer on the left. The case is this:</p> <p>I open a folder, then I open its subfolders. Then I close the parent folder, but when I reopen the parent folder there are still the subfolders open. I'm not talking about...
[ { "answer_id": 74356418, "author": "Meet Majevadiya", "author_id": 16697937, "author_profile": "https://Stackoverflow.com/users/16697937", "pm_score": 2, "selected": true, "text": "const convertdata = contentResponse.map((item) =>{\n let obj={\n Name:item.path,\n Country:ite...
2022/11/08
[ "https://Stackoverflow.com/questions/74356307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18313765/" ]
74,356,407
<p>I need the current system date and time in 2022-10-03T19:45:47.844Z format in a java class.</p> <p>I tried using the zoneddatetime and simple date format but couldn't get the write syntax or code from online. I'm beginner in Java, any help is appreciated. Thanks.</p>
[ { "answer_id": 74356572, "author": "bryson", "author_id": 20423423, "author_profile": "https://Stackoverflow.com/users/20423423", "pm_score": 3, "selected": true, "text": "import java.time.ZoneId;\nimport java.time.ZonedDateTime;\nimport java.time.format.DateTimeFormatter;\n\npublic clas...
2022/11/08
[ "https://Stackoverflow.com/questions/74356407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20446428/" ]
74,356,463
<p>I want to run multiple <code>HostedServices</code> that inject an <code>IAnimal</code> each. How can I make sure that 5 distinct instances of a <code>HostedService</code> run for each <code>IAnimal</code> I have?</p> <p>At the moment I'm doing the following, but it feels dirty:</p> <p><strong>AnimalDependencyResolve...
[ { "answer_id": 74356572, "author": "bryson", "author_id": 20423423, "author_profile": "https://Stackoverflow.com/users/20423423", "pm_score": 3, "selected": true, "text": "import java.time.ZoneId;\nimport java.time.ZonedDateTime;\nimport java.time.format.DateTimeFormatter;\n\npublic clas...
2022/11/08
[ "https://Stackoverflow.com/questions/74356463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3973081/" ]
74,356,466
<p>I am trying to download an attachment from outlook with a specific Subject line. It shows finished, but no attachment is getting downloaded. Below attached is my code, kindly help if I am missing something.</p> <pre><code># import libraries import win32com.client import re import datetime import pathlib2 as pathlib...
[ { "answer_id": 74356572, "author": "bryson", "author_id": 20423423, "author_profile": "https://Stackoverflow.com/users/20423423", "pm_score": 3, "selected": true, "text": "import java.time.ZoneId;\nimport java.time.ZonedDateTime;\nimport java.time.format.DateTimeFormatter;\n\npublic clas...
2022/11/08
[ "https://Stackoverflow.com/questions/74356466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20087562/" ]
74,356,525
<p>I'm trying to figure out how to target a specific variable product in woocommerce to show this message underneath the &quot;Add to cart&quot; button. The current code is showing for all variable product type.</p> <p>`</p> <pre><code>add_action( 'woocommerce_after_add_to_cart_button', 'custom_product_message' , 10, 0...
[ { "answer_id": 74356627, "author": "Aj G", "author_id": 16418782, "author_profile": "https://Stackoverflow.com/users/16418782", "pm_score": 2, "selected": true, "text": "add_action( 'woocommerce_after_add_to_cart_button', 'custom_product_message', 20 );\n \n function custom_produc...
2022/11/08
[ "https://Stackoverflow.com/questions/74356525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16418782/" ]
74,356,567
<p>I'm writing this program that reads in a fasta file to do some stuff with. The format of fasta file is like this:</p> <pre><code>&gt; This line with &quot;&gt;&quot; is the header, want to skip/ignore this line These lines below the header has sequence information we want ATTGGTATGATTTACCCAATTTGGGGAAAAAATTCCCTCTCGAT...
[ { "answer_id": 74356627, "author": "Aj G", "author_id": 16418782, "author_profile": "https://Stackoverflow.com/users/16418782", "pm_score": 2, "selected": true, "text": "add_action( 'woocommerce_after_add_to_cart_button', 'custom_product_message', 20 );\n \n function custom_produc...
2022/11/08
[ "https://Stackoverflow.com/questions/74356567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19960466/" ]
74,356,568
<p>I have two values to check if it's existed in my PostgreSQL. I also have columns named <code>ref_name, ref_surname</code> for example:</p> <pre><code>//this is the data// name: John Surname: Lee //this is some queryset from django// Employee.objects.filter(ref_name=name &amp; ref_surname=Surname).exists() </code></...
[ { "answer_id": 74356802, "author": "Albert Wijaya", "author_id": 19570048, "author_profile": "https://Stackoverflow.com/users/19570048", "pm_score": 0, "selected": false, "text": "Employee.objects.filter(ref_name=name & ref_surname=Surname).exists()\n Employee.objects.filter(ref_name=nam...
2022/11/08
[ "https://Stackoverflow.com/questions/74356568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19894724/" ]
74,356,600
<p>After research on strackoverflow I have written/coppied this function with help from others questions.</p> <pre><code>function evenOrOdd() { var value = []; value = document.getElementById('evenField').value; value = parseInt(value); if(evenField != &quot;&quot;){ if(value%2==1){ console.log(`${v...
[ { "answer_id": 74357042, "author": "Rohìt Jíndal", "author_id": 4116300, "author_profile": "https://Stackoverflow.com/users/4116300", "pm_score": 0, "selected": false, "text": "function evenOrOdd(val) {\n let value = parseInt(val);\n if(value%2==1){\n console.log(`${value} is an odd...
2022/11/08
[ "https://Stackoverflow.com/questions/74356600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11991686/" ]
74,356,618
<p>I could not find a proper solution to my problem yet. I'm using Spring Security Oauth2 resource server to authenticate my requests. And that works fine. But when tested with different scenario it is found that spring security returns with 403 instead of 401 if there is no <em><strong>Authorization</strong></em> head...
[ { "answer_id": 74357042, "author": "Rohìt Jíndal", "author_id": 4116300, "author_profile": "https://Stackoverflow.com/users/4116300", "pm_score": 0, "selected": false, "text": "function evenOrOdd(val) {\n let value = parseInt(val);\n if(value%2==1){\n console.log(`${value} is an odd...
2022/11/08
[ "https://Stackoverflow.com/questions/74356618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2189617/" ]
74,356,623
<p>I have a component which has the following -</p> <pre><code>{tree[treeType].count &gt; 0 ? tree[treeType].count : null} </code></pre> <p>The aim of it is to show the count only when count is greater than 0 but <strong>it should be shown inside () these brackets</strong> If the count is 0 nothing should be shown</p> ...
[ { "answer_id": 74357042, "author": "Rohìt Jíndal", "author_id": 4116300, "author_profile": "https://Stackoverflow.com/users/4116300", "pm_score": 0, "selected": false, "text": "function evenOrOdd(val) {\n let value = parseInt(val);\n if(value%2==1){\n console.log(`${value} is an odd...
2022/11/08
[ "https://Stackoverflow.com/questions/74356623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13796424/" ]
74,356,629
<p>I am building a weather app. In this app, I am showing the temperature value to the user. In this value, I want to make the temperature value and degree sign different sizes. Because when the degree sign is the same size as the temperature value it alters the center of the view.</p> <p>I try the NSAttributedText wa...
[ { "answer_id": 74356995, "author": "HangarRash", "author_id": 20287183, "author_profile": "https://Stackoverflow.com/users/20287183", "pm_score": 1, "selected": false, "text": ".baselineOffset .baselineOffset: 16\n .kern" }, { "answer_id": 74357753, "author": "Noman Umar", ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16696205/" ]
74,356,646
<p>I have been using openresty nginx for simple request forwarding purpose, it is working as expected, i am forwarding each incoming request to another URL using below code :</p> <pre><code> location /app/ { proxy_pass https://example.com/abc/; proxy_read_timeout 60s; proxy_...
[ { "answer_id": 74356995, "author": "HangarRash", "author_id": 20287183, "author_profile": "https://Stackoverflow.com/users/20287183", "pm_score": 1, "selected": false, "text": ".baselineOffset .baselineOffset: 16\n .kern" }, { "answer_id": 74357753, "author": "Noman Umar", ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356646", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3782114/" ]
74,356,669
<p>Here is my function, where I need to add properties as <code>disabed</code> and <code>value</code> how to do that? also <code>validation</code> should be added if requried.</p> <pre><code> formBuilder(form, props) { let { required, disabled, value } = props; const formControl = new FormControl();//ho...
[ { "answer_id": 74356789, "author": "N.F.", "author_id": 4052858, "author_profile": "https://Stackoverflow.com/users/4052858", "pm_score": 0, "selected": false, "text": " formBuilder(form, props) {\n let { required, disabled, value } = props;\n const formControl = new FormCon...
2022/11/08
[ "https://Stackoverflow.com/questions/74356669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/218349/" ]
74,356,671
<p>I am trying to implement upload mechanism for my application. However, I have a concurrency issue I couldn't resolve. I sent my requests using async/await with following code. In my application UploadService is creating every time an event is fired from some part of my code. As an example I creation of my <code>Uplo...
[ { "answer_id": 74357652, "author": "Mr.SwiftOak", "author_id": 14559220, "author_profile": "https://Stackoverflow.com/users/14559220", "pm_score": -1, "selected": false, "text": "Task {} Task.detached Task.detached(priority: .default) {\n await uploadData()\n}\n" }, { "answer_id"...
2022/11/08
[ "https://Stackoverflow.com/questions/74356671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5850840/" ]
74,356,673
<p>I'm having trouble aligning the text in the accordion button to the center while keeping the arrow on the right</p> <p>Example of what i want to achieve:</p> <p><a href="https://i.stack.imgur.com/2brrY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2brrY.png" alt="enter image description here" />...
[ { "answer_id": 74356942, "author": "Delowar Hossen", "author_id": 6602096, "author_profile": "https://Stackoverflow.com/users/6602096", "pm_score": -1, "selected": false, "text": "h2.accordion-header {\n display: flex;\n flex-direction: row;\n justify-content: center;\n}\n" },...
2022/11/08
[ "https://Stackoverflow.com/questions/74356673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13047507/" ]
74,356,705
<p>As seen in the picture, i pressed the blue button 3 times, which added 3 card widgets in myList. Also in terminal it shows 3 items are added in myList. But when i longPress on 3rd Card to it, it infact removes from myList but does not update the UI.</p> <p>Also, if i try removing 3rd item, again:</p> <pre><code>===...
[ { "answer_id": 74356818, "author": "pmatatias", "author_id": 12838877, "author_profile": "https://Stackoverflow.com/users/12838877", "pm_score": 0, "selected": false, "text": "ValueKey ListTile itemBuilder: (context, index) => Card(\n child: ListTile(\n key: UniqueKey(),\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11565523/" ]
74,356,722
<p>I'm converting excel to Json, after the conversion is done I'm getting the below JSON output</p> <pre><code>[ { &quot;GERMANY&quot;: &quot;Berlin University of the Arts&quot;, &quot;FRANCE&quot;: &quot;Berlin University of the Arts&quot;, &quot;UK&quot;: &quot;Berlin University of the Arts&quot...
[ { "answer_id": 74356783, "author": "Nick Vu", "author_id": 9201587, "author_profile": "https://Stackoverflow.com/users/9201587", "pm_score": 1, "selected": true, "text": "reduce const input = [\n {\n \"GERMANY\": \"Berlin University of the Arts\",\n \"FRANCE\": \"Berlin Univ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16491376/" ]
74,356,748
<p>there is a xml message:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;Data&gt; &lt;aa&gt;12345\n67890&lt;/aa&gt; &lt;bb&gt;98765\\4321&lt;bb&gt; &lt;Data&gt;...
[ { "answer_id": 74356783, "author": "Nick Vu", "author_id": 9201587, "author_profile": "https://Stackoverflow.com/users/9201587", "pm_score": 1, "selected": true, "text": "reduce const input = [\n {\n \"GERMANY\": \"Berlin University of the Arts\",\n \"FRANCE\": \"Berlin Univ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11163863/" ]
74,356,762
<p>I have various strings that might have multiple leading spaces.</p> <pre><code>string_1 = ' param A val A' string_2 = 'param B val B' .... </code></pre> <p>I want to replace all multiple spaces with a single space IF the multiple spaces are not in the start of the string.</p> <p>I want output of above to...
[ { "answer_id": 74356889, "author": "S.B", "author_id": 13944524, "author_profile": "https://Stackoverflow.com/users/13944524", "pm_score": 3, "selected": false, "text": "\\b\\s{2,}\\b {2,} + import re\n\n\nstring_1 = \" param A val A\"\nstring_2 = \"param B val B\"\n\n\npattern...
2022/11/08
[ "https://Stackoverflow.com/questions/74356762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7791963/" ]
74,356,777
<p>I'm working on a project where there is a website and i'm developing a phone application for it. In the website the user could create his own form and this form is save to database as json and after that this json file converted to react components and shown in the page I want to convert this json file to Flutter wi...
[ { "answer_id": 74356889, "author": "S.B", "author_id": 13944524, "author_profile": "https://Stackoverflow.com/users/13944524", "pm_score": 3, "selected": false, "text": "\\b\\s{2,}\\b {2,} + import re\n\n\nstring_1 = \" param A val A\"\nstring_2 = \"param B val B\"\n\n\npattern...
2022/11/08
[ "https://Stackoverflow.com/questions/74356777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20070273/" ]
74,356,800
<p>I use redux toolkit and I have my initial state like this:</p> <pre><code>initialState: { details: { id: &quot;&quot;, base64: &quot;&quot;, }, }, </code></pre> <p>I want to fetch an image base64 inside of my initial state, whenever user logged in. I decided to do such thing in my axios:</p> <pre><code>a...
[ { "answer_id": 74356889, "author": "S.B", "author_id": 13944524, "author_profile": "https://Stackoverflow.com/users/13944524", "pm_score": 3, "selected": false, "text": "\\b\\s{2,}\\b {2,} + import re\n\n\nstring_1 = \" param A val A\"\nstring_2 = \"param B val B\"\n\n\npattern...
2022/11/08
[ "https://Stackoverflow.com/questions/74356800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20395245/" ]
74,356,814
<p>When I save my changes, the whole app is re-rendered and not only the changes that I have made.</p> <p>I have tried adding <strong>target: &quot;web&quot;</strong> to my devServer and also tried the following guides:</p> <ul> <li><a href="https://webpack.js.org/guides/hot-module-replacement/" rel="nofollow noreferre...
[ { "answer_id": 74356889, "author": "S.B", "author_id": 13944524, "author_profile": "https://Stackoverflow.com/users/13944524", "pm_score": 3, "selected": false, "text": "\\b\\s{2,}\\b {2,} + import re\n\n\nstring_1 = \" param A val A\"\nstring_2 = \"param B val B\"\n\n\npattern...
2022/11/08
[ "https://Stackoverflow.com/questions/74356814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16198836/" ]
74,356,833
<p>For the last few weeks I am trying to set up a project in VSCode to be able to build &amp; run the windows desktop app. I understand that for WinUI 3 projects Visual Studio 2022 is recommended but most of the people in the team are using VSCode for all the projects. I was able to build &amp; run WinUI / MAUI / UNO p...
[ { "answer_id": 74609897, "author": "to-mars", "author_id": 20446906, "author_profile": "https://Stackoverflow.com/users/20446906", "pm_score": 2, "selected": true, "text": " - <Platform>x64</Platform> (Required for VSCode)\n - <Platforms>x86;x64;arm64</Platforms> (Required for Visual Stu...
2022/11/08
[ "https://Stackoverflow.com/questions/74356833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20446906/" ]
74,356,834
<p>Let me say I have 'teacher' collection inside 'teacher' collection I have 'student' collection in Firebase, I need to display every student of every teacher in a list. I know I can create separate student collection linking teacher id, but this is the scenario I need to work with. Please help me how can I get every ...
[ { "answer_id": 74358894, "author": "Sparko Sol", "author_id": 20407048, "author_profile": "https://Stackoverflow.com/users/20407048", "pm_score": 1, "selected": true, "text": "class TeacherModel {\n TeacherModel({\n this.students,\n });\n\n factory TeacherModel.fromJson(Map<String,...
2022/11/08
[ "https://Stackoverflow.com/questions/74356834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19494590/" ]
74,356,837
<p>I have 3 string slices:</p> <pre><code>enp_slice := []string{&quot;10.10.10.10&quot;, &quot;10.10.10.11&quot;} cachedenp_slice := []string{&quot;10.10.10.10&quot;, &quot;10.10.10.11&quot;, &quot;10.10.10.12&quot;} result := []string{} </code></pre> <p>I want to compare the 2 string slices and get distict elements in...
[ { "answer_id": 74357408, "author": "Ivan Pesenti", "author_id": 14394371, "author_profile": "https://Stackoverflow.com/users/14394371", "pm_score": 0, "selected": false, "text": "isFound package main\n\nimport \"fmt\"\n\nfunc main() {\n enp_slice := []string{\"10.10.10.10\", \"10.10.1...
2022/11/08
[ "https://Stackoverflow.com/questions/74356837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9391999/" ]
74,356,864
<p>I need to get the list of all the repositories and all the branches from TFS.</p> <p>I have a react app and I wonder if there is some way to use TFS API from it. Or maybe I should load C# DLL's in order to do that?</p> <p>Thanks :)</p> <p>I found this: <a href="https://learn.microsoft.com/en-us/rest/api/azure/devops...
[ { "answer_id": 74357408, "author": "Ivan Pesenti", "author_id": 14394371, "author_profile": "https://Stackoverflow.com/users/14394371", "pm_score": 0, "selected": false, "text": "isFound package main\n\nimport \"fmt\"\n\nfunc main() {\n enp_slice := []string{\"10.10.10.10\", \"10.10.1...
2022/11/08
[ "https://Stackoverflow.com/questions/74356864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17496976/" ]
74,356,870
<pre><code>using System; using System.Collections.Generic; using System.Linq; namespace practice { class program { static void Main(string[] args) { Infoma infoma = new Infoma(); infoma.footballers(&quot;Messi&quot;, 10); infoma.coach(&quot;Xavi Hernández&quot...
[ { "answer_id": 74357310, "author": "jmcilhinney", "author_id": 584183, "author_profile": "https://Stackoverflow.com/users/584183", "pm_score": 1, "selected": false, "text": "Fifa Main EventHandler EventHandler<TEventArgs> public event EventHandler SomethingHappened;\n Ievent null null pr...
2022/11/08
[ "https://Stackoverflow.com/questions/74356870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19072364/" ]
74,356,875
<p>I can't delete a category because it is a foreign key in the items table. How can I do it? How can I make a deletion in category and make $category_id null in the items table?</p> <p>I tried making a delete function but it sends an error saying it can't because it is a foreign key.</p>
[ { "answer_id": 74356912, "author": "Ashutosh Jha", "author_id": 13004581, "author_profile": "https://Stackoverflow.com/users/13004581", "pm_score": -1, "selected": false, "text": "DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// write your delete code here\nDB::statement('SET FOREIGN_KEY_...
2022/11/08
[ "https://Stackoverflow.com/questions/74356875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17040377/" ]
74,356,879
<p><a href="https://i.stack.imgur.com/cd8ow.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cd8ow.png" alt="enter image description here" /></a>i try to render a component of all the products that are in the cart with window alert but i get just 'object object ' even when the component is empty. <a h...
[ { "answer_id": 74356912, "author": "Ashutosh Jha", "author_id": 13004581, "author_profile": "https://Stackoverflow.com/users/13004581", "pm_score": -1, "selected": false, "text": "DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// write your delete code here\nDB::statement('SET FOREIGN_KEY_...
2022/11/08
[ "https://Stackoverflow.com/questions/74356879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20396675/" ]
74,356,886
<p>I'm looking for a way to present notifications on even (2,4,6,8,10,12...) &amp; odd (1,3,5,7,9,11...) days.</p> <p>I did something similar in reminders:</p> <pre><code>/// Creates a reminder func create(_ title: String, isOddDays: Bool, hour: Int, minute: Int) { let dueDate = Date() let gregorian = Calendar(...
[ { "answer_id": 74389569, "author": "Allan Garcia", "author_id": 1636456, "author_profile": "https://Stackoverflow.com/users/1636456", "pm_score": 0, "selected": false, "text": "import Foundation\n\nfunc isThisAnEvenDay() -> Bool {\n Calendar.current.component(.day, from: Date()) % 2 =...
2022/11/08
[ "https://Stackoverflow.com/questions/74356886", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1673632/" ]
74,356,899
<p>I have ListView as below in my flutter application:</p> <pre><code>widgetToReturn = ListView.builder( shrinkWrap: true, physics: NeverScrollableScrollPhysics(), itemBuilder: (context, innerIndex) { return Text(&quot;Test&quot;); }, itemCount: widget.objEve...
[ { "answer_id": 74356988, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "listview horizontal SizedBox height SizedBox(\n height: 20,\n child: ListView.builder(\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4827817/" ]
74,356,901
<p>im trying to work out how to specify a local variable from a specific timeframe so i can use it later to trigger and alert</p> <p>If possible without using request security</p> <p>The normal macd and signal variables are working fine</p> <p>here is what i have tried but they are not working ( im new to pinescript an...
[ { "answer_id": 74356988, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "listview horizontal SizedBox height SizedBox(\n height: 20,\n child: ListView.builder(\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74356901", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20415374/" ]
74,356,934
<p>I tried to compare with strlen(string) with -1 but different methods gave different results:</p> <pre><code>char string[] = {&quot;1234&quot;}; int len = strlen(string); int bool; bool = -1 &lt; strlen(string); printf(&quot;%d&quot;,bool); //bool=0 bool = -1 &lt; len; printf(&quot;%d&quot;,bool); //bool=1 </code></p...
[ { "answer_id": 74357033, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "strlen size_t size_t strlen(const char *s);\n size_t unsigned long size_t int int size_t int -1 < strlen(st...
2022/11/08
[ "https://Stackoverflow.com/questions/74356934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19689684/" ]
74,356,946
<p>I have a useState set as:</p> <pre><code>const [status, setStatus] = useState([{}]) </code></pre> <p>I am using a useState for an onChange where the data is returning:</p> <pre><code>[ {id: 'abc', statuses: ['created', 'finished'], {id: 'def', statuses: ['created', 'started', 'finished'] ] </code></pre> <p>The...
[ { "answer_id": 74357033, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "strlen size_t size_t strlen(const char *s);\n size_t unsigned long size_t int int size_t int -1 < strlen(st...
2022/11/08
[ "https://Stackoverflow.com/questions/74356946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16149582/" ]
74,356,964
<p>I have nested set of lists that looks like</p> <pre><code>Example_List = list(Object=list(list(name=&quot;A&quot;,value=0.1),list(name=&quot;B&quot;,value=0.5),list(name=&quot;C&quot;,value=2))) &gt; Example_List $Object $Object[[1]] $Object[[1]]$name [1] &quot;A&quot; $Object[[1]]$value [1] 0.1 $Object[[2]] $Ob...
[ { "answer_id": 74357033, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "strlen size_t size_t strlen(const char *s);\n size_t unsigned long size_t int int size_t int -1 < strlen(st...
2022/11/08
[ "https://Stackoverflow.com/questions/74356964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7498328/" ]
74,357,011
<p>I have created an Azure Budget which is mapped to an Action group. I have created a Logic App to send different emails with different email structures on different budget threshold example 50% , 75% etc. Not able to understand, How to trigger a single logic app for sending different emails as per Azure Budget Action...
[ { "answer_id": 74357033, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "strlen size_t size_t strlen(const char *s);\n size_t unsigned long size_t int int size_t int -1 < strlen(st...
2022/11/08
[ "https://Stackoverflow.com/questions/74357011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19554576/" ]
74,357,014
<p>I have a simple console application in which I just reading items from a <code>configuration.json</code> file. I am using <code>IConfigurationRoot</code> interface to save the JSON configuration object.</p> <p>here is my configuration.json file:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;Configu...
[ { "answer_id": 74357362, "author": "Roman", "author_id": 3777113, "author_profile": "https://Stackoverflow.com/users/3777113", "pm_score": 2, "selected": true, "text": "configuration.json C:\\Users\\samee\\source\\repos\\ConsoleApp1\\ConsoleApp1\\bin\\Debug\\netcoreapp3.1 Build action Co...
2022/11/08
[ "https://Stackoverflow.com/questions/74357014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20431277/" ]
74,357,065
<p>How can I sum values from json object with jq</p> <p><strong>Example input JSON object</strong></p> <pre class="lang-json prettyprint-override"><code>{ &quot;orderNumber&quot;: 2346999, &quot;workStep&quot;: 110, &quot;good&quot;: 8, &quot;bad&quot;: 0, &quot;type&quot;: &quot;1&quot;, &quot;date&quot;: ...
[ { "answer_id": 74359752, "author": "peak", "author_id": 997358, "author_profile": "https://Stackoverflow.com/users/997358", "pm_score": 0, "selected": false, "text": "def count(s): reduce s as $_ (0; .+1);\n count(inputs | select(.orderNumber==2346999 and .workStep==110) | .good)\n ." ...
2022/11/08
[ "https://Stackoverflow.com/questions/74357065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20183264/" ]
74,357,101
<p>I have this dataset show below</p> <pre><code>temp = [0.1, 1, 4, 10, 15, 20, 25, 30, 35, 40] sg =[0.999850, 0.999902, 0.999975, 0.999703, 0.999103, 0.998207, 0.997047, 0.995649, 0.99403, 0.99222] sg_temp = pd.DataFrame({'temp' : temp, 'sg' : sg}) temp sg 0 0.1 0.999850 1 1.0 0....
[ { "answer_id": 74359752, "author": "peak", "author_id": 997358, "author_profile": "https://Stackoverflow.com/users/997358", "pm_score": 0, "selected": false, "text": "def count(s): reduce s as $_ (0; .+1);\n count(inputs | select(.orderNumber==2346999 and .workStep==110) | .good)\n ." ...
2022/11/08
[ "https://Stackoverflow.com/questions/74357101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18216895/" ]
74,357,139
<p>I am making a calculator that calculates the age in years but I also want to calculate months Please help me with this Regard Thank you. I want my output like this for 22 years and 3 months. I attach my javascript code and Razor view code. In javascript code, only years are calculated and in Razor view, two text box...
[ { "answer_id": 74359752, "author": "peak", "author_id": 997358, "author_profile": "https://Stackoverflow.com/users/997358", "pm_score": 0, "selected": false, "text": "def count(s): reduce s as $_ (0; .+1);\n count(inputs | select(.orderNumber==2346999 and .workStep==110) | .good)\n ." ...
2022/11/08
[ "https://Stackoverflow.com/questions/74357139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20102245/" ]
74,357,197
<p>This code i am trying to get current language or default language of android phone</p> <pre><code> String language = getApplicationContext().getResources().getConfiguration().locale.getLanguage(); </code></pre> <p>but i am getting always es which is english i have changes my phone language to Japanese language but...
[ { "answer_id": 74358299, "author": "Gaurav Bharadia", "author_id": 11004504, "author_profile": "https://Stackoverflow.com/users/11004504", "pm_score": 2, "selected": true, "text": "Locale.getDefault().getLanguage() = en \nLocale.getDefault().getISO3Language() = eng \nLocal...
2022/11/08
[ "https://Stackoverflow.com/questions/74357197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1788205/" ]
74,357,209
<p>I followed a tutorial on how to display multiple pages for my reactJS program and it partially works. I have two pages: Home and Stocks, and they both have some example text in them. When I type in /home, or /stocks at the end of my localhost URL, the pages change and the correct text displays. But after having 100%...
[ { "answer_id": 74357376, "author": "ugurgunes", "author_id": 12119237, "author_profile": "https://Stackoverflow.com/users/12119237", "pm_score": 0, "selected": false, "text": "//app.js\n....\n <Route exact path=\"/home\" element={<Home />} />\n <Route exact path=\"/stocks\" element={<S...
2022/11/08
[ "https://Stackoverflow.com/questions/74357209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20413330/" ]
74,357,265
<p>I want to get Descending order data by date on playDate Attribute, but descending condition is apply on gameName : hockey object</p> <p><strong>Data</strong></p> <pre><code>[ { &quot;gameDetails&quot;: [ { &quot;gameName&quot;: &quot;hockey&quot;, &quot;playDate&quot;: &quot;2014-05-05T00...
[ { "answer_id": 74357376, "author": "ugurgunes", "author_id": 12119237, "author_profile": "https://Stackoverflow.com/users/12119237", "pm_score": 0, "selected": false, "text": "//app.js\n....\n <Route exact path=\"/home\" element={<Home />} />\n <Route exact path=\"/stocks\" element={<S...
2022/11/08
[ "https://Stackoverflow.com/questions/74357265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15225788/" ]
74,357,274
<p>I have a scenario where I need to execute queries on different tables using ETL tool. I want to store all the required queries in control table.</p> <p>As part of this, I want to include the column <em>WatermarkValue</em> as part of the value in the column <em>Source_Query</em>, so that I can dynamically use it for ...
[ { "answer_id": 74361374, "author": "Piotr Rodak", "author_id": 227606, "author_profile": "https://Stackoverflow.com/users/227606", "pm_score": 0, "selected": false, "text": "create view vMetadataQueries \nas\n select TableID, Source_Query + WatermarkValue as [ExecuteQuery] \n from Meta...
2022/11/08
[ "https://Stackoverflow.com/questions/74357274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19792466/" ]
74,357,278
<p>I was doing some experiments in a code in order to prove the theory. This is my code:</p> <pre><code>#include &lt;stdio.h&gt; int main(){ unsigned int x,y,z; if(1){ x=-5; y=5; z=x+y; printf(&quot;%i&quot;,z); } return 0; } </code></pre> <p>But for what I know the outp...
[ { "answer_id": 74357367, "author": "Lundin", "author_id": 584518, "author_profile": "https://Stackoverflow.com/users/584518", "pm_score": 2, "selected": false, "text": "-5 0xFFFFFFFB 4294967291 4294967291 + 5 UINT_MAX = 4294967295 0 -5 abs()" }, { "answer_id": 74357369, "auth...
2022/11/08
[ "https://Stackoverflow.com/questions/74357278", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20384406/" ]
74,357,320
<pre><code>extension ArticlesViewController { func setup() { self.navigationController?.navigationBar.prefersLargeTitles = true newtworkManager?.getNews { [weak self] (results) in switch results { case .success(let data): self?.articleListVM = ArticleListViewModel(articl...
[ { "answer_id": 74357479, "author": "Anish", "author_id": 9855456, "author_profile": "https://Stackoverflow.com/users/9855456", "pm_score": 2, "selected": false, "text": "extension ArticlesViewController: UITableViewDelegate, UITableViewDataSource {\n func numberOfSections(in tableView...
2022/11/08
[ "https://Stackoverflow.com/questions/74357320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14692364/" ]
74,357,327
<p>I have this large dataframe, illustrated below is for simplicity purposes.</p> <pre><code>pd.DataFrame(df.groupby(['Pclass', 'Sex'])['Age'].median()) </code></pre> <p><strong>Groupby results:</strong> <a href="https://i.stack.imgur.com/Qf5MC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qf5MC.pn...
[ { "answer_id": 74357349, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "Age DataFrame.join df = df.drop('Age', axis=1).join(multiindex_df, on=['PClass','Sex'])\nprint (df)\n PClass Se...
2022/11/08
[ "https://Stackoverflow.com/questions/74357327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18193889/" ]
74,357,342
<p>I am currently on a beginner course in C and was given an exercise requiring my program to check if the user input contains non-alphabets. I've figured to use the function <code>isalpha()</code> to check the user input and if it contains non-alphabets, the program should ask the user to enter another input.</p> <p>B...
[ { "answer_id": 74358345, "author": "unwind", "author_id": 28169, "author_profile": "https://Stackoverflow.com/users/28169", "pm_score": 1, "selected": false, "text": "for (int i = 0; i < player1[i]; i++) {\n i for (size_t i = 0; player1[i] != '\\0'; ++i) {\n" }, { "answer_id": 74...
2022/11/08
[ "https://Stackoverflow.com/questions/74357342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10179802/" ]
74,357,351
<p>In Apigee</p> <p>given a variable in javascript policy, example: var value = 123;</p> <p>how to get this variable in the assign message policy?</p> <p>by using {a} in the payload message is not reachable</p>
[ { "answer_id": 74358345, "author": "unwind", "author_id": 28169, "author_profile": "https://Stackoverflow.com/users/28169", "pm_score": 1, "selected": false, "text": "for (int i = 0; i < player1[i]; i++) {\n i for (size_t i = 0; player1[i] != '\\0'; ++i) {\n" }, { "answer_id": 74...
2022/11/08
[ "https://Stackoverflow.com/questions/74357351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1528153/" ]
74,357,354
<p>Currently using the ff. (simplified) code in <code>.gitlab-ci.yml</code> to run multiple SSH commands:</p> <pre><code>stage: deploy script: - ssh 1.2.3.4 &quot;docker login -u foo -p bar example.com&quot; - ssh 1.2.3.4 &quot;docker pull my_image&quot; - ssh 1.2.3.4 &quot;docker run -d -p 80:80 my_image&quot; ...
[ { "answer_id": 74358345, "author": "unwind", "author_id": 28169, "author_profile": "https://Stackoverflow.com/users/28169", "pm_score": 1, "selected": false, "text": "for (int i = 0; i < player1[i]; i++) {\n i for (size_t i = 0; player1[i] != '\\0'; ++i) {\n" }, { "answer_id": 74...
2022/11/08
[ "https://Stackoverflow.com/questions/74357354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/748789/" ]
74,357,360
<p>Rookie here, I have been breaking my head all day trying to figure this one out…</p> <p>I have tried different approaches trying to figure this out and looking all over this site for some references, but I have come short and hit a roadblock.</p> <p>This is my code currently:</p> <pre><code> import fs from 'fs' impo...
[ { "answer_id": 74357422, "author": "Rocky Sims", "author_id": 4123400, "author_profile": "https://Stackoverflow.com/users/4123400", "pm_score": 1, "selected": false, "text": "dataObject dataObjects .push() dataObject import fs from 'fs'\nimport csvjson from 'csvjson'\n\nconst path = 'cyb...
2022/11/08
[ "https://Stackoverflow.com/questions/74357360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6769563/" ]
74,357,397
<p>I have multiple ERC20 tokens, deployed on <a href="https://developers.rsk.co/" rel="noreferrer">Rootstock</a>, and I want to track their balances and allowances in a real time from my DApp. In <a href="https://docs.ethers.io/v5/" rel="noreferrer">ethers.js</a>, I <em>can</em> track their balances by alternately call...
[ { "answer_id": 74357422, "author": "Rocky Sims", "author_id": 4123400, "author_profile": "https://Stackoverflow.com/users/4123400", "pm_score": 1, "selected": false, "text": "dataObject dataObjects .push() dataObject import fs from 'fs'\nimport csvjson from 'csvjson'\n\nconst path = 'cyb...
2022/11/08
[ "https://Stackoverflow.com/questions/74357397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194982/" ]
74,357,420
<p>I have a dataframe:</p> <pre><code>&gt; df = batch Code. time &gt; a 100. 2019-08-01 00:59:12.000 &gt; a 120. 2019-08-01 00:59:32.000 &gt; a 130. 2019-08-01 00:59:42.000 &gt; a 120. 2019-08-01 00:59:52.000 &gt; b 100. 2019-08-01 00:44:11.000 &gt; b 1...
[ { "answer_id": 74357474, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "#convert values to datetimes\ndf['time'] = pd.to_datetime(df['time'])\n \n#get first 100 Code per batch \ns1=df[df[...
2022/11/08
[ "https://Stackoverflow.com/questions/74357420", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6057371/" ]
74,357,426
<p>What are the standard ways of reading and writing audio files on Android / Kotlin?</p> <p>I am very confused. I've found plenty of posts that discuss this at some level, but they're all either giving a third party answer (someone's own implementation like <a href="https://medium.com/@rizveeredwan/working-with-wav-fi...
[ { "answer_id": 74360916, "author": "dev.bmax", "author_id": 4283005, "author_profile": "https://Stackoverflow.com/users/4283005", "pm_score": 2, "selected": false, "text": "PCM MediaCodec ByteBuffer PCM" } ]
2022/11/08
[ "https://Stackoverflow.com/questions/74357426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4959635/" ]
74,357,445
<p>I tried to add an external javascript file to <strong>nuxt.config.ts</strong>. but nuxt didn't load the file.</p> <p><strong>nuxt.config.ts</strong> file:</p> <pre><code> export default defineNuxtConfig({ css: [ 'bootstrap/dist/css/bootstrap.min.css' ], script: [ { src: 'scri...
[ { "answer_id": 74359058, "author": "diyifi3030", "author_id": 20447384, "author_profile": "https://Stackoverflow.com/users/20447384", "pm_score": 0, "selected": false, "text": "export default defineNuxtConfig({\ncss: [\n '@/css/bootstrap.rtl.min.css'\n],\napp: {\n head: {\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74357445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20447384/" ]
74,357,452
<pre><code>emp_dict = {'Name1' : ['2','M','10',5,datetime.date(2002, 10, 10)], 'Name2' : ['3','G','5',7,datetime.date(2003, 10, 10)], 'Name3' : ['1','M','15',9,datetime.date(2004, 10, 10)], 'Name4' : ['4','G','3',3,datetime.date(2010, 10, 10)], 'Name5' : ['5','M','5',8,da...
[ { "answer_id": 74359058, "author": "diyifi3030", "author_id": 20447384, "author_profile": "https://Stackoverflow.com/users/20447384", "pm_score": 0, "selected": false, "text": "export default defineNuxtConfig({\ncss: [\n '@/css/bootstrap.rtl.min.css'\n],\napp: {\n head: {\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74357452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20447167/" ]
74,357,458
<pre><code>{path: 'user/home', component: HomeComponent}, {path: 'user/other', component: OtherComponent} </code></pre> <p>And</p> <pre><code>{ path: 'user', children: [ {path: 'home', component: HomeComponent}, {path: 'other', component: OtherComponent} ] } </code></pre> <p>What are child routes to angular...
[ { "answer_id": 74357500, "author": "MGX", "author_id": 20059754, "author_profile": "https://Stackoverflow.com/users/20059754", "pm_score": 1, "selected": false, "text": "{\n path: 'user', canActivateChild: [ActivateGuard], children: [\n {path: 'home', component: HomeComponent},\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74357458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15151531/" ]
74,357,464
<p>I have a question about binary variable. As you can see in the photo, I have an ordinal variable consisting of 4 categories, on this variable, I need to apply classification algorithms in machine learning. <strong>How can I make this variable a binary variable, can you help me write the necessary codes in R ?</stron...
[ { "answer_id": 74357500, "author": "MGX", "author_id": 20059754, "author_profile": "https://Stackoverflow.com/users/20059754", "pm_score": 1, "selected": false, "text": "{\n path: 'user', canActivateChild: [ActivateGuard], children: [\n {path: 'home', component: HomeComponent},\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74357464", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20447394/" ]
74,357,465
<p>I have dataframe which has one nan value in column <code>B</code>.</p> <pre><code>df_stack = pd.DataFrame({'A': [2, 4, 8, 0,6], 'B': [2, 4, np.NaN, 5,7], 'C': [10, 2, 1, 8,9]}, index=['1', '2', '3', '4', '5']) A B C 1 2 2.0 10 2 ...
[ { "answer_id": 74358137, "author": "EMT", "author_id": 12243638, "author_profile": "https://Stackoverflow.com/users/12243638", "pm_score": 0, "selected": false, "text": "for i in range(len(df_stack[\"B\"):\n if len(df_stack[(df_stack['B'].isnull()) & (df_stack['B'].shift(i).isnull())]...
2022/11/08
[ "https://Stackoverflow.com/questions/74357465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12243638/" ]
74,357,518
<p>this is the code for expanding/collapsing an item. how can I Expand all items in a recycler view with a single button click?</p> <pre><code> private fun expandParentRow(position: Int){ \\to expand an item val currentBoardingRow = list[position] val services = currentBoardingRow.gameDetes ...
[ { "answer_id": 74358137, "author": "EMT", "author_id": 12243638, "author_profile": "https://Stackoverflow.com/users/12243638", "pm_score": 0, "selected": false, "text": "for i in range(len(df_stack[\"B\"):\n if len(df_stack[(df_stack['B'].isnull()) & (df_stack['B'].shift(i).isnull())]...
2022/11/08
[ "https://Stackoverflow.com/questions/74357518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11855624/" ]
74,357,533
<p>So basically I'm trying to get all the documents (as it's called in Mongodb) in a collection. I've watched some Youtube videos and they use the db.collection.find() method to do this.</p> <p>In my case however this doesn't work for some reason. I'm using node js take a look at my code below.</p> <pre class="lang-js ...
[ { "answer_id": 74358137, "author": "EMT", "author_id": 12243638, "author_profile": "https://Stackoverflow.com/users/12243638", "pm_score": 0, "selected": false, "text": "for i in range(len(df_stack[\"B\"):\n if len(df_stack[(df_stack['B'].isnull()) & (df_stack['B'].shift(i).isnull())]...
2022/11/08
[ "https://Stackoverflow.com/questions/74357533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20028924/" ]
74,357,580
<p>In my code, I have a 2 lined text. I want to move the second text (nth-child(3): 10 x apples) to the line below when the width of the screen changes. I have tried <code>display:block</code> and <code>white-space:pre</code>. But it didn't work and the sentence did not move to next line. My code and a screenshot is be...
[ { "answer_id": 74357885, "author": "Señor Lancho", "author_id": 19871890, "author_profile": "https://Stackoverflow.com/users/19871890", "pm_score": 2, "selected": false, "text": " .parentContainer::after{\n content: \"\\a\";\n white-space: pre;\n }\n" }, { "an...
2022/11/08
[ "https://Stackoverflow.com/questions/74357580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15782098/" ]
74,357,586
<p>I am trying to converet the list of list into a dictionary using defaultdict method.</p> <p>I have a list of list:</p> <pre class="lang-py prettyprint-override"><code>a= [[1,2],[2,3,4], [4,5,6], [3,7], [6,10]] </code></pre> <p>I want the output in this format:</p> <pre class="lang-py prettyprint-override"><code>{1: ...
[ { "answer_id": 74357680, "author": "CTRL ALT DELETE", "author_id": 20445337, "author_profile": "https://Stackoverflow.com/users/20445337", "pm_score": 0, "selected": false, "text": "a = [[1,2],[2,3,4], [4,5,6], [3,7], [6,10]]\n\nd = {}\n\nfor i, sublist in enumerate(a):\n for num in s...
2022/11/08
[ "https://Stackoverflow.com/questions/74357586", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18804177/" ]
74,357,604
<p>Why this <em>f value()</em> cannot access the <strong>const num = 3</strong> inside another function though it's being called there but can access the variable below it?</p> <pre><code>function xyz() { const num = 3 value() // &lt;-- why this *f value()* cannot access the **num** from here } function valu...
[ { "answer_id": 74357712, "author": "Jaona", "author_id": 9116854, "author_profile": "https://Stackoverflow.com/users/9116854", "pm_score": 0, "selected": false, "text": "function xyz() {\nconst num = 3\nvalue(num) // <-- call it with params *num*\n\nfunction value(num) {\n console.l...
2022/11/08
[ "https://Stackoverflow.com/questions/74357604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20447017/" ]
74,357,631
<p>Suppose I have the decimal number 8, and I want to conver it into a binary list of length 8. It means if I give input as 8, I should get output as [0,0,0,0,1,0,0,0]. I am looking for an inbuilt command in python that can do that in a very short time (in nano-seconds).</p> <p>I have tried the foolowing comman which i...
[ { "answer_id": 74357698, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 2, "selected": false, "text": ">>> [int(i) for i in bin(8)[2:].zfill(8)]\n[0, 0, 0, 0, 1, 0, 0, 0]\n bin(8) 8 0b bin(8)[2:] 0b .zfill(8) 8"...
2022/11/08
[ "https://Stackoverflow.com/questions/74357631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417383/" ]
74,357,649
<p>Is there a way to create a CoroutineScope that is tied to the loggedIn user?</p> <p>Basically, the idea is to create a coroutine scope, which I can cancel when the user logouts so that all the jobs being done on that scope gets cancelled.</p> <p>My idea is to create a singleton class that holds a map between the use...
[ { "answer_id": 74358167, "author": "Gaurav Bharadia", "author_id": 11004504, "author_profile": "https://Stackoverflow.com/users/11004504", "pm_score": 0, "selected": false, "text": "lifecycleScope.launch {\n dataStoreGetUserData().firstOrNull {\n \n callApi()\n\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74357649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15543809/" ]
74,357,690
<p>According to the Serverless <a href="https://www.serverless.com/framework/docs/guides/parameters#" rel="nofollow noreferrer">documentation</a>, I should be able to define params within the dashboard/console. But when I navigate there, the inputs are disabled: <a href="https://i.stack.imgur.com/gllCD.png" rel="nofoll...
[ { "answer_id": 74366129, "author": "pgrzesik", "author_id": 3864176, "author_profile": "https://Stackoverflow.com/users/3864176", "pm_score": 1, "selected": false, "text": "param ${param:<param-name>}" } ]
2022/11/08
[ "https://Stackoverflow.com/questions/74357690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11664580/" ]
74,357,696
<p>I'm trying to get the php version in the form PHP_MAJOR_VERSION.PHP_MINOR_VERSION :</p> <pre class="lang-bash prettyprint-override"><code>$ php -r 'print $PHP_MAJOR_VERSION.$PHP_MINOR_VERSION;' PHP Warning: Undefined variable $PHP_MAJOR_VERSION in Command line code on line 1 PHP Warning: Undefined variable $PHP_MI...
[ { "answer_id": 74357781, "author": "fseydel", "author_id": 948827, "author_profile": "https://Stackoverflow.com/users/948827", "pm_score": 1, "selected": false, "text": "$ php -r 'print PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;'\n" } ]
2022/11/08
[ "https://Stackoverflow.com/questions/74357696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5649639/" ]
74,357,706
<p>I have an issue with routing in angular. I have a parent which is the shell component and it is loaded from app component. The Shell has the left menu and the dynamic content section on the right side. Once i click on a link in left menu, i need to render the list of of reports as tabs and each report is a child com...
[ { "answer_id": 74357795, "author": "Parth M. Dave", "author_id": 12119351, "author_profile": "https://Stackoverflow.com/users/12119351", "pm_score": -1, "selected": false, "text": "const routes: Routes = [ \n{ path: 'report1', component: Report1Component }, \n{ path: 'report2', compo...
2022/11/08
[ "https://Stackoverflow.com/questions/74357706", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7572925/" ]
74,357,738
<p>lets say we have two classes(these are just sample classses):</p> <pre><code>public class Post { public int ID { get; set; } public string Text { get; set; } public virtual ICollection&lt;Tag&gt; Tags { get; set; } } public class Tag { public int ID { get; set; } [Required] public string La...
[ { "answer_id": 74357795, "author": "Parth M. Dave", "author_id": 12119351, "author_profile": "https://Stackoverflow.com/users/12119351", "pm_score": -1, "selected": false, "text": "const routes: Routes = [ \n{ path: 'report1', component: Report1Component }, \n{ path: 'report2', compo...
2022/11/08
[ "https://Stackoverflow.com/questions/74357738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18183385/" ]
74,357,741
<p>I am wondering how I can add one column from a dataframe, to another based on the dates in both columns. I tried to simplify this as much as I can.</p> <p>I have two dataframes one is filled with event types and the cost done for the event, the other being the observation from a nearby station giving how much rainfa...
[ { "answer_id": 74357790, "author": "Panda Kim", "author_id": 20430449, "author_profile": "https://Stackoverflow.com/users/20430449", "pm_score": 0, "selected": false, "text": "merge observation.merge(events.iloc[:, :2])\n" }, { "answer_id": 74357844, "author": "Celius Stinghe...
2022/11/08
[ "https://Stackoverflow.com/questions/74357741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9463725/" ]