qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,613,334 | <p>possible null reference argument for parameter 's' parse in 'double double.Parse(string s)'</p>
<pre><code>dr = cm.ExecuteReader();
while (dr.Read())
{
i += 1;
_total += double.Parse(s: dr["total"].ToString()); // warning message
dataGridView1.Rows.Add(i, dr["id"].ToString(), dr[&quo... | [
{
"answer_id": 74613410,
"author": "alec_djinn",
"author_id": 3190076,
"author_profile": "https://Stackoverflow.com/users/3190076",
"pm_score": 0,
"selected": false,
"text": "def parse_entry(entry):\n\n #remove currency and spaces\n entry = entry.replace(\"Kč\", \"\")\n entry = ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20132700/"
] |
74,613,349 | <p>I'm new with Redux, and I'd like to improve performances of my web app as much as possible.</p>
<p>I have a state in redux, that I store in a variable to display it later.</p>
<p>Here is the code :</p>
<pre><code>const metricsState = useSelector((state: MetricsStateObject) => state.MetricsState);
const myMetrics ... | [
{
"answer_id": 74614008,
"author": "Alvin",
"author_id": 4134662,
"author_profile": "https://Stackoverflow.com/users/4134662",
"pm_score": 1,
"selected": true,
"text": "metricsState.myMetrics value-taking useMemo"
},
{
"answer_id": 74614018,
"author": "Wraithy",
"author_i... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17978333/"
] |
74,613,359 | <pre><code>::tm tm{0, 0, 0, 29, 10, 2022 - 1900, 0, 0}; // 10 for November
auto time_t = ::mktime(&tm);
cout << "milliseconds = " << time_t * 1000 << endl;
</code></pre>
<p>Above code outputs <code>1669660200000</code>, which is equivalent to <strong>2022 November 29, 00:00:00</strong>.... | [
{
"answer_id": 74615623,
"author": "Howard Hinnant",
"author_id": 576911,
"author_profile": "https://Stackoverflow.com/users/576911",
"pm_score": 2,
"selected": true,
"text": "tm #include \"date/date.h\"\n#include <chrono>\n#include <iostream>\n\nint\nmain()\n{\n using namespace std;\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514235/"
] |
74,613,413 | <p>```const timeoutError = new error_1.MongoServerSelectionError(<code>Server selection timed out after ${serverSelectionTimeoutMS} ms</code>, this.description);
.MongoServerSelectionError: connect ECONNREFUSED ::1:27017</p>
<pre><code>const {MongoClient}=require('mongodb');
const url='mongodb://localhost:27017/';
co... | [
{
"answer_id": 74613928,
"author": "Iangyl",
"author_id": 12228149,
"author_profile": "https://Stackoverflow.com/users/12228149",
"pm_score": 0,
"selected": false,
"text": "Control Panel\\System and Security\\Administrative Tools npm start"
},
{
"answer_id": 74614470,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19856261/"
] |
74,613,420 | <p>How can I return the <strong>second</strong> most frequent text in a column?</p>
<p>I know that I can find the most frequent text in A2:A60 by using =INDEX(A2:A60;MODE(MATCH(A2:A60;A2:A60;0)))</p>
| [
{
"answer_id": 74613634,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 2,
"selected": false,
"text": "B1 =INDEX(SORTBY(UNIQUE(A1:A9),COUNTIF(A1:A9,UNIQUE(A1:A9)),-1),2)\n =LET(a,UNIQUE(A1:A9),b,COUNTIF(A1:A9,a),TAKE(SORT(... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17298382/"
] |
74,613,484 | <p>I am trying to get data from the db into node js but getting error . I have got the data from the frontend and stored it in the backend but when I try to get the stored data I get error.</p>
<p>React js:(frontend)</p>
<pre><code>import React, { useEffect } from "react";
import axios from "axios";... | [
{
"answer_id": 74613633,
"author": "rehan.ankalgi",
"author_id": 16041272,
"author_profile": "https://Stackoverflow.com/users/16041272",
"pm_score": 0,
"selected": false,
"text": "// package.json\nproxy: \"http://localhost:4040\"\n"
},
{
"answer_id": 74613697,
"author": "reha... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18036750/"
] |
74,613,491 | <p>I'm using DOMMatrix to set transform on a canvas context, but I am not sure how to "fix" the translation after the rotate. Currently the code I've written rotates an image around a given point on the canvas, which works fine. The issue is after the rotation, the translate moves relative to the rotation, wh... | [
{
"answer_id": 74614327,
"author": "ibrahim tanyalcin",
"author_id": 9410412,
"author_profile": "https://Stackoverflow.com/users/9410412",
"pm_score": 0,
"selected": false,
"text": "const matrix = new DOMMatrix()\n.translate(imgWidth/2, imgHeight/2)\n.rotate(rotation)\n.scale(scale)\n.tr... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2413722/"
] |
74,613,493 | <p>I have this relationship</p>
<pre><code>Class Item(models.Model):
pass
Class Category(models.Model):
items = models.ManyToManyField(Item)
</code></pre>
<p>I can define the field name as <code>items</code> for category and access it via <code>category.items</code> but I want to define a field name for Item too... | [
{
"answer_id": 74615469,
"author": "techbipin",
"author_id": 20615126,
"author_profile": "https://Stackoverflow.com/users/20615126",
"pm_score": -1,
"selected": false,
"text": "# models.py\n\nclass Item(models.Model):\n item_name = models.CharField(max_length=255, default=\"\")\n\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8340761/"
] |
74,613,506 | <p>I have two tables of users and articles and I want to count how many new users and how many new articles I have in the past 7 days.</p>
<p>tbl_users:</p>
<pre><code>[Code, Username, Createdate]
1,David,01/01/2022
2,Henry,02/01/2022
</code></pre>
<p>tbl_articles:</p>
<pre><code>[Code, Header, Createdate]
1,Hello,01... | [
{
"answer_id": 74615469,
"author": "techbipin",
"author_id": 20615126,
"author_profile": "https://Stackoverflow.com/users/20615126",
"pm_score": -1,
"selected": false,
"text": "# models.py\n\nclass Item(models.Model):\n item_name = models.CharField(max_length=255, default=\"\")\n\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2396640/"
] |
74,613,542 | <p>Trying to get data from products.json file and store it in Products[] mention in file JsonFileProductServices.cs but getting this error
'The JSON value could not be converted to System.Int32. Path: $[0].id | LineNumber: 2 | BytePositionInLine: 33.'</p>
<p>JsonFileProductServices.cs is basically service to fetch data... | [
{
"answer_id": 74614041,
"author": "Serge",
"author_id": 11392290,
"author_profile": "https://Stackoverflow.com/users/11392290",
"pm_score": 2,
"selected": true,
"text": " \"id\" : \"jenlooper-survival\",\n public class Product\n{\n public int Id { get; set; }\n .....\n}... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572601/"
] |
74,613,553 | <p>I would like to change the values of this list by alternating the 0 and 1 values in a checkerboard pattern.</p>
<pre><code>table =
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
</code></... | [
{
"answer_id": 74613591,
"author": "JayPeerachai",
"author_id": 12135518,
"author_profile": "https://Stackoverflow.com/users/12135518",
"pm_score": 3,
"selected": true,
"text": "for i in range(len(table)):\n for j in range(len(table[i])):\n if (i+j)%2 == 0:\n table[i... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20592093/"
] |
74,613,639 | <p>I am putting together some summary stats of a dataframe about biomass at different sights. Here's some dummy data:</p>
<pre><code>df1 <- data.frame(ID = c(1, 2, 3, 4, 5,6,7,8,9,10,11),
Reach = c('a', 'b', 'c', 'a', 'a', 'b', 'c', 'c','b','c','a'),
Bio = c(12, 11, 10.4, 10, 12.5, 14, 12, 17, 17.5, 17.3, 16.2))
</c... | [
{
"answer_id": 74614069,
"author": "Robert Hacken",
"author_id": 2094893,
"author_profile": "https://Stackoverflow.com/users/2094893",
"pm_score": 3,
"selected": true,
"text": "sigma.x test1$conf.int[1] z.test test <- t.test(df1$Bio)\nsumstats$Conf.Int.Lower <- test$conf.int[1]\n sumstat... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12989135/"
] |
74,613,647 | <p>I have a dataframe (df_obs) indexed by date containing one column with a length in number of days of something being observed:</p>
<pre><code>Date duration
2012-01-01 3
2013-04-01 26
2014-05-01 14
2016-01-01 297
</code></pre>
<p>I am trying to repurpose this dataframe to provide a binary indication o... | [
{
"answer_id": 74614069,
"author": "Robert Hacken",
"author_id": 2094893,
"author_profile": "https://Stackoverflow.com/users/2094893",
"pm_score": 3,
"selected": true,
"text": "sigma.x test1$conf.int[1] z.test test <- t.test(df1$Bio)\nsumstats$Conf.Int.Lower <- test$conf.int[1]\n sumstat... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10071715/"
] |
74,613,675 | <pre class="lang-py prettyprint-override"><code>lv_seconds_back = mv_time_horizon.select(col("max(time_horizon)") * 60).show()
mv_now =spark.sql("select from_unixtime(unix_timestamp()) as mv_now")
local_date_time =mv_now.select(date_format('mv_now', 'HH:mm:ss').alias("local_date_time... | [
{
"answer_id": 74614069,
"author": "Robert Hacken",
"author_id": 2094893,
"author_profile": "https://Stackoverflow.com/users/2094893",
"pm_score": 3,
"selected": true,
"text": "sigma.x test1$conf.int[1] z.test test <- t.test(df1$Bio)\nsumstats$Conf.Int.Lower <- test$conf.int[1]\n sumstat... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11148994/"
] |
74,613,676 | <pre><code>const express = require("express")
const app = express()
app.post("/create1",(req,resp)=>{
console.log("server started")
resp.send("done")
})
app.listen(3000)
</code></pre>
<p>I should get a</p>
<pre><code>send
</code></pre>
<p>on the</p>
<pre><code> https:... | [
{
"answer_id": 74614069,
"author": "Robert Hacken",
"author_id": 2094893,
"author_profile": "https://Stackoverflow.com/users/2094893",
"pm_score": 3,
"selected": true,
"text": "sigma.x test1$conf.int[1] z.test test <- t.test(df1$Bio)\nsumstats$Conf.Int.Lower <- test$conf.int[1]\n sumstat... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13153007/"
] |
74,613,690 | <p>I am trying to read a tif file using <code>terra</code> r package using the following code</p>
<pre><code>hh <- rast("imagery_HH.tif")
#> Warning message:
#> [rast] unknown extent
hh
#> class : SpatRaster
#> dimensions : 8371, 8946, 1 (nrow, ncol, nlyr)
#> resolution : 1, 1 (x... | [
{
"answer_id": 74645989,
"author": "Anthony Martinez",
"author_id": 7470643,
"author_profile": "https://Stackoverflow.com/users/7470643",
"pm_score": 0,
"selected": false,
"text": "terra::rast raster::raster terra hh <- terra::rast(\"imagery_HH.tif\")\nterra::set.ext(\n x = hh, \n valu... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6123824/"
] |
74,613,699 | <p>I have been dealing with a issue that I cant solve in specifically c language in output terminal I want my cursor in previous line
for example</p>
<pre><code>prints("hello\n");
prints("Hi");
</code></pre>
<p>If want to print hi in near horizontal to hello but not my removing <code>\n</code> or by... | [
{
"answer_id": 74613907,
"author": "Elia Karrer",
"author_id": 17653989,
"author_profile": "https://Stackoverflow.com/users/17653989",
"pm_score": 0,
"selected": false,
"text": "printf(\"\\b\"); // 1 character back\n\nprintf(\"\\r\"); // Beginning of line\n #include <windows.h>\n\n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20632953/"
] |
74,613,704 | <p>The dataset (named Politics) that I am working on looks as follows:</p>
<p><a href="https://i.stack.imgur.com/tkBkB.png" rel="nofollow noreferrer">Current Dataset of every country in the world</a></p>
<p>However, my original data set contains the years 1997, 1999 and 2001 as well.
As one can see in the picture, ever... | [
{
"answer_id": 74615015,
"author": "islem",
"author_id": 11952767,
"author_profile": "https://Stackoverflow.com/users/11952767",
"pm_score": 0,
"selected": false,
"text": "dplyr::full_join(current_dataset,Original dataset, by=c(\"Country Name\"=\"Country\", \"Time\"=\"Time\")\n"
},
{... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20131260/"
] |
74,613,705 | <p>hi i want to access the mainwindow attributes and change some of its labels and button's states in my toplevel class however it can not find them. so im not sure how to use opp approach in tkinter and i tried using super__init__ and textvariable but i failed. the main problem is inheritance in tkinter frame work and... | [
{
"answer_id": 74615015,
"author": "islem",
"author_id": 11952767,
"author_profile": "https://Stackoverflow.com/users/11952767",
"pm_score": 0,
"selected": false,
"text": "dplyr::full_join(current_dataset,Original dataset, by=c(\"Country Name\"=\"Country\", \"Time\"=\"Time\")\n"
},
{... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20630480/"
] |
74,613,726 | <p>Im able to get the sum in dataGridView but having trouble on properly getting the average.</p>
<pre><code>foreach (DataGridViewRow row in dataGridView.Rows) {
row.Cells["Average"].Value = Convert.ToDouble(row.Cells[4].Value) +
Convert.ToDouble(row.Cells[5].Value) +
Convert.ToDouble(row.Cells[6]... | [
{
"answer_id": 74613827,
"author": "YungDeiza",
"author_id": 19214431,
"author_profile": "https://Stackoverflow.com/users/19214431",
"pm_score": 2,
"selected": true,
"text": "foreach (DataGridViewRow row in dataGridView.Rows)\n row.Cells[\"Average\"].Value = (Convert.T... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20632993/"
] |
74,613,737 | <p>I created a script in JavaScript to take value from one input and place it in several inputs, but I have a problem that value is only put in the first input.</p>
<p>The JavaScript code is:</p>
<pre><code>jQuery(document).ready(function ($) {
var $apartament = $('#value-apartament'),
$permetru = $('#put-value');
$... | [
{
"answer_id": 74613827,
"author": "YungDeiza",
"author_id": 19214431,
"author_profile": "https://Stackoverflow.com/users/19214431",
"pm_score": 2,
"selected": true,
"text": "foreach (DataGridViewRow row in dataGridView.Rows)\n row.Cells[\"Average\"].Value = (Convert.T... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19249464/"
] |
74,613,777 | <p>I want to create a dropdown menu using javaScript, however I have created a dropdown list using an array, but I am struggling to add the mouseOver event such that, when a user over a specific list item, the list item color changes to lightpink, bg color to black and shows a cursor pointer.</p>
<p>Finally , When I tr... | [
{
"answer_id": 74614549,
"author": "Satsangpriyadas Swami",
"author_id": 9677279,
"author_profile": "https://Stackoverflow.com/users/9677279",
"pm_score": 1,
"selected": false,
"text": "...\n dropdownList.innerHTML = \"\";\n for (let i = 0; i < countries.length; i++) {\n...\n"
},... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13843563/"
] |
74,613,781 | <p>For Examle I have Request Validation</p>
<pre><code>'images.*' => 'mimes:jpg,jpeg|max:10240',
'images' => 'max:5',
</code></pre>
<p>It work In Create But , in update how I can check It , for example I already uploaded 4 image And In update I must add Only One Image , How I can validate ... | [
{
"answer_id": 74614549,
"author": "Satsangpriyadas Swami",
"author_id": 9677279,
"author_profile": "https://Stackoverflow.com/users/9677279",
"pm_score": 1,
"selected": false,
"text": "...\n dropdownList.innerHTML = \"\";\n for (let i = 0; i < countries.length; i++) {\n...\n"
},... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15826225/"
] |
74,613,812 | <p>I have a use case, where i need to match the name <strong>key-value</strong> and according to match, it'll post a result.</p>
<p><strong>Input</strong></p>
<pre class="lang-json prettyprint-override"><code>{
"Dv type": null,
"Environment": null,
"ipa": null,
"category"... | [
{
"answer_id": 74614549,
"author": "Satsangpriyadas Swami",
"author_id": 9677279,
"author_profile": "https://Stackoverflow.com/users/9677279",
"pm_score": 1,
"selected": false,
"text": "...\n dropdownList.innerHTML = \"\";\n for (let i = 0; i < countries.length; i++) {\n...\n"
},... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10932132/"
] |
74,613,826 | <p>Using sklearn, I have just finished training, tuning hyperparameters and testing a Random Forest Multiclass Classifier using RandomizedSearchCV. I have obtained the best parameters, best score and so on. This was all done with a labelled dataset. Now I want to apply this classifier onto an unlabelled dataset (meanin... | [
{
"answer_id": 74614222,
"author": "akilat90",
"author_id": 5864582,
"author_profile": "https://Stackoverflow.com/users/5864582",
"pm_score": 1,
"selected": false,
"text": "forest_search.predict(X_test)"
},
{
"answer_id": 74614938,
"author": "Keithx",
"author_id": 3079439... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,613,853 | <p>I am trying to analyze an earnings call using python regular expression.
I want to delete unnecessary lines which only contain the name and position of the person, who is speaking next.</p>
<p>This is an excerpt of the text I want to analyze:</p>
<p>"Questions and Answers\nOperator [1]\n\n Shannon Siemsen Cro... | [
{
"answer_id": 74613921,
"author": "Thomas",
"author_id": 14637,
"author_profile": "https://Stackoverflow.com/users/14637",
"pm_score": 1,
"selected": true,
"text": "re.sub i for name_line in name_lines:\n text = text.replace(name_line, '')\n"
},
{
"answer_id": 74614215,
"... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15788507/"
] |
74,613,861 | <p>I have the following dataframe called df (<code>dput</code> below):</p>
<pre><code> group indicator value
1 A FALSE 2
2 A FALSE 1
3 A FALSE 2
4 A TRUE 4
5 B FALSE 5
6 B FALSE 1
7 B TRUE 3
</code></pre>
<p>I would like to remove th... | [
{
"answer_id": 74613937,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 1,
"selected": false,
"text": "lead TRUE library(tidyverse)\ndf <- structure(list(group = c(\"A\", \"A\", \"A\", \"A\", \"B\", \"B\", \"B\"), \n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14282714/"
] |
74,613,863 | <p>I want to make a javascript code that if the user is using a chromium browser triggers an alert telling to change to Firefox/Other browser that are not using chromium derivates.</p>
<p>I tried modifying the folowing code:</p>
<pre><code> let notChrome = !/Chrome/.test(navigator.userAgent)
let alertMessag... | [
{
"answer_id": 74613937,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 1,
"selected": false,
"text": "lead TRUE library(tidyverse)\ndf <- structure(list(group = c(\"A\", \"A\", \"A\", \"A\", \"B\", \"B\", \"B\"), \n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633107/"
] |
74,613,887 | <p>What is the simplest way to write this in PowerShell:</p>
<pre><code>SELECT col1, SUM(col3) AS SumOfValues
FROM dbo.Table
GROUP BY col1
</code></pre>
<p>How can I combine <code>Group-Object</code> and <code>Measure-Object</code>?</p>
<p>I have found this answer <a href="https://stackoverflow.com/questions/68680733/p... | [
{
"answer_id": 74613937,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 1,
"selected": false,
"text": "lead TRUE library(tidyverse)\ndf <- structure(list(group = c(\"A\", \"A\", \"A\", \"A\", \"B\", \"B\", \"B\"), \n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10623301/"
] |
74,613,898 | <p>I want to access and print a config parameter in a report.</p>
<p>I have tried this</p>
<pre><code><div t-if="ir.config_paramter">
<span t-field="ir.config_paramter.mymodule.myhtmlfield"/>
</div>
</code></pre>
<p>But I get an error saying it does not know 'ir'</p>
<p>The re... | [
{
"answer_id": 74613937,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 1,
"selected": false,
"text": "lead TRUE library(tidyverse)\ndf <- structure(list(group = c(\"A\", \"A\", \"A\", \"A\", \"B\", \"B\", \"B\"), \n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14234203/"
] |
74,613,902 | <p>I want to do change the name of a key in an <code>Object</code>. But when I want to do this with an if condition, I get this <code>(Assignment to function parameter 'key')</code> error. How can i manipulate a key name ?</p>
<p><strong>My Code:</strong></p>
<pre><code>const personData = [];
Object.keys(testItem).forE... | [
{
"answer_id": 74613937,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 1,
"selected": false,
"text": "lead TRUE library(tidyverse)\ndf <- structure(list(group = c(\"A\", \"A\", \"A\", \"A\", \"B\", \"B\", \"B\"), \n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19443659/"
] |
74,613,903 | <p>Firstly ,I was doing <code>cy.contains(option)</code> with it was clicking the exact value eg -I want to click <code>One</code> but <code>One One</code> is also there so <code>cy.contains</code> not working.</p>
<p>I tried Regex but it is not working</p>
<p>I am trying to click the exact match from drop down writing... | [
{
"answer_id": 74617484,
"author": "Daniel",
"author_id": 197546,
"author_profile": "https://Stackoverflow.com/users/197546",
"pm_score": 0,
"selected": false,
"text": "^ $ // works on <span>One</span> but not on <span> One </span> or <span>One One</span>\ncy.get(`span`).contains(/^One$/... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20625643/"
] |
74,613,924 | <p>Hy! I have a dataframe with two columns latitude and longitude with a wrong format that i want to correct. The structure of de strings in columns is the next</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Lat</th>
<th>Long</th>
</tr>
</thead>
<tbody>
<tr>
<td>-314193332</td>
<td>-641912... | [
{
"answer_id": 74614029,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "N = 2 # number of digits to keep before decimal part\nout = df.div(10**np.floor(np.log10(df.abs())+1).sub(N))\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15386335/"
] |
74,613,951 | <p>im going to create a new react app with npm , but it dos'nt work and i have too many errors each time i try
can someone help me please?:(</p>
<p>i entered this line in cmd</p>
<pre><code>npx create-react-app my-app
</code></pre>
<p>and the errors :</p>
<pre><code>npm ERR! code ECONNRESET
npm ERR! syscall read
npm ER... | [
{
"answer_id": 74614029,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "N = 2 # number of digits to keep before decimal part\nout = df.div(10**np.floor(np.log10(df.abs())+1).sub(N))\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435133/"
] |
74,613,965 | <p>When deploying a custom script extension for a VM in Azure, it times out after 15 minutes. The timeout block is set to 2hrs. I cannot figure out why it keeps timing out. Could anyone point me in the right direction please? Thanks.</p>
<p>Resource to deploy (<a href="https://i.stack.imgur.com/lIfKj.png" rel="nofollow... | [
{
"answer_id": 74614029,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "N = 2 # number of digits to keep before decimal part\nout = df.div(10**np.floor(np.log10(df.abs())+1).sub(N))\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633147/"
] |
74,613,972 | <p><code>Azure Data Explorer</code> uses <code>Kusto Query Language (KQL)</code>. Why <code>Microsoft</code> didn't use <code>SQL</code> ?</p>
<pre><code>LogEvents
| where StartTime > datetime(2021-12-31)
| where EventType == 'Error'
| project StartTime, EventType , Message
</code></pre>
<p>The same could be writte... | [
{
"answer_id": 74614029,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "N = 2 # number of digits to keep before decimal part\nout = df.div(10**np.floor(np.log10(df.abs())+1).sub(N))\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6703783/"
] |
74,613,987 | <p>I have the following function-based view:</p>
<pre><code>def get_emails(request, HOST, USERNAME, PASSWORD):
context = {
'FU_HOST': settings.FU_HOST,
'FU_USERNAME': settings.FU_USERNAME,
'FU_PASSWORD': settings.FU_PASSWORD,
'FV_HOST': settings.FV_HOST,
'FV_USERNAME': settin... | [
{
"answer_id": 74614309,
"author": "Constantinos Petrakis",
"author_id": 11718554,
"author_profile": "https://Stackoverflow.com/users/11718554",
"pm_score": 0,
"selected": false,
"text": "def get_emails(request):\n context = {\n 'FU_HOST': settings.FU_HOST,\n 'FU_USERNAM... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13887772/"
] |
74,613,993 | <p>How can I convert a mutable u8 pointer to a mutable reference of another type?</p>
<pre class="lang-rs prettyprint-override"><code>let ptr: *mut u8;
let reference: &mut SomeType = ?; // What should i do here?
</code></pre>
<p>I have found a sort-of viable solution, but I wonder if there is a better way:</p>
<pr... | [
{
"answer_id": 74614200,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 0,
"selected": false,
"text": "std::mem::transmute use std::mem::transmute;\n#[repr(transparent)]\nstruct SomeStruct(u8);\n\nfn main() {\n let a =... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74613993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12348390/"
] |
74,614,014 | <p>when i change the background color from a div with js its doenst change it on my site.
when i inspect i see that the css gets added inline but it doenst change
this is the code i use in my js file to change the backgroundcolor
i also make the div in this file
i also have to ue js and setattribute because its for sch... | [
{
"answer_id": 74614078,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": false,
"text": "div div let div = document.getElementById(\"status\")\ndiv.addEventListener(\"mouseover\", () => div.setAttribute(... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633221/"
] |
74,614,107 | <p>I am using Amazon's sample code to connect to my S3 bucket. I have changed the key and bucket name for that of my bucket in S3. I have tried using the standard bucket name and using access points however I am still getting the following error.</p>
<pre><code>Error CredentialsProviderError: Could not load credentials... | [
{
"answer_id": 74614334,
"author": "Caldazar",
"author_id": 1992773,
"author_profile": "https://Stackoverflow.com/users/1992773",
"pm_score": 1,
"selected": false,
"text": "instance profiles IAM Roles IAM AmazonS3FullAccess AmazonS3ReadOnlyAccess Actions -> Security - Modify IAM Role"
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633010/"
] |
74,614,112 | <p>hi i have json like this:</p>
<pre><code>"data": {
"list_item": [
{
"item": "1",
"item_date": "1669189813143566825",
"item_id": "0",
"item_info"... | [
{
"answer_id": 74614210,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 2,
"selected": true,
"text": "build late List<ListItem>? listItem =getListController.getListClient!.data!.listItem;\n"
},
{
"answer_i... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10766492/"
] |
74,614,115 | <p>I have a list of scripts doing their own thing (they are actually Rscripts reading modifying and writing files) like this:</p>
<pre><code>## Script 1
echo "1" > file1.out
## Script 2
echo "2" > file2.out
## Script 3
echo "3" > file3.out
</code></pre>
<p>These are saved in diffe... | [
{
"answer_id": 74615131,
"author": "Thomas Guillerme",
"author_id": 9281298,
"author_profile": "https://Stackoverflow.com/users/9281298",
"pm_score": 1,
"selected": true,
"text": "& for task_file in *.task\ndo\n sh ${task_file} &\ndone\nwait\n"
},
{
"answer_id": 74649425,
"a... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9281298/"
] |
74,614,162 | <p>I am trying to extract the colour (Farve) from this text string.
I can't seem to make the extraction either stop, or start the right place.
Also, the length of the target extraction will vary, as colours of course are varying length name.
The picture is of the target texted, wanted in the cell.</p>
<p>Hope some migh... | [
{
"answer_id": 74615131,
"author": "Thomas Guillerme",
"author_id": 9281298,
"author_profile": "https://Stackoverflow.com/users/9281298",
"pm_score": 1,
"selected": true,
"text": "& for task_file in *.task\ndo\n sh ${task_file} &\ndone\nwait\n"
},
{
"answer_id": 74649425,
"a... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633242/"
] |
74,614,170 | <p>My professor wants us to submit our project for our node.js app but we are not allowed to include node_modules in the submission.</p>
<p>When I try to run the app without the folder in there, it crashes due to missing dependencies.</p>
<p>Am i missing a step?</p>
| [
{
"answer_id": 74614194,
"author": "AKX",
"author_id": 51685,
"author_profile": "https://Stackoverflow.com/users/51685",
"pm_score": 1,
"selected": false,
"text": "node_modules package.json npm i yarn"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20316876/"
] |
74,614,225 | <p>Given the following data:</p>
<pre><code>┌─id────────────┬──────────created_at─┬─state─┐
│ 1234567890123 │ 2022-11-26 22:58:28 │ 0 │
│ 1234567890123 │ 2022-11-26 22:57:00 │ 0 │
│ 1234567890123 │ 2022-11-26 22:50:38 │ 0 │
│ 1234567890123 │ 2022-11-26 22:41:46 │ 0 │
│ 1234567890123 │ 2022-11-26 22:37:0... | [
{
"answer_id": 74614194,
"author": "AKX",
"author_id": 51685,
"author_profile": "https://Stackoverflow.com/users/51685",
"pm_score": 1,
"selected": false,
"text": "node_modules package.json npm i yarn"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1151683/"
] |
74,614,246 | <p>From a Google Codelab (can't remember which one), they adviced doing the following for fragments:</p>
<pre><code>class MyFragment : Fragment() {
private var _binding: MyFragmentBinding? = null
private val binding get() = _binding!!
override fun onCreateView(
inflater: LayoutInflater, container:... | [
{
"answer_id": 74614405,
"author": "MoCoding",
"author_id": 11617754,
"author_profile": "https://Stackoverflow.com/users/11617754",
"pm_score": 2,
"selected": false,
"text": "private var binding: MyFragmentBinding? = null\n binding = MyFragmentBinding.inflate(inflater, container, false)\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14969444/"
] |
74,614,253 | <p>I have a list with 72 bounding boxes. This is the dput (just 5 of them).</p>
<pre><code>list(`1` = c(V1 = 7.426758, V2 = 47.398349, V3 = 7.8508356, V4 = 47.686178
), `10` = c(V1 = 7.8508356, V2 = 47.686178, V3 = 8.2749132, V4 = 47.974007
), `11` = c(V1 = 8.2749132, V2 = 47.686178, V3 = 8.6989908, V4 = 47.974007
), `... | [
{
"answer_id": 74614519,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 0,
"selected": false,
"text": "have <- list(`1` = c(V1 = 7.426758, V2 = 47.398349, V3 = 7.8508356, V4 = 47.686178\n), `10` = c(V1 = 7.8508356, V2... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17431143/"
] |
74,614,285 | <p>What I want to implement is like this style. Pls see the picture below.
<a href="https://i.stack.imgur.com/dXy9B.png" rel="nofollow noreferrer">Need show</a></p>
<p>The border is gradient, start color is</p>
<pre><code>#08FFFB
</code></pre>
<p>and the end color is</p>
<pre><code>#FF4EEC
</code></pre>
<p>.And the ba... | [
{
"answer_id": 74614519,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 0,
"selected": false,
"text": "have <- list(`1` = c(V1 = 7.426758, V2 = 47.398349, V3 = 7.8508356, V4 = 47.686178\n), `10` = c(V1 = 7.8508356, V2... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20631548/"
] |
74,614,354 | <p>I have a simple map as below</p>
<pre><code>val myMap = Map("A" -> "AB300","B" -> "XI134","C" -> null)
</code></pre>
<p>I would like to validate the length of a particular key and would like to return the value as string (and not as <code>Option</code> . I t... | [
{
"answer_id": 74614493,
"author": "AminMal",
"author_id": 14672383,
"author_profile": "https://Stackoverflow.com/users/14672383",
"pm_score": 1,
"selected": false,
"text": "null Option myMap.get(\"C\")\n .flatMap(Option.apply) // since some values are null in your map\n .fold(ifEmpty ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6698715/"
] |
74,614,369 | <p>Using a fresh Spring Initialzr with Java17 and Spring Boot 3.0.0, and an extra addition to the pom.xml for Springfox Swagger 3, I can't for the life of me get Swagger pages to work. Instead, I get the whitelabel error page with 404.</p>
<p>Pom.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8&... | [
{
"answer_id": 74614493,
"author": "AminMal",
"author_id": 14672383,
"author_profile": "https://Stackoverflow.com/users/14672383",
"pm_score": 1,
"selected": false,
"text": "null Option myMap.get(\"C\")\n .flatMap(Option.apply) // since some values are null in your map\n .fold(ifEmpty ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5248498/"
] |
74,614,372 | <p>I have a hard drive with thousands of images from a camera-trap proyect. I've used a software that detects in which photos there is an animal. From that I've got a .csv with one column per photo "tagged" with the full directory of each photo</p>
<pre><code>| Column A |
| -------- |
| E:\Imagenes\2-1\VK10... | [
{
"answer_id": 74614493,
"author": "AminMal",
"author_id": 14672383,
"author_profile": "https://Stackoverflow.com/users/14672383",
"pm_score": 1,
"selected": false,
"text": "null Option myMap.get(\"C\")\n .flatMap(Option.apply) // since some values are null in your map\n .fold(ifEmpty ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633320/"
] |
74,614,381 | <p>So I'm running an app with nodejs + express, and trying to connect to the prismic API. keep getting " '[Link resolver error] Unknown type\n' ", I understand from the message it's something about my routes but I'm unsure how to fix it</p>
<p><strong>prismic config</strong></p>
<pre><code>require('dotenv').c... | [
{
"answer_id": 74614493,
"author": "AminMal",
"author_id": 14672383,
"author_profile": "https://Stackoverflow.com/users/14672383",
"pm_score": 1,
"selected": false,
"text": "null Option myMap.get(\"C\")\n .flatMap(Option.apply) // since some values are null in your map\n .fold(ifEmpty ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10474914/"
] |
74,614,393 | <p>I am using a code for a query, sometimes the input goes and there is no return (basically it does not find anything so the return is an empty row) so it is empty. However, when I use <code>pd.concat</code>, those empty rows disappear. Is there a way to keep these no return rows in the loop as well so that when I use... | [
{
"answer_id": 74614493,
"author": "AminMal",
"author_id": 14672383,
"author_profile": "https://Stackoverflow.com/users/14672383",
"pm_score": 1,
"selected": false,
"text": "null Option myMap.get(\"C\")\n .flatMap(Option.apply) // since some values are null in your map\n .fold(ifEmpty ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6023415/"
] |
74,614,394 | <p>When I check the official Tailwind CSS documentation, it says that</p>
<blockquote>
<p>Use w-screen to make an element span the entire width of the viewport.</p>
</blockquote>
<p>I mean, w-screen is ok when I try to implement</p>
<pre><code>width: 100vw;
</code></pre>
<p>But what should I do when I try to implement<... | [
{
"answer_id": 74614659,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "w-90\nh-90\n"
},
{
"answer_id": 74615709,
"author": "Nathan Dawson",
"author_id": 1310929,
"author_profi... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13932449/"
] |
74,614,419 | <p>Suppose you have a table with an user id and date+time (for simplicity in steps of 1 hour)</p>
<p>The table here is ordered by agent and time stamp.</p>
<pre><code>Usr Date Comment
1 2022-11-29 12:00 <- Start of a sequence
1 2022-11-29 13:00
1 2022-11-29 14:00
1 2022-11-30 12:00 <... | [
{
"answer_id": 74614659,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "w-90\nh-90\n"
},
{
"answer_id": 74615709,
"author": "Nathan Dawson",
"author_id": 1310929,
"author_profi... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2790621/"
] |
74,614,429 | <p>I am trying to use tag icon in the html but it's not showing the icon.</p>
<p>This is how I am trying to display the icon but it's not displaying the icon</p>
<pre><code><i class="fas fa-plus"></i>
</code></pre>
<p>But whereas if I use icon like below it's displaying the icon</p>
<pre><code>&l... | [
{
"answer_id": 74614522,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.7.2/css/all.css\" integrity=\"sha384-fnmOCqbTlWIlj8L... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20466032/"
] |
74,614,441 | <p>I'm trying to install the MySQLdb package for python3, because I need to use mysql for a project I'm currently doing.
But I can't get that package and work with it</p>
<p>I have tried the following things:</p>
<p>When I try to import it, I get this error:</p>
<pre><code>python3 Get_Acess_and_Refresh_Tokens.py
Trace... | [
{
"answer_id": 74614522,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.7.2/css/all.css\" integrity=\"sha384-fnmOCqbTlWIlj8L... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20346787/"
] |
74,614,481 | <p>I have a material design table and I wrote custom functions to load the data and extract the objects from the JSON array object.</p>
<p>I have the following code:</p>
<pre><code> public getDocumentList() {
return this.http.get(this.getDocumentUrl, this.httpOptions)
.subscribe(
documentResponse => {... | [
{
"answer_id": 74644797,
"author": "Erhan Yaşar",
"author_id": 6371094,
"author_profile": "https://Stackoverflow.com/users/6371094",
"pm_score": 2,
"selected": false,
"text": "this.DataService.documentListArray[0] for (let i = 0; i < this.DataService.documentListArray[0]?.length; i++)\n{... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12360035/"
] |
74,614,494 | <p>I am trying to create Tabs and have JSX Components dynamically placed into each Tab as content. I am using React and Polaris as I am creating a new Shopify App.</p>
<p>I cannot seem to work out how to do this - I am very new to Javascript/Typescript and even React.</p>
<p>I have all the Tabs working showing the corr... | [
{
"answer_id": 74644797,
"author": "Erhan Yaşar",
"author_id": 6371094,
"author_profile": "https://Stackoverflow.com/users/6371094",
"pm_score": 2,
"selected": false,
"text": "this.DataService.documentListArray[0] for (let i = 0; i < this.DataService.documentListArray[0]?.length; i++)\n{... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633452/"
] |
74,614,497 | <h2>Question</h2>
<p>I have a CSR matrix, and I want to be able to retrieve the column indices and the values stored.</p>
<h2>Data</h2>
<p>For different reasons I'm not allowed to share my data, but here's a look (the <code>numpy</code> library is imported as <code>np</code>):</p>
<pre class="lang-py prettyprint-overri... | [
{
"answer_id": 74615745,
"author": "radof",
"author_id": 20349343,
"author_profile": "https://Stackoverflow.com/users/20349343",
"pm_score": 0,
"selected": false,
"text": "numpy.float64 numpy.int64 data numpy.array list"
},
{
"answer_id": 74645889,
"author": "hpaulj",
"au... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19288896/"
] |
74,614,517 | <p>This is my first time posting a coding question on any website, so apologies if i dont do a great job. Constructive feedback is very welcome. I am working on the tideman problem in cs50, if that is meaningful to anyone.</p>
<p>I cant figure out a way to break out of the inner nested loop but continue the outer loop.... | [
{
"answer_id": 74614598,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 1,
"selected": false,
"text": "// Lock pairs into the candidate graph in order, without creating cycles\nvoid lock_pairs(void)\n{\n int num_locked = 0;... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633421/"
] |
74,614,563 | <p>I was hoping you could help me with a task in SAS. I have a data set (2 by 2 of numbers) and I would like to extract each entry and store them individually as a macro variable for later use. I am not very familiar with macros so I am not sure if this is possible.</p>
<p>Many thanks for any advice!</p>
| [
{
"answer_id": 74614598,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 1,
"selected": false,
"text": "// Lock pairs into the candidate graph in order, without creating cycles\nvoid lock_pairs(void)\n{\n int num_locked = 0;... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560185/"
] |
74,614,615 | <p>I'm trying to make a single object larger than 2GB using new operator.
But if the size of the object is larger than 0x7fffffff, The size of memory to be allocated become strange.
I think it is done by compiler because the assembly code itself use strange size of memory allocation.</p>
<p>I'm using Visual Stuio 2015 ... | [
{
"answer_id": 74614598,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 1,
"selected": false,
"text": "// Lock pairs into the candidate graph in order, without creating cycles\nvoid lock_pairs(void)\n{\n int num_locked = 0;... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5452435/"
] |
74,614,634 | <p>I have some Fact Revenue, I am trying to group by Conca, and display the values only if negative…</p>
<p>For doing it I have this calculated column:</p>
<pre><code>=
VAR name1 = Revenue[Conca]
VAR name2=
CALCULATE (
SUM ( Revenue[CostOfQuality] ),
FILTER ( Revenue, Revenue[Conca] = name1 )
... | [
{
"answer_id": 74614598,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 1,
"selected": false,
"text": "// Lock pairs into the candidate graph in order, without creating cycles\nvoid lock_pairs(void)\n{\n int num_locked = 0;... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4979809/"
] |
74,614,677 | <p>I want to create a new view in SQL Server 2008 R2.
Given is a col called "ADRESS", based on which I want to create a col called "CompanyID".
I want to add a suffix, which counts +1 for each row in a group of adresses, ideally starting from ".002".
The output should look like this:</p>
<... | [
{
"answer_id": 74614598,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 1,
"selected": false,
"text": "// Lock pairs into the candidate graph in order, without creating cycles\nvoid lock_pairs(void)\n{\n int num_locked = 0;... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16365837/"
] |
74,614,688 | <p>I am trying something like this:
<a href="https://stackoverflow.com/questions/47340518/list-append-in-pandas-cell">List append in pandas cell</a></p>
<p>But the problem is the post is old and everything is deprecated and should not be used anymore.</p>
<pre><code>d = {'col1': ['TEST', 'TEST'], 'col2': [[1, 2], [1, 2... | [
{
"answer_id": 74614800,
"author": "Tzane",
"author_id": 14536215,
"author_profile": "https://Stackoverflow.com/users/14536215",
"pm_score": 3,
"selected": true,
"text": "import pandas as pd\n\nd = {'col1': ['TEST', 'TEST'], 'col2': [[1, 2], [1, 2]], 'col3': [35, 89]}\ndf = pd.DataFrame(... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7451746/"
] |
74,614,697 | <p>i'm learning flutter recently, and i have a problem. How display nested json file in listview in flutter ?</p>
<p>On internet i see a lots of example but it's with an url of an api and i don't want use api. I'm in local.</p>
<p>I think the problem is not my parse, but i don't know so, below you can see my code.</p>
... | [
{
"answer_id": 74614800,
"author": "Tzane",
"author_id": 14536215,
"author_profile": "https://Stackoverflow.com/users/14536215",
"pm_score": 3,
"selected": true,
"text": "import pandas as pd\n\nd = {'col1': ['TEST', 'TEST'], 'col2': [[1, 2], [1, 2]], 'col3': [35, 89]}\ndf = pd.DataFrame(... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20632395/"
] |
74,614,707 | <p>Hello all i want a latest record from table in laravel for each customer but i am not getting result as i expected below is my object and code.i want a latest entry for each customer from table</p>
<pre><code>[
{
"id": 1,
"customer_id": 10,
"bill_no": 1,
... | [
{
"answer_id": 74615039,
"author": "Deathstorm",
"author_id": 7647266,
"author_profile": "https://Stackoverflow.com/users/7647266",
"pm_score": 0,
"selected": false,
"text": "where() ->orderBy('columnname', 'desc') created_at updated_at"
},
{
"answer_id": 74618831,
"author": ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17243161/"
] |
74,614,712 | <p>Let it be the following python pandas dataframe.</p>
<pre><code>| date | other_columns |...
| ------------- | -------------- |...
| 2022-02-06 | row |...
| 2022-02-07 | row |...
| 2022-02-08 | row |...
| 2022-02-15 | row |...
| 2022-02-24 | row ... | [
{
"answer_id": 74614765,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 1,
"selected": false,
"text": "df['date'] = pd.to_datetime(df['date'])\n\ndf['new2'] = ((df[\"date\"].dt.day - 1) // 7 + 1).astype(str) + ' week'\n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18396935/"
] |
74,614,779 | <p>This is in reference to my previous <a href="https://stackoverflow.com/q/74589537/6744609">question </a>related to extracting data from .asc file and separating them while having multiple delimiters.</p>
<p>I want to perform mathematical operations on the float elements of the list of lists generated from the above ... | [
{
"answer_id": 74615118,
"author": "steven",
"author_id": 20631577,
"author_profile": "https://Stackoverflow.com/users/20631577",
"pm_score": 0,
"selected": false,
"text": "'1.06' . >>> my_array = ['0','1.06','23.345']\n>>> list(map(float, my_array[1]))\nTraceback (most recent call last)... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6744609/"
] |
74,614,780 | <p>I have a dynamic form, something like this.</p>
<pre><code> profileForm = new FormGroup({
firstName: new FormControl(''),
lastName: new FormControl(''),
age: new FormControl(''),
...
});
</code></pre>
<p>I want to do something when the value changes, so I did:</p>
<pre><code>this.profileForm.valueC... | [
{
"answer_id": 74615106,
"author": "Gani Lastra",
"author_id": 9750302,
"author_profile": "https://Stackoverflow.com/users/9750302",
"pm_score": 0,
"selected": false,
"text": "combineLatest(this.form.get(\"fieldThatWillTrigger1\").valueChanges, this.form.get(\"fieldThatWillTrigger2\").va... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6533823/"
] |
74,614,801 | <p>i want to ask how do i navigate tabs inside the DefaultTab, i have DefaultTabController Page that i name it OrderList inside OrderList i have 3 different tab which Progress,Complete and Cancel when i click button i want to navigate it to OrderList that show Cancel page. Below is my code. If i directly navigate to Or... | [
{
"answer_id": 74615261,
"author": "Ashot Khachatryan",
"author_id": 12397183,
"author_profile": "https://Stackoverflow.com/users/12397183",
"pm_score": 0,
"selected": false,
"text": "class _OrderListState extends State<OrderList> with TickerProviderStateMixin {\n\n\n TabBar(\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10625379/"
] |
74,614,814 | <p>I have the next question about webtable handling over Robot Framework with selenium:</p>
<p>the webpage has a table with 3 columns, but the rows are variable based on the months of a year, I already use the 'Table Column Should Contain' to confirm the existence of a row with the text of a month (i.e. 'monthA'), but ... | [
{
"answer_id": 74615261,
"author": "Ashot Khachatryan",
"author_id": 12397183,
"author_profile": "https://Stackoverflow.com/users/12397183",
"pm_score": 0,
"selected": false,
"text": "class _OrderListState extends State<OrderList> with TickerProviderStateMixin {\n\n\n TabBar(\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20599153/"
] |
74,614,836 | <p>I am trying to type a function that does this</p>
<ul>
<li>Takes a string corresponding to a number type,</li>
<li>returns a typed array</li>
<li>Upon execution the user receives information about the exact typed array returned</li>
</ul>
<p>But after trying for a long while, I haven't been able to connect the input... | [
{
"answer_id": 74615261,
"author": "Ashot Khachatryan",
"author_id": 12397183,
"author_profile": "https://Stackoverflow.com/users/12397183",
"pm_score": 0,
"selected": false,
"text": "class _OrderListState extends State<OrderList> with TickerProviderStateMixin {\n\n\n TabBar(\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12582392/"
] |
74,614,843 | <p>If you have two Xpaths you can join them with the <code>|</code> operator to return both their results in one result set. This essentially gives back the union of the two sets of elements. The example below gives back all <code>div</code>s and all <code>span</code>s on a website:</p>
<pre><code>//div | //span
</code... | [
{
"answer_id": 74614932,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 0,
"selected": false,
"text": "\"//tr/td[not(text()=`1`)][not(text()=`4`)]\"\n"
},
{
"answer_id": 74615054,
"author": "zx485",
"aut... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12366148/"
] |
74,614,914 | <p>I have a <code>df</code> as below</p>
<pre><code>df <- data.frame(col1 = c("a", "a", "b",
"b", "c", "c"),
col2 = c("x1", "x1.1", "x2", "x2.1", "x3", "x3.1&q... | [
{
"answer_id": 74615398,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 0,
"selected": false,
"text": "col2 coalesce col3 col4 NA distinct library(tidyverse)\n\ndf <- data.frame(col1 = c(\"a\", \"a\", \"b\",\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14518614/"
] |
74,614,948 | <p>I have the following code in wwwroot/index.html.</p>
<pre><code><script src="_framework/blazor.webassembly.js"></script>
<script>
window.downloadFileFromStream = async (fileName, contentStreamReference) => {
const arrayBuffer = await contentStreamReference.arrayBuffer();
... | [
{
"answer_id": 74615398,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 0,
"selected": false,
"text": "col2 coalesce col3 col4 NA distinct library(tidyverse)\n\ndf <- data.frame(col1 = c(\"a\", \"a\", \"b\",\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10481016/"
] |
74,614,956 | <p>Is there a way to have a function take in a list and then return true or false for each item in the list if they are palindromes? Below is what I have tried but I would like the console to look like this:</p>
<p>True
False
True</p>
<pre><code>x=[121,13,155551]
def palindrome_check(x):
for num_from__list in x:
... | [
{
"answer_id": 74615016,
"author": "Guillaume BEDOYA",
"author_id": 20522241,
"author_profile": "https://Stackoverflow.com/users/20522241",
"pm_score": 1,
"selected": false,
"text": "x = [121,13,155551]\n\ndef palindrome_check(x):\n res = []\n for num_from__list in x:\n res.... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16569701/"
] |
74,614,966 | <p>I have the next matrix:</p>
<pre><code>structure(list(`1` = c(0, 0, NA, NA, NA, NA, 0, 0, NA, NA, NA,
1, NA, NA, NA), `2` = c(1, 0, NA, NA, NA, NA, NA, 0, NA, NA,
NA, 1, NA, NA, NA), `4` = c(NA, NA, 0, 1, 1, 0, NA, NA, 0, 1,
1, NA, 1, 0, 0), `5` = c(NA, NA, 0, 1, 1, 0, NA, NA, 1, 1, NA,
NA, 1, 0, 1), `6` = c(NA,... | [
{
"answer_id": 74615099,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "cummax apply t(apply(mat, 1, \\(x) cummax(ifelse(is.na(x), 0, x)) + x*0))\n 1 2 4 5 6 7 8\n1 0 1 NA NA N... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74614966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3483060/"
] |
74,615,011 | <p>I'm stuck on an exercise where I should do a function which makes a tuple out of 3 given numbers and returns tuple following these rules:</p>
<ul>
<li>1st element must be the smallest parameter</li>
<li>2nd element must be the biggest parameter</li>
<li>3rd element is the sum of parameters</li>
</ul>
<p>For example:... | [
{
"answer_id": 74615099,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "cummax apply t(apply(mat, 1, \\(x) cummax(ifelse(is.na(x), 0, x)) + x*0))\n 1 2 4 5 6 7 8\n1 0 1 NA NA N... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633646/"
] |
74,615,041 | <p>I have a PHP code</p>
<pre><code><?php $j = 0; foreach($v->valeur as $valeur) { ?>
<input type="checkbox"
class=" "
name="check<?php echo $v->id; ?>[]"
value="<?php echo $j; ?>"
<?php if(strpos($v->active,','.$j.',')!==false) echo ' chec... | [
{
"answer_id": 74615099,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "cummax apply t(apply(mat, 1, \\(x) cummax(ifelse(is.na(x), 0, x)) + x*0))\n 1 2 4 5 6 7 8\n1 0 1 NA NA N... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13563009/"
] |
74,615,065 | <p>now I'm making a user Authentication system, but I'm having trouble with javascript's process order. Here is my code.</p>
<pre><code>const isAuthenticated = async (username, password) => {
//this User.finOne is async function
User.findOne({ username: username }, function (err, foundUser) {
if (err... | [
{
"answer_id": 74615099,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "cummax apply t(apply(mat, 1, \\(x) cummax(ifelse(is.na(x), 0, x)) + x*0))\n 1 2 4 5 6 7 8\n1 0 1 NA NA N... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17232360/"
] |
74,615,085 | <p>This is part of a homework assignment. As part of an administration script, one of the tasks is to open an interactive Powershell prompt on a remote computer using preset credentials from the script. Opening one from the regular interactive shell works fine, however opening one from a script has proven to be difficu... | [
{
"answer_id": 74615099,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "cummax apply t(apply(mat, 1, \\(x) cummax(ifelse(is.na(x), 0, x)) + x*0))\n 1 2 4 5 6 7 8\n1 0 1 NA NA N... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633643/"
] |
74,615,095 | <p>The <code>Series.str.find()</code> function in pandas seems to take only a single integer for the start location. I have a Series containing strings and an array of start positions, and I want to find the position of a given substring starting from the corresponding position of each element as follows:</p>
<pre><cod... | [
{
"answer_id": 74615099,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "cummax apply t(apply(mat, 1, \\(x) cummax(ifelse(is.na(x), 0, x)) + x*0))\n 1 2 4 5 6 7 8\n1 0 1 NA NA N... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/508222/"
] |
74,615,120 | <p>I have the following df as example:</p>
<pre><code>df <- data.frame(status = c(rep("egr", 5), rep("ing", 5)),
ua = c(1, 1, 1, 1, 1, 1, 1, 1, 2, 2),
fam = c(rep("fam1", 2), rep("fam2", 7), "fam3"),
spp = c(rep(&quo... | [
{
"answer_id": 74615099,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "cummax apply t(apply(mat, 1, \\(x) cummax(ifelse(is.na(x), 0, x)) + x*0))\n 1 2 4 5 6 7 8\n1 0 1 NA NA N... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15108186/"
] |
74,615,121 | <p>i'm trying to add navigation between auth pages in flutter using TapGestureRecognizer on a TextSpan. Everything is set up but still the clicked text does not navigate to the preferred page.</p>
<p>part of the login ui where i'm using TapGestureRecognizer:</p>
<pre><code>RichText(
text: TextSpan... | [
{
"answer_id": 74615175,
"author": "Ashot Khachatryan",
"author_id": 12397183,
"author_profile": "https://Stackoverflow.com/users/12397183",
"pm_score": 1,
"selected": false,
"text": "..onTap = () => widget.onClickedSignUp.call(),\n ..onTap = widget.onClickedSignUp,\n \n"
}... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12785864/"
] |
74,615,226 | <p>I need to programmatically delete all caches of my Xamarin.Forms application called MyXFApp, the same way as the button 'Clear Cache' of the Setting/Apps/MyXFApp/Storage page.</p>
<p>I read the Android and Xamarin.Forms official documentations, and used the methods getGetCacheDir() and GetExternalCacheDir() to retri... | [
{
"answer_id": 74615175,
"author": "Ashot Khachatryan",
"author_id": 12397183,
"author_profile": "https://Stackoverflow.com/users/12397183",
"pm_score": 1,
"selected": false,
"text": "..onTap = () => widget.onClickedSignUp.call(),\n ..onTap = widget.onClickedSignUp,\n \n"
}... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20265334/"
] |
74,615,293 | <p>I'm trying to map one key to each value in array to a new array by using JOLT.
Could someone please help give me a solution for this:</p>
<p>My JSON:</p>
<pre class="lang-json prettyprint-override"><code>[
{
"person_id": "1",
"resources": ["asd", "zxc"]
}... | [
{
"answer_id": 74615175,
"author": "Ashot Khachatryan",
"author_id": 12397183,
"author_profile": "https://Stackoverflow.com/users/12397183",
"pm_score": 1,
"selected": false,
"text": "..onTap = () => widget.onClickedSignUp.call(),\n ..onTap = widget.onClickedSignUp,\n \n"
}... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20634014/"
] |
74,615,310 | <p>I have the next matrix:</p>
<pre><code>structure(c(0, 0, NA, NA, NA, NA, 0, 0, NA, NA, NA, 1, NA, NA,
NA, NA, 0, 1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 1, NA,
1, 0, NA, NA, NA, NA, NA, 0, NA, NA, NA, 1, NA, NA, NA, NA, NA,
NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 1, 1, NA, NA, 0,
1, 1, 0, NA, NA, 0, 1, 1,... | [
{
"answer_id": 74615436,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 0,
"selected": false,
"text": "nomatch m <- structure(c(0, 0, NA, NA, NA, NA, 0, 0, NA, NA, NA, 1, NA, NA, \nNA, NA, 0, 1, NA, NA, NA, NA, NA,... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3483060/"
] |
74,615,352 | <p>The example code is using DryWetMidi library. The program plays a MIDI file (MIDI.Path) on button click until the file ends. The problem is there seems to be no way of stopping the playback with another button.</p>
<p>Is there anyone who has experience with the MIDI library that knows how to make a button that stops... | [
{
"answer_id": 74615705,
"author": "stark",
"author_id": 1216776,
"author_profile": "https://Stackoverflow.com/users/1216776",
"pm_score": 0,
"selected": false,
"text": "<span @onclick=\"@(() => StopMidi())\">\n <button>Stop</button>\n</span>\n\n\npublic void StopMidi()\n{\n playba... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20373344/"
] |
74,615,371 | <p>I have a problem with saving data from a form in django. Only the last record is saved. I generate a list of dates (days of the month) in the view and display it in the form in templates along with the fields next to the type. Everything is displayed correctly in templates, but when I submit to, only the last recor... | [
{
"answer_id": 74615669,
"author": "franckfournier",
"author_id": 3398093,
"author_profile": "https://Stackoverflow.com/users/3398093",
"pm_score": 1,
"selected": false,
"text": "...\nelse:\n form = DoctorsSchedule()\n...\n# into\n\n...\nelse:\n form = DoctorsSchedule({\n 'date'... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11847900/"
] |
74,615,380 | <p>How to get data from REST API using a graphql query</p>
<p>How to get data from REST API using a graphql</p>
| [
{
"answer_id": 74619262,
"author": "Tim",
"author_id": 20317091,
"author_profile": "https://Stackoverflow.com/users/20317091",
"pm_score": 1,
"selected": false,
"text": "@client express-graphql const {\n GraphQLObjectType,\n GraphQLInt,\n GraphQLString,\n GraphQLBoolean,\n GraphQLLi... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13791025/"
] |
74,615,396 | <p>I am making a web app with VueJS that makes axios calls to a NodeJS API that uses express. I'm currently trying to send files to my NodeJS so it can save them. However, even though my browser displays all the properties of my array of files, my NodeJS reads it as empty. I've read all the questions previously asked o... | [
{
"answer_id": 74619262,
"author": "Tim",
"author_id": 20317091,
"author_profile": "https://Stackoverflow.com/users/20317091",
"pm_score": 1,
"selected": false,
"text": "@client express-graphql const {\n GraphQLObjectType,\n GraphQLInt,\n GraphQLString,\n GraphQLBoolean,\n GraphQLLi... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12498040/"
] |
74,615,450 | <p>I want to find the .txt file with the shortest name inside a folder.</p>
<pre><code>import glob
import os
inpDir = "C:/Users/ft/Desktop/Folder"
os.chdir(inpDir)
for file in glob.glob("*.txt"):
l = len(file)
</code></pre>
<p>For the moment I found the length of the str of the name, how can ... | [
{
"answer_id": 74615513,
"author": "scr",
"author_id": 18781246,
"author_profile": "https://Stackoverflow.com/users/18781246",
"pm_score": 3,
"selected": true,
"text": "chosen_file = \"\"\n\nfor file in glob.glob(\"*.txt\"):\n if chosen_file == \"\" or len(file) < len(chosen_file):\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582560/"
] |
74,615,453 | <p>I have a file, foo.S, which contains ARM thumb instructions, on an Ubuntu 22.04 x86_64 machine. Is it possible to convert this into an ARM object file using <code>as</code> from <code>binutils</code> or do I need to create a cross-compiler toolchain? I tried</p>
<pre class="lang-bash prettyprint-override"><code>$ ... | [
{
"answer_id": 74620507,
"author": "Frant",
"author_id": 4017881,
"author_profile": "https://Stackoverflow.com/users/4017881",
"pm_score": 2,
"selected": false,
"text": "wget sudo apt-get install wget arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz cd ${HOME}\n# Skip the wget co... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8075540/"
] |
74,615,456 | <p>I want to apply pagination on my data I tried to watch lots of videos and read lots of articles but still can't solve my problem. This is my Views.</p>
<pre><code>def car(request):
all_products = None
all_category = category.get_all_category()
categoryid = request.GET.get('category')
if categoryid:
... | [
{
"answer_id": 74620507,
"author": "Frant",
"author_id": 4017881,
"author_profile": "https://Stackoverflow.com/users/4017881",
"pm_score": 2,
"selected": false,
"text": "wget sudo apt-get install wget arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz cd ${HOME}\n# Skip the wget co... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18141702/"
] |
74,615,463 | <p>I am trying to handle a dictionary that has a list as a value for a key named 'notes' , so I am trying to find the maximum element from that list and reassign the value with that maximum element from the list and also change the key value to 'top_notes' as follows.</p>
<pre><code>Input = top_note({ "name":... | [
{
"answer_id": 74615502,
"author": "Hamatti",
"author_id": 1079129,
"author_profile": "https://Stackoverflow.com/users/1079129",
"pm_score": 0,
"selected": false,
"text": "if key in di == 'notes':\n key in di True True == 'notes' False if in di if key == 'notes':\n"
},
{
"answer_... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502753/"
] |
74,615,484 | <p>I am trying to replace the value of a variable in parameters file using Replace(). This file which I am trying to edit accepts json format. But I am unable to do so. I am using this below script to do so. This only print the name of that particular field for which I am trying to replace a numeric value.</p>
<p>I tri... | [
{
"answer_id": 74615502,
"author": "Hamatti",
"author_id": 1079129,
"author_profile": "https://Stackoverflow.com/users/1079129",
"pm_score": 0,
"selected": false,
"text": "if key in di == 'notes':\n key in di True True == 'notes' False if in di if key == 'notes':\n"
},
{
"answer_... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20633979/"
] |
74,615,495 | <p>I have a 1D array which is in fact a 2D matrix sampled this way:</p>
<pre><code>↓-------<------S <- start
>------->------↓
↓-------<------<
>------->------E <- end
</code></pre>
<p>For example</p>
<pre><code>B = 1 2 3 4
5 6 7 8
9 10 11 12
</code></pre>
<p>is coded as... | [
{
"answer_id": 74615613,
"author": "Chris",
"author_id": 4718350,
"author_profile": "https://Stackoverflow.com/users/4718350",
"pm_score": 3,
"selected": true,
"text": "import numpy as np\n\na = np.array([4, 3, 2, 1, 5, 6, 7, 8, 12, 11, 10, 9])\nnumcols = 4\n\na = a.reshape(-1,numcols)\n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1422096/"
] |
74,615,523 | <p>Please help me. I have a code in which I try to open another page, but when I click on the button nothing happens, the console is also empty, how can I solve this or maybe I have an error somewhere?
P.S. I use Jquery
HTML, JS</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<... | [
{
"answer_id": 74615613,
"author": "Chris",
"author_id": 4718350,
"author_profile": "https://Stackoverflow.com/users/4718350",
"pm_score": 3,
"selected": true,
"text": "import numpy as np\n\na = np.array([4, 3, 2, 1, 5, 6, 7, 8, 12, 11, 10, 9])\nnumcols = 4\n\na = a.reshape(-1,numcols)\n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74615523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20634333/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.