qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,514,091 | <pre><code>au FileType python let b:coc_root_patterns = ['.git', '.env', 'venv', '.venv', 'setup.cfg', 'setup.py', 'pyrightconfig.json']
</code></pre>
<p>I guess not many people using this config with neovim.</p>
| [
{
"answer_id": 74519515,
"author": "Evans Benedict",
"author_id": 20560614,
"author_profile": "https://Stackoverflow.com/users/20560614",
"pm_score": 0,
"selected": false,
"text": "\"cookies-next\""
},
{
"answer_id": 74521768,
"author": "Yilmaz",
"author_id": 10262805,
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16786537/"
] |
74,514,097 | <p>how to stop fetching again image if already fetch ? I am using below plugin to check whether element come in view port or not. but issue is when I scroll down it fetch image which is correct behaviour but when I move up it hide the image again . If I move down again it again fetch the image ?</p>
<p>how to prevent f... | [
{
"answer_id": 74514595,
"author": "Ali Sattarzadeh",
"author_id": 11434567,
"author_profile": "https://Stackoverflow.com/users/11434567",
"pm_score": 3,
"selected": true,
"text": " const { ref, inView } = useInView({\n threshold: 0,\n triggerOnce:true,\n });\n"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19883277/"
] |
74,514,123 | <p>In the following code, I expect the result has 2 elements with same values("Item1","Item1") but the <code>result</code> has 1 element("Item1"):</p>
<pre><code>var list = new List<string>(){"Item1","Item1"};
var emptyList = new List<string>();
// I expect... | [
{
"answer_id": 74514161,
"author": "Loocid",
"author_id": 2987253,
"author_profile": "https://Stackoverflow.com/users/2987253",
"pm_score": 1,
"selected": false,
"text": "var result = list.Where(s => !emptyList.Contains(s));"
},
{
"answer_id": 74514222,
"author": "vivek nuna"... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1594487/"
] |
74,514,124 | <p>I am a beginner with React, JS, and I wrote a simple, ten-line program that tracks clicks in a web document and displays their positions in a text element.</p>
<p>It seems simple, and it works as intended, but only for seven clicks, after which the program locks up and will not execute any more, and won't display th... | [
{
"answer_id": 74514186,
"author": "Phil",
"author_id": 283366,
"author_profile": "https://Stackoverflow.com/users/283366",
"pm_score": 2,
"selected": false,
"text": "useEffect(() => {\n document.addEventListener(\"click\", handleClick);\n\n // cleanup\n return () => document.removeEv... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8560949/"
] |
74,514,126 | <p>Say I'm working on a project with two tickets. And has some dirty commits.</p>
<pre><code>commit4 do ticket2.2
commit3 do ticket1.2
commit2 do ticket2.1
commit1 do ticket1.1
</code></pre>
<p>Is it safe, if I reorder it to such like this <strong>with no conflict</strong>:</p>
<pre><code>commit4 do ticket2.2
commit3 d... | [
{
"answer_id": 74514137,
"author": "ti7",
"author_id": 4541045,
"author_profile": "https://Stackoverflow.com/users/4541045",
"pm_score": 1,
"selected": false,
"text": "git rebase git diff git checkout branchA # commits in order A\ngit diff HEAD~4.. > testA.patch # save outpu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16685520/"
] |
74,514,138 | <p>When I hover over my first div to reveal the full text, the second div's position changes to go behind that first div. I need the second div to remain where it is, with the text from the first div overlapping it.</p>
<p><strong>Demo:</strong> <a href="https://codepen.io/adivity/pen/OJEzoPm" rel="nofollow noreferrer"... | [
{
"answer_id": 74514163,
"author": "yo_sup",
"author_id": 20538807,
"author_profile": "https://Stackoverflow.com/users/20538807",
"pm_score": 1,
"selected": false,
"text": "position: absolute .container div:hover .container div:hover {\n overflow: visible;\n white-space: normal;\n z-i... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7180697/"
] |
74,514,158 | <p>I want to bind some fontawesome icons into my XAML via view model.
I have it as following</p>
<p>Models</p>
<pre><code> public string Icon { get; set; }
</code></pre>
<p>ViewModel</p>
<pre><code>new Models.Item {Icon="&#xf713;",},
</code></pre>
<p>XAML</p>
<pre><code><Label>
<Span Text="... | [
{
"answer_id": 74514163,
"author": "yo_sup",
"author_id": 20538807,
"author_profile": "https://Stackoverflow.com/users/20538807",
"pm_score": 1,
"selected": false,
"text": "position: absolute .container div:hover .container div:hover {\n overflow: visible;\n white-space: normal;\n z-i... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8765409/"
] |
74,514,177 | <pre><code> int velikostVstupu=0;
while(scanf("%d", vstup+velikostVstupu)!=EOF){
velikostVstupu++;
if(velikostVstupu>2000){
printf( "Nespravny vstup.\n");
return 0;
}
}
</code><... | [
{
"answer_id": 74514485,
"author": "Allan Wind",
"author_id": 9706,
"author_profile": "https://Stackoverflow.com/users/9706",
"pm_score": 1,
"selected": false,
"text": "scanf() 0 vstup == 2000 #include <stdio.h>\n#define MAX_VSTUP 2000\n\nint main(void) {\n int vstup[MAX_VSTUP];\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559319/"
] |
74,514,179 | <p>i want to round off a float to 3 dp in python with 00 in the end if the float don't have 3 dp
like 15.4 into 15.400
thank you.</p>
<p>programme:</p>
<pre><code>x=round(15.4)
</code></pre>
<p>result:
15.400</p>
| [
{
"answer_id": 74514203,
"author": "Code-Apprentice",
"author_id": 1440565,
"author_profile": "https://Stackoverflow.com/users/1440565",
"pm_score": 2,
"selected": false,
"text": "x = 15.4\nprint(f\"{x:.3f}\")\n"
},
{
"answer_id": 74514230,
"author": "muchhar bharat",
"au... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559358/"
] |
74,514,185 | <p>I have an abundance df with 63 species in the columns and a column with the plots from 1 to 6. The plot repeats 9 times because it represents the 9 subplots I have. With the first 18 (2 plots) rows and first 3 columns it looks like this:</p>
<pre><code>> taxa_ab
plot Sp1 Sp2
1 1 0 0
2 1 1 1 ... | [
{
"answer_id": 74514226,
"author": "TheMoonandSixpence",
"author_id": 19822406,
"author_profile": "https://Stackoverflow.com/users/19822406",
"pm_score": 1,
"selected": false,
"text": "group_by summarize group_by(plot) plot summarize df = df %>%\n group_by(plot) %>%\n summarize(Sp1 =... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16379362/"
] |
74,514,211 | <p>I would like to create a menu from multiple JSON files.</p>
<p>Please see the following: <a href="https://jsfiddle.net/varJSFiddle/teghqov0/10/" rel="nofollow noreferrer">https://jsfiddle.net/varJSFiddle/teghqov0/10/</a></p>
<p>The desired output would be a dynamic menu that looks something like:</p>
<pre><code><... | [
{
"answer_id": 74515203,
"author": "MAYUR SANCHETI",
"author_id": 12238257,
"author_profile": "https://Stackoverflow.com/users/12238257",
"pm_score": 1,
"selected": true,
"text": "$(document).ready(function() {\n \n // 1.) create an attributes (trait) array\n // 2.) loop through... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20545420/"
] |
74,514,265 | <p>This is something so simple but is giving me a big headache: how do I remove the top and bottom margin that seem to be automatically added in HTML text components?</p>
<pre><code><!DOCTYPE html>
<html>
<body>
<h1 style="background-color: red; margin: 0px; padding: 0px">Hello W... | [
{
"answer_id": 74515203,
"author": "MAYUR SANCHETI",
"author_id": 12238257,
"author_profile": "https://Stackoverflow.com/users/12238257",
"pm_score": 1,
"selected": true,
"text": "$(document).ready(function() {\n \n // 1.) create an attributes (trait) array\n // 2.) loop through... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5870333/"
] |
74,514,272 | <p>I want to sort the javascript object in order of another object that have keys and sorting order</p>
<p>I have an object let say</p>
<pre><code>sectionSorting = {
"metrics": "12",
"details": "3",
"portfolio": "5"
"backetst"... | [
{
"answer_id": 74515203,
"author": "MAYUR SANCHETI",
"author_id": 12238257,
"author_profile": "https://Stackoverflow.com/users/12238257",
"pm_score": 1,
"selected": true,
"text": "$(document).ready(function() {\n \n // 1.) create an attributes (trait) array\n // 2.) loop through... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17786978/"
] |
74,514,275 | <p>How do I find two max value in a list and sum up, not using rec, only can use <code>List.fold_left</code> or right and <code>List.map</code>?
I used <code>filter</code>, but it's not allowed, anyways I can replace the <code>filter</code>?</p>
<pre><code>let max a b =
if b = 0 then a
else if a > b then a
el... | [
{
"answer_id": 74514372,
"author": "Jeffrey Scofield",
"author_id": 821679,
"author_profile": "https://Stackoverflow.com/users/821679",
"pm_score": 2,
"selected": false,
"text": "List.fold_left List.filter List.map List.rev List.filter List.filter List.fold_left List.filter mod = mod 28 ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20354496/"
] |
74,514,296 | <p>I am trying to modify a given code and add an average to all the elements within a user given 2d array. I'm initializing the array <code>ave</code> to have the same elements of array <code>sum</code> and then displaying it outside the <code>for</code> loop to do the calculation.</p>
<pre class="lang-java prettyprint... | [
{
"answer_id": 74514372,
"author": "Jeffrey Scofield",
"author_id": 821679,
"author_profile": "https://Stackoverflow.com/users/821679",
"pm_score": 2,
"selected": false,
"text": "List.fold_left List.filter List.map List.rev List.filter List.filter List.fold_left List.filter mod = mod 28 ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19891678/"
] |
74,514,319 | <p>I'm using CKEditor for a form. In the admin it works fine, but when using it in the ModelForm of a CreateView the editor doesn't save data. As in the official docs, with this code:</p>
<pre><code>class EventForm(forms.ModelForm):
description = forms.CharField(widget=CKEditorWidget())
image = forms.ImageField... | [
{
"answer_id": 74514372,
"author": "Jeffrey Scofield",
"author_id": 821679,
"author_profile": "https://Stackoverflow.com/users/821679",
"pm_score": 2,
"selected": false,
"text": "List.fold_left List.filter List.map List.rev List.filter List.filter List.fold_left List.filter mod = mod 28 ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18415229/"
] |
74,514,341 | <p>I am building a Flutter web app using FirebaseAuth for authentication, and I am trying to figure out how to load the correct route when the user a) is authenticated, and b) the user refreshes the web page.</p>
<p>When the app loads, firebase gets initialised and then fetches the user's auth state, returning it about... | [
{
"answer_id": 74514398,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 3,
"selected": true,
"text": "onAuthStateChanged StreamBuilder"
},
{
"answer_id": 74514453,
"author": "Sayyid J",
"author_... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5133055/"
] |
74,514,366 | <p>I want to find all</p>
<pre><code><a href='https://example.com/'>
</code></pre>
<p>references in a large file and append the</p>
<pre><code>target='_blank' rel='noopener noreferrer'
</code></pre>
<p>option to the end of the tag, if it is missing.</p>
<p>Roughly, I did the following:</p>
<pre><code>re.sub(r'&l... | [
{
"answer_id": 74514430,
"author": "ti7",
"author_id": 4541045,
"author_profile": "https://Stackoverflow.com/users/4541045",
"pm_score": 0,
"selected": false,
"text": "from bs4 import BeautifulSoup\nsoup = BeautifulSoup(html_contents, \"html.parser\")\nsoup.find_all(\"a\")\n"
},
{
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9111676/"
] |
74,514,379 | <p>Suppose I have a 10x10 Python array, M. I would like to extract the 3x3 array with the values of the rows [2,3,5], and columns [2,3,5]. How do I do this? I would like to obtain the equivalent of M[0:3,0:3] but using coordinates [2,3,5] instead of [0,1,2].</p>
<p>I have tried M[[2,3,5],[2,3,5]], but this produces thr... | [
{
"answer_id": 74514430,
"author": "ti7",
"author_id": 4541045,
"author_profile": "https://Stackoverflow.com/users/4541045",
"pm_score": 0,
"selected": false,
"text": "from bs4 import BeautifulSoup\nsoup = BeautifulSoup(html_contents, \"html.parser\")\nsoup.find_all(\"a\")\n"
},
{
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559510/"
] |
74,514,393 | <p>I have created an app with Jetpack compose and expected the start up background is black or some other colors, not white. This is my themes.xml</p>
<pre><code><style name="Theme.AlluringScreenshot" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<item name="android:sta... | [
{
"answer_id": 74516235,
"author": "zjmo",
"author_id": 14507326,
"author_profile": "https://Stackoverflow.com/users/14507326",
"pm_score": 0,
"selected": false,
"text": "implementation 'androidx.compose.material3:material3:1.1.0-alpha02'\nimplementation 'com.google.android.material:mate... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12697321/"
] |
74,514,416 | <p>Is there any instance to use a filter with its own type? Right now I have this type:</p>
<pre><code>data Tree a = Leaf | Node a Color (Tree a) (Tree a) deriving (Show)
</code></pre>
<p>And I'd like to write something like:</p>
<pre><code>filter (>4) tree
</code></pre>
<p>If there is such an instance, can someone ... | [
{
"answer_id": 74514647,
"author": "Joseph Sible-Reinstate Monica",
"author_id": 7509065,
"author_profile": "https://Stackoverflow.com/users/7509065",
"pm_score": 3,
"selected": true,
"text": "base filter witherable Filterable instance Filterable Tree where\n mapMaybe _ Leaf = Leaf\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20343349/"
] |
74,514,458 | <p>i had found fews lines of code online where</p>
<p>1: filter data from "Mst SKU"
2: split the data into different multiple sheets
3: sheet should be added before "All_total"</p>
<p>step 1 and 2 are working good but step 3 the sheets are added after last worksheet in workbook</p>
<p>added the scre... | [
{
"answer_id": 74514647,
"author": "Joseph Sible-Reinstate Monica",
"author_id": 7509065,
"author_profile": "https://Stackoverflow.com/users/7509065",
"pm_score": 3,
"selected": true,
"text": "base filter witherable Filterable instance Filterable Tree where\n mapMaybe _ Leaf = Leaf\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559518/"
] |
74,514,537 | <p>I am using moment.js. I want to restrict the user son that he can only select a date which is from current date to 50 years before.
In short, i just want that user's date of birth cannot be more than 50 years. So, from the current date, only ranges before the 50 years should only be there.
How can i do so? please gu... | [
{
"answer_id": 74514590,
"author": "Shubhanu Sharma",
"author_id": 7012018,
"author_profile": "https://Stackoverflow.com/users/7012018",
"pm_score": 1,
"selected": false,
"text": "fiftyYearsBackDate = moment().subtract(50, \"years\")\n userDate = new Date()\n moment(userDate).isAfter(fif... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19350699/"
] |
74,514,540 | <pre><code>repeat = "y"
while repeat == "y":
#First get the two integers from the user
a = int(input("Enter the first integer: "))
b = int(input("Enter the second integer: "))
#Start the answer with 0
answer = 0
print("A", "B")
pri... | [
{
"answer_id": 74514590,
"author": "Shubhanu Sharma",
"author_id": 7012018,
"author_profile": "https://Stackoverflow.com/users/7012018",
"pm_score": 1,
"selected": false,
"text": "fiftyYearsBackDate = moment().subtract(50, \"years\")\n userDate = new Date()\n moment(userDate).isAfter(fif... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559638/"
] |
74,514,554 | <p>Here I have two tables:</p>
<p><strong>Table A</strong>: col_A, col_B, col_C, metric_1, metric_2, metric_3</p>
<p><strong>Table B</strong>: col_A, col_B, col_C, metric_X, metric_Y, metric_Z</p>
<p>I may need to put them in the report with col_A, col_B, col_C as <strong>shared filters</strong>. col_A, col_B, col_C ar... | [
{
"answer_id": 74514590,
"author": "Shubhanu Sharma",
"author_id": 7012018,
"author_profile": "https://Stackoverflow.com/users/7012018",
"pm_score": 1,
"selected": false,
"text": "fiftyYearsBackDate = moment().subtract(50, \"years\")\n userDate = new Date()\n moment(userDate).isAfter(fif... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5266554/"
] |
74,514,558 | <p>I had a slow performance of default save method in spring data jpa. So, i decided to make save method work asynchronously cause i did not need response in this specific method.</p>
<pre><code>@Repository
public interface WorkplaceRepo extends JpaRepository<Workplace, Long> {
@Async
public <S extends... | [
{
"answer_id": 74514590,
"author": "Shubhanu Sharma",
"author_id": 7012018,
"author_profile": "https://Stackoverflow.com/users/7012018",
"pm_score": 1,
"selected": false,
"text": "fiftyYearsBackDate = moment().subtract(50, \"years\")\n userDate = new Date()\n moment(userDate).isAfter(fif... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12510729/"
] |
74,514,579 | <p>My home.html in div where I called the { data } to display in HTML</p>
<pre><code><div id= "main">
<h1> DATA SCRAPPER</h1>
<h2>Header Data from html Page</h2>
{ data }
</div>
</code></pre>
<p>The local host shows
<a href="https://i.stack.imgur.com/9IDKg.png" ... | [
{
"answer_id": 74514601,
"author": "François Constant",
"author_id": 1000378,
"author_profile": "https://Stackoverflow.com/users/1000378",
"pm_score": 3,
"selected": true,
"text": "{{ data }}\n { data }\n"
},
{
"answer_id": 74514619,
"author": "sunil ghimire",
"author_id"... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18427291/"
] |
74,514,600 | <p>When I do a backup, we transfer It to another server and today I wanted to unzip to check the contents and It asks me for a password.</p>
<p>I checked the config files, documentation, but I cannot seem to find where to find It or how to set It</p>
<p>Package: spatie/laravel-backup</p>
| [
{
"answer_id": 74514802,
"author": "stefket",
"author_id": 2499739,
"author_profile": "https://Stackoverflow.com/users/2499739",
"pm_score": 2,
"selected": true,
"text": " /*\n * The password to be used for archive encryption.\n * Set to `null` to disable encryption.\n */\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3636359/"
] |
74,514,639 | <p>Hi I'm learning C through the Modern Approach book. For this program, we just need to input a first name and last name, and the program should return Last Name, First Initial.</p>
<pre><code>char *first [255];
char *last [255];
printf("Enter a first name and a last name: ");
while (getchar() == ' ');
s... | [
{
"answer_id": 74514802,
"author": "stefket",
"author_id": 2499739,
"author_profile": "https://Stackoverflow.com/users/2499739",
"pm_score": 2,
"selected": true,
"text": " /*\n * The password to be used for archive encryption.\n * Set to `null` to disable encryption.\n */\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559704/"
] |
74,514,676 | <p>I have removed the default React icon from the <code>index.html</code> file in create-react-app, but, it is still showing up.</p>
<p>Here is the code of <code>index.html</code> file</p>
<pre><code><!DOCTYPE html>
<html lang="en" class="h-full bg-gray-50">
<head>
<meta c... | [
{
"answer_id": 74514802,
"author": "stefket",
"author_id": 2499739,
"author_profile": "https://Stackoverflow.com/users/2499739",
"pm_score": 2,
"selected": true,
"text": " /*\n * The password to be used for archive encryption.\n * Set to `null` to disable encryption.\n */\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12045119/"
] |
74,514,686 | <p>I looked into the code of inverting binary tree in the internet. But I couldnt what it is doing. Its written in Python. I am a python programmer myself but couldnt understand it.</p>
<p>The snippet is as follows:</p>
<pre><code>def invertTree(root):
if root:
root.left, root.right = invertTree(root.right)... | [
{
"answer_id": 74514802,
"author": "stefket",
"author_id": 2499739,
"author_profile": "https://Stackoverflow.com/users/2499739",
"pm_score": 2,
"selected": true,
"text": " /*\n * The password to be used for archive encryption.\n * Set to `null` to disable encryption.\n */\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14673832/"
] |
74,514,700 | <p>I'm using input text field to input numbers only. I can't use input type="number" because i probably use the decimal or (.) characters</p>
<p>Example of expected result:</p>
<ol>
<li>whole numbers</li>
<li>numbers with decimal</li>
<li>restricted alphabets</li>
</ol>
<p>If possible, only decimal character ... | [
{
"answer_id": 74514776,
"author": "kgajjar20",
"author_id": 9212246,
"author_profile": "https://Stackoverflow.com/users/9212246",
"pm_score": 1,
"selected": true,
"text": "<input type=\"number\" required name=\"price\" min=\"0\" value=\"0\" step=\"any\">\n <input name=\"my_field\" patte... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20517886/"
] |
74,514,708 | <p>I have Dialogflow ES angent with a version.
With "Draft" version in Dialogflow, I can call curl command and get response like below.</p>
<pre><code>curl \
-H "Content-Type: application/json; charset=utf-8" \
-H "Authorization: Bearer <token>" \
-d "{\"queryInput\"... | [
{
"answer_id": 74529926,
"author": "Sakshi Gatyan",
"author_id": 15750473,
"author_profile": "https://Stackoverflow.com/users/15750473",
"pm_score": 2,
"selected": true,
"text": "https://dialogflow.googleapis.com/v2/projects/my-project-id/agent/environments/<env-name>/users/-/sessions/12... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13742758/"
] |
74,514,714 | <p>I have an array of accounts and there are two request one is to get domain and from that get data of account. if i have to get all accounts data how can i do it?</p>
<pre><code>accountsData = acounts.map(account => {
getDomain(account).then(domain => getData(domain))
})
Promises.all(accountsData).then(e =&... | [
{
"answer_id": 74529926,
"author": "Sakshi Gatyan",
"author_id": 15750473,
"author_profile": "https://Stackoverflow.com/users/15750473",
"pm_score": 2,
"selected": true,
"text": "https://dialogflow.googleapis.com/v2/projects/my-project-id/agent/environments/<env-name>/users/-/sessions/12... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20302103/"
] |
74,514,719 | <p>I have an <code>async</code> <code>axios</code> request:</p>
<pre><code> /*
|--------------------------------------------------------------------------
| Function : Get > User > Current Avatar
|--------------------------------------------------------------------------
*/
async function g... | [
{
"answer_id": 74529926,
"author": "Sakshi Gatyan",
"author_id": 15750473,
"author_profile": "https://Stackoverflow.com/users/15750473",
"pm_score": 2,
"selected": true,
"text": "https://dialogflow.googleapis.com/v2/projects/my-project-id/agent/environments/<env-name>/users/-/sessions/12... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15469002/"
] |
74,514,723 | <p>I have a dataset that looks something like this:</p>
<pre><code> id col1 col2 col3 col4
1 1 12 ABC Henry Alex 13 AB
2 2 123 12 David 344
3 3 John 567 Luke Huh8
4 4 123344567 abc 123 Paul 98
5 5 1345677. Sam 17df Tom
</code></pre>
<p><strong>Goal</strong>... | [
{
"answer_id": 74529926,
"author": "Sakshi Gatyan",
"author_id": 15750473,
"author_profile": "https://Stackoverflow.com/users/15750473",
"pm_score": 2,
"selected": true,
"text": "https://dialogflow.googleapis.com/v2/projects/my-project-id/agent/environments/<env-name>/users/-/sessions/12... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203841/"
] |
74,514,734 | <p>I want to fit parent div height to fit it's child</p>
<p>that means I want height of parent div to fit red color</p>
<p>and green part will hide</p>
<p><a href="https://jsfiddle.net/zfpwb54L/" rel="nofollow noreferrer">https://jsfiddle.net/zfpwb54L/</a></p>
<pre><code><style>
.container {
margin-left: auto;... | [
{
"answer_id": 74529926,
"author": "Sakshi Gatyan",
"author_id": 15750473,
"author_profile": "https://Stackoverflow.com/users/15750473",
"pm_score": 2,
"selected": true,
"text": "https://dialogflow.googleapis.com/v2/projects/my-project-id/agent/environments/<env-name>/users/-/sessions/12... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9779942/"
] |
74,514,750 | <p>How can I print all the alphabet characters (A to Z, a to z)?</p>
<p>I did the following. It lets me print all the characters from A-Z and a-z but the problem is that I get the in-between ASCII characters that I want to filter.<br />
CX is expected to be set to 52 in a working program.</p>
<pre><code>ORG 100h ... | [
{
"answer_id": 74537228,
"author": "Sep Roland",
"author_id": 3144770,
"author_profile": "https://Stackoverflow.com/users/3144770",
"pm_score": 2,
"selected": true,
"text": "CMP AX, DX\nCMP DX, 5Bh\nCMP DX, 60h\n MOV DL, 41h JG UPPERCASE \n\nUPPERCASE:\n ORG 256\n mov ax, 0B800h ; ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551534/"
] |
74,514,779 | <p>This may be an extremely stupid question, but here goes:</p>
<p>Why can Dafny very this:</p>
<pre><code>var arr := new int[2];
arr[0], arr[1] := -1, -2;
assert exists k :: 0 <= k < arr.Length && arr[k] < 0;
</code></pre>
<p>but not this:</p>
<pre><code>var arr := new int[2];
arr[0], arr[1] := -1, 2;... | [
{
"answer_id": 74515123,
"author": "James Wilcox",
"author_id": 438267,
"author_profile": "https://Stackoverflow.com/users/438267",
"pm_score": 3,
"selected": true,
"text": "arr[k] arr[k] arr[0] arr[1] arr[k] assert arr[0] < 0;\n arr[0] arr[0]"
},
{
"answer_id": 74618566,
"au... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13484416/"
] |
74,514,782 | <p>Hi everyone I am new to heroku and deploying websites online in general is pretty new to me.
Everytime I do a heroku push in the cmd line client, I get the error message that says : Error: Cannot find module './../.env' .</p>
<p>I have a .env file that contains my connection string for mongoDB and a secret key. I do... | [
{
"answer_id": 74514868,
"author": "Kasra Karami",
"author_id": 8425590,
"author_profile": "https://Stackoverflow.com/users/8425590",
"pm_score": 1,
"selected": false,
"text": "Reveal Config Vars"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19036311/"
] |
74,514,800 | <p><a href="https://i.stack.imgur.com/6GCck.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I've been having problem importing another data from another table in-order to create a new record of log-in</p>
<pre><code>ConnectToDB()
sql = "insert into monitoring (id_num, fname, lname, status, f... | [
{
"answer_id": 74514868,
"author": "Kasra Karami",
"author_id": 8425590,
"author_profile": "https://Stackoverflow.com/users/8425590",
"pm_score": 1,
"selected": false,
"text": "Reveal Config Vars"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19101467/"
] |
74,514,801 | <p>This is the old way of calling <code>NavigationLink</code> on <code>Button</code>s</p>
<pre><code>struct ContentView: View {
@State private var selection: String? = nil
var body: some View {
NavigationView {
VStack {
NavigationLink(destination: View1(), tag: "tag1&quo... | [
{
"answer_id": 74514868,
"author": "Kasra Karami",
"author_id": 8425590,
"author_profile": "https://Stackoverflow.com/users/8425590",
"pm_score": 1,
"selected": false,
"text": "Reveal Config Vars"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10349656/"
] |
74,514,826 | <p>My DataFrame:</p>
<pre><code>Col X Col Y ID Value
A a 'r' 3
A a 'b' 2
A a 'c' 1
B b 'd' 5
B b 's' 6
B b 'd' 7
</code></pre>
<p>Output required:</p>
<pre><code>Col X Col Y Out
A ... | [
{
"answer_id": 74514872,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": true,
"text": "GroupBy.apply df['ID'] = df['ID'].str.strip(\"'\")\n\ndf1 = (df.groupby(['Col X', 'Col Y'])[['ID','Value']]\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17900863/"
] |
74,514,840 | <p>Please refer this
<a href="https://i.stack.imgur.com/qRA5K.png" rel="nofollow noreferrer">Code input</a></p>
<p>This code doesn't give the expected output</p>
<pre><code>class User{
protected $name;
protected $age;
public function __construct($name, $age){
$this->name = $name;... | [
{
"answer_id": 74514921,
"author": "Ken Lee",
"author_id": 11854986,
"author_profile": "https://Stackoverflow.com/users/11854986",
"pm_score": 2,
"selected": false,
"text": "parent::__construct($name, $age);\n added a line in the pay method <?php\nclass User{\n protected $name;\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16098324/"
] |
74,514,851 | <p>Basically I am using react-router(version 5) to pass data, however I can't access the state that I passed. Here is the code where it routes from:</p>
<pre><code>export default function MarketsList(props) {
const history = useHistory();
function changePage(sym, id) {
history.push({ pathname: `/${sym}`, state:... | [
{
"answer_id": 74514921,
"author": "Ken Lee",
"author_id": 11854986,
"author_profile": "https://Stackoverflow.com/users/11854986",
"pm_score": 2,
"selected": false,
"text": "parent::__construct($name, $age);\n added a line in the pay method <?php\nclass User{\n protected $name;\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10969500/"
] |
74,514,880 | <p>I want to change the label of the "No Filter" option to "Sin Filtro" like an spanish translation. I only know about the FilterMatchMode from FilterService to change the label of the filter match modes, like that:</p>
<pre><code>export const FilterMatch = [
{ label: "Empieza con", va... | [
{
"answer_id": 74514921,
"author": "Ken Lee",
"author_id": 11854986,
"author_profile": "https://Stackoverflow.com/users/11854986",
"pm_score": 2,
"selected": false,
"text": "parent::__construct($name, $age);\n added a line in the pay method <?php\nclass User{\n protected $name;\n ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19877806/"
] |
74,514,886 | <p>I'm trying to find out if my use of 'const' is appropriate given the behavior I am seeing.</p>
<pre><code>function showInstructions() {
const againText = (clickCounter > 0) ? "again " : "";
my2DContext.fillText("Click " + againText + "to try to do the thing", myCa... | [
{
"answer_id": 74514948,
"author": "Bergi",
"author_id": 1048572,
"author_profile": "https://Stackoverflow.com/users/1048572",
"pm_score": 2,
"selected": true,
"text": "clickCounter var let function"
},
{
"answer_id": 74515032,
"author": "Unclebigay",
"author_id": 7953084... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3669691/"
] |
74,514,914 | <p><strong>My "ListView" not showing inside "TabBar".</strong></p>
<p>drive.google.com/file/d/1MLB7oizJ468V1SmCO_IsjL6OaoGhUAPd/… ----- <strong>List Page Code</strong>
drive.google.com/file/d/1d-iRa14-DupdLo3QdHd_iCHFkGi-_HD6/… <strong>TabBar Code</strong></p>
<p><strong>"TabBar" Section c... | [
{
"answer_id": 74514948,
"author": "Bergi",
"author_id": 1048572,
"author_profile": "https://Stackoverflow.com/users/1048572",
"pm_score": 2,
"selected": true,
"text": "clickCounter var let function"
},
{
"answer_id": 74515032,
"author": "Unclebigay",
"author_id": 7953084... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11635379/"
] |
74,514,936 | <pre><code> let obj1 ={
fName : 'Ayush',
lName : 'Singh',
city: 'Asansol',
getName : function(){
console.log(`I am ${this.fName} ${this.lName} from ${this.city}`)
}
}
let obj2 = {
fName : 'Aman'
}
obj2.__proto__ = obj1;
console.log(obj1.getName())
obj2.getName()
console.lo... | [
{
"answer_id": 74514948,
"author": "Bergi",
"author_id": 1048572,
"author_profile": "https://Stackoverflow.com/users/1048572",
"pm_score": 2,
"selected": true,
"text": "clickCounter var let function"
},
{
"answer_id": 74515032,
"author": "Unclebigay",
"author_id": 7953084... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559948/"
] |
74,514,966 | <p>I have an excel table (sample.xlsx) which contains 3 sheets ('Sheet1','Sheet2','Sheet3').
Now I have read all the sheets and combine them into one dataframe.</p>
<pre class="lang-py prettyprint-override"><code>import pandas as pd
data_df = pd.concat(pd.read_excel("sample.xlsx", header=None, index_col=None,... | [
{
"answer_id": 74516598,
"author": "Rabinzel",
"author_id": 15521392,
"author_profile": "https://Stackoverflow.com/users/15521392",
"pm_score": 2,
"selected": true,
"text": "data_df mapping = dict(enumerate('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))\n AA, AB,...AZ import itertools\nimport numpy as n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14636214/"
] |
74,514,976 | <p>I have a dataframe like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Value.</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>08/08/2009</td>
</tr>
<tr>
<td>A</td>
<td>09/12/2021</td>
</tr>
<tr>
<td>A</td>
<td>05/10/2022</td>
</tr>
<tr>
<td>A</td>
<td>06/09/2022</td>
... | [
{
"answer_id": 74516598,
"author": "Rabinzel",
"author_id": 15521392,
"author_profile": "https://Stackoverflow.com/users/15521392",
"pm_score": 2,
"selected": true,
"text": "data_df mapping = dict(enumerate('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))\n AA, AB,...AZ import itertools\nimport numpy as n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19606332/"
] |
74,514,985 | <p>I'm trying to calculate the number of rolls it takes to go broke, and the amount of rolls that would have left you with the most money. The program is split into several functions outside of main (not my choice) so that makes it more difficult for me.</p>
<p>I'm very new to python, and this is an exercise for school... | [
{
"answer_id": 74516598,
"author": "Rabinzel",
"author_id": 15521392,
"author_profile": "https://Stackoverflow.com/users/15521392",
"pm_score": 2,
"selected": true,
"text": "data_df mapping = dict(enumerate('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))\n AA, AB,...AZ import itertools\nimport numpy as n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,514,987 | <p>I'm using ReactJs to build a video call app.
I also up agora-token-service into railway. Testing is oke. But when i try to fetch data, it's has a ploblem, I also tried to fix it but it didn't work. mode: 'no-cors also didn't work</p>
<p><a href="https://i.stack.imgur.com/zBIKQ.png" rel="nofollow noreferrer"><img src... | [
{
"answer_id": 74516598,
"author": "Rabinzel",
"author_id": 15521392,
"author_profile": "https://Stackoverflow.com/users/15521392",
"pm_score": 2,
"selected": true,
"text": "data_df mapping = dict(enumerate('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))\n AA, AB,...AZ import itertools\nimport numpy as n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74514987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559916/"
] |
74,515,037 | <p>I am trying to filter out groups based on the condition that the group does not contain a Submit or Cancel. Please see the following dataset:</p>
<pre><code>df <- structure(list(
session = c(1, 1, 1, 2, 2, 2, 2, 3, 3, 3),
event = c("pg1", "click1", "submit", "pg2", &qu... | [
{
"answer_id": 74516598,
"author": "Rabinzel",
"author_id": 15521392,
"author_profile": "https://Stackoverflow.com/users/15521392",
"pm_score": 2,
"selected": true,
"text": "data_df mapping = dict(enumerate('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))\n AA, AB,...AZ import itertools\nimport numpy as n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2845095/"
] |
74,515,050 | <p>I have this component called <strong>SpecialComp</strong> that is being passed as a prop to <strong>MyComp</strong> . My question is how to pass all of the props from <strong>SpecialComp</strong> (color, size, weight) to MyComp so then I can override the attributes set in MyComp? In other words how can I have access... | [
{
"answer_id": 74515173,
"author": "Unclebigay",
"author_id": 7953084,
"author_profile": "https://Stackoverflow.com/users/7953084",
"pm_score": 0,
"selected": false,
"text": "import React from \"react\";\n\nexport const App = () => {\n const [specialProps, setSpecialProps] = useState({\... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5245070/"
] |
74,515,060 | <p>AFAIK, data member of enclosing class are also visible in nested class.</p>
<pre><code>struct A {
struct B {
int arr[n]; // how come n is not visible here, but it is visible in next statement.
int x = n;
};
static const int n = 5;
};
</code></pre>
<p><a href="https://godbolt.org/z/zvrhq... | [
{
"answer_id": 74515135,
"author": "Jason Liam",
"author_id": 12002570,
"author_profile": "https://Stackoverflow.com/users/12002570",
"pm_score": 3,
"selected": true,
"text": "int x = n; int arr[n]; n int arr[n]; n struct A {\n struct B {\n \n int x = n;\n//-----------... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20038708/"
] |
74,515,061 | <p>Assume I have the following domain object:</p>
<pre><code>public class MyObj {
private Long id;
private Long relationId;
private Long seq;
// getters
}
</code></pre>
<p>There is a list <code>List<MyObj> list</code>. I want to create a Map by grouping the data by <code>relationId</code> (*k... | [
{
"answer_id": 74515135,
"author": "Jason Liam",
"author_id": 12002570,
"author_profile": "https://Stackoverflow.com/users/12002570",
"pm_score": 3,
"selected": true,
"text": "int x = n; int arr[n]; n int arr[n]; n struct A {\n struct B {\n \n int x = n;\n//-----------... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8230537/"
] |
74,515,066 | <p>But getting this error</p>
<pre><code>Error in setGeneric("+", function(x, y) standardGeneric("+")) :
'+' dispatches internally; methods can be defined, but the generic function is implicit, and cannot be changed.
Execution halted
</code></pre>
<p>after running the below code</p>
<pre><code>&... | [
{
"answer_id": 74515135,
"author": "Jason Liam",
"author_id": 12002570,
"author_profile": "https://Stackoverflow.com/users/12002570",
"pm_score": 3,
"selected": true,
"text": "int x = n; int arr[n]; n int arr[n]; n struct A {\n struct B {\n \n int x = n;\n//-----------... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20485468/"
] |
74,515,105 | <p>Suppose i have package named src</p>
<pre><code> src
- __init__.py
- app.py
</code></pre>
<p>__init__.py</p>
<pre><code> ___version__ = '0.1.0'
import os
ENTRY_DIR = os.path.dirname(__file__)
BASE_DIR = os path.dirname(ENTRY_DIR)
DATA_DIR = os.path.join(BASE_DIR, 'data')
</co... | [
{
"answer_id": 74515538,
"author": "Raida",
"author_id": 13763683,
"author_profile": "https://Stackoverflow.com/users/13763683",
"pm_score": 3,
"selected": true,
"text": "__init__.py cfg.py # cfg.py\n\nimport os\n\nENTRY_DIR = os.path.dirname(__file__)\nBASE_DIR = os path.dirname(ENTRY_D... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12108866/"
] |
74,515,149 | <p>We are running AKS multi cluster environments with high uptime SLA's. We are more causious about
tier of cluster where we don't know on which our clusters are running.
Can anyone suggest where we can verify the current tier?
Suggest where we can change that from free to paid service either in portal or CLI?</p>
<p>S... | [
{
"answer_id": 74515729,
"author": "Swarna Anipindi",
"author_id": 20264791,
"author_profile": "https://Stackoverflow.com/users/20264791",
"pm_score": 2,
"selected": true,
"text": " az aks get-credentials --resource-group <resourcegroup Name> --name <cluster Name> az aks show -n <Clus... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20288005/"
] |
74,515,204 | <p>A third-party js script is installed on the site, which adds a form to html. Iframe is not used.</p>
<p>I want to add a new class for an element that is generated by a third-party script, but nothing happens.
Please help me understand why.</p>
<pre><code>var elem = document.querySelector('.CustomAccountField_689153'... | [
{
"answer_id": 74515729,
"author": "Swarna Anipindi",
"author_id": 20264791,
"author_profile": "https://Stackoverflow.com/users/20264791",
"pm_score": 2,
"selected": true,
"text": " az aks get-credentials --resource-group <resourcegroup Name> --name <cluster Name> az aks show -n <Clus... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560112/"
] |
74,515,213 | <p>I have a ListView builder in my Flutter app that does some heavy computation for each item in the list, so it can take some time to populate new elements. The computation is all synchronous code. I'd like to add a spinner while the list is adding new elements, but don't want to change all the computation code. So I ... | [
{
"answer_id": 74515729,
"author": "Swarna Anipindi",
"author_id": 20264791,
"author_profile": "https://Stackoverflow.com/users/20264791",
"pm_score": 2,
"selected": true,
"text": " az aks get-credentials --resource-group <resourcegroup Name> --name <cluster Name> az aks show -n <Clus... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/968133/"
] |
74,515,214 | <p>I am very new to flutter. I have to make an app that send the device location every 10 seconds, even if app is minimised and gets killed by the user.
After that data i have to make a socket connection and a http post if(socket fails).</p>
<p>The app should must work with both Android and IOS.
Is it possible to do in... | [
{
"answer_id": 74515729,
"author": "Swarna Anipindi",
"author_id": 20264791,
"author_profile": "https://Stackoverflow.com/users/20264791",
"pm_score": 2,
"selected": true,
"text": " az aks get-credentials --resource-group <resourcegroup Name> --name <cluster Name> az aks show -n <Clus... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13572964/"
] |
74,515,224 | <p>I have PageView with photo, and i want open photos from my PageView to fullscreen, when i click on photo, how can i make it?</p>
<p>my code:</p>
<pre><code>class BannerItem extends StatelessWidget {
final AppBanner appBanner;
const BannerItem({Key? key, required this.appBanner}) : super(key: key);
@override
... | [
{
"answer_id": 74515729,
"author": "Swarna Anipindi",
"author_id": 20264791,
"author_profile": "https://Stackoverflow.com/users/20264791",
"pm_score": 2,
"selected": true,
"text": " az aks get-credentials --resource-group <resourcegroup Name> --name <cluster Name> az aks show -n <Clus... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20320364/"
] |
74,515,230 | <p>I have installed <code>Spark 3.3.1</code> and it was running previously with both <code>spark-shell</code> and <code>pyspark</code> commands. But after I installed <code>Hadoop 3.3.1</code> it seems that <code>pyspark</code> command doesn't work properly and this is the result of running that:</p>
<pre><code>C:\User... | [
{
"answer_id": 74534219,
"author": "Matt Andruff",
"author_id": 13535120,
"author_profile": "https://Stackoverflow.com/users/13535120",
"pm_score": 0,
"selected": false,
"text": "echo $PATH"
},
{
"answer_id": 74534445,
"author": "OneCricketeer",
"author_id": 2308683,
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551429/"
] |
74,515,266 | <p>I am using OpenSSL to encode base64 string.</p>
<p>On windows:</p>
<pre><code>echo -n "1" | openssl.exe base64
MQo=
</code></pre>
<p>On Debian:</p>
<pre><code>echo -n "1" | openssl base64
MQ==
</code></pre>
<p>I get <code>MQo=</code> from Windows, but <code>MQ==</code> from linux.</p>
<p>Does an... | [
{
"answer_id": 74534219,
"author": "Matt Andruff",
"author_id": 13535120,
"author_profile": "https://Stackoverflow.com/users/13535120",
"pm_score": 0,
"selected": false,
"text": "echo $PATH"
},
{
"answer_id": 74534445,
"author": "OneCricketeer",
"author_id": 2308683,
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10244606/"
] |
74,515,285 | <p>In python, you can write A filter and assign a value to a new column by using <strong>df.loc[df["A"].isin([1,2,3]),"newColumn"] ="numberType"</strong>. How does this work in pyspark?</p>
| [
{
"answer_id": 74534219,
"author": "Matt Andruff",
"author_id": 13535120,
"author_profile": "https://Stackoverflow.com/users/13535120",
"pm_score": 0,
"selected": false,
"text": "echo $PATH"
},
{
"answer_id": 74534445,
"author": "OneCricketeer",
"author_id": 2308683,
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19741304/"
] |
74,515,304 | <p>In my models.py file I have a property method which returns a value and I need to store that value in the database field.</p>
<p>`</p>
<pre><code>class bug(models.Model):
......
.......
id_of_bug = models.CharField(max_length=20, blank= False, null= False)
@property
def bug_id(self):
... | [
{
"answer_id": 74534219,
"author": "Matt Andruff",
"author_id": 13535120,
"author_profile": "https://Stackoverflow.com/users/13535120",
"pm_score": 0,
"selected": false,
"text": "echo $PATH"
},
{
"answer_id": 74534445,
"author": "OneCricketeer",
"author_id": 2308683,
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20529531/"
] |
74,515,327 | <p>I am working on an audio related project, and is there a way to know if an audio URL is a streaming(radio) audio programmatically? Like from the header information or somewhere else. I am trying to apply some filter or process differently based on if the audio is a streaming(radio) audio or not.</p>
| [
{
"answer_id": 74596439,
"author": "Brad",
"author_id": 362536,
"author_profile": "https://Stackoverflow.com/users/362536",
"pm_score": 0,
"selected": false,
"text": "Content-Length Content-Length Content-Length MAX_INT Server"
}
] | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9426164/"
] |
74,515,370 | <p>I have a set of small images stacked on the side and a larger version of the image on the right. I want the large image to change when I click on the small image but the problem is I could achieve this using vanilla JavaScript but I am unable to do that in reactjs.</p>
<p>Screenshot of how it looks is <a href="https... | [
{
"answer_id": 74515530,
"author": "Nury Amandurdyev",
"author_id": 14652434,
"author_profile": "https://Stackoverflow.com/users/14652434",
"pm_score": 1,
"selected": false,
"text": "useState <div class=\"small-images\">\n <img src='1' onClick={handleClick}/>\n <img src='2' onClick={... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14595121/"
] |
74,515,388 | <p>my code is not linking with my css</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<link href="main.css" rel="slylesheet" text="text/css">
<title></title>
</head>
<body>
<header>
<div class="container">
... | [
{
"answer_id": 74515446,
"author": "MAYUR SANCHETI",
"author_id": 12238257,
"author_profile": "https://Stackoverflow.com/users/12238257",
"pm_score": 0,
"selected": false,
"text": ".container {\n width: 80%;\n margin: 0 auto;\n}\nheader {\n background: rgb(51, 146, 153);\n}\nli ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560294/"
] |
74,515,399 | <p>I have a <code>List<List<string>> Full</code>, build up by</p>
<pre><code>for(...){
Full.Add(new List<string>());
Full[ListIndex].Add(string1);
Full[ListIndex].Add(string2);
Full[ListIndex].Add(string3);
...
}
</code></pre>
<p>can be read by</p>
<pre><code>string2 = Full[sublistX][element1];
</code... | [
{
"answer_id": 74515461,
"author": "Eldar",
"author_id": 12354911,
"author_profile": "https://Stackoverflow.com/users/12354911",
"pm_score": 2,
"selected": false,
"text": "var filteredList = Full.Where(strs => strs.Any(s=> Strings.Contains(s))).ToList();\n Full Strings"
},
{
"ans... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17754180/"
] |
74,515,444 | <p>Given a currency table I need to find the latest record of conversion rate which is less than given particular date</p>
<p><strong>Input table structure</strong> given below:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">id</th>
<th style="text-align: center;"... | [
{
"answer_id": 74515788,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 1,
"selected": false,
"text": "DENSE_RANK() 8.0+ WITH t AS\n(\n SELECT t.*, DENSE_RANK() OVER (PARTITION BY baseCur, Curr ORDER BY date DESC... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3245676/"
] |
74,515,486 | <p>I have the following prediction model:</p>
<pre><code>library(tidymodels)
data(ames)
set.seed(4595)
data_split <- initial_split(ames, strata = "Sale_Price", prop = 0.75)
ames_train <- training(data_split)
ames_test <- testing(data_split)
rec <- recipe(Sale_Price ~ ., data = ames_train)
nor... | [
{
"answer_id": 74515788,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 1,
"selected": false,
"text": "DENSE_RANK() 8.0+ WITH t AS\n(\n SELECT t.*, DENSE_RANK() OVER (PARTITION BY baseCur, Curr ORDER BY date DESC... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8391698/"
] |
74,515,514 | <pre><code>"caprometheusip" : {
"id" : 11,
"key" : "caprometheusip",
"value" : "[fd02::100:ffff:ffff:ffff:e0]",
"description" : "",
"createTime" : 1660630139000,
"updateTime" : 1644822... | [
{
"answer_id": 74515788,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 1,
"selected": false,
"text": "DENSE_RANK() 8.0+ WITH t AS\n(\n SELECT t.*, DENSE_RANK() OVER (PARTITION BY baseCur, Curr ORDER BY date DESC... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18842940/"
] |
74,515,536 | <p>I have a dataframe such as :</p>
<pre><code> COL1 COL2 COL3 COL4 COL5 COL6 COL7
1 Sp1-2 Sp1-2 Sp3_2-54 Sp3-2 Sp3-2 Sp3-2 SP9-43
2 Sp5-1 Sp5-2 Sp2-4 Sp9-2 Sp10-3 SP9-90 NA
3 Sp_7-3 Sp_7-3 NA SP6-56 Sp2-7 SP3-3 NA
</code></pre>
<p>And I would simply like to merge columns w... | [
{
"answer_id": 74515788,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 1,
"selected": false,
"text": "DENSE_RANK() 8.0+ WITH t AS\n(\n SELECT t.*, DENSE_RANK() OVER (PARTITION BY baseCur, Curr ORDER BY date DESC... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12559770/"
] |
74,515,573 | <p>Something has piqued my curiosity recently..</p>
<p><strong>Why</strong> is the <code>Enumerable.Any(Func<TSource, bool> predicate)</code> method <strong>so much slower</strong> than manual foreach, <strong>when they do the same thing?</strong></p>
<p>I've been messing with some benchmarks and thought of this.... | [
{
"answer_id": 74520037,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 4,
"selected": true,
"text": "List<T> IEnumerable<T> List<T>.Enumerator callvirt struct List<T>.Enumerator Enumerable.Any foreach IEnumerable pu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4317797/"
] |
74,515,610 | <p>I know this topic is just all over the place, and I was sincerely attempting for quite a lot of hours, and without shred of success.</p>
<p>My issue is that my git doesn't recognize my <strong>own</strong> repository. It provides me with the following error on any attempt to perform pull/push:</p>
<pre><code>remote:... | [
{
"answer_id": 74520037,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 4,
"selected": true,
"text": "List<T> IEnumerable<T> List<T>.Enumerator callvirt struct List<T>.Enumerator Enumerable.Any foreach IEnumerable pu... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9517800/"
] |
74,515,611 | <p>In addition to this <a href="https://stackoverflow.com/questions/74499675/how-to-get-a-specific-value-from-an-array-of-object-and-store-them-individually/74509632?noredirect=1#comment131535317_74509632">question</a>
I am trying to map individually a state to another state to store the <code>amountToPay</code> object... | [
{
"answer_id": 74515982,
"author": "Evgeny",
"author_id": 7309962,
"author_profile": "https://Stackoverflow.com/users/7309962",
"pm_score": 2,
"selected": true,
"text": "serviceItem UUID nanoid Date.now() const [amountToPay, setAmountToPay] = useState([]); serviceItem \nconst handleChang... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542465/"
] |
74,515,613 | <p>I'm selling hand-painted artwork on a WooCommerce store. Since It's hand-painted artwork,
The product quantity is limited to 1 (Limit purchases to 1 item per order)</p>
<p>I have created product variations for the artwork frame as below :</p>
<p>Variation 1: Wooden Frame (stock qty = 1 in variations)
Variation 2: ac... | [
{
"answer_id": 74515982,
"author": "Evgeny",
"author_id": 7309962,
"author_profile": "https://Stackoverflow.com/users/7309962",
"pm_score": 2,
"selected": true,
"text": "serviceItem UUID nanoid Date.now() const [amountToPay, setAmountToPay] = useState([]); serviceItem \nconst handleChang... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/369411/"
] |
74,515,635 | <p>it's simple html tag related problem, I guess.</p>
<p>I want to share few lines of code in my blog, and I want to write <code><h1> heading</h1></code>. visitors must see <code><h1> heading </h1></code>, and not just <strong>heading</strong>. do I need to use JavaScript for this, please help m... | [
{
"answer_id": 74515742,
"author": "Bittar",
"author_id": 10535461,
"author_profile": "https://Stackoverflow.com/users/10535461",
"pm_score": 1,
"selected": false,
"text": "<h1><h1>heading;/h1></h1>\n"
},
{
"answer_id": 74515781,
"author": "Shivangam Soni",
"auth... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548111/"
] |
74,515,636 | <p>i have been suffering to get the items' data listed according to their categories</p>
<p>i don't know what am I doing wrong.</p>
<p>so basically, I have data coming from a bearer token API and it is listed successfully on the screen but I want as a second step to list according to their categories. there are five ca... | [
{
"answer_id": 74515739,
"author": "ColdDarkness",
"author_id": 20480318,
"author_profile": "https://Stackoverflow.com/users/20480318",
"pm_score": 0,
"selected": false,
"text": "const categories = ['Cat1', 'Cat2', 'Cat3'] // Since you hardcode it anyway, its fine to have a hardcoded arr... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15208666/"
] |
74,515,645 | <p>I would like to turn float integers (123.0) into ints (123).</p>
<p>What I would like the function to do:</p>
<p>Input: 2.1
Output: Exception, cannot turn float into int</p>
<p>Input: 2.0
Output: 2</p>
<p>Using int() on a float seems to just be math.floor() and that is not what I'm looking for.</p>
| [
{
"answer_id": 74515736,
"author": "Guy",
"author_id": 5168011,
"author_profile": "https://Stackoverflow.com/users/5168011",
"pm_score": 2,
"selected": false,
"text": "int() float def convert(num):\n if num == int(num):\n return int(num)\n raise Exception('Cannot turn float ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20488228/"
] |
74,515,699 | <p>I have a column in my Dataframe that contains datetime.time() values.
example :</p>
<pre><code>--> df.loc[0,'tat']
output: datetime.time(0, 21, 4)
</code></pre>
<p>I want to write multiple if conditions with this column.
example:</p>
<pre><code>--> if df.loc[0,'tat'] < 2:
df.loc[0,'SLA'] = 'less than 2... | [
{
"answer_id": 74515724,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": false,
"text": "hour cut hours = pd.to_datetime(df['tat'].astype(str)).dt.hour\n\nhours = df['tat'].apply(lambda x: x.hour)\n\ndf['S... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12435792/"
] |
74,515,717 | <p>I have a problem to write code:
I have a state</p>
<pre><code>const [theme, setTheme] = useState({ mode: "LIGHT" });
</code></pre>
<p>and I want to made a toggle function that change mode to 'DARK' and change DARK to 'LIGHT' by double click. how can I write it?</p>
<pre><code>import { createContext, useCon... | [
{
"answer_id": 74515751,
"author": "Fabian Strathaus",
"author_id": 17298437,
"author_profile": "https://Stackoverflow.com/users/17298437",
"pm_score": 0,
"selected": false,
"text": "const [theme, setTheme] = useState(\"LIGHT\");\n\n...\n\nsetTheme(theme === DARK ? \"LIGHT\" : DARK);\n"
... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12798431/"
] |
74,515,720 | <p>The code posted at the bottom does a nice job of filling in a dataframe, using package <code>tidyr</code>, so that all ID's end up with the same number of periods, in the case of period defined as number of months ("Period_1" in the below code). Base dataframe <code>testDF</code> has ID of 1 with 5 periods... | [
{
"answer_id": 74515971,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 2,
"selected": false,
"text": "by strsplit data.frame merge ml <- max(with(testDF, tapply(ID, ID, length))) ## get max. period length\n\nby(testDF,... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19657749/"
] |
74,515,722 | <p>I have a path like the one in the image shown</p>
<p><a href="https://i.stack.imgur.com/K4Iit.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K4Iit.png" alt="path" /></a></p>
<p>When I do this match query, there is no match returned, which is strange:</p>
<pre><code>match (a:A)--(b:B)--(c:C)--(d:D... | [
{
"answer_id": 74515971,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 2,
"selected": false,
"text": "by strsplit data.frame merge ml <- max(with(testDF, tapply(ID, ID, length))) ## get max. period length\n\nby(testDF,... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1817860/"
] |
74,515,748 | <p>I was facing a problem for sometime, that was I'm unable to clear cache using RTK query.
I tried in various ways but cache data is not clear.</p>
<p>I used invalidatesTag in my mutation query and it called the api instantly. But in this case I want to refetch multiple api again, but not from any rtk query or mutatio... | [
{
"answer_id": 74515971,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 2,
"selected": false,
"text": "by strsplit data.frame merge ml <- max(with(testDF, tapply(ID, ID, length))) ## get max. period length\n\nby(testDF,... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560512/"
] |
74,515,760 | <p>I'm having a sample HTML on which I'm writing an XPath to extract content. And my main clause is to ignore <code>style</code> and <code>script</code> tags in it irrespective of the position and I want to do it from the parent itself. Here is my test block.</p>
<pre><code> <div itemprop="articleBody">... | [
{
"answer_id": 74515971,
"author": "jay.sf",
"author_id": 6574038,
"author_profile": "https://Stackoverflow.com/users/6574038",
"pm_score": 2,
"selected": false,
"text": "by strsplit data.frame merge ml <- max(with(testDF, tapply(ID, ID, length))) ## get max. period length\n\nby(testDF,... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3872094/"
] |
74,515,807 | <p>I've got an error while do migration to next 13 on my old project written in next 12.</p>
<p><a href="https://i.stack.imgur.com/fbc0u.png" rel="nofollow noreferrer">Console Error Log</a></p>
<p>I can't find fault in my code for that errors.
And I googled it but i can't find any solution for this.
It don't explains a... | [
{
"answer_id": 74520706,
"author": "Evans Benedict",
"author_id": 20560614,
"author_profile": "https://Stackoverflow.com/users/20560614",
"pm_score": 2,
"selected": false,
"text": "export default function RootLayout({ children}: {\n children: React.ReactNode\n}) {\n return (\n <html... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560614/"
] |
74,515,818 | <p>I am trying to install an extension from the Visual Studio 2022 Manage Extension window.</p>
<p>It says I have to close all Visual Studio windows, which I did, but it is still not installing.</p>
| [
{
"answer_id": 74520706,
"author": "Evans Benedict",
"author_id": 20560614,
"author_profile": "https://Stackoverflow.com/users/20560614",
"pm_score": 2,
"selected": false,
"text": "export default function RootLayout({ children}: {\n children: React.ReactNode\n}) {\n return (\n <html... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13822943/"
] |
74,515,822 | <p>I have some problem with useEffect. When the counter changes it causes the whole table to be rerendered, but i dont pass timer as props in table. How i can prevent this behavior?</p>
<pre><code>function App() {
const dispatch = useDispatch();
const data = useSelector(state => state.data);
const [error, ... | [
{
"answer_id": 74520706,
"author": "Evans Benedict",
"author_id": 20560614,
"author_profile": "https://Stackoverflow.com/users/20560614",
"pm_score": 2,
"selected": false,
"text": "export default function RootLayout({ children}: {\n children: React.ReactNode\n}) {\n return (\n <html... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20199506/"
] |
74,515,850 | <p>I use sparse matrices in COO format in my program. The COO format uses 3 separate vectors to represent the matrix: rowindex, colindex and values. I need to sort the matrix first by rowindex and then by colindex. For example, if the vectors contain:</p>
<pre><code>rowindex = [1 2 2 1 0 2 0 1 0 2 1 2]
colindex = [7 ... | [
{
"answer_id": 74520706,
"author": "Evans Benedict",
"author_id": 20560614,
"author_profile": "https://Stackoverflow.com/users/20560614",
"pm_score": 2,
"selected": false,
"text": "export default function RootLayout({ children}: {\n children: React.ReactNode\n}) {\n return (\n <html... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2466695/"
] |
74,515,885 | <p>So I run into a problem where I Dim A as range, but when I set A = to cells(1,1) and Cell(1,1) happen to be fill in with a text let say "BB" then A = "BB" instead of range("A1"). Can someone explain to me wat going on.</p>
<p>I Haven't tried anything as I don't know where to start I hav... | [
{
"answer_id": 74515996,
"author": "Ike",
"author_id": 16578424,
"author_profile": "https://Stackoverflow.com/users/16578424",
"pm_score": 1,
"selected": false,
"text": "A Range value A Sub test()\nDim A As Range\nSet A = ActiveSheet.Cells(1, 1) 'cell content = BB\n\nDebug.Print A.A... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560688/"
] |
74,515,887 | <p>I'm trying to submit a form using Redux, however, getting an error message in the console: Uncaught Error: Actions must be plain objects. Instead, the actual type was: 'Promise'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functio... | [
{
"answer_id": 74515996,
"author": "Ike",
"author_id": 16578424,
"author_profile": "https://Stackoverflow.com/users/16578424",
"pm_score": 1,
"selected": false,
"text": "A Range value A Sub test()\nDim A As Range\nSet A = ActiveSheet.Cells(1, 1) 'cell content = BB\n\nDebug.Print A.A... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16604189/"
] |
74,515,907 | <p>I am trying to implement a "Pin Message" functionality on the chat app I'm developing.</p>
<p>Chat Activity looks like this:</p>
<p><a href="https://i.stack.imgur.com/zxvGn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zxvGn.png" alt="enter image description here" /></a></p>
<p>I have ... | [
{
"answer_id": 74516181,
"author": "OneDev",
"author_id": 17781856,
"author_profile": "https://Stackoverflow.com/users/17781856",
"pm_score": 0,
"selected": false,
"text": "public interface PinMessageListener {\n\n void onPin(String value);\n\n}\n public class YourActivityOrFragment e... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11157146/"
] |
74,515,918 | <p>I have following code where i fetch results from SQL server. These are razor pages, blazor framework .Net</p>
<pre><code><button @onclick="Filter">Filter</button>
@{
async Task Filter() {
await FetchFromDb();
}
</code></pre>
<p>This query runs for 18 seconds. So i want to show loading spi... | [
{
"answer_id": 74516147,
"author": "MrC aka Shaun Curtis",
"author_id": 13065781,
"author_profile": "https://Stackoverflow.com/users/13065781",
"pm_score": 2,
"selected": false,
"text": "async Task Filter() {\n IsLoading = true;\n await FetchFromDb();\n IsLoading = false;\n}\n a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2546441/"
] |
74,515,932 | <p>I have two dataframes</p>
<pre><code>df1 = pd.DataFrame({'col1': [1,2,3], 'col2': [4,5,6]})
df2 = pd.DataFrame({'col3': [1,5,3]})
</code></pre>
<p>and would like to left merge <code>df1</code> to <code>df2</code>. I don't have a fixed merge column in <code>df1</code> though. I would like to merge on <code>col1</code... | [
{
"answer_id": 74516147,
"author": "MrC aka Shaun Curtis",
"author_id": 13065781,
"author_profile": "https://Stackoverflow.com/users/13065781",
"pm_score": 2,
"selected": false,
"text": "async Task Filter() {\n IsLoading = true;\n await FetchFromDb();\n IsLoading = false;\n}\n a... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11426624/"
] |
74,515,958 | <p>i have an array of join args (columns):</p>
<pre><code>attrs = ['surname', 'name', 'patronymic', 'birth_date',
'doc_type', 'doc_series','doc_number']
</code></pre>
<p>i'm trying to join two tables just like this but i need to coalesce each column for join to behave normally (cause it wont join correctly if ther... | [
{
"answer_id": 74563532,
"author": "schoolboychik",
"author_id": 17597010,
"author_profile": "https://Stackoverflow.com/users/17597010",
"pm_score": 2,
"selected": true,
"text": "join_attrs = [F.coalesce(pre_df[elem], F.lit('')) == F.coalesce(res_df[elem], F.lit('')) for elem in attrs]\n... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17597010/"
] |
74,515,962 | <p>I am not sure if that is possible at all. I want when I create a tuple and iterate over it multiple *args to be created.
For example:</p>
<pre><code>alabama_state="Alabama","Montgomery","Mobile","Tuscaloosa","Dothan","Huntsville","Birmingham",&qu... | [
{
"answer_id": 74516002,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 0,
"selected": false,
"text": "state_name, capital, *rest = alabama_state\nmetropolitan, city = rest[:4], rest[4:]\n"
},
{
"answer_id": 7451... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74515962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19971042/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.