qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,604,279 | <p><a href="https://i.stack.imgur.com/CiBoH.png" rel="nofollow noreferrer">enter image description here</a></p>
<p><code>Pine-script code</code></p>
<pre><code>//@version=4
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © colinmck
study("QQE signal... | [
{
"answer_id": 74604945,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "item['price'] dict list ref value Data = {\n \"main\": {\n \"sub_main\": [\n {\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20595801/"
] |
74,604,335 | <p>I'd like to print the namespace of the currently executing code running in .NET 7 using C#.</p>
<p>Something akin to:</p>
<p>Inside of Main (in Program.cs of a program called myApp):</p>
<pre><code>// See https://aka.ms/new-console-template for more information
Console.WriteLine(ns);
</code></pre>
<p>expected output... | [
{
"answer_id": 74604945,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "item['price'] dict list ref value Data = {\n \"main\": {\n \"sub_main\": [\n {\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2872272/"
] |
74,604,351 | <p>When I have an following JSON,</p>
<pre class="lang-json prettyprint-override"><code>{
"group1": [
{
"name": "name_AAA",
"size": 1
},
{
"name": "name_BBB",
"size": 2
}
],
"group2": [
{
... | [
{
"answer_id": 74604379,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 3,
"selected": true,
"text": "jq -r '.[][].name' mydata.json\n Raw Output"
},
{
"answer_id": 74611196,
"author": "peak",
"au... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9326457/"
] |
74,604,352 | <p>I have a scrollable element that I would like to be pre-scrolled by 320px on loading the page in my django calendar project. Can I achieve that without using javascript and if so how?</p>
| [
{
"answer_id": 74604784,
"author": "lucutzu33",
"author_id": 8770336,
"author_profile": "https://Stackoverflow.com/users/8770336",
"pm_score": 2,
"selected": true,
"text": "<div id=\"#scroll_here\"></div>\n #scroll_here url https://example.com/#scroll_here"
},
{
"answer_id": 7460... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5726956/"
] |
74,604,355 | <p>This code outputs a dictionary containing the number of coins of each type necessary to reach a certain change, while using the least coins possible.</p>
<pre><code>def change(money):
res = {}
coin = 2.0
while coin>=0.01:
parcel = money // coin
res[coin] = int(parcel)
money -= ... | [
{
"answer_id": 74606075,
"author": "Yuri Ginsburg",
"author_id": 2397684,
"author_profile": "https://Stackoverflow.com/users/2397684",
"pm_score": 0,
"selected": false,
"text": "0.71 - 0.5 = 0.20999999999999996 round def change(money):\n res = {}\n coin = 2.0\n while coin>=0.01:... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20285658/"
] |
74,604,380 | <p>I have the following code that does not correctly return all the promises, any idea what is happening?</p>
<pre class="lang-js prettyprint-override"><code> pdfjs.getDocument(file).promise.then((docData) => {
const pageCount = docData._pdfInfo.numPages;
const outlinePromises = docData... | [
{
"answer_id": 74606075,
"author": "Yuri Ginsburg",
"author_id": 2397684,
"author_profile": "https://Stackoverflow.com/users/2397684",
"pm_score": 0,
"selected": false,
"text": "0.71 - 0.5 = 0.20999999999999996 round def change(money):\n res = {}\n coin = 2.0\n while coin>=0.01:... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18083941/"
] |
74,604,400 | <p>I am trying to code a username and password system and was wondering if there was any way to save the variable so even when the code stops the username will work the next time.
I have not yet started coding it and was just wondering if this was possible. I saw a few things on saving it as a file but with no luck. Th... | [
{
"answer_id": 74606075,
"author": "Yuri Ginsburg",
"author_id": 2397684,
"author_profile": "https://Stackoverflow.com/users/2397684",
"pm_score": 0,
"selected": false,
"text": "0.71 - 0.5 = 0.20999999999999996 round def change(money):\n res = {}\n coin = 2.0\n while coin>=0.01:... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20574752/"
] |
74,604,480 | <p>I'm a beginner and I'm trying to make a bash script that downloads data from a website and tells me hourly prices of a service and tells me when it is cheap and when it is expensive.</p>
<pre><code>curl -s https://something.json | jq '.tomorrow[] | select(.region=="region3") | {values, median}'
</code></pr... | [
{
"answer_id": 74604556,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "to_entries .median as $median\n| .values\n| to_entries[]\n| \"At \\(.key+1) it is \\(if .value >= $median then \"expensi... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20625710/"
] |
74,604,544 | <p>I have been looking over the new GCP price lists and I'm somewhat confused about the T2D VMs. The documentation states that these are running with hyperthreading disabled, at one physical core per vCPU. However, pricing per vCPU stays the same, which would make more sense if you were getting half the threads.</p>
<p... | [
{
"answer_id": 74604556,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "to_entries .median as $median\n| .values\n| to_entries[]\n| \"At \\(.key+1) it is \\(if .value >= $median then \"expensi... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4390176/"
] |
74,604,546 | <p>I am trying to run a fairly complex query on our production database which is hosted on heroku. These are generally one-off fact finding queries but I am being kicked out each time I try to run it. Locally, the query runs fine and is fairly quick. It's also worse if I assign the result to a variable.</p>
<p>Any help... | [
{
"answer_id": 74604556,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "to_entries .median as $median\n| .values\n| to_entries[]\n| \"At \\(.key+1) it is \\(if .value >= $median then \"expensi... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3057358/"
] |
74,604,551 | <p>I have a multi-level polymorphic type hierarchy that I previously serialized using the data contract serializers. I would like to convert that to System.Text.Json using the new <a href="https://devblogs.microsoft.com/dotnet/system-text-json-in-dotnet-7/#type-hierarchies" rel="nofollow noreferrer">type hierarchy sup... | [
{
"answer_id": 74604556,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "to_entries .median as $median\n| .values\n| to_entries[]\n| \"At \\(.key+1) it is \\(if .value >= $median then \"expensi... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3744182/"
] |
74,604,644 | <p>I have created a table that has category id and a name and the table contains multiple matching category id so i would like to get the first data of each matching category id</p>
<p><a href="https://i.stack.imgur.com/gbZYf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gbZYf.png" alt="table" /></... | [
{
"answer_id": 74604692,
"author": "Dream Bold",
"author_id": 12743692,
"author_profile": "https://Stackoverflow.com/users/12743692",
"pm_score": 0,
"selected": false,
"text": "LIMIT 1 SELECT * FROM tailors\n WHERE id IN(\n SELECT min(id)\n FROM tailors\n GROUP... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3521972/"
] |
74,604,653 | <p>I'm trying to render a dynamic list of fields from a JSON file.
Some fields have to go through this <code>accountFieldMap</code> object I created for key renaming purposes.</p>
<p>For example it finds the key <code>userFirstName1</code> from the JSON and renders the value of it as <code>firstName</code> at the compo... | [
{
"answer_id": 74604787,
"author": "Oleg Brazhnichenko",
"author_id": 7028321,
"author_profile": "https://Stackoverflow.com/users/7028321",
"pm_score": 2,
"selected": true,
"text": "location.city const getByPath = (path, obj) => {\n const splittedPath = path.split(\".\");\n return spli... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11973242/"
] |
74,604,676 | <p>Dear experienced friends, I am looking for an algorithm (Python) that outputs the width of a tree at each level. Here are the input and expected outputs.</p>
<p>(I have updated the problem with a more complex edge list. The original question with sorted edge list can be elegantly solved by @Samwise answer.)</p>
<hr ... | [
{
"answer_id": 74604750,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 2,
"selected": false,
"text": ">>> from collections import Counter\n>>> def tree_width(edges):\n... levels = {} # {node: level}\n... for [... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9044666/"
] |
74,604,686 | <p>I have a CSV with data like this:
(for some reason table doesn't display properly after I publish question, so here is screenshot from question edit screen)
<a href="https://i.stack.imgur.com/suCmO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/suCmO.png" alt="CSV" /></a>
Im trying to convert it ... | [
{
"answer_id": 74604815,
"author": "Marleen",
"author_id": 3960296,
"author_profile": "https://Stackoverflow.com/users/3960296",
"pm_score": 3,
"selected": true,
"text": "$country $value[0] $country = null;\n\nforeach ($data as $key => $value) {\n\n if (!empty($value[0])) {\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1134491/"
] |
74,604,698 | <p>I had % in my cookie and I found following code for it and got the data below after implying that code</p>
<pre><code>var cookies = (document.cookie);
var output = {};
cookies.split(/\s*;\s*/).forEach(function (pair) {
pair = pair.split(/\s*=\s*/);
var name = decodeURIComponent(pair[0]);
var value = deco... | [
{
"answer_id": 74604922,
"author": "Dream Bold",
"author_id": 12743692,
"author_profile": "https://Stackoverflow.com/users/12743692",
"pm_score": 0,
"selected": false,
"text": "var cookies = document.cookie.split(';').reduce(\n (cookies, cookie) => {\n const [name, val] = cookie.... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16487951/"
] |
74,604,699 | <p>I have many Composables and I want to collapse Composable code inside like in <code>xml</code>. Is there extension for that?</p>
| [
{
"answer_id": 74604771,
"author": "Thracian",
"author_id": 5457853,
"author_profile": "https://Stackoverflow.com/users/5457853",
"pm_score": 1,
"selected": false,
"text": "Column(modifier = Modifier.fillMaxSize()) {\n\n Text(\"Click to expand or collapse\", modifier = Modifier\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626088/"
] |
74,604,701 | <p>I have the following code:</p>
<pre><code>import {initConnection,IapIosSk2, setup} from "react-native-iap"
async nativeTest() : Promise<ProductStatus[]>{
try {
let stat: Promise<ProductStatus[]> = await (IapIosSk2).subscriptionStatus('sku')
setup({storekitM... | [
{
"answer_id": 74604731,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 3,
"selected": true,
"text": "let stat: Promise<ProductStatus[]> = await (IapIosSk2).subscriptionStatus('sku')\n await await await ProductStatus[] Pro... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19590148/"
] |
74,604,707 | <p>I have a dataframe as shown below. They are ordered Ascendingly by Column A and B. Only Occurrences >= 10 are valid, thus for rows with occurrences with less than 10, I want to replace their values with the next/closest valid row.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column... | [
{
"answer_id": 74604731,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 3,
"selected": true,
"text": "let stat: Promise<ProductStatus[]> = await (IapIosSk2).subscriptionStatus('sku')\n await await await ProductStatus[] Pro... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19944807/"
] |
74,604,725 | <p>I want to change my app viewport while being in desktop view like this website has this functionality where you can click on "mobile" or "tabled" or "desktop" view: <a href="https://pro.chakra-ui.com/components/application/shells" rel="nofollow noreferrer">https://pro.chakra-ui.com/comp... | [
{
"answer_id": 74604844,
"author": "ControlAltDel",
"author_id": 1291492,
"author_profile": "https://Stackoverflow.com/users/1291492",
"pm_score": 1,
"selected": false,
"text": "document.querySelector(\"button\").addEventListener(\"click\", function() {\n document.querySelector(\".myDiv... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6425639/"
] |
74,604,770 | <p>Suppose I have this Matrix:</p>
<pre><code>julia> mat = [
1 2 3 4
5 6 7 8
9 8 7 6
];
</code></pre>
<p>Then I want to put slices of this Matrix into a 3D <code>Array</code> with types of <code>SMatrix{Int64}</code>, like below:</p>
<pre><code>julia> using StaticArrays
julia> arr ... | [
{
"answer_id": 74605145,
"author": "AboAmmar",
"author_id": 3943170,
"author_profile": "https://Stackoverflow.com/users/3943170",
"pm_score": 2,
"selected": false,
"text": "mat = [ 1 2 3 4\n 5 6 7 8\n 9 8 7 6 ];\n\nusing StaticArrays\n\ncol_idx = [1, 2, 3];\n\narr = [SMatri... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20407495/"
] |
74,604,782 | <p>I have data like this my table</p>
<p>2020-01-01 H</p>
<p>2020-01-02 B</p>
<p>2020-01-03 B</p>
<p>2020-01-04 B</p>
<p>.</p>
<p>2020-01-29 B</p>
<p>2020-01-30 H</p>
<p>2020-01-31 H</p>
<p>2020-01-02 H</p>
<p>2020-02-02 H</p>
<p>2020-02-03 B</p>
<p>2020-02-04 B</p>
<p>2020-02-05 B</p>
<p>.</p>
<p>now my problem is in ... | [
{
"answer_id": 74605145,
"author": "AboAmmar",
"author_id": 3943170,
"author_profile": "https://Stackoverflow.com/users/3943170",
"pm_score": 2,
"selected": false,
"text": "mat = [ 1 2 3 4\n 5 6 7 8\n 9 8 7 6 ];\n\nusing StaticArrays\n\ncol_idx = [1, 2, 3];\n\narr = [SMatri... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12177405/"
] |
74,604,790 | <p>I need some help optimising a function. I'm aware that an apply function could speed this up, but I've never learned to use that family of functions properly and can't find advice online that I can follow easily to convert this ...</p>
<p>I have two data frames. They look like this (but each has >1 million rows).... | [
{
"answer_id": 74605145,
"author": "AboAmmar",
"author_id": 3943170,
"author_profile": "https://Stackoverflow.com/users/3943170",
"pm_score": 2,
"selected": false,
"text": "mat = [ 1 2 3 4\n 5 6 7 8\n 9 8 7 6 ];\n\nusing StaticArrays\n\ncol_idx = [1, 2, 3];\n\narr = [SMatri... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626103/"
] |
74,604,805 | <p>I have a complicated code of several classes and functions. one of the functions is called n times and I need to do something specific in the last call of the function. It is too complicated to use the iteratble of the for loop.
I need something that knows that this is the last call of the function, then it does wha... | [
{
"answer_id": 74604850,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 1,
"selected": false,
"text": "def myfunc(y, z=2):\n x = y * z\n ...\n for i in range(10):\n myfunc(i, 2 if range < 9 else 3)\n for i in r... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20281708/"
] |
74,604,857 | <p>I am using Postgresql 13 and I have a table that looks something like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>event_id</th>
<th>timestamp</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2022-11-28 00:00:00</td>
</tr>
<tr>
<td>1</td>
<td>2022-11-28 00:00:10</td>
</tr>
<tr>
<... | [
{
"answer_id": 74604850,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 1,
"selected": false,
"text": "def myfunc(y, z=2):\n x = y * z\n ...\n for i in range(10):\n myfunc(i, 2 if range < 9 else 3)\n for i in r... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13765741/"
] |
74,604,897 | <p>I have a column defined as TO_VARCHAR(START_TIME, 'yyyy-mm-dd hh')</p>
<p>I would like to use this column as an X-Axis in a Snowsight dashboard but it won't let me do that...
Any particular reason I am missing?</p>
| [
{
"answer_id": 74609077,
"author": "Felipe Hoffa",
"author_id": 132438,
"author_profile": "https://Stackoverflow.com/users/132438",
"pm_score": 0,
"selected": false,
"text": "with data(t, d) as (\n select * from values('2020-10-10 03:03:01', 1), ('2020-10-11 05:03:01', 2), ('2020-10-1... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10331351/"
] |
74,604,906 | <p>I have the following textfile from an LFT command.</p>
<pre><code>2 [14080] [100.0.0.0 - 100.255.255.255] 100.5.254.150 6.3ms
3 [14080] [100.0.0.0 - 100.255.255.255] 100.8.254.149 5.7ms
4 [15169] [GOOGLE] 142.250.164.139 17.5ms
5 [15169] [GOOGLE] 142.250.164.138 10.9ms
6 [15169] [GOOGLE] 72.14.233.63 12.8ms
7 ... | [
{
"answer_id": 74609077,
"author": "Felipe Hoffa",
"author_id": 132438,
"author_profile": "https://Stackoverflow.com/users/132438",
"pm_score": 0,
"selected": false,
"text": "with data(t, d) as (\n select * from values('2020-10-10 03:03:01', 1), ('2020-10-11 05:03:01', 2), ('2020-10-1... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16459368/"
] |
74,604,911 | <p>I have the following wizard structure [ field name and data type ]</p>
<ul>
<li>Type :- Selection :- Type 1 and Type 2</li>
<li>Route :- One2many</li>
</ul>
<p>When Users select Type 1, I want to allow them to add records in the Route table. While on the Type 2, I want to make Route readonly and don't allow deletion... | [
{
"answer_id": 74609077,
"author": "Felipe Hoffa",
"author_id": 132438,
"author_profile": "https://Stackoverflow.com/users/132438",
"pm_score": 0,
"selected": false,
"text": "with data(t, d) as (\n select * from values('2020-10-10 03:03:01', 1), ('2020-10-11 05:03:01', 2), ('2020-10-1... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2926754/"
] |
74,604,923 | <p>How to write a function to the game where you can run from the fight and so it would return your position to the state before the battle, because with my current code it returns you to the beginning of the game.</p>
<p>This is my code</p>
<pre><code>def run():
runnum = random.randitn(1, 10)
if runnum <= 4... | [
{
"answer_id": 74609077,
"author": "Felipe Hoffa",
"author_id": 132438,
"author_profile": "https://Stackoverflow.com/users/132438",
"pm_score": 0,
"selected": false,
"text": "with data(t, d) as (\n select * from values('2020-10-10 03:03:01', 1), ('2020-10-11 05:03:01', 2), ('2020-10-1... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522693/"
] |
74,604,941 | <p>While going through Firebase's documentation for geohashing,
Im using modular SDK, and I tried converting the namespace code,
but I was encountering a <code>TypeError that q.get is not a function</code></p>
<pre><code>// Find cities within Dkm of [lat, lng]
const center = [Number(lat), Number(lng)];
const radiusInM ... | [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16869352/"
] |
74,604,996 | <p>I want to set a the text of a paragraph element via JS. The string contains <strong>line breaks</strong> (\n), but they are <strong>not visible in the paragraph</strong>.</p>
<p>This is the <strong>desired result</strong>:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="f... | [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74604996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14974627/"
] |
74,605,008 | <p><a href="https://i.stack.imgur.com/fiiiz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fiiiz.png" alt="enter image description here" /></a></p>
<p>just explanation in a nutshell would help about this chart
I am not able to understand the illustrations of this data value which is a number</p>
| [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15989533/"
] |
74,605,010 | <p>If you have this HTML:</p>
<pre><code><dl class="test">
<dt>key:</dt>
<dd>value</dd>
<dt>keyyy:</dt>
<dd>valueeeee</dd>
</dl>
</code></pre>
<p>how can you accomplish and structure up so the content looks like</p>
<pre><code>key: value
key:... | [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9056339/"
] |
74,605,034 | <blockquote>
<p>I am new in flutter, I am working on solving bugs in app. I want to print latitude and longitude of current user after 2 seconds, how can i do that?</p>
</blockquote>
<pre><code>void startTimer() {
const oneSec = const Duration(seconds: 2);
timer2 = new Timer.periodic(
oneSec,
(Timer... | [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17753629/"
] |
74,605,070 | <p>I have the below class</p>
<pre><code>@Component
public class MyBean {
private int val1;
public MyBean(int val1) {
this.val1 = val1;
}
public int getVal1() {
return val1;
}
public void setVal1(int val1) {
this.val1 = val1;
}
... | [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626335/"
] |
74,605,111 | <p>I have an WPF tooltip defined within a dictionary.xaml that I want to apply to all my items, labels, buttons, etc. I import this dictionary in my view.</p>
<pre><code><Style x:Key="{x:Type ToolTip}" TargetType="ToolTip">
<Setter Property="OverridesDefaultStyle" Value="... | [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1624552/"
] |
74,605,136 | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><form>
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" &g... | [
{
"answer_id": 74605014,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 2,
"selected": true,
"text": "getDocs(q)\n"
},
{
"answer_id": 74605632,
"author": "Dipanshu",
"author_id": 16869352,
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19868394/"
] |
74,605,167 | <p>Hi I'am totally new to programmering and i have just jumped into it.</p>
<p>The problem i am trying to solve is to make a function that standardized an adress as input.</p>
<p>example:</p>
<pre><code>def standardize_address(a):
numbers =[]
letters = []
a.replace('_', ' ')
for word in ... | [
{
"answer_id": 74605200,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "numbers letters [] '' s = f\"{numbers} {letters}\"\n \n \n return s\n return ' '.join(numbers + letters... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20231086/"
] |
74,605,189 | <p>I am trying write an excel function that groups a long list of numbers.</p>
<p>Eg.</p>
<pre><code><165 "reject" ( less than 165 = reject)
>=165 <167 "F" (greater than or equal to 165 and less than 167 = group F)
>=167 <169 "D" (greater than or equal to 167 and less than 1... | [
{
"answer_id": 74605200,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "numbers letters [] '' s = f\"{numbers} {letters}\"\n \n \n return s\n return ' '.join(numbers + letters... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626352/"
] |
74,605,191 | <p>I'm trying to wrap hyphenated text on a button as if it were one word. I've tried using a few different variations of the <code>word-wrap</code> and <code>break-word</code> CSS properties but no luck.</p>
<p>In the snippet below, I'm trying to get <code>hello</code> on one line, and <code>this-is-a-test</code> on th... | [
{
"answer_id": 74605200,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 0,
"selected": false,
"text": "numbers letters [] '' s = f\"{numbers} {letters}\"\n \n \n return s\n return ' '.join(numbers + letters... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7934389/"
] |
74,605,247 | <p>Strangely enough I cant find any where on the internet if its possible to be done.</p>
<p>I have a datafrme of array column.</p>
<pre><code>arr_col
[1,3,4]
[4,3,5]
</code></pre>
<p>I want result</p>
<pre><code>Result
3
4
</code></pre>
<p>I want the median for each row.</p>
<p>I managed to do it with a pandas udf but... | [
{
"answer_id": 74605395,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "import numpy as np\ndf['Result'] = np.median(np.vstack(df['arr_col']), axis=1)\n explode groupby.median df['Result'... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11531487/"
] |
74,605,248 | <p>I'm trying to change the site name when I search it on google. the only thing that appear is "React App" and i dont know how change it</p>
<p><a href="https://i.stack.imgur.com/tMB5C.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I tryed change the</p>
<p><code><title>Ton Redu... | [
{
"answer_id": 74605395,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "import numpy as np\ndf['Result'] = np.median(np.vstack(df['arr_col']), axis=1)\n explode groupby.median df['Result'... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19346776/"
] |
74,605,250 | <p>I have an WPF speech bubble tooltip which is working fine.</p>
<pre><code><Style x:Key="{x:Type ToolTip}" TargetType="ToolTip">
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="HorizontalOffset" Value="1" /&g... | [
{
"answer_id": 74610783,
"author": "bazsisz",
"author_id": 17900036,
"author_profile": "https://Stackoverflow.com/users/17900036",
"pm_score": -1,
"selected": false,
"text": "internal class ArrowBorderDecorator : Decorator\n ArrowTipToArrowTriangleBaseDistance public static readonly ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1624552/"
] |
74,605,337 | <p>I'm making a telegram bot that will send SMS through a parser and I need to loop until about 20 SMS are sent.
I am using the <code>telebot</code> library to create a bot and for the parser I have <code>requests</code> and <code>BeautifulSoup</code>.</p>
<pre class="lang-py prettyprint-override"><code>import telebot
... | [
{
"answer_id": 74605392,
"author": "0stone0",
"author_id": 5625547,
"author_profile": "https://Stackoverflow.com/users/5625547",
"pm_score": 2,
"selected": true,
"text": "data = soup.find_all(\"div\", class_=\"dict-word\", limit=20)\n"
},
{
"answer_id": 74605512,
"author": "s... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626316/"
] |
74,605,367 | <p>In my production function:</p>
<pre><code>def myfunction():
try:
do_stuff()
(...)
raise MyException("...")
except MyException as exception:
do_clean_up(exception)
</code></pre>
<p>My test fails, because the exception is caught in the try/except block</p>
<pre><code>d... | [
{
"answer_id": 74605526,
"author": "prz.raf",
"author_id": 6435488,
"author_profile": "https://Stackoverflow.com/users/6435488",
"pm_score": 1,
"selected": false,
"text": "MyException myFunction() try-except assertRaises"
},
{
"answer_id": 74619982,
"author": "chepner",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626472/"
] |
74,605,414 | <p>As the topic indicates...</p>
<p>I have try two ways and none of them work:</p>
<p><strong>First:</strong></p>
<p>I want to programmatically talk to GCS in Python. such as reading gs://{bucketname}/{blobname} as a path or a file. The only thing I can find is a gsutil module, however it seems used in a commend line i... | [
{
"answer_id": 74605526,
"author": "prz.raf",
"author_id": 6435488,
"author_profile": "https://Stackoverflow.com/users/6435488",
"pm_score": 1,
"selected": false,
"text": "MyException myFunction() try-except assertRaises"
},
{
"answer_id": 74619982,
"author": "chepner",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452149/"
] |
74,605,420 | <p>I am trying to find the sum of each order then group by the order ID. I had to use items.ItemID to join the 2 tables but I cannot get the sum of each order if I place ItemID in the group by statement.</p>
<p>This is what I tried:</p>
<pre><code>SELECT Orders.OrderID, Items.ItemID, Sum(Items.Price) AS SumPrice, Form... | [
{
"answer_id": 74605526,
"author": "prz.raf",
"author_id": 6435488,
"author_profile": "https://Stackoverflow.com/users/6435488",
"pm_score": 1,
"selected": false,
"text": "MyException myFunction() try-except assertRaises"
},
{
"answer_id": 74619982,
"author": "chepner",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626569/"
] |
74,605,463 | <p>I have read many posts about dictionaries and serialization etc. and they all have different ways of doing things.
Being new to coding (to an extent) I am having trouble figuring out how to get my dictionary to a list or serialized to get it saved then reloaded on play. This is Unity BTW.
So here is what I am using.... | [
{
"answer_id": 74605526,
"author": "prz.raf",
"author_id": 6435488,
"author_profile": "https://Stackoverflow.com/users/6435488",
"pm_score": 1,
"selected": false,
"text": "MyException myFunction() try-except assertRaises"
},
{
"answer_id": 74619982,
"author": "chepner",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626427/"
] |
74,605,467 | <p>I have my angular application running in AWS ECS (EC2 Instance) behind a load balancer. When i trigger the application using direct IP address of my EC2 instance the application loads fine without any issues. But when i trigger the application through the application load balancer, I see error on my browser console ... | [
{
"answer_id": 74605526,
"author": "prz.raf",
"author_id": 6435488,
"author_profile": "https://Stackoverflow.com/users/6435488",
"pm_score": 1,
"selected": false,
"text": "MyException myFunction() try-except assertRaises"
},
{
"answer_id": 74619982,
"author": "chepner",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13722866/"
] |
74,605,492 | <p>my code:-</p>
<pre><code>$host = "https://example.org/get.php?";
$newurl = file_get_contents($url);
$newurl = substr($newurl,stripos($newurl,"who"));
$newurl = substr($newurl,0,stripos($newurl,"</"));
// newurl string starts with "who" and ends with "</"
//var_... | [
{
"answer_id": 74605526,
"author": "prz.raf",
"author_id": 6435488,
"author_profile": "https://Stackoverflow.com/users/6435488",
"pm_score": 1,
"selected": false,
"text": "MyException myFunction() try-except assertRaises"
},
{
"answer_id": 74619982,
"author": "chepner",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/420415/"
] |
74,605,547 | <p>i want to stop loading a video when the website is being displayed on a phone but it should load on desktop screen sizes.</p>
<p>P.s. - i am talking about loading/not-loading an element or component. please don't give answers by telling to change the css property (display: none, visibility: hidden).</p>
<p>i am usin... | [
{
"answer_id": 74606037,
"author": "Rohit Khandelwal",
"author_id": 15220748,
"author_profile": "https://Stackoverflow.com/users/15220748",
"pm_score": 1,
"selected": false,
"text": "CSS HTML @media @media screen and (max-width: 480px) {\n body {\n background-color: red;\n }\n} inne... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626648/"
] |
74,605,561 | <p>Got this code, it does what I need it to do, but only the button cancel button doesn't work, I want it to remove the whole part of the list</p>
<p>I've been struggling, experimenting with whatever I could but nothing helped and I just don't know</p>
<p>My html:</p>
<p><div class="snippet" data-lang="js" data-hide="f... | [
{
"answer_id": 74606037,
"author": "Rohit Khandelwal",
"author_id": 15220748,
"author_profile": "https://Stackoverflow.com/users/15220748",
"pm_score": 1,
"selected": false,
"text": "CSS HTML @media @media screen and (max-width: 480px) {\n body {\n background-color: red;\n }\n} inne... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626325/"
] |
74,605,581 | <p>I am having a little trouble with this assignment for school. I am using JavaScript to make a menu and give the total price of that order. I am doing 4 menus: Breakfast, Lunch, Dinner, each with sides (Trying to get a little extra credit). I am supposed to use prompt() for this assignment. I was able to get the numb... | [
{
"answer_id": 74605669,
"author": "Static Spaghetti 13",
"author_id": 20455439,
"author_profile": "https://Stackoverflow.com/users/20455439",
"pm_score": 0,
"selected": false,
"text": "const prices = new Map();\n\nprices.set(\"dinner 1\", 10);\n//The first parameter is the food\n//the s... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20245955/"
] |
74,605,590 | <p>I want to ask how can I run an external batch file while updating the variable before I run the process. The detail for my question is following:</p>
<p>I have a batch file right now, while it performs a simulation process. I want to write a module that I can update the variable first without manually updating the b... | [
{
"answer_id": 74605669,
"author": "Static Spaghetti 13",
"author_id": 20455439,
"author_profile": "https://Stackoverflow.com/users/20455439",
"pm_score": 0,
"selected": false,
"text": "const prices = new Map();\n\nprices.set(\"dinner 1\", 10);\n//The first parameter is the food\n//the s... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462756/"
] |
74,605,598 | <p>My final data after parsing from a yaml file is like this in text file :</p>
<pre><code> - id: 200
addr: 10.242.57.129/27
- id: 210
addr: 10.242.57.161/25
- id: 300
addr: 10.244.26.1/24
</code></pre>
<p>I wanted to convert to this and save it as txt with shell scr... | [
{
"answer_id": 74606299,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 1,
"selected": true,
"text": "sed $ sed -E '/-/{N;s~[^0-9]*([0-9]+)\\n[^0-9]*([0-9.]+)/([0-9]+)~\\1,\\2,\\3~}' input_file\n200,10.242.57.129,27\n... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626676/"
] |
74,605,611 | <p>I'm working on converting Stata code to R. There's a snippet of code that creates a new variable and adds the column value if it meets specific parameters. For example, if a cell is greater than 0 and less than or equal to 3, that value would be added to <code>newvar</code></p>
<pre><code>gen newvar=0
local list a... | [
{
"answer_id": 74605652,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 0,
"selected": false,
"text": "NA rowSums dat$newvar <- rowSums(NA^(dat <=0|dat >=3)*dat, na.rm = TRUE)\n > dat\n a b c... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18911130/"
] |
74,605,645 | <p>I am trying to filter an array of objects, based on the elements within another array.</p>
<p>The array of objects I would like filtered is:</p>
<pre><code>const data = [
{id: 1, method: "bike"},
{id: 2, method: "walk"},
{id: 3, method: "bus"},
{id: 4, method: "bike"},
{id: 5,... | [
{
"answer_id": 74605696,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 0,
"selected": false,
"text": "methods = filter2, // one of your filters.\nresult = data.filter(({ method }) => methods.includes(method));\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6301517/"
] |
74,605,646 | <p>The <strong>length <= 2 check</strong> is <strong>working</strong> ONLY if I'm manually erasing the text from the input.
However, My input has closing button which has reset(); on it, and when I'm pressing it, my input is empty, however jquery code doesnt care about that and doesnt recognise the input as empty, b... | [
{
"answer_id": 74605696,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 0,
"selected": false,
"text": "methods = filter2, // one of your filters.\nresult = data.filter(({ method }) => methods.includes(method));\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9062202/"
] |
74,605,684 | <p>I am trying get difference between two timestamps and check if its greater than 30 mins</p>
<pre><code>timestamp1 = 1668027512
now = datetime.now(tz)
</code></pre>
<p>And this is what i am trying to do</p>
<pre><code>from datetime import datetime
import pytz as tz
tz = tz.timezone('UTC')
import time
timestamp1 = 16... | [
{
"answer_id": 74605766,
"author": "John Gordon",
"author_id": 494134,
"author_profile": "https://Stackoverflow.com/users/494134",
"pm_score": 1,
"selected": false,
"text": "from datetime import datetime\n\n# 30 minutes times 60 seconds\nthirty_minutes = 30 * 60\n\npast_timestamp = 16680... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19671817/"
] |
74,605,704 | <p>I have a dataset where names have been entered differently. Some names of been entered as first name space last name while others have been entered last name comma first name. I need all to read last name comma first name. I would like to keep the data within the dataframe but I can append back if there is no other ... | [
{
"answer_id": 74605770,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 0,
"selected": false,
"text": "df <-\ntibble::tribble(\n ~Names, ~Other_Column,\n \"Smith, John\", \"...\",\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19017141/"
] |
74,605,715 | <p>Here I have 3 tables, CONTAINS, ORDER, and PRODUCT. The problem is that the total price of the order in the ORDER1 table must be calculated, it is the sum (product * price) for all the products in that order, so for example for Order1 ID = 1 in table ORDER1 we must go to the CONTAINS table to find the quanity of the... | [
{
"answer_id": 74605792,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "merge SQL> merge into order1 o\n 2 using (select i.order_id,\n 3 sum(i.quantity * p.selling_pri... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15851071/"
] |
74,605,735 | <p>I have a lot of circles and I store their position in a list.
All circles have the same radius.</p>
<p>How can I detect if any circle collides with another circle?
What would be the fastest way?</p>
| [
{
"answer_id": 74605792,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "merge SQL> merge into order1 o\n 2 using (select i.order_id,\n 3 sum(i.quantity * p.selling_pri... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19771452/"
] |
74,605,763 | <p>Is there a way to summarize occurrences of variable values by another variable?</p>
<p>It's similar to pivoting from long to wide, but pivoting is done into a vector rather than into multiple variables</p>
<p><strong>data have:</strong></p>
<pre><code>| var1 | var2 |
| :--: |:------:|
| 1 | 2 |
| 1 | 4 ... | [
{
"answer_id": 74605783,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "list unique library(dplyr)\ndf1 %>%\n distinct %>%\n group_by(var1) %>%\n summarise(var2 = list(var2))\n"
},
{
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7956263/"
] |
74,605,786 | <p>I need to use the <code>filter</code> function (or maybe some other alternatives) multiple times to calculate the average based on the conditions specified.</p>
<p>Here is the dataset:</p>
<pre><code>df <- data.frame(id = c(1,2,3,4,5,6,7),
cond = c("Y", "Y", "N", &q... | [
{
"answer_id": 74605799,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 2,
"selected": false,
"text": "dplyr library(dplyr)\n\ndf <- data.frame(cond = c(1,1,1,2,2,2,2), score = c(3,4,5,2,1,2,9))\n\ndf %>% \n gro... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7989204/"
] |
74,605,791 | <p>Is there a way to have a dynamic array formula that gives the solution as per cells A11:B12 out of the Table A1:B6.
<a href="https://i.stack.imgur.com/Q4shs.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>meaning that if a customer C would be added with product V, it would dynamically add a li... | [
{
"answer_id": 74605932,
"author": "Mayukh Bhattacharya",
"author_id": 8162520,
"author_profile": "https://Stackoverflow.com/users/8162520",
"pm_score": 3,
"selected": true,
"text": "A10 =HSTACK(UNIQUE(Table23[Client]),BYROW(UNIQUE(Table23[Client]),LAMBDA(x,TEXTJOIN(\",\",,REPT(Table23[P... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626730/"
] |
74,605,796 | <p>I've been trying to install Create React App using NPM and it's giving me a permission denied error:</p>
<p><a href="https://i.stack.imgur.com/X0rWz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X0rWz.png" alt="terminal screenshot" /></a></p>
<p>I force cleaned NPM cache and it did not work.</p>... | [
{
"answer_id": 74605932,
"author": "Mayukh Bhattacharya",
"author_id": 8162520,
"author_profile": "https://Stackoverflow.com/users/8162520",
"pm_score": 3,
"selected": true,
"text": "A10 =HSTACK(UNIQUE(Table23[Client]),BYROW(UNIQUE(Table23[Client]),LAMBDA(x,TEXTJOIN(\",\",,REPT(Table23[P... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17177781/"
] |
74,605,815 | <p>I'm working on a scheduling web application.</p>
<p>I am trying to implement a feature that detects the total hours between two times, startTime and endTime, which are selected on a form and stored via the useState hook:</p>
<pre><code> const [startTime, setStartTime] = useState("")
const [endTime, ... | [
{
"answer_id": 74605932,
"author": "Mayukh Bhattacharya",
"author_id": 8162520,
"author_profile": "https://Stackoverflow.com/users/8162520",
"pm_score": 3,
"selected": true,
"text": "A10 =HSTACK(UNIQUE(Table23[Client]),BYROW(UNIQUE(Table23[Client]),LAMBDA(x,TEXTJOIN(\",\",,REPT(Table23[P... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626729/"
] |
74,605,940 | <p>For the last week I have been trying to get cx_oracle installed and working.
I started with an Oracle 19 appliance which is on Oracle Linux 7.
I used the official oracle site to install cx_oracle as listed below.
The install seems to have worked fine, but when I try to import the module, it is not found.
I checked a... | [
{
"answer_id": 74606258,
"author": "Anthony Tuininga",
"author_id": 2510347,
"author_profile": "https://Stackoverflow.com/users/2510347",
"pm_score": 0,
"selected": false,
"text": "cx_Oracle cx_oracle"
},
{
"answer_id": 74606547,
"author": "Christopher Jones",
"author_id"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74605940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/233309/"
] |
74,606,033 | <p>As the title states, I am trying to use regex to split the trademark ™ symbol from a string. I am looking for two possible patterns:</p>
<ol>
<li>string™ --> expected result: string ™</li>
</ol>
<p>or</p>
<ol start="2">
<li>string™2 --> expected result: string ™ 2</li>
</ol>
<p>I came up with the below patter... | [
{
"answer_id": 74606705,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "re.sub import re\n\ns = \"\"\"\\\nstring™\nstring™2\nstring©2\ntest test string™9 test test test\"\"\"\n\n\n... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19293921/"
] |
74,606,065 | <p>If I have code like <a href="https://play.rust-lang.org/?version=stable&mode=release&edition=2021&gist=06ec2b36ea946abbf46965f8316b2ef5" rel="nofollow noreferrer">this</a>:</p>
<pre><code>pub fn f(x: u16) -> impl Iterator<Item = u16> {
std::iter::once(0).chain((x >> 10)..x)
}
</code></... | [
{
"answer_id": 74606322,
"author": "Masklinn",
"author_id": 8182118,
"author_profile": "https://Stackoverflow.com/users/8182118",
"pm_score": 1,
"selected": false,
"text": "Once Option take take mem::replace(self, None)\n if at runtime once chain"
},
{
"answer_id": 74607448,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1002430/"
] |
74,606,072 | <p>I'm trying to draw partial or one-side open rect rounded border to achieve this effect:</p>
<p><a href="https://i.stack.imgur.com/GsMWy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GsMWy.png" alt="enter image description here" /></a></p>
<p>After playing around a bit I got this:</p>
<p><a href=... | [
{
"answer_id": 74606561,
"author": "Gabriele Mariotti",
"author_id": 2016562,
"author_profile": "https://Stackoverflow.com/users/2016562",
"pm_score": 2,
"selected": false,
"text": "offset val itemsList = (0..4).toList()\n\nRow() {\n itemsList.forEachIndexed { index, item ->\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1274974/"
] |
74,606,086 | <p>I am trying to summarize rows in a data frame by adding numerical row values and keeping the character values from the second occurrence of the grouping variable.</p>
<p>I have the data frame listed below:</p>
<pre class="lang-r prettyprint-override"><code>df <- data.frame(
Season = c('Summer', 'Fall', 'Fall', ... | [
{
"answer_id": 74606153,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 3,
"selected": true,
"text": "[[2]] summarize() library(dplyr)\n\ndf %>%\n group_by(Season) %>%\n summarize(\n Number = sum(Number),\n Ch... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11537219/"
] |
74,606,106 | <p>I need to filter rows if some of the variables have missing values. Here is an example dataset.</p>
<pre><code>df <- data.frame(id = c(1,2,3,4,5),
v1 = c(5,6,7,8,1),
v2 = c(5,9,34,2,1),
a1 = c(1,NA,NA,2,3),
a2 = c(NA,1,NA,8,9))
> df
id v1 v... | [
{
"answer_id": 74606124,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 1,
"selected": false,
"text": "if_any filter : last_col() library(dplyr)\ndf %>% \n filter(if_any(4:last_col(), is.na))\n id v1 v2 a1 a2\n1 1 5 ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5933306/"
] |
74,606,127 | <p>Assume that N is the number of agents and M is the number of tasks. The number of tasks is greater than number of agents, i.e. M > N. Each agent must have at <strong>least one task</strong>. Given rectangular matrix of costs, find the optimal solution (i.e. assign each task to exactly one agent so each agent has ... | [
{
"answer_id": 74607426,
"author": "btilly",
"author_id": 585411,
"author_profile": "https://Stackoverflow.com/users/585411",
"pm_score": 2,
"selected": false,
"text": "M-N M-N M M N M-N"
},
{
"answer_id": 74608082,
"author": "Erwin Kalvelagen",
"author_id": 5625534,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627066/"
] |
74,606,200 | <p>I have a pyspark dataframe with Quarterly data in that. The data is in the following format</p>
<pre><code>2022-03-01 abc
2022-06-01 xyz
2000-03-01 abcd
</code></pre>
<p>Starting from the very first date (somewhere around 1960's) I need to find if there are any quarters missing from the date. And for the... | [
{
"answer_id": 74607426,
"author": "btilly",
"author_id": 585411,
"author_profile": "https://Stackoverflow.com/users/585411",
"pm_score": 2,
"selected": false,
"text": "M-N M-N M M N M-N"
},
{
"answer_id": 74608082,
"author": "Erwin Kalvelagen",
"author_id": 5625534,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18627728/"
] |
74,606,204 | <p>I have no problem with the following html tabs and java script in a normal rmarkdown. However, I have encounter a difficulty after adding <code>runtime: shiny</code> in yaml. The contents are not displayed.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div c... | [
{
"answer_id": 74607426,
"author": "btilly",
"author_id": 585411,
"author_profile": "https://Stackoverflow.com/users/585411",
"pm_score": 2,
"selected": false,
"text": "M-N M-N M M N M-N"
},
{
"answer_id": 74608082,
"author": "Erwin Kalvelagen",
"author_id": 5625534,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13628691/"
] |
74,606,207 | <p>I am trying to reduce some logging noise I am getting from PostgreSQL on my Heroku/Rails application. Specifically, I am trying to configure the <code>client_min_messages</code> setting to <code>warning</code> instead of the default <code>notice</code>.</p>
<p>I followed the steps in <a href="https://anti-pattern.co... | [
{
"answer_id": 74607773,
"author": "Chris",
"author_id": 354577,
"author_profile": "https://Stackoverflow.com/users/354577",
"pm_score": 0,
"selected": false,
"text": "ALTER DATABASE your_database\n SET client_min_messages TO 'warning';\n"
},
{
"answer_id": 74662063,
"auth... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/121531/"
] |
74,606,218 | <p>I have 4 images into a div, how to split them in 2 columns of 2 images in CSS?</p>
<pre><code> <div id="your-cards">
<img src="./cards/BACK5.jpeg" aria-valuetext="7-c" id="P0">
<img src="./cards/BACK5.jpeg" aria-valuetext="4-c" id=&... | [
{
"answer_id": 74606273,
"author": "OliverRadini",
"author_id": 5011469,
"author_profile": "https://Stackoverflow.com/users/5011469",
"pm_score": 0,
"selected": false,
"text": "flex #your-cards {\n display: flex;\n flex-wrap: wrap;\n padding-left: 0;\n}\n\n#your-cards div {\n list-st... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16019296/"
] |
74,606,235 | <p><a href="https://github.com/SteveSandersonMS/BlazeOrbital/" rel="nofollow noreferrer">SteveSandersonMSBlazeOrbital</a></p>
<p>i am trying to launch the Steve's Sanderson Blazer Orbital project.
i added SQLitePCLRaw.Bundle_e_sqlite3 package via NuGet manager.
but project throws an exception :</p>
<pre><code>System.Dl... | [
{
"answer_id": 74606273,
"author": "OliverRadini",
"author_id": 5011469,
"author_profile": "https://Stackoverflow.com/users/5011469",
"pm_score": 0,
"selected": false,
"text": "flex #your-cards {\n display: flex;\n flex-wrap: wrap;\n padding-left: 0;\n}\n\n#your-cards div {\n list-st... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7060504/"
] |
74,606,293 | <p>In the below code, I am repeating the same code twice except one change. If there is a way to write the same in single line then it would be great.</p>
<p>The only changes I made is <code>Obsc</code> and <code>zp</code> based on the <code>if..else</code> statement.</p>
<pre><code>var zp = __Services.GetValue("Z... | [
{
"answer_id": 74606325,
"author": "SilicDev",
"author_id": 20614914,
"author_profile": "https://Stackoverflow.com/users/20614914",
"pm_score": -1,
"selected": false,
"text": "result = condition ? trueValue : falseValue;\n if ... else ..."
},
{
"answer_id": 74606378,
"author"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505175/"
] |
74,606,320 | <p>I am facing a very peculiar issue with slf4j log in my SpringBoot application. Code example -</p>
<pre><code>@RestControllerAdvice
@Slf4j
public class ControllerAdvice{
public ResponseEntity getErrors(String status, String source, String uid, String res) {
...
...
log.error("Error i... | [
{
"answer_id": 74606325,
"author": "SilicDev",
"author_id": 20614914,
"author_profile": "https://Stackoverflow.com/users/20614914",
"pm_score": -1,
"selected": false,
"text": "result = condition ? trueValue : falseValue;\n if ... else ..."
},
{
"answer_id": 74606378,
"author"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/678892/"
] |
74,606,335 | <p>We are using Apache Flink to read a Kafka topic which contains an Id and a list of objects as follows:</p>
<pre><code>{
Id: "12345",
Objetcs: [
{
fatherId: "1a",
id: "111",
name: "aabc"
},
{
father... | [
{
"answer_id": 74612872,
"author": "David Anderson",
"author_id": 2000823,
"author_profile": "https://Stackoverflow.com/users/2000823",
"pm_score": 1,
"selected": false,
"text": "TumblingProcessingTimeWindows"
}
] | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19017280/"
] |
74,606,380 | <p>i have some rows on "MENU" table</p>
<pre><code>id, shop, size
1, 1 , 3
2, 1 , 8
3, 2 , 5
</code></pre>
<p>i need to show 1 row for each <strong>shop</strong> so if <strong>shop id</strong> is same then show the row with high value on column <strong>size</strong>
and results should be like this</p... | [
{
"answer_id": 74606519,
"author": "Stu",
"author_id": 15332650,
"author_profile": "https://Stackoverflow.com/users/15332650",
"pm_score": 3,
"selected": true,
"text": "with t as (\n Select *, row_number() over(partition by Shop order by Size desc) rn\n from Menu\n)\nselect Id, Shop, s... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12293338/"
] |
74,606,385 | <p>I am trying to scrape youtube videos from a channel by doing the following code below however, it seems that my element_titles don't have a href attribute. This worked about a year ago and I am unsure why it doesn't work now? Did youtube change the way we can get href?</p>
<pre><code>#Scrape for videos
# WARNING: Ta... | [
{
"answer_id": 74606427,
"author": "BrownieInMotion",
"author_id": 14585634,
"author_profile": "https://Stackoverflow.com/users/14585634",
"pm_score": 0,
"selected": false,
"text": "video-title-link /watch video-title-link video-title"
},
{
"answer_id": 74606782,
"author": "F... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14805218/"
] |
74,606,397 | <p>My idea is to show loader circle after clicking a form submit button, because it's take some time to redirect user to page which let you know that form is submitted successfully. But with my limited JavaScrip knowledge I can't figure it out how to start loader only if user have filed out all required fields. Is it p... | [
{
"answer_id": 74606856,
"author": "jorgepelcastre",
"author_id": 20626144,
"author_profile": "https://Stackoverflow.com/users/20626144",
"pm_score": 0,
"selected": false,
"text": "const form = document.getElementById('form');\n\nconst handleSubmit = (event) => {\n event.preventDefault(... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15083971/"
] |
74,606,401 | <p>I have a dataframe <code>df</code> whose index is <code>[x[0], ..., x[N]]</code> and column is <code>[y[0], ..., y[M]]</code> and whose data is a 2D array of <code>z[i,j]</code>'s.</p>
<p>I have a python function <code>def f(x, y, z)</code> of 3 float variables and I would like to calculate the 2d array of <code>f(x... | [
{
"answer_id": 74606856,
"author": "jorgepelcastre",
"author_id": 20626144,
"author_profile": "https://Stackoverflow.com/users/20626144",
"pm_score": 0,
"selected": false,
"text": "const form = document.getElementById('form');\n\nconst handleSubmit = (event) => {\n event.preventDefault(... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1581875/"
] |
74,606,422 | <p>When the window is resized, I want the height to be set equal to the width so the windows always is a square. In the code below <code>print(event.width)</code> does print the new window width, but <code>canvas.configure(height=event.width)</code> doesn't change the canvas height. What am I doing wrong?</p>
<p>EDIT:... | [
{
"answer_id": 74606606,
"author": "JRiggles",
"author_id": 8512262,
"author_profile": "https://Stackoverflow.com/users/8512262",
"pm_score": 0,
"selected": false,
"text": "canvas import tkinter as tk\n\nroot = tk.Tk\nroot.geometry('600x600')\ncanvas = tk.Canvas(root, background=red)\nca... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9060784/"
] |
74,606,440 | <p>Hi everyone hope you all doing good,</p>
<p>I am trying to add a plugin to sanity and the plugin is <a href="https://www.sanity.io/plugins/order-documents" rel="nofollow noreferrer">sanity-plugin-order-documents
</a>.<br>I have followed all the steps shown in the documentation step by step.<br></p>
<blockquote>
<p>I... | [
{
"answer_id": 74628538,
"author": "Aidan Marshall",
"author_id": 10193563,
"author_profile": "https://Stackoverflow.com/users/10193563",
"pm_score": 2,
"selected": true,
"text": "react-select@^5 react-select@^5 react-select yarn add npm install sanity-plugin-autocomplete-tags@1.0.0 sani... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16791905/"
] |
74,606,444 | <p>i want to dynamically change the color of my text depending if it exceeds a certain range of numbers (between 0 and 360). i will share my code that is currently working but not changing colors.</p>
<pre><code>class _DurationContainers extends StatelessWidget {
const _DurationContainers({
Key? key,
required... | [
{
"answer_id": 74628538,
"author": "Aidan Marshall",
"author_id": 10193563,
"author_profile": "https://Stackoverflow.com/users/10193563",
"pm_score": 2,
"selected": true,
"text": "react-select@^5 react-select@^5 react-select yarn add npm install sanity-plugin-autocomplete-tags@1.0.0 sani... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19702304/"
] |
74,606,461 | <p>I want to create a class in python that contains variables and a domain for each variable
to generate a list of dictionary containing all the possible solutions for variables assignments</p>
<pre><code>for exemple:
x='x'
y='y'
domainx=[1,2]
domainy=[3,4]
def solutions(elt,elt2,domainx,domainy):
for i in domainx... | [
{
"answer_id": 74628538,
"author": "Aidan Marshall",
"author_id": 10193563,
"author_profile": "https://Stackoverflow.com/users/10193563",
"pm_score": 2,
"selected": true,
"text": "react-select@^5 react-select@^5 react-select yarn add npm install sanity-plugin-autocomplete-tags@1.0.0 sani... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20313832/"
] |
74,606,483 | <p>So i want to make a list of these orders and implement a search function to it but i cant even figure the basics like now it just spams undefined on the html even though the "orderid" is a object on the json file. this is really hard to figure out and when i ask people, people give too straight forward mes... | [
{
"answer_id": 74606551,
"author": "damonholden",
"author_id": 17670742,
"author_profile": "https://Stackoverflow.com/users/17670742",
"pm_score": 0,
"selected": false,
"text": "const orderlist = document.getElementById('orderlist');\nlet orderid = [0];\n\nconst displayorderid = (orderid... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583150/"
] |
74,606,511 | <p>I am working on an Angular component that contains a function. In this function, I need to pass an Object as a function parameter and call this function with the function parameters. It´s been a while since I have been working with Angular and at the type, "any" was the return type to use with functions; n... | [
{
"answer_id": 74606662,
"author": "Bruno João",
"author_id": 2009212,
"author_profile": "https://Stackoverflow.com/users/2009212",
"pm_score": 0,
"selected": false,
"text": "type UserData = { FirstName: string; LastName: string };\n UserData @Input() public userdata!: UserData;\n public... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1120165/"
] |
74,606,523 | <p>I am quite new to Django and followed a tutorial to create a website. I'm not able to log in to an account. When I log in with any details (correct or incorrect), my 'login' page just reloads and nothing else happens (The expected result is that I go into a different page when I log in correctly)</p>
<p>I am getting... | [
{
"answer_id": 74606662,
"author": "Bruno João",
"author_id": 2009212,
"author_profile": "https://Stackoverflow.com/users/2009212",
"pm_score": 0,
"selected": false,
"text": "type UserData = { FirstName: string; LastName: string };\n UserData @Input() public userdata!: UserData;\n public... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627263/"
] |
74,606,541 | <p>I have a vehicle class that gradually increases its speed to 10 and when it reaches 10 it maintains its value (remains 10), and when the speed is reduced, the speed must be reduced gradually. When it reaches 0, it maintains its value (remains 0).</p>
<p>I did not know how to reduce the vehicle speed and maintain the... | [
{
"answer_id": 74606565,
"author": "SilicDev",
"author_id": 20614914,
"author_profile": "https://Stackoverflow.com/users/20614914",
"pm_score": 0,
"selected": false,
"text": "speed = speed != 0 ? (speed - 1) % (speed / -1) : 0;\n"
},
{
"answer_id": 74606567,
"author": "David ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20625659/"
] |
74,606,555 | <p>How could I to show all years in a heat map label in R? Some years in "Y" label are missing.
Is it possible to put all the years with an angle or with alternate displacements?</p>
<pre><code>year = seq(from=1971,to=2020,by=1)
jan = runif(n = 50, min = -3, max = 3)
feb = runif(n = 50, min = -3, max = 3)
mar... | [
{
"answer_id": 74606700,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 0,
"selected": false,
"text": "gplots::heatmap.2(df, scale = \"none\", col = my_palette, \n trace = \"none\", density.info = \"no... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7817376/"
] |
74,606,557 | <p>I want to query buttons present inside ng-content.</p>
<p><a href="https://stackblitz.com/edit/angular-ivy-tq6dzz?file=src%2Fapp%2Fselect%2Fselect.component.html,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fselect%2Fselect.component.ts,src%2Fapp%2Fdirectives%2Fitem.directive.ts" rel="nofollow... | [
{
"answer_id": 74606700,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 0,
"selected": false,
"text": "gplots::heatmap.2(df, scale = \"none\", col = my_palette, \n trace = \"none\", density.info = \"no... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11423881/"
] |
74,606,644 | <p>My microservices project structure is like this:</p>
<pre><code>my-service-one/
- Dockerfile
- ...
my-service-two/
- Dockerfile
- ...
docker-compose.yml
</code></pre>
<p>As you can see, each service directory contains a Dockerfile. There is a <code>docker-compose.yml</code> in the root level.</p>
<p>The <cod... | [
{
"answer_id": 74606949,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "build:\n context: YOUR_DIRECTORY\n dockerfile: ./my-service-one/Dockerfile\n"
},
{
"answer_id": 746... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/842225/"
] |
74,606,652 | <p>I am making my first commit using GIT in VS Code. I only have one main branch in Github and while I was using git push, I send it as:
git push origin/master accidentally.</p>
<p>Error:
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/<em>"repoName"</em>.git'... | [
{
"answer_id": 74606949,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "build:\n context: YOUR_DIRECTORY\n dockerfile: ./my-service-one/Dockerfile\n"
},
{
"answer_id": 746... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543349/"
] |
74,606,689 | <p>I have a task to shift an array of real numbers to the right by n elements, what I have succesfully done, bu then I noticed that I was supposed to use only addresses and pointers.
I tried to rewrite code with addresses but it seems to not work, can someone please help me with it.</p>
<p>So here is the code which is ... | [
{
"answer_id": 74606949,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "build:\n context: YOUR_DIRECTORY\n dockerfile: ./my-service-one/Dockerfile\n"
},
{
"answer_id": 746... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627290/"
] |
74,606,696 | <p>I am trying to use TCLs builtin <code>exec</code> procedure to run the following <code>sed</code> shell command:</p>
<pre><code>sed -i 's/"VALUE.${name}">.*</"VALUE.${name}">${value}</' ${dir}/imp.xml
</code></pre>
<p>However when I pass it to exec tcl errors out with</p>
<pre><code>s... | [
{
"answer_id": 74606846,
"author": "Chris Heithoff",
"author_id": 16350882,
"author_profile": "https://Stackoverflow.com/users/16350882",
"pm_score": 1,
"selected": false,
"text": "exec exec sed -i 's/\\\"VALUE.\\${name}\\\">.*</\\\"VALUE.\\${name}\\\">\\${value}' \\${dir}/impl.xml\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11127623/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.