qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,642,254 | <p>I am trying to achieve a certain effect with a navbar. The challenges I am facing are as below:</p>
<ul>
<li>The navigation should appear only when the user scrolls to a certain component on the website and it should work the other way around when scrolling up</li>
<li>There should be a progress bar in the navigatio... | [
{
"answer_id": 74642460,
"author": "Jason Liam",
"author_id": 12002570,
"author_profile": "https://Stackoverflow.com/users/12002570",
"pm_score": 2,
"selected": false,
"text": "C<incomplete> constexpr inline C<incomplete> constexpr inline"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14979135/"
] |
74,642,259 | <p>I have a list of dictionaries</p>
<pre><code>[{'elementid': 'BsWfsElement.1.1', 'obstime': '2022-07-11T20:00:05', 'lon': '59.86400', 'lat': '32.05570', 'paramname': 'multiplicity', 'paramvalue': '4'}, {'elementid': 'BsWfsElement.1.2', 'obstime': '2022-07-11T20:00:05', 'lon': '59.86400', 'lat': '32.05570', 'paramname... | [
{
"answer_id": 74642460,
"author": "Jason Liam",
"author_id": 12002570,
"author_profile": "https://Stackoverflow.com/users/12002570",
"pm_score": 2,
"selected": false,
"text": "C<incomplete> constexpr inline C<incomplete> constexpr inline"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19624810/"
] |
74,642,283 | <p>I have GitHub Runner and docker registry on my server and I'm trying to set up ci/cd for some applications.</p>
<p>Directly pushing to the container name with port works smoothly</p>
<pre><code>docker pull alpine
docker tag alpine:latest docker-registry:5000/alpine:latest
docker login docker-registry:5000
Login Suc... | [
{
"answer_id": 74642460,
"author": "Jason Liam",
"author_id": 12002570,
"author_profile": "https://Stackoverflow.com/users/12002570",
"pm_score": 2,
"selected": false,
"text": "C<incomplete> constexpr inline C<incomplete> constexpr inline"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20643143/"
] |
74,642,293 | <p>I want to make a system where a user will be able to draw a hexagonal grid. The regions and their coordinates will be stored in Database. We are thinking to implement H3 libary for this. How will be the library help is in making H3 hexagons all over the country?</p>
<p>I have made a node project with h3-js library b... | [
{
"answer_id": 74646108,
"author": "Pedro Marques",
"author_id": 20658562,
"author_profile": "https://Stackoverflow.com/users/20658562",
"pm_score": -1,
"selected": false,
"text": "npm install h3-js\n\n// Import the H3 library\nimport {H3} from 'h3-js';\n\n// Define the center point of t... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11466229/"
] |
74,642,312 | <p>Azure DevOps lets a reviewer tell the developer that they have completed their review with the "waiting for the author" flag on a PR review.</p>
<p>But as the developer how can I tell the reviewer "I have finished addressing comments?" They may get a notification for every reply I make to a revie... | [
{
"answer_id": 74646108,
"author": "Pedro Marques",
"author_id": 20658562,
"author_profile": "https://Stackoverflow.com/users/20658562",
"pm_score": -1,
"selected": false,
"text": "npm install h3-js\n\n// Import the H3 library\nimport {H3} from 'h3-js';\n\n// Define the center point of t... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/197229/"
] |
74,642,331 | <p>How can I run the above code in the fastest way. What is the best practice?</p>
<pre><code>public ActionResult ExampleAction()
{
// 200K items
var results = dbContext.Results.ToList();
foreach (var result in results)
{
// 10 - 40 items
... | [
{
"answer_id": 74644463,
"author": "ɐsɹǝʌ ǝɔıʌ",
"author_id": 1548094,
"author_profile": "https://Stackoverflow.com/users/1548094",
"pm_score": 1,
"selected": false,
"text": "dbContext.SaveChanges() dbContext.SaveChanges() .SaveChanges()"
},
{
"answer_id": 74672693,
"author":... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13901563/"
] |
74,642,337 | <p>I am trying to get some code to execute at a certain time but I can't figure out what the problem is here. Please help?</p>
<pre><code>import datetime
dt=datetime
set_time=dt.time(12,53)
timenow=dt.datetime.now()
time=False
while not time:
if timenow==set_time:
print("yeeehaaa")
time=True
brea... | [
{
"answer_id": 74642542,
"author": "Indiano",
"author_id": 13309379,
"author_profile": "https://Stackoverflow.com/users/13309379",
"pm_score": 3,
"selected": true,
"text": "timenow set_time import datetime\ndt=datetime\nset_time=str(dt.time(14,19))[0:5]\ntimenow=dt.datetime.now().time()\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/547761/"
] |
74,642,405 | <p>Let's assume I've the following C# class:</p>
<pre><code>public class Test
{
public double X;
public double Y;
}
</code></pre>
<p>I want to use the above C# <code>Test</code> class from <a href="https://ironpython.net/" rel="nofollow noreferrer">IronPython</a> and as well from <a href="https://www.python.org... | [
{
"answer_id": 74642479,
"author": "Siba Daki",
"author_id": 10933030,
"author_profile": "https://Stackoverflow.com/users/10933030",
"pm_score": 1,
"selected": false,
"text": "Test test = New Test();\n/* or */ var test = New Test();\n/* then */ test.x = whatever;\n"
},
{
"answer_... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7556646/"
] |
74,642,430 | <p>My command</p>
<pre><code>Windows 11 PowerShell.
!pip install tensorflow-datasets
pip install tensorflow-datasets
# pip install tfds-nightly
import tensorflow_datasets as tfds
datasets = tfds.load("imdb_reviews")
train_set = tfds.load("imdb_reviews") # 25.000 reviews.
test_set = datasets[&quo... | [
{
"answer_id": 74642866,
"author": "Cpt.Hook",
"author_id": 20599896,
"author_profile": "https://Stackoverflow.com/users/20599896",
"pm_score": 2,
"selected": true,
"text": "python powershell my_code.py python my_code.py"
},
{
"answer_id": 74656889,
"author": "OneCricketeer",... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3728901/"
] |
74,642,434 | <p>I have a problem depending the Navigator setup that is used with Version 5 of React Navigation.</p>
<p>Here is my Code:</p>
<pre><code>import React from "react";
import { LogBox, Platform, TouchableOpacity } from "react-native";
import { NavigationContainer } from "@react-navigation/native&q... | [
{
"answer_id": 74652189,
"author": "JSONCMD",
"author_id": 20629269,
"author_profile": "https://Stackoverflow.com/users/20629269",
"pm_score": -1,
"selected": false,
"text": "navigation.replace(\"Tabs\"); \n navigation.replace(\"CheckStack\");\n"
},
{
"answer_id": 74654260,
"... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11270696/"
] |
74,642,497 | <p>I have a following table:-</p>
<pre><code>declare @tab table(name varchar(10),id int)
insert into @tab values ('A',1),('B',1),('C',1),('D',1),('E',2),('F',2)
</code></pre>
<p>I need following output:-</p>
<pre><code>declare @tab1 table(name varchar(10),id int, cnt int)
insert into @tab1 values ('A',1,4),('B',1,4),... | [
{
"answer_id": 74642570,
"author": "Rahul Aggarwal",
"author_id": 7769070,
"author_profile": "https://Stackoverflow.com/users/7769070",
"pm_score": 0,
"selected": false,
"text": ";with a as\n(\nselect Id,name, count(*) over (partition by id) cnt\n\nfrom @tab\n)\nselect Id,name,cnt\nfrom ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7769070/"
] |
74,642,518 | <p>I’m working on a Operating Systems project with requirements being the usage of C89 and pedantic flags.</p>
<p>Since I am on macOS, I’ve encountered a fair amount of issues with the <code>rand()</code> function during a few exercises. In fact, its macOS man page calls it a “bad number generator”. So, to avoid issues... | [
{
"answer_id": 74642690,
"author": "P.P",
"author_id": 1275169,
"author_profile": "https://Stackoverflow.com/users/1275169",
"pm_score": 3,
"selected": true,
"text": "random srandom -std=c89 #define _DEFAULT_SOURCE\n #define _XOPEN_SOURCE 600\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583148/"
] |
74,642,527 | <p>I run pytest with several params:</p>
<pre><code>@pytest.mark.parametrize('signature_algorithm, cipher, name', [
pytest.param(rsa_pss_rsae_sha256, AES128-GCM-SHA256, "KEY1"),
pytest.param(rsa_pss_rsae_sha384, AES128-GCM-SHA256, "KEY2"),
....
def test(signature_algorithm, cipher, c... | [
{
"answer_id": 74642690,
"author": "P.P",
"author_id": 1275169,
"author_profile": "https://Stackoverflow.com/users/1275169",
"pm_score": 3,
"selected": true,
"text": "random srandom -std=c89 #define _DEFAULT_SOURCE\n #define _XOPEN_SOURCE 600\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17914924/"
] |
74,642,560 | <p><a href="https://i.stack.imgur.com/Uwm59.png" rel="nofollow noreferrer">Why im getting (The argument type 'String?' can't be assigned to the parameter type 'String') error.</a></p>
<p><a href="https://i.stack.imgur.com/XmgxH.png" rel="nofollow noreferrer">declaring variables</a></p>
| [
{
"answer_id": 74642690,
"author": "P.P",
"author_id": 1275169,
"author_profile": "https://Stackoverflow.com/users/1275169",
"pm_score": 3,
"selected": true,
"text": "random srandom -std=c89 #define _DEFAULT_SOURCE\n #define _XOPEN_SOURCE 600\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19792080/"
] |
74,642,575 | <p>hoping someone can help me with my code. I'm new to python and software development. I'm trying to find the first two elements that are out of order and swap them.</p>
<pre><code>arr = [5, 22, 29, 39, 19, 51, 78, 96, 84]
i = 0
while (i < arr.len() - 1) and (arr[i] < arr[i+1]):
i += i
print(i)
arr[i] = arr[... | [
{
"answer_id": 74642687,
"author": "kamilu",
"author_id": 17869889,
"author_profile": "https://Stackoverflow.com/users/17869889",
"pm_score": 0,
"selected": false,
"text": "arr = [5,22,29,39,19,51,78,96,84]\n\nfor i in range(len(arr)):\n if arr[i]>arr[i+1]:\n temp = arr[i]\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20656721/"
] |
74,642,594 | <p>I am using the <a href="https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines" rel="nofollow noreferrer">StableDiffusionPipeline</a> from the Hugging Face <a href="https://huggingface.co/docs/diffusers/index" rel="nofollow noreferrer">Diffusers</a> library in Python 3.10.2, on an M2 Mac (I tagge... | [
{
"answer_id": 74654989,
"author": "pcuenca",
"author_id": 346029,
"author_profile": "https://Stackoverflow.com/users/346029",
"pm_score": 0,
"selected": false,
"text": "import MetalPerformanceShadersGraph\n\nlet graph = MPSGraph()\nlet x = graph.constant(1, shape: [32, 4096, 4096], data... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17973966/"
] |
74,642,596 | <p>How can I access a state using the same-id across multiple transformers, for example the following stores an Order object via ValueState in OrderMapper class:</p>
<pre><code>env.addSource(source1()).keyBy(Order::getId).flatMap(new OrderMapper()).addSink(sink1());
</code></pre>
<p>Now I would like to access the same ... | [
{
"answer_id": 74654989,
"author": "pcuenca",
"author_id": 346029,
"author_profile": "https://Stackoverflow.com/users/346029",
"pm_score": 0,
"selected": false,
"text": "import MetalPerformanceShadersGraph\n\nlet graph = MPSGraph()\nlet x = graph.constant(1, shape: [32, 4096, 4096], data... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/411709/"
] |
74,642,653 | <p>i am trying to write a code in C but i am having some problems with realloc. I had to write a code that will create a stack, and will add to it (dodaj_do_stosu), reamove from it (usun_ze_stosu) and will look at the top thing that is on this stack. I have problem with compiling(it does work for first two words but th... | [
{
"answer_id": 74642727,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "tablica dodaj_do_stosu element_t s->tablica[s->rozmiar] element_t s->tablica[s->rozmiar] = malloc(sizeof(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20656737/"
] |
74,642,657 | <p>I am writing a PySpark code to read PARQUET files from my local machine and process them. My directories and file paths look like this:</p>
<pre><code>.
├── customer
│ └── day=20220815
│ └── part-00000-4dff7e82-411b-4940-bdb6-33acf5a189b4-c000.snappy.parquet
└── customer_interaction
└── day=20220815
... | [
{
"answer_id": 74642730,
"author": "Triceratops",
"author_id": 13440165,
"author_profile": "https://Stackoverflow.com/users/13440165",
"pm_score": 3,
"selected": true,
"text": "glob pathlib import glob\n\n# Returns a list of names in list files.\nprint(\"Using glob.glob()\")\nfiles = glo... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13108058/"
] |
74,642,689 | <p>I am using python3.11 to create the Delaunay triangulation of a point cloud with script.Delaunay and it is misbehaving by creating some extra faces. In the image below you can see a 3D scatter plot of the points.</p>
<p><a href="https://i.stack.imgur.com/8MLVR.png" rel="nofollow noreferrer"><img src="https://i.stack... | [
{
"answer_id": 74642730,
"author": "Triceratops",
"author_id": 13440165,
"author_profile": "https://Stackoverflow.com/users/13440165",
"pm_score": 3,
"selected": true,
"text": "glob pathlib import glob\n\n# Returns a list of names in list files.\nprint(\"Using glob.glob()\")\nfiles = glo... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744452/"
] |
74,642,700 | <p>I have the following LateX table that renders as expected when <code>format: pdf</code>:</p>
<pre><code>---
title: "Test Table"
format: pdf
---
\begin{center}
\begin{tabular}{|l|l|l|}
\hline
Var & Class & Description\\
\hline
$x $ & numeric & xyz \\
$y$ ... | [
{
"answer_id": 74642730,
"author": "Triceratops",
"author_id": 13440165,
"author_profile": "https://Stackoverflow.com/users/13440165",
"pm_score": 3,
"selected": true,
"text": "glob pathlib import glob\n\n# Returns a list of names in list files.\nprint(\"Using glob.glob()\")\nfiles = glo... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14137004/"
] |
74,642,704 | <p>hi all im trying to make this</p>
<pre><code>2022-11-14 18:49:59 Indicator is < 3
1 No
2022-11-14 18:49:59 Indicator is < 10
1 No
2022-11-14 18:49:59 Indicator is < 22
1 No
2022-11-14 18:49:59 Indicator is < 1
1 No
</co... | [
{
"answer_id": 74642842,
"author": "Andre Wildberg",
"author_id": 9462095,
"author_profile": "https://Stackoverflow.com/users/9462095",
"pm_score": 1,
"selected": true,
"text": "awk $ awk -v val=2 'NR % val == 0{print prev, $0} {prev = $0}' file\n2022-11-14 18:49:59 Indicator... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4003516/"
] |
74,642,705 | <p>Given two binary arrays, how can one quickly find the number of 1's occurring between intersecting bits for both arrays?</p>
<p>For example, consider a pair of bitsets (<code>i1</code>, <code>i2</code>) and their intersection (<code>i12</code>):</p>
<pre><code>i1 = [0001001000100100];
i2 = [0101000100010110];
i12 ... | [
{
"answer_id": 74642842,
"author": "Andre Wildberg",
"author_id": 9462095,
"author_profile": "https://Stackoverflow.com/users/9462095",
"pm_score": 1,
"selected": true,
"text": "awk $ awk -v val=2 'NR % val == 0{print prev, $0} {prev = $0}' file\n2022-11-14 18:49:59 Indicator... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1436247/"
] |
74,642,709 | <p>Every time my windows forms desktop app starts up, I need it to send a one-time <strong>string</strong> value to my windows service on the same pc.
In most cases, the service will be running constantly even when the desktop app is not. But the desktop app will check and start the service if necessary.</p>
<p>What is... | [
{
"answer_id": 74642842,
"author": "Andre Wildberg",
"author_id": 9462095,
"author_profile": "https://Stackoverflow.com/users/9462095",
"pm_score": 1,
"selected": true,
"text": "awk $ awk -v val=2 'NR % val == 0{print prev, $0} {prev = $0}' file\n2022-11-14 18:49:59 Indicator... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/458982/"
] |
74,642,716 | <p>I want to plot graph (which is an undirected connected graph) like the uploaded picture.</p>
<p>I want to use the adjacency matrix in order to plot it.</p>
<p>So my question is how can I plot a graph from its adjacency matrix.</p>
<p>Ideally I want the plot to look like the attached picture.</p>
<p>I tried the igra... | [
{
"answer_id": 74642796,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "mode = \"upper\" library(igraph)\n\ndata <- matrix(0, 5, 5, dimnames = list(LETTERS[1:5], LETTERS[1:5]))\ndat... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16346449/"
] |
74,642,735 | <p>I have a data like below:</p>
<pre><code>data = """1000
2000
3000
4000
5000
6000
7000
8000
9000
10000"""
</code></pre>
<p>Now, I want to sum up the elements that appear before the space and maintain the <code>max_sum</code> track with the sum of the next elements that appear before ... | [
{
"answer_id": 74642851,
"author": "rtoth",
"author_id": 20589189,
"author_profile": "https://Stackoverflow.com/users/20589189",
"pm_score": 2,
"selected": false,
"text": "max_num = 0\nsum = 0\nfor line in data:\n print(line)\n if line.strip():\n sum = sum + int(line)\n i... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9363181/"
] |
74,642,771 | <p>I want to do a to do list app. I use Sqflite in my project.</p>
<h1>Widget</h1>
<p>`</p>
<pre><code> return FutureBuilder(
future: databaseTrans.getTables(),
builder: (context, snapshot) {
if (snapshot.data == null) {
return taskBookErrorWidget(context);
} else {
return GridView.... | [
{
"answer_id": 74642851,
"author": "rtoth",
"author_id": 20589189,
"author_profile": "https://Stackoverflow.com/users/20589189",
"pm_score": 2,
"selected": false,
"text": "max_num = 0\nsum = 0\nfor line in data:\n print(line)\n if line.strip():\n sum = sum + int(line)\n i... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20503448/"
] |
74,642,802 | <p>I wrote the script below to batch rename files with powershell. It is intended to remove dots (.) and every (-) that is followed by a number from the filenames. Example: text.10-1 becomes text101. However, I feel like there must be a way to do this in a line of code.
Also, I wanted it to also enter a subdirectory an... | [
{
"answer_id": 74642851,
"author": "rtoth",
"author_id": 20589189,
"author_profile": "https://Stackoverflow.com/users/20589189",
"pm_score": 2,
"selected": false,
"text": "max_num = 0\nsum = 0\nfor line in data:\n print(line)\n if line.strip():\n sum = sum + int(line)\n i... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11909247/"
] |
74,642,826 | <p>at my company, my teammate said that"in Flutter, static usage is very harmful for memory. You shouldn't use static variables too much."</p>
<p>After that, I have searched the internet, but I couldn't find satisfaction answer. So, I just wonder that if I use static value like at the below code lines, will i... | [
{
"answer_id": 74651132,
"author": "jamesdlin",
"author_id": 179715,
"author_profile": "https://Stackoverflow.com/users/179715",
"pm_score": 2,
"selected": true,
"text": "static static static static static static"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18849295/"
] |
74,642,835 | <p>Given a 2d matrix, I have a start cell, end cell, cells that must be visited and cells that cannot be visited.</p>
<p>What would be the optimal way to find a path that:</p>
<ul>
<li>starts at the start cell</li>
<li>ends at the end cell</li>
<li>passes through all must visit cell</li>
<li>does not pass through any c... | [
{
"answer_id": 74653968,
"author": "Maurice Perry",
"author_id": 7036419,
"author_profile": "https://Stackoverflow.com/users/7036419",
"pm_score": 2,
"selected": true,
"text": "Grid width height must mustNot public class Grid {\n private final int width;\n private final int height;... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/333918/"
] |
74,642,845 | <p>Ich have a specific code for Outlook that I would like to convert into late binding. However I am comparing some types, so I don't know how to make that comparison without having the dll loaded already.</p>
<pre><code>var ol = (dynamic)Marshal.GetActiveObject("Outlook.Application");
dynamic windowType = ol... | [
{
"answer_id": 74653968,
"author": "Maurice Perry",
"author_id": 7036419,
"author_profile": "https://Stackoverflow.com/users/7036419",
"pm_score": 2,
"selected": true,
"text": "Grid width height must mustNot public class Grid {\n private final int width;\n private final int height;... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1551974/"
] |
74,642,853 | <pre><code>Unable to get Xcode project information:
2022-12-01 13:57:05.376 xcodebuild[71564:226197] Writing error result bundle to
/var/folders/6g/w7cqd0s54c33_20mrl4v2q640000gn/T/ResultBundle_2022-01-12_13-57-0005.xcresult
xcodebuild: error: Unable to read project 'Runner.xcodeproj'.
Reason: Project /Users/... | [
{
"answer_id": 74643657,
"author": "Henadzi Rabkin",
"author_id": 1470374,
"author_profile": "https://Stackoverflow.com/users/1470374",
"pm_score": 1,
"selected": false,
"text": "flutter create"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17091972/"
] |
74,642,932 | <p>im trying to get files in different folders and get some cell values from them and put it in a sheet.
but i get below error</p>
<p>Exception: Cannot retrieve the next object: iterator has reached the end</p>
<p>im using below code and when i run it. it returns error on line 14
it seems code returns some values from ... | [
{
"answer_id": 74644485,
"author": "TheWizEd",
"author_id": 3656739,
"author_profile": "https://Stackoverflow.com/users/3656739",
"pm_score": 1,
"selected": false,
"text": "mfolders.hasNext\n\npfiles.hasNext\n mfolders.hasNext()\n\npfiles.hasNext()\n"
},
{
"answer_id": 74648987,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9075702/"
] |
74,642,935 | <p>I have the following xsd schema:</p>
<pre><code><Person>
<Gender>
<Any>
</code></pre>
<p>I have the following xml:</p>
<pre><code><Person>
<Gender>Male</Gender>
<Name>
<firstName>Elon</firstName>
<lastName>Musk</lastName>
</Name>
</Pe... | [
{
"answer_id": 74644485,
"author": "TheWizEd",
"author_id": 3656739,
"author_profile": "https://Stackoverflow.com/users/3656739",
"pm_score": 1,
"selected": false,
"text": "mfolders.hasNext\n\npfiles.hasNext\n mfolders.hasNext()\n\npfiles.hasNext()\n"
},
{
"answer_id": 74648987,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14436400/"
] |
74,642,954 | <p>I am analysing some data with a binomial distribution.
We have 2 possible choices for a stimulus, and patients (female and male) have to decide whether they feel pain (1) or not (0).</p>
<p>I would like to plot a bargraph showing the number of patients who choose 0 or 1, in a rotated way.</p>
<p>An idea of the graph... | [
{
"answer_id": 74643145,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 1,
"selected": false,
"text": "library(tidyverse)\n\ndata %>%\n count(response, sex) %>%\n mutate(n = ifelse(response == 0, -n, n)) %>%\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15760316/"
] |
74,642,961 | <p>I'm trying to use Stripe Checkout for a subscription service.</p>
<p>Using the PHP SDK</p>
<pre><code>Session::create([
'customer' => $user->stripeCustomerId,
'payment_method_types' => ['card'],
'line_items' => [[
'price' => 'price_0MACBYAGG6RS7KP5c1... | [
{
"answer_id": 74643145,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 1,
"selected": false,
"text": "library(tidyverse)\n\ndata %>%\n count(response, sex) %>%\n mutate(n = ifelse(response == 0, -n, n)) %>%\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/833709/"
] |
74,642,964 | <p>In my to-do app, I'm trying to set local notification at the time when dead line date for task have been came, but i can't figure out whats wrong with calendar trigger, interval trigger working ok. In function body i put default Date()</p>
<pre><code> func setupNotifications(id: String, contentTitle: String, content... | [
{
"answer_id": 74643145,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 1,
"selected": false,
"text": "library(tidyverse)\n\ndata %>%\n count(response, sex) %>%\n mutate(n = ifelse(response == 0, -n, n)) %>%\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18835853/"
] |
74,642,981 | <p>I am having difficulties trying to locate multiple values from columns in a csv file.</p>
<p>So far i have tried defining the columns from which i want to extract the values as,</p>
<pre><code>Assignments = (data.loc[:, ~data.columns.isin(['A', 'B','C'])])
</code></pre>
<p>This should take each column not named 'A',... | [
{
"answer_id": 74643575,
"author": "ImotVoksim",
"author_id": 17580723,
"author_profile": "https://Stackoverflow.com/users/17580723",
"pm_score": 2,
"selected": true,
"text": "df[(df[:] != 20).all(axis = 1)] ar1 = np.array((df[:] != 20).all(axis = 1))\nar2 = np.array((df[:] != 30).all(ax... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74642981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20624550/"
] |
74,643,004 | <pre><code>class Solution {
public boolean halvesAreAlike(String s) {
Set<Character> vowels = Set.of('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U');
int vowelsCount = 0, midIndex = s.length() / 2;
for (int i = 0; i < midIndex; i++) {
char charA = s.charAt(i);
... | [
{
"answer_id": 74643575,
"author": "ImotVoksim",
"author_id": 17580723,
"author_profile": "https://Stackoverflow.com/users/17580723",
"pm_score": 2,
"selected": true,
"text": "df[(df[:] != 20).all(axis = 1)] ar1 = np.array((df[:] != 20).all(axis = 1))\nar2 = np.array((df[:] != 30).all(ax... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657032/"
] |
74,643,043 | <p>I come from c++ background and learning rust. I'm trying to implement the rust equivalent code of the following c++ code which makes use of inheritance, but got stuck. This is my sample code</p>
<pre class="lang-cpp prettyprint-override"><code>class Vehicle {
public:
double lat;
double lon;
double alt;
... | [
{
"answer_id": 74646539,
"author": "Kevin Reid",
"author_id": 99692,
"author_profile": "https://Stackoverflow.com/users/99692",
"pm_score": 1,
"selected": false,
"text": "struct VehicleState {\n lat: f64,\n lon: f64,\n alt: f64,\n speed: f64,\n}\n struct Cab {\n state: Veh... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3938402/"
] |
74,643,048 | <p>I'm collecting time series data, but sometimes for some time points there is no data to be collected. Just say for example I am collecting data across four time points, I might get a dataframe like this:</p>
<pre><code>df_ = pd.DataFrame({'group': ['A']*3+['B']*3,
'time': [1,2,4,1,3,4],
... | [
{
"answer_id": 74643308,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "(df_.pivot(index='time', columns='group', values='value')\n # reindex only of you want to add missing times for ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5024631/"
] |
74,643,079 | <p>i am doing this todo list from a youtube channel.below is the code</p>
<pre><code>import { useState } from "react";
export default function Todo(){
const[todo,settodo]=useState("");
const [todolist,settodolist]=useState([])
const Handletodo=(event)=>{
settodo(event.target... | [
{
"answer_id": 74643308,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "(df_.pivot(index='time', columns='group', values='value')\n # reindex only of you want to add missing times for ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14346213/"
] |
74,643,093 | <p>I'm trying to backup some information from a folder. I try to make it so my collegues can also work with it. The folder in with are the files to backup dosen't have the same name on each machine.</p>
<p>I work from a different folder.</p>
<p>What I can do is this in CMD:</p>
<pre><code>cd %APPDATA%\Mozilla\Firefox\P... | [
{
"answer_id": 74646732,
"author": "Mofi",
"author_id": 3074564,
"author_profile": "https://Stackoverflow.com/users/3074564",
"pm_score": 2,
"selected": true,
"text": "@echo off\nsetlocal EnableExtensions DisableDelayedExpansion\nrem Search for the default Firefox profiles directory. If ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3365217/"
] |
74,643,252 | <p>I'm new to javascript and I'm having difficulty keeping up with the various ways of writing functions, particularly the newer arrow function styles that don't require a return statement.</p>
<p>I spent a while trying to write a function that takes a string containing both numbers and number strings, converts all int... | [
{
"answer_id": 74643323,
"author": "0stone0",
"author_id": 5625547,
"author_profile": "https://Stackoverflow.com/users/5625547",
"pm_score": 0,
"selected": false,
"text": "map() reduce() parseInt cur 0 reduce() parseInt(cur) const myArr = [3, 7, 8, \"5\", \"9\", 6, \"2\"];\n\nconst sumMi... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5220731/"
] |
74,643,271 | <p>I want to apply the widget ColorFiltered to a container which is inside an other container, the problem is the filter takes all the screen => The filter is also applied to the blue container, and this same container expands.</p>
<pre><code>void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWid... | [
{
"answer_id": 74644329,
"author": "LorenzOliveto",
"author_id": 2290372,
"author_profile": "https://Stackoverflow.com/users/2290372",
"pm_score": 2,
"selected": true,
"text": "ClipRect class Test1 extends StatelessWidget {\n const Test1({super.key});\n\n @override\n Widget build(Buil... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7905820/"
] |
74,643,277 | <p>I have a problem. It includes the condition that to COUNT the rows where its status = 1 (GROUP BY name).</p>
<p>However, the result should include the rows WHERE those are not = 1 and NULL. And they are counted as 0.</p>
<p>I have tried cte, CASE WHEN, WHERE status = 1 or status IS NULL. It does include null as 0, b... | [
{
"answer_id": 74644329,
"author": "LorenzOliveto",
"author_id": 2290372,
"author_profile": "https://Stackoverflow.com/users/2290372",
"pm_score": 2,
"selected": true,
"text": "ClipRect class Test1 extends StatelessWidget {\n const Test1({super.key});\n\n @override\n Widget build(Buil... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20616169/"
] |
74,643,337 | <p>Trying to clone with full SSH URL, e.g., <code>git clone ssh://bitbucket.org/myaccount/myrepo.git</code> fails with permission denied (publickey), but using shorthand SSH URL, e.g., <code>git clone git@bitbucket.org/myaccount/myrepo.git</code> works just fine. Furthermore, even doing something like the following fai... | [
{
"answer_id": 74644329,
"author": "LorenzOliveto",
"author_id": 2290372,
"author_profile": "https://Stackoverflow.com/users/2290372",
"pm_score": 2,
"selected": true,
"text": "ClipRect class Test1 extends StatelessWidget {\n const Test1({super.key});\n\n @override\n Widget build(Buil... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12103188/"
] |
74,643,354 | <p>The first way</p>
<pre><code>fun add(a: Int, b: Int): Int {
return a + b
}
fun main() {
print(add(a = 2, b = 3))
}
</code></pre>
<p>The second way</p>
<pre><code>fun add(a: Int, b: Int): Int {
return a + b
}
fun main() {
print(add(2, 3))
}
</code></pre>
<p>The end result of the two functions is the... | [
{
"answer_id": 74643573,
"author": "Robin",
"author_id": 10514633,
"author_profile": "https://Stackoverflow.com/users/10514633",
"pm_score": 0,
"selected": false,
"text": "fun add(a :Int,b: Int):Int {\n return a+b;\n}\n fun add(a :Int = 2,b: Int = 3, c: Int = 4):Int {\n return a+b+... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18415790/"
] |
74,643,412 | <p>I am trying to convert the pandas dataframe column values from -</p>
<pre><code>{'01AB': [("ABC", 5),("XYZ", 4),("LMN", 1)], '02AB_QTY': [("Other", 20),("not_Other", 150)]}
</code></pre>
<p>this is what i have tried till now, but not working</p>
<pre><code>import pan... | [
{
"answer_id": 74643743,
"author": "Adam.Er8",
"author_id": 5052365,
"author_profile": "https://Stackoverflow.com/users/5052365",
"pm_score": 2,
"selected": true,
"text": "df.applymap() df[col_list] = df[col_list].applymap(lambda lst: {k: v for k, v in lst})\n"
},
{
"answer_id": ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16578438/"
] |
74,643,456 | <p>I am practicing creating my own testing framework on Pycharm in Python with Selenium. However, for some reason the suite is failing to initiate pytest and recognise my test case, I am not sure where I have gone wrong, I usually dont have this problem, and I have marked the test case with test_.</p>
<pre><code>import... | [
{
"answer_id": 74643743,
"author": "Adam.Er8",
"author_id": 5052365,
"author_profile": "https://Stackoverflow.com/users/5052365",
"pm_score": 2,
"selected": true,
"text": "df.applymap() df[col_list] = df[col_list].applymap(lambda lst: {k: v for k, v in lst})\n"
},
{
"answer_id": ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20647640/"
] |
74,643,461 | <p>For my dataset, the Date variable has dates in the format of this example: 19-Feb-03
I want to change the above character format dates in the column to a Date format. (As I have to do time series analysis later on)</p>
<p>I tried using the as.Date() method but it didn't work.</p>
| [
{
"answer_id": 74643743,
"author": "Adam.Er8",
"author_id": 5052365,
"author_profile": "https://Stackoverflow.com/users/5052365",
"pm_score": 2,
"selected": true,
"text": "df.applymap() df[col_list] = df[col_list].applymap(lambda lst: {k: v for k, v in lst})\n"
},
{
"answer_id": ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657318/"
] |
74,643,486 | <p>Suppose I have 3 elements that I want to check if they are in an iterable say (<code>str</code> or <code>list</code>).</p>
<p>I'm going to use an <code>str</code> as an example now but it should be the same in the case of a list:</p>
<p>Assuming values to check for are <code>'a','b','c'</code> and string to search i... | [
{
"answer_id": 74643504,
"author": "AKX",
"author_id": 51685,
"author_profile": "https://Stackoverflow.com/users/51685",
"pm_score": 3,
"selected": false,
"text": "all all ['a','b','c'] # All found\n~ $ python3 -m timeit -s \"line = 'fooabc'\" \"'a' in line and 'b' in line and 'c' in lin... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10817229/"
] |
74,643,499 | <p>I have the list <strong>a</strong>:</p>
<p><code>a = ['wood', 'stone', 'bricks', 'diamond']</code></p>
<p>And the list <strong>b</strong>:</p>
<p><code>b = ['iron', 'gold', 'stone', 'diamond', 'wood']</code></p>
<p>I need to compare lists and if value of list <strong>a</strong> equals with value from list <strong>b<... | [
{
"answer_id": 74643615,
"author": "Daniel Robinson",
"author_id": 20631228,
"author_profile": "https://Stackoverflow.com/users/20631228",
"pm_score": 1,
"selected": false,
"text": "list(set(a) & set(b))\n"
},
{
"answer_id": 74643653,
"author": "Hunter",
"author_id": 1507... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20165331/"
] |
74,643,520 | <p>I want to find a certain string in an array and for the case that it isn't found, add it to the end of the array. Checking if the value is in the array is okay. However, I can't find a method to determine the last next free place to add the value for the case that it's missing.</p>
<pre><code>Sub New_3()
Dim i As I... | [
{
"answer_id": 74644046,
"author": "FaneDuru",
"author_id": 2233308,
"author_profile": "https://Stackoverflow.com/users/2233308",
"pm_score": 2,
"selected": false,
"text": "As Char Sub New_3()\n Dim mtch, stringToBeFound As String * 1\n Dim arr As Variant\n\n arr = Split(\"A,B,V,N,G,Y,U,... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11535108/"
] |
74,643,572 | <p>I have the following dataframe:</p>
<pre><code>df=pd.DataFrame({
'col1' : ['A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'D'],
'col2' : [9.6,10.4, 11.2, 3.3, 6, 4, 1.94, 15.44, 6.17, 8.16]
})
</code></pre>
<p>It has the display :</p>
<pre><code>col1 col2
0 A 9.60
1 A 10.40
2 A 11.20
3 B 3.3... | [
{
"answer_id": 74643701,
"author": "ImotVoksim",
"author_id": 17580723,
"author_profile": "https://Stackoverflow.com/users/17580723",
"pm_score": 1,
"selected": false,
"text": "differences = []\n\nfor val in df.col1.unique():\n diffs = df.loc[df.col1 == val].col2.diff()\n differenc... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15852600/"
] |
74,643,594 | <p>I already have one solution which going like this one below. But at Safari it looks like there is no <strong>margin-right: -5px;</strong>. Are there another ways to done this task <strong>or</strong> fixes for already existing solution.</p>
<p><strong>HTML</strong></p>
<pre><code><div class="card">
... | [
{
"answer_id": 74644977,
"author": "Kondi",
"author_id": 10164453,
"author_profile": "https://Stackoverflow.com/users/10164453",
"pm_score": -1,
"selected": false,
"text": "clip-path: polygon(0 0, 80% 0%, 100% 20%, 100% 100%, 0 100%);\n .card {\n width: 243px;\n height: 400px;\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18783228/"
] |
74,643,599 | <p>I have a form in my .ejs file which has 4 number inputs and 1 text input.
When clicking the submit button I want to run a script to check if the total of all the <em>number inputs</em> <= 1140.
If it is within that boundary, submit.
If it is not within that boundary, display that the total is higher than 1140 and... | [
{
"answer_id": 74644977,
"author": "Kondi",
"author_id": 10164453,
"author_profile": "https://Stackoverflow.com/users/10164453",
"pm_score": -1,
"selected": false,
"text": "clip-path: polygon(0 0, 80% 0%, 100% 20%, 100% 100%, 0 100%);\n .card {\n width: 243px;\n height: 400px;\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572636/"
] |
74,643,621 | <p>I want to change the column labels of a Pandas DataFrame from</p>
<pre><code>['evaluationId,createdAt,scheduleEndDate,sharedTo, ...]
</code></pre>
<p>to</p>
<pre><code>['EVALUATION_ID,CREATED_AT,SCHEDULE_END_DATE,SHARED_TO,...]
</code></pre>
<p>I have a lot of columns with this pattern "aaaBb" and I want t... | [
{
"answer_id": 74643649,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "str.replace _ str.upper df.columns = (df.columns\n .str.replace('(?<=[a-z])(?=[A-Z])', '_', regex=Tr... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6214693/"
] |
74,643,622 | <p>In my Django project I have a model for a drinks recipe that allows up to 10 ingredients plus their amount.
I am wondering if it's possible to make this in a more DRY way than I do now?
This is the model I am using currently:</p>
<pre><code>class Recipe(models.Model):
ingr_name1 = models.CharField(max_length=250... | [
{
"answer_id": 74644082,
"author": "kimbo",
"author_id": 9638991,
"author_profile": "https://Stackoverflow.com/users/9638991",
"pm_score": 1,
"selected": false,
"text": "ingredients_changed() class Ingredient(model.Model):\n name = models.CharField()\n amount = models.CharField()\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14408344/"
] |
74,643,633 | <p>html page:</p>
<pre><code><ion-content>
<iframe [src]="qrLink" width="100%" height="100%"></iframe>
</ion-content>
</code></pre>
<p>ts page:</p>
<pre><code>qrLink: string = null
ngOnInit() {
this.getShop();
}
async getShop(){
const shopId = this.... | [
{
"answer_id": 74654882,
"author": "gokeyn",
"author_id": 11854042,
"author_profile": "https://Stackoverflow.com/users/11854042",
"pm_score": 1,
"selected": false,
"text": "constructor(\n ...\n private sanitizer: DomSanitizer\n ) {}\n\nngOnInit() {\n this.getShop();\n}\n\nasync g... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11854042/"
] |
74,643,668 | <div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Client Number</th>
<th>Matter Number</th>
<th>Address</th>
<th>Physical Files</th>
<th>Electronic Files</th>
<th>If any?</th>
</tr>
</thead>
<tbody>
<tr>
<td>10001</td>
<td>1000101</td>
<td>Addy1</td>
<td>No</td>
<td>No</td>
<td>0</td>
</tr>
<tr... | [
{
"answer_id": 74654882,
"author": "gokeyn",
"author_id": 11854042,
"author_profile": "https://Stackoverflow.com/users/11854042",
"pm_score": 1,
"selected": false,
"text": "constructor(\n ...\n private sanitizer: DomSanitizer\n ) {}\n\nngOnInit() {\n this.getShop();\n}\n\nasync g... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657140/"
] |
74,643,676 | <p>I am working on a simple timesheet/time tracking app in Shiny for personal use. The app will record timestamps for when I start and stop activities. However, there are times during the day where there are natural gaps between specific tasks where you still do stuff. These in-between periods are not captured by the a... | [
{
"answer_id": 74654882,
"author": "gokeyn",
"author_id": 11854042,
"author_profile": "https://Stackoverflow.com/users/11854042",
"pm_score": 1,
"selected": false,
"text": "constructor(\n ...\n private sanitizer: DomSanitizer\n ) {}\n\nngOnInit() {\n this.getShop();\n}\n\nasync g... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2878014/"
] |
74,643,721 | <p>Suppose i have an np array like this-</p>
<pre><code>[[ 0 1 2 3 4]
[ 5 6 7 8 9]
[10 11 12 13 14]
[15 16 17 18 19]]
</code></pre>
<p>I want a function fun_strip(x) . After applying this function i want the returned array to look like this:</p>
<pre><code>[[ 6 7 8]
[11 12 13]]
</code></pre>
| [
{
"answer_id": 74643838,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "a = np.array([[ 0, 1, 2, 3, 4],\n [ 5, 6, 7, 8, 9],\n [10, 11, 12, 13, 14],\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20538008/"
] |
74,643,724 | <p>I did find some examples but they do not merge into single column.
So, I am trying to join 2 table columns data into single column
I have Url1, site1, url2, site2, endurl 5 columns in table1
and keywords column in table2</p>
<p>I want to join or merge these columns into one column like
url1 site1 keywords,url2 site... | [
{
"answer_id": 74643838,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "a = np.array([[ 0, 1, 2, 3, 4],\n [ 5, 6, 7, 8, 9],\n [10, 11, 12, 13, 14],\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7550189/"
] |
74,643,731 | <p>I am reading data from a file and the type of the data is stored as a <code>uint8_t</code> which indicates the type of data I am about to read. This is the enum corresponding to the declaration of these values.</p>
<pre><code>enum DataType
{
kInt8,
kUint16,
kInt16,
kUint32,
kInt32,
kUint64,
... | [
{
"answer_id": 74644030,
"author": "Rulle",
"author_id": 1008794,
"author_profile": "https://Stackoverflow.com/users/1008794",
"pm_score": 1,
"selected": false,
"text": "#define FOREACH_DATATYPE(OP) \\\n OP(kUint8, uint8_t) \\\n OP(kInt8, in... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1794325/"
] |
74,643,739 | <p>I have the following hexadecimal string:
7609a2fed47be9131ea1b803afc517b8</p>
<p>I want to convert it to hexadecimal array each element 1 byte long
[76 09 a2 fe d4 7b e9 13 1e a1 b8 03 af c5 17 b8]</p>
<p>then i need to convert it to decimal array.</p>
<p>i tried converting it to binary then to hexadecimal again, it... | [
{
"answer_id": 74644030,
"author": "Rulle",
"author_id": 1008794,
"author_profile": "https://Stackoverflow.com/users/1008794",
"pm_score": 1,
"selected": false,
"text": "#define FOREACH_DATATYPE(OP) \\\n OP(kUint8, uint8_t) \\\n OP(kInt8, in... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20564624/"
] |
74,643,740 | <p>i have a query that is more slow and i don't understand why. I think, there are the corrects indexes on the tables..</p>
<pre><code>SELECT
e.id, e.coordinate, e.lat AS latitudine, e.lon AS longitudine, e.dataora, e.indirizzo, e.dato, e.precisione_metri, e.precisione_secondi, e.precisione_invalid, e.distanza, e.v... | [
{
"answer_id": 74644030,
"author": "Rulle",
"author_id": 1008794,
"author_profile": "https://Stackoverflow.com/users/1008794",
"pm_score": 1,
"selected": false,
"text": "#define FOREACH_DATATYPE(OP) \\\n OP(kUint8, uint8_t) \\\n OP(kInt8, in... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15661794/"
] |
74,643,741 | <p>I've been using some of the Linux tooling on my Windows machine for a little while now, since it comes with the git installation and it's a ton of fun to use. I've been particularly enamored with this command, which should theoretically allow me to delete all my extraneous git branches in one go:</p>
<pre class="lan... | [
{
"answer_id": 74644030,
"author": "Rulle",
"author_id": 1008794,
"author_profile": "https://Stackoverflow.com/users/1008794",
"pm_score": 1,
"selected": false,
"text": "#define FOREACH_DATATYPE(OP) \\\n OP(kUint8, uint8_t) \\\n OP(kInt8, in... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9182405/"
] |
74,643,745 | <p>I have added smartbutton in res.partner form view header that opens the current partner helpdesk tickets (helpdesk.ticket model).
<a href="https://i.stack.imgur.com/3SWIh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3SWIh.png" alt="enter image description here" /></a></p>
<p><strong>Smartbutton... | [
{
"answer_id": 74644030,
"author": "Rulle",
"author_id": 1008794,
"author_profile": "https://Stackoverflow.com/users/1008794",
"pm_score": 1,
"selected": false,
"text": "#define FOREACH_DATATYPE(OP) \\\n OP(kUint8, uint8_t) \\\n OP(kInt8, in... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11638716/"
] |
74,643,755 | <p>Is it possible to specify the individual fields in a dict contained inside a pydantic model? I was not able to find anything but maybe I'm using the wrong keywords. I'm thinking of something like this:</p>
<pre class="lang-py prettyprint-override"><code>from pydantic import BaseModel
class User(BaseModel):
id: ... | [
{
"answer_id": 74643914,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 3,
"selected": true,
"text": "from pydantic import BaseModel\n\nclass UserStats(BaseModel):\n age: int\n height: float\n\nclass User(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/638366/"
] |
74,643,757 | <p>I want to make 4 different ADC measurements. I want to be that those readed values are floats. After that I want to put those 4 float values in an uint8_t to send it over the function:</p>
<pre><code>uint32_t ble_nus_data_send(ble_nus_t * p_nus,
uint8_t * p_data,
... | [
{
"answer_id": 74643914,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 3,
"selected": true,
"text": "from pydantic import BaseModel\n\nclass UserStats(BaseModel):\n age: int\n height: float\n\nclass User(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20656617/"
] |
74,643,760 | <p>I am trying to get all dupicated observations. I was looking but all solutions seems to give for columns. Is it possible get the entire rows?</p>
<p>My dataset looks like this</p>
<pre><code>structure(list(CrimeId = c(160903280L, 160912272L, 160912590L,
160912801L, 160912811L, 160913003L), OriginalCrimeTypeName = c... | [
{
"answer_id": 74643914,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 3,
"selected": true,
"text": "from pydantic import BaseModel\n\nclass UserStats(BaseModel):\n age: int\n height: float\n\nclass User(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19110567/"
] |
74,643,795 | <p>I have this sed command which add's 3 zero's to an id (this occurs only if the id is 13 characters long):</p>
<pre><code>sed 's/^\(.\{14\}\)\([0-9]\{13\}[^0-9]\)/\1000\2/' file
</code></pre>
<p>My input looks like this:</p>
<pre><code>A:AAAA:AA: :A:**0123456789ABC **:AAA:AAA : :AA: : :
... | [
{
"answer_id": 74643968,
"author": "choroba",
"author_id": 1030675,
"author_profile": "https://Stackoverflow.com/users/1030675",
"pm_score": 2,
"selected": false,
"text": "\\) sed 's/^\\(.\\{14\\}\\)\\([0-9]\\{13\\}[^0-9]\\) /\\1000\\2/'\n [0-9] [0-9A-C]"
},
{
"answer_id": 7464... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14069611/"
] |
74,643,853 | <p>I have would like to add a vector to a column, without specifying the other columns. I have example data as follows.</p>
<pre><code>library(data.table)
dat <- fread("A B C D
one 2 three four
two 3 NA one")
vector_to_add <- c("five", "six")
</code></... | [
{
"answer_id": 74643947,
"author": "benbelo",
"author_id": 9942314,
"author_profile": "https://Stackoverflow.com/users/9942314",
"pm_score": 0,
"selected": false,
"text": " library(data.table)\n\ndat <- fread(\"A B C D\n one 2 three four\n two 3 NA one\")\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8071608/"
] |
74,643,856 | <p>I have table with few columns but I am interested in two of them:</p>
<ol>
<li>name</li>
<li>type - it can be one of tree values: 1, 2, 3</li>
</ol>
<p>All I want to create is a table where in first column I will SELECT value from column name where type = 1, in second column value from column name where type = 2, in... | [
{
"answer_id": 74644229,
"author": "Ali Enes İşbilen",
"author_id": 16260639,
"author_profile": "https://Stackoverflow.com/users/16260639",
"pm_score": 2,
"selected": true,
"text": "SELECT\n IF(type=1, name, NULL) as \"Product with type 1\",\n IF(type=2, name, NULL) as \"Product with t... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9509739/"
] |
74,643,861 | <p>I wrote a script which count number of lines in each file:</p>
<pre><code>todays_day=$(date +%d)
if ((todays_day==1)); then
month="$(date --date='1 day ago' +%y%m)"
else
month="$(date +%y%m)"
fi
for catalog in $(find ./ -type d -name "$month")
do
sum=0
find $catalog -typ... | [
{
"answer_id": 74645023,
"author": "Paul Hodges",
"author_id": 8656552,
"author_profile": "https://Stackoverflow.com/users/8656552",
"pm_score": 0,
"selected": false,
"text": "todays_day=$(date +%d) \nif ((todays_day==1)); then\n month=\"$(date --date='1 day ago' +%y%m)\"\nelse\n month... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20623337/"
] |
74,643,867 | <p>I need to create a Google Tag Manager Javascript function that would return a label (group label) from a var entry that is a number (id of the group)
I created this function but it doesn't work (returns undefined)
I'm really new with Javascript so I don't understand what is wrong.</p>
<pre><code>function client_grou... | [
{
"answer_id": 74645023,
"author": "Paul Hodges",
"author_id": 8656552,
"author_profile": "https://Stackoverflow.com/users/8656552",
"pm_score": 0,
"selected": false,
"text": "todays_day=$(date +%d) \nif ((todays_day==1)); then\n month=\"$(date --date='1 day ago' +%y%m)\"\nelse\n month... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7334566/"
] |
74,643,882 | <p>I have 2 branches: 4 and 5, which represent 4 and 5 versions of my application (5 is continuation of 4). By my fault I created new branch from branch 5 (instead of 4) and do one commit. How to change my branch in that way: ostensibly I created my branch from branch 4 and added one commit?</p>
<p>Now:</p>
<pre><code>... | [
{
"answer_id": 74644025,
"author": "eftshift0",
"author_id": 2437508,
"author_profile": "https://Stackoverflow.com/users/2437508",
"pm_score": 3,
"selected": true,
"text": "git rebase 5 my-branch --onto 4\n"
},
{
"answer_id": 74649885,
"author": "tymtam",
"author_id": 581... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19130076/"
] |
74,643,924 | <p>When i try to clone with ssh eg:
<code>git@test.company.com:service/test.git</code>
i get a request password for user
<code>git@test.company.com</code>
yet when i try the same thing with the http git
<code>http://test.company.com:service/test.git</code>
i get asked shh certificate <strong>userName</strong>,</p>
<p>w... | [
{
"answer_id": 74644025,
"author": "eftshift0",
"author_id": 2437508,
"author_profile": "https://Stackoverflow.com/users/2437508",
"pm_score": 3,
"selected": true,
"text": "git rebase 5 my-branch --onto 4\n"
},
{
"answer_id": 74649885,
"author": "tymtam",
"author_id": 581... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657479/"
] |
74,643,982 | <p>I have a string and an array and I want to loop them both to see if the string is inside the array and if the string is found in the array it should respond true</p>
<pre><code>const string = papper
const array = [book sissors, apron, tape, paper]
</code></pre>
<p>How do I do it?</p>
<p>I tried</p>
<pre><code>const ... | [
{
"answer_id": 74644135,
"author": "Saif",
"author_id": 4777670,
"author_profile": "https://Stackoverflow.com/users/4777670",
"pm_score": 1,
"selected": false,
"text": "Array.prototype.includes() const string = \"paper\";\nconst array = [\"book\", \"scissors\", \"apron\", \"tape\", \"pap... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657529/"
] |
74,643,983 | <p>In my SQL server I run</p>
<pre><code>SELECT HashBytes('MD5', CONCAT('A',convert(nvarchar,123),'456')) as mycol
</code></pre>
<p>and get</p>
<pre><code>0xC2E6DDD93A5E4A4FEC8162D4847BD3AA
</code></pre>
<p>In Oracle I run</p>
<pre><code>select standard_hash(concat('A',concat(cast('123' as nvarchar2(255)),'456')), 'MD5... | [
{
"answer_id": 74644135,
"author": "Saif",
"author_id": 4777670,
"author_profile": "https://Stackoverflow.com/users/4777670",
"pm_score": 1,
"selected": false,
"text": "Array.prototype.includes() const string = \"paper\";\nconst array = [\"book\", \"scissors\", \"apron\", \"tape\", \"pap... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3579222/"
] |
74,643,986 | <h1>What I need</h1>
<p>I have a data structure <code>Tree</code> with two levels of proxies one for <code>Branch</code> and a more detailed <code>Leaf</code>.</p>
<p>Here is a MCVE:</p>
<pre class="lang-cpp prettyprint-override"><code>#include <vector>
#include <iostream>
class Tree {
public:
class Le... | [
{
"answer_id": 74644135,
"author": "Saif",
"author_id": 4777670,
"author_profile": "https://Stackoverflow.com/users/4777670",
"pm_score": 1,
"selected": false,
"text": "Array.prototype.includes() const string = \"paper\";\nconst array = [\"book\", \"scissors\", \"apron\", \"tape\", \"pap... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74643986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/476266/"
] |
74,644,003 | <p>I have a simplest nft code. My task is to take an array of buyers (wallet addresses) of this nft when it's minted and to pass it ((array) or them ((addresses))) to another contract of mine, so i could take further action with them. The answer is... HOW?
I'm new to programming, so please be gentle with me ^_^</p>
<p>... | [
{
"answer_id": 74645390,
"author": "Petr Galushkin",
"author_id": 18125566,
"author_profile": "https://Stackoverflow.com/users/18125566",
"pm_score": 1,
"selected": false,
"text": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.17;\n\ninterface InterfaceParentContract {\n\n fun... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657320/"
] |
74,644,021 | <p>I have created a web api, simple dotnet framework api as below</p>
<p><a href="https://i.stack.imgur.com/TBmVv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TBmVv.png" alt="enter image description here" /></a></p>
<p>Now i have create dotnet maui blazor app connecting to the android physical dev... | [
{
"answer_id": 74645390,
"author": "Petr Galushkin",
"author_id": 18125566,
"author_profile": "https://Stackoverflow.com/users/18125566",
"pm_score": 1,
"selected": false,
"text": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.17;\n\ninterface InterfaceParentContract {\n\n fun... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/324831/"
] |
74,644,026 | <p>In the following variables, how do I dynamically pass user.id and friend.id</p>
<pre class="lang-kotlin prettyprint-override"><code>
class WindViewModel @Inject constructor() : BaseViewModel() {
val userWindList = Pager(config = pagingConfig, remoteMediator = WindRemoteMediator("userWindList", user.id... | [
{
"answer_id": 74644203,
"author": "ndriqa",
"author_id": 9410164,
"author_profile": "https://Stackoverflow.com/users/9410164",
"pm_score": 0,
"selected": false,
"text": "Kotlin ...\nval sumOfSomeInts = sumOfSomeInts(1, 3, 7, 2)\n...\nfun sumOfSomeInts(vararg num: Int): Int {\n var su... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4218245/"
] |
74,644,033 | <p>I wanted to add & remove (Multiple values) of the input to tag on the click event of checkbox.
done the code for single items, please help me to do for getting multiple values.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre ... | [
{
"answer_id": 74644216,
"author": "vmar",
"author_id": 7642741,
"author_profile": "https://Stackoverflow.com/users/7642741",
"pm_score": 1,
"selected": false,
"text": "$(document).ready(function() {\n $('input').click(function() {\n var selectedval = function() {\n let v = [];\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3927335/"
] |
74,644,103 | <blockquote>
<p>for y in (random.randint(0,9)) in (x):
TypeError: argument of type 'int' is not iterable</p>
</blockquote>
<pre><code>import random
x = (random.randint(0,9))
print (x)
y = (random.randint(0,9))
print (y)
for y in (random.randint(0,9)) in (x):
if (y)==(x):
break
</code></pre>
| [
{
"answer_id": 74644216,
"author": "vmar",
"author_id": 7642741,
"author_profile": "https://Stackoverflow.com/users/7642741",
"pm_score": 1,
"selected": false,
"text": "$(document).ready(function() {\n $('input').click(function() {\n var selectedval = function() {\n let v = [];\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657228/"
] |
74,644,171 | <p>I'm trying to import products from an XML with variations.
The import for the products works so far but it doesn't create the variations.</p>
<p>Here is my code (simplified):</p>
<pre class="lang-php prettyprint-override"><code> /**
* @return int
* @throws \Exception
*/
public function execute(... | [
{
"answer_id": 74646118,
"author": "dneustadt",
"author_id": 8556259,
"author_profile": "https://Stackoverflow.com/users/8556259",
"pm_score": 2,
"selected": true,
"text": "variation Runtime parentId options property_group_option $productData = [\n // ...\n 'parentId' => '...'\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4153552/"
] |
74,644,208 | <p>I'm a newbie in PureScript now reading a book "Functional Programming Made Easier: A Step-by-Step Guide", but when I got to the section on Tuples, I realised that all that was presented appeared to be nonsense.</p>
<p>This is the code that's presented that does not work.</p>
<pre class="lang-hs prettyprint... | [
{
"answer_id": 74645046,
"author": "Fyodor Soikin",
"author_id": 180286,
"author_profile": "https://Stackoverflow.com/users/180286",
"pm_score": 2,
"selected": true,
"text": "splitPosAndNeg :: Array Int -> Tuple (Array Int) (Array Int)\n let Tuple pos neg = splitPosAndNeg [1, -2, 3, -4, ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8256981/"
] |
74,644,227 | <p>I have table in SAS like below:</p>
<p>data type:</p>
<ul>
<li><p>ID - numeric</p>
</li>
<li><p>TYPE - character</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>TYPE</th>
</tr>
</thead>
<tbody>
<tr>
<td>111</td>
<td>{"Top":10}</td>
</tr>
<tr>
<td>222</td>
<td>{"... | [
{
"answer_id": 74644328,
"author": "Kermit",
"author_id": 10468613,
"author_profile": "https://Stackoverflow.com/users/10468613",
"pm_score": 3,
"selected": true,
"text": "data want;\n set have;\n length col1 $50.;\n col1 = strip(scan(tranwrd(type,'\"Top\":','|'),2,'|},'));\nrun;\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12242085/"
] |
74,644,248 | <p>I have a yaml that I need to process with a python script, the yaml is something like this:</p>
<pre><code>user: john
description: Blablabla
version: 1
data:
data1: {type : bool, default: 0, flag: True}
data2: {type : bool, default: 0, flag: True}
data3: {type : float, default: 0, flag: false}
</code></pre>
<p>I... | [
{
"answer_id": 74644328,
"author": "Kermit",
"author_id": 10468613,
"author_profile": "https://Stackoverflow.com/users/10468613",
"pm_score": 3,
"selected": true,
"text": "data want;\n set have;\n length col1 $50.;\n col1 = strip(scan(tranwrd(type,'\"Top\":','|'),2,'|},'));\nrun;\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13943268/"
] |
74,644,351 | <p>I am transferring some data from Anylogic to Excel. This happens every time an agent enters the wait block, and I store its ID,processing time and due date. Which would look like:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">ID</th>
<th style="text-align: cen... | [
{
"answer_id": 74645221,
"author": "Felipe",
"author_id": 3438111,
"author_profile": "https://Stackoverflow.com/users/3438111",
"pm_score": 3,
"selected": true,
"text": "public class ExportInfo(){\n public int id;\n public int P;\n public int d;\n\n public ExportInfo(int id,i... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20511412/"
] |
74,644,361 | <p>I have a simple terraform code</p>
<pre><code># Configure the Microsoft Azure provider
provider "azurerm" {
features {}
}
# Create a Resource Group if it doesn’t exist
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West US&... | [
{
"answer_id": 74645221,
"author": "Felipe",
"author_id": 3438111,
"author_profile": "https://Stackoverflow.com/users/3438111",
"pm_score": 3,
"selected": true,
"text": "public class ExportInfo(){\n public int id;\n public int P;\n public int d;\n\n public ExportInfo(int id,i... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/261708/"
] |
74,644,389 | <p>I have a table with <strong>user_id's</strong> and number of <strong>impressions</strong> they received during a certain period of time. A new record is added to the table when there is a new impression. Ex below:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>user_id</th>
<th>impressio... | [
{
"answer_id": 74645221,
"author": "Felipe",
"author_id": 3438111,
"author_profile": "https://Stackoverflow.com/users/3438111",
"pm_score": 3,
"selected": true,
"text": "public class ExportInfo(){\n public int id;\n public int P;\n public int d;\n\n public ExportInfo(int id,i... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20657681/"
] |
74,644,390 | <p>I am trying to obtain the number of times that a certain numerical combination is repeated within a vector.</p>
<p>For example, I have this sequence of different numbers and I want to understand how many times is repeated a certain "block of number":</p>
<p><code>test <- c(1,2,3,4,1,2,3,4,4,4,4,4)</code... | [
{
"answer_id": 74644690,
"author": "harre",
"author_id": 4786466,
"author_profile": "https://Stackoverflow.com/users/4786466",
"pm_score": 2,
"selected": true,
"text": "length(test)/n n <- 4\n\nresults <-\n split(test, cut(seq_along(test), length(test)/n, labels = FALSE)) |> \n lapply(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19579774/"
] |
74,644,420 | <p>I'm programming the "Rock, paper, scissors". I want now to run the function I added below 3 times. I tried using a <code>for _ in range(s)</code> but printed the same result 3 times.</p>
<pre><code>import random
OPTIONS = ["Rock", "Paper", "Scissors"]
def get_user_input():
... | [
{
"answer_id": 74644500,
"author": "MorganMLG",
"author_id": 16020219,
"author_profile": "https://Stackoverflow.com/users/16020219",
"pm_score": 3,
"selected": true,
"text": "def main():\n\n for _ in range(3):\n user_choice = get_user_input()\n computer_choice = random_c... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18685243/"
] |
74,644,435 | <p>I'm trying to use variadic templates (for the first time really) to make a string replacement function.</p>
<p>Essentially, I want to make a function (we'll call it Replace) that takes a key value that is used to search up and modify a template string based on the additional parameters provided in the Replace functi... | [
{
"answer_id": 74644657,
"author": "Ricky",
"author_id": 2195567,
"author_profile": "https://Stackoverflow.com/users/2195567",
"pm_score": 0,
"selected": false,
"text": "#include <iostream>\n#include <string>\n\nconst std::string FindOriginal(const std::string& Key)\n{\n if(Key == \"T... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2195567/"
] |
74,644,443 | <p>I am working on a project that requires a form to be built. I am responsible for the base build with just HTML and CSS (so no JQuery/JS or other solutions, if possible, please). I've done my best to style it the way it was requested but I am having trouble with one important detail: affixing the form to the bottom ... | [
{
"answer_id": 74644657,
"author": "Ricky",
"author_id": 2195567,
"author_profile": "https://Stackoverflow.com/users/2195567",
"pm_score": 0,
"selected": false,
"text": "#include <iostream>\n#include <string>\n\nconst std::string FindOriginal(const std::string& Key)\n{\n if(Key == \"T... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20340500/"
] |
74,644,448 | <p>I was learning about JRadiobuttons and I made three JRadioButtons in this particular program. The JRadioButtons were pizzaButton, burgerButton and hotdogButton. I wanted to print specific lines when one of them is selected by the user. I overrided the ActionPerformed method and even implemented the ActionListener fo... | [
{
"answer_id": 74644657,
"author": "Ricky",
"author_id": 2195567,
"author_profile": "https://Stackoverflow.com/users/2195567",
"pm_score": 0,
"selected": false,
"text": "#include <iostream>\n#include <string>\n\nconst std::string FindOriginal(const std::string& Key)\n{\n if(Key == \"T... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20599676/"
] |
74,644,461 | <p>So, I'm trying to insert data from .csv file, but because of the date format I'm using - import causes it to set to 00-00-0000</p>
<p>import settings:
format - CSV using load data (otherwise it causing errors and failing to import)
Specific format options: none</p>
<p>Errors I'm receiving after import:</p>
<ul>
<li>... | [
{
"answer_id": 74645415,
"author": "Ozan Sen",
"author_id": 19469088,
"author_profile": "https://Stackoverflow.com/users/19469088",
"pm_score": 2,
"selected": true,
"text": "UPDATE myimport\nSET StartDate = STR_TO_DATE(StartDate,'%D %b %Y');\nUPDATE myimport\nSET FinishDate = STR_TO_DATE... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74644461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17709424/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.