qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,432,148 | <p>Can somebody explain to me what's the difference between the variables in <code>:root</code> and the variables above it please?</p>
<p>Why can't we just use one syntax (either with <code>&</code> or <code>--</code>) or just put the <code>$primary</code> and <code>$secondary</code> in <code>:root{...}</code> ?</p... | [
{
"answer_id": 74432397,
"author": "Jaswinder Kaur",
"author_id": 15258737,
"author_profile": "https://Stackoverflow.com/users/15258737",
"pm_score": 2,
"selected": true,
"text": "ss-go-top {\n z-index: 2;\n opacity: 0;\n border: 2px;\n border-style: solid;\n border-radius: 50%;\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18631280/"
] |
74,432,192 | <p>I have two buttons validate and notify as shown in the below image in XML.</p>
<p><a href="https://i.stack.imgur.com/eVjcj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eVjcj.png" alt="enter image description here" /></a></p>
<p>I want to show validate button below notify button programmatically. as show... | [
{
"answer_id": 74432397,
"author": "Jaswinder Kaur",
"author_id": 15258737,
"author_profile": "https://Stackoverflow.com/users/15258737",
"pm_score": 2,
"selected": true,
"text": "ss-go-top {\n z-index: 2;\n opacity: 0;\n border: 2px;\n border-style: solid;\n border-radius: 50%;\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20500768/"
] |
74,432,275 | <p>I am trying to deploy cloudformation stack into a cross-account account. However, when i am deploying the cloudfromation.yml file i am getting the following below error. I have even tried using cloudformation.yaml but same error.</p>
<p>However, when i try to create S3 bucket, the bucket is created without any probl... | [
{
"answer_id": 74441141,
"author": "user11666461",
"author_id": 11666461,
"author_profile": "https://Stackoverflow.com/users/11666461",
"pm_score": 2,
"selected": true,
"text": "AWS::Serverless::Function CodeUri 's3://testBucket/mySourceCode.zip' cloudformation deploy"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14570179/"
] |
74,432,287 | <p>I have a dataset which is similar to below one. Please note that there are multiple values for a single ID.</p>
<pre><code>import pandas as pd
import numpy as np
import random
df = pd.DataFrame({'DATE_TIME':pd.date_range('2022-11-01', '2022-11-05 23:00:00',freq='h'),
'SBP':[random.uniform(110, 16... | [
{
"answer_id": 74441141,
"author": "user11666461",
"author_id": 11666461,
"author_profile": "https://Stackoverflow.com/users/11666461",
"pm_score": 2,
"selected": true,
"text": "AWS::Serverless::Function CodeUri 's3://testBucket/mySourceCode.zip' cloudformation deploy"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19948301/"
] |
74,432,313 | <p>I'm fairly new to custom form controls in Angular and have been struggling with setting required fields while using a mat-stepper. I am trying to make a reusable address template. I've set required in both HTML and Ts but when I click on the <code>next</code> button it moves to the next stepper. Any suggestions woul... | [
{
"answer_id": 74441141,
"author": "user11666461",
"author_id": 11666461,
"author_profile": "https://Stackoverflow.com/users/11666461",
"pm_score": 2,
"selected": true,
"text": "AWS::Serverless::Function CodeUri 's3://testBucket/mySourceCode.zip' cloudformation deploy"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20041772/"
] |
74,432,330 | <p>I have a customized Hook to change the state of the of a use state variable from true to false, and i want to change it on the onclick of a button to show and hide a div, how can this be done?</p>
<pre><code>import { useEffect, useState } from 'react';
export const useOpenFiltersHook = (): boolean => {
const [... | [
{
"answer_id": 74432409,
"author": "Markus",
"author_id": 321492,
"author_profile": "https://Stackoverflow.com/users/321492",
"pm_score": 0,
"selected": false,
"text": "setShowFilter onClick"
},
{
"answer_id": 74432420,
"author": "Bikas Lin",
"author_id": 17582798,
"a... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18892774/"
] |
74,432,359 | <p>I have an JaxRS API like this :</p>
<pre><code>@GET
@Path("list")
public Response list(@QueryParam("id") Long id) {
...
}
</code></pre>
<p>How can i handle exception when send non digits parameter as id ?<br />
actually i can not found any validation annotation on JakartaEE framework for handle ... | [
{
"answer_id": 74432409,
"author": "Markus",
"author_id": 321492,
"author_profile": "https://Stackoverflow.com/users/321492",
"pm_score": 0,
"selected": false,
"text": "setShowFilter onClick"
},
{
"answer_id": 74432420,
"author": "Bikas Lin",
"author_id": 17582798,
"a... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1319938/"
] |
74,432,370 | <p>I have my data:</p>
<pre class="lang-r prettyprint-override"><code>x <- list(10,50,100,250,500,2500)
y <- list(0.09090909,0.01960784,0.003984064,0.003984064,0.001996008,0.0003998401)
</code></pre>
<p>I want to link my data to code found on this website</p>
<pre class="lang-r prettyprint-override"><code>log_c ... | [
{
"answer_id": 74432475,
"author": "Ben Bolker",
"author_id": 190277,
"author_profile": "https://Stackoverflow.com/users/190277",
"pm_score": 3,
"selected": false,
"text": "c() list() df <- data.frame(x=unlist(x), y = unlist(y))\n library(ggplot2)\nggplot(df, aes(x, y)) + geom_line()\n s... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20466352/"
] |
74,432,401 | <p>I have imported a CSV containing dates in the column "Activity_Date_Minute". The date value for example is "04/12/2016 01:12:00". Now when I read the .csv into a dataframe and extract only the date this gives me date in the column as 4-12-20. Can someone help how to get the date in mm-dd-yyyy i... | [
{
"answer_id": 74432607,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 0,
"selected": false,
"text": "Activity_Date_Minute lubridate::mdy_hm() as.Date() library(dplyr)\nlibrary(lubridate)\n\nminutewiseMET_Records %>%... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20068843/"
] |
74,432,429 | <p>I am trying to add some properties to an array of objects inside useEffect but it renders DOM while those fields are still not present. Is there any reliable way how to wait till those properties are added:</p>
<p>useEffect hook look like this:</p>
<pre><code> useEffect(() => {
onSnapshot(query(collection(db... | [
{
"answer_id": 74432605,
"author": "jasjamjos",
"author_id": 11882303,
"author_profile": "https://Stackoverflow.com/users/11882303",
"pm_score": -1,
"selected": false,
"text": "const [loading, setLoading] = useState(false);\n const [conversations,setConversations] = useState(null);\n c... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2313433/"
] |
74,432,455 | <p>I have a list of keywords based on which I want to categorize the job description. Here are example list of keywords</p>
<pre><code>manager = ["manager", "president", "management", "managing"]
assistant = ["assistant", "assisting"]
engineer = ["enginee... | [
{
"answer_id": 74432605,
"author": "jasjamjos",
"author_id": 11882303,
"author_profile": "https://Stackoverflow.com/users/11882303",
"pm_score": -1,
"selected": false,
"text": "const [loading, setLoading] = useState(false);\n const [conversations,setConversations] = useState(null);\n c... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7403752/"
] |
74,432,470 | <p>Recursively implement the function halves that takes two positive integers a and b, and returns a list containing the value a (converted to type float) and all successive halves of a that are greater than b.
I tried like this but it's returning an empty list and I don't understand what's going on:</p>
<pre><code>def... | [
{
"answer_id": 74432574,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 3,
"selected": true,
"text": "def metades(a, b, res = None):\n\n res = res or []\n\n if a <= b: return res\n if a > b:\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491883/"
] |
74,432,476 | <p>I am trying to figure out a formula to find the sum of hours worked for each worker per month and also per project. I am pretty sure the XLOOKUP, AND/IF, and SUBTotal could be useful but I am not exactly sure how to combine it all. Here are the exact data.</p>
<p>Lookup values for each employee (Column A),
Lookup va... | [
{
"answer_id": 74432574,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 3,
"selected": true,
"text": "def metades(a, b, res = None):\n\n res = res or []\n\n if a <= b: return res\n if a > b:\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18223918/"
] |
74,432,479 | <p>I'm having issues with Terraform when wanting to apply changes. Namely, even though the configuration (for launch template and node group) stays the same Terraform wants to change node groups settings because it thinks launch template version has been change.</p>
<p>My node group config looks like this:</p>
<pre><co... | [
{
"answer_id": 74432574,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 3,
"selected": true,
"text": "def metades(a, b, res = None):\n\n res = res or []\n\n if a <= b: return res\n if a > b:\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9223556/"
] |
74,432,498 | <p>There's an input element in my page, and I use the input to add new items to the page. I want the focus to be always in the input element, so I can type => press enter to add => type another ...</p>
<p>However, the page rerenders everytime the new item got added.</p>
<p>I've tried</p>
<pre class="lang-js prett... | [
{
"answer_id": 74432574,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 3,
"selected": true,
"text": "def metades(a, b, res = None):\n\n res = res or []\n\n if a <= b: return res\n if a > b:\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4971866/"
] |
74,432,527 | <p>I'm using janusgraph with AWSKeyspace (cassandra) and elasticsearch as the storage and indexing backends respectively.
I have a requirement to delete all the edges older than 30days. Setting a TTL on edge property doesn't work as expected(error below).</p>
<pre><code>ERROR org.apache.tinkerpop.gremlin.jsr223.Default... | [
{
"answer_id": 74432574,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 3,
"selected": true,
"text": "def metades(a, b, res = None):\n\n res = res or []\n\n if a <= b: return res\n if a > b:\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/377902/"
] |
74,432,540 | <p>i got this code that take webhook message but i dont understand the pattern matching behind it</p>
<pre><code>function getContent(link)
cmd = io.popen('powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Write-Host (Invoke-WebRequest -Uri "'..link..'&qu... | [
{
"answer_id": 74432769,
"author": "Ivo",
"author_id": 1514861,
"author_profile": "https://Stackoverflow.com/users/1514861",
"pm_score": -1,
"selected": false,
"text": ". +"
},
{
"answer_id": 74432900,
"author": "AMR",
"author_id": 15323004,
"author_profile": "https:/... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20215528/"
] |
74,432,541 | <p>i'am using “storms” tibble in dplyr package,in R
i want to know</p>
<ol>
<li>if there are storms that occur in different years but given the same name?</li>
<li>if any Which storm names, were reused in which years?</li>
</ol>
<p>for example:</p>
<pre><code>name year
-------- -----------
Alberto ... | [
{
"answer_id": 74432588,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 0,
"selected": false,
"text": "dplyr::storms %>%\n count(name, year) %>% \n arrange(name)\n\n# A tibble: 512 x 3\n name year n\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501128/"
] |
74,432,546 | <p>I am currently trying to run an excel function that runs the logic that if the cell that has date X is greater than date 2023-01-01 then run an XLookup function. If it is not then do not run it.</p>
<p>Here's what I tried below:</p>
<pre><code>=IF(table2!N5>DATE(2023,1,1),XLOOKUP(A2,'Table2'!A:A,'Table2'!B:B),&qu... | [
{
"answer_id": 74432588,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 0,
"selected": false,
"text": "dplyr::storms %>%\n count(name, year) %>% \n arrange(name)\n\n# A tibble: 512 x 3\n name year n\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17346534/"
] |
74,432,554 | <pre><code> return Scaffold(
body: Container(
height: MediaQuery.of(context).size.height,
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(top: 50),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
... | [
{
"answer_id": 74432609,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 0,
"selected": false,
"text": "Scaffold resizeToAvoidBottomInset: false,\n"
},
{
"answer_id": 74432613,
"author": "manhtuan21",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17906689/"
] |
74,432,583 | <pre><code>vc = bot.get_channel(ctx.author.voice.channel.id)
await vc.connect()
await vc.play(discord.FFmpegPCMAudio(executable="ffmpeg.exe", source="assets/a.mp3"))
</code></pre>
<p>This code was working like 3 months ago, and now it doesn't because voice channel object (vc) has no attribute play. ... | [
{
"answer_id": 74433475,
"author": "mousetail",
"author_id": 6333444,
"author_profile": "https://Stackoverflow.com/users/6333444",
"pm_score": 1,
"selected": true,
"text": "AttributeError VoiceChannel play play() VoiceClient VoiceClient VoiceChannel.connect() await vc.connect()\n connect... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19926187/"
] |
74,432,602 | <p>I have a few elements inside this kind of tag as below:</p>
<p><a href="https://i.stack.imgur.com/dNj55.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>How do I locate these kinds of elements</p>
<p>I tried to locate the foresaid element, which the Selenium C# is not working</p>
| [
{
"answer_id": 74432660,
"author": "Mark Barton",
"author_id": 4357444,
"author_profile": "https://Stackoverflow.com/users/4357444",
"pm_score": 0,
"selected": false,
"text": "var driver = //whatever your driver is;\n\ndriver.FindElement(By.Id(\"element-id-goes-here\"));\n\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9168223/"
] |
74,432,603 | <p>I need to find relative paths of folders and its files with length in MB in separate csv columns and compare that csv file with another csv file and print unmatched filepaths with length in another csv in absolute path</p>
<pre><code>$srcpth = "C:\Users\vavenkatamanoj\Downloads"
$files = Get-ChildItem -Pat... | [
{
"answer_id": 74432660,
"author": "Mark Barton",
"author_id": 4357444,
"author_profile": "https://Stackoverflow.com/users/4357444",
"pm_score": 0,
"selected": false,
"text": "var driver = //whatever your driver is;\n\ndriver.FindElement(By.Id(\"element-id-goes-here\"));\n\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,432,628 | <p>I'm trying to solve MIP problem with IBM ILOG CPLEX Optimization studio. All the parameters have been defined. I want to save the output from the first iteration and use this output as input for the next iteration and change some data too. I have 14 iterations and the mod file is fixed in each iteration.
could you h... | [
{
"answer_id": 74432660,
"author": "Mark Barton",
"author_id": 4357444,
"author_profile": "https://Stackoverflow.com/users/4357444",
"pm_score": 0,
"selected": false,
"text": "var driver = //whatever your driver is;\n\ndriver.FindElement(By.Id(\"element-id-goes-here\"));\n\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501040/"
] |
74,432,650 | <p>I am trying to install the compiled firmware for a microprocessor in my yocto image. This firmware is sent to a microprocessor on startup. The compiler for this firmware only runs on windows, therefore it is not possible to just clone the git repository and compile during build. I get this firmware file from the art... | [
{
"answer_id": 74432660,
"author": "Mark Barton",
"author_id": 4357444,
"author_profile": "https://Stackoverflow.com/users/4357444",
"pm_score": 0,
"selected": false,
"text": "var driver = //whatever your driver is;\n\ndriver.FindElement(By.Id(\"element-id-goes-here\"));\n\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14906662/"
] |
74,432,682 | <p>I'm in the process of changing what was formerly a Class into a Struct, as part of an editor patch within Unity. I've read a lot of advice on using structs being "Don't allow mutable structs", due to poor copy behaviour resulting in modified copies, and being hard to track. As I understand, a result of bei... | [
{
"answer_id": 74432660,
"author": "Mark Barton",
"author_id": 4357444,
"author_profile": "https://Stackoverflow.com/users/4357444",
"pm_score": 0,
"selected": false,
"text": "var driver = //whatever your driver is;\n\ndriver.FindElement(By.Id(\"element-id-goes-here\"));\n\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10964168/"
] |
74,432,685 | <p>this the forth project from the odin project, all tests passed but the fifth one which required removing all elements failed and when i run the code it returns an array with half elements in original array before mutating.</p>
<p>**I don't know why IT DOESN'T RETURN AN EMPTY ARRAY. ** in the fifth test.</p>
<pre><co... | [
{
"answer_id": 74432826,
"author": "Dawid .T",
"author_id": 10771724,
"author_profile": "https://Stackoverflow.com/users/10771724",
"pm_score": 1,
"selected": true,
"text": "for deleteElement.length array.length const removeFromArray = function(array, ...deleteElement) {\n for (let i = ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18390247/"
] |
74,432,707 | <pre class="lang-py prettyprint-override"><code>def check_22(num_list):
for i in range(0, len(num_list)-1):
if num_list[i] == 2 and num_list[i+1] == 2:
return True
else:
return False
print(check_22([3,2,5,1,2,1,2,2]))
</code></pre>
<p>How come the output is <code>Fal... | [
{
"answer_id": 74432736,
"author": "dkalouris",
"author_id": 20488115,
"author_profile": "https://Stackoverflow.com/users/20488115",
"pm_score": 0,
"selected": false,
"text": "for i in range(0,len(num_list)-1): \n if num_list[i]==2 and num_list[i+1]==2: \n return True\nreturn False\n"
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501258/"
] |
74,432,719 | <p>I want to make a pyramid of a string for an exercise.
I just don't know how to do it.
For example:</p>
<pre><code>string = "these***are***just***random***words*"
</code></pre>
<p>and the pyramid I want to make is:</p>
<pre><code> t
hes
e***a
re***ju
st***rand
om***word... | [
{
"answer_id": 74433125,
"author": "Alex P",
"author_id": 11554968,
"author_profile": "https://Stackoverflow.com/users/11554968",
"pm_score": 0,
"selected": false,
"text": "l l[0:1] l[1:4] l[4:9] l[9:16] i i+1 l[i**2:(i+1)**2] i def draw_pyramid(string, size):\n if size > 15:\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17997138/"
] |
74,432,785 | <h1>Problem description</h1>
<p>I am trying to write a math test for my little son.
Such test must generate a list of random algebraic expressions according to certain rules and check the correctness of solution.</p>
<p>In particular, I want to generate expressions consisting strictly of a given number of operators tha... | [
{
"answer_id": 74433150,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 2,
"selected": true,
"text": "size size==0 size-1 leftSize rightSize private Expression build(int size){\n if (size == 0) return buildLeaf()... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13797513/"
] |
74,432,821 | <p>when i press login ,it triggered this body file,but it only show background png. It's not showing content of body file.</p>
<p>background.dart</p>
<pre><code>class Login_Background extends StatelessWidget {
const Login_Background({required this.size, required Column child});
final Size size;
@override
Widg... | [
{
"answer_id": 74432972,
"author": "Rahul",
"author_id": 16569443,
"author_profile": "https://Stackoverflow.com/users/16569443",
"pm_score": 0,
"selected": false,
"text": "child"
},
{
"answer_id": 74432977,
"author": "manhtuan21",
"author_id": 8921450,
"author_profile... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15554800/"
] |
74,432,834 | <p>I have this string:</p>
<pre><code>'/api/media-objects/e78c7cfa-e469-4edd-8a87-9517a5b9e5da'
</code></pre>
<p>I want to return only the id ('<strong>e78c7cfa-e469-4edd-8a87-9517a5b9e5da</strong>') after the last '<strong>/</strong>'. The id changes everytime I make an API call. How can I do that using any String fun... | [
{
"answer_id": 74432972,
"author": "Rahul",
"author_id": 16569443,
"author_profile": "https://Stackoverflow.com/users/16569443",
"pm_score": 0,
"selected": false,
"text": "child"
},
{
"answer_id": 74432977,
"author": "manhtuan21",
"author_id": 8921450,
"author_profile... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15611096/"
] |
74,432,838 | <p>So I'm trying to select 3 divs in my parent element. With my current code the result is I get 162 nodeLists back, instead of just the 3 main divs in that parent element.</p>
<p>The page code looks like this (simplified):</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fal... | [
{
"answer_id": 74432972,
"author": "Rahul",
"author_id": 16569443,
"author_profile": "https://Stackoverflow.com/users/16569443",
"pm_score": 0,
"selected": false,
"text": "child"
},
{
"answer_id": 74432977,
"author": "manhtuan21",
"author_id": 8921450,
"author_profile... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18371936/"
] |
74,432,847 | <p>I'm trying to write a Table-valued function in oracle, which contains a CTE.
I've been able to do it in SQL Server in this way:</p>
<pre><code>ALTER FUNCTION [dbo].[region_parents]
(
@regionId INT
)
RETURNS TABLE
AS
RETURN
(
WITH cte AS
(
SELECT id, owne... | [
{
"answer_id": 74433174,
"author": "Alex Poole",
"author_id": 266304,
"author_profile": "https://Stackoverflow.com/users/266304",
"pm_score": 1,
"selected": false,
"text": " SELECT TABLE_RES(id)\n BULK COLLECT INTO cteresult\n FROM cte;\n SELECT TABLE_RES_OBJ(id)\n BULK C... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16813519/"
] |
74,432,848 | <p>I am trying to use HttpContextAccessor on my custom class(BLL class) and while i succesfully initializes the ContextAccessor meantime HttpContext itself is null.</p>
<p>Code in program.cs</p>
<pre><code>builder.Services.AddSingleton<IUserPermissionConfig, UserPermisionConfig>();
builder.Services.AddHttpConte... | [
{
"answer_id": 74433238,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 0,
"selected": false,
"text": "Program.cs IUserPermissionConfig"
},
{
"answer_id": 74441147,
"author": "Ruikai Feng",
"autho... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7398819/"
] |
74,432,872 | <p>What is the recommended way to define <code>KafkaTemplate</code> when there are several different types of messages to send? Use just one <code>KafkaTemplate</code> for all messages (with <code>Object</code>) or define each <code>KafkaTemplate</code> for every type of messages?</p>
<p>One template <code>KafkaTemplat... | [
{
"answer_id": 74433238,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 0,
"selected": false,
"text": "Program.cs IUserPermissionConfig"
},
{
"answer_id": 74441147,
"author": "Ruikai Feng",
"autho... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4003272/"
] |
74,432,955 | <p>I created a checkbox treeview with ttkwidgets. I want these checkboxes to be "checked" by default. How can I do that.</p>
<pre class="lang-Python prettyprint-override"><code>from tkinter import *
from ttkwidgets import CheckboxTreeview
import tkinter as tk
root = tk.Tk()
tree = CheckboxTreeview(r... | [
{
"answer_id": 74433238,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 0,
"selected": false,
"text": "Program.cs IUserPermissionConfig"
},
{
"answer_id": 74441147,
"author": "Ruikai Feng",
"autho... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18071313/"
] |
74,432,969 | <pre><code>import java.io.*;
import java.util.*;
public class Planets
{
public static void main(String[] args) throws IOException
{
Scanner in;
in = new Scanner(System.in);
boolean runAgain = true;
System.out.println("Starting program...\n\n");
doubl... | [
{
"answer_id": 74433238,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 0,
"selected": false,
"text": "Program.cs IUserPermissionConfig"
},
{
"answer_id": 74441147,
"author": "Ruikai Feng",
"autho... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451609/"
] |
74,432,999 | <p>I am trying to run a command that recognizes if the user is root or not, then run a script with parameters, and check the results. The problem is bash wont let me do it with <code>runuser</code>.</p>
<pre><code>#!/bin/bash
check_other_script(){
user=mruser
bin_dir=/home/$user/bin
script_name... | [
{
"answer_id": 74433264,
"author": "Arnaud Valmary",
"author_id": 6255757,
"author_profile": "https://Stackoverflow.com/users/6255757",
"pm_score": 1,
"selected": false,
"text": "...\nsub_cmd=\"ls -l \\\"xxxx\\\"\"\n...\ndeclare -a cmd=(\"runuser\" \"-l\" \"$user\" \"-c\" \"$sub_cmd\")\n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74432999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7211014/"
] |
74,433,000 | <p>I'm having an issue retrieving the MAX number from database.
The catch is that the numbers are in string format since they contain an underscore.</p>
<p>Example case:
I have 3 numbers in the database:</p>
<p>123456_1,
123456_2,
123456_13,</p>
<p>The MAX number I would like to fetch is 123456_13 (basically the bigges... | [
{
"answer_id": 74433264,
"author": "Arnaud Valmary",
"author_id": 6255757,
"author_profile": "https://Stackoverflow.com/users/6255757",
"pm_score": 1,
"selected": false,
"text": "...\nsub_cmd=\"ls -l \\\"xxxx\\\"\"\n...\ndeclare -a cmd=(\"runuser\" \"-l\" \"$user\" \"-c\" \"$sub_cmd\")\n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14619427/"
] |
74,433,007 | <p>I would like that the code below show an alert when an input email contains both "<code>@</code>" and "<code>.com</code>" when the submit button is clicked.</p>
<p>Currently, the alert is not showing up. Not sure whether the error has to do with the submit button or not.</p>
<p><div class="snippe... | [
{
"answer_id": 74433180,
"author": "GeirR",
"author_id": 2477938,
"author_profile": "https://Stackoverflow.com/users/2477938",
"pm_score": -1,
"selected": false,
"text": "<input type=\"email\" placeholder=\"Your email\" id=\"e\">\n<input type=\"submit\" id=\"s\" onClick=\"myFunction()\"\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11185390/"
] |
74,433,008 | <p>I have hourly data on electricity consumption for a specific day. I would like to use this data to "predict" the hourly electricity consumption for the following days. The value for the following day should be the value from the same hour the day before, multiplied by a scaling factor <code>f</code> (e.g. ... | [
{
"answer_id": 74433180,
"author": "GeirR",
"author_id": 2477938,
"author_profile": "https://Stackoverflow.com/users/2477938",
"pm_score": -1,
"selected": false,
"text": "<input type=\"email\" placeholder=\"Your email\" id=\"e\">\n<input type=\"submit\" id=\"s\" onClick=\"myFunction()\"\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14490607/"
] |
74,433,052 | <p>We have a camera that streams RAW8 video at 1920x1080. The GUID used is GREY. We are able to stream video from this camera using ffmpeg on Windows with the below command:</p>
<pre><code>ffmpeg -f dshow -pix_fmt gray -video_size 1920x1080 -i video="CAM0" -f nut - | ffplay -
</code></pre>
<p>We are now tryin... | [
{
"answer_id": 74433662,
"author": "kesh",
"author_id": 4516027,
"author_profile": "https://Stackoverflow.com/users/4516027",
"pm_score": 0,
"selected": false,
"text": "'rawvide' -i ffmpegio import ffmpegio\n\nshow_log = True\n\n# if you have to record for a fixed duration \nt_record = 5... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13250657/"
] |
74,433,057 | <p>I'm trying to create a vertical line using CSS that contains multiple dots. However, I'm not quite sure how to do that.</p>
<p>Could anyone help me out with this?</p>
<p>I want to create something just like this one here.</p>
<p><a href="https://i.stack.imgur.com/itDPc.png" rel="nofollow noreferrer"><img src="https:... | [
{
"answer_id": 74433705,
"author": "Ponsiva",
"author_id": 9936892,
"author_profile": "https://Stackoverflow.com/users/9936892",
"pm_score": 3,
"selected": true,
"text": "vertical wizard ul {\n list-style: none;\n margin: 0;\n padding: 0;\n position: relative;\n}\n\nul:before {\n co... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19389593/"
] |
74,433,089 | <p>I have 2 tables from google sheets. df1 where it has the users completion of different modules. And df2 that consists of user details.</p>
<p>df1:</p>
<p><img src="https://i.stack.imgur.com/mUogD.png" alt="df1" /></p>
<p>df2:</p>
<p><img src="https://i.stack.imgur.com/a7OE7.png" alt="df2" /></p>
<p>I want to merge t... | [
{
"answer_id": 74433705,
"author": "Ponsiva",
"author_id": 9936892,
"author_profile": "https://Stackoverflow.com/users/9936892",
"pm_score": 3,
"selected": true,
"text": "vertical wizard ul {\n list-style: none;\n margin: 0;\n padding: 0;\n position: relative;\n}\n\nul:before {\n co... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13365777/"
] |
74,433,103 | <p>I'm unable to display a Shiny reactive DT within the tabPanel. May I know where the bug is?</p>
<p>The dataset is from Hong Kong Government. It is about the departure / arrival population from various control points since 2021: <a href="https://www.immd.gov.hk/opendata/eng/transport/immigration_clearance/statistics_... | [
{
"answer_id": 74433705,
"author": "Ponsiva",
"author_id": 9936892,
"author_profile": "https://Stackoverflow.com/users/9936892",
"pm_score": 3,
"selected": true,
"text": "vertical wizard ul {\n list-style: none;\n margin: 0;\n padding: 0;\n position: relative;\n}\n\nul:before {\n co... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4225430/"
] |
74,433,120 | <p>I have been reading about RDD's a lot but something that I don't quite understand how is RDD distributed when there is no replication in Apache spark?</p>
<p>The post[1] says that</p>
<blockquote>
<p>To achieve Spark fault tolerance for all the RDDs, the entire data is
copied across multiple nodes in the cluster.</p... | [
{
"answer_id": 74433705,
"author": "Ponsiva",
"author_id": 9936892,
"author_profile": "https://Stackoverflow.com/users/9936892",
"pm_score": 3,
"selected": true,
"text": "vertical wizard ul {\n list-style: none;\n margin: 0;\n padding: 0;\n position: relative;\n}\n\nul:before {\n co... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15074748/"
] |
74,433,147 | <p>I have a c program:</p>
<pre><code>#include<stdio.h>
long fibo(int n);
int main(void)
{
int input = 0;
printf("Enter your number: ");
scanf("%i", &input);
/*check buffer*/
if (getchar() != '\n' || input <= 0)
{
... | [
{
"answer_id": 74433705,
"author": "Ponsiva",
"author_id": 9936892,
"author_profile": "https://Stackoverflow.com/users/9936892",
"pm_score": 3,
"selected": true,
"text": "vertical wizard ul {\n list-style: none;\n margin: 0;\n padding: 0;\n position: relative;\n}\n\nul:before {\n co... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19965005/"
] |
74,433,172 | <p>I'm trying to update the state and show shadow in nav if user scrolls but it's not listening to the event. <br/> i'm using nextJS 13 and tailwind css.</p>
<pre><code>const [shadow, setShadow] = useState(false);
useEffect(() => {
const handleShadow = () => {
if (window.scrollY >= 90) {
setShadow... | [
{
"answer_id": 74435317,
"author": "IGnyte",
"author_id": 15370799,
"author_profile": "https://Stackoverflow.com/users/15370799",
"pm_score": 3,
"selected": true,
"text": "handleShadow const [shadow, setShadow] = useState(false);\n\nuseEffect(() => {\n const handleShadow = () => {\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12256795/"
] |
74,433,173 | <p>I have a list:</p>
<pre><code>lst = ['ab', 'cd','ef', 'gh', 'ij', 'mn', 'op', 'qr', 'st', 'uv', 'wx', 'yz']
</code></pre>
<p>I would like to take 2 random values from this list and put them in to a new list as pairs until the original list is empty.</p>
<p>For example:</p>
<p>new_list = [('ab', 'ef'), ('ij', 'yz') e... | [
{
"answer_id": 74433258,
"author": "YOLO",
"author_id": 9299259,
"author_profile": "https://Stackoverflow.com/users/9299259",
"pm_score": -1,
"selected": false,
"text": "np.random.choice new_list = []\n\nwhile lst:\n tmp=np.random.choice(lst, 2).tolist()\n for t in tmp:\n ls... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20223442/"
] |
74,433,194 | <p>I am working with a handful of dataframes whose information I would like to combine.</p>
<pre><code>df1 <- data.frame(id = c(1, 1, 2, 2), year = c(1990, 2000, 1990, 2000))
df1990 <- data.frame(id = c(1, 2), year = c(1990, 1990), X= c(1, 2))
df2000 <- data.frame(id = c(1, 2), year = c(2000, 2000), X= c(1, 2)... | [
{
"answer_id": 74433258,
"author": "YOLO",
"author_id": 9299259,
"author_profile": "https://Stackoverflow.com/users/9299259",
"pm_score": -1,
"selected": false,
"text": "np.random.choice new_list = []\n\nwhile lst:\n tmp=np.random.choice(lst, 2).tolist()\n for t in tmp:\n ls... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11370167/"
] |
74,433,243 | <p>I downloaded ServiceAccountKey.json to make local cloud functions env.
I think ServiceAccountKey.json should not be public and it should not be in GCP.
So when I deploy cloud functions, how do I exclude it?
Or is that no problem to upload ServiceAccountKey.json using <code>firebase deploy --only functions</code>?
P... | [
{
"answer_id": 74433258,
"author": "YOLO",
"author_id": 9299259,
"author_profile": "https://Stackoverflow.com/users/9299259",
"pm_score": -1,
"selected": false,
"text": "np.random.choice new_list = []\n\nwhile lst:\n tmp=np.random.choice(lst, 2).tolist()\n for t in tmp:\n ls... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16375313/"
] |
74,433,246 | <p>I just discovered that iterating the rows of a pandas dataframe, and making updates to each row, does not update the dataframe! Is this expected behaviour, or does one need to do something to the row first so the update reflects in the parent dataframe?</p>
<p>I know one could update the dataframe directly in the lo... | [
{
"answer_id": 74433271,
"author": "Celius Stingher",
"author_id": 11897007,
"author_profile": "https://Stackoverflow.com/users/11897007",
"pm_score": 1,
"selected": false,
"text": "row['Price'] df id(row) == id(df)\n False for loop df['New Price '] = df['Price'] * 2\n"
},
{
"ans... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3210158/"
] |
74,433,255 | <p>I have an HTML input element. I want the element to be in the center, but because the right margin is not working, the element is slightly off to the right. <code>box-sizing: border-box;</code> does not resolve the issue.</p>
<p>My code</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true"... | [
{
"answer_id": 74433395,
"author": "jessica-98",
"author_id": 20261328,
"author_profile": "https://Stackoverflow.com/users/20261328",
"pm_score": 2,
"selected": true,
"text": "body {\n box-sizing: border-box;\n margin: 0;\n padding: 10px;\n font-family: Arial, Helvetica, sans-serif;\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14022782/"
] |
74,433,260 | <p>I have the following script. Its full purpose is to remove cells of columns B,C,D,E,F if the content in column A was deleted, only on the matching row. It functions as it should. However, it is a bit slow.</p>
<p>I couldn't figure out a way to do it myself. Which is why I am here. How could I go about adjusting it, ... | [
{
"answer_id": 74433480,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": " function onEdit(e) {\n if(e.range.columnStart === 1 \n && e.range.rowStart > 1 \n && e.range.getSheet().getName... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19307436/"
] |
74,433,262 | <p>Jquery push and append not working.</p>
<p>I have this code</p>
<pre><code><form action="">
<input type="text" name="text">
<input type="text" name="textw">
<button type="submit" name="submit">submit</button&... | [
{
"answer_id": 74433480,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": " function onEdit(e) {\n if(e.range.columnStart === 1 \n && e.range.rowStart > 1 \n && e.range.getSheet().getName... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19480605/"
] |
74,433,306 | <p>How can I make sure that there is nothing at the end of the last print statement instead of "-"?</p>
<pre><code>for i in range(0, 4,):
print(i, end="-")
print()
for i in range(0, 10, 2):
print(i, end="-")
</code></pre>
| [
{
"answer_id": 74433364,
"author": "AdmiJW",
"author_id": 14033758,
"author_profile": "https://Stackoverflow.com/users/14033758",
"pm_score": 1,
"selected": true,
"text": "sep for i in range(0, 4,):\n print(i, end=\"-\")\nprint()\nfor i in range(0, 10, 2):\n print(i, end=\"-\"\n pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501566/"
] |
74,433,317 | <p>I wanna display certain product when it's clicked on based on their id from django rest framework api.. I was doing that using match from the react-router-dom v5, but I don't know how to accomplish the same thing with match not existing in v6. I looked at the react-router-dom v6 documentation for a clue and i couldn... | [
{
"answer_id": 74433364,
"author": "AdmiJW",
"author_id": 14033758,
"author_profile": "https://Stackoverflow.com/users/14033758",
"pm_score": 1,
"selected": true,
"text": "sep for i in range(0, 4,):\n print(i, end=\"-\")\nprint()\nfor i in range(0, 10, 2):\n print(i, end=\"-\"\n pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19778871/"
] |
74,433,323 | <p>I can't figure out how to decode a JSON to a specific Map.</p>
<p>First of all I have a map that stores the date as the map key, and the value is a list of objects.
I also made custom methods to convert the objects to JSON.
The class model for the list of objects is:</p>
<pre><code>class Task {
late int taskId;
... | [
{
"answer_id": 74433364,
"author": "AdmiJW",
"author_id": 14033758,
"author_profile": "https://Stackoverflow.com/users/14033758",
"pm_score": 1,
"selected": true,
"text": "sep for i in range(0, 4,):\n print(i, end=\"-\")\nprint()\nfor i in range(0, 10, 2):\n print(i, end=\"-\"\n pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20182920/"
] |
74,433,327 | <p>I'm trying to make a program to calculate the surface area of a shack with a pitched roof. I've only been in this class for 2 weeks and I'm a bit overwhelmed. The program should ask the user via console for the values and then calculate the values using the definition.</p>
<p>I'm not asking for the entire code... | [
{
"answer_id": 74433400,
"author": "Mohamed chouai",
"author_id": 19371185,
"author_profile": "https://Stackoverflow.com/users/19371185",
"pm_score": 0,
"selected": false,
"text": "print(floorspace,G) print(floorspace(a,b))"
},
{
"answer_id": 74433432,
"author": "Paulina Khew... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501251/"
] |
74,433,334 | <p>I have a .net 6.0 class library project that has class files in the root, but also contains a Models folder with public classes declared in the class library. I've tried using the *.nupkg file created via nuget pack at the *.csproj level and the one created when the build preference to generate a package on every bu... | [
{
"answer_id": 74433400,
"author": "Mohamed chouai",
"author_id": 19371185,
"author_profile": "https://Stackoverflow.com/users/19371185",
"pm_score": 0,
"selected": false,
"text": "print(floorspace,G) print(floorspace(a,b))"
},
{
"answer_id": 74433432,
"author": "Paulina Khew... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1709186/"
] |
74,433,361 | <p>I'm trying to create a formula depending on the values of a dropdown in Google Sheets, so Basically I have Low, Medium and High their values are 1, 2 and 3 so I would like to multiplicate this numbers in two columns to do have an score this is my list:</p>
<pre><code>Rate Rate two Total score
Medium Low
High... | [
{
"answer_id": 74433400,
"author": "Mohamed chouai",
"author_id": 19371185,
"author_profile": "https://Stackoverflow.com/users/19371185",
"pm_score": 0,
"selected": false,
"text": "print(floorspace,G) print(floorspace(a,b))"
},
{
"answer_id": 74433432,
"author": "Paulina Khew... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16239103/"
] |
74,433,378 | <p>I need help with Linq Contains method. Here's the code below.</p>
<p>This code does work but outputs an empty sets.</p>
<pre><code>var query = _context.RegistrationCodes.Select(x => x);
if (request.OperatorId != null && request.OperatorId != Guid.Empty)
{
var checkOperator = _context.Operators.Includ... | [
{
"answer_id": 74433400,
"author": "Mohamed chouai",
"author_id": 19371185,
"author_profile": "https://Stackoverflow.com/users/19371185",
"pm_score": 0,
"selected": false,
"text": "print(floorspace,G) print(floorspace(a,b))"
},
{
"answer_id": 74433432,
"author": "Paulina Khew... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4646017/"
] |
74,433,383 | <p>I am wondering how to construct a string, which takes 1st letter of each word from list. Then it takes 2nd letter from each word etc.
For example :
Input --> my_list = ['good', 'bad', 'father']
Every word has different length (but the words in the list could have equal length)
The output should be: 'gbfoaaodtdher... | [
{
"answer_id": 74433416,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "itertools.zip_longest from itertools import zip_longest\n\ns = ''.join([c for x in zip_longest(*my_list) for c in x... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20485972/"
] |
74,433,408 | <p><a href="https://i.stack.imgur.com/pQPrQ.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I need to rotate object in python with this formula (<a href="https://i.stack.imgur.com/k7G8i.png" rel="nofollow noreferrer">enter image description here</a>)</p>
<pre><code>rotate an object by a specifie... | [
{
"answer_id": 74433416,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "itertools.zip_longest from itertools import zip_longest\n\ns = ''.join([c for x in zip_longest(*my_list) for c in x... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501601/"
] |
74,433,434 | <p>So, I have created an automation script performs a task every minute, on the minute (I want the task to be ran at the :00 second of each minute). As a test, the function that I am calling every minute just writes to console and to a text file that it has ran and at which time it has ran.</p>
<p>I don't know anything... | [
{
"answer_id": 74433702,
"author": "YungDeiza",
"author_id": 19214431,
"author_profile": "https://Stackoverflow.com/users/19214431",
"pm_score": 3,
"selected": true,
"text": "Thread.Sleep Thread.Sleep while (true)\n{ \n // Every minute on the minute \n if (DateTime.Now.Second == ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19433830/"
] |
74,433,437 | <p>I have to write a method that returns/prints the odd numbers between 1 and 100, but I have to use another method, which checks whether a given integer is odd or not:</p>
<pre><code>static boolean isOdd(int c) {
boolean d;
d = c % 2 != 0;
return d;
}
</code></pre>
<p>I'm guessing that I have to use either... | [
{
"answer_id": 74433544,
"author": "LMD",
"author_id": 7185318,
"author_profile": "https://Stackoverflow.com/users/7185318",
"pm_score": 2,
"selected": true,
"text": "for while for (init_stmt; cond; incr_stmt) body_stmt;\n init_stmt;\nwhile (cond) {\n body_stmt;\n incr_stmt;\n}\n f... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20390902/"
] |
74,433,449 | <p>Imaging we have a <code>props</code>, <strong>a really large</strong> object:</p>
<pre><code>{
"firstname": "John",
"lastname": "Doe",
"age": 11,
"mode: "expert",
"website": "stackoverflow.com"
"protocol": "htt... | [
{
"answer_id": 74433544,
"author": "LMD",
"author_id": 7185318,
"author_profile": "https://Stackoverflow.com/users/7185318",
"pm_score": 2,
"selected": true,
"text": "for while for (init_stmt; cond; incr_stmt) body_stmt;\n init_stmt;\nwhile (cond) {\n body_stmt;\n incr_stmt;\n}\n f... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8280112/"
] |
74,433,484 | <p>I recently found this library, vanilla-js datepicker (<a href="https://mymth.github.io/vanillajs-datepicker/#/" rel="nofollow noreferrer">https://mymth.github.io/vanillajs-datepicker/#/</a>) and I'm trying to use the inline picker.</p>
<p>Example:</p>
<pre><code><div id="foo" data-date="01/25/2020&... | [
{
"answer_id": 74433544,
"author": "LMD",
"author_id": 7185318,
"author_profile": "https://Stackoverflow.com/users/7185318",
"pm_score": 2,
"selected": true,
"text": "for while for (init_stmt; cond; incr_stmt) body_stmt;\n init_stmt;\nwhile (cond) {\n body_stmt;\n incr_stmt;\n}\n f... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12406361/"
] |
74,433,538 | <p>I have a 1D-array which has the following structure:</p>
<pre><code>arr = [x,a,b,c,y,a,b,c]
</code></pre>
<p>How can I convert that 1D array into a 3D-array like this:</p>
<p><code>arr2 = [[[x,a],[x,b],[x,c]], [[y,a], [y,b], [y,c]]]</code>
(3 y-values for each x-value)</p>
| [
{
"answer_id": 74433618,
"author": "Ildaron",
"author_id": 13904129,
"author_profile": "https://Stackoverflow.com/users/13904129",
"pm_score": 1,
"selected": false,
"text": "arr = [1,2,3,4,5,6,7,8,9]\narr = np.array(arr)\narr = arr.reshape(3,3)\nprint (list(arr))\n"
},
{
"answer_... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13686580/"
] |
74,433,559 | <p>So that's how HTML looks:</p>
<pre><code><p class="details">
<span>detail1</span>
<span class="number">1</span>
<span>detail2</span>
<span>detail3</span>
</p>
</code></pre>
<p>I need to extract detail2 & detail3.</p>
<p>But with this... | [
{
"answer_id": 74433637,
"author": "HedgeHog",
"author_id": 14460824,
"author_profile": "https://Stackoverflow.com/users/14460824",
"pm_score": 1,
"selected": false,
"text": "<span> <span> class soup.select('span.number ~ span')\n from bs4 import BeautifulSoup\nhtml='''<p class=\"details... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501743/"
] |
74,433,586 | <p>From what I have read so far Cassandra is using timestamps provided by client or coordinator to resolve conflicts. If Cassandra receives write for cell which already exists it picks up the one with higher timestamp.</p>
<p>In case of clock skews, when there are no concurrent updates and even when using <code>ALL</co... | [
{
"answer_id": 74433637,
"author": "HedgeHog",
"author_id": 14460824,
"author_profile": "https://Stackoverflow.com/users/14460824",
"pm_score": 1,
"selected": false,
"text": "<span> <span> class soup.select('span.number ~ span')\n from bs4 import BeautifulSoup\nhtml='''<p class=\"details... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3364192/"
] |
74,433,625 | <p>I have a file with some IDs listed like this:</p>
<pre><code>id1
id2
id3
etc
</code></pre>
<p>I want to use those IDs to extract data from files (IDs are occurring in every file) and save output for each of these IDs to a separate file (IDs are protein family names and I want to get each protein from a specific fam... | [
{
"answer_id": 74433637,
"author": "HedgeHog",
"author_id": 14460824,
"author_profile": "https://Stackoverflow.com/users/14460824",
"pm_score": 1,
"selected": false,
"text": "<span> <span> class soup.select('span.number ~ span')\n from bs4 import BeautifulSoup\nhtml='''<p class=\"details... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501684/"
] |
74,433,632 | <p>How can i find date inside a string in PHP and extract it?'</p>
<p>example: I have a date in string</p>
<pre><code>$status = "OK, 26.10.2022 13:24:00, Delivered Zak";
</code></pre>
<p>but also next time i can only get string which looks like this:</p>
<pre><code>$status = "28.10.2022 11:20:00, Delive... | [
{
"answer_id": 74433637,
"author": "HedgeHog",
"author_id": 14460824,
"author_profile": "https://Stackoverflow.com/users/14460824",
"pm_score": 1,
"selected": false,
"text": "<span> <span> class soup.select('span.number ~ span')\n from bs4 import BeautifulSoup\nhtml='''<p class=\"details... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13533140/"
] |
74,433,634 | <p>I attempted to use execve to run the command: <code>ls -l /tmp</code>, I'm familiar with the system call usage but I do not know how it runs commands.</p>
<p>I've tried this and i keep getting errors</p>
<pre><code>char *argv[] = {"ls", "-l", NULL};
int exec;
exec = execve("/tmp", arg... | [
{
"answer_id": 74433697,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 1,
"selected": false,
"text": "execve exec = execve(\"/bin/ls\", argv, NULL);\n argv char *argv[] = {\"ls\", \"-l\", \"/tmp\", NULL};\n"
}... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20184925/"
] |
74,433,654 | <p>I've got a tab navigator that has <code>Home</code> and <code>Profile</code> as screens. <code>Home</code> is a stack navigator that contains <code>RestaurantDetails</code> and <code>RestaurantList</code> as screens.</p>
<p>I have a <code>Button</code> that is in the <code>RestaurantList</code> screen. I want to nav... | [
{
"answer_id": 74433697,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 1,
"selected": false,
"text": "execve exec = execve(\"/bin/ls\", argv, NULL);\n argv char *argv[] = {\"ls\", \"-l\", \"/tmp\", NULL};\n"
}... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10613037/"
] |
74,433,684 | <p>I have a file containing school codes and votes for different cities.</p>
<p>The file is like:</p>
<pre class="lang-none prettyprint-override"><code>City: California
ADS, 532
SJD, 221
WPE, 239
City: Chicago
ADS, 238
SJD, 233
WPE, 456
...
</code></pre>
<p>My questions are</p>
<ol>
<li><p>How to add information to the... | [
{
"answer_id": 74433697,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 1,
"selected": false,
"text": "execve exec = execve(\"/bin/ls\", argv, NULL);\n argv char *argv[] = {\"ls\", \"-l\", \"/tmp\", NULL};\n"
}... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501836/"
] |
74,433,704 | <p>So let's say I ask for some input of n-rows and k-columns:</p>
<pre><code>rows = n
columns = k
</code></pre>
<p>What I want to do is to create an array of dimensions <code>(rows, columns)</code> and then populate said array with a set of numbers starting from some number <code>x</code> with some step size <code>y</c... | [
{
"answer_id": 74433795,
"author": "3dSpatialUser",
"author_id": 5775358,
"author_profile": "https://Stackoverflow.com/users/5775358",
"pm_score": 2,
"selected": false,
"text": "import numpy\nrows = 4\ncolumns = 3\n# Starting number\nx = 1\n# Step size\ny = 2\n\narray = np.arange(x, (row... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16854347/"
] |
74,433,706 | <p>I am trying to display a certain series of widgets based on objects contained in a formula. Here is how I am assigning the widgets to a variable based on their type.</p>
<pre><code> var l = TankFormulaLength(length: tankSpec.tankSpecs.imperialLength);
var w = TankFormulaWidth(width: tankSpec.tankSpecs.imp... | [
{
"answer_id": 74435733,
"author": "void void",
"author_id": 18969611,
"author_profile": "https://Stackoverflow.com/users/18969611",
"pm_score": 1,
"selected": false,
"text": " Widget build(BuildContext context) {\n return Column(\n children: [\n if (list.contains('l')) T... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8227931/"
] |
74,433,732 | <p>I am trying to replace all dashes(-) by a "br" but it gives me issues.</p>
<p>I have tried</p>
<pre><code>var strNewString = $('.member__designation').html().replace(/-/g,'<br>');
$('.member__designation').html(strNewString);
</code></pre>
<p>Here is the html
<a href="https://i.stack.imgur.com/hOtWd.... | [
{
"answer_id": 74435733,
"author": "void void",
"author_id": 18969611,
"author_profile": "https://Stackoverflow.com/users/18969611",
"pm_score": 1,
"selected": false,
"text": " Widget build(BuildContext context) {\n return Column(\n children: [\n if (list.contains('l')) T... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19497015/"
] |
74,433,780 | <p>This is my first class with a default member and I'm still getting a feel for it. I have a let / get property data:</p>
<pre><code>class ArrayClass
private D as variant
Property Get data() As Variant
data = D
End Property
Property Let data(arg1 As Variant)
D = arg1
End Property
</code></pre>
<p>I have added the... | [
{
"answer_id": 74434818,
"author": "Cristian Buse",
"author_id": 8488913,
"author_profile": "https://Stackoverflow.com/users/8488913",
"pm_score": 2,
"selected": false,
"text": "testArray(1,1) = 5 D Get Let Property Let data(arg1 As Variant)\n D = arg1\nEnd Property\n testArray(1,1) D... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18103643/"
] |
74,433,786 | <p>I have the next regex:</p>
<pre><code>comment_pattern = "(/\*[\w\W]*\*/)"
</code></pre>
<p>With it I am able to search match strings like bellow:</p>
<pre><code>/*
blablabla example
blabla
*/
</code></pre>
<p>Basically I would also like to search in those comments for the variable Compiler_Warning -> i... | [
{
"answer_id": 74433937,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 3,
"selected": true,
"text": "import re\n\ntext = \"\"\"\\\n/*\nblablabla example \nblabla\n*/\n\nNot comment\n\n/* blabla\nCompiler_Warnin... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15824988/"
] |
74,433,810 | <p>I'm trying to remove "ال" from every arabic string thats contains "ال"</p>
<p>I'm trying to do this by using this code but its only delete "ال" from the first word:</p>
<pre><code>input : الغيث الغيث الغيث
output : غيث الغيث الغيث
what i need: غيث غيث غيث
</code></pre>
<pre cla... | [
{
"answer_id": 74433961,
"author": "Dmitry Bychenko",
"author_id": 2319407,
"author_profile": "https://Stackoverflow.com/users/2319407",
"pm_score": 2,
"selected": false,
"text": "Replace using System.Text.RegularExpressions;\n\n...\n\nstring input = \"الغيث الغيث الغيث\";\nstring[] pref... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20314375/"
] |
74,433,811 | <p>Hello Guys I have a problem with my bottom navigation bar. The problem is that I created a stack, in that there is a container with gradient color and then there is a bottomAppBar, I made the bottomAppBar color transparent. I actual problem is that I have a centerDocked floating action button and it's margin is 5. B... | [
{
"answer_id": 74434161,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": true,
"text": "bottomNavigationBar: BottomAppBar(\n elevation: 0,\n color: Colors.transparent,\n shape: CircularNot... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10535413/"
] |
74,433,826 | <p>I have my funcion :</p>
<pre><code>fun1 <- function( x, y, z ){
1 / (1 + (x / y)^z)
}
</code></pre>
<p>I want to crate <code>curve</code> for my function</p>
<p>On X axxis I want values I will give for x, e.g. 10 50, 1000 in my function for Y axis I want fun1 results given different x. For y in function I want... | [
{
"answer_id": 74434161,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": true,
"text": "bottomNavigationBar: BottomAppBar(\n elevation: 0,\n color: Colors.transparent,\n shape: CircularNot... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501829/"
] |
74,433,835 | <p>I am running a suite of APIs test cases which is build on maven Project. There are some failure in Test cases due to this my entire build is getting failed. how to make build success even the Test Case got failed. Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test</p>
<p>Maven build fa... | [
{
"answer_id": 74433980,
"author": "toinetoine",
"author_id": 1053362,
"author_profile": "https://Stackoverflow.com/users/1053362",
"pm_score": 1,
"selected": false,
"text": "-DskipTests mvn clean install -DskipTests"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501844/"
] |
74,433,854 | <p>I've got a button that I want to have enact changes to an element that is the sibling of the button's parent.</p>
<pre><code><div class="parent">
<div class="target"></div>
<div class="child">
<button>Click!</button>
</div>
</div>... | [
{
"answer_id": 74433980,
"author": "toinetoine",
"author_id": 1053362,
"author_profile": "https://Stackoverflow.com/users/1053362",
"pm_score": 1,
"selected": false,
"text": "-DskipTests mvn clean install -DskipTests"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18179440/"
] |
74,433,868 | <p>I have the following structure, when the label is required, there’s a star next to the label. The problem that I’m having is that if the label has an icon and tooltip inside, it get’s between the label and the star. What could be the possible solution to always have the start right after the label?</p>
<p><div class... | [
{
"answer_id": 74433984,
"author": "Adam",
"author_id": 12571484,
"author_profile": "https://Stackoverflow.com/users/12571484",
"pm_score": 0,
"selected": false,
"text": ".required > span:first-child:after {\n content: '*';\n} <label for=\"input-required\" class=\"required\">\n <span>L... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12130996/"
] |
74,433,943 | <p>I am working on an app that uses some older dependencies and deprecated methods which I realized after upgrading to latest Flutter version.</p>
<p>So until i correct all of these, i downgraded back to v2.2.3 to be able to keep working on my app.</p>
<p>But now when i try to run i get some error that i didnt have bef... | [
{
"answer_id": 74433984,
"author": "Adam",
"author_id": 12571484,
"author_profile": "https://Stackoverflow.com/users/12571484",
"pm_score": 0,
"selected": false,
"text": ".required > span:first-child:after {\n content: '*';\n} <label for=\"input-required\" class=\"required\">\n <span>L... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13217134/"
] |
74,433,973 | <p>I have dotnet WebAPI and I'm trying to get a specific behaviour but am constantly getting 415 responses.</p>
<p>I have reproduced this by starting a new webapi project using <code>dotnet new webapi</code> on the command line. From there, I added two things: a new controller, and a model class. In my real project the... | [
{
"answer_id": 74433984,
"author": "Adam",
"author_id": 12571484,
"author_profile": "https://Stackoverflow.com/users/12571484",
"pm_score": 0,
"selected": false,
"text": ".required > span:first-child:after {\n content: '*';\n} <label for=\"input-required\" class=\"required\">\n <span>L... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11571390/"
] |
74,433,982 | <p>There is a toggle button in AutoCAD's default ribbons, but I don't know how to add it to AutoCAD using C# (or any other programming language).</p>
<p><a href="https://i.stack.imgur.com/R3Vpx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R3Vpx.png" alt="sample of toggle button in autocad" /></a><... | [
{
"answer_id": 74433984,
"author": "Adam",
"author_id": 12571484,
"author_profile": "https://Stackoverflow.com/users/12571484",
"pm_score": 0,
"selected": false,
"text": ".required > span:first-child:after {\n content: '*';\n} <label for=\"input-required\" class=\"required\">\n <span>L... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19762249/"
] |
74,433,987 | <h1>Python concurrent.futures.ProcessPoolExecutor crashing with full RAM</h1>
<h2>Program description</h2>
<p>Hi, I've got a computationally heavy function which I want to run in parallel. The function is a test that accepts as inputs:</p>
<ul>
<li>a DataFrame to test on</li>
<li>parameters based on which the calculati... | [
{
"answer_id": 74450459,
"author": "Booboo",
"author_id": 2823719,
"author_profile": "https://Stackoverflow.com/users/2823719",
"pm_score": 2,
"selected": true,
"text": "map parameters large_df.copy() parameters my_tests.func large_df worker N parameters import concurrent.futures\nimport... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74433987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17163860/"
] |
74,434,030 | <p>We store volunteer hours in a database for every user, i'm trying to figure out how to structure a Postgres SQL query to find the percentage of total hours a specific user has spent at a location vs the total number of hours at that location (by any user)</p>
<pre><code>CREATE TABLE entries (
id INT,
userId INT,... | [
{
"answer_id": 74434185,
"author": "Farhan Mushtaq",
"author_id": 20396064,
"author_profile": "https://Stackoverflow.com/users/20396064",
"pm_score": 0,
"selected": false,
"text": "SELECT\n ( SELECT\n ( SELECT SUM(volunteerHours) \n from entries \n WHERE userId ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/378506/"
] |
74,434,035 | <p>I am trying to build iOS app from expo managed project. The build fails At fastlane step.</p>
<p>In Expo SDK 44, 45 everything was okay. But when I upgrade to SDK 46, I am facing the issue.</p>
<p>Here is my package.json</p>
<pre><code> {
"name": "App123",
"version": "1.0.0&qu... | [
{
"answer_id": 74434185,
"author": "Farhan Mushtaq",
"author_id": 20396064,
"author_profile": "https://Stackoverflow.com/users/20396064",
"pm_score": 0,
"selected": false,
"text": "SELECT\n ( SELECT\n ( SELECT SUM(volunteerHours) \n from entries \n WHERE userId ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8460578/"
] |
74,434,048 | <p>When button clicked JS is showing <strong>[object HTMLButtonElement]</strong> instead of original value.</p>
<p>I want that whenever a button is clicked the value of button is showed.
like when button having value 3 is pressed it will show 3 and not [object HTMLButtonElement]</p>
<p>this is my html file</p>
<pre><co... | [
{
"answer_id": 74434244,
"author": "Diego D",
"author_id": 1221208,
"author_profile": "https://Stackoverflow.com/users/1221208",
"pm_score": 3,
"selected": true,
"text": "this val() value function val(num) {\n let n = num.value;\n document.getElementById(\"output\").innerHTML = n;\n} b... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16221393/"
] |
74,434,050 | <p>I have coins for 10, 30 and 50. But I want to use only <code>M</code> coins to get a given <code>sum</code>.</p>
<p>I have this code (from <a href="https://www.geeksforgeeks.org/coin-change-dp-7/" rel="nofollow noreferrer">this</a> as reference) that just find all possible ways to get the total sum without applying ... | [
{
"answer_id": 74436474,
"author": "Idle_Mind",
"author_id": 2330053,
"author_profile": "https://Stackoverflow.com/users/2330053",
"pm_score": 2,
"selected": false,
"text": "0 in base 3: [0, 0, 0, 0]\n1 in base 3: [0, 0, 0, 1]\n2 in base 3: [0, 0, 0, 2]\n3 in base 3: [0, 0, 1, 0]\n4 in b... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3181365/"
] |
74,434,075 | <p>The logic is similar to the content-based recommender,</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>content</th>
<th>undesirable</th>
<th>desirable</th>
<th>user_1</th>
<th>...</th>
<th>user_10</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>3.00</td>
<td>2.77</td>
<td>0.11</td>
<td><... | [
{
"answer_id": 74434256,
"author": "Nico",
"author_id": 9055967,
"author_profile": "https://Stackoverflow.com/users/9055967",
"pm_score": 0,
"selected": false,
"text": "as.formula paste formula_lm <- as.formula(\n paste(response_var, \n paste(expl_var, collapse = \" + \"), \n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20179908/"
] |
74,434,111 | <p>I apologize if my question is stupid or impossible but I am a complete beginner in JavaScript.</p>
<p>I have to make a carousel on my own and <strong>change the active bullet point to the next on click on the right arrow</strong>.</p>
<pre class="lang-js prettyprint-override"><code>const bulletPoints = document.quer... | [
{
"answer_id": 74434241,
"author": "ekans",
"author_id": 3568245,
"author_profile": "https://Stackoverflow.com/users/3568245",
"pm_score": -1,
"selected": false,
"text": "forEach bulletPoints.forEach(function(item, index) {\n item.classList.remove('dot_selected');\n\n //check if th... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501970/"
] |
74,434,125 | <p>I am trying to crawl this <a href="https://www.nepsealpha.com/investment-calandar/ipo" rel="nofollow noreferrer">website</a> but I am getting empty response
I am using scrapy and I tried printing xpath but I am getting empty array I though this was straight forward task but now I am unable to get data from the table... | [
{
"answer_id": 74434301,
"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\nimport pandas as pd\n\n\nparams = {\n \"draw\": \"1\",\n \... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20293303/"
] |
74,434,139 | <p>I'm attempting to create a new list with all the possible pairs in a list but only want to have the numbers that are neighbors be possible pairs.</p>
<p>For example, I have already created this list from a file:</p>
<p>[1, 8, 10, 16, 19, 22, 27, 33, 36, 40, 47, 52, 56, 61, 63, 71, 72, 75, 81, 81, 84, 88, 96, 98, 103... | [
{
"answer_id": 74434176,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "zip() result = list(zip(newl, newl[1:]))\n"
},
{
"answer_id": 74434194,
"author": "KillerRebooted",
"a... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14783967/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.