qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,508,124 | <p>I'm trying to port some C++ code to Rust but I'm having some difficulties.</p>
<p>Is there any way of accessing the <strong>widget</strong> field of <strong>Drawables</strong> in the following example?</p>
<pre><code>struct Widget {
x: u32,
y: u32,
}
trait Drawable {
fn draw(&self);
fn update(&a... | [
{
"answer_id": 74508436,
"author": "Iustin Alex",
"author_id": 7236418,
"author_profile": "https://Stackoverflow.com/users/7236418",
"pm_score": 0,
"selected": false,
"text": "struct Widget {\n x: u32,\n y: u32,\n}\n\ntrait Drawable {\n fn draw(&self);\n fn update(&mut self);... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7236418/"
] |
74,508,126 | <p>I would appreciate with anyone can help me to direct myself to a best or simplest approach.</p>
<p>I have a requirement to do a communication between my app and a partner with JWT token</p>
<p>The steps are the following:</p>
<ol>
<li>The user is already authenticated in MyApp using another user credentials solution... | [
{
"answer_id": 74526711,
"author": "Papf",
"author_id": 12395944,
"author_profile": "https://Stackoverflow.com/users/12395944",
"pm_score": 1,
"selected": false,
"text": "@Bean\npublic OAuth2TokenCustomizer<JwtEncodingContext> jwtEncodingContextOAuth2TokenCustomizer(UserRepository userRe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12395944/"
] |
74,508,131 | <p>I am trying to figure out a way for a shell script to know when some input has been redirected in order to run a python script with different command line args. My shell script is called <code>P2</code> and the possible invocations need to be (unfortunately no flexibility on this):</p>
<pre><code>1. P2
2. P2 < so... | [
{
"answer_id": 74526711,
"author": "Papf",
"author_id": 12395944,
"author_profile": "https://Stackoverflow.com/users/12395944",
"pm_score": 1,
"selected": false,
"text": "@Bean\npublic OAuth2TokenCustomizer<JwtEncodingContext> jwtEncodingContextOAuth2TokenCustomizer(UserRepository userRe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12223536/"
] |
74,508,150 | <p>my Request in TYPO3 10.4 with the tx_seo is for only two Lang: de-CH and en-US like this:</p>
<pre><code><link rel="alternate" hreflang="de-CH" href="https://www.example.org/produkte/test-schiene"/>
<link rel="alternate" hreflang="de-DE" href="https://w... | [
{
"answer_id": 74526711,
"author": "Papf",
"author_id": 12395944,
"author_profile": "https://Stackoverflow.com/users/12395944",
"pm_score": 1,
"selected": false,
"text": "@Bean\npublic OAuth2TokenCustomizer<JwtEncodingContext> jwtEncodingContextOAuth2TokenCustomizer(UserRepository userRe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3923134/"
] |
74,508,236 | <p>I wrote a simple solidity programme:-</p>
<pre><code>//SPDX-License-Identifier: MIT
pragma solidity 0.8.16 ;
contract arr
{ uint256[] public n ;
uint256 x = 0 ;
function pl(uint256 a ) public
{
n[x] = a ;
x++ ;
}
}
</code></pre>
<p>It is showing below error</p>
<p><a href="https... | [
{
"answer_id": 74508766,
"author": "Petr Hejda",
"author_id": 1693192,
"author_profile": "https://Stackoverflow.com/users/1693192",
"pm_score": 1,
"selected": false,
"text": ".push() function pl(uint256 a) public {\n n.push(a);\n}\n"
},
{
"answer_id": 74523901,
"author": "... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20291085/"
] |
74,508,254 | <p>I have my data stored in an Actor. I need to display the data on a view. The only way I have found to do this is to spin up a task to load the data by using an await command on the actor. This doesn't feel right as it is very clunky; it is also giving me an error which I don't understand.</p>
<pre><code>Mutable capt... | [
{
"answer_id": 74508676,
"author": "vadian",
"author_id": 5044042,
"author_profile": "https://Stackoverflow.com/users/5044042",
"pm_score": 2,
"selected": true,
"text": "@State(Object) Task @StateObject ObservableObject .task value actor SimpleActor : ObservableObject\n{\n func getStr... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/490966/"
] |
74,508,338 | <p>I have the following data in a sheet.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>event_id</th>
<th>event_type</th>
<th>event_name</th>
<th>date_col</th>
</tr>
</thead>
<tbody>
<tr>
<td>123</td>
<td>critical_event</td>
<td>Event A</td>
<td>2021/12/16</td>
</tr>
<tr>
<td>456</td>
<td>... | [
{
"answer_id": 74508365,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 2,
"selected": true,
"text": "=QUERY(data!A:C, \"select A,B,max(C) group by A,B\")\n =SORTN(SORT(A1:C, 3, 0), 9^9, 2, 2, 1)\n"
},
{
"answer... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7283123/"
] |
74,508,350 | <p>I would like to depict a graph that is the power of some values in a continuous way.</p>
<pre><code>f <- function(x) {
return (x^(1/3))
}
ggplot(data.frame(x=seq(-5,5,length.out=10)), aes(x)) +
stat_function(fun=f)
</code></pre>
<p>This only shows the values that are <code>x > 0</code>, though if I use... | [
{
"answer_id": 74508365,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 2,
"selected": true,
"text": "=QUERY(data!A:C, \"select A,B,max(C) group by A,B\")\n =SORTN(SORT(A1:C, 3, 0), 9^9, 2, 2, 1)\n"
},
{
"answer... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2360798/"
] |
74,508,389 | <pre><code>ItemList = [
{'name': 'item', 'item_code': '473', 'price': 0},
{'name': 'item', 'item_code': '510', 'price': 0},
{'name': 'item', 'item_code': '384', 'price': 0},
]
data_1 = '510'
data_2 = 200
def update_item(data_1, data_2):
for a in ItemList:
if a['item_code'] == data_1:
... | [
{
"answer_id": 74508365,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 2,
"selected": true,
"text": "=QUERY(data!A:C, \"select A,B,max(C) group by A,B\")\n =SORTN(SORT(A1:C, 3, 0), 9^9, 2, 2, 1)\n"
},
{
"answer... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19222846/"
] |
74,508,402 | <p>In Monoid and Semigroup instances of Alternative Alt used.</p>
<p>Why we can't write instance without it?</p>
<pre><code>{-# LANGUAGE FlexibleInstances #-}
instance Alternative f => Semigroup (f a) where
(<>) = <|>
instance Alternative f => Monoid (f a) where
mempty = empty
</code></pre>
<p>An... | [
{
"answer_id": 74508457,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "(<|>) :: Alternative f => f a -> f a -> f a empty :: Alternative f => f a Applicative f => f a f a mempty :: f ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16787157/"
] |
74,508,408 | <p>Please I have a table structured this way.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: center;">Number</th>
<th style="text-align: center;">Parent</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">1</td>
<td style="text-align: center;">NULL</td>
</tr... | [
{
"answer_id": 74508737,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 1,
"selected": false,
"text": "parent parent leaf parent select n.number,\n case \n when p.parent is not null then ‘parent’\n ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691447/"
] |
74,508,410 | <p>I've been struggling to implement a logger function in C that records when messages are written to a text file using communication via a pipe. In the simplified implementation below I'm trying to write messages from the parent process and print them from the child process without the file I/O but I don't ever get th... | [
{
"answer_id": 74508465,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "n &message message &message & write write(fd[WRITE_END], message, n);\n"
},
{
"answer_id": 745758... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11206079/"
] |
74,508,418 | <p>I tried to add changes to my code and the build pipeline for Linux stopped working. The ones for Windows and Mac succeed.</p>
<p>I reverted all changes, so there are <strong>no changes</strong> except for comments since the last PullRequest which succeeded.</p>
<p>Now it fails with the following message: (Short: &qu... | [
{
"answer_id": 74508465,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "n &message message &message & write write(fd[WRITE_END], message, n);\n"
},
{
"answer_id": 745758... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6596908/"
] |
74,508,433 | <p>Assuming the common "Order" aggregate, my view of events is that each should be representative of the command that took place. E.g. <code>OrderCreated</code>, <code>OrderePicked</code>, <code>OrderPacked</code>, <code>OrderShipped</code>.<br />
Applying these events in the <em>aggregate</em> changes the <e... | [
{
"answer_id": 74508465,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "n &message message &message & write write(fd[WRITE_END], message, n);\n"
},
{
"answer_id": 745758... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1102018/"
] |
74,508,452 | <p>Apparently, template_file was deprecated, and I need to migrate to <code>templatefile</code></p>
<p>I have the following YAML that needs to be populated with two variables</p>
<pre><code>data "template_file" "user_data" {
template = file("cloud-init.yaml")
vars = {
user = var.U... | [
{
"answer_id": 74508465,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "n &message message &message & write write(fd[WRITE_END], message, n);\n"
},
{
"answer_id": 745758... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832490/"
] |
74,508,456 | <p>I was trying to implement a system where I could output the div which has the highest download count inside that div (is just a number), but I have no particular skills in JavaScript.</p>
<p>I've found out one way to grab all of the divs and output them in console, but now I have to count the highest number in the i... | [
{
"answer_id": 74508465,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "n &message message &message & write write(fd[WRITE_END], message, n);\n"
},
{
"answer_id": 745758... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17209126/"
] |
74,508,464 | <p>Instead of using 3 loops separately, I'd like to use only one loop and speed up the code.</p>
<p>There are 3 different patterns of <code>range(0,150)</code>, increasing 3 per loop:</p>
<pre><code>0,3,6,9...
1,4,7,10...
2,5,8,11....
</code></pre>
<p>My code:</p>
<pre><code>fromlist = [1,2,3,4,5]
req1list = ['z','t','... | [
{
"answer_id": 74508594,
"author": "trincot",
"author_id": 5459839,
"author_profile": "https://Stackoverflow.com/users/5459839",
"pm_score": 3,
"selected": true,
"text": "extend append req1list.extend(fromlist[::3])\nreq2list.extend(fromlist[1::3])\nreq3list.extend(fromlist[2::3])\n req1... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20554831/"
] |
74,508,480 | <pre><code>public String deleteProduct(@RequestBody String prodId ,HttpServletRequest request ) throws NotLoggedInException {
String userName = (String) request.getSession().getAttribute("user");
System.out.println(userName);
if (userName == null) {
throw new NotLoggedInException(&quo... | [
{
"answer_id": 74508525,
"author": "void void",
"author_id": 18969611,
"author_profile": "https://Stackoverflow.com/users/18969611",
"pm_score": 1,
"selected": false,
"text": "@RequestBody required true required"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20554825/"
] |
74,508,580 | <p>Create a scrolling_text function that accepts a string as a parameter, sequentially rearranges all the characters in the string from the zero index to the last one, and returns a list with all the received combinations in upper case.</p>
<p>`</p>
<pre><code>def scrolling_text(string: str) -> list:
pass
</cod... | [
{
"answer_id": 74508652,
"author": "Trenomarcus",
"author_id": 13258029,
"author_profile": "https://Stackoverflow.com/users/13258029",
"pm_score": 0,
"selected": false,
"text": "def scrolling_text(string: str) -> list:\n out = []\n string = string.upper()\n for i in range(len(st... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19757394/"
] |
74,508,581 | <p>I wrote HTML and PHP that sends an email using a form, but the code is not working. I am getting an error message on submit, "This page isn’t working <a href="http://www.adurotoluwasupport.org" rel="nofollow noreferrer">www.adurotoluwasupport.org</a> is currently unable to handle this request. HTTP ERROR 500&qu... | [
{
"answer_id": 74508639,
"author": "Faisal Sharif",
"author_id": 4398486,
"author_profile": "https://Stackoverflow.com/users/4398486",
"pm_score": -1,
"selected": false,
"text": "<div style=\"padding:20px\" class=\"col-sm-7\">\n <h2>Become a Volunteer</h2>\n <br>\n <form id=\"fc... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20554692/"
] |
74,508,630 | <pre class="lang-cs prettyprint-override"><code>using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SettingsScript : MonoBehaviour
{
public GameObject Muzica;
public GameObject Oftat;
public GameObject SFX;
... | [
{
"answer_id": 74512405,
"author": "HEJOK254",
"author_id": 17003609,
"author_profile": "https://Stackoverflow.com/users/17003609",
"pm_score": 0,
"selected": false,
"text": "using System.Diagnostics;\nusing System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusin... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15978634/"
] |
74,508,632 | <p>A 2D array of integers B(M, N) is set using a random number sensor. Display the array. Find the largest element of the array. Print its indexes.</p>
<p>I do not know what to do with m, n and how to find max</p>
<pre><code>namespace Program
{
class Program
{
static void Main(string[] args)
{
... | [
{
"answer_id": 74512405,
"author": "HEJOK254",
"author_id": 17003609,
"author_profile": "https://Stackoverflow.com/users/17003609",
"pm_score": 0,
"selected": false,
"text": "using System.Diagnostics;\nusing System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusin... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20460210/"
] |
74,508,649 | <p>I am trying to get a create a variable <code>oldPlayerStats</code> to get the current value of <code>G.playerStats</code>, so that later when <code>G.playerStats</code> gets updated, I can subtract the <code>oldPlayerStats</code> from the new value of <code>G.playerStats</code> to get the difference.</p>
<p>However ... | [
{
"answer_id": 74508733,
"author": "ramseylove",
"author_id": 12012004,
"author_profile": "https://Stackoverflow.com/users/12012004",
"pm_score": 2,
"selected": false,
"text": "const oldPlayerStats = structuredClone(G.playerState)\n"
},
{
"answer_id": 74508757,
"author": "Ale... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7341585/"
] |
74,508,661 | <p>I'm Trying to create a (number) password cracker function using numpy arrays instead of for-loops.</p>
<p>What can I add to my cracker function to avoid this error? (See image of code attached)</p>
<p><a href="https://i.stack.imgur.com/jv8JP.png" rel="nofollow noreferrer">Image of my code</a></p>
<p>I want the crack... | [
{
"answer_id": 74508733,
"author": "ramseylove",
"author_id": 12012004,
"author_profile": "https://Stackoverflow.com/users/12012004",
"pm_score": 2,
"selected": false,
"text": "const oldPlayerStats = structuredClone(G.playerState)\n"
},
{
"answer_id": 74508757,
"author": "Ale... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20554921/"
] |
74,508,666 | <p>I'm writing scraper in Python with bs4 and want to remove links from all 'a' tags</p>
<p>I have html code</p>
<pre><code>html_code = '<a href="link">some text</a>'
</code></pre>
<p>I want to remove href="link" and get only</p>
<pre><code>html_code = '<a>some text</a>'
</co... | [
{
"answer_id": 74508718,
"author": "Daweo",
"author_id": 10785975,
"author_profile": "https://Stackoverflow.com/users/10785975",
"pm_score": 3,
"selected": true,
"text": "from bs4 import BeautifulSoup\nhtml_code = '<a href=\"link\">some text</a>'\nsoup = BeautifulSoup(html_code)\nprint(\... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18448606/"
] |
74,508,670 | <p><code>select count(memberid) cnt from memberdata where MemberID;</code></p>
<p><code>select count(Deleted) UnUsable from memberdata where deleted = 1;</code></p>
<p><code>select count(Deleted) Usable from memberdata where deleted = 0;</code></p>
<blockquote>
<p>Question How to make this query to one?</p>
</blockquot... | [
{
"answer_id": 74508710,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "select \ncount(memberid) cnt\n,(SELECT count(deleted = 1) FROM memberdata) UnUsable\n, (SELECT count(deleted = 0) FROM m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555004/"
] |
74,508,711 | <p>I have a data.frame with mix numeric scale values and other continuous values. However, the missing data represented by the following values -1 and 8. this is an example:</p>
<pre><code>df = data.frame(Name = c('George','Andrea', 'Micheal','Maggie','Ravi','Xien','Jalpa'),
Grade_score=c(4,6,2,9,5,7,... | [
{
"answer_id": 74508765,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\ndf %>% \n filter(if_all(everything(), ~ !(.x %in% c(-1, 8))))\n\n# A tibble: 3 × 5\n Nam... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5504724/"
] |
74,508,749 | <p>Hello I am building a DQN model for reinforcement learning on cartpole and want to print my model summary like keras model.summary() function</p>
<p>Here is my model class.</p>
<pre><code>class DQN():
''' Deep Q Neural Network class. '''
def __init__(self, state_dim, action_dim, hidden_dim=64, lr=0.05):
... | [
{
"answer_id": 74508765,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\ndf %>% \n filter(if_all(everything(), ~ !(.x %in% c(-1, 8))))\n\n# A tibble: 3 × 5\n Nam... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20301773/"
] |
74,508,791 | <p>I am trying to run Junit4 tests and I am unable to run it. I have the following dependency installed</p>
<pre><code><dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency&... | [
{
"answer_id": 74508765,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\ndf %>% \n filter(if_all(everything(), ~ !(.x %in% c(-1, 8))))\n\n# A tibble: 3 × 5\n Nam... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19139750/"
] |
74,508,809 | <p><strong>Problem</strong>:
I am new to RXJS and having a hard time changing a pipe that is fetching http data and saving it in store conditionally (if status is active).
One of the properties of missing and I need to consume another http service on a item-by-item basis, to fetch that missing property before saving in... | [
{
"answer_id": 74509209,
"author": "Eli Porush",
"author_id": 14598976,
"author_profile": "https://Stackoverflow.com/users/14598976",
"pm_score": 2,
"selected": false,
"text": "let myObs = this.FetchHttpData1().pipe(\n switchMap((values: {id: number}[]) => {\n forkJoin(valu... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3778853/"
] |
74,508,815 | <p>I have created 2 menus called "Habit Setting" and "Team Setting" <a href="https://i.stack.imgur.com/324yo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/324yo.png" alt="enter image description here" /></a></p>
<p>But after clicking on second menu the page is reloading and the ... | [
{
"answer_id": 74509209,
"author": "Eli Porush",
"author_id": 14598976,
"author_profile": "https://Stackoverflow.com/users/14598976",
"pm_score": 2,
"selected": false,
"text": "let myObs = this.FetchHttpData1().pipe(\n switchMap((values: {id: number}[]) => {\n forkJoin(valu... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19807878/"
] |
74,508,827 | <p>I have a strange looking function that calls the plots based on the attributes. So, if a function exists in the class then select that. Then I am trying to call it, in this example I use <code>pyplot.arrow</code>, however, I cannot seem to unpack all the values. It should take four parameters, but I get the followin... | [
{
"answer_id": 74509209,
"author": "Eli Porush",
"author_id": 14598976,
"author_profile": "https://Stackoverflow.com/users/14598976",
"pm_score": 2,
"selected": false,
"text": "let myObs = this.FetchHttpData1().pipe(\n switchMap((values: {id: number}[]) => {\n forkJoin(valu... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18248287/"
] |
74,508,841 | <p>I may need some help here.</p>
<p>The scenario is,
let's say, I have a TCL script "test.tcl", which contains something like below,</p>
<pre><code>set condition true
if {$condition==true} {
puts "Message1"
} elseif {$condition==false} {
puts "Message2"
}
</code></pre>
<p>Then I ... | [
{
"answer_id": 74509209,
"author": "Eli Porush",
"author_id": 14598976,
"author_profile": "https://Stackoverflow.com/users/14598976",
"pm_score": 2,
"selected": false,
"text": "let myObs = this.FetchHttpData1().pipe(\n switchMap((values: {id: number}[]) => {\n forkJoin(valu... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8013696/"
] |
74,508,859 | <p>I have 250 rows of data, it starts january 2002 and ends septemper 2022 and interwal per row is one row/one month of the year.</p>
<p><a href="https://i.stack.imgur.com/OyHbM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OyHbM.png" alt="enter image description here" /></a></p>
<p>Now i want to p... | [
{
"answer_id": 74509209,
"author": "Eli Porush",
"author_id": 14598976,
"author_profile": "https://Stackoverflow.com/users/14598976",
"pm_score": 2,
"selected": false,
"text": "let myObs = this.FetchHttpData1().pipe(\n switchMap((values: {id: number}[]) => {\n forkJoin(valu... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555166/"
] |
74,508,861 | <p>I'm looking to transform some data in Python.</p>
<p>Originally, in column 1 there are various identifiers (A to E in this example) associated with towns in column 2. There is a separate row for each identifier and town association. There can be any number of identifier to town associations.</p>
<p>I'd like to end u... | [
{
"answer_id": 74509209,
"author": "Eli Porush",
"author_id": 14598976,
"author_profile": "https://Stackoverflow.com/users/14598976",
"pm_score": 2,
"selected": false,
"text": "let myObs = this.FetchHttpData1().pipe(\n switchMap((values: {id: number}[]) => {\n forkJoin(valu... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13845905/"
] |
74,508,862 | <p>I am new in R, so my question could seem very trivial for someone, but I need a solution. I have a data frame:</p>
<pre><code>`structure(list(Time = c(0, 0, 0), Node = 1:3, Depth = c(0, -10,
-20), Head = c(-1000, -1000, -1000), Moisture = c(0.166, 0.166,
0.166), HeadF = c(-1000, -1000, -1000), MoistureF = c(0.0049... | [
{
"answer_id": 74509297,
"author": "M.Viking",
"author_id": 10276092,
"author_profile": "https://Stackoverflow.com/users/10276092",
"pm_score": 2,
"selected": false,
"text": "facet_grid data.frame cowplot filter facet_wrap library(tidyverse)\niris %>% \n filter(Sepal.Length %in% c(6.4,5... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15752966/"
] |
74,508,889 | <p>I have the next code in my react js application:</p>
<pre><code>interface Input {
name: string;
type?: 'email' | 'text';
}
const Input = ({type}: Input) => {
return <input type={type}/>
}
</code></pre>
<p>The component can receive only type <code>email</code> and <code>text</code>. If the user will ad... | [
{
"answer_id": 74508907,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 0,
"selected": false,
"text": "type?: 'email' | 'text' | 'password' | 'number';\n"
},
{
"answer_id": 74509170,
"author": "Jeff... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12540500/"
] |
74,508,892 | <p>In the explorer of VS Code I want to have the gitignored files grey.</p>
<p>I managed to add <code>"gitDecoration.ignoredResourceForeground":"#CCCCCC"</code>, however I now have various files and folders where there are other decorations and it looks like <code>explorer.decorations.colors</code> ... | [
{
"answer_id": 74623388,
"author": "Keshav V.",
"author_id": 18131236,
"author_profile": "https://Stackoverflow.com/users/18131236",
"pm_score": 0,
"selected": false,
"text": "fort-bishop.exe .gitignore"
},
{
"answer_id": 74626965,
"author": "Alexander Farkas",
"author_id... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9363857/"
] |
74,508,900 | <p>This is my first time using NextJS and I'm trying to load 3 random dog breed images onto the app's webpage using the Dog.ceo API. I am able to see the three random dogs in the console from the console.log(data) line, but the images aren't being displayed. In this API there are only two properties - message (containi... | [
{
"answer_id": 74509155,
"author": "Harsh Vishwakarma",
"author_id": 4049649,
"author_profile": "https://Stackoverflow.com/users/4049649",
"pm_score": 0,
"selected": false,
"text": "useEffect dogs const defaultEndpoint = \"https://dog.ceo/api/breeds/image/random/3\";\nimport React, { use... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19815558/"
] |
74,508,902 | <p>This question is slightly different from others since I need to get the whole documents and not just specific fields.</p>
<p>I need to filter documents(all of the document, not just specific fields), according to the last elements value of a nested array. (<code>doc.array[i].innerArray[innerArray.length - 1].desired... | [
{
"answer_id": 74509155,
"author": "Harsh Vishwakarma",
"author_id": 4049649,
"author_profile": "https://Stackoverflow.com/users/4049649",
"pm_score": 0,
"selected": false,
"text": "useEffect dogs const defaultEndpoint = \"https://dog.ceo/api/breeds/image/random/3\";\nimport React, { use... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13821808/"
] |
74,508,926 | <p>I am using Jetpack Compose and noticed that the preview is not shown. I read articles like <a href="https://stackoverflow.com/questions/65837989/jetpack-compose-preview-not-showing">this</a>, but it seems my problem has a different root cause. Even I added defaults to all parameters in the compose function like this... | [
{
"answer_id": 74509019,
"author": "MeLean",
"author_id": 3626353,
"author_profile": "https://Stackoverflow.com/users/3626353",
"pm_score": 2,
"selected": false,
"text": "@OptIn(ExperimentalLifecycleComposeApi::class)\n@Composable\n@ExperimentalFoundationApi\n@Preview\nfun VolumeSettings... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3626353/"
] |
74,508,954 | <p>I've two file for my app, and in my second one <code>page_one.py</code> I can't use properly the anchor method. The label 'left' and 'right' are always positioned in the middle of the screen and not on the side</p>
<pre><code># main.py
import tkinter as tk
from page_one import PageOne
class Main(tk.Frame):
def __... | [
{
"answer_id": 74509057,
"author": "Tranbi",
"author_id": 13525512,
"author_profile": "https://Stackoverflow.com/users/13525512",
"pm_score": 3,
"selected": true,
"text": "PageOne Main fill=\"both\" pack import tkinter as tk\n\nclass PageOne(tk.Frame):\n def __init__(self, parent, *ar... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74508954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16545560/"
] |
74,509,010 | <p>What is the best, most secure and professional way to store a user's jwt token after logging into React?</p>
<p>I see many people saying that using localStorage is a good way.</p>
<p>For example:</p>
<pre><code>localStorage.setItem("token", "ey.......")
</code></pre>
<p>Others say to use a librar... | [
{
"answer_id": 74509057,
"author": "Tranbi",
"author_id": 13525512,
"author_profile": "https://Stackoverflow.com/users/13525512",
"pm_score": 3,
"selected": true,
"text": "PageOne Main fill=\"both\" pack import tkinter as tk\n\nclass PageOne(tk.Frame):\n def __init__(self, parent, *ar... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555329/"
] |
74,509,030 | <p>I'm in the final stages of developing a basic React instant chat messaging using Socket.io & React-Router to teach myself some core concepts.</p>
<p>I've been using this project on GitHub as a reference:
<a href="https://github.com/simpletut/react-real-time-chat-app" rel="nofollow noreferrer">https://github.com/... | [
{
"answer_id": 74509057,
"author": "Tranbi",
"author_id": 13525512,
"author_profile": "https://Stackoverflow.com/users/13525512",
"pm_score": 3,
"selected": true,
"text": "PageOne Main fill=\"both\" pack import tkinter as tk\n\nclass PageOne(tk.Frame):\n def __init__(self, parent, *ar... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16079218/"
] |
74,509,058 | <p>So i have an array of objects named: <code>tokens</code>. Each object from this array has this format: <code>{tokenName: string}</code>. I want to test if each element from this array has the exact same format or else throw an error.</p>
<p>I have tried this:</p>
<pre><code>for (let i = 0; i < tokens.length; i++)... | [
{
"answer_id": 74509057,
"author": "Tranbi",
"author_id": 13525512,
"author_profile": "https://Stackoverflow.com/users/13525512",
"pm_score": 3,
"selected": true,
"text": "PageOne Main fill=\"both\" pack import tkinter as tk\n\nclass PageOne(tk.Frame):\n def __init__(self, parent, *ar... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16932373/"
] |
74,509,063 | <p>Trying to start Storybook in a NX monorepo, but getting this error when trying these commands:</p>
<p><code>nx run projectName:storybook</code> <code>nx storybook projectName</code> :</p>
<pre><code>9% setup compilation SourceMapDevToolPlugin
C:\Users\userName\Documents\Git\bft3\node_modules\@angular-devkit\build-an... | [
{
"answer_id": 74537509,
"author": "Eduardo Rosostolato",
"author_id": 8403079,
"author_profile": "https://Stackoverflow.com/users/8403079",
"pm_score": 1,
"selected": false,
"text": "webpack v5.74.0 package.json ...\n\"webpack\": \"5.74.0\"\n yarn"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9813446/"
] |
74,509,076 | <p>I've seen that <code>close ARGV</code> can close the currently processed file, but it would seem that <code>ARGV</code> isn't actually a file handle, so I can't use it in a <code>read</code> call. Is there any way to get the current file handle, or am I going to have to explicitly open the files myself?</p>
| [
{
"answer_id": 74509161,
"author": "Steffen Ullrich",
"author_id": 3081018,
"author_profile": "https://Stackoverflow.com/users/3081018",
"pm_score": 4,
"selected": true,
"text": "ARGV read <> <> <> perl -e '<>; read(ARGV, my $buf, 10); print $buf' file\n <> read"
},
{
"answer_id"... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1366368/"
] |
74,509,090 | <p>Let's say we have an array of objects as below:</p>
<pre><code>const example = [
{ id: "1", childIds: ["2"], parentId: "0" },
{ id: "2", childIds: ["3", "4"], parentId: "1" },
{ id: "3", childIds: [], parentId: "2" },
{... | [
{
"answer_id": 74509161,
"author": "Steffen Ullrich",
"author_id": 3081018,
"author_profile": "https://Stackoverflow.com/users/3081018",
"pm_score": 4,
"selected": true,
"text": "ARGV read <> <> <> perl -e '<>; read(ARGV, my $buf, 10); print $buf' file\n <> read"
},
{
"answer_id"... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10208281/"
] |
74,509,123 | <p>So I've just started learning html and javascript and I'm trying to create a comment page. However I can only get the page to display one comment at a time and I would like to be able to add aditional comments. Can anyone please help?</p>
<p>Part of code used</p>
<p>JS:</p>
<pre><code>
function getUserInput(){
v... | [
{
"answer_id": 74509163,
"author": "Azad",
"author_id": 19120939,
"author_profile": "https://Stackoverflow.com/users/19120939",
"pm_score": 1,
"selected": false,
"text": "function getUserInput(){\n var name = document.getElementById(\"name\").value;\n var email = document.getElemen... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555412/"
] |
74,509,130 | <p>I'm trying to find the right command to use in the CLI to print the contents of a table within DynamoDB.</p>
<p>I've tried using the following command but it gives me a "parameter validation failed" error.</p>
<p>`</p>
<pre><code>aws dynamodb get-item \
--table-name Traffic \
--key file://traffic.j... | [
{
"answer_id": 74509601,
"author": "Lee Hannigan",
"author_id": 7909676,
"author_profile": "https://Stackoverflow.com/users/7909676",
"pm_score": 0,
"selected": false,
"text": "Scan aws dynamodb scan \\\n--table-name test \\\n--output text\n batch-get-item"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542377/"
] |
74,509,148 | <p>I started making a small program. The form contains checkbox1,2,3,4,.... and textbox1,2,3,4,5.... there is a code that looks at which of the checkboxes are marked. If there is any possibility to link textbox and checkbox. So that when a code marked with a checkbox is detected, the text is taken from the textbox give... | [
{
"answer_id": 74509601,
"author": "Lee Hannigan",
"author_id": 7909676,
"author_profile": "https://Stackoverflow.com/users/7909676",
"pm_score": 0,
"selected": false,
"text": "Scan aws dynamodb scan \\\n--table-name test \\\n--output text\n batch-get-item"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9865805/"
] |
74,509,213 | <p>To solve my problem I need to get out of the <code>while</code> loop if the <code>str2</code> is empty.</p>
<pre><code>while (elementos <= tamanho - jogada || str2 == NULL);
</code></pre>
<p>This is the code:</p>
<pre><code>#include <stdio.h>
#include <string.h>
#define BUFFER 100
unsigned int randa... | [
{
"answer_id": 74510304,
"author": "dash-o",
"author_id": 12098405,
"author_profile": "https://Stackoverflow.com/users/12098405",
"pm_score": 0,
"selected": false,
"text": "while (elementos <= tamanho - jogada || str2 == NULL);\n elementos <= tamanho - jogada jopada++"
},
{
"answ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14196739/"
] |
74,509,243 | <pre><code> public readonly struct MyStruct : IInterface
{
public MyStruct()
{
M();
}
public void Test()
{
throw new NotImplementedException();
}
}
public interface IInterface
{
static void M()
{
... | [
{
"answer_id": 74509438,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 1,
"selected": false,
"text": "class Foo {\n public static void M() {}\n}\n\nclass Bar: Foo {\n public Bar() {\n M(); // OK\n }\n}\... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555495/"
] |
74,509,302 | <p>In Astro, I would like to render double curly braces inside the template however it errors as whatever inside the braces is interpreted as JS code.</p>
<p>Example:</p>
<pre><code>.post-title {
margin: 0 0 5px;
font-weight: bold;
font-size: 38px;
line-height: 1.2;
and here's a line of some really,... | [
{
"answer_id": 74509438,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 1,
"selected": false,
"text": "class Foo {\n public static void M() {}\n}\n\nclass Bar: Foo {\n public Bar() {\n M(); // OK\n }\n}\... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11924762/"
] |
74,509,308 | <p>i am a beginner in python i and i came up this problem and i cant seem to solve it.I have the following dictionary</p>
<pre><code>stats = {1: {"Player": "Derrick Henry", "yards": 870, "TD": 9}, 2: {"Player": "Nick Chubb", "Yards": 841, "TD&qu... | [
{
"answer_id": 74509366,
"author": "azro",
"author_id": 7212686,
"author_profile": "https://Stackoverflow.com/users/7212686",
"pm_score": 2,
"selected": true,
"text": "if x == \"Player\":\n print(\"Player = {}\".format(x))\nif y == \"Yards\":\n print(\"Yards = {}\".format(y))\nif z... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20475046/"
] |
74,509,310 | <p>I have the variable <code>G.playerStatsDifference</code> defined as an array of objects:</p>
<pre><code>playerStatsDifference: [{
carpenter: 0,
wood: 0,
gunman: 0,
gunpowder: 0,
merchant: 0,
gold: 0,
fleet: 0,
flagship: 0,
}, {
carpenter: 0,... | [
{
"answer_id": 74509366,
"author": "azro",
"author_id": 7212686,
"author_profile": "https://Stackoverflow.com/users/7212686",
"pm_score": 2,
"selected": true,
"text": "if x == \"Player\":\n print(\"Player = {}\".format(x))\nif y == \"Yards\":\n print(\"Yards = {}\".format(y))\nif z... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7341585/"
] |
74,509,349 | <p>Hi i am a beginner and i have to make a simple phonebook programme in C++ using library . I would definitely use but im not allowed to as it is for an assignment. Below is my code until now and i have 3 errors which i don't know how to solve. I know conversion from char to const char* is not allowed but i really ne... | [
{
"answer_id": 74509866,
"author": "Tóth Attila",
"author_id": 2075578,
"author_profile": "https://Stackoverflow.com/users/2075578",
"pm_score": 0,
"selected": false,
"text": "char const char* std::string"
},
{
"answer_id": 74510153,
"author": "Zz_GhostM4n_zZ",
"author_id... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20207973/"
] |
74,509,365 | <p>I have a list of files in a adls container which contain date in the name as given below:</p>
<pre><code>TestFile-Name-20221120. csv
TestFile-Name-20221119. csv
TestFile-Name-20221118. csv
</code></pre>
<p>and i want to copy files which contain today date only like TestFile-Name-20221120. csv on today and so on.
I'v... | [
{
"answer_id": 74509866,
"author": "Tóth Attila",
"author_id": 2075578,
"author_profile": "https://Stackoverflow.com/users/2075578",
"pm_score": 0,
"selected": false,
"text": "char const char* std::string"
},
{
"answer_id": 74510153,
"author": "Zz_GhostM4n_zZ",
"author_id... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18096952/"
] |
74,509,402 | <p>when we download some same files on Internet, the filename becomes (2), (3)...</p>
<p><a href="https://i.stack.imgur.com/XsPTs.png" rel="nofollow noreferrer">example</a></p>
<p>I want to remove these files with C. First of all, I want to find files and print.
I write some code blow. But It doesn't work.</p>
<pre><... | [
{
"answer_id": 74509866,
"author": "Tóth Attila",
"author_id": 2075578,
"author_profile": "https://Stackoverflow.com/users/2075578",
"pm_score": 0,
"selected": false,
"text": "char const char* std::string"
},
{
"answer_id": 74510153,
"author": "Zz_GhostM4n_zZ",
"author_id... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19137737/"
] |
74,509,414 | <p>I have an input data as shown:</p>
<pre><code>df = pd.DataFrame({"colony" : [22, 22, 22, 33, 33, 33],
"measure" : [np.nan, 7, 11, 13, np.nan, 9,],
"net/gross" : [np.nan, "gross", "net", "gross", "np.nan", "... | [
{
"answer_id": 74509866,
"author": "Tóth Attila",
"author_id": 2075578,
"author_profile": "https://Stackoverflow.com/users/2075578",
"pm_score": 0,
"selected": false,
"text": "char const char* std::string"
},
{
"answer_id": 74510153,
"author": "Zz_GhostM4n_zZ",
"author_id... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19702840/"
] |
74,509,421 | <p>I have a function that makes structured data from <code>rawData</code> (from API)</p>
<pre><code>function makeData(raw:typeof rawData){
const data:IData = {} // this line throws above error.
const now = new Date()
data.createdAt=now.toDateString();
data.currentUser=raw.name;
data.uniqueId= raw.i... | [
{
"answer_id": 74509433,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 0,
"selected": false,
"text": "const data:IData = {\n createdAt:'',\n currentUser:'',\n uniqueId:''\n }\n makeData(raw:typeof rawData):... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20002028/"
] |
74,509,456 | <p>How to sort a Alphanumeric string with special characters in C# using Linq?
Order should be first special characters, then numbers and then alphabets.</p>
<p>Example :</p>
<p>Input - { Hello, #Test, @Red, &While, 123@Test, @123Test, %54Sun, Dom, Left }</p>
<p>Expected - { @123Test, %54Sun, @Red, #Test, &Whil... | [
{
"answer_id": 74509727,
"author": "Renat",
"author_id": 1075282,
"author_profile": "https://Stackoverflow.com/users/1075282",
"pm_score": 1,
"selected": true,
"text": "OrderBy public class SpecialCharactersNumbersLettersComparer : IComparer<string>\n{\n private readonly IComparer<str... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17260151/"
] |
74,509,467 | <p>I have a ReportStatusEntity class as shown below:</p>
<pre><code>public class ReportsStatusEntity
{
public string PolicyNumber { get; set; }
public string ClientName { get; set; }
public bool HasIndividualBrokers { get; set; }
}
</code></pre>
<p>Let's say I have the following list of <code>List<Report... | [
{
"answer_id": 74509643,
"author": "Siegfried.V",
"author_id": 7310000,
"author_profile": "https://Stackoverflow.com/users/7310000",
"pm_score": 1,
"selected": false,
"text": "List<List<ReportStatusEntity>> listReportStatusEntityGroupped = this.yourList.GroupBy(u => new { u.PolicyNumber,... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3162879/"
] |
74,509,503 | <p>I can't fully understand how this argument affects the functionality of the <code>permutedims</code> function. I read the <a href="https://docs.julialang.org/en/v1/base/arrays/#Base.permutedims" rel="nofollow noreferrer">official doc for this function</a> many times:</p>
<blockquote>
<p>permutedims(A::AbstractArray,... | [
{
"answer_id": 74509643,
"author": "Siegfried.V",
"author_id": 7310000,
"author_profile": "https://Stackoverflow.com/users/7310000",
"pm_score": 1,
"selected": false,
"text": "List<List<ReportStatusEntity>> listReportStatusEntityGroupped = this.yourList.GroupBy(u => new { u.PolicyNumber,... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11747148/"
] |
74,509,525 | <p>I try to create an empty array into which I can add other arrays and get a matrix:</p>
<pre class="lang-python prettyprint-override"><code>arr = np.array([])
arr = np.append(arr, [1, 2])
arr = np.append(arr, [3, 4])
</code></pre>
<p>As a result, I get a one-dimensional array:</p>
<pre class="lang-python prettyprint-... | [
{
"answer_id": 74509597,
"author": "M472",
"author_id": 2122753,
"author_profile": "https://Stackoverflow.com/users/2122753",
"pm_score": 0,
"selected": false,
"text": "np.array np.array([[1., 2.], [3., 4.]])\n np.zeros() arr = np.zeros((2, 2))\narr[0, :] = [1, 2]\narr[1, :] = [3, 4]\n n... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555603/"
] |
74,509,529 | <p>`Hi guys, I need help with react js, what happens is that I want to move an item from a specific list to the last place, but when I move it, it doesn't load the data I had before, unfortunately I'm very new to react js and ps isn't I know all of them, so I turn to this community in search of help and soon I will upl... | [
{
"answer_id": 74509597,
"author": "M472",
"author_id": 2122753,
"author_profile": "https://Stackoverflow.com/users/2122753",
"pm_score": 0,
"selected": false,
"text": "np.array np.array([[1., 2.], [3., 4.]])\n np.zeros() arr = np.zeros((2, 2))\narr[0, :] = [1, 2]\narr[1, :] = [3, 4]\n n... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18600473/"
] |
74,509,535 | <p>I have the result of a long lasting operation, a MongoDB query:</p>
<blockquote>
<p>const a = collection.find({}).project({ name: 1 }).toArray()</p>
</blockquote>
<p>It has the type of Promise<Document[]></p>
<p>I would do a transformation, but it is not possible:</p>
<blockquote>
<p>let a2 = a.map((i) => {... | [
{
"answer_id": 74556329,
"author": "Shilpe Saxena",
"author_id": 13265113,
"author_profile": "https://Stackoverflow.com/users/13265113",
"pm_score": 0,
"selected": false,
"text": "const promise = new Promise((resolved, rejected) => {\nsetTimeout(() =>{\nconsole.log(rejected)\n},1000)\n})... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239219/"
] |
74,509,540 | <pre><code>ListView(
scrollDirection: Axis.horizontal,
children: [
GestureDetector(
onTap: () {
setState(() {
selectedCard = index;
});
},
child: Card(
elevatio... | [
{
"answer_id": 74556329,
"author": "Shilpe Saxena",
"author_id": 13265113,
"author_profile": "https://Stackoverflow.com/users/13265113",
"pm_score": 0,
"selected": false,
"text": "const promise = new Promise((resolved, rejected) => {\nsetTimeout(() =>{\nconsole.log(rejected)\n},1000)\n})... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17906689/"
] |
74,509,629 | <p>I have a class <code>Circle</code></p>
<pre class="lang-py prettyprint-override"><code>class Circle:
def __init__(self, R: float):
self.R = R
@property
def A(self):
return 3.14*self.R**2
# Annotation: Circle(R: float) -> None
</code></pre>
<p>But I want two ways to create an instance... | [
{
"answer_id": 74509732,
"author": "dskrypa",
"author_id": 19070573,
"author_profile": "https://Stackoverflow.com/users/19070573",
"pm_score": 2,
"selected": false,
"text": "class Circle:\n def __init__(self, *, radius: float | None = None, diameter: float | None = None):\n if ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8740854/"
] |
74,509,646 | <p>The problem is when I add a student record (append txt to my file) for the first time a major blank gap is added</p>
<pre><code>username,passcode
jack,Adidas123_
man,Adidas123_
kal,Adidas123_
ll,Adidas123_
</code></pre>
<p>I have tried to use the .strip() function it did not seem to help , I was expecting my csv fi... | [
{
"answer_id": 74509732,
"author": "dskrypa",
"author_id": 19070573,
"author_profile": "https://Stackoverflow.com/users/19070573",
"pm_score": 2,
"selected": false,
"text": "class Circle:\n def __init__(self, *, radius: float | None = None, diameter: float | None = None):\n if ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16698137/"
] |
74,509,650 | <p>I'm newbie in kafka streams. I need to create kafka streams dynamically from config files, which contain source and destination topic names.
Is it possible to restart and stop Kafka streams? My goal is transferring messages from one topic to another periodically using kafka streams.
I used spring cron job and tried ... | [
{
"answer_id": 74509732,
"author": "dskrypa",
"author_id": 19070573,
"author_profile": "https://Stackoverflow.com/users/19070573",
"pm_score": 2,
"selected": false,
"text": "class Circle:\n def __init__(self, *, radius: float | None = None, diameter: float | None = None):\n if ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10550818/"
] |
74,509,657 | <p>I'm not sure why my code isn't fully printing. It isn't printing the quadrants.</p>
<p>Here are my instructions:</p>
<ul>
<li>You are writing a program that checks if a point (a,b) is inside a circle of radius R that is centered on the point (c,d).</li>
</ul>
<p>-a,b,c,d,R are all integers entered from the keyboard
... | [
{
"answer_id": 74509732,
"author": "dskrypa",
"author_id": 19070573,
"author_profile": "https://Stackoverflow.com/users/19070573",
"pm_score": 2,
"selected": false,
"text": "class Circle:\n def __init__(self, *, radius: float | None = None, diameter: float | None = None):\n if ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20277384/"
] |
74,509,659 | <p>I am currently learning how to utilize WebRTC in javascript.<br />
Here are the codes I wrote:</p>
<p><strong>main.html</strong></p>
<pre><code><!DOCTYPE html>
<header>
<title>video and audio</title>
<style>
html {
height: 100%;
}
body {
min-height: 100%;
... | [
{
"answer_id": 74509813,
"author": "innocent",
"author_id": 8405085,
"author_profile": "https://Stackoverflow.com/users/8405085",
"pm_score": 2,
"selected": true,
"text": "div video <video id=\"video\"></video>\n"
},
{
"answer_id": 74509815,
"author": "SMAKSS",
"author_id... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19920392/"
] |
74,509,661 | <p>I have little problem with dynamically add data to the HTML from SQL Table..</p>
<p>This is my loop</p>
<pre><code>@foreach (var item in Model.ModulesSubStages)
{
<div class="row">
<div class="col-md-6"><a id="courseRedirect" asp-page="/Site/Courses/@item... | [
{
"answer_id": 74509712,
"author": "cancan",
"author_id": 18217440,
"author_profile": "https://Stackoverflow.com/users/18217440",
"pm_score": -1,
"selected": false,
"text": "@foreach (var item in Model.ModulesSubStages){\n <div class=\"row\">\n <div class=\"col-md-6\"><a id=\"courseRed... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15868779/"
] |
74,509,682 | <p>I have a folder in azure zen2
VAS
In this folder i have files
Vas_1.csv
Vas_2.csv
Vas_3.csv</p>
<p>I have to load these files using pyspark dataframe in table VAS in delta with two additional column derived in runtime load date and file_name.</p>
<p>Once the data is loaded in VAS table .
Next day Few more files VAS_... | [
{
"answer_id": 74509712,
"author": "cancan",
"author_id": 18217440,
"author_profile": "https://Stackoverflow.com/users/18217440",
"pm_score": -1,
"selected": false,
"text": "@foreach (var item in Model.ModulesSubStages){\n <div class=\"row\">\n <div class=\"col-md-6\"><a id=\"courseRed... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12673502/"
] |
74,509,702 | <p>How to read JSON object matching query params? I want to filter data for video urls which only contains query params from metadata column and replace it by the removing the query params.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>metadata</th>
</tr>
</thead>
<tbody>
<tr>
<td>{"... | [
{
"answer_id": 74509712,
"author": "cancan",
"author_id": 18217440,
"author_profile": "https://Stackoverflow.com/users/18217440",
"pm_score": -1,
"selected": false,
"text": "@foreach (var item in Model.ModulesSubStages){\n <div class=\"row\">\n <div class=\"col-md-6\"><a id=\"courseRed... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10757984/"
] |
74,509,703 | <p>For example we have this code.</p>
<pre><code>x = 1
y = 1
print(x is y) # TRUE
print(id(x), id(y))
y = pow(10, 30, 10**30-1) # 1
print(type(y))
print(x, y, x is y) # FALSE
</code></pre>
<p>It`s return:</p>
<pre><code>True
140516304938720 140516304938720
<class 'int'>
1 1 False
</code></pre>
<p>The last result... | [
{
"answer_id": 74563978,
"author": "Amirali.Shr",
"author_id": 19641783,
"author_profile": "https://Stackoverflow.com/users/19641783",
"pm_score": 0,
"selected": false,
"text": "x = [\"apple\", \"banana\"]\ny = [\"apple\", \"banana\"]\n\nprint(x is y) #False\nprint(x == y) #True\n"
},
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18212277/"
] |
74,509,737 | <p>I have a dataframe that looks like this.</p>
<pre><code> Gene SNP Score
1 AKT3 rs2220276 6.5091
2 ARHGAP44 rs2220276 4.7194
3 BRINP2 rs16851037 3.2606
4 C12orf42 rs16851037 3.2563
5 CCDC122 rs11619756 4.3142
6 CCDC68 rs11619756 2.3614
</code></pre>
<p>I want to transform the dataframe so it l... | [
{
"answer_id": 74509808,
"author": "deschen",
"author_id": 2725773,
"author_profile": "https://Stackoverflow.com/users/2725773",
"pm_score": 0,
"selected": false,
"text": "library(tidyverse)\n\ndf %>%\n distinct(SNP, .keep_all = TRUE)\n\n Gene SNP Score\n1 AKT3 rs2220276... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1871399/"
] |
74,509,753 | <p>The following code is checking whether the user is in an input, textarea, or contenteditable. If that's the case <code>keys</code> should be emptied and the code should stop.</p>
<pre><code>let keys: any[] = []
document.addEventListener('keypress', event => {
if (event.key === ' ') return
if (event.target ==... | [
{
"answer_id": 74509937,
"author": "geoffrey",
"author_id": 8225569,
"author_profile": "https://Stackoverflow.com/users/8225569",
"pm_score": 2,
"selected": false,
"text": "EventTarget HTMLElement Node if (!(event.target instanceof HTMLElement)) return;\n"
},
{
"answer_id": 74509... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/122536/"
] |
74,509,778 | <p>I am new to python and learning to make some basic tkinter apps in windows.
I have defined a menubar and add one menu to it. Then added multiple labels to this menu, but when I click any button in the menu, all the commands are ran, I am wondering how to run only the clicked menu?</p>
<h1>MWE</h1>
<p><strong>(Proble... | [
{
"answer_id": 74509892,
"author": "RandomCoder59",
"author_id": 16765869,
"author_profile": "https://Stackoverflow.com/users/16765869",
"pm_score": 2,
"selected": false,
"text": "lambda func func() abcd abcd() abcd lambda abcd abcd: abcd() dict_label_func = {\n 'function_01': lambda:... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19853940/"
] |
74,509,786 | <p>In Bash I would do something like</p>
<pre><code>...
...
if ! cd non_exist_dir > /dev/null 2>&1; then
echo "error in cd"
return 1
fi
...
...
</code></pre>
<p>How would I do that in idiomatic nushell ?<br />
Especially, how can I get rid of the annoying error message displayed by nushell becau... | [
{
"answer_id": 74509892,
"author": "RandomCoder59",
"author_id": 16765869,
"author_profile": "https://Stackoverflow.com/users/16765869",
"pm_score": 2,
"selected": false,
"text": "lambda func func() abcd abcd() abcd lambda abcd abcd: abcd() dict_label_func = {\n 'function_01': lambda:... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1856694/"
] |
74,509,799 | <p>I am working on a fairly simple worksheet where if a cell contains a hexadecimal value I want to convert it to decimal, otherwise if it is already in decimal format we just leave it. Something like:</p>
<p>=IF(A1 is hex, HEX2DEC(A1),A1)</p>
<p>Any ideas/suggestions would be awesome. Thanks in advance.</p>
<p>I have ... | [
{
"answer_id": 74509892,
"author": "RandomCoder59",
"author_id": 16765869,
"author_profile": "https://Stackoverflow.com/users/16765869",
"pm_score": 2,
"selected": false,
"text": "lambda func func() abcd abcd() abcd lambda abcd abcd: abcd() dict_label_func = {\n 'function_01': lambda:... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555729/"
] |
74,509,805 | <p>I am trying to use the destructuring syntax of Java 19 pattern match, but my IntelliJ Idea cannot understand it (please refer below screenshot). Is there a way to fix this? Or IntellJ is not yet ready for java 19 ?</p>
<p><a href="https://i.stack.imgur.com/OMgeW.png" rel="nofollow noreferrer"><img src="https://i.sta... | [
{
"answer_id": 74510299,
"author": "Basil Bourque",
"author_id": 642706,
"author_profile": "https://Stackoverflow.com/users/642706",
"pm_score": 2,
"selected": false,
"text": ".3 switch"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2715083/"
] |
74,509,850 | <p>I am trying to display the values inside an array but there are these 0's that come with it. Using a for loop to count the number of temperature and the temperature's value with it.</p>
<p>This is the code that I used:</p>
<pre><code>import java.util.*;
public class Array1dTemperature {
static Scanner in = new ... | [
{
"answer_id": 74510299,
"author": "Basil Bourque",
"author_id": 642706,
"author_profile": "https://Stackoverflow.com/users/642706",
"pm_score": 2,
"selected": false,
"text": ".3 switch"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19891678/"
] |
74,509,861 | <p>I intalled Packer.nvim as in the instructions in the repository, after doing all the plugin configuration, when I go to run the :PackerInstall command NeoVim doesn't recognize it. I checked the Windows Path and apparently everything is fine.</p>
<p>Windows 11 Home
NeaoVim 0.8.1</p>
<p>I try install a Packer.nvim.</p... | [
{
"answer_id": 74510299,
"author": "Basil Bourque",
"author_id": 642706,
"author_profile": "https://Stackoverflow.com/users/642706",
"pm_score": 2,
"selected": false,
"text": ".3 switch"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555918/"
] |
74,509,871 | <p>I have a tibble:</p>
<pre><code> itemID order dayR n
<dbl> <dbl> <date> <int>
1 9 1 2018-01-01 1
2 11 1 2018-01-01 1
3 19 1 2018-01-01 2
4 26 1 2018-01-01 96
5 26 2 2018-01-01 5
6 26 3 2018-01-01 ... | [
{
"answer_id": 74509923,
"author": "langtang",
"author_id": 4447540,
"author_profile": "https://Stackoverflow.com/users/4447540",
"pm_score": 3,
"selected": true,
"text": "group_by() summarize() df %>% \n group_by(itemID, dayR) %>% \n summarize(n=sum(n*order))\n itemID dayR ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16236118/"
] |
74,509,881 | <p><strong>Scenario</strong>
I've developed a scheduled task that runs after every 30 seconds. The task is injected to a proxy service. The proxy service implements a sequence which calls the HTTP Address and further dumps the data into postgresdb</p>
<p><strong>Task</strong></p>
<pre><code><?xml version="1.0&q... | [
{
"answer_id": 74513521,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 0,
"selected": false,
"text": "Respond <outSequence>\n <property name=\"messageType\" value=\"application/xml\" scope=\"axis2\"/>\n <property nam... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7454536/"
] |
74,509,884 | <p>I have this query that returns 13 rows.</p>
<pre><code>SELECT DISTINCT title,year FROM MovieAwards WHERE EXISTS (SELECT DISTINCT * FROM Movies WHERE MovieAwards.title = Movies.title AND Movies.year = MovieAwards.year AND Movies.year >= 2000 AND Movies.year <= 2010 AND MovieAwards.result='won');
</code></pre>
<... | [
{
"answer_id": 74513521,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 0,
"selected": false,
"text": "Respond <outSequence>\n <property name=\"messageType\" value=\"application/xml\" scope=\"axis2\"/>\n <property nam... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541599/"
] |
74,509,948 | <p>I have a PHP object that I need to change the key name of in a foreach loop:</p>
<pre><code>stdClass Object
(
[first-name] => NAME
[last-name] => NAME
[phone-number] => NUMBER
...
)
</code></pre>
<p>I need to replace the dash '-' to a underscore '_' within a foreach so it looks like this:</p>
<p... | [
{
"answer_id": 74509982,
"author": "hakre",
"author_id": 367456,
"author_profile": "https://Stackoverflow.com/users/367456",
"pm_score": 3,
"selected": true,
"text": " $key2 = str_replace('-', '_', $key);\n if ($key2 !== $key) {\n $customer->$key2 = $customer->$key; ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16096837/"
] |
74,509,958 | <p>I have been working on <a href="https://www.codewars.com/kata/5da1df6d8b0f6c0026e6d58d" rel="nofollow noreferrer">this</a> problem for some time now. The problem asks to find two numbers x and y such that the product of the squares of x and y equal the cube of k. My approach was to solve for x, given that an input o... | [
{
"answer_id": 74511089,
"author": "Andrey Tyukin",
"author_id": 2707792,
"author_profile": "https://Stackoverflow.com/users/2707792",
"pm_score": 0,
"selected": false,
"text": "z * z * z = x * x * y * y z * sqrt(z) = x * y sqrt(z) q = sqrt(z) q = f1^e1 * ... fN^eN f_i e_i x * y = f1^(3 ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555860/"
] |
74,509,980 | <p>it asks for sales tax, but then prints a long number for total tax</p>
<pre><code>#This program will ask user for sales and calcutate state, county, and total sales tax.
#This module calculates the county tax
def askTotalSales():
totalSales=float(input("Enter sales for the month: "))
print()
... | [
{
"answer_id": 74511089,
"author": "Andrey Tyukin",
"author_id": 2707792,
"author_profile": "https://Stackoverflow.com/users/2707792",
"pm_score": 0,
"selected": false,
"text": "z * z * z = x * x * y * y z * sqrt(z) = x * y sqrt(z) q = sqrt(z) q = f1^e1 * ... fN^eN f_i e_i x * y = f1^(3 ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555680/"
] |
74,509,986 | <p>I have a tricky requirement where I need create copy of a service that has been created via Constructor DI in my Azure Function</p>
<pre><code>public MyFunction(IMyService myService,
IServiceProvider serviceProvider,
ServiceCollectionContainer serviceCollectionContainer)
{
_myService ... | [
{
"answer_id": 74554182,
"author": "david-ao",
"author_id": 11509101,
"author_profile": "https://Stackoverflow.com/users/11509101",
"pm_score": 2,
"selected": false,
"text": "public MyFunction(IServiceScopeFactory serviceScopeFactory) \n{\n _serviceScopeFactory = serviceScopeFactory;\n}... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74509986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/267955/"
] |
74,510,020 | <p>This is the MWE:</p>
<pre><code>interface Animals {cat:string, dog:string}
let a: Animals|undefined;
if(a){// if we got `a` from somewhere
[1,2,3].map(v=>a.cat)
// ----------> ~ Object is possibly 'undefined'
}
</code></pre>
<p><a href="https://www.typescriptlang.org/play?ssl=22&ssc=1&pln=15&p... | [
{
"answer_id": 74510171,
"author": "OFRBG",
"author_id": 1231844,
"author_profile": "https://Stackoverflow.com/users/1231844",
"pm_score": 0,
"selected": false,
"text": "const"
},
{
"answer_id": 74510179,
"author": "jcalz",
"author_id": 2887218,
"author_profile": "htt... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12582392/"
] |
74,510,025 | <p>I am trying to add a background image which is always there no matter which route is active. I the example below is inspired by <a href="https://stackoverflow.com/questions/44179889/how-do-i-set-background-image-in-flutter">this answer</a> but the background will only be visible for the route "/". I was ho... | [
{
"answer_id": 74510315,
"author": "geisterfurz007",
"author_id": 6707985,
"author_profile": "https://Stackoverflow.com/users/6707985",
"pm_score": 4,
"selected": true,
"text": "builder MaterialApp DecoratedBox import 'package:flutter/material.dart';\n\nvoid main() {\n runApp(Example())... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348837/"
] |
74,510,031 | <p>I use a ViewModel to allow user's to enter all kind of Filterdata and then execute them.
In certain cases I need to chnge the values at serverside and return the View with those changed data. Sounds simple ;)</p>
<p>Here is where the magic stops: I cannot get the changed data to appear in the View.</p>
<p><strong>Th... | [
{
"answer_id": 74510315,
"author": "geisterfurz007",
"author_id": 6707985,
"author_profile": "https://Stackoverflow.com/users/6707985",
"pm_score": 4,
"selected": true,
"text": "builder MaterialApp DecoratedBox import 'package:flutter/material.dart';\n\nvoid main() {\n runApp(Example())... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5914094/"
] |
74,510,050 | <p>I found this problem and wanted to try to execute, but got stuck:</p>
<p><em>Compile a program that allows you to determine how many days will be enough for 200 something if consumed on the first day 5 tons, but every next day 20% more than the previous day.</em></p>
<p>In Python, using loop operators, lists and
fun... | [
{
"answer_id": 74510124,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 0,
"selected": false,
"text": "def day(x):\n return x + (x * 20/100)\n\nx = 5\ncurrentSum = x\nday = 1\nwhile(currentSum < 200): # Loop until ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20556053/"
] |
74,510,061 | <p>I have a string that contains "..." in different places.
And a string array with the same amount of words as the number of "...".</p>
<p>I want to replace all occurrences of "..." with the words from the string array.</p>
<pre><code>let stringToReplace = "I want an ... that I get f... | [
{
"answer_id": 74510102,
"author": "Azad",
"author_id": 19120939,
"author_profile": "https://Stackoverflow.com/users/19120939",
"pm_score": 1,
"selected": false,
"text": "// stringToReplace = \"I want an ... that I get from the ...\"\n// stringArray = [\"apple\",\"shop\"]\n\n// result ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16932373/"
] |
74,510,080 | <pre><code>yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/@babel%2fhelper-builder-react-jsx: connect ECONNREFUSED 104.16.23.35:443".
info If you think this is a bug, please open a bug report with the information provide... | [
{
"answer_id": 74520148,
"author": "Pandapip1",
"author_id": 11628256,
"author_profile": "https://Stackoverflow.com/users/11628256",
"pm_score": 2,
"selected": false,
"text": "https://registry.npmjs.org/"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14123774/"
] |
74,510,097 | <p>Okay so, I'm pretty new to C.</p>
<p>I've been trying to figure out what exactly is the difference between <code>putch()</code> and <code>putchar()</code>?
I tried googling my answers but all I got was the same copy-pasted-like message that said:</p>
<blockquote>
<p><code>putchar()</code>: This function is used to p... | [
{
"answer_id": 74510231,
"author": "chqrlie",
"author_id": 4593267,
"author_profile": "https://Stackoverflow.com/users/4593267",
"pm_score": 2,
"selected": true,
"text": "putchar() <stdio.h> stdout putch() stdout fflush(stdout)"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20556094/"
] |
74,510,158 | <p>How can I initialize my operation with require arguments based on the use case?</p>
| [
{
"answer_id": 74510426,
"author": "Mark Ransom",
"author_id": 5987,
"author_profile": "https://Stackoverflow.com/users/5987",
"pm_score": 1,
"selected": false,
"text": "dynamic_cast"
},
{
"answer_id": 74510568,
"author": "Christopher Barrios Agosto",
"author_id": 1262584... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74510158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10473181/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.