qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,552,043 | <p>So I've built an API for movies <code>dataset</code> which contain following structure:</p>
<p><strong>Models.py</strong></p>
<pre><code>class Directors(models.Model):
id = models.IntegerField(primary_key=True)
first_name = models.CharField(max_length=100, blank=True, null=True)
last_name = models.CharFi... | [
{
"answer_id": 74584870,
"author": "k4anubhav",
"author_id": 14312439,
"author_profile": "https://Stackoverflow.com/users/14312439",
"pm_score": 2,
"selected": true,
"text": "number of movies genre return Roles.objects.filter(\n actor_id=self.kwargs['pk']\n ).values('mo... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17602275/"
] |
74,552,058 | <p>I currently have a method that recursively enumerates all the files on my desktop and returns them as an <code>IEnumerable<string></code>. What I am trying to now do is create a method that takes that <code>IEnumerable<string></code> as the parameter and uses LINQ to group/order them by their file type. ... | [
{
"answer_id": 74584870,
"author": "k4anubhav",
"author_id": 14312439,
"author_profile": "https://Stackoverflow.com/users/14312439",
"pm_score": 2,
"selected": true,
"text": "number of movies genre return Roles.objects.filter(\n actor_id=self.kwargs['pk']\n ).values('mo... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8768617/"
] |
74,552,089 | <p>I'm trying to create a array which contains a bunch of objects like this and insert them upon different actions:</p>
<pre><code>[
{price: 'price_1M73OzIRkO5W1JretwretkAHa', quantity: 1},
{price: 'price_1M73OzI4545W1JretwretkAHa', quantity: 3},
{price: 'price_1M73OzIRkO4545twr45kAHa', quantity:2}
]
</code></pre>
<p>H... | [
{
"answer_id": 74552113,
"author": "Sean",
"author_id": 11726149,
"author_profile": "https://Stackoverflow.com/users/11726149",
"pm_score": 3,
"selected": true,
"text": "setAllPlans(allplans => [...allplans, {price:'price_1M73OzIRkO5W1JretwretkAHa', quantity: 1}]);\n"
},
{
"answe... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3827252/"
] |
74,552,123 | <p>I have two programs, one in go and one in python that I am trying to characterize. For this, I'd like to measure the CPU usage and Memory Usage by regularly measuring the amounts consumed by the two programs at regular intervals (say, every 0.1 seconds) for some given amount of time. I have been looking everywhere f... | [
{
"answer_id": 74552113,
"author": "Sean",
"author_id": 11726149,
"author_profile": "https://Stackoverflow.com/users/11726149",
"pm_score": 3,
"selected": true,
"text": "setAllPlans(allplans => [...allplans, {price:'price_1M73OzIRkO5W1JretwretkAHa', quantity: 1}]);\n"
},
{
"answe... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17420895/"
] |
74,552,131 | <p>Im having a trouble with editing a txt file on python.</p>
<p>Hi guys,</p>
<p>Im having a trouble with editing a txt file on python.</p>
<p>Here is the first few lines of the txt file</p>
<pre><code>m0 +++$+++ 10 things i hate about you +++$+++ 1999 +++$+++ 6.90 +++$+++ 62847 +++$+++ ['comedy', 'romance']
m1 +++$+++... | [
{
"answer_id": 74552203,
"author": "C.Nivs",
"author_id": 7867968,
"author_profile": "https://Stackoverflow.com/users/7867968",
"pm_score": 1,
"selected": false,
"text": "str.rsplit from io import StringIO\nimport ast\n\ncontent = \"\"\"m0 +++$+++ 10 things i hate about you +++$+++ 1999 ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585013/"
] |
74,552,134 | <p>Whenever I create a zip package of my laravel application it stalls for perhaps 10 seconds on a particular file in the .git/objects/1c folder</p>
<pre><code>-r--r--r-- 1 root root 267 Sep 3 03:51 2594ce9a9da03d6809e24073d6d108825d5742
-r--r--r-- 1 root root 666746290 Sep 15 17:11 3132aadcdf726d34029ea4cfebd0c... | [
{
"answer_id": 74552282,
"author": "acran",
"author_id": 11932806,
"author_profile": "https://Stackoverflow.com/users/11932806",
"pm_score": 1,
"selected": false,
"text": "git .git/objects/ git .git/objects/ git gc git archive git zip .git/ git"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4001619/"
] |
74,552,142 | <p>I can use a <code>for</code> loop to loop over two byte sequences and return the index at the first difference of course:</p>
<pre><code>bytes1 = b'12345'
bytes2 = b'1F345'
for index, pair in enumerate(zip(bytes1, bytes2)):
if pair[0] != pair[1]:
print(index)
break
</code></pre>
<p>But I don't th... | [
{
"answer_id": 74552289,
"author": "Ahmed AEK",
"author_id": 15649230,
"author_profile": "https://Stackoverflow.com/users/15649230",
"pm_score": 2,
"selected": false,
"text": "import numpy as np\nbytes1 = b'12345'\nbytes2 = b'1F345'\nbytes3 = np.frombuffer(bytes1,dtype=np.uint8)\nbytes4 ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/607407/"
] |
74,552,158 | <p>I have the following SQL query:</p>
<pre><code>SELECT `NeighbourhoodName`,
count(NAME) as `Number of Parks`,
sum(CASE
WHEN `parks`.`Advisories` = 'Y' THEN 1
ELSE 0
END) as Advisories,
FROM parks
GROUP BY `NeighbourhoodName`;
</code></pre>
<p>In the second line of the code, I create a column called "Nu... | [
{
"answer_id": 74552202,
"author": "Ergest Basha",
"author_id": 16461952,
"author_profile": "https://Stackoverflow.com/users/16461952",
"pm_score": 2,
"selected": true,
"text": "SELECT `NeighbourhoodName`,\n `Number of Parks`,\n Advisories/`Number of Parks` as Advisories\nFR... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18183846/"
] |
74,552,180 | <p>I am trying to build vectors by checking the values of the data frame. I think I am running into issues checking for the NA condition. What I am trying to accomplish:</p>
<p>If index i at vectorA is not NA and index i at vectorB is also not NA then store those values in vectors xp and yp. Else if index i at vectorA ... | [
{
"answer_id": 74552311,
"author": "margusl",
"author_id": 646761,
"author_profile": "https://Stackoverflow.com/users/646761",
"pm_score": 2,
"selected": false,
"text": "NA NA TRUE FALSE if() NA is.na() 123 * NA\n#> [1] NA\nNA == NA\n#> [1] NA\nNA != NA\n#> [1] NA\nNA == TRUE\n#> [1] NA\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18980222/"
] |
74,552,191 | <p>I was trying to copy a repaint() and a paintComponent() method from a tutorial. After I copied the two methods my paintComponent did not get called and so the rectangle is not being showed. Here is my code:</p>
<pre><code>public class Main {
GameWindow gw;
Main() {
gw = new GameWindow();
}
... | [
{
"answer_id": 74552470,
"author": "Kaneda",
"author_id": 9411636,
"author_profile": "https://Stackoverflow.com/users/9411636",
"pm_score": -1,
"selected": false,
"text": "void setWindow() {\n JFrame window = new JFrame();\n\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583558/"
] |
74,552,196 | <p>I'm currently working on an ASP.NET Core MVC project.</p>
<p>I have a view model which contains a list as:</p>
<pre><code>public class CampaignViewModel
{
public IList<Agency> Agencies { get; set; }
}
</code></pre>
<p>In the controller, I assign that list like this:</p>
<pre><code>[HttpGet]
public async Ta... | [
{
"answer_id": 74553044,
"author": "Akin D.",
"author_id": 8908754,
"author_profile": "https://Stackoverflow.com/users/8908754",
"pm_score": 0,
"selected": false,
"text": "@model CampaignViewModel"
},
{
"answer_id": 74554922,
"author": "Ruikai Feng",
"author_id": 18177989... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20286048/"
] |
74,552,220 | <p>I wanted to make two commands that alternate exactly for the specified number of percentages.</p>
<p>How to do a command in <code>while</code> that will do only a few percent and if not do a different command.</p>
<hr />
<p>I'm trying to create a program to which you give the total number of characters, how many ch... | [
{
"answer_id": 74552671,
"author": "Rufus L",
"author_id": 2052655,
"author_profile": "https://Stackoverflow.com/users/2052655",
"pm_score": 3,
"selected": true,
"text": "% \"T\" i numChars \\ percent \"T\" 100 33% 100 / 33 == 3 3 \"T\" public static void PrintResults(int numChars, int p... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15590025/"
] |
74,552,265 | <p>please refer to the image, when I click on the link on the left partial table, instead of having the values display on a separate partial table view as shown, I'd like the values to be autofilled in the bottom 2 textboxes to avoid having to click and drag the values and to have the date formatted to 01312000 format<... | [
{
"answer_id": 74552671,
"author": "Rufus L",
"author_id": 2052655,
"author_profile": "https://Stackoverflow.com/users/2052655",
"pm_score": 3,
"selected": true,
"text": "% \"T\" i numChars \\ percent \"T\" 100 33% 100 / 33 == 3 3 \"T\" public static void PrintResults(int numChars, int p... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9748930/"
] |
74,552,268 | <p>Imagine you have the following data set:</p>
<pre><code>
df = data.frame(ID = c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), gender= c(1,2,1,2,2,2,2,1,1,2,1,2,1,2,2,2,2,1,1,2),
PID = c(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10))
</code></pre>
<p>how can I write a code tha... | [
{
"answer_id": 74552294,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 2,
"selected": false,
"text": "df[ave(rep(TRUE, nrow(df)), df[,c(\"gender\",\"paar\")], FUN = function(z) !any(duplicated(z))),... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19743239/"
] |
74,552,274 | <p>I receive a syntax error for the following:</p>
<pre><code>CREATE OR REPLACE FUNCTION my_function(old_num INTEGER)
returns INTEGER
language plpgsql
AS
$$
DECLARE new_num INTEGER;
BEGIN
CASE
WHEN (old_num IN (1, 2, 3, 4)) THEN new_num = 10
WHEN (old_num IN (5, 6, 7, 8)) THEN new_num = 20
EL... | [
{
"answer_id": 74552294,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 2,
"selected": false,
"text": "df[ave(rep(TRUE, nrow(df)), df[,c(\"gender\",\"paar\")], FUN = function(z) !any(duplicated(z))),... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18774863/"
] |
74,552,292 | <p>I would want to get the stdout of the python file into shell script. I initially used print and it worked fine but it is not working for logging.</p>
<p>ab.py</p>
<pre><code>import logging
logger = logging.getLogger()
logging.basicConfig(level=logging.INFO)
logging.info('2222222222222')
print("111111111111&quo... | [
{
"answer_id": 74552294,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 2,
"selected": false,
"text": "df[ave(rep(TRUE, nrow(df)), df[,c(\"gender\",\"paar\")], FUN = function(z) !any(duplicated(z))),... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7802216/"
] |
74,552,491 | <p>I have a dataset where the columns are different sites and the latitude and longitude values are provided in the first two rows. I want to transpose this data, so that each site is now a row with the latitude and longitude values in the columns.</p>
<p>I'm trying to do this with <code>pivot_longer</code>, but have ... | [
{
"answer_id": 74552522,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 4,
"selected": true,
"text": "transpose library(data.table)\ndata.table::transpose(setDT(df), make.names = \"sites\")\n lat lon\n <num> <num... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3220999/"
] |
74,552,511 | <p>The three-digit number changes first, then the letters from right to left. So, first plate is AA 000 AA, followed by AA 001 AA...AA 999 AA, then AA 000 AB to AA 999 AZ, then AA 000 BA to AA 999 ZZ, then AB 000 AA to AZ 999 ZZ, then BA 000 AA to ZZ 999 ZZ.</p>
| [
{
"answer_id": 74552825,
"author": "Mark",
"author_id": 2203038,
"author_profile": "https://Stackoverflow.com/users/2203038",
"pm_score": -1,
"selected": false,
"text": "digits = [ \n # value, init, count, suffix, order \n [ 'A', 'A', 26 , '', 6], \n [ 'A', 'A', 26 , ' ', 5], \n [ '... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581749/"
] |
74,552,516 | <p>I need for the navbar to show when the user logs into homepage/site in ReactJS?</p>
<p>I tried to use a turnary method but it did not work successfully.</p>
<p>take a look at my code in github: <a href="https://github.com/Brian-Tech-20s/Music-Essentials.git" rel="nofollow noreferrer">https://github.com/Brian-Tech-20... | [
{
"answer_id": 74552575,
"author": "Finn",
"author_id": 16952372,
"author_profile": "https://Stackoverflow.com/users/16952372",
"pm_score": -1,
"selected": false,
"text": "&& export default function App() {\n return (\n <div className=\"App\">\n {isLoggedIn && <Navbar/>}\n </... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12713469/"
] |
74,552,533 | <p>I am trying to manipulate my list through the append function.</p>
<p>Here is what i got:</p>
<pre><code>list_all = []
list_gen = ['male', 'DEAN', 'SAM', 'JASON']
list_all.append(list_gen)
list_gen = ['female', 'LARA', 'SUSI']
list_all.append(list_gen)
a_list = []
b_list = []
for x in list_all:
a_list.append(x... | [
{
"answer_id": 74552575,
"author": "Finn",
"author_id": 16952372,
"author_profile": "https://Stackoverflow.com/users/16952372",
"pm_score": -1,
"selected": false,
"text": "&& export default function App() {\n return (\n <div className=\"App\">\n {isLoggedIn && <Navbar/>}\n </... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585206/"
] |
74,552,543 | <pre><code>function sendEmails() {
const sheet = getSpreadsheetApp()
const sheetData = getSpreadsheetData(sheet).getValues();
const subjectline = "Weekly Breakdown for the week of - "
var subjectDate = Browser.inputBox('Please enter the date range for e-mail subject.', Browser.Buttons.OK_CANCEL);
... | [
{
"answer_id": 74552575,
"author": "Finn",
"author_id": 16952372,
"author_profile": "https://Stackoverflow.com/users/16952372",
"pm_score": -1,
"selected": false,
"text": "&& export default function App() {\n return (\n <div className=\"App\">\n {isLoggedIn && <Navbar/>}\n </... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20372911/"
] |
74,552,547 | <p>In K8s i'm practising the example <em>6.1. A pod with two containers sharing the same volume: fortune-pod.yaml</em> from the book <strong>kubernetes in Action</strong>. In volumes concept where my pod contain 2 containers, one of the containers is not running, Please guide me where i'm doing wrong. to run the pod su... | [
{
"answer_id": 74552575,
"author": "Finn",
"author_id": 16952372,
"author_profile": "https://Stackoverflow.com/users/16952372",
"pm_score": -1,
"selected": false,
"text": "&& export default function App() {\n return (\n <div className=\"App\">\n {isLoggedIn && <Navbar/>}\n </... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12569410/"
] |
74,552,549 | <p>I'd like to have a variable that can be either a React component or a string, like this:</p>
<pre><code>function MyComponent(): JSX.Element {
let icon: JSX.Element | string = "/example.png"; // (simplified)
return <div>{typeof icon === "JSX.Element" ? icon : <img src={icon} />}&... | [
{
"answer_id": 74552689,
"author": "Alex Wayne",
"author_id": 62076,
"author_profile": "https://Stackoverflow.com/users/62076",
"pm_score": 4,
"selected": true,
"text": "typeof \"JSX.Element\" \"string\" | \"number\" | \"bigint\" | \"boolean\" | \"symbol\" | \"undefined\" | \"object\" | ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2223706/"
] |
74,552,553 | <p>I would like to compute a missing value by way of taking the average of the lead and lag rows, for a specific row. In this example, year 2001.</p>
<pre><code>df = data.frame(year = c(2000, 2001, 2002),
A = c(2, NA, 3),
B = c(2, 2, 3),
C = c(3, NA, 2))
</code></pre>
... | [
{
"answer_id": 74552738,
"author": "Ruam Pimentel",
"author_id": 13015865,
"author_profile": "https://Stackoverflow.com/users/13015865",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\n\ndf %>% \n mutate(across(A:C, ~case_when( is.na(.x) ~ (lead(.x) + lag(.x) )/ 2,\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18048351/"
] |
74,552,582 | <p>Here is a sample dataframe:</p>
<pre><code>df <- tibble(variable =c("gdp", "gdp_ppp"),
value = c(1000, 2000),
variable_label=c("GDP", "GDP_PPP"))
</code></pre>
<p>I would like to make variable_label an expression or text element of some sort becaus... | [
{
"answer_id": 74552738,
"author": "Ruam Pimentel",
"author_id": 13015865,
"author_profile": "https://Stackoverflow.com/users/13015865",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\n\ndf %>% \n mutate(across(A:C, ~case_when( is.na(.x) ~ (lead(.x) + lag(.x) )/ 2,\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15911106/"
] |
74,552,586 | <p>I didnt open new html file when onclick on button</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><!DOCTYPE html>
<html xmlns:th="http://thymeleaf.org">
&l... | [
{
"answer_id": 74565476,
"author": "Kaushal",
"author_id": 20593455,
"author_profile": "https://Stackoverflow.com/users/20593455",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html>\n<html xmlns:th=\"http://thymeleaf.org\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Sign up Pa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13249946/"
] |
74,552,594 | <p>I am writing UI Test for my App using Espresso. The screen shows a <code>Recyclerview</code> with list of shops that have status <code>OPEN</code> or <code>CLOSED</code>. Depending upon the data the <code>openTextView</code> or <code>closedTextview</code> is shown and are hidden by default.</p>
<p><strong>Below is m... | [
{
"answer_id": 74565476,
"author": "Kaushal",
"author_id": 20593455,
"author_profile": "https://Stackoverflow.com/users/20593455",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html>\n<html xmlns:th=\"http://thymeleaf.org\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Sign up Pa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14834877/"
] |
74,552,649 | <p>So I have five nav tabs and when someone clicks for example on a shop tab, I want it font to be 'bold' so you can see what tab is currently active. I have Home active when someone enters the site but it's hard coded. Meaning that when I click on a shop tab, 'bold' font on home tab still is there.
`</p>
<pre><code>fu... | [
{
"answer_id": 74565476,
"author": "Kaushal",
"author_id": 20593455,
"author_profile": "https://Stackoverflow.com/users/20593455",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html>\n<html xmlns:th=\"http://thymeleaf.org\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Sign up Pa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585267/"
] |
74,552,683 | <pre class="lang-bash prettyprint-override"><code>python -c "import numpy as np; print(np.sum([-np.Inf, +np.Inf]))"
</code></pre>
<p>gives</p>
<pre><code>numpy\core\fromnumeric.py:86: RuntimeWarning: invalid value encountered in reduce
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
nan
</code></p... | [
{
"answer_id": 74552893,
"author": "Carlos Horn",
"author_id": 18205911,
"author_profile": "https://Stackoverflow.com/users/18205911",
"pm_score": 3,
"selected": true,
"text": "Inf - Inf import warnings\n\nwith warnings.catch_warnings():\n warnings.simplefilter(\"ignore\", category=Ru... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/880783/"
] |
74,552,712 | <p>I've got this piece of code:</p>
<pre><code>SELECT t1.sku_id, t1.putaway_group, t1.shortage, t4.location_id, t4.qty_on_hand
FROM
(WHERE clauses)t1
LEFT JOIN
(
SELECT *
FROM (
SELECT location_id, sku_id, qty_on_hand,
DENSE_RANK() OVER ( PARTITION BY sku... | [
{
"answer_id": 74552822,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "row_number SQL> with data (sku_id, shortage, location_id, qty_on_hand) as\n 2 (select 1, -84, 3, 16 from dual... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16004228/"
] |
74,552,713 | <p>I have set up the Workload Identity on a GKE cluster, and now I am using a Kubernetes SA linked to an IAM SA with appropriate permissions. I checked that when I use the IAM SA key file, it gets the access I need.</p>
<p>However, it gets weird even when following the <a href="https://cloud.google.com/kubernetes-engin... | [
{
"answer_id": 74552822,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "row_number SQL> with data (sku_id, shortage, location_id, qty_on_hand) as\n 2 (select 1, -84, 3, 16 from dual... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/484041/"
] |
74,552,732 | <p>I need some advice on how to list only words from <code>Text</code> branches in this code I have programmed.</p>
<pre><code>data Article = Text String
| Section String [Article] deriving (Show)
myArticle :: Article
myArticle = Section "Document" [
Section "Introduction&q... | [
{
"answer_id": 74552766,
"author": "Joseph Sible-Reinstate Monica",
"author_id": 7509065,
"author_profile": "https://Stackoverflow.com/users/7509065",
"pm_score": 4,
"selected": true,
"text": "concatMap : tex (Section x ls) = concatMap tex ls\n tex myArticle [\"My intoduction\",\"alpha b... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20538688/"
] |
74,552,754 | <p>Can be possible to store a file uploaded to a related table?
<em>Scenario:</em> I have a <code>usres</code> table in database and another one <code>pictures</code>. <strong>Users Model</strong> have the following function</p>
<pre><code>public function picture()
{
return $this->hasOne(Picture::class);... | [
{
"answer_id": 74552766,
"author": "Joseph Sible-Reinstate Monica",
"author_id": 7509065,
"author_profile": "https://Stackoverflow.com/users/7509065",
"pm_score": 4,
"selected": true,
"text": "concatMap : tex (Section x ls) = concatMap tex ls\n tex myArticle [\"My intoduction\",\"alpha b... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1262099/"
] |
74,552,765 | <p>I am trying to calculate some function results using predefined parameters that are generated before and stored in lists.</p>
<p>But I need to recode this solution to save all results to a dataframe of appropriate structure, where each row contain next parameters:</p>
<pre><code>E | number_of_iteration | result
</co... | [
{
"answer_id": 74552766,
"author": "Joseph Sible-Reinstate Monica",
"author_id": 7509065,
"author_profile": "https://Stackoverflow.com/users/7509065",
"pm_score": 4,
"selected": true,
"text": "concatMap : tex (Section x ls) = concatMap tex ls\n tex myArticle [\"My intoduction\",\"alpha b... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7267480/"
] |
74,552,785 | <p>I need to convert some element in jsonb column to array</p>
<p>What I have:</p>
<pre><code>{"a": {
"b": "2022-11-03",
"c": "321321",
"d": "213321"
}
}
</code></pre>
<p>What I need:
`</p>
<pre><code>{"a"... | [
{
"answer_id": 74553075,
"author": "Mitko Keckaroski",
"author_id": 12041280,
"author_profile": "https://Stackoverflow.com/users/12041280",
"pm_score": 0,
"selected": false,
"text": "select json_agg(DATA) from table_json\n"
},
{
"answer_id": 74553743,
"author": "Adrian Klaver... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585419/"
] |
74,552,793 | <p>I have components <code><Parent></code> and <code><Child></code>, and <code><Parent></code> accesses a Redux state prop called <code>prop1</code> using <code>mapStateToProps()</code>. <code><Child></code> needs to access <code>prop1</code> as well.</p>
<p>What's the difference between passing... | [
{
"answer_id": 74553385,
"author": "fgkolf",
"author_id": 13168083,
"author_profile": "https://Stackoverflow.com/users/13168083",
"pm_score": 3,
"selected": true,
"text": "mapStateToProps Child prop1 Child prop1 Child Parent Parent Child"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10864356/"
] |
74,552,855 | <p>I have the following single column DataFrame:</p>
<p>df:</p>
<p><a href="https://i.stack.imgur.com/5YpXY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5YpXY.png" alt="enter image description here" /></a></p>
<pre><code>data = {'YEAR': [2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030],
... | [
{
"answer_id": 74552900,
"author": "Psidom",
"author_id": 4983450,
"author_profile": "https://Stackoverflow.com/users/4983450",
"pm_score": 1,
"selected": false,
"text": "index columns df = pd.DataFrame([], index=data['YEAR'], columns=data['YEAR'])\ndf\n 2020 2021 2022 2023 2024 2025... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11789082/"
] |
74,552,879 | <p>The code in question (below) reads much faster (30x), tahn regular: MemoryMappedViewAccessor.ReadArray()
I'm trying to modify the code to be able to read from <strong>long</strong> offset, <strong>not int</strong> (!)</p>
<pre><code> public unsafe byte[] ReadBytes(int offset, int num)
{
byte[] arr = n... | [
{
"answer_id": 74552900,
"author": "Psidom",
"author_id": 4983450,
"author_profile": "https://Stackoverflow.com/users/4983450",
"pm_score": 1,
"selected": false,
"text": "index columns df = pd.DataFrame([], index=data['YEAR'], columns=data['YEAR'])\ndf\n 2020 2021 2022 2023 2024 2025... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9152518/"
] |
74,552,886 | <p>Whenever I run <code>${__timeShift(HH:mm,,PT30M,,)}</code> from the Function Helper, it gives me the time in CST (my local timezone)</p>
<p>I'm having trouble figuring out how to use timeShift to evaluate the HH:mm value <strong>without automatically converting it to CST time.</strong> Is there a simple way to do th... | [
{
"answer_id": 74556382,
"author": "Charles Pannell",
"author_id": 15125248,
"author_profile": "https://Stackoverflow.com/users/15125248",
"pm_score": 1,
"selected": true,
"text": "TimeZone.setDefault(TimeZone.getTimeZone('UTC')) def theTime = ${__timeShift(\"HH:mm\",,PT30M,,)}"
},
{... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15125248/"
] |
74,552,896 | <p>I'm learning Typescript and I'm trying to run method in a class.
I have a Class Person, and two classes which extends the Person Class: Man and Woman.</p>
<p>I also have an array of persons, and I need returns hello man! or hello woman! if person is a man or if is a woman.</p>
<p>This is my code:</p>
<pre><code>abst... | [
{
"answer_id": 74552945,
"author": "Hammerbot",
"author_id": 4547701,
"author_profile": "https://Stackoverflow.com/users/4547701",
"pm_score": 1,
"selected": true,
"text": "instanceof if (person instanceof Man) {\n person.helloMan()\n} else if (person instanceof Woman) {\n person.h... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5718903/"
] |
74,552,914 | <p>I am currently trying to make a method that will create a query in C# LINQ that will give me the file type, the combined size of the file type, and the total amount of files of that type. I am struggling to get multiple columns and to have the query gather the file size. It seems to only work if I get the file size ... | [
{
"answer_id": 74552990,
"author": "mzm",
"author_id": 20564950,
"author_profile": "https://Stackoverflow.com/users/20564950",
"pm_score": -1,
"selected": false,
"text": " var size = from f in files\n select (new FileInfo(f).Length);\n"
},
{
"answer_id": 74553055,
"a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8768617/"
] |
74,552,923 | <p>I'm having a lot of fun with C#, recently I created a simple "statistics calculator". It takes in data and calculates the mean, standard deviation etc.</p>
<p>However, I want to add something visual to my console apps. For example a diagram showing the data, or a graph (I also want to try coding something ... | [
{
"answer_id": 74552990,
"author": "mzm",
"author_id": 20564950,
"author_profile": "https://Stackoverflow.com/users/20564950",
"pm_score": -1,
"selected": false,
"text": " var size = from f in files\n select (new FileInfo(f).Length);\n"
},
{
"answer_id": 74553055,
"a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15323416/"
] |
74,552,932 | <p>I am given a list of old exe files where the original source code are lost.</p>
<p>While i am able to extract code from some of the exe files using tools like
DotPeek or ILSpy or JustDecompile.</p>
<p>I see a couple of them failed to decompile. I am getting the below similar error</p>
<p><a href="https://i.stack.img... | [
{
"answer_id": 74552990,
"author": "mzm",
"author_id": 20564950,
"author_profile": "https://Stackoverflow.com/users/20564950",
"pm_score": -1,
"selected": false,
"text": " var size = from f in files\n select (new FileInfo(f).Length);\n"
},
{
"answer_id": 74553055,
"a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3895221/"
] |
74,552,937 | <p>I am executing a command line program from Delphi.</p>
<p>I am using CreateProcess as I need to capture the output and display it in a memo.</p>
<p>My problem now is that the program I am executing needs to run "as administrator" to work properly. If I run it in an "as administrator" command pro... | [
{
"answer_id": 74554583,
"author": "Remy Lebeau",
"author_id": 65863,
"author_profile": "https://Stackoverflow.com/users/65863",
"pm_score": 2,
"selected": true,
"text": "requestedExecutionLevel requireAdministrator CreateProcess() ERROR_ELEVATION_REQUIRED CreateProcess() ShellExecute/Ex... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4237309/"
] |
74,552,950 | <p>I have a large numpy array whNumPylements I individually want to multiply with other indexes and then sum up. My current code is relatively slow, does anyone have an idea how I could make it faster:</p>
<pre><code>result = 0
n = 1
int_array = np.array((3,16,3,29,36))
for i in int_array:
result += int(i) * n
... | [
{
"answer_id": 74552986,
"author": "lemmgua",
"author_id": 20281146,
"author_profile": "https://Stackoverflow.com/users/20281146",
"pm_score": -1,
"selected": false,
"text": "n n i i"
},
{
"answer_id": 74553004,
"author": "I'mahdi",
"author_id": 1740577,
"author_profi... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74552950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13216239/"
] |
74,553,012 | <pre><code>(define (iterate list)
(cond
((null? list) '())
</code></pre>
<p>So far all I have is that it checks if it is a null list. If it is then it passes the empty list. What I am trying to do is I want to iterate through the list until I find the last element. I want to loop the list cdr until cdr shows up ... | [
{
"answer_id": 74553788,
"author": "Sylwester",
"author_id": 1565698,
"author_profile": "https://Stackoverflow.com/users/1565698",
"pm_score": 0,
"selected": false,
"text": "null? (iterate (cdr list))\n iterate(...) iterate"
},
{
"answer_id": 74562535,
"author": "Little Helpe... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18340746/"
] |
74,553,018 | <p>I have a hard time wrapping my head around some aspects of RxJS operators. I have some code here (in a component):</p>
<pre><code>extendedOrders$ = this.salesService.getOrders().pipe(
switchMap(orders => {
return forkJoin(orders.map(order => {
return this.salesService.getOrderCustomers(order.id).pi... | [
{
"answer_id": 74553788,
"author": "Sylwester",
"author_id": 1565698,
"author_profile": "https://Stackoverflow.com/users/1565698",
"pm_score": 0,
"selected": false,
"text": "null? (iterate (cdr list))\n iterate(...) iterate"
},
{
"answer_id": 74562535,
"author": "Little Helpe... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2064283/"
] |
74,553,030 | <p>How can I find the most recently modified *.ipynb files in the subtree starting from the current directory? Ideally I would like a sorted list with the most recently modified ones shown first.</p>
<p>I am using Ubuntu 22.04 and am happy to use GNU tools.</p>
| [
{
"answer_id": 74553052,
"author": "Gilles Quenot",
"author_id": 465183,
"author_profile": "https://Stackoverflow.com/users/465183",
"pm_score": 2,
"selected": false,
"text": "(shopt -s globstar; ls -lt **/*.ipynb)\n"
},
{
"answer_id": 74554176,
"author": "Maximilian Ballard"... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1473517/"
] |
74,553,095 | <p>I've data like below:</p>
<pre><code>ID Task Time
1 X started T1
2 X ended T2
3 X started T3 [wrong entry in data]
4 X started T4
5 X ended T5
6 Y started T6 [wrong entry in data]
7 Y started T7
8 Y ended T8
</code></pre>
<p>And, I need... | [
{
"answer_id": 74553409,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 2,
"selected": true,
"text": "row_number() select max(ID), Task, max(Time) Time\nfrom\n(\n select *,\n row_number() over (order by Time) -\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10227815/"
] |
74,553,126 | <p>I´m trying write a function that returns a list with the positions for each capital letter it doesn’t work with when the capital letter in the string is repeated.</p>
<pre><code>def capital_indexes(word):
cap = []
for i in word:
if i == i.upper():
cap.append(word.index(i))
return cap
... | [
{
"answer_id": 74553409,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 2,
"selected": true,
"text": "row_number() select max(ID), Task, max(Time) Time\nfrom\n(\n select *,\n row_number() over (order by Time) -\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19699716/"
] |
74,553,128 | <p>I have a list of lists that make up a tree, similar to a top level directory with a recursive listing of directories and files. I want to visualize this as a printed tree.</p>
<p><strong>How can a see a list of lists printed as a tree?</strong></p>
<h2>Data</h2>
<pre><code>tree = [
['Main University'],
['Ma... | [
{
"answer_id": 74553409,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 2,
"selected": true,
"text": "row_number() select max(ID), Task, max(Time) Time\nfrom\n(\n select *,\n row_number() over (order by Time) -\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1000343/"
] |
74,553,131 | <p>I have started using VSCode and was wondering what the <code>/</code> meant when I click on a file (see attached screenshot). Is it simply the full path of the file that I've clicked on? Thanks!</p>
<p><a href="https://i.stack.imgur.com/SFQmL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SFQmL.p... | [
{
"answer_id": 74554360,
"author": "tymtam",
"author_id": 581076,
"author_profile": "https://Stackoverflow.com/users/581076",
"pm_score": 0,
"selected": false,
"text": "X/\n├─ a/\n│ ├─ a1/\n│ │ └- a1.txt\n│ └- a2/\n│ └- a2.txt\n└ b/\n └- b1/\n └- b1.txt\n b1 b b b1"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8897159/"
] |
74,553,149 | <p>What to do I'm doing a project with a friend and I'm throwing him the project files, he opens the project and shows this error in Unity Hub, this did not happen before, and after one moment it began to appear, I don't have such an error, the Internet is almost empty about it. What to do?</p>
<p><a href="https://i.st... | [
{
"answer_id": 74554360,
"author": "tymtam",
"author_id": 581076,
"author_profile": "https://Stackoverflow.com/users/581076",
"pm_score": 0,
"selected": false,
"text": "X/\n├─ a/\n│ ├─ a1/\n│ │ └- a1.txt\n│ └- a2/\n│ └- a2.txt\n└ b/\n └- b1/\n └- b1.txt\n b1 b b b1"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585577/"
] |
74,553,157 | <p>Hello I am trying to change the color of icon using dom. When I do that changing icon to h6 and instead of icon-exclamation use the text ! it works. How to apply it on the icon.
Html code which do it:</p>
<pre><code><div class ="indicator">
<i id ="exclamation" class ... | [
{
"answer_id": 74553433,
"author": "Dream Bold",
"author_id": 12743692,
"author_profile": "https://Stackoverflow.com/users/12743692",
"pm_score": 1,
"selected": false,
"text": "https://codesandbox.io/s/mutable-sea-fl3320?file=/src/index.js fontawesome fontello fontawesome fontawesome <li... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17575080/"
] |
74,553,160 | <p>i want for loop to create symbolic link for All the files under <code>/root/Desktop/match/jars/44a65820/*</code> to be under this path <code>/root/Desktop/match/jars/</code> as symbolic link without version 44a65820
for example</p>
<pre><code>match@match:~/Desktop/match/jars# ls -ll
total 4
/root/Desktop/match/jars/... | [
{
"answer_id": 74553231,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "for f in /root/Desktop/match/jars/44a65820/*; do\n link=\"${f%-44a65820.jar}.jar\";\n ln -s \"$f\" \"/root/Desktop/mat... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12040472/"
] |
74,553,173 | <p>I am iterating through a list of dictionaries. I need to update the values for one specific key in all the dictionaries and I have the new values stored in a list. The list of new values is ordered so that the 1st new value belongs to a key in the 1st dictionary, 2nd new value to a key in the 2nd dictionary, etc.</p... | [
{
"answer_id": 74553231,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "for f in /root/Desktop/match/jars/44a65820/*; do\n link=\"${f%-44a65820.jar}.jar\";\n ln -s \"$f\" \"/root/Desktop/mat... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15238944/"
] |
74,553,190 | <p>Im trying to make a complex queryset and I want to include my <code>ForeignKeys</code> names instead of pk. I'm using ajax to get a live feed from user inputs and print the results on a <code>DataTable</code> but I want to print the names instead of the pk. Im getting a queryset and when I <code>console.log</code> i... | [
{
"answer_id": 74553231,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "for f in /root/Desktop/match/jars/44a65820/*; do\n link=\"${f%-44a65820.jar}.jar\";\n ln -s \"$f\" \"/root/Desktop/mat... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,553,221 | <p>I have a very simple test written, which only checks whether some text is displayed on screen. But it gives an error saying <code>useNavigate() may be used only in the context of a <Router> component.</code>, which is located in <code>LoginButton.js</code>.</p>
<pre><code>useNavigate() may be used only in the ... | [
{
"answer_id": 74553231,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "for f in /root/Desktop/match/jars/44a65820/*; do\n link=\"${f%-44a65820.jar}.jar\";\n ln -s \"$f\" \"/root/Desktop/mat... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19163958/"
] |
74,553,238 | <p>I have a 26MB JSON file containing UN/LOCODE data that I want to restructure and remove some data from so that it takes less space in my app's binary package.</p>
<p>The JSON contains an array of objects like this:</p>
<pre class="lang-json prettyprint-override"><code>{
"Change": null,
"Coordi... | [
{
"answer_id": 74553231,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 2,
"selected": true,
"text": "for f in /root/Desktop/match/jars/44a65820/*; do\n link=\"${f%-44a65820.jar}.jar\";\n ln -s \"$f\" \"/root/Desktop/mat... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6782/"
] |
74,553,270 | <p>I have a record <code>AuthResult</code> with a class object <code>User</code> in it:</p>
<pre><code>public record AuthResult(
User User,
string Token);
public class User
{
public Guid Id { get; set; } = Guid.NewGuid();
public string UserName { get; set; } = null!;
public string Email { get; set... | [
{
"answer_id": 74553682,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": "IConfigurationProvider configuration = new MapperConfiguration(cfg =>\n cfg.CreateMap<AuthResult, A... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11278567/"
] |
74,553,277 | <p>how I can run this command in powershell to all users in the server?</p>
<pre><code>powerShell -sta -file 'E:\Script-Popup\Popup-Message - Done.ps1'
</code></pre>
<p>that on every user who is currently connected to the server, this command will run.</p>
| [
{
"answer_id": 74553682,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": "IConfigurationProvider configuration = new MapperConfiguration(cfg =>\n cfg.CreateMap<AuthResult, A... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20111374/"
] |
74,553,292 | <p>Is it possible to do something like this in c#, where we are trying to call a different method as a part of a conditional statement that uses the "?" operator?</p>
<p><strong>Sample Code</strong></p>
<pre><code> private bool myTenStepMethodVersion()
{
var stepPassed = false;
stepPassed = Ste... | [
{
"answer_id": 74553347,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 3,
"selected": true,
"text": " class StepException : Exception {\n public string Step { get; }\n public StepException(string step) {\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1078009/"
] |
74,553,298 | <p>In C++23, the ranges (sub)library has gained <a href="https://en.cppreference.com/w/cpp/ranges/zip_view" rel="nofollow noreferrer"><code>std::ranges::zip</code></a>, which zips multiple ranges into a single range of <code>std::tuple</code>'s (or pairs). This is nice, and precludes requiring implementing this ourselv... | [
{
"answer_id": 74553299,
"author": "einpoklum",
"author_id": 1593077,
"author_profile": "https://Stackoverflow.com/users/1593077",
"pm_score": 3,
"selected": false,
"text": "std::ranges::zip_transform std::tuple auto add = [](std::tuple t) { \n return std::get<0>(t) + std::get<1>(t) +... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1593077/"
] |
74,553,312 | <p>I am trying to use powershell to find the users that has been newly added to an Active directory group. I export the membership of the groups daily into a csv and is now trying to get the newly added group members by comparing the previous day's and the current day's csv file.</p>
<p>Here is the function I use to ch... | [
{
"answer_id": 74553387,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": "Export-Csv Where-Object samaccountname $ref = Import-Csv \"C:\\test\\members_previous.csv\" \n\nImport-C... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585603/"
] |
74,553,316 | <p>I have a spreadsheet which looks like this,</p>
<pre><code>Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Monday, Tuesday, ...
13-Nov-2022, 14-Nov-2022, 15-Nov-2022, 16-Nov-2022, 17-Nov-2022, ...
1:00, 2:05, 0:30, 2:00, 1:00, 0:05, 0:10, ... | [
{
"answer_id": 74553765,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 3,
"selected": true,
"text": "=TEXT(INDEX({1,2,3,4,5,6,7},MATCH(MAX(SUMIFS(range_of_time_spent,range_of_days,TEXT({1,2,3,4,5,6,7},\"dddd\"))),... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10855529/"
] |
74,553,319 | <p>I'm beginning to use Bevy. I went to their website and started the set up thing, but when I went to compile wouldn't.</p>
<p>It keeps returning this error.</p>
<pre><code>error[E0658]: `let...else` statements are unstable
--> C:\Users\drew0\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_render_macros-0.9... | [
{
"answer_id": 74559928,
"author": "cameron1024",
"author_id": 9186783,
"author_profile": "https://Stackoverflow.com/users/9186783",
"pm_score": 1,
"selected": false,
"text": "let-else rustup update"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20144756/"
] |
74,553,336 | <p>The following code is supposed to add an <code><h1></code> for every page in PDF output. Basically, it steps through the YAML file that defines my guide and, if the URL of the current page matches the URL in the YAML block, it places the <code>title</code> key of the parent block within an <code><h1></co... | [
{
"answer_id": 74559928,
"author": "cameron1024",
"author_id": 9186783,
"author_profile": "https://Stackoverflow.com/users/9186783",
"pm_score": 1,
"selected": false,
"text": "let-else rustup update"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7273897/"
] |
74,553,445 | <p>I have a plot using emmip and I have been successful of modifying the labels of the panels and the x axis label but I have been unsuccessful changing the labels and the order of the legend, any suggestions?</p>
<p>It should be Phonemes by Cognate Status</p>
<p>and the label /k/ - Cognate, /k/ Noncognate, ....</p>
<p... | [
{
"answer_id": 74583803,
"author": "Russ Lenth",
"author_id": 3961566,
"author_profile": "https://Stackoverflow.com/users/3961566",
"pm_score": 0,
"selected": false,
"text": "plot.data <- emmip(<your emmip arguments>, plotit = FALSE)\n ? emmip ggplot()"
},
{
"answer_id": 74592434... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19607817/"
] |
74,553,450 | <p>I have a block of code that I am iterating through a dictionary looking for keywords found and the number of times each is found. The if statement works and returns the expected output if keywords are found. However, the else statement is not working when no keywords are found it should return "No keywords foun... | [
{
"answer_id": 74583803,
"author": "Russ Lenth",
"author_id": 3961566,
"author_profile": "https://Stackoverflow.com/users/3961566",
"pm_score": 0,
"selected": false,
"text": "plot.data <- emmip(<your emmip arguments>, plotit = FALSE)\n ? emmip ggplot()"
},
{
"answer_id": 74592434... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18562555/"
] |
74,553,488 | <p>I have 4 tables in PostgreSQL:</p>
<ol>
<li>Projects</li>
<li>Organizations</li>
<li>Organization_membership</li>
<li>User</li>
</ol>
<pre><code>CREATE TABLE IF NOT EXISTS organization(
id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
CONSTRAINT plan_id_fk FOREIGN KEY (plan_type)
REFERENCES plan(plan... | [
{
"answer_id": 74583803,
"author": "Russ Lenth",
"author_id": 3961566,
"author_profile": "https://Stackoverflow.com/users/3961566",
"pm_score": 0,
"selected": false,
"text": "plot.data <- emmip(<your emmip arguments>, plotit = FALSE)\n ? emmip ggplot()"
},
{
"answer_id": 74592434... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585750/"
] |
74,553,491 | <p>I want to write a minimal FastAPI static file server launched from a script that allows you to specify the directory to share on the command line. Following the <a href="https://fastapi.tiangolo.com/tutorial/static-files/" rel="nofollow noreferrer">example in the FastAPI documentation</a>, I wrote this.</p>
<pre><co... | [
{
"answer_id": 74553706,
"author": "MatsLindh",
"author_id": 137650,
"author_profile": "https://Stackoverflow.com/users/137650",
"pm_score": 2,
"selected": true,
"text": "sys.argv __main__ import uvicorn\nimport sys\nfrom fastapi import FastAPI\nfrom fastapi.staticfiles import StaticFile... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1120370/"
] |
74,553,512 | <p>I am using the react-query package to just return a simple list of products from an api and for some reason it keeps giving this error:</p>
<pre><code>TypeError: Cannot read properties of undefined (reading 'map')
</code></pre>
<p>For some reason it doesn't recognize the products object return and won't iterate over... | [
{
"answer_id": 74555324,
"author": "Miguel Caro",
"author_id": 11206583,
"author_profile": "https://Stackoverflow.com/users/11206583",
"pm_score": -1,
"selected": false,
"text": " const { data: products = [], isLoading } = useQuery('Products', () => \n axios('/api/products').then(... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9132098/"
] |
74,553,533 | <p>I need to find if a string exists in JSON Kraken.com retrieved file:
I get it this way:</p>
<pre><code>$sURL = "https://api.kraken.com/0/public/OHLC?pair=ETHAED&interval=5&since=". strtotime("-1 day");
$ch = curl_init();
$config['useragent'] = 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.... | [
{
"answer_id": 74555324,
"author": "Miguel Caro",
"author_id": 11206583,
"author_profile": "https://Stackoverflow.com/users/11206583",
"pm_score": -1,
"selected": false,
"text": " const { data: products = [], isLoading } = useQuery('Products', () => \n axios('/api/products').then(... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19459726/"
] |
74,553,551 | <p>My data frame has many rows ( over 2 million), averaging around 60,000 per 359 samples.</p>
<p>One of my columns is called samples. I know how to subset the dataframe based on sample number</p>
<pre><code> sample1 <- df[(df$sample ==1), ]
</code></pre>
<p>However, what I am unsure of is whether I can automate th... | [
{
"answer_id": 74555324,
"author": "Miguel Caro",
"author_id": 11206583,
"author_profile": "https://Stackoverflow.com/users/11206583",
"pm_score": -1,
"selected": false,
"text": " const { data: products = [], isLoading } = useQuery('Products', () => \n axios('/api/products').then(... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19122830/"
] |
74,553,563 | <p>I start out with an empty object in the global scope and then I fetch an ID at a time to which I'd like to add prices together with a quantity.
The script iterates through a list and for each row the ID is present, I wish to add <code>quantity: price</code></p>
<p>I want my object to look something like this:</p>
<p... | [
{
"answer_id": 74553614,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 0,
"selected": false,
"text": "if (!obj[id]) obj[id] = {}\nif (!obj[id][qty]) obj[id][qty] = {}\n const ids = ['id1', 'id2']\nconst qtys = ['qty1', ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18519057/"
] |
74,553,602 | <p>I am working with a dataframe in <code>R</code> using <code>tidyverse</code>. I need to unnest it because it contains rows stored as dataframes. My dataframe <code>ex</code> is next (included as <code>dput</code>):</p>
<pre><code>ex
# A tibble: 2 x 2
name1 values
<chr> <list>
1 A <... | [
{
"answer_id": 74553614,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 0,
"selected": false,
"text": "if (!obj[id]) obj[id] = {}\nif (!obj[id][qty]) obj[id][qty] = {}\n const ids = ['id1', 'id2']\nconst qtys = ['qty1', ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18747807/"
] |
74,553,605 | <p>I need to load in pandas a CSV file that is not 100% CSV "compliant", below an example:</p>
<pre><code>"Transaction date";"Accounting date";"Counterparty's data";"Title"
2021-08-22;2021-08-22;" "SPOLEM" ASS "ALDONA" AUGUSTOW ";" Tit... | [
{
"answer_id": 74553614,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 0,
"selected": false,
"text": "if (!obj[id]) obj[id] = {}\nif (!obj[id][qty]) obj[id][qty] = {}\n const ids = ['id1', 'id2']\nconst qtys = ['qty1', ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1066865/"
] |
74,553,651 | <p>I have written a Python script that calls a National Oceanic and Atmospheric Administration (NOAA) endpoint with a zip code and gets a list of weather stations in response. The script then converts the response to a Pandas dataframe.</p>
<p>I believe I have it working correctly based on this <a href="https://replit.... | [
{
"answer_id": 74553746,
"author": "404pio",
"author_id": 1615070,
"author_profile": "https://Stackoverflow.com/users/1615070",
"pm_score": 0,
"selected": false,
"text": "execution_result = get_stations_for_zip()(pd.DataFrame(_arg1))\n get_stations_for_zip df = get_stations_for_zip()\ndf... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2375980/"
] |
74,553,670 | <p>I've seen this question before but the solution to solve it via Import / Export curly braces doesn't seem to be the root cause.</p>
<p>I can trying to add a functional component into my page React.js, the component will include the Video imported from Expo. It seems to cause an error, I feel like it is something to ... | [
{
"answer_id": 74554953,
"author": "basan nofal",
"author_id": 19645465,
"author_profile": "https://Stackoverflow.com/users/19645465",
"pm_score": 0,
"selected": false,
"text": " export default const VideoInstance = () => {\n // Your code\n }\n"
},
{
"answer_id": 74558292,
"a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9221061/"
] |
74,553,697 | <blockquote>
<p>Within my Facebook button I have set an animation to show the word "Facebook" if you hover over it. Although every time I set this in, it doesn't pop. The word "Facebook" has to show to the right if you hover over it. Also, I want my code to be responsive based on the size of a devic... | [
{
"answer_id": 74553846,
"author": "Nijat Mursali",
"author_id": 10489887,
"author_profile": "https://Stackoverflow.com/users/10489887",
"pm_score": 0,
"selected": false,
"text": "display inline-block flex hover .icon .wrapper .button .icon:hover {\n display: flex;\n align-items: cente... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16499019/"
] |
74,553,733 | <p>I have a file with 28 columns and numerous rows >10000. I am splitting this file by the second column called gene_id, so that there are numerous outputs each file with a distinct gene_id.</p>
<pre><code>variant_id gene_id tss_distance ma_samples ma_count maf pval_nominal slope slope_se hg38_chr hg38_pos ref_allel... | [
{
"answer_id": 74553846,
"author": "Nijat Mursali",
"author_id": 10489887,
"author_profile": "https://Stackoverflow.com/users/10489887",
"pm_score": 0,
"selected": false,
"text": "display inline-block flex hover .icon .wrapper .button .icon:hover {\n display: flex;\n align-items: cente... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14614150/"
] |
74,553,752 | <p>I'm trying to create a short program that calls a user's number and records the conversation using Twilio and send the recording to an S3 bucket</p>
<p>Here's a link that does it to a dropbox instead of an S3:
<a href="https://www.twilio.com/blog/recording-saving-outbound-voice-calls-python-twilio-dropbox" rel="nofo... | [
{
"answer_id": 74553846,
"author": "Nijat Mursali",
"author_id": 10489887,
"author_profile": "https://Stackoverflow.com/users/10489887",
"pm_score": 0,
"selected": false,
"text": "display inline-block flex hover .icon .wrapper .button .icon:hover {\n display: flex;\n align-items: cente... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14459020/"
] |
74,553,801 | <p>I am building an animation of stacked bar charts (calling <code>geom_col</code>). I have 100 columns. When I generate the animation I get a lot of white space in what should be filled columns.</p>
<p>See the gif below:</p>
<p><a href="https://i.stack.imgur.com/KsANh.gif" rel="nofollow noreferrer"><img src="https://i... | [
{
"answer_id": 74563718,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 0,
"selected": false,
"text": "value group_by sum filter library('tidyverse')\nlibrary('gganimate')\n\nddf_anim <- data.frame(time = rep(1:50, 200))... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8272788/"
] |
74,553,807 | <p>I am currently running some python code to extract words from a list and create a list of these words.</p>
<p>The list I am using is from a .txt file with some lines from romeo and juliet.</p>
<p>I read in the file, trimmed the whitespace, split each word up, and added these words to a list.</p>
<p>I am now trying t... | [
{
"answer_id": 74563718,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 0,
"selected": false,
"text": "value group_by sum filter library('tidyverse')\nlibrary('gganimate')\n\nddf_anim <- data.frame(time = rep(1:50, 200))... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19967035/"
] |
74,553,838 | <p>I'm new to react and front development any help would be appreciate, please don't make stack overflow a toxic place, laughing or closing the tick you think it is too simple or stupid. No question is stupid</p>
<p>A <code>Button</code> is stored in file <strong>panel.tsx</strong> a <code>Switch</code> is located in <... | [
{
"answer_id": 74563718,
"author": "MarBlo",
"author_id": 4282026,
"author_profile": "https://Stackoverflow.com/users/4282026",
"pm_score": 0,
"selected": false,
"text": "value group_by sum filter library('tidyverse')\nlibrary('gganimate')\n\nddf_anim <- data.frame(time = rep(1:50, 200))... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3004698/"
] |
74,553,848 | <p>I am trying to make the SwiftUI Form translucent. I've tried applying <code>.background(.thinMaterial)</code> modifier to the Form. However, this changes the look of the scroll view background. I'd like to apply translucency to the area that is white in the picture I attached.</p>
<p>Is there a way to do it? I am de... | [
{
"answer_id": 74554112,
"author": "flanker",
"author_id": 3218273,
"author_profile": "https://Stackoverflow.com/users/3218273",
"pm_score": 0,
"selected": false,
"text": "Form {\n /...\n}\n.opacity(0.5). // 0 = fully translucent ... 1 = opaque\n"
},
{
"answer_id": 74554380,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/348796/"
] |
74,553,851 | <p>I have a problem in my project.
I created something like keyboard for hangman game with span.
In click situation I need to have disabled span for that letter and if user choose wrong letter the hangman image should be change.
But when I click any button it looks like it is disabled because I changed the color</p>
<p... | [
{
"answer_id": 74554112,
"author": "flanker",
"author_id": 3218273,
"author_profile": "https://Stackoverflow.com/users/3218273",
"pm_score": 0,
"selected": false,
"text": "Form {\n /...\n}\n.opacity(0.5). // 0 = fully translucent ... 1 = opaque\n"
},
{
"answer_id": 74554380,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585873/"
] |
74,553,852 | <p>I'm trying to use an algorithm in a function.</p>
<p>Should be very simple.</p>
<p>However, regardless of which algorithm I attempt to use, all of them cause the same error when used in a function.</p>
<blockquote>
<p>E0304 no instance of overloaded function "std::begin" matches the argument list</p>
</blo... | [
{
"answer_id": 74554112,
"author": "flanker",
"author_id": 3218273,
"author_profile": "https://Stackoverflow.com/users/3218273",
"pm_score": 0,
"selected": false,
"text": "Form {\n /...\n}\n.opacity(0.5). // 0 = fully translucent ... 1 = opaque\n"
},
{
"answer_id": 74554380,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506604/"
] |
74,553,914 | <pre><code>address = [1,2,3]
p address
new_address = address.reverse!
p new_address
p address.reverse!
</code></pre>
<p>Prints:</p>
<pre><code>[1,2,3]
[3,2,1]
[1,2,3]
</code></pre>
<p>I don't understand why the last print out is 1,2,3 if it is meant to print the address in reverse, the address is 1,2,3</p>
<p>I expecte... | [
{
"answer_id": 74554112,
"author": "flanker",
"author_id": 3218273,
"author_profile": "https://Stackoverflow.com/users/3218273",
"pm_score": 0,
"selected": false,
"text": "Form {\n /...\n}\n.opacity(0.5). // 0 = fully translucent ... 1 = opaque\n"
},
{
"answer_id": 74554380,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568607/"
] |
74,553,927 | <p>I'm playing around with parcel before I used liveserver in vscode and I rarely ran into this problem. I'm trying to add a eventlistener to a inputform. DOM isn't finding the element no matter what I do. I've tried to put a if statement checking if the element exist before putting a listener but it doesn't change any... | [
{
"answer_id": 74553955,
"author": "ray",
"author_id": 636077,
"author_profile": "https://Stackoverflow.com/users/636077",
"pm_score": 1,
"selected": false,
"text": "getElementById const input1 = document.getElementById('input1');\nconsole.log(input1); // null\n\nconst inputlg = document... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20104975/"
] |
74,553,930 | <p>so I have a form with a select option inside it, and I'm trying to get the choice of the user and then insert it into the table and then database, but it doesn't seem to be working. Here is the code I thought was necessary to understand the problem, if there is anything else you need please let me know!</p>
<p><stro... | [
{
"answer_id": 74553955,
"author": "ray",
"author_id": 636077,
"author_profile": "https://Stackoverflow.com/users/636077",
"pm_score": 1,
"selected": false,
"text": "getElementById const input1 = document.getElementById('input1');\nconsole.log(input1); // null\n\nconst inputlg = document... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15775091/"
] |
74,553,938 | <p>I have two columns of data — id's and data values. I can get vlookup to work if I want to return the correct fruit if I provide an id, but I need to also be able to account for cases where multiple values are provided as well.</p>
<p>Put another way, I need to be able to run my vlookup on each item in a comma-separa... | [
{
"answer_id": 74554051,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 3,
"selected": true,
"text": "=IF(ISNUMBER(D4),vlookup(D4,A:B,2,0),join(\",\",query(A:B,\"Select B where A = \"&JOIN(\" OR A = \",split(D4,\",\",1... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2818091/"
] |
74,553,992 | <p>I have tried lots of different ways to sort the list, but it never sorts it.</p>
<pre><code>list = ['american dad S1-EP1', 'american dad S1-EP10', 'american dad S1-EP11', 'american dad S1-EP12', 'american dad S1-EP13', 'american dad S1-EP14', 'american dad S1-EP15', 'american dad S1-EP16', 'american dad S1-EP17', 'a... | [
{
"answer_id": 74554031,
"author": "pigerfier",
"author_id": 20586077,
"author_profile": "https://Stackoverflow.com/users/20586077",
"pm_score": 1,
"selected": false,
"text": "list.sort(key=lambda x: int(\"\".join([i for i in x if i.isdigit()])))\n"
},
{
"answer_id": 74554036,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74553992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20586077/"
] |
74,554,006 | <p>I am working with a data frame with more than 1000 rows and I want to create a new variable based on part of another variable string.</p>
<p>This is short version of the data but I want to extract the numbers from the 'id" variable and create the "height" variable. The data frame should look like some... | [
{
"answer_id": 74554025,
"author": "Ruam Pimentel",
"author_id": 13015865,
"author_profile": "https://Stackoverflow.com/users/13015865",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(readr)\ndf %>% \n mutate(height2 = parse_number(id))\n"
},
{
"answer_id": 7... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74554006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7033156/"
] |
74,554,012 | <p>I am helping a friend to make a time sheet.</p>
<p>he has a time sheet where he logs his activities:</p>
<p>sleep
poker
study
youtube, etc</p>
<p>and wanted to be able to count all the random activites that do not fall into those catagories</p>
<p>i came up with</p>
<p>=COUNTIFS(B18:C28,"<>poker",B18... | [
{
"answer_id": 74554025,
"author": "Ruam Pimentel",
"author_id": 13015865,
"author_profile": "https://Stackoverflow.com/users/13015865",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(readr)\ndf %>% \n mutate(height2 = parse_number(id))\n"
},
{
"answer_id": 7... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74554012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18071449/"
] |
74,554,074 | <p>I started learning C recently, and whenever I try to run this it's giving an error of "a" and "b" undeclared as first use in this function, even, though the course I was watching ran the same code with no erros, he just changed the number to 10 and 15 thats all</p>
<pre><code>#define sum (a,b)(pr... | [
{
"answer_id": 74554157,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "( () #define sum(a,b) (printf(\"%i\", (a) + (b)));\n"
},
{
"answer_id": 74554259,
"author": "pm100",
"... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74554074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20586108/"
] |
74,554,076 | <p>I've an array with arrays of different values that I need to re arrange.</p>
<p><strong>Original Array</strong></p>
<pre><code>$cars = [
[2022, "Corolla"],
[2022, "Toyota"],
[2021, "Corolla"],
[2021, "Toyota"],
[2021, "Honda"]
];
</code></pre>
<p><strong>Ex... | [
{
"answer_id": 74554128,
"author": "Benjamin Penney",
"author_id": 6545526,
"author_profile": "https://Stackoverflow.com/users/6545526",
"pm_score": 1,
"selected": false,
"text": "ResultCars = Cars.reduce((carry, [year, make]) =>\n{\n let item = carry.find(([existingYear]) => existing... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74554076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11118828/"
] |
74,554,098 | <p>I have multiple cards with images inside those cards. I want the images to have rounded corners. The code kind of worked but the rounded corners don't look right.</p>
<p><img src="https://i.stack.imgur.com/b97mT.png" alt="Unwanted result" /></p>
<p>For the images, I'm just using the Bootstrap class <code>rounded</co... | [
{
"answer_id": 74554128,
"author": "Benjamin Penney",
"author_id": 6545526,
"author_profile": "https://Stackoverflow.com/users/6545526",
"pm_score": 1,
"selected": false,
"text": "ResultCars = Cars.reduce((carry, [year, make]) =>\n{\n let item = carry.find(([existingYear]) => existing... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74554098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20433945/"
] |
74,554,103 | <p>In Julia, I would like to randomly generate an array of arbitrary size, where all the elements of the array are complex numbers with absolute value one. Is there perhaps any way to do this within Julia?</p>
| [
{
"answer_id": 74554399,
"author": "Bill",
"author_id": 4282847,
"author_profile": "https://Stackoverflow.com/users/4282847",
"pm_score": 2,
"selected": false,
"text": "randcomplex() = (c = Complex(rand(2)...); c / abs(c))\n\nrandcomplex(numwanted) = [randcomplex() for _ in 1:numwanted]\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74554103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19340302/"
] |
74,554,108 | <p>Good night,</p>
<p>I'm trying to think of a simple excel formula to allow me to get the codes of the most valuables drinks.</p>
<p>I don't wanna use <strong>PivotTable</strong> for this one.</p>
<p>Ex:</p>
<p><a href="https://i.stack.imgur.com/BZCmv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | [
{
"answer_id": 74554399,
"author": "Bill",
"author_id": 4282847,
"author_profile": "https://Stackoverflow.com/users/4282847",
"pm_score": 2,
"selected": false,
"text": "randcomplex() = (c = Complex(rand(2)...); c / abs(c))\n\nrandcomplex(numwanted) = [randcomplex() for _ in 1:numwanted]\... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74554108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14211825/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.