qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,414,179
<p>I need to dynamically update the fields of this class dynamically with an object</p> <pre><code>export default class Foo { private accessKey: string; private workspaceId: string; private api: AxiosInstance; public bar: string; public name: string; ... ... private async fetch() { ...
[ { "answer_id": 74414238, "author": "Mahendra Raj", "author_id": 7053203, "author_profile": "https://Stackoverflow.com/users/7053203", "pm_score": 1, "selected": false, "text": "List<Category> categoryFromJson(String str) => List<Category>.from(json.decode(str).map((x) => Category.fromJso...
2022/11/12
[ "https://Stackoverflow.com/questions/74414179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19154870/" ]
74,414,202
<pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; struct queue { int front; int rear; int size; int *arr; }; void enqueue(struct queue *q, int value) { if(q-&gt;rear!=q-&gt;size-1) { printf(&quot;Entry\n&quot;); q-&gt;rear++; q-&gt;arr[q-&gt;rear] = value; ...
[ { "answer_id": 74414238, "author": "Mahendra Raj", "author_id": 7053203, "author_profile": "https://Stackoverflow.com/users/7053203", "pm_score": 1, "selected": false, "text": "List<Category> categoryFromJson(String str) => List<Category>.from(json.decode(str).map((x) => Category.fromJso...
2022/11/12
[ "https://Stackoverflow.com/questions/74414202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486552/" ]
74,414,208
<p>I have a big model in PowerBI where there are many different aggregation and grouping based on columns being displayed or not on the final table.</p> <p>Simplifying: I need to do a conditional statement doing the <strong>sum if the value of column 1 is A1 but doing the MAX() if the value of column 1 is A2.</strong><...
[ { "answer_id": 74414329, "author": "Vojtěch Šíma", "author_id": 15414213, "author_profile": "https://Stackoverflow.com/users/15414213", "pm_score": 1, "selected": false, "text": "Measure = IF ( SELECTEDVALUE('Table'[Column1]) = \"A1\", SUM('Table'[Column2]), MAX('Table'[Column2]))\n" }...
2022/11/12
[ "https://Stackoverflow.com/questions/74414208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479369/" ]
74,414,212
<p>I have to check whether a number is an <a href="https://en.wikipedia.org/wiki/Narcissistic_number" rel="nofollow noreferrer">Armstrong number</a> or not, using a recursive method.</p> <pre><code>public class ArmStrong { public static void main(String[] args) { System.out.println(isArm(407, 0, 0)); }...
[ { "answer_id": 74414282, "author": "rzwitserloot", "author_id": 768644, "author_profile": "https://Stackoverflow.com/users/768644", "pm_score": 1, "selected": false, "text": "if (n <= 0) 9 self(0, 9, 0+0) sum + last*last*last if last n sum += last*last*last;\n n 0" }, { "answer_i...
2022/11/12
[ "https://Stackoverflow.com/questions/74414212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17425522/" ]
74,414,215
<p>In my code I have a number of places where I need to take an std::vector of things and put it into a std::map indexed by something. For example here are two code snippets:</p> <pre><code>//sample A std::map&lt;Mode::Type, std::vector&lt;Mode&gt;&gt; modesByType; for( const auto&amp; mode : _modes ) { ...
[ { "answer_id": 74414282, "author": "rzwitserloot", "author_id": 768644, "author_profile": "https://Stackoverflow.com/users/768644", "pm_score": 1, "selected": false, "text": "if (n <= 0) 9 self(0, 9, 0+0) sum + last*last*last if last n sum += last*last*last;\n n 0" }, { "answer_i...
2022/11/12
[ "https://Stackoverflow.com/questions/74414215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2179289/" ]
74,414,232
<p>I don't know how to rename columns that are unnamed. I have tried both approaches where I am putting the indices in quoutes and not, like this, and it didn't work:</p> <pre><code> train_dataset_with_pred_new_df.rename(columns={ 0 : 'timestamp', 1 : 'open', 2 : 'close', 3 : 'high', 4 : 'low', 5 : 'volume', 6 ...
[ { "answer_id": 74414282, "author": "rzwitserloot", "author_id": 768644, "author_profile": "https://Stackoverflow.com/users/768644", "pm_score": 1, "selected": false, "text": "if (n <= 0) 9 self(0, 9, 0+0) sum + last*last*last if last n sum += last*last*last;\n n 0" }, { "answer_i...
2022/11/12
[ "https://Stackoverflow.com/questions/74414232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19797660/" ]
74,414,234
<p>I'm trying to change the blank cells into specific value of 16. However, the value it shows is like 44877. I tried changing the format, but it won't change.</p> <p>The link is here: <a href="https://docs.google.com/spreadsheets/d/17cm-C9ueGSqkK4kvAQCcSY_YYjPJ7EZ3T6Njfc9NjkM/edit?usp=sharing" rel="nofollow noreferrer...
[ { "answer_id": 74414260, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 1, "selected": false, "text": "isblank() =arrayformula( \n ifs( \n isblank(A2:A), 16, \n today() - A2:A > 1, today() - A2:A, \n tod...
2022/11/12
[ "https://Stackoverflow.com/questions/74414234", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16811337/" ]
74,414,236
<p>I have this command on my personnal bot that generates a image based on a discord users prompt but when i make it into a slash command, there is an error, i have done tests and the image is fine but it never sends the image back</p> <p>working code</p> <pre><code>@client.command(aliases=['gen']) async def genimage(c...
[ { "answer_id": 74414487, "author": "nub_discordDev", "author_id": 20369766, "author_profile": "https://Stackoverflow.com/users/20369766", "pm_score": 0, "selected": false, "text": "@slash.slash(name=\"gen\")\nasync def gen(ctx: SlashContext, *, ideasl):\n print(\"slash: \" + ideasl)\n...
2022/11/12
[ "https://Stackoverflow.com/questions/74414236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16920053/" ]
74,414,243
<p>I wonder where the literal string that <code>str</code> points to is allocated, given that (I assume) malloc only makes room for the pointer into the Heap.</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; typedef struct { int a; char* str; } Bar; int main(int argc, char *argv[]) { Bar*...
[ { "answer_id": 74414487, "author": "nub_discordDev", "author_id": 20369766, "author_profile": "https://Stackoverflow.com/users/20369766", "pm_score": 0, "selected": false, "text": "@slash.slash(name=\"gen\")\nasync def gen(ctx: SlashContext, *, ideasl):\n print(\"slash: \" + ideasl)\n...
2022/11/12
[ "https://Stackoverflow.com/questions/74414243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4640963/" ]
74,414,248
<p>I am running sql query in python, I have a requirement to dynamically generate dates and append it to my sql query.This script runs on every Monday. If the week of Monday falls between two months then I have to restrict the date range till last of the previous month (i.e 30th or 31st). Any Ideas on how to achieve t...
[ { "answer_id": 74414487, "author": "nub_discordDev", "author_id": 20369766, "author_profile": "https://Stackoverflow.com/users/20369766", "pm_score": 0, "selected": false, "text": "@slash.slash(name=\"gen\")\nasync def gen(ctx: SlashContext, *, ideasl):\n print(\"slash: \" + ideasl)\n...
2022/11/12
[ "https://Stackoverflow.com/questions/74414248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16715954/" ]
74,414,252
<p>I have a Navigation bar at the top of the browser window with different dropdown menus. A few are on the left, a few on the right.</p> <h1>The Problem:</h1> <p>If the Content of the Dropdown is large, it automatically extends the div where it's contained within. This only becomes a Problem as soon as it goes off scr...
[ { "answer_id": 74414487, "author": "nub_discordDev", "author_id": 20369766, "author_profile": "https://Stackoverflow.com/users/20369766", "pm_score": 0, "selected": false, "text": "@slash.slash(name=\"gen\")\nasync def gen(ctx: SlashContext, *, ideasl):\n print(\"slash: \" + ideasl)\n...
2022/11/12
[ "https://Stackoverflow.com/questions/74414252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19701713/" ]
74,414,272
<p><code>aes_string</code> had some convenient behaviours that I made use of when programming with ggplot2. But <code>aes_string</code> has been deprecated (noticeably since ggplot2 version 3.4.0 I believe). I am struggling with how to nicely replace it.</p> <p>Specifically, I previously created functions that accepted...
[ { "answer_id": 74414389, "author": "stefan", "author_id": 12993861, "author_profile": "https://Stackoverflow.com/users/12993861", "pm_score": 3, "selected": true, "text": "sym library(ggplot2)\n\nplotterOld <- function(...) {\n args <- lapply(list(...), function(x) if (!is.null(x)) sym(...
2022/11/12
[ "https://Stackoverflow.com/questions/74414272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9005116/" ]
74,414,297
<p>To simplify, as much as possible, a <a href="https://stackoverflow.com/questions/74409065/cartpy-and-pcolormesh-how-to-project-polar-data-onto-a-map">question I already asked</a>, how would you OVERLAY or PROJECT a polar plot onto a cartopy map.</p> <pre><code>phis = np.linspace(1e-5,10,10) # SV half cone ang, measu...
[ { "answer_id": 74417371, "author": "swatchai", "author_id": 2177413, "author_profile": "https://Stackoverflow.com/users/2177413", "pm_score": 1, "selected": false, "text": "XX = X/np.pi*180 # wrap around data in EW direction\nYY = Y*9 # spread across N hemisphere \n transform...
2022/11/12
[ "https://Stackoverflow.com/questions/74414297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2687317/" ]
74,414,314
<p>I'm using .NET exclusively for Entity Framework's elegant handling of migrations. I have a working project with an EF schema. The part I now need is to move the DB connection string into configuration.</p> <p>All I have so far is the following:</p> <pre><code>public partial class EfContext : DbContext { protecte...
[ { "answer_id": 74417371, "author": "swatchai", "author_id": 2177413, "author_profile": "https://Stackoverflow.com/users/2177413", "pm_score": 1, "selected": false, "text": "XX = X/np.pi*180 # wrap around data in EW direction\nYY = Y*9 # spread across N hemisphere \n transform...
2022/11/12
[ "https://Stackoverflow.com/questions/74414314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/607269/" ]
74,414,349
<p>How can I retrain only 2 decimals for each values in a Pandas series? (I'm working with latitudes and longitudes). dtype is float64.</p> <pre><code>series = [-74.002568, -74.003085, -74.003546] </code></pre> <p>I tried using the round function but as the name suggests, it rounds. I looked into trunc() but this ca...
[ { "answer_id": 74414365, "author": "rafaelc", "author_id": 2535611, "author_profile": "https://Stackoverflow.com/users/2535611", "pm_score": 0, "selected": false, "text": "pd.options.display.float_format = \"{:,.2f}\".format\n" }, { "answer_id": 74414441, "author": "Naveed", ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19961084/" ]
74,414,366
<p>I have a situation in a piece of dynamic programming where i either want to get the pre computed results, or call a function to compute these results.</p> <p>This is the situation in short</p> <pre><code>let previous_results HashMap&lt;String, Result&gt; = HashMap::new(); for i in some_values { let result = prev...
[ { "answer_id": 74414742, "author": "rodrigo", "author_id": 865874, "author_profile": "https://Stackoverflow.com/users/865874", "pm_score": 3, "selected": true, "text": "unwrap_or_else Cow use std::borrow::Cow;\n\nfor i in some_values {\n let result = previous_results\n .get(i)\n ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4484923/" ]
74,414,372
<p>Basically what I want is something like below</p> <pre><code> [SomeJsonIgnoreAnnotation] class MySecret { public int Secret { get; set; } = 1; } class A { public MySecret SecretA { get; set; } = new(); } class B { public MySecret SecretB { get; set; } = new(); } </code...
[ { "answer_id": 74414619, "author": "Poul Bak", "author_id": 5741643, "author_profile": "https://Stackoverflow.com/users/5741643", "pm_score": 3, "selected": true, "text": "class MySecret {\n [JsonIgnore]\n public int Secret { get; set; } = 1;\n}\n Secret MySecret" }, { "ans...
2022/11/12
[ "https://Stackoverflow.com/questions/74414372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7614469/" ]
74,414,403
<p><strong>This is the code I've been using in Node.js</strong></p> <pre><code>const mongoose = require('mongoose'); mongoose.connect('mongodb://localhost:27017/vegesDB', { useNewUrlParser: true }); const vegeSchema = new mongoose.Schema({ name: String, rating: Number, review: String }); const Vege = mongoos...
[ { "answer_id": 74414619, "author": "Poul Bak", "author_id": 5741643, "author_profile": "https://Stackoverflow.com/users/5741643", "pm_score": 3, "selected": true, "text": "class MySecret {\n [JsonIgnore]\n public int Secret { get; set; } = 1;\n}\n Secret MySecret" }, { "ans...
2022/11/12
[ "https://Stackoverflow.com/questions/74414403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8246276/" ]
74,414,426
<p>I have a file named default.xex that is located in XBLA_Unpacked/DirectoryName/Subdirectory/000D0000/default.xex. I am trying to rename default.xex to be DirectoryName.xex. I managed to accomplish this with File.Move() but it pulled the .xex file up into XBLA_Unpacked, so both DirectoryName and DirectoryName.xex are...
[ { "answer_id": 74414675, "author": "hossein sabziani", "author_id": 4301195, "author_profile": "https://Stackoverflow.com/users/4301195", "pm_score": 0, "selected": false, "text": " for (int i = 0; i < sourceName.Count; i++)\n {\n destinationName[i] = destination...
2022/11/12
[ "https://Stackoverflow.com/questions/74414426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20325402/" ]
74,414,446
<p>I want to delete a column if a cell within a range (in this case the very first row) contains a specific value. I thought I could do it like this:</p> <pre><code>Public Sub Delete_Column() Select Case Range(A1:A10) Case &quot;Birthday&quot;, &quot;Gender&quot; cell.EntireColumn.Delete End Select End S...
[ { "answer_id": 74414618, "author": "Shai Rado", "author_id": 6344363, "author_profile": "https://Stackoverflow.com/users/6344363", "pm_score": 2, "selected": false, "text": "Range(\"A1:A10\") Range(\"A1:J1\") Public Sub Delete_Column()\n\nDim Rng As Range, C As Range\n\n' set the Range o...
2022/11/12
[ "https://Stackoverflow.com/questions/74414446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20197062/" ]
74,414,465
<pre><code>import &quot;./styles.css&quot;; const data = [ { firstname: &quot;junaid&quot;, lastname: &quot;hossain&quot;, phones: [{ home: &quot;015000&quot; }, { office: &quot;0177&quot; }] }, { firstname: &quot;arman&quot;, lastname: &quot;hossain&quot;, phones: [{ home: &quot;013000&qu...
[ { "answer_id": 74414618, "author": "Shai Rado", "author_id": 6344363, "author_profile": "https://Stackoverflow.com/users/6344363", "pm_score": 2, "selected": false, "text": "Range(\"A1:A10\") Range(\"A1:J1\") Public Sub Delete_Column()\n\nDim Rng As Range, C As Range\n\n' set the Range o...
2022/11/12
[ "https://Stackoverflow.com/questions/74414465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486656/" ]
74,414,466
<p>I am trying to save image upload from the camera or gallery permanently, I am using the <code>image_picker</code> package, and each time I choose a picture for a pfp and click on a different tab it's gone, it only saves it temporarily. this is my code below:</p> <pre><code>import 'dart:io'; import 'package:flutter/c...
[ { "answer_id": 74414618, "author": "Shai Rado", "author_id": 6344363, "author_profile": "https://Stackoverflow.com/users/6344363", "pm_score": 2, "selected": false, "text": "Range(\"A1:A10\") Range(\"A1:J1\") Public Sub Delete_Column()\n\nDim Rng As Range, C As Range\n\n' set the Range o...
2022/11/12
[ "https://Stackoverflow.com/questions/74414466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486797/" ]
74,414,472
<p>Suppose I have a class template</p> <pre class="lang-cpp prettyprint-override"><code>template&lt;class T&gt; class Foo{}; </code></pre> <p>Is it possible to prevent T from being an instantiation of Foo. That is, this should not compile:</p> <pre class="lang-cpp prettyprint-override"><code>struct Bar{}; Foo&lt;Foo&l...
[ { "answer_id": 74414618, "author": "Shai Rado", "author_id": 6344363, "author_profile": "https://Stackoverflow.com/users/6344363", "pm_score": 2, "selected": false, "text": "Range(\"A1:A10\") Range(\"A1:J1\") Public Sub Delete_Column()\n\nDim Rng As Range, C As Range\n\n' set the Range o...
2022/11/12
[ "https://Stackoverflow.com/questions/74414472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/877329/" ]
74,414,504
<p>I wrote a simple backend application by spring boot and kotlin, here you can see the full settings <a href="https://github.com/lifeodyssey/demo" rel="nofollow noreferrer">https://github.com/lifeodyssey/demo</a></p> <p>this bug performed as</p> <ol> <li>I can start and access the application by <code>./gradlew bootRu...
[ { "answer_id": 74414618, "author": "Shai Rado", "author_id": 6344363, "author_profile": "https://Stackoverflow.com/users/6344363", "pm_score": 2, "selected": false, "text": "Range(\"A1:A10\") Range(\"A1:J1\") Public Sub Delete_Column()\n\nDim Rng As Range, C As Range\n\n' set the Range o...
2022/11/12
[ "https://Stackoverflow.com/questions/74414504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8606945/" ]
74,414,506
<p>Azure DataFactory File System Linked Service is not working with this error:</p> <p>Error details Error code 28051 Details c could not be resolved.</p> <p>I tried to connect file excel in onpremise machine using the self hosted integration runtimeg</p>
[ { "answer_id": 74425415, "author": "user20495886", "author_id": 20495886, "author_profile": "https://Stackoverflow.com/users/20495886", "pm_score": 3, "selected": true, "text": "c:\\ \\\\servername\\c$" }, { "answer_id": 74440054, "author": "MarioVW", "author_id": 592732,...
2022/11/12
[ "https://Stackoverflow.com/questions/74414506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486879/" ]
74,414,515
<pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;cstring&gt; int main() { int size = 5 ; int* c = (int*)calloc(size,sizeof(int)); memset(c,0,size*sizeof(int)); // when I input 1 or another value it doesn't work for (int i=0; i&lt;size;i++){ printf(&quot;values ...
[ { "answer_id": 74417966, "author": "John Kugelman", "author_id": 68587, "author_profile": "https://Stackoverflow.com/users/68587", "pm_score": 1, "selected": false, "text": "memset 1 int int 0x01010101 16843009" }, { "answer_id": 74417969, "author": "dbush", "author_id": ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15205118/" ]
74,414,553
<p>i want to display data in a CollectionView that has state = false using CommunityToolkit.Mvvm, but I don't quite understand how to do it. I wanted to use ICollectionView but didn't find it in maui. help me please</p> <p><strong>Model</strong></p> <pre><code>public class Task { public string Title { get; se...
[ { "answer_id": 74417966, "author": "John Kugelman", "author_id": 68587, "author_profile": "https://Stackoverflow.com/users/68587", "pm_score": 1, "selected": false, "text": "memset 1 int int 0x01010101 16843009" }, { "answer_id": 74417969, "author": "dbush", "author_id": ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486766/" ]
74,414,604
<p>I am using the react-select library for multi-select. I am using it as a state selector but the problem is the react-select an array of objects. Like</p> <pre><code>{ &quot;label&quot;: &quot;Andaman and Nicobar Islands&quot;, &quot;value&quot;: &quot;Andaman and Nicobar Islands&quot; }, { ...
[ { "answer_id": 74414730, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 2, "selected": false, "text": "values onChange const handleMultiChange = (options) => {\n const values = options.map((opt) => opt.value);\n c...
2022/11/12
[ "https://Stackoverflow.com/questions/74414604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10122516/" ]
74,414,674
<h3>A problem description:</h3> <p>I have two strings and I need to find the length of intersection of them.</p> <p><em>Let's assume the both strings are Latin-ASCII and lower case.</em></p> <p>These are expected results:</p> <pre><code>$str1 = &quot;lorem ipsum&quot;; $str2 = &quot;rem&quot;; echo str_intersection($st...
[ { "answer_id": 74414730, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 2, "selected": false, "text": "values onChange const handleMultiChange = (options) => {\n const values = options.map((opt) => opt.value);\n c...
2022/11/12
[ "https://Stackoverflow.com/questions/74414674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/104237/" ]
74,414,683
<pre class="lang-dart prettyprint-override"><code>Future&lt;void&gt; launchInBrowser(String url) async { Uri dir = Uri.parse(url); if (!await launchUrl( dir, mode: LaunchMode.externalApplication, )) { throw 'Could not launch $url'; } } </code></pre> <p>I am using url_launcher version 6.1.6 flutter p...
[ { "answer_id": 74414730, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 2, "selected": false, "text": "values onChange const handleMultiChange = (options) => {\n const values = options.map((opt) => opt.value);\n c...
2022/11/12
[ "https://Stackoverflow.com/questions/74414683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11804723/" ]
74,414,713
<p>I have an input on the page, initially it is empty. I need to implement the following functionality: on page load, the component <code>App</code> fetches from <code>localStorage</code> a value of key <code>appData</code> and puts it in the <code>input</code>. That is, so that in the localStorage I write the value to...
[ { "answer_id": 74414730, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 2, "selected": false, "text": "values onChange const handleMultiChange = (options) => {\n const values = options.map((opt) => opt.value);\n c...
2022/11/12
[ "https://Stackoverflow.com/questions/74414713", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20398508/" ]
74,414,731
<p>I merged a pull request in bit bucket from a feature branch into master and now I want to update my local copy of master. I've tried git fetch, git pull, git reset --hard, git reset --hard origin/master. I was expecting my local master branch to be updated with the new commits, but it was not. I am getting the me...
[ { "answer_id": 74414730, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 2, "selected": false, "text": "values onChange const handleMultiChange = (options) => {\n const values = options.map((opt) => opt.value);\n c...
2022/11/12
[ "https://Stackoverflow.com/questions/74414731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12603956/" ]
74,414,740
<p>I have a string containing a JavaScript object as follows:</p> <pre class="lang-js prettyprint-override"><code>const myString = `[{&quot;url&quot;:&quot;https:\/\/audio.ngfiles.com\/1171000\/1171300_small-talk.mp3?f1668090863&quot;,&quot;is_published&quot;:true,&quot;portal_id&quot;:2,&quot;file_id&quot;:0,&quot;pro...
[ { "answer_id": 74414730, "author": "KcH", "author_id": 11737596, "author_profile": "https://Stackoverflow.com/users/11737596", "pm_score": 2, "selected": false, "text": "values onChange const handleMultiChange = (options) => {\n const values = options.map((opt) => opt.value);\n c...
2022/11/12
[ "https://Stackoverflow.com/questions/74414740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15584743/" ]
74,414,777
<p>Is it possible to check if a prop Function is async or not?</p> <p>For example, here is a prop in my component:</p> <pre><code> callbackFunction: { type: Function, default: null, }, </code></pre> <p>How can I validate this and make sure that the passed in Function is declared as async?</p>...
[ { "answer_id": 74415261, "author": "Naren", "author_id": 6516699, "author_profile": "https://Stackoverflow.com/users/6516699", "pm_score": 2, "selected": false, "text": " callbackFunction: {\n type: Function,\n validator(value) {\n if (value?.constructor?.name ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16958679/" ]
74,414,778
<p>I'm trying to run my program:</p> <pre class="lang-py prettyprint-override"><code>from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController app = Ursina() window.fullscreen = True class Voxel(Button): def __init__(self, colour, position = (0, 0, 0)): super().__init__...
[ { "answer_id": 74416687, "author": "dskrypa", "author_id": 19070573, "author_profile": "https://Stackoverflow.com/users/19070573", "pm_score": 2, "selected": false, "text": "color colour ursina color color from ursina import * from ursina import Ursina, Button, window" }, { "answ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487055/" ]
74,414,823
<h1>How to refer to dynamic sheet in Excel VBA instead of Sheet Name - Instead of &quot;Sheet16&quot;, i want to refer to the ActiveSheet, please see below</h1> <p>Sub Macro1()</p> <pre><code>Cells.Select Selection.Copy Sheets.Add After:=ActiveSheet ActiveSheet.Paste Application.CutCopyMode = False Selection.AutoFilter...
[ { "answer_id": 74416687, "author": "dskrypa", "author_id": 19070573, "author_profile": "https://Stackoverflow.com/users/19070573", "pm_score": 2, "selected": false, "text": "color colour ursina color color from ursina import * from ursina import Ursina, Button, window" }, { "answ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487108/" ]
74,414,825
<p><strong>What does program solve:</strong><br /> Find palindrome from user input.</p> <p><strong>What issue to tweak:</strong><br /> How to make code accept sentence like <code>Rise to vote sir!</code> as Palindrome if we disregard punctuation and blank spaces. If you read it backwards it will be the same!</p> <p><st...
[ { "answer_id": 74415488, "author": "Clifford", "author_id": 168986, "author_profile": "https://Stackoverflow.com/users/168986", "pm_score": 3, "selected": true, "text": "!isalnum(letter[count]) !isalnum(letter[countback]) count countback // skip non-alphanum on left\nwhile( !isalnum(lett...
2022/11/12
[ "https://Stackoverflow.com/questions/74414825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13633212/" ]
74,414,838
<p>Does anyone know how to move through one file to the other if they are in the same directory?</p> <p>Example: in file &quot;A.txt&quot; is written the name of the next file, meaning &quot;B.txt,&quot; then in &quot;B.txt&quot;, is written the name of the next file - &quot;C.txt,&quot; and the content of &quot;C.tx...
[ { "answer_id": 74415488, "author": "Clifford", "author_id": 168986, "author_profile": "https://Stackoverflow.com/users/168986", "pm_score": 3, "selected": true, "text": "!isalnum(letter[count]) !isalnum(letter[countback]) count countback // skip non-alphanum on left\nwhile( !isalnum(lett...
2022/11/12
[ "https://Stackoverflow.com/questions/74414838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487116/" ]
74,414,864
<p>My IDE is showing that navigationIcon is not a composable function. Other people are doing the same thing. I'm getting this error</p> <pre><code>@composable invocations can only happen from the context of an @composable function </code></pre> <pre class="lang-kotlin prettyprint-override"><code>@Composable fun AppBa...
[ { "answer_id": 74414937, "author": "z.y", "author_id": 19023745, "author_profile": "https://Stackoverflow.com/users/19023745", "pm_score": 2, "selected": false, "text": "@Composable\nfun AppBar(onClick: () -> Unit) {\n TopAppBar(\n title = { Text (text = \"Princess World\") },\...
2022/11/12
[ "https://Stackoverflow.com/questions/74414864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14527579/" ]
74,414,880
<p>I have data as follows:</p> <pre><code>library(data.table) dat &lt;- fread(&quot;Variable_codes_2022 Variables_2022 Cat1_1 This_question Cat1_2 Other_question Cat2_1 One_question Cat2_2 Another_question ...
[ { "answer_id": 74414937, "author": "z.y", "author_id": 19023745, "author_profile": "https://Stackoverflow.com/users/19023745", "pm_score": 2, "selected": false, "text": "@Composable\nfun AppBar(onClick: () -> Unit) {\n TopAppBar(\n title = { Text (text = \"Princess World\") },\...
2022/11/12
[ "https://Stackoverflow.com/questions/74414880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8071608/" ]
74,414,889
<p>In <a href="https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html" rel="nofollow noreferrer">Programmable Completion Builtins</a> complete command, there is a -I argument. It said:</p> <blockquote> <p>The -I option indicates that other supplied options and actions should apply to c...
[ { "answer_id": 74415063, "author": "tinyhare", "author_id": 5232323, "author_profile": "https://Stackoverflow.com/users/5232323", "pm_score": 0, "selected": false, "text": "root@aliecs:~# complete -W 'AA BB BC' -I\nroot@aliecs:~# foo=1 B<tab><tab>\nBB BC \nroot@aliecs:~# B<tab><tab>\nB...
2022/11/12
[ "https://Stackoverflow.com/questions/74414889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5232323/" ]
74,414,914
<p>I have a file that looks like this:</p> <pre class="lang-none prettyprint-override"><code>1234:AnneShirly:anneshirley@seneca.ca:4:5\[SRT111,OPS105,OPS110,SPR100,ENG100\] 3217:Illyas:illay@seneca.ca:2:4\[SRT211,OPS225,SPR200,ENG200\] 1127:john Marcus:johnmarcus@seneca.ca:1:4\[SRT111,OPS105,SPR100,ENG100\] 0001:Amin M...
[ { "answer_id": 74415175, "author": "gioco a cose", "author_id": 15219507, "author_profile": "https://Stackoverflow.com/users/15219507", "pm_score": 1, "selected": false, "text": "studentid = input(\"enter studentid\")\ncourse = input(\"enter the course to delete\")\nwith open(\"studentDa...
2022/11/12
[ "https://Stackoverflow.com/questions/74414914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,414,936
<p>I want to write a program where a user tells me an integer(n) and i calculate The sum of 1+(1-2)+(1-2+3)+(1-2+3-n)... where even integers are -k and odd integers are +k.</p> <p>Ive made a function which does that But the sum is never correct. For example for n=2 it should be sum=0 but shows sum=-1 for n=3 should be...
[ { "answer_id": 74415175, "author": "gioco a cose", "author_id": 15219507, "author_profile": "https://Stackoverflow.com/users/15219507", "pm_score": 1, "selected": false, "text": "studentid = input(\"enter studentid\")\ncourse = input(\"enter the course to delete\")\nwith open(\"studentDa...
2022/11/12
[ "https://Stackoverflow.com/questions/74414936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20133060/" ]
74,414,944
<p>I have two problems that are giving me issues. First issue:</p> <pre><code>import requests import json name = 'Poe' poem = 'Raven' URL = f'https://poetrydb.org/author,title/{name};{poem}' json_object = json.loads(requests.get(URL).text) text=str(json_object) with open(&quot;choice_1.json&quot;, &quot;w&quot;) as ...
[ { "answer_id": 74415175, "author": "gioco a cose", "author_id": 15219507, "author_profile": "https://Stackoverflow.com/users/15219507", "pm_score": 1, "selected": false, "text": "studentid = input(\"enter studentid\")\ncourse = input(\"enter the course to delete\")\nwith open(\"studentDa...
2022/11/12
[ "https://Stackoverflow.com/questions/74414944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20368158/" ]
74,414,951
<p>I have a large dataset where I have a problem similar to the one below. I have something like this:</p> <pre><code>dummydf &lt;- data.frame(country = c(&quot;USA&quot;, &quot;USA&quot;), state = c(&quot;Oregon&quot;, &quot;California&quot;), name = c(&quot;anne&quot;, &quo...
[ { "answer_id": 74415117, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "pivot_longer str_remove ...1 library(dplyr)\nlibrary(tidyr)\nlibrary(stringr)\n\ndummydf %>% \n mutate(across(, as....
2022/11/12
[ "https://Stackoverflow.com/questions/74414951", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13311198/" ]
74,414,981
<p>I have a path that I draw well on the canvas.</p> <p>But I can't move it.</p> <pre><code> const ctx = canvas.getContext('2d') const render = () =&gt; { ctx.resetTransform() ctx.clearRect(0, 0, innerWidth, innerHeight) ctx.beginPath() ctx.moveTo(30, 50) ctx.lineTo(150, 1...
[ { "answer_id": 74415117, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "pivot_longer str_remove ...1 library(dplyr)\nlibrary(tidyr)\nlibrary(stringr)\n\ndummydf %>% \n mutate(across(, as....
2022/11/12
[ "https://Stackoverflow.com/questions/74414981", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18642505/" ]
74,414,987
<p>I came up with this logic to count the duplicate 1 take input for list length 2 take input of list 3 search in list for the values from zero to last index increment the counter. I am getting error can anyone help to fix it, I know my this not accurate way to do this can someone help me out</p> <pre><code>n = int(inp...
[ { "answer_id": 74415021, "author": "thedemons", "author_id": 13253010, "author_profile": "https://Stackoverflow.com/users/13253010", "pm_score": 1, "selected": false, "text": "set() s = set(l1)\ncount = len(l1) - len(s)\n" }, { "answer_id": 74415078, "author": "sourin", "...
2022/11/12
[ "https://Stackoverflow.com/questions/74414987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20166957/" ]
74,414,992
<p>I'm new to React, and I'm trying to make a recpie app with react, right know I want to save the data in json file from the add form. so I can save the data but when I want to redirect the user to the home page using useEffict with navigate. I can't go to the create page when adding navigate to the useEffict.</p> <p>...
[ { "answer_id": 74415040, "author": "Ibrahim shamma", "author_id": 12613405, "author_profile": "https://Stackoverflow.com/users/12613405", "pm_score": 0, "selected": false, "text": "const [recipes, setReceipies] = useState();\n\nuseEffect(async ()=> { const {data} = awawit useFetch(\"http...
2022/11/12
[ "https://Stackoverflow.com/questions/74414992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487260/" ]
74,414,995
<p>Example is here, should work in online compilers:</p> <pre class="lang-cs prettyprint-override"><code>internal class Program { static void Main(string[] args) { var i1 = new Item(); i1.Val1 = 1; i1.Val2 = 2.1; var i2 = new Item(); i2.Va...
[ { "answer_id": 74415040, "author": "Ibrahim shamma", "author_id": 12613405, "author_profile": "https://Stackoverflow.com/users/12613405", "pm_score": 0, "selected": false, "text": "const [recipes, setReceipies] = useState();\n\nuseEffect(async ()=> { const {data} = awawit useFetch(\"http...
2022/11/12
[ "https://Stackoverflow.com/questions/74414995", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,415,044
<p>i am experimenting with a multi-column magazine style layout for an editorial project.</p> <p>Due to the increasing size of the monitors, i wanted to use of all available inches of the monitor by creating layouts very similar to paper magazine (two or three columns per page).</p> <p>I am using TipTap editor for art...
[ { "answer_id": 74415040, "author": "Ibrahim shamma", "author_id": 12613405, "author_profile": "https://Stackoverflow.com/users/12613405", "pm_score": 0, "selected": false, "text": "const [recipes, setReceipies] = useState();\n\nuseEffect(async ()=> { const {data} = awawit useFetch(\"http...
2022/11/12
[ "https://Stackoverflow.com/questions/74415044", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4948683/" ]
74,415,058
<p>I would like to produce histograms with density lines for all my numeric columns, and facet them by another column.</p> <p>Using the <a href="https://en.wikipedia.org/wiki/Iris_flower_data_set" rel="nofollow noreferrer">Iris data set</a> as an example, I would like to produce histograms for <code>Sepal.Length</code>...
[ { "answer_id": 74415163, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "library(tidyverse)\nirislong= pivot_longer(iris, cols = -Species) \nggplot(irislong, aes(x= value, fill= Species, a...
2022/11/12
[ "https://Stackoverflow.com/questions/74415058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12452893/" ]
74,415,075
<p>I wrote the code in general,but how can ı make a container that changes color with the first pink,then red, green,blue and again pink,then red, green,blue every time ı click on a container using inkwell?</p> <pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart'; void main() { r...
[ { "answer_id": 74415163, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "library(tidyverse)\nirislong= pivot_longer(iris, cols = -Species) \nggplot(irislong, aes(x= value, fill= Species, a...
2022/11/12
[ "https://Stackoverflow.com/questions/74415075", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18917371/" ]
74,415,124
<p>I wrote a program to compare numbers and get the minimum one of each couple. First number on input is count of couples and the other ones are the numbers just to be compared with each other 2 by 2. When i execute and give the input the last number on the list is not included. I wanna know why and how to fix it.</p> ...
[ { "answer_id": 74415234, "author": "thebjorn", "author_id": 75103, "author_profile": "https://Stackoverflow.com/users/75103", "pm_score": 3, "selected": true, "text": "inp = [3, 5, 3, 2, 8, 100, 15]\n def min_of_two(length, pairs):\n res = []\n for i in range(length):\n res....
2022/11/12
[ "https://Stackoverflow.com/questions/74415124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10691339/" ]
74,415,133
<p>I am trying to work with nginx in my express app and I'm following the tutorial here</p> <p><a href="https://cloud.google.com/community/tutorials/deploy-react-nginx-cloud-run" rel="nofollow noreferrer">https://cloud.google.com/community/tutorials/deploy-react-nginx-cloud-run</a></p> <p>then at the end I saw this com...
[ { "answer_id": 74415231, "author": "Florian Burel", "author_id": 2218839, "author_profile": "https://Stackoverflow.com/users/2218839", "pm_score": 1, "selected": false, "text": "sh -c envsubst '\\$PORT' < /etc/nginx/conf.d/configfile.template > /etc/nginx/conf.d/default.conf && nginx -g ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15155716/" ]
74,415,154
<p>I have an ionic project that I haven't updated for some time.</p> <p>The project worked well and I installed the ionic app on many devices.</p> <p>Today I downloaded the code from git hub and then run the command <code>npm install</code> but the command ended with dependencies errors:</p> <pre><code>MacBook-Pro-di-S...
[ { "answer_id": 74415231, "author": "Florian Burel", "author_id": 2218839, "author_profile": "https://Stackoverflow.com/users/2218839", "pm_score": 1, "selected": false, "text": "sh -c envsubst '\\$PORT' < /etc/nginx/conf.d/configfile.template > /etc/nginx/conf.d/default.conf && nginx -g ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13815409/" ]
74,415,166
<p>You are given a string my_string and a positive integer k. Write code that prints the first substring of my_string of length k all of whose characters are identical (lowercase and uppercase are different). If none such exists, print an appropriate error message (see Example 4 below). In particular, the latter holds ...
[ { "answer_id": 74415231, "author": "Florian Burel", "author_id": 2218839, "author_profile": "https://Stackoverflow.com/users/2218839", "pm_score": 1, "selected": false, "text": "sh -c envsubst '\\$PORT' < /etc/nginx/conf.d/configfile.template > /etc/nginx/conf.d/default.conf && nginx -g ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486728/" ]
74,415,180
<p>Im trying to understand what the sentence <code>$request-&gt;user()?-&gt;id ?: $request-&gt;ip()</code> does in this function</p> <pre><code>protected function configureRateLimiting() { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)-&gt;by($request-&gt;user()?-&gt;i...
[ { "answer_id": 74415246, "author": "Iłya Bursov", "author_id": 2864275, "author_profile": "https://Stackoverflow.com/users/2864275", "pm_score": 3, "selected": true, "text": "?-> id user() ?: $tmp = null;\nif ($request->user() != null) {\n $tmp = $request->user()->id;\n}\nif ($tmp) { ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2367830/" ]
74,415,181
<p>My custom blazor component uses an external script (hosted on a CDN). Usually one would reference it in <code>index.html</code>, but I don't want to do that - I want the component to be self contained and easy to use.</p> <p>The typical solution is a script loader. A popular implementation has been floating around f...
[ { "answer_id": 74415246, "author": "Iłya Bursov", "author_id": 2864275, "author_profile": "https://Stackoverflow.com/users/2864275", "pm_score": 3, "selected": true, "text": "?-> id user() ?: $tmp = null;\nif ($request->user() != null) {\n $tmp = $request->user()->id;\n}\nif ($tmp) { ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9971404/" ]
74,415,191
<p>I am learning javascript functions and I got following code which gives following output:</p> <p>Output: &quot;buy 3 bottles of milk&quot; &quot;Hello master, here is your 0 change&quot;</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> ...
[ { "answer_id": 74415279, "author": "pzelenovic", "author_id": 717683, "author_profile": "https://Stackoverflow.com/users/717683", "pm_score": 1, "selected": false, "text": "getMilk \"buy 3 bottles of milk\" \"Hello master, here is your 0 change\"" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74415191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1939153/" ]
74,415,194
<p>I want to create a program to send an email with a discord bot but when i laucnh my program i have this error. My code to send an email works fine in a separate file but when i put in in my python discord bot program there are a problem my programm :</p> <p>`</p> <pre><code>import smtplib from email.mime.text import...
[ { "answer_id": 74415279, "author": "pzelenovic", "author_id": 717683, "author_profile": "https://Stackoverflow.com/users/717683", "pm_score": 1, "selected": false, "text": "getMilk \"buy 3 bottles of milk\" \"Hello master, here is your 0 change\"" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74415194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487340/" ]
74,415,207
<p>I have some sort of poll where you vote either YES and NO and based on the votes it creates a poll chart (by creating two divs inside another div that has a set width and setting the width of the first two divs the percentage of YES and NO votes out of the total votes). You can see the project for a better understan...
[ { "answer_id": 74415319, "author": "Noel Maróti", "author_id": 20150565, "author_profile": "https://Stackoverflow.com/users/20150565", "pm_score": 0, "selected": false, "text": "function animation () {\n let id = null;\n const elem = document.querySelector(\".poll\"); \n let width =...
2022/11/12
[ "https://Stackoverflow.com/questions/74415207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19217750/" ]
74,415,256
<p>I'm trying to get the data of a user, which sent an interaction (a / command). The code below sends the reply-message, but I don't get the user ID in the console. I tried this code because I found it online but it doesn't work.</p> <pre><code>if (interaction?.data?.name === 'test') { await interaction.createMess...
[ { "answer_id": 74415427, "author": "Gh0st", "author_id": 15256312, "author_profile": "https://Stackoverflow.com/users/15256312", "pm_score": 1, "selected": false, "text": "const userId = interactionUser.user.id\n" }, { "answer_id": 74416306, "author": "MalwareMoon", "auth...
2022/11/12
[ "https://Stackoverflow.com/questions/74415256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14216148/" ]
74,415,260
<pre><code>#include &lt;iostream&gt; #include &lt;cmath&gt; using namespace std; int main() { float Litr; int opcja; cout &lt;&lt; &quot;Konwerter&quot; &lt;&lt; endl; switch(opcja){ case 1: cout &lt;&lt; &quot;Litr na barylke amerykanska i galon amerykanski&quot; &lt;&lt; endl; cin &gt;&gt; ...
[ { "answer_id": 74415283, "author": "kvr", "author_id": 5923576, "author_profile": "https://Stackoverflow.com/users/5923576", "pm_score": 1, "selected": false, "text": "3.78" }, { "answer_id": 74415304, "author": "StellarClown", "author_id": 10026471, "author_profile":...
2022/11/12
[ "https://Stackoverflow.com/questions/74415260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487435/" ]
74,415,265
<p>I have a risk entry view that only project managers are able to access and no other user group how would I ensure that only this user group is able to access this view?</p> <h1>Risk page class-based view</h1> <pre><code>@method_decorator(decorators, name='dispatch') class Risk_entry_page(View): template_name = ...
[ { "answer_id": 74415283, "author": "kvr", "author_id": 5923576, "author_profile": "https://Stackoverflow.com/users/5923576", "pm_score": 1, "selected": false, "text": "3.78" }, { "answer_id": 74415304, "author": "StellarClown", "author_id": 10026471, "author_profile":...
2022/11/12
[ "https://Stackoverflow.com/questions/74415265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16373329/" ]
74,415,321
<p>I have a project I want to bring into Git.<br /> I have my local <code>git config</code> complete, verified I can SSH in, and have a branch &quot;<code>main</code>&quot; setup on GitHub.<br /> I substituted &quot;<code>xyz</code>&quot; for my actual GitHub branch.</p> <p>The &quot;<code>git checkout</code>&quot; com...
[ { "answer_id": 74415283, "author": "kvr", "author_id": 5923576, "author_profile": "https://Stackoverflow.com/users/5923576", "pm_score": 1, "selected": false, "text": "3.78" }, { "answer_id": 74415304, "author": "StellarClown", "author_id": 10026471, "author_profile":...
2022/11/12
[ "https://Stackoverflow.com/questions/74415321", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12032036/" ]
74,415,386
<p>I am writing a program in which I add students to a roster using linked lists. I am successful at adding the first student, but upon adding subsequent students, my program prints &quot;Student already exists&quot; even when the student doesn't exist yet. Below is my add function.</p> <pre><code>struct student *add(s...
[ { "answer_id": 74415283, "author": "kvr", "author_id": 5923576, "author_profile": "https://Stackoverflow.com/users/5923576", "pm_score": 1, "selected": false, "text": "3.78" }, { "answer_id": 74415304, "author": "StellarClown", "author_id": 10026471, "author_profile":...
2022/11/12
[ "https://Stackoverflow.com/questions/74415386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20013829/" ]
74,415,389
<p>Why is the send_keys function ignoring spaces in my python script? I used vnc on ubuntu/debian 10. Everything works correctly when I run the script on my computer, but all spaces disappear on vps with vnc. Error is in Google chrome. `</p> <pre><code>element.send_keys(&quot;1 2 3&quot;) result: &quot;123&quot; </cod...
[ { "answer_id": 74415283, "author": "kvr", "author_id": 5923576, "author_profile": "https://Stackoverflow.com/users/5923576", "pm_score": 1, "selected": false, "text": "3.78" }, { "answer_id": 74415304, "author": "StellarClown", "author_id": 10026471, "author_profile":...
2022/11/12
[ "https://Stackoverflow.com/questions/74415389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15446570/" ]
74,415,438
<p>I'm trying to find the factorial of a number in C#. (The factorial of five is this: 5! 5x4x3x2x1) The console displays &quot;no output&quot; even though I requested to print a variable. Some syntax may be wrong, too.</p> <p>I would like if you guys could try to not use a different thing like arrays to print a value....
[ { "answer_id": 74415514, "author": "MDCCXXIX", "author_id": 20487756, "author_profile": "https://Stackoverflow.com/users/20487756", "pm_score": 0, "selected": false, "text": "using System; \n public class FactorialCalculator \n { \n public static void Main(string[] args) \n ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20444883/" ]
74,415,476
<p>I'm new on the OCR world and I have document with numbers to analyse with Python, openCV and pytesserract. The files I received are pdfs and the numbers are not text. So, I converted it to jpg with this :</p> <pre><code>first_page = convert_from_path(path__to_pdf, dpi=600, first_page=1, last_page=1) first_page[0].sa...
[ { "answer_id": 74438855, "author": "Esraa Abdelmaksoud", "author_id": 5617608, "author_profile": "https://Stackoverflow.com/users/5617608", "pm_score": 1, "selected": false, "text": " 0 Orientation and script detection (OSD) only.\n 1 Automatic page segmentation with OSD.\n 2 ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17939631/" ]
74,415,536
<p>In the leading DeepLearning libraries, does the filter (aka kernel or weight) in the convolutional layer convolves also across the &quot;channel&quot; dimension or does it take all the channels at once? To make an example, if the input dimension is <code>(60,60,10)</code> (where the last dimension is often referred ...
[ { "answer_id": 74438855, "author": "Esraa Abdelmaksoud", "author_id": 5617608, "author_profile": "https://Stackoverflow.com/users/5617608", "pm_score": 1, "selected": false, "text": " 0 Orientation and script detection (OSD) only.\n 1 Automatic page segmentation with OSD.\n 2 ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1586860/" ]
74,415,572
<pre><code>{ id: 23323091, userId: 1743514, teamId: 1693131, name: 'test1' }, { id: 2332950, userId: 1743514, teamId: 1693131, name: 'test2' }, { id: 23323850, userId: 1743514, teamId: 1693131, name: 'test3' } </code></pre> <p>Im trying find soluti...
[ { "answer_id": 74415627, "author": "LeoDog896", "author_id": 7589775, "author_profile": "https://Stackoverflow.com/users/7589775", "pm_score": 2, "selected": true, "text": "const elements = [\n\n {\n id: 23323091,\n userId: 1743514,\n teamId: 1693131,\n name: 'test1'\n },\n...
2022/11/12
[ "https://Stackoverflow.com/questions/74415572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17055039/" ]
74,415,578
<p>Hello <strong>Stack OF</strong> Community,</p> <p>*<br /> Basically my goal is to extract values from an excel file, after reading through data from another column.*</p> <p>**<br /> Thickness** of parcel, with values for example - <strong>[0.12, 0.12, 0.13, 0.14, 0.14, 0.15]</strong> (Heading: Thickness (mm))<br />...
[ { "answer_id": 74416015, "author": "Dimitrius", "author_id": 5558953, "author_profile": "https://Stackoverflow.com/users/5558953", "pm_score": 1, "selected": true, "text": "import pandas as pd\n\n# uncomment to read the file\n# df = pd.read_excel('tmp.xlsx', index_col=None)\n\ndf = pd.Da...
2022/11/12
[ "https://Stackoverflow.com/questions/74415578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18112336/" ]
74,415,582
<p>I have address of an struct store in int variable. Can I dereference the struct??</p> <p>say: int x = 3432234; // memory address of struct now I want to access the some struct from it.</p> <p>I have been suggest these steps.</p> <ol> <li>store the address in an int variable</li> <li>cast that int to a struct pointer...
[ { "answer_id": 74416015, "author": "Dimitrius", "author_id": 5558953, "author_profile": "https://Stackoverflow.com/users/5558953", "pm_score": 1, "selected": true, "text": "import pandas as pd\n\n# uncomment to read the file\n# df = pd.read_excel('tmp.xlsx', index_col=None)\n\ndf = pd.Da...
2022/11/12
[ "https://Stackoverflow.com/questions/74415582", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19111495/" ]
74,415,597
<p>I'm trying to use curl to set up a cron to reboot my WD N900 Router on a regular basis.</p> <p>Using Chrome's developer tools, when I login to the the router via its WebGUI, it brings me to &quot;authentication.cgi&quot;. Here's its essential components copied as a curl (bash):</p> <pre><code>curl 'http://192.168.1....
[ { "answer_id": 74418339, "author": "Misunderstood", "author_id": 3813605, "author_profile": "https://Stackoverflow.com/users/3813605", "pm_score": 1, "selected": false, "text": "curl_setopt($ch, CURLOPT_COOKIE, uid=9auO5hcbq8; QPYVIXOAZD=admin;);\n CHALLENGE=bdce6395-f46b-4306-a61b-1ec2d...
2022/11/12
[ "https://Stackoverflow.com/questions/74415597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15999716/" ]
74,415,598
<h3>My problem</h3> <p>I have 2 <strong>adjacent</strong> buffers of bytes of identical size (around 20 MB each). I just want to count the differences between them.</p> <h3>My question</h3> <p>How much time this loop should take to run on a 4.8GHz Intel I7 9700K with 3600MT RAM ?</p> <p>How do we compute max theoretica...
[ { "answer_id": 74418609, "author": "Peter Cordes", "author_id": 224132, "author_profile": "https://Stackoverflow.com/users/224132", "pm_score": 3, "selected": false, "text": "pmovsxbq -O3 -march=native psadbw vsum -= cmp(p, q) psadbw uint8_t sum vpcmpeqb != vpcmpeqb vmovdqu // micro-opti...
2022/11/12
[ "https://Stackoverflow.com/questions/74415598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487094/" ]
74,415,616
<p>I'm trying to refresh the authentication token every few minutes using a refresh token. My problem is that the token is saved in a <code>Context</code> (using <code>useContext</code> to retrieve it when necessary) and I'm struggling to use a <code>setInterval</code>-like function to read the current token, POST it t...
[ { "answer_id": 74418609, "author": "Peter Cordes", "author_id": 224132, "author_profile": "https://Stackoverflow.com/users/224132", "pm_score": 3, "selected": false, "text": "pmovsxbq -O3 -march=native psadbw vsum -= cmp(p, q) psadbw uint8_t sum vpcmpeqb != vpcmpeqb vmovdqu // micro-opti...
2022/11/12
[ "https://Stackoverflow.com/questions/74415616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1833200/" ]
74,415,629
<p>I'm trying to implement the <code>ls</code> command in C with a few parameters like <code>-a</code>, <code>-l</code>... or <code>-la</code>, but I'm having issues with the parsing, when I use the input I get Segmentation Fault, this is an example of the <code>-a</code> parameter:</p> <pre><code>int comparator(char *...
[ { "answer_id": 74415676, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 0, "selected": false, "text": "comparator my_strcmp((av[i]), \"-a\") av char * my_strcmp -Wall -Werror my_ls_a ac av" }, { "answer_id": 744...
2022/11/12
[ "https://Stackoverflow.com/questions/74415629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19557737/" ]
74,415,634
<p>I created a class called Cards and I need to create a function called <code>points(self)</code> which returns that card and its associated points. For example the I have three lists I created,</p> <pre><code>Card_rank = [&quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;Q&quot;, &quot;...
[ { "answer_id": 74415676, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 0, "selected": false, "text": "comparator my_strcmp((av[i]), \"-a\") av char * my_strcmp -Wall -Werror my_ls_a ac av" }, { "answer_id": 744...
2022/11/12
[ "https://Stackoverflow.com/questions/74415634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487839/" ]
74,415,641
<p>I'm trying to make an image to open on another location on the page while its been hovered. I looked online but didn't find a way to do that functionallty usuing only html and css. Anyone know how to achive that?</p> <p>Not hovered: <a href="https://i.stack.imgur.com/GweOk.png" rel="nofollow noreferrer"><img src="ht...
[ { "answer_id": 74415676, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 0, "selected": false, "text": "comparator my_strcmp((av[i]), \"-a\") av char * my_strcmp -Wall -Werror my_ls_a ac av" }, { "answer_id": 744...
2022/11/12
[ "https://Stackoverflow.com/questions/74415641", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18439551/" ]
74,415,648
<p>I have query:</p> <pre><code>SELECT (SELECT employee_title FROM sf_employee WHERE id = T1.worker_ref_id) AS employee_title, (SELECT sex FROM sf_employee WHERE id = T1.worker_ref_id) AS sex, ((SELECT salary FROM sf_employee WHERE id = T1.worker_ref_id) + bonus_sum) as sum_plus_bonus FROM (SELECT work...
[ { "answer_id": 74415720, "author": "Slonsoid", "author_id": 20474992, "author_profile": "https://Stackoverflow.com/users/20474992", "pm_score": 2, "selected": false, "text": "SELECT FROM subquery SELECT \n se.employee_title, se.sex, AVG(se.salary + T1.bonus_sum) AS avg_salary\nFROM\n ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18282659/" ]
74,415,658
<p>I've started learning <code>numpy</code> since yesterday.</p> <p><strong>my AIM is</strong></p> <p>Extract <code>odd index</code> elements from numpy array &amp; <code>even index</code> elements from numpy and merge side by side vertically.</p> <p>Let's say I have the array</p> <pre><code>mat = np.array([[1, 1, 0, 0...
[ { "answer_id": 74415784, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": false, "text": "mat[np.r_[1:mat.shape[0]:2,:mat.shape[0]:2]].T\n array([[0, 0, 1, 1, 1],\n [1, 0, 1, 0, 0],\n [0, 0, 0,...
2022/11/12
[ "https://Stackoverflow.com/questions/74415658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487724/" ]
74,415,661
<p>I have a MATLAB application that reads a .bin file and parses through the data. I am trying to convert this script from MATLAB to Python but am seeing discrepancies in the values being read.</p> <p>The read function utilized in the MATLAB script is:</p> <pre class="lang-matlab prettyprint-override"><code>fname = 'fi...
[ { "answer_id": 74415789, "author": "Ahmed AEK", "author_id": 15649230, "author_profile": "https://Stackoverflow.com/users/15649230", "pm_score": 0, "selected": false, "text": "fname = 'file.bin'\nwith open(fname, mode='rb') as f:\n bytes_arr = f.read(100)\n # Conversion for visual ...
2022/11/12
[ "https://Stackoverflow.com/questions/74415661", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10935387/" ]
74,415,677
<p>I am writing a small project on django with an app 'santechnic' and ran into a problem.to In which folder should I upload the images in the model Product so that the get request can find them?</p> <blockquote> <p>santechnic/models.py</p> </blockquote> <pre><code>class Category(models.Model): category_name = models.C...
[ { "answer_id": 74418094, "author": "Ardu1na", "author_id": 20381841, "author_profile": "https://Stackoverflow.com/users/20381841", "pm_score": -1, "selected": false, "text": "pip install pillow\n" }, { "answer_id": 74418893, "author": "Manoj Tolagekar", "author_id": 17808...
2022/11/12
[ "https://Stackoverflow.com/questions/74415677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473088/" ]
74,415,710
<p>I wanted to make a Japanese transliteration program. I won't explain the details, but some characters in pairs have different values ​​than if they were separated, so I made a loop that gets two characters (current and next)</p> <pre><code>b = &quot;きゃきゃ&quot; b = list(b) name = &quot;&quot; for i in b: if b.ind...
[ { "answer_id": 74418094, "author": "Ardu1na", "author_id": 20381841, "author_profile": "https://Stackoverflow.com/users/20381841", "pm_score": -1, "selected": false, "text": "pip install pillow\n" }, { "answer_id": 74418893, "author": "Manoj Tolagekar", "author_id": 17808...
2022/11/12
[ "https://Stackoverflow.com/questions/74415710", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434184/" ]
74,415,752
<p>When running the LINQ Query below against Oracle 11g instance, it will throw an OUTER APPLY not supported error.</p> <pre class="lang-cs prettyprint-override"><code>var shipmentDetails = ( from r in _db.XXF_SHIPMENT_DETAILs where r.SHIP_TO == tradingPartnerId &amp;&amp; r.PICKUP_DATE &gt;= pickUpDate s...
[ { "answer_id": 74418094, "author": "Ardu1na", "author_id": 20381841, "author_profile": "https://Stackoverflow.com/users/20381841", "pm_score": -1, "selected": false, "text": "pip install pillow\n" }, { "answer_id": 74418893, "author": "Manoj Tolagekar", "author_id": 17808...
2022/11/12
[ "https://Stackoverflow.com/questions/74415752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/129580/" ]
74,415,809
<p>Its a simple poll app in Js. where user vote count and percentages will change accordingly. But the problem i am facing is the percentages are not updated, lets say total vote is 5 and yes vote is 3 among them so yes vote percentage should be updates as the no votes comes along but it not been updated automatically...
[ { "answer_id": 74418094, "author": "Ardu1na", "author_id": 20381841, "author_profile": "https://Stackoverflow.com/users/20381841", "pm_score": -1, "selected": false, "text": "pip install pillow\n" }, { "answer_id": 74418893, "author": "Manoj Tolagekar", "author_id": 17808...
2022/11/12
[ "https://Stackoverflow.com/questions/74415809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19928051/" ]
74,415,821
<p>this creates an infinite loop</p> <pre><code>for (i=0;++i;){ console.log(i) } </code></pre> <p>this one doesn't even executed why</p> <pre><code>for (i=0;i++;){ console.log(i) } </code></pre> <p>want to understand it completely in depth</p>
[ { "answer_id": 74415851, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 2, "selected": true, "text": "for(/* runs first before the loop */;\n/* runs before every iteration, if this one is falsy, the loop breaks */;\n/* r...
2022/11/12
[ "https://Stackoverflow.com/questions/74415821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487930/" ]
74,415,857
<p>I'm trying to learn Node.js and I'm currently making an Express app (using ejs) that will return values from a <strong>MySQL database</strong>, depending on the URL the user visits.</p> <p>For example, visiting <code>http://localhost:3000/test</code> will list all users from the db table <code>users</code>. And the ...
[ { "answer_id": 74415894, "author": "Heiko Theißen", "author_id": 16462950, "author_profile": "https://Stackoverflow.com/users/16462950", "pm_score": 1, "selected": false, "text": "let sql = \"SELECT * FROM users WHERE id = ?\";\ndb.query(sql, [userId], function (err, results, fields) {.....
2022/11/12
[ "https://Stackoverflow.com/questions/74415857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13776183/" ]
74,415,859
<p>I was searching in the net about connection between STM32 microcontroller and AWS IoT core, didnt come across any. I cam across articles where the discovery board of STM32 is used to connect to AWS IoT core. But I want a simple way to connect the STM32 microcontroller to AWS IoT core with the help of WiFi module (si...
[ { "answer_id": 74415894, "author": "Heiko Theißen", "author_id": 16462950, "author_profile": "https://Stackoverflow.com/users/16462950", "pm_score": 1, "selected": false, "text": "let sql = \"SELECT * FROM users WHERE id = ?\";\ndb.query(sql, [userId], function (err, results, fields) {.....
2022/11/12
[ "https://Stackoverflow.com/questions/74415859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20488007/" ]
74,415,866
<p>Why does onClick={props.onClickFunction(1)}&gt; doest not work ?</p> <pre><code>Function Button(props) { // const handleClick = () =&gt; setCounter(counter+1); return ( &lt;button onClick={props.onClickFunction(1)}&gt; +{props.increment} &lt;/button&gt; } </code></pre> <p>Why should I use ano...
[ { "answer_id": 74415956, "author": "Dakeyras", "author_id": 1857909, "author_profile": "https://Stackoverflow.com/users/1857909", "pm_score": 2, "selected": false, "text": "// top example\nhandleClick = () => props.onClickFunction(1)\n\n// bottom example\nhandleClick = props.onClickFunct...
2022/11/12
[ "https://Stackoverflow.com/questions/74415866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13996575/" ]
74,415,867
<p>Hello I wanted to test my method from an interface that extends from JpaRepository but I've go a strange behaviour. Every single test passes but when I run them all together the test named <code>shouldFindSingleRecipeByName()</code> doesn't pass and the error is:</p> <pre class="lang-java prettyprint-override"><code...
[ { "answer_id": 74419432, "author": "Oleksii Zghurskyi", "author_id": 2810730, "author_profile": "https://Stackoverflow.com/users/2810730", "pm_score": 1, "selected": false, "text": ".containsExactly .containsExactlyInAnyOrder .isEqualTo ArrayList" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74415867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10937817/" ]
74,415,884
<p>I know this code won't work in the current state because it will just select the first <code>modal</code> class. I have tried many variations of using <code>querySelectorAll</code> and <code>forEach</code> loops in the functions and event listeners but I can't seem to get it right.</p> <p>How can I convert the curre...
[ { "answer_id": 74419432, "author": "Oleksii Zghurskyi", "author_id": 2810730, "author_profile": "https://Stackoverflow.com/users/2810730", "pm_score": 1, "selected": false, "text": ".containsExactly .containsExactlyInAnyOrder .isEqualTo ArrayList" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74415884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8298834/" ]
74,415,900
<p>I have a pretty basic problem that I can't seem to solve:</p> <p>Take 3 vectors:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>V1</th> <th>V2</th> <th>V3</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>4</td> <td>7</td> </tr> <tr> <td>2</td> <td>5</td> <td>8</td> </tr> <tr> <td>3</td> ...
[ { "answer_id": 74415953, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "stack list stack(setNames(mget(paste0(\"V\", 1:3)), LETTERS[1:3]))[2:1]\n ind values\n1 A 1\n2 A 2\n3 A...
2022/11/12
[ "https://Stackoverflow.com/questions/74415900", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1410769/" ]
74,415,908
<p>I've got number of places where I need to use an address in my app so I tried to make this DRY and create an address partial view like this:</p> <pre><code>@model AddressEditViewModel &lt;div class=&quot;mb-3&quot;&gt; &lt;label asp-for=&quot;Address1&quot; class=&quot;form-label&quot;&gt;&lt;/label&gt; &lt...
[ { "answer_id": 74415953, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "stack list stack(setNames(mget(paste0(\"V\", 1:3)), LETTERS[1:3]))[2:1]\n ind values\n1 A 1\n2 A 2\n3 A...
2022/11/12
[ "https://Stackoverflow.com/questions/74415908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339332/" ]
74,415,916
<p>My goal is to import a table of astrophysical data that I have saved to my computer (obtained from matching 2 other tables in TOPCAT, if you know it), and extract certain relevant columns. I hope to then do further manipulations on these columns. I am a complete beginner in python, so I apologise for basic errors. I...
[ { "answer_id": 74415953, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "stack list stack(setNames(mget(paste0(\"V\", 1:3)), LETTERS[1:3]))[2:1]\n ind values\n1 A 1\n2 A 2\n3 A...
2022/11/12
[ "https://Stackoverflow.com/questions/74415916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487613/" ]
74,415,918
<p>I have two inputs</p> <p>An NxM city grid where empty spaces represent vacant lots, and X's represent filled lots</p> <p>e.g</p> <pre><code>X XXX X X XXXX XX X </code></pre> <p>This is in the format List[List[str]]</p> <p>And an integer that represents the number of buildings required.</p> <p>Return a list of a...
[ { "answer_id": 74415953, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "stack list stack(setNames(mget(paste0(\"V\", 1:3)), LETTERS[1:3]))[2:1]\n ind values\n1 A 1\n2 A 2\n3 A...
2022/11/12
[ "https://Stackoverflow.com/questions/74415918", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7734195/" ]
74,415,922
<p>I have a class with the following property exposed in the .h file:</p> <pre><code>@property (readonly, nonnull) NSArray&lt;String *&gt; * routeContext; </code></pre> <p>As you can see this is a <code>NSArray</code> which is not mutable. In the implementation though I want to be able to work with this array as a mut...
[ { "answer_id": 74417687, "author": "HangarRash", "author_id": 20287183, "author_profile": "https://Stackoverflow.com/users/20287183", "pm_score": 1, "selected": false, "text": "NSMutableArray @interface SomeClass()\n\n@property (nonatomic, strong) NSMutableArray<NSString *> *myRouteConte...
2022/11/12
[ "https://Stackoverflow.com/questions/74415922", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8025085/" ]
74,415,932
<p>I'm learning Python from Brian Heinold's A Practical Introduction to Python Programming where exercise 24 in chapter 6 reads:</p> <blockquote> <p>In calculus, the derivative of <i>x</i><sup>4</sup> is 4<i>x</i><sup>3</sup>. The derivative of <i>x</i><sup>5</sup> is 5<i>x</i><sup>4</sup>. The derivative of <i>x</i>6 ...
[ { "answer_id": 74416043, "author": "alexis", "author_id": 699305, "author_profile": "https://Stackoverflow.com/users/699305", "pm_score": 2, "selected": false, "text": "digits = \"0123456789\"\npower = \"25\" # from user input\nlast = power[-1]\nif last != \"0\":\n # Subtract from...
2022/11/12
[ "https://Stackoverflow.com/questions/74415932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19567777/" ]
74,415,937
<p>Anyone know the cause of this error?</p> <pre><code>warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works TypeError: Cannot read properties of null (reading 'length') at eval (webpack-internal:///./node_modules/next/dist/client/dev/er...
[ { "answer_id": 74466297, "author": "nick vanderkolk", "author_id": 8560960, "author_profile": "https://Stackoverflow.com/users/8560960", "pm_score": 2, "selected": false, "text": "const hasUpdates = Boolean(updatedModules.length); const hasUpdates = Boolean(updatedModules && updatedModul...
2022/11/12
[ "https://Stackoverflow.com/questions/74415937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20216544/" ]
74,415,972
<p>An assignment is requesting that I qualify input number to ensure that it is within range of an unsigned-int on my machine. How do I determine what that range is? it says that the input needs to be taken in at execution time and that no assumptions can be made about what was entered.</p> <p>I tried using plugging in...
[ { "answer_id": 74416315, "author": "Andreas Wenzel", "author_id": 12149471, "author_profile": "https://Stackoverflow.com/users/12149471", "pm_score": 1, "selected": false, "text": "strtoul ULONG_MAX strtoul errno unsigned long unsigned int strtoul UINT_MAX strtoul get_unsigned_int_from_u...
2022/11/12
[ "https://Stackoverflow.com/questions/74415972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486502/" ]