qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,494,747 | <p>For my python bootcamp I am trying to create a log of the articles from this site, and return the highest upvoted. The rest of the code works, but I cannot get it to return the href properly. I get "none." I have tried everything I know to do... can anyone provide any guidance?</p>
<pre><code>from bs4 impo... | [
{
"answer_id": 74494797,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "\n...\n\n article_link = article_tag.a.get(\"href\") # <--- put .a here\n\n...\n from bs4 import Beauti... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19763288/"
] |
74,494,788 | <p>I have this <a href="https://regex101.com/r/ZS8EWW/1" rel="nofollow noreferrer">REGEX</a> to check a paragraph and get some data from there.</p>
<pre><code>([0-9]{1,2}:{0,1}[0-9]{0,2}[a-z]{0,2})[\s\D\s]+([0-9]{1,2}:{0,1}[0-9]{0,2}[a-z]{0,2}),(.+),(\s\w{1,2} de [\wç]+ de \d{4})?(\s\w+ \d{1,2}, \d{4})?$
</code></pre>
... | [
{
"answer_id": 74495122,
"author": "Ali ISSA",
"author_id": 5920582,
"author_profile": "https://Stackoverflow.com/users/5920582",
"pm_score": -1,
"selected": false,
"text": "([0-9]{1,2}:{0,1}[0-9]{0,2}[a-z]{0,2})[\\s\\D\\s]+([0-9]{1,2}:{0,1}[0-9]{0,2}[a-z]{0,2}),(.+),(\\s\\w{1,2} de [\\w... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6824168/"
] |
74,494,803 | <p>I'm not new to .NET Core development, but I am very new to ASP.NET Web Apps.</p>
<p>I have an Index.cshtml that has the following iframe in it:</p>
<pre><code> <iframe
height="800"
width="1300"
loading="eager"
frameBorder="0"
scrolling=... | [
{
"answer_id": 74494857,
"author": "SNBS",
"author_id": 20426120,
"author_profile": "https://Stackoverflow.com/users/20426120",
"pm_score": 1,
"selected": false,
"text": "iframe <script defer>\n iframe.src = \"https://example.com/?page_id=436?reload=\"+(new Date()).getTime();\n</script>... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6831042/"
] |
74,494,806 | <p>I have the following:</p>
<pre><code>import pandas as pd
file = pd.DataFrame()
file['CASH RECIEVED DATE'] = ['2018-07-23', '2019-09-26', '2017-05-02']
</code></pre>
<p>and I need to create a column called <code>Cash Received Date</code></p>
<pre><code>file['Cash Received Date']
</code></pre>
<p>suc... | [
{
"answer_id": 74494857,
"author": "SNBS",
"author_id": 20426120,
"author_profile": "https://Stackoverflow.com/users/20426120",
"pm_score": 1,
"selected": false,
"text": "iframe <script defer>\n iframe.src = \"https://example.com/?page_id=436?reload=\"+(new Date()).getTime();\n</script>... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13410280/"
] |
74,494,811 | <p>I want to count how many times each function get called.
I have a wrapper to do the counting and save it into a global variable</p>
<pre><code>def counter(f):
global function_calls
function_calls = 0
def wrapper(*args, **kwargs):
global function_calls
function_calls += 1
return f... | [
{
"answer_id": 74494893,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 3,
"selected": true,
"text": "int dict def counter(f):\n global function_calls\n function_calls = {}\n\n def wrapper(*args, **kwargs):\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14752392/"
] |
74,494,822 | <p>I know this question has been asked, I looked through all of them and couldn't find a fix for my code.</p>
<p>This is the pubspec yaml, I think that where I might have the error</p>
<pre><code>name: i_am_rich
description: fuck this shit
version: 1.0.0+1
environment:
sdk: '>=2.18.4 <3.0.0'
dependencies:
f... | [
{
"answer_id": 74494893,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 3,
"selected": true,
"text": "int dict def counter(f):\n global function_calls\n function_calls = {}\n\n def wrapper(*args, **kwargs):\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542791/"
] |
74,494,846 | <p>I am using a kendo grid "detailTemplate" almost identical to this example: <a href="https://demos.telerik.com/kendo-ui/grid/detailtemplate" rel="nofollow noreferrer">https://demos.telerik.com/kendo-ui/grid/detailtemplate</a></p>
<p>When my expand icon is clicked, I fetch the data and display another kendo ... | [
{
"answer_id": 74494893,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 3,
"selected": true,
"text": "int dict def counter(f):\n global function_calls\n function_calls = {}\n\n def wrapper(*args, **kwargs):\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/937554/"
] |
74,494,899 | <p>I have a MongoDB collection like this:</p>
<pre><code>{
_id: "abc",
history:
[
{
status: 1,
reason: "confirmed"
},
{
status: 2,
reason: "accepted"
}
],
_id: "xyz",
history:... | [
{
"answer_id": 74495428,
"author": "R2D2",
"author_id": 10415047,
"author_profile": "https://Stackoverflow.com/users/10415047",
"pm_score": 1,
"selected": false,
"text": "db.collection.find({\n $expr: {\n $eq: [\n {\n $arrayElemAt: [\n \"$history.status\",\n -1\n ]\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1471381/"
] |
74,494,901 | <p>I am trying to apply PCA to reduce dimensionality and noise using Julia language but am getting an error message. Could you please help me to solve this issue.</p>
<p>Are there other alternatives in julia to the perform the same task?</p>
<p>Here's the error message:</p>
<pre><code>julia> X = (train_input)' |>... | [
{
"answer_id": 74495080,
"author": "Shayan",
"author_id": 11747148,
"author_profile": "https://Stackoverflow.com/users/11747148",
"pm_score": 3,
"selected": false,
"text": "MultivariateStats v0.10.0 julia> using MultivariateStats\n\njulia> X = rand(5, 100);\n fit(PCA, X, maxoutdim=... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542850/"
] |
74,494,913 | <p>I'm looking to write something in XSLT 1.0 that achieves the following:</p>
<p><strong>Input XML:</strong></p>
<pre><code><parent>
<header>
<value1>1</value1>
<value2>2</value2>
</header>
<repeating>
<repeat>
<r... | [
{
"answer_id": 74495045,
"author": "michael.hor257k",
"author_id": 3016153,
"author_profile": "https://Stackoverflow.com/users/3016153",
"pm_score": 1,
"selected": true,
"text": "<xsl:stylesheet version=\"1.0\" \nxmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"x... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542868/"
] |
74,494,936 | <p>I am trying to make the copy constructor of a class thread safe like this:</p>
<pre><code>class Base
{
public:
Base ( Base const & other )
{
std::lock_guard<std::mutex> lock ( other.m_Mutex );
...
}
protected:
std::mutex m_Mutex;
}
class Derived : pub... | [
{
"answer_id": 74495226,
"author": "Dmytro Ovdiienko",
"author_id": 1145526,
"author_profile": "https://Stackoverflow.com/users/1145526",
"pm_score": 0,
"selected": false,
"text": "Base(Base const&, void*) #include <iostream>\n\nstruct Mutex\n{\n void lock() { std::cout << \"Lock\\n\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9069780/"
] |
74,494,943 | <p>inside a while loop all the if and elif statements are working except <code>elif user_choice.upper() == "C"</code></p>
<p>I tried inputting the choice C and expected the program to print "miles travelled" but the program went and again asked for input</p>
<pre><code># Game info
print("Welcom... | [
{
"answer_id": 74495226,
"author": "Dmytro Ovdiienko",
"author_id": 1145526,
"author_profile": "https://Stackoverflow.com/users/1145526",
"pm_score": 0,
"selected": false,
"text": "Base(Base const&, void*) #include <iostream>\n\nstruct Mutex\n{\n void lock() { std::cout << \"Lock\\n\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542890/"
] |
74,494,984 | <pre><code>export class Ingredient {
public name: string;
public amount: number;
constructor(name: string, amount: number) {
this.name = name;
this.amount = amount;
}
}
</code></pre>
<p><strong>My Array:</strong></p>
<pre><code>export const initialState2: Ingredient[] = [
new Ingredie... | [
{
"answer_id": 74495226,
"author": "Dmytro Ovdiienko",
"author_id": 1145526,
"author_profile": "https://Stackoverflow.com/users/1145526",
"pm_score": 0,
"selected": false,
"text": "Base(Base const&, void*) #include <iostream>\n\nstruct Mutex\n{\n void lock() { std::cout << \"Lock\\n\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17708807/"
] |
74,494,997 | <p>I have two tables</p>
<p><strong>Account table</strong></p>
<pre><code>id | account_no
-----------------------
1 | 111
2 | 222
</code></pre>
<p><strong>Account details</strong></p>
<pre><code>id | act_id (fk) | amount | created_dt_ | created_by
------------------------------------------------ ... | [
{
"answer_id": 74495202,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 3,
"selected": true,
"text": "CREATE TABLE Account \n (`id` int, `account_no` int)\n;\n \nINSERT INTO Account \n (`id`, `account_no`)\nVALUES\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74494997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17491052/"
] |
74,495,015 | <p>Can you help me with my code bellow? Can't seem to figure out how to loop through all the elements in array to change their background color from green to orange and back again on click. What I want it to do is change the background color of each specific div to orange on click and back to green again..and so on. Wh... | [
{
"answer_id": 74495340,
"author": "Olamide Samuel",
"author_id": 19979182,
"author_profile": "https://Stackoverflow.com/users/19979182",
"pm_score": 1,
"selected": false,
"text": "assEventListener greenBox onClick <div id='testA' style=\"background-color: green;\" class=\"box\" onClick=... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542861/"
] |
74,495,030 | <p>I want to calculate grouped means of multiple columns in a dataframe. In the process, I will want to retain non-numeric columns that don't vary across with the grouping variable. Here's a simple example.</p>
<pre><code>library(dplyr)
#create data frame
df <- data.frame(team=c('A', 'A', 'B', 'B', 'B', 'C', 'C'... | [
{
"answer_id": 74495062,
"author": "asd-tm",
"author_id": 5043424,
"author_profile": "https://Stackoverflow.com/users/5043424",
"pm_score": 3,
"selected": true,
"text": "group_by() group_by() df %>%\n group_by(team, state, region) %>%\n summarise_at(vars(pts, rebs, ast), list(mean))\n"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7138264/"
] |
74,495,037 | <p>It isn't difficult to find information on the big-O time behavior of stl container operations. However, we operate in a hard real-time environment, and I'm having a lot more trouble finding information on their heap memory usage behavior.</p>
<p>In particular I had a developer come to me asking about std::unordered_... | [
{
"answer_id": 74495062,
"author": "asd-tm",
"author_id": 5043424,
"author_profile": "https://Stackoverflow.com/users/5043424",
"pm_score": 3,
"selected": true,
"text": "group_by() group_by() df %>%\n group_by(team, state, region) %>%\n summarise_at(vars(pts, rebs, ast), list(mean))\n"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29639/"
] |
74,495,056 | <p>Here's an example of what I'm trying to do...</p>
<p>Let's say I have the number 73,284.</p>
<p>The number of <strong>thousands</strong> is 73 (73,284 divided by 1,000).</p>
<p>The number of <strong>hundreds</strong> is 2 (284 divided by 100).</p>
<p>The number of <strong>tens</strong> is 8 (84 divided by 10).</p>
<... | [
{
"answer_id": 74495189,
"author": "Jamiec",
"author_id": 219661,
"author_profile": "https://Stackoverflow.com/users/219661",
"pm_score": 1,
"selected": true,
"text": "function get(num){\n const thousands = Math.floor(num/1000)\n const hundreds = Math.floor((num-thousands*1000)... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20472594/"
] |
74,495,075 | <p>Every day I run a pipeline that runs a Copy Data activity (DB2 => Parquet file).</p>
<p>How can I store the "Last execution date" of this activity?</p>
<p>Is there a best practice solution?</p>
<p>Because it would be unfortunate if we must do this in the old school way (store the date in a text file, or... | [
{
"answer_id": 74495189,
"author": "Jamiec",
"author_id": 219661,
"author_profile": "https://Stackoverflow.com/users/219661",
"pm_score": 1,
"selected": true,
"text": "function get(num){\n const thousands = Math.floor(num/1000)\n const hundreds = Math.floor((num-thousands*1000)... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6565296/"
] |
74,495,081 | <p>I bumped into some unexpected behavior when trying to refer to a variable outside of an event handler.</p>
<p>Below is function called <code>update</code> that joins data with div elements. In this case, there's only one data point, so only one div element is rendered. The function also takes in a number <code>curre... | [
{
"answer_id": 74495920,
"author": "Slava Knyazev",
"author_id": 4088472,
"author_profile": "https://Stackoverflow.com/users/4088472",
"pm_score": 2,
"selected": false,
"text": "on d3.selectAll('div')\n .data(data)\n // ...\n .join(enter => enter.append('div')\n .on('clic... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14013352/"
] |
74,495,085 | <p>I am trying to generate 6 boxplots displaying Fish Abundances of 3 different sites displayed for each site between 2 seasons separately using faced_grid.</p>
<p>I want to add Tukey HSD results on each single boxplot, but when I try, I always get the results of the dry season displayed.</p>
<p>Can someone help me ou... | [
{
"answer_id": 74495920,
"author": "Slava Knyazev",
"author_id": 4088472,
"author_profile": "https://Stackoverflow.com/users/4088472",
"pm_score": 2,
"selected": false,
"text": "on d3.selectAll('div')\n .data(data)\n // ...\n .join(enter => enter.append('div')\n .on('clic... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,495,116 | <p>I have this df with 9 columns</p>
<pre><code> x y1_x y2_x y3_x y4_x
0 -17.7 -0.785430 NaN NaN NaN
1 -15.0 NaN NaN NaN -3820.085000
2 -12.5 NaN NaN 2.138833 NaN
3 -12.4 NaN NaN 1.721205 ... | [
{
"answer_id": 74495920,
"author": "Slava Knyazev",
"author_id": 4088472,
"author_profile": "https://Stackoverflow.com/users/4088472",
"pm_score": 2,
"selected": false,
"text": "on d3.selectAll('div')\n .data(data)\n // ...\n .join(enter => enter.append('div')\n .on('clic... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458338/"
] |
74,495,136 | <p>I have a problem with the combobox.SelectedIndex function. The problem is that in void and static void it just returns a -1. Now before anyone comes and says if there is anything in it at all, yes it is, I've debugged the code and found that it only returns a -1 in static void and void , now I'm curious as to why it... | [
{
"answer_id": 74495920,
"author": "Slava Knyazev",
"author_id": 4088472,
"author_profile": "https://Stackoverflow.com/users/4088472",
"pm_score": 2,
"selected": false,
"text": "on d3.selectAll('div')\n .data(data)\n // ...\n .join(enter => enter.append('div')\n .on('clic... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14595777/"
] |
74,495,142 | <p>i have the following code data...</p>
<pre><code>import pandas as pd, numpy as np
from datetime import datetime
end_dt = datetime.today()
st_dt = (end_dt + pd.DateOffset(-10)).date()
df_index = pd.date_range(st_dt, end_dt)
df = pd.DataFrame(index=df_index, columns=['in_range'])
data = [pd.to_datetime(['2022-11-08',... | [
{
"answer_id": 74495345,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "merge_asof s = df.index.to_series()\nm = (pd.merge_asof(s.rename('st_dt'), dt_ranges)\n ['end_dt'].ge(s.to_numpy... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/480118/"
] |
74,495,144 | <p>I keep running into the same problem again, and i have my default way of handling it, but it keeps bugging me.<br>
Isn't there any better way?</p>
<p>So basicly i have a pipline running, do stuff within the pipline, and want to return a Key/Value Pair from within the pipline.<br>
I want the whole pipline to return a... | [
{
"answer_id": 74495471,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 3,
"selected": true,
"text": "$ht [pscustomobject] New-Object [pscustomobject] (Get-Process | Sort -Unique Name | & {\n begin { $ht ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9769175/"
] |
74,495,146 | <p><code>Task<T></code> is a separate class from <code>Task</code> (no type parameter), and there are some functions that only accept untyped Task as a parameter. <strong>How can I convert a <code>Task<T></code> to a <code>Task</code> (with no type parameter)?</strong></p>
<p>Examples in F#, but same princi... | [
{
"answer_id": 74495177,
"author": "Abel",
"author_id": 111575,
"author_profile": "https://Stackoverflow.com/users/111575",
"pm_score": 3,
"selected": true,
"text": "let t = getTask() :> Task\n Task<unit> Task Task<'T> Task.ignore let asUnitTask t = task { let! _ = t; return () }\n"
},... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2455637/"
] |
74,495,154 | <p>This is my code:</p>
<pre class="lang-py prettyprint-override"><code>def formater_les_parties(parties):
from datetime import datetime
i = f'{(len(parties[:-1]))} : {parties[0].get("date")}, {parties[0].get("joueurs")[0]} {"vs"} {parties[0].get("joueurs")[1]}, {"... | [
{
"answer_id": 74495177,
"author": "Abel",
"author_id": 111575,
"author_profile": "https://Stackoverflow.com/users/111575",
"pm_score": 3,
"selected": true,
"text": "let t = getTask() :> Task\n Task<unit> Task Task<'T> Task.ignore let asUnitTask t = task { let! _ = t; return () }\n"
},... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542963/"
] |
74,495,176 | <p>On my laptop I have networkx 2.8.6</p>
<p>BUT on a cluster I am working on running</p>
<blockquote>
<p>$ pip3 install networkx==2.8.6</p>
</blockquote>
<p>I get that there is no such version!</p>
<blockquote>
<p>ERROR: Could not find a version that satisfies the requirement
networkx==2.8.6 (from versions: 0.34, 0.35... | [
{
"answer_id": 74501864,
"author": "SultanOrazbayev",
"author_id": 10693596,
"author_profile": "https://Stackoverflow.com/users/10693596",
"pm_score": 1,
"selected": false,
"text": "networkx>=2.7 python>=3.8 conda python # create environment called nx_env\nconda create -n nx_env -c conda... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3885062/"
] |
74,495,190 | <p>I am trying to merge two json stored in python dictionaries. Here, the first dictionary is the parent into which the second dictionary gets merged into. In reality, the second dictionary represents a second line in a TSV file that holds the next record of a json array.
My program is trying to read the TSV file line ... | [
{
"answer_id": 74523051,
"author": "Pranav Hosangadi",
"author_id": 843953,
"author_profile": "https://Stackoverflow.com/users/843953",
"pm_score": 2,
"selected": false,
"text": "dict1 = {\"CA\": [{\"Marin\": [{\"zip\":1}], \"population\":10000}]}\ndict2 = {\"CA\": {\"Marin\": {\"zip\":2... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6258583/"
] |
74,495,268 | <p>I am looking for some help on a project I am doing where I need to output the responses to the console as well as write them to a file. I am having trouble figuring that part out. I have been able to write the responses to a file successfully, but not both at the same time. Can someone help with that portion? The on... | [
{
"answer_id": 74523051,
"author": "Pranav Hosangadi",
"author_id": 843953,
"author_profile": "https://Stackoverflow.com/users/843953",
"pm_score": 2,
"selected": false,
"text": "dict1 = {\"CA\": [{\"Marin\": [{\"zip\":1}], \"population\":10000}]}\ndict2 = {\"CA\": {\"Marin\": {\"zip\":2... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14503776/"
] |
74,495,276 | <p>Need to type guard but <code>instanceof</code> doesn't work with TypeScript <code>type</code>s:</p>
<pre class="lang-js prettyprint-override"><code>type Letter = 'A' | 'B';
const isLetter = (c: any): c is Letter => c instanceof Letter; // Error: 'Letter' only refers to a type, but is being used as a value here.
... | [
{
"answer_id": 74495402,
"author": "surajs02",
"author_id": 7490713,
"author_profile": "https://Stackoverflow.com/users/7490713",
"pm_score": 0,
"selected": false,
"text": "const isLetter = (c: any): c is Letter => ['A', 'B'].includes(c);\nisLetter('A'); // true\nisLetter('a'); // false\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7490713/"
] |
74,495,284 | <p>I'm working on a small project involving the game Re-Volt (1999), I'm trying to make a web page where you can see all the cars with their details (image, engine type, rating, speed etc.). I have a table <code>cars</code> where I the previous mentioned information and it looks like this:</p>
<pre><code>CREATE TABLE p... | [
{
"answer_id": 74496458,
"author": "Mahesh Biradar",
"author_id": 4991722,
"author_profile": "https://Stackoverflow.com/users/4991722",
"pm_score": 2,
"selected": true,
"text": "@Entity\n@Table(name = \"cars\")\npublic class Car {\n\n @Id\n @GeneratedValue(strategy = GenerationType... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7451529/"
] |
74,495,313 | <p>In SQL I'm trying to combine multiple tables and grab the SUM of expenses per person, and sort those by highest total expense first. I have 3 tables:</p>
<ul>
<li>test1 (from grocery store #1)</li>
<li>test2 (from grocery store #2),</li>
<li>junction1 (one that I just created to somehow try to connect test1 and tes... | [
{
"answer_id": 74495394,
"author": "Mike Hofer",
"author_id": 47580,
"author_profile": "https://Stackoverflow.com/users/47580",
"pm_score": 0,
"selected": false,
"text": "full join join INNER JOIN SELECT junction1.Name1, \n SUM(test1.Amount) AS Grocery1, \n SUM(test2.Amount) ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18060186/"
] |
74,495,334 | <p>I am fairly new to the frontend and css. I am trying to add a <code>background-image</code> in such a way that, if <code>.avif</code> files are supported, then these are loaded. Otherwise fallback to a <code>.png</code> file. I'm wondering if it is possible to do this without javascript and without loading all the i... | [
{
"answer_id": 74495394,
"author": "Mike Hofer",
"author_id": 47580,
"author_profile": "https://Stackoverflow.com/users/47580",
"pm_score": 0,
"selected": false,
"text": "full join join INNER JOIN SELECT junction1.Name1, \n SUM(test1.Amount) AS Grocery1, \n SUM(test2.Amount) ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1462297/"
] |
74,495,357 | <p>In this case I have seen the official documentation of choreo, ballerina, but I could not find how to execute a query where I need to filter by the <code>ObjectId</code>, In Java I could do it by importing BSON, but I could not find the same in ballerina.</p>
<p>In the following example, it does not give an error, b... | [
{
"answer_id": 74495394,
"author": "Mike Hofer",
"author_id": 47580,
"author_profile": "https://Stackoverflow.com/users/47580",
"pm_score": 0,
"selected": false,
"text": "full join join INNER JOIN SELECT junction1.Name1, \n SUM(test1.Amount) AS Grocery1, \n SUM(test2.Amount) ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6660693/"
] |
74,495,370 | <p>So I can run two separate queries like this:</p>
<pre><code>SELECT date as date1, product as product1, product_id as product_id_1, SUM(revenue) AS rev1
FROM product_inventory
WHERE date = '2021-11-17'
GROUP BY date1 , product1, product_id_1
ORDER BY rev1 DESC
</code></pre>
<pre><code>SELECT date as date2, produc... | [
{
"answer_id": 74495499,
"author": "at54321",
"author_id": 15602349,
"author_profile": "https://Stackoverflow.com/users/15602349",
"pm_score": 0,
"selected": false,
"text": "SELECT t1.date, t1.product, t1.product_id, t2.date, t2.product_id, ...\nFROM\n (SELECT ... FROM product_inventory... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11627826/"
] |
74,495,372 | <p>My question is basically the following:</p>
<p>When I use a value with BigDecimal, how do I append zeros in front of a random number?
Say I want to have a number <10 following an entirely random pattern. Now i want to add zeros in front of the number, so the actual amount adds up to 10 numbers.</p>
<p>Here's an e... | [
{
"answer_id": 74495409,
"author": "human bean",
"author_id": 17186475,
"author_profile": "https://Stackoverflow.com/users/17186475",
"pm_score": 1,
"selected": false,
"text": "BigDecimal BigDecimal float String BigDecimal BigDecimal BigDecimal BigDecimal compareTo"
},
{
"answer_... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16930849/"
] |
74,495,395 | <p>In the below code, I need to hide the <code>2nd tag</code> and it's related content, how can I do that in Css</p>
<pre><code><div id="content-list">
<b>Title:</b> some random text <br/>
<b>Title2:</b> some random text 2 <br/>
</div>
</code></pre>
<p>With ... | [
{
"answer_id": 74495535,
"author": "Daniel Gimenez",
"author_id": 2497335,
"author_profile": "https://Stackoverflow.com/users/2497335",
"pm_score": 3,
"selected": true,
"text": ".content-list > b:nth-of-type(2) {\n margin-left: -1000000px;\n} <div class=\"content-list\">\n <b>Title:</b... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16491376/"
] |
74,495,415 | <p><a href="https://i.stack.imgur.com/vxGDv.png" rel="nofollow noreferrer">space between my browser and my div</a></p>
<p>Hi guys, I'm a new dev and I would like to know how to erase the space between my div and my browser</p>
<p>Thanks</p>
<p>I try right=0; I try right=-10px; I try clear=both, but I'm not sure for thi... | [
{
"answer_id": 74495469,
"author": "divdev86",
"author_id": 20543274,
"author_profile": "https://Stackoverflow.com/users/20543274",
"pm_score": 2,
"selected": true,
"text": "body{\n margin: 0;\n padding: 0;\n}\n"
},
{
"answer_id": 74495520,
"author": "glenny",
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543176/"
] |
74,495,436 | <p>I am trying to sort <code>reservesUSD</code> of nested object <code>dailyPoolSnapshots</code> In descending order by timestamp and return it's first value (in other words, return the latest entry).
I know almost nothing of GraphQL and it's documentation seems confusing and scarce. Can someone help me to figure out h... | [
{
"answer_id": 74495469,
"author": "divdev86",
"author_id": 20543274,
"author_profile": "https://Stackoverflow.com/users/20543274",
"pm_score": 2,
"selected": true,
"text": "body{\n margin: 0;\n padding: 0;\n}\n"
},
{
"answer_id": 74495520,
"author": "glenny",
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11621998/"
] |
74,495,437 | <p>I have a data range in Google Sheets where I want to sort the data by column B, but only return column A. If it matters, column A is a string, column B is integers.</p>
<p>Using =SORT(A1:B10,2,FALSE) returns both columns A and B, sorted by column B...but I only want it to return column A.</p>
<p>I've also tried:
=QU... | [
{
"answer_id": 74495469,
"author": "divdev86",
"author_id": 20543274,
"author_profile": "https://Stackoverflow.com/users/20543274",
"pm_score": 2,
"selected": true,
"text": "body{\n margin: 0;\n padding: 0;\n}\n"
},
{
"answer_id": 74495520,
"author": "glenny",
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543184/"
] |
74,495,448 | <p>I seem to be facing an issue with my NextJS (13) app. Somehow Chrome gives me the next error:</p>
<p>TypeError: Cannot read properties of null (reading 'CodeMirror')</p>
<p>It happens with every entry/event to any input field in my app and until yesterday i didn't have any issues. I haven't made any changes to my co... | [
{
"answer_id": 74495469,
"author": "divdev86",
"author_id": 20543274,
"author_profile": "https://Stackoverflow.com/users/20543274",
"pm_score": 2,
"selected": true,
"text": "body{\n margin: 0;\n padding: 0;\n}\n"
},
{
"answer_id": 74495520,
"author": "glenny",
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543009/"
] |
74,495,449 | <p>I'm new to databases, so I wanted to make a program to perform simple queries in mysql with C++ in VS Code, in Windows 10. Last time I had problems with linking the library, and now it seems like I managed to fixed them. I have the following code taken from another source by adding my system configurations:</p>
<pre... | [
{
"answer_id": 74495830,
"author": "Maciej Polański",
"author_id": 19165018,
"author_profile": "https://Stackoverflow.com/users/19165018",
"pm_score": -1,
"selected": false,
"text": "mysql_init"
},
{
"answer_id": 74665398,
"author": "Ёқуб Давлатов",
"author_id": 20485270,... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20485270/"
] |
74,495,489 | <p>I want to spawn multiple processes which would do some computation and collect the results of each in a list. Consider this, although incorrect, toy example:</p>
<pre><code>defmodule Counter do
def loop(items \\ [])
def loop(items) do
receive do
{:append, item} ->
IO.inspect([item | items])... | [
{
"answer_id": 74495825,
"author": "Everett",
"author_id": 274030,
"author_profile": "https://Stackoverflow.com/users/274030",
"pm_score": 2,
"selected": false,
"text": "Task.Supervisor.async_stream_nolink send receive max_concurrency iex> Task.Supervisor.start_link(name: TmpTaskSupervis... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18782190/"
] |
74,495,503 | <p>I have a folder with a number of subfolders containing files and want to copy all files to the root folder but only overwrite if newer.</p>
<p>In powershell I can do -</p>
<p>Get-ChildItem D:\VaM\Custom\Atom\Person\Morphs\temp2\female -Recurse -file | Copy-Item -Destination D:\VaM\Custom\Atom\Person\Morphs\female</p... | [
{
"answer_id": 74495825,
"author": "Everett",
"author_id": 274030,
"author_profile": "https://Stackoverflow.com/users/274030",
"pm_score": 2,
"selected": false,
"text": "Task.Supervisor.async_stream_nolink send receive max_concurrency iex> Task.Supervisor.start_link(name: TmpTaskSupervis... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15388876/"
] |
74,495,513 | <pre><code>@client.event
async def on_message(message):
if message.author == client.user:
return
List = open("D:/code/code/DIscord bot/myFile.txt").readlines()
List = str(List).replace("\\n", " ")
if message.content in List:
msg = 'REAL!'
await message.reply(msg)
</code></pre>... | [
{
"answer_id": 74495825,
"author": "Everett",
"author_id": 274030,
"author_profile": "https://Stackoverflow.com/users/274030",
"pm_score": 2,
"selected": false,
"text": "Task.Supervisor.async_stream_nolink send receive max_concurrency iex> Task.Supervisor.start_link(name: TmpTaskSupervis... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543271/"
] |
74,495,518 | <p>I had a strange error occur today, and I am able to reproduce it with the following example:</p>
<pre><code>files = ["A.txt", "B.txt"]
rule all:
input: "copied_joined.txt"
rule A:
input: files
output: "joined.txt"
shell: "cat {input} >> {output}&q... | [
{
"answer_id": 74495717,
"author": "Josh Loecker",
"author_id": 13885200,
"author_profile": "https://Stackoverflow.com/users/13885200",
"pm_score": 1,
"selected": false,
"text": "[] input files = [\"A.txt\", \"B.txt\"]\n\n\nrule all:\n input: \"copied_joined.txt\"\n\nrule A:\n inpu... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13885200/"
] |
74,495,523 | <p>I am having a trouble where an array of Objects are returning [Object object]. What could be the missing fix to get the value of product from the mapped targeted values.</p>
<p>this is my sample array.</p>
<pre><code>const product = [{food:'BREAD',price: 6}]
</code></pre>
<p>this is where I map the values and get th... | [
{
"answer_id": 74495954,
"author": "Pipera",
"author_id": 12664292,
"author_profile": "https://Stackoverflow.com/users/12664292",
"pm_score": 0,
"selected": false,
"text": "onClick={handleChangeCheckbox('PRODUCTS')} onClick={(event) => handleChangeCheckbox('PRODUCTS', event)}"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542465/"
] |
74,495,530 | <p>How can I make two images be displayed like in my drawing below using CSS only? The photos are both perfect squares, and I understand that part of the image will not be shown by doing this. That is intentional. The gap in the middle is just my poor drawing skills, and it's not supposed to be there.</p>
<p>Additional... | [
{
"answer_id": 74495765,
"author": "zolaDesigner",
"author_id": 12191340,
"author_profile": "https://Stackoverflow.com/users/12191340",
"pm_score": -1,
"selected": false,
"text": "position: relative position: absolute"
},
{
"answer_id": 74496154,
"author": "Temani Afif",
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19643541/"
] |
74,495,560 | <p>I need help with a problem I have to solve with SQL.</p>
<p>Using -JOIN I have to display the students that were not enrolled in any courses. Using two tables: db1.ncc.Student and db1.ncc.Registration. Student table has 4 students and in table registration there's only three out of those four.</p>
<p>In my last atte... | [
{
"answer_id": 74495591,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 3,
"selected": true,
"text": "LEFT JOIN WHERE NULL NULL != ... select s.StudentID, s.StudentName \nfrom db1.ncc.STUDENT s\nleft join db1.ncc.REGISTRA... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19428121/"
] |
74,495,570 | <p>I'm having a strange issue with <strong>Visual Studio 2022 version 17.4.1</strong>.</p>
<p>Basically it seems that, starting from this version, Visual Studio 2022 does <strong>not</strong> honor the tabs configuration for the C# language when adding new items to the project via the <em>Add -> New Item</em> wizard... | [
{
"answer_id": 74640568,
"author": "Enrico Massone",
"author_id": 4331637,
"author_profile": "https://Stackoverflow.com/users/4331637",
"pm_score": 0,
"selected": false,
"text": "17.4.2"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4331637/"
] |
74,495,586 | <p>I would like <code>name3</code> array to include the documentation text of the ascendant element <code><xsd:element name="PurchaseOrder" type="tns:PurchaseOrderType"/></code>. I would like to have a generic code which prints the doccumentation according to the name of the xsd:element.</p>
<... | [
{
"answer_id": 74495847,
"author": "LMC",
"author_id": 2834978,
"author_profile": "https://Stackoverflow.com/users/2834978",
"pm_score": 2,
"selected": true,
"text": "xsd:element xsd:documentation from lxml import etree\ncrit = 'PurchaseOrder'\nt3 = etree.parse('test.xsd')\nns = {\"xsd\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4620387/"
] |
74,495,590 | <p>I've searched around StackOverflow for the issue I'm facing and can't quite find something similar.<br />
I'm working with a large time series, with a portion of the dataset below. With that, I'm trying to find a way to add an exponential fit to it using ggplot. Others have used <code>geom_smooth(method = "lm&q... | [
{
"answer_id": 74496072,
"author": "langtang",
"author_id": 4447540,
"author_profile": "https://Stackoverflow.com/users/4447540",
"pm_score": 3,
"selected": true,
"text": "nls() data %>% \n mutate(\n d = as.numeric(difftime(as.Date(avg_time),min(as.Date(avg_time)),units = \"days\")),... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8968645/"
] |
74,495,594 | <p>I'm trying to write a function that takes two parameters. The function starts two threads and uses one of the parameters inside one of the thread closures. This doesn't work because of the error "Borrowed data escapes outside of closure". Here's the code.</p>
<pre class="lang-rust prettyprint-override"><co... | [
{
"answer_id": 74495870,
"author": "Kevin Reid",
"author_id": 99692,
"author_profile": "https://Stackoverflow.com/users/99692",
"pm_score": 2,
"selected": true,
"text": "std::thread::scope() std::thread::spawn() pub fn measure_stats(testdatapath: PathBuf, filenameprefix: String) {\n move... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1242028/"
] |
74,495,627 | <p>Consider the below setup:</p>
<pre><code>typedef struct
{
float d;
} InnerStruct;
typedef struct
{
InnerStruct **c;
} OuterStruct;
float TestFunc(OuterStruct *b)
{
float a = 0.0f;
for (int i = 0; i < 8; i++)
a += b->c[i]->d;
return a;
}
</code></pre>
<p>The for loop in TestFu... | [
{
"answer_id": 74495870,
"author": "Kevin Reid",
"author_id": 99692,
"author_profile": "https://Stackoverflow.com/users/99692",
"pm_score": 2,
"selected": true,
"text": "std::thread::scope() std::thread::spawn() pub fn measure_stats(testdatapath: PathBuf, filenameprefix: String) {\n move... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8217821/"
] |
74,495,630 | <p>Trying to replace/update type A record name @ using godaddy api in laravel with Guzzle
<a href="https://developer.godaddy.com/doc/endpoint/domains#/v1/recordReplaceTypeName" rel="nofollow noreferrer">https://developer.godaddy.com/doc/endpoint/domains#/v1/recordReplaceTypeName</a></p>
<p><strong>Valid Headers</strong... | [
{
"answer_id": 74495870,
"author": "Kevin Reid",
"author_id": 99692,
"author_profile": "https://Stackoverflow.com/users/99692",
"pm_score": 2,
"selected": true,
"text": "std::thread::scope() std::thread::spawn() pub fn measure_stats(testdatapath: PathBuf, filenameprefix: String) {\n move... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20114694/"
] |
74,495,642 | <p>I have a list</p>
<pre><code>my_list = [[200.0, 10.0], [250.0, 190.0], [160.0, 210.0]]
</code></pre>
<p>I want get the list of these coordinate with space between them</p>
<pre><code>req_list = "200,10 250,190 160,210"
</code></pre>
<p>to write these in SVG format for polygons.</p>
<p>I tried replacing &qu... | [
{
"answer_id": 74495870,
"author": "Kevin Reid",
"author_id": 99692,
"author_profile": "https://Stackoverflow.com/users/99692",
"pm_score": 2,
"selected": true,
"text": "std::thread::scope() std::thread::spawn() pub fn measure_stats(testdatapath: PathBuf, filenameprefix: String) {\n move... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3499052/"
] |
74,495,679 | <p>I am unable to get the expected results as shown in the picture below. There are 2 rules to follow</p>
<ol>
<li>The horizontal line should not continue till the bottom text. Instead, it should just be the height of the right text (multiline).</li>
<li>Bottom text should align with the Right Text from the left side.<... | [
{
"answer_id": 74496485,
"author": "Arthur Kasparian",
"author_id": 19454251,
"author_profile": "https://Stackoverflow.com/users/19454251",
"pm_score": 0,
"selected": false,
"text": "var divHeight: Int = 0 // Must be initialized\n\nRow() {\n Text(text = \"Left Text\")\n\n Divider(\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1890849/"
] |
74,495,684 | <p>I'm trying to recreate this part of a website using HTML&CSS : <a href="https://i.stack.imgur.com/23rJq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/23rJq.png" alt="1" /></a>
and my part looks like this : <a href="https://i.stack.imgur.com/TEc9x.png" rel="nofollow noreferrer"><img src="http... | [
{
"answer_id": 74495781,
"author": "human bean",
"author_id": 17186475,
"author_profile": "https://Stackoverflow.com/users/17186475",
"pm_score": -1,
"selected": false,
"text": "h3 p h3 h3 margin-bottom p margin-top .cta {\n background: #3882f6;\n padding: 50px 100px;\n border-radius:... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19111213/"
] |
74,495,694 | <p>The question has been tormenting for several days, unfortunately I could not find a solution. The magic poke method, too, did not bring results.</p>
<p>You need to create your own LineRenderer, because Unity does not correctly display the grid of lines during sharp turns, and adding auxiliary points does not always ... | [
{
"answer_id": 74495781,
"author": "human bean",
"author_id": 17186475,
"author_profile": "https://Stackoverflow.com/users/17186475",
"pm_score": -1,
"selected": false,
"text": "h3 p h3 h3 margin-bottom p margin-top .cta {\n background: #3882f6;\n padding: 50px 100px;\n border-radius:... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17420982/"
] |
74,495,698 | <p>I have a chrome extension with a button. Whenever the button is clicked, I want it to console.log("here") on the webpage. Currently it will only log on the extension popup page. Why is it doing this and how may I make it so that whenever the user presses a button it will console.log on the webpage not just... | [
{
"answer_id": 74496036,
"author": "Jridyard",
"author_id": 15951953,
"author_profile": "https://Stackoverflow.com/users/15951953",
"pm_score": 1,
"selected": false,
"text": "---manifest.json---\n{\n \"name\": \"Popup to Content\",\n \"version\": \"1.0.0\",\n \"manifest_version\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19163242/"
] |
74,495,728 | <p>My dataframe looks like this:</p>
<pre><code>df
BEN_ID Val_1 Val_2 Val_3 Val_4 Val_5 AGE GENDER
1 ID1 vA303 . . . . 25 F
2 ID1 9351 A303 53019 49390 F5D12 52 F
3 ID2 541AZ 1120 462 4019 A36B0 58 M
4 ID2 30302 5939 2768 4019 2724 65 ... | [
{
"answer_id": 74495784,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 0,
"selected": false,
"text": "df[apply(df[, -c(1,7,8)], 1, function(x) any(grepl(\"^303|^305\", x))), ]\n BEN_ID Val_1 Val_2 Val_3 Val_4 V... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10030188/"
] |
74,495,735 | <p>I wanted to use docker for a personal project I set up it's written in go few services. So at the beging my "architecture" was spliting each service in diferent folder each service has it's own main which starts the srvice initialize what it needs opens a specific port for it. So far so good. So I wanted t... | [
{
"answer_id": 74495784,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 0,
"selected": false,
"text": "df[apply(df[, -c(1,7,8)], 1, function(x) any(grepl(\"^303|^305\", x))), ]\n BEN_ID Val_1 Val_2 Val_3 Val_4 V... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12686413/"
] |
74,495,743 | <p>I am new to TS and struggling to type the following arrow function:</p>
<pre><code>const mapLikeGet = (obj, key) => {
if (Object.prototype.hasOwnProperty.call(obj, key))
return obj[key]
}
</code></pre>
| [
{
"answer_id": 74495837,
"author": "Slava Knyazev",
"author_id": 4088472,
"author_profile": "https://Stackoverflow.com/users/4088472",
"pm_score": 0,
"selected": false,
"text": "keyof const mapLikeGet = <T,>(obj: T, key: keyof T) => {\n if (Object.prototype.hasOwnProperty.call(obj, ke... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1495064/"
] |
74,495,779 | <p>Here's _app.tsx from a bare bones react auth example</p>
<pre><code>import { SessionProvider } from "next-auth/react",
import * as React from "react"
export default function App({
React.Component,
pageProps: { session, ...pageProps },
}) {
return (
<SessionProvider session={session}&... | [
{
"answer_id": 74495837,
"author": "Slava Knyazev",
"author_id": 4088472,
"author_profile": "https://Stackoverflow.com/users/4088472",
"pm_score": 0,
"selected": false,
"text": "keyof const mapLikeGet = <T,>(obj: T, key: keyof T) => {\n if (Object.prototype.hasOwnProperty.call(obj, ke... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11170223/"
] |
74,495,782 | <p>I want to collect all the numbers in the range [a, b] whose factorial starts with an even number.</p>
<p><strong>For example:</strong></p>
<pre><code>a = 1, b = 10
</code></pre>
<p><strong>Answer:</strong></p>
<pre><code>2 3 4 8
</code></pre>
<p><strong>Explanation:</strong></p>
<pre><code>2! = 2 = starts with even
... | [
{
"answer_id": 74495921,
"author": "Melron",
"author_id": 8920328,
"author_profile": "https://Stackoverflow.com/users/8920328",
"pm_score": -1,
"selected": false,
"text": "private static List<Integer> process(int a, int b)\n{\n List<Integer> list = new ArrayList<>();\n for (int i =... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3181365/"
] |
74,495,807 | <p>I want to find the next minimum value in a one-dimensional array so that I don't want to sort the array first.</p>
<p>For example if I have this array:</p>
<pre><code>int [] a={10,5,20,3};
</code></pre>
<p>The first minimum value is 3, the second is 5, the third is 10 and the last is 20.</p>
<p>Now I want to know th... | [
{
"answer_id": 74495871,
"author": "jmvcollaborator",
"author_id": 13579714,
"author_profile": "https://Stackoverflow.com/users/13579714",
"pm_score": -1,
"selected": false,
"text": "/* prints element and NSE pair for all\nelements of arr[] of size n */\npublic static void printNSE(int[]... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18716659/"
] |
74,495,820 | <p>I needed to scrape the telefone numbers and the email addreses from the following using python:</p>
<pre><code>url = 'https://rma.cultura.gob.ar/#/app/museos/resultados?provincias=Buenos%20Aires'
source = requests.get(url).text
soup = BeautifulSoup(source, 'lxml')
print(soup)
</code></pre>
<p>The problem is that ... | [
{
"answer_id": 74495905,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "requests json import json\nimport requests\n\napi_url = \"https://rmabackend.cultura.gob.ar/api/museos\"\n\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19522207/"
] |
74,495,850 | <p>I am trying to take a single cell of data from specific files in a very large folder. I currently have this:</p>
<pre class="lang-vb prettyprint-override"><code>Sub ExtractDataToDifferentSheets()
On Error GoTo HandleError
Application.ScreenUpdating = False
Dim rowNumber As Integer
rowNumber = Workshe... | [
{
"answer_id": 74495905,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "requests json import json\nimport requests\n\napi_url = \"https://rmabackend.cultura.gob.ar/api/museos\"\n\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543395/"
] |
74,495,851 | <p>Can anyone explain what's going on here? setting <code>row.name= NULL</code> makes no difference compared to when I dont specify it, yet when I set <code>row.names=1</code>, it says duplicate row.names not allowed? How do I resolve this to get column V1 as rownames?</p>
<pre><code>ak1a = read.table("/Users/abha... | [
{
"answer_id": 74495877,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 1,
"selected": false,
"text": "df <- read.table(text=\"V1 V2\nENSG00000000003.15 2\nENSG00000000005.6 0\nENSG00000000419.14 21\nENSG0000000... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17866927/"
] |
74,495,864 | <p>I have a huge list of sublists, each sublist consisting of a tuple and an int. Example:</p>
<pre><code>[[(1, 1), 46], [(1, 2), 25.0], [(1, 1), 25.0], [(1, 3), 19.5], [(1, 2), 19.5], [(1, 4), 4.5], [(1, 3), 4.5], [(1, 5), 17.5], [(1, 4), 17.5], [(1, 6), 9.5], [(1, 5), 9.5]]
</code></pre>
<p>I want to create a unique ... | [
{
"answer_id": 74495877,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 1,
"selected": false,
"text": "df <- read.table(text=\"V1 V2\nENSG00000000003.15 2\nENSG00000000005.6 0\nENSG00000000419.14 21\nENSG0000000... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543467/"
] |
74,495,897 | <p>Just getting started with SwiftUI so there is probably something straightforward I am missing.</p>
<p>When the "CHECK" button is pressed, I want to change the background color of the button with an index that matches question.correctChoiceIndex, as well as the button selected by the user, if it is not the ... | [
{
"answer_id": 74496382,
"author": "workingdog support Ukraine",
"author_id": 11969817,
"author_profile": "https://Stackoverflow.com/users/11969817",
"pm_score": 0,
"selected": false,
"text": "// for testing\nstruct Question: Identifiable {\n let id = UUID()\n var questionText: Str... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9227462/"
] |
74,495,928 | <p>I have this df with only one value per column between <code>y1</code> and <code>y4</code></p>
<pre><code> x y1 y2 y3 y4
0 -17.7 -0.785430 NaN NaN NaN
1 -15.0 NaN NaN NaN -3820.085000
2 -12.5 NaN NaN 2.138833 ... | [
{
"answer_id": 74495987,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 2,
"selected": false,
"text": "groupby first out = df.groupby(df.columns.str[0],axis=1).first()\nOut[60]: \n x y\n0 -17.7 -0.785430... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458338/"
] |
74,495,932 | <p>I need to add to the line:</p>
<pre><code>url="items.point&point1={item}%2C{item}&point2C{item}%2C{item}"
</code></pre>
<p>four values of possible coordinates instead of "item" value. We have to generate these coordinate values in a loop.</p>
<p>I tried many different options for how ... | [
{
"answer_id": 74496007,
"author": "Swifty",
"author_id": 20267366,
"author_profile": "https://Stackoverflow.com/users/20267366",
"pm_score": 2,
"selected": true,
"text": "urls=[]\nfor item1, item2 in zip(*[iter(coordinates)]*2):\n urls.append(f\"items.point&point1{item1}%2C{item2}&po... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543386/"
] |
74,495,936 | <p>So if we have a list of strings, for example</p>
<pre><code>ArrayList<String> listA = new ArrayList(Arrays.asList("C", "E", "B", "F", **"E"**, "A", "G", "G", "C", "A", "B", **"G"**));
</code>... | [
{
"answer_id": 74495997,
"author": "John3136",
"author_id": 857132,
"author_profile": "https://Stackoverflow.com/users/857132",
"pm_score": 2,
"selected": true,
"text": "if (k == unmatchingPositions.get(k)) { if int listASz = listA.size();\nfor(int i = 0; i < listASz; i++)\n{\n if (li... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14677576/"
] |
74,495,938 | <p>I have this list:</p>
<pre><code>[[1, 2, 3, 4], [5], [6, 7], [8], [9], [10, 11], [12, 13, 14], [15, 16], [15, 16], [15, 16], [17], [18], [19], [20], [21], [20], [21], [], [], [], [], []]
</code></pre>
<p>It could be described as a list of references to other items in the same list, like this:</p>
<pre><code>0 -->... | [
{
"answer_id": 74495997,
"author": "John3136",
"author_id": 857132,
"author_profile": "https://Stackoverflow.com/users/857132",
"pm_score": 2,
"selected": true,
"text": "if (k == unmatchingPositions.get(k)) { if int listASz = listA.size();\nfor(int i = 0; i < listASz; i++)\n{\n if (li... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2268171/"
] |
74,495,948 | <p>The code here in my App.js renders a Navbar & a home page.</p>
<pre><code>import React from "react";
import './styles/global.css';
import Navbar from "./components/navbar/Navbar";
import Home from "./pages/Home";
function App() {
return (
<div className="app">... | [
{
"answer_id": 74495997,
"author": "John3136",
"author_id": 857132,
"author_profile": "https://Stackoverflow.com/users/857132",
"pm_score": 2,
"selected": true,
"text": "if (k == unmatchingPositions.get(k)) { if int listASz = listA.size();\nfor(int i = 0; i < listASz; i++)\n{\n if (li... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18137450/"
] |
74,495,960 | <p>I'm preparing data for a cox regression model and I have a dataset that shows all of the years that participants were registered as living in the province. There is a variable that identifies how many days they were registered as living in the province for each year. I want their start year to be their first year th... | [
{
"answer_id": 74496149,
"author": "langtang",
"author_id": 4447540,
"author_profile": "https://Stackoverflow.com/users/4447540",
"pm_score": 1,
"selected": false,
"text": "data.table::rleid() group_by(df,ID) %>%\n filter(data.table::rleid(c(1,diff(values)))==1)\n ID values\n <dbl... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543516/"
] |
74,495,966 | <p>I have a column containing symbols of chemical elements and other substances. Something like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Commoditie</th>
</tr>
</thead>
<tbody>
<tr>
<td>sn</td>
</tr>
<tr>
<td>sulfuric acid</td>
</tr>
<tr>
<td>cu</td>
</tr>
<tr>
<td>sodium chlori... | [
{
"answer_id": 74497066,
"author": "Frodnar",
"author_id": 15534441,
"author_profile": "https://Stackoverflow.com/users/15534441",
"pm_score": 0,
"selected": false,
"text": "for i, row in df2.iterrows():\n df1.Commodities = df1.Commodities.str.replace(row.Symbol, row.Name)\n df1 ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19745597/"
] |
74,495,990 | <p>I'm trying to validate a required field in an angular form through the ngModel but I get the error "Property 'name' does not exist on type 'ContactComponent'.". I have seen some implementation examples but I do not see where my error is, below I share a fragment of the template and the component:</p>
<p>te... | [
{
"answer_id": 74497066,
"author": "Frodnar",
"author_id": 15534441,
"author_profile": "https://Stackoverflow.com/users/15534441",
"pm_score": 0,
"selected": false,
"text": "for i, row in df2.iterrows():\n df1.Commodities = df1.Commodities.str.replace(row.Symbol, row.Name)\n df1 ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19604489/"
] |
74,495,991 | <p>I have an array of objects:</p>
<pre class="lang-js prettyprint-override"><code>const arr =
[
{
user: 'b@b.com',
name: 'b',
surname: 'b',
'29_07_2022': 'YES',
'01_08_2022': 'YES',
'11_11_2022': 'YES'
},
{
user: 'c@c.com',
name: 'c',
surname: 'c',
'29_07_2022': 'YES',
... | [
{
"answer_id": 74496083,
"author": "Pompedup",
"author_id": 12239272,
"author_profile": "https://Stackoverflow.com/users/12239272",
"pm_score": 2,
"selected": true,
"text": "const arr = [\n {\n user: 'b@b.com',\n name: 'b',\n surname: 'b',\n '29_07_2022': 'YES',\n '01_08_... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74495991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543369/"
] |
74,496,075 | <p>I am designing an admin dashboard. I thought of dividing the page into two parts by using the bootstrap grid system. One part (the 3/12 of the screen) includes a nav and that is OK but I want to put some content into the 9/12 of the screen and for some reason it is also appearing in the nav. I want the text "br... | [
{
"answer_id": 74496138,
"author": "MeL",
"author_id": 13290801,
"author_profile": "https://Stackoverflow.com/users/13290801",
"pm_score": 1,
"selected": false,
"text": "div row div <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-sm-3 col... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543575/"
] |
74,496,082 | <p>Let</p>
<pre><code>A=[x1,x2,x3,y1,y2,y3,y4]
</code></pre>
<p>I want to replace everything after <code>y1</code> in the arrays <code>A</code>:</p>
<pre><code>A=[x1,x2,x3,y1,y1,y1,y1]
</code></pre>
<p>I tried</p>
<pre><code>for i in eachindex(A)
if A[i]==y1
for j in i:length(A)
A[j]=y1
end
en... | [
{
"answer_id": 74496209,
"author": "Bogumił Kamiński",
"author_id": 1269567,
"author_profile": "https://Stackoverflow.com/users/1269567",
"pm_score": 2,
"selected": false,
"text": "y1 1 julia> A = [5, 4, 3, 1, 2, 7, 8]\n7-element Vector{Int64}:\n 5\n 4\n 3\n 1\n 2\n 7\n 8\n\njulia> loc =... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9326210/"
] |
74,496,084 | <p>I want to calculate the total sum of Salary by personalId.</p>
<p>My map is of type <code>Map<String, List<Employee>></code>. Where employee <code>id</code> is used a Key, while value is a list of employee instances having the same <code>id</code>.</p>
<p>Here is the list of map shown below</p>
<pre><co... | [
{
"answer_id": 74496342,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "SalaryDto public class SalaryAccumulator implements Consumer<Employee> {\n private String id;\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5719229/"
] |
74,496,093 | <p>my question is about applying a complicated function to every row of a table.</p>
<p>I'm trying to find the traveling time and route of some pairs of points using the osrm package in r (<a href="https://cran.r-project.org/web/packages/osrm/osrm.pdf" rel="nofollow noreferrer">https://cran.r-project.org/web/packages/o... | [
{
"answer_id": 74496413,
"author": "Martin Gal",
"author_id": 12505251,
"author_profile": "https://Stackoverflow.com/users/12505251",
"pm_score": 1,
"selected": true,
"text": "biroute <- function(geofile) {\n osrmRoute(src = geofile[c('longitude_o', 'latitude_o')],\n dst = ge... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18201364/"
] |
74,496,094 | <p>I want to validate if the fields of all inputs in a form are not empty, currently I'm doing that like so:</p>
<pre class="lang-js prettyprint-override"><code>const handleSubmit = (e) => {
if (!formCompra.input1|| !formCompra.input2|| !restForm.input3||
!restForm.input4|| !restForm.input5) {
alert('... | [
{
"answer_id": 74496413,
"author": "Martin Gal",
"author_id": 12505251,
"author_profile": "https://Stackoverflow.com/users/12505251",
"pm_score": 1,
"selected": true,
"text": "biroute <- function(geofile) {\n osrmRoute(src = geofile[c('longitude_o', 'latitude_o')],\n dst = ge... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17668614/"
] |
74,496,118 | <p>I have mass spec data that I need help annotating. I have two files loaded. File1 has two columns (mz, intensity) and File2 has two as well (mz, name). In both files, all of the columns are numeric values, except for name that's characters. I need to take the mz value in File1 and match against the mz values in Fi... | [
{
"answer_id": 74496243,
"author": "Pariksheet Nanda",
"author_id": 10602009,
"author_profile": "https://Stackoverflow.com/users/10602009",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\n\n## The example data.\nfile1 <- tibble::tribble(\n ~mz, ~intensity,\n 100.1234, 1234,\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543491/"
] |
74,496,131 | <p>When I run <code>git push</code> on a repository that I own I get prompted for username and password.</p>
<pre><code>╭─austin@Austins-MacBook-Pro.local ~/workspace/blah
╰─➤ git push
Username for 'https://github.com/acarrillo2/dotfiles.git': acarrillo2
Password for 'https://acarrillo2@github.com/acarrillo2/dotfiles.... | [
{
"answer_id": 74496505,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 0,
"selected": false,
"text": "git config --global credential.helper"
},
{
"answer_id": 74496911,
"author": "bk2204",
"author_id": 8705432,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328372/"
] |
74,496,200 | <p>In a simple Program in <code>BugTest.py</code>:</p>
<pre><code>from BugTest import *
print("Hello World")
</code></pre>
<p><strong>note my error in importing BugTest.py from BugTest.py</strong></p>
<p>Here is the output:</p>
<pre><code>Hello World
Hello World
</code></pre>
<p>My question is: <strong>Why d... | [
{
"answer_id": 74496228,
"author": "J_H",
"author_id": 8431111,
"author_profile": "https://Stackoverflow.com/users/8431111",
"pm_score": 2,
"selected": false,
"text": "$ python BugTest.py\n import print print() import import x x import x"
},
{
"answer_id": 74496254,
"author":... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9053474/"
] |
74,496,229 | <p>How do I validate a radio button? I want to make it so that if the user left the radio button unclicked the section background will turn a red colour/color.</p>
<p>Here is the HTML Page</p>
<pre><code><p id="caption_project">Project Selection
<br/>
<input type="radio" name=... | [
{
"answer_id": 74496265,
"author": "Georgemff",
"author_id": 9716786,
"author_profile": "https://Stackoverflow.com/users/9716786",
"pm_score": -1,
"selected": false,
"text": "document.querySelector(\"input[name='f__project']:checked\")\n"
},
{
"answer_id": 74496282,
"author":... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20401157/"
] |
74,496,233 | <p>This is what my sheet looks like:</p>
<p><a href="https://i.stack.imgur.com/ZfwqC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZfwqC.png" alt="enter image description here" /></a></p>
<p>(I got the code from online somewhere & just been adjust what I know)</p>
<p>I Currently have 10 rows wi... | [
{
"answer_id": 74496265,
"author": "Georgemff",
"author_id": 9716786,
"author_profile": "https://Stackoverflow.com/users/9716786",
"pm_score": -1,
"selected": false,
"text": "document.querySelector(\"input[name='f__project']:checked\")\n"
},
{
"answer_id": 74496282,
"author":... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543515/"
] |
74,496,239 | <p>We can use the new <a href="https://learn.microsoft.com/en-us/dotnet/api/system.numerics.inumber-1?view=net-7.0" rel="nofollow noreferrer"><code>INumber<TSelf></code> interface</a> in .NET 7 to reference any numeric type, like the following:</p>
<pre class="lang-cs prettyprint-override"><code>using System.Nume... | [
{
"answer_id": 74496397,
"author": "NineBerry",
"author_id": 101087,
"author_profile": "https://Stackoverflow.com/users/101087",
"pm_score": 2,
"selected": false,
"text": "INumber<TSelf> public interface INumber<TSelf> : \n IComparable, \n IComparable<TSelf>, \n IEquatable<TSelf... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10507708/"
] |
74,496,251 | <p>i want to send a notification to (Segments) target like ["Active Users"] with parameter "included_segments" but When i call the API using CURL in PHP i get this Error : (Please include a case-sensitive header of Authorization: Basic or Bearer token="" with a valid REST API key.).</p>
<p... | [
{
"answer_id": 74496397,
"author": "NineBerry",
"author_id": 101087,
"author_profile": "https://Stackoverflow.com/users/101087",
"pm_score": 2,
"selected": false,
"text": "INumber<TSelf> public interface INumber<TSelf> : \n IComparable, \n IComparable<TSelf>, \n IEquatable<TSelf... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12735241/"
] |
74,496,273 | <p>I need to define a recursive function that takes two parameters (a list with names and an initial), and returns a new list with all the names that start with the initial.</p>
<p>Right now I have got this code, and i don't know why it doesn't work:</p>
<pre><code>def filter_names(names, initial):
result = []
... | [
{
"answer_id": 74496319,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 1,
"selected": false,
"text": "result def filter_names(names, initial):\n if not names:\n return []\n return (\n [names[0]] if ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543787/"
] |
74,496,275 | <p>I want to change my document direction and language but don't want to do that with js. how can I do that?</p>
<p>Is there any config for that?
how set document direction to RTL?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre clas... | [
{
"answer_id": 74496642,
"author": "Mises",
"author_id": 6310260,
"author_profile": "https://Stackoverflow.com/users/6310260",
"pm_score": 0,
"selected": false,
"text": "@vueuse/head useHead({\n htmlAttrs: { dir: 'rtl', lang: 'fa' },\n})\n"
},
{
"answer_id": 74497201,
"aut... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17023430/"
] |
74,496,322 | <p>I am new to stackoverflow so I am sorry if this question has been answered, what did find just led to more confusion. Been at this for hours.</p>
<p>My issue is when I try to add multiple keys with the same value, I only get the last key and value to store inside of the object. I used if/else statements to try and ... | [
{
"answer_id": 74496642,
"author": "Mises",
"author_id": 6310260,
"author_profile": "https://Stackoverflow.com/users/6310260",
"pm_score": 0,
"selected": false,
"text": "@vueuse/head useHead({\n htmlAttrs: { dir: 'rtl', lang: 'fa' },\n})\n"
},
{
"answer_id": 74497201,
"aut... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13967544/"
] |
74,496,333 | <p>I'm just starting to explore the <a href="https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsGet" rel="nofollow noreferrer">Databricks API</a>. I've created a <code>.netrc</code> file as described in <a href="https://docs.databricks.com/dev-tools/api/latest/authentication.html#netrc" rel="nofol... | [
{
"answer_id": 74501137,
"author": "Alex Ott",
"author_id": 18627,
"author_profile": "https://Stackoverflow.com/users/18627",
"pm_score": 2,
"selected": true,
"text": "395565384955064 / get /api/2.0/jobs/get?job_id=<job-ID>"
},
{
"answer_id": 74505820,
"author": "Karthikeyan ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6629280/"
] |
74,496,402 | <p><strong>Hi there!</strong> </p>
<p>So i had this figured out some years back, but i cant seem to find the tutorial again or any backup.</p>
<p>Basically it was a simple login form that sends the user to a specified URL if the text is correct.</p>
<p>Something like <strong>if input type text is "custom text"... | [
{
"answer_id": 74496520,
"author": "XIz",
"author_id": 20543055,
"author_profile": "https://Stackoverflow.com/users/20543055",
"pm_score": -1,
"selected": false,
"text": "<a>"
},
{
"answer_id": 74496660,
"author": "Psychzor",
"author_id": 20543858,
"author_profile": "... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543858/"
] |
74,496,411 | <p><strong>Context:</strong><br />
When running a regex match in Perl, <code>$1</code>, <code>$2</code> can be used as references to captured regex references from the match, similarly in Python <code>\g<0></code>,<code>\g<1></code> can be used</p>
<p>Perl also has a <code>$+</code> special reference which ... | [
{
"answer_id": 74496750,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 2,
"selected": false,
"text": "(foo|bar|baz)\n None import re\ns = 'bar4'\nm = re.search( r'foo([12])|bar([34])|baz([56])', s )\n[ g for g in m.group... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9839769/"
] |
74,496,425 | <p><strong>Edit: 2022NOV21</strong></p>
<p>How do we chain <code>df.col.str.split()</code> since this returns the split columns if expand = True
I am trying to split a column after performing <code>.melt()</code>. If I use assign I end up using the original column and the melted column actually does not even exist.</p>... | [
{
"answer_id": 74496468,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 0,
"selected": false,
"text": "[0] .str [0] df=pd.DataFrame({'s':['abc-def|ghi', 'one-two|three']})\ndf.s.str.split('-').str[0]\n#0 abc\n#1 ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6884883/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.