qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,490,803 | <p>When trying to fill a table with rows using v-for it is quite easy to map the v-for elements 1:1 with the rows like:</p>
<pre><code><template>
<table>
<tr v-for="item in items"><td>{{item}}</td></tr>
</table>
</template>
</code></pre>
<p>My question i... | [
{
"answer_id": 74491154,
"author": "Dmitry Arestov",
"author_id": 1032003,
"author_profile": "https://Stackoverflow.com/users/1032003",
"pm_score": 2,
"selected": true,
"text": "<template> nothing <table id=\"t1\">\n <template v-for=\"item in items\">\n <tr><td>{{item.line1}}</... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246383/"
] |
74,490,814 | <p>how can i replace columns with those in transact sql? I only have this code this way.
I could do it directly in sms but I don't understand some things in this code so I prefer to do it directly in transact to be safer.
For example I can make an Id column with int but I don't understand the "Identity" and (... | [
{
"answer_id": 74491108,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 0,
"selected": false,
"text": "(1,1) NOT NULL"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19989353/"
] |
74,490,832 | <p>I am trying to connect database in sql server 2014 with php as follows:</p>
<p>First I have this script in conexaosql.php:</p>
<pre><code>class Conexao
{
private static $connection;
private function __construct(){}
public static function getConnection() {
$pdoConfig = DB_DRIVER . ":"... | [
{
"answer_id": 74513242,
"author": "Anónimo",
"author_id": 20379006,
"author_profile": "https://Stackoverflow.com/users/20379006",
"pm_score": 2,
"selected": true,
"text": "# Microsoft ODBC 17\nsudo su\ncurl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -\n\n#Download a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20379006/"
] |
74,490,843 | <p>I have data as follows:</p>
<pre><code>library(data.table)
dat <- fread("id var
1 thisstring
2 otherstring
3 notthisone")
</code></pre>
<p>I am trying to get a vector of all strings in column <code>var</code> that contain <code>string</code>.</p>
<p>If I do:<... | [
{
"answer_id": 74490876,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 4,
"selected": true,
"text": "value = TRUE grep grep(\"string\", dat$var, value = TRUE)\n#[1] \"thisstring\" \"otherstring\"\n"
},
{
"answe... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8071608/"
] |
74,490,863 | <p>** <strong>Updated with nitro plugin approach</strong> **</p>
<p>I'm using <code>Playwright</code> server-side to get some data from a page that I want to use in my frontend, this the setup using nitro plugin</p>
<ul>
<li><p>Base Project Structure</p>
<pre><code>pages
index.vue
server
db
index.js
plugins
... | [
{
"answer_id": 74490942,
"author": "Adem kriouane",
"author_id": 20320091,
"author_profile": "https://Stackoverflow.com/users/20320091",
"pm_score": 1,
"selected": false,
"text": "export default (nuxtConfig) => ({\n ready: () => {\n // Execute your code here\n }\n});\n import ho... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17700794/"
] |
74,490,870 | <p>So I understand the basics of java programming but when I'm trying to use my little knowledge in android studio it make everything harder having classes and different files needing to be referenced. Coming from python, when making a simple game I would define different functions, then run them in a game loop like</p... | [
{
"answer_id": 74490942,
"author": "Adem kriouane",
"author_id": 20320091,
"author_profile": "https://Stackoverflow.com/users/20320091",
"pm_score": 1,
"selected": false,
"text": "export default (nuxtConfig) => ({\n ready: () => {\n // Execute your code here\n }\n});\n import ho... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20523271/"
] |
74,490,925 | <p>Why referring to a pointer to a derived class that has not yet been created is valid, but not undefined behavior.
<a href="https://godbolt.org/z/zv38Gc4ar" rel="nofollow noreferrer">godbolt.org</a></p>
<pre><code>
#include <iostream>
struct A{
int a;
void foo() {
std::cout << "A = ... | [
{
"answer_id": 74490993,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 3,
"selected": false,
"text": "static_cast B *b = static_cast<B*>(a);"
},
{
"answer_id": 74491133,
"author": "463035818_is_not_a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20453711/"
] |
74,490,937 | <p>I have this Dataframe that I want to get all possible combinations of this dataframe across both rows and columns.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>A_Points</th>
<th>B_Points</th>
<th>C_Points</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td... | [
{
"answer_id": 74490993,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 3,
"selected": false,
"text": "static_cast B *b = static_cast<B*>(a);"
},
{
"answer_id": 74491133,
"author": "463035818_is_not_a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540224/"
] |
74,490,941 | <p>I have 3 different Accordions that a single state controls their open and close state like so:</p>
<pre><code> const [accordionOpen, setAccordionOpen] = useState({
countryOfOriginAccordion: true,
schoolAccordion: false,
areaOfStudyAccordion: false,
});
</code></pre>
<p>ideally, I am setting each state ... | [
{
"answer_id": 74490972,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 0,
"selected": false,
"text": "const setValue = (key:string, value:string) => {\n setAccordionOpen((previousState) => ({\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9806667/"
] |
74,490,953 | <p>I am working on a Shopify store where there are multiple divs like below:</p>
<pre><code><div class="options-selection__option-values" data-variant-option="" data-variant-option-index="0" data-variant-option-chosen-value="One"></div>
<div class="options-se... | [
{
"answer_id": 74491038,
"author": "Marios",
"author_id": 20229075,
"author_profile": "https://Stackoverflow.com/users/20229075",
"pm_score": 0,
"selected": false,
"text": "Uncaught SyntaxError: Unexpected end of input\" $(document).ready(function() {\n\n$('.options-selection__option-val... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4803789/"
] |
74,491,025 | <p>I've been trying to get the first block of this accordion to open by default but haven't been able to. All of the examples I see are in jQuery and the code looks slightly different. Any and all help is appreciated. This is for a report I'm building.</p>
<p>[Here is the code.][1]</p>
<p><a href="https://jsfiddle.net/... | [
{
"answer_id": 74491038,
"author": "Marios",
"author_id": 20229075,
"author_profile": "https://Stackoverflow.com/users/20229075",
"pm_score": 0,
"selected": false,
"text": "Uncaught SyntaxError: Unexpected end of input\" $(document).ready(function() {\n\n$('.options-selection__option-val... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/341569/"
] |
74,491,059 | <p>I currently have Azure Data Factory on Prod. It is already functional and has pipelines, Linked Services etc.</p>
<p>Now I want to deploy Develop, have built Deplyoment pipelines and am able to move Prod to Dev.</p>
<p>However, I need to make a few changes to make Dev work, e.g. I need to adjust parameters of Linked... | [
{
"answer_id": 74491038,
"author": "Marios",
"author_id": 20229075,
"author_profile": "https://Stackoverflow.com/users/20229075",
"pm_score": 0,
"selected": false,
"text": "Uncaught SyntaxError: Unexpected end of input\" $(document).ready(function() {\n\n$('.options-selection__option-val... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14789035/"
] |
74,491,090 | <p>I have a dataframe which was originally a survey where people could answer their dog breeds and their favorit dog breed. Obviously each person can have multiple answers which will be displayed in the same categorie but separated with a comma. However I can't figure out how to count the number of times each breed was... | [
{
"answer_id": 74491141,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 2,
"selected": false,
"text": "strsplit table > (owned <- as.data.frame(table(trimws(unlist(strsplit(test$dogs_owned, split=\",\"))))))\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19749748/"
] |
74,491,128 | <p>I have a dataframe "data" that contains</p>
<ul>
<li>employee ID ("CPNo") - int</li>
<li>Gender - factor</li>
<li>Job Role - factor</li>
<li>Country - factor</li>
<li>Annual Salary - int</li>
</ul>
<p>I want to run a t-test for each job role in each country to see if there is a significant paygap... | [
{
"answer_id": 74491141,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 2,
"selected": false,
"text": "strsplit table > (owned <- as.data.frame(table(trimws(unlist(strsplit(test$dogs_owned, split=\",\"))))))\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14792431/"
] |
74,491,144 | <p><code>'[b426be49-0621-4240-821f-79bddf378e1e,c9e41cbb-b0d5-4833-bf72-0bf79ca31dcf]'</code></p>
<p>I tried using JSON.parse(string)
But got
Uncaught SyntaxError: Unexpected token 'b', "[b426be49-0"... is not valid JSON</p>
<p>I am expecting it to be :</p>
<pre><code>[b426be49-0621-4240-821f-79bddf378e1e,c9e... | [
{
"answer_id": 74491202,
"author": "muka.gergely",
"author_id": 2316540,
"author_profile": "https://Stackoverflow.com/users/2316540",
"pm_score": 3,
"selected": true,
"text": "regexp const s = '[b426be49-0621-4240-821f-79bddf378e1e,c9e41cbb-b0d5-4833-bf72-0bf79ca31dcf]'\n\nconst splitS =... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13267498/"
] |
74,491,161 | <p>I have a pandas DataFrame with a column <code>Size</code>, on which I filter first and then group by and count records per group. The result contains also rows for the groups which were filtered out before, but with a count of 0:</p>
<pre class="lang-py prettyprint-override"><code>(
df[df["Size"].isin(... | [
{
"answer_id": 74491384,
"author": "Coco Kuang",
"author_id": 20369539,
"author_profile": "https://Stackoverflow.com/users/20369539",
"pm_score": -1,
"selected": false,
"text": "df[df[\"Size\"].isin([\"XXS\", \"XS\", \"S\", \"M\", \"L\", \"XL\", \"XXL\"])]\n .groupby(\"Size\")\n .a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9519322/"
] |
74,491,174 | <p>I have a basic MAUI project and I want to set an SVG file as the splash screen.</p>
<p>I have tried to modify the csproj file using the code below:
</p>
<p>As you can see the photo is cropped in a circle
<img src="https://i.stack.imgur.com/k6meY.png" /></p>
<p>How can I make the splash screen display the entire phot... | [
{
"answer_id": 74491384,
"author": "Coco Kuang",
"author_id": 20369539,
"author_profile": "https://Stackoverflow.com/users/20369539",
"pm_score": -1,
"selected": false,
"text": "df[df[\"Size\"].isin([\"XXS\", \"XS\", \"S\", \"M\", \"L\", \"XL\", \"XXL\"])]\n .groupby(\"Size\")\n .a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16695191/"
] |
74,491,184 | <p>What I have:</p>
<pre><code>string = "string"
range_list = list(range(10))
</code></pre>
<p>What I want:</p>
<pre><code>['string0',
'string1',
'string2',
'string3',
'string4',
'string5',
'string6',
'string7',
'string8',
'string9']
</code></pre>
<p>What I usually do:</p>
<pre><code>import pandas as... | [
{
"answer_id": 74491211,
"author": "ILS",
"author_id": 10017662,
"author_profile": "https://Stackoverflow.com/users/10017662",
"pm_score": 1,
"selected": false,
"text": "[f\"{string}{idx}\" for idx in range_list]\n"
},
{
"answer_id": 74491274,
"author": "Rodimeniya",
"aut... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11728488/"
] |
74,491,196 | <p>I have the following data frame called "CNO_2020_Monthly". I have only 3 months populated on this data frame.</p>
<pre><code> Var1 Freq
1 Oct 2020 4
2 Nov 2020 5
3 Dec 2020 6
</code></pre>
<p>I want to create a month.name index. For that, I used the code below:</p>
<pre><code>CNO_2020_Monthly... | [
{
"answer_id": 74491340,
"author": "G. Grothendieck",
"author_id": 516548,
"author_profile": "https://Stackoverflow.com/users/516548",
"pm_score": 1,
"selected": false,
"text": "library(zoo)\nformat(as.yearmon(CNO$Var1), \"%B\")\n## [1] \"October\" \"November\" \"December\"\n month.name... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16906500/"
] |
74,491,204 | <p>What is the rusticle way to to represent the an i64 [-9223372036854775808, 9223372036854775807] into the u64 domain [0, 18446744073709551615]. So for example 0 in i64 is 9223372036854775808 in u64.</p>
<p>Here is what I have done.</p>
<pre><code> let x: i64 = -10;
let x_transform = ((x as u64) ^ (1 << 6... | [
{
"answer_id": 74491364,
"author": "Masklinn",
"author_id": 8182118,
"author_profile": "https://Stackoverflow.com/users/8182118",
"pm_score": 1,
"selected": false,
"text": "let x_transform = u64::from_ne_bytes(x.to_ne_bytes());\nlet x_original = i64::from_ne_bytes(x_transform.to_ne_bytes... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19634011/"
] |
74,491,205 | <p>I'm trying to run a .py file and in the file I have this import</p>
<pre><code>from config.wsgi import *
import os
from django.template.loader import get_template
from weasyprint import HTML, CSS
from config import settings
</code></pre>
<p>The whole project works, if I set runserver, the project starts without any ... | [
{
"answer_id": 74491364,
"author": "Masklinn",
"author_id": 8182118,
"author_profile": "https://Stackoverflow.com/users/8182118",
"pm_score": 1,
"selected": false,
"text": "let x_transform = u64::from_ne_bytes(x.to_ne_bytes());\nlet x_original = i64::from_ne_bytes(x_transform.to_ne_bytes... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20447571/"
] |
74,491,231 | <p>I display some events with current date and how many days left. The first span of days-left has opacity 0. I want when I hover on the second span (tour-date) then change opacity 1 for the first span (days-left).</p>
<p>I can solve this with eventlistener or jQuery but before I do it I want to know if there option wi... | [
{
"answer_id": 74491255,
"author": "Nuro007",
"author_id": 19669556,
"author_profile": "https://Stackoverflow.com/users/19669556",
"pm_score": 1,
"selected": false,
"text": ":hover transition \n.days-left {\n opacity: 0;\n transition: opacity 0.5s;\n}\n\n.days-left:hover {\n opacity: ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15906386/"
] |
74,491,234 | <p>I am trying to create a uri, but for some reason is the path being decoded everytime, causing problems with my browser trying to access the page the uri build?</p>
<p>POC:</p>
<pre><code>using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Hell... | [
{
"answer_id": 74492851,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 1,
"selected": false,
"text": ".path .query ?d=0 .query UriBuilder UriBuilder baseUri = new UriBuilder(\"http://www.contoso.com/default.aspx?Par... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7400630/"
] |
74,491,243 | <p>I've got a ListView within a Column. In that Listview I want to place a couple of ListTiles. Unfortunately the tiles behave weird when scrolling. They are shown on top of the other widget placed in the Column</p>
<p><a href="https://i.stack.imgur.com/2qjSv.png" rel="nofollow noreferrer"><img src="https://i.stack.img... | [
{
"answer_id": 74492851,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 1,
"selected": false,
"text": ".path .query ?d=0 .query UriBuilder UriBuilder baseUri = new UriBuilder(\"http://www.contoso.com/default.aspx?Par... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794088/"
] |
74,491,251 | <p>I have a Navbar that has a <code><li></code> and one of those list items have a ID of <strong>Navbar-login-btn</strong>. I am able to modify just that ID in the css, however whenever I try to use the <strong>:hover</strong> function on it; it does not work.</p>
<p>Is there something I am doing wrong here, beca... | [
{
"answer_id": 74492851,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 1,
"selected": false,
"text": ".path .query ?d=0 .query UriBuilder UriBuilder baseUri = new UriBuilder(\"http://www.contoso.com/default.aspx?Par... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20422283/"
] |
74,491,264 | <p>npm ERR! code ENOENT</p>
<p>npm ERR! syscall open</p>
<p>npm ERR! path /Users/giovanylopes/bootcamp-projects/react-nodejs-example/package.json</p>
<p>npm ERR! errno -2</p>
<p>npm ERR! enoent ENOENT: no such file or directory, open '/Users/giovanylopes/bootcamp-projects/react-nodejs-example/package.json'</p>
<p>npm E... | [
{
"answer_id": 74492851,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 1,
"selected": false,
"text": ".path .query ?d=0 .query UriBuilder UriBuilder baseUri = new UriBuilder(\"http://www.contoso.com/default.aspx?Par... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19888610/"
] |
74,491,269 | <p>We have had several instances where new stories have been added to the backlog and then people are confused because the active sprint has new stories that haven't been refined - from the backlog view, adding a new Story always seems to add it to the current sprint iteration.</p>
<p><a href="https://i.stack.imgur.com... | [
{
"answer_id": 74492851,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 1,
"selected": false,
"text": ".path .query ?d=0 .query UriBuilder UriBuilder baseUri = new UriBuilder(\"http://www.contoso.com/default.aspx?Par... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/197229/"
] |
74,491,279 | <p>My dataframe has 22 variables. this is a simplified sample. the variables include x1,x2,y1_,y2_. i want to create a new variable. the variable values are <code>x1*y1_+x2*y2_</code>. the code is as follows:</p>
<pre class="lang-r prettyprint-override"><code>df <- data.frame(x1=c(0,0,0,1),x2=c(0,0,0,1),y1_=c(3,0,2,... | [
{
"answer_id": 74491378,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 0,
"selected": false,
"text": "df$var <- do.call(`+`, \n lapply(split.default(df, gsub(\".*([0-9]+)_?$\", \"\\\\1\", names(df)... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16273736/"
] |
74,491,306 | <p>I have an array and a variable :</p>
<pre><code>string[] StringArray = { "foo bar foo $ bar $ foo bar $" };
string check = "$";
</code></pre>
<p>And I want to remove the "$" so the output will be :</p>
<pre><code>foo bar foo bar foo bar
</code></pre>
| [
{
"answer_id": 74491351,
"author": "Josh Adams",
"author_id": 8382067,
"author_profile": "https://Stackoverflow.com/users/8382067",
"pm_score": 2,
"selected": false,
"text": "string[] StringArray = { \"foo bar foo $ bar $ foo bar $\" };\nstring check = \"$\";\n\nvar noDollaBillsYall = St... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16294873/"
] |
74,491,310 | <p>I have a Xamarin Android App in which I need to check the VersionName. Here is the function call:</p>
<pre><code>var appVersion = PackageManager.GetPackageInfo(PackageName, 0).VersionName;
</code></pre>
<p>It has been working fine. All of a sudden with the last Android OS update, the function call is deprecated. ... | [
{
"answer_id": 74491351,
"author": "Josh Adams",
"author_id": 8382067,
"author_profile": "https://Stackoverflow.com/users/8382067",
"pm_score": 2,
"selected": false,
"text": "string[] StringArray = { \"foo bar foo $ bar $ foo bar $\" };\nstring check = \"$\";\n\nvar noDollaBillsYall = St... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3074765/"
] |
74,491,381 | <p>I have a Dialog that I cant close when I press the button this is my code, I believe that is for the if cycle, but I need it to make it true under those circumstances, any idea that could help me here?</p>
<pre><code>@Composable
fun PopupWindowDialog(
parentUiState: ParentHomeUiState,
) {
val openDialog ... | [
{
"answer_id": 74491581,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 3,
"selected": true,
"text": ".showInAppFeedback val openDialog = remember { mutableStateOf(false) }\n\n...\n...\n\nif (!parentUiState.showInAppFeedb... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10625391/"
] |
74,491,449 | <p>I am looking to remove duplicate rows based on the values in a column ("Name"), but append the corresponding string values in another column("Occupation").</p>
<p>Duplicate entry is "Jack"</p>
<p>I have a dataframe:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr... | [
{
"answer_id": 74491549,
"author": "sophocles",
"author_id": 9167382,
"author_profile": "https://Stackoverflow.com/users/9167382",
"pm_score": 1,
"selected": true,
"text": "df.groupby('Name',as_index=False).agg(\n {'center':'first','Occupation':lambda x: ' '.join(x)}\n )\n Name... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13663383/"
] |
74,491,487 | <p>Having a <code><nullable>enabled</nullable></code> in project settings, having the following class</p>
<pre><code>public class Car
{
public required string Name { get; init; }
}
</code></pre>
<p>and deserializing it from string:</p>
<pre><code>System.Text.Json.JsonSerializer.Deserialize<Car>(&q... | [
{
"answer_id": 74491583,
"author": "merlinabarzda",
"author_id": 10163557,
"author_profile": "https://Stackoverflow.com/users/10163557",
"pm_score": 2,
"selected": false,
"text": "public class Car\n{\n [JsonProperty(Required = Required.Always)]\n public string Name { get; init; }\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/963935/"
] |
74,491,495 | <p>I need to make sure we have support to create a hierarchy table based on a "father/son" table.
Example:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">F</th>
<th style="text-align: right;">S</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left... | [
{
"answer_id": 74491745,
"author": "Lajos Arpad",
"author_id": 436560,
"author_profile": "https://Stackoverflow.com/users/436560",
"pm_score": 2,
"selected": false,
"text": "SELECT L0.F AS L, L1.F AS L1, L2.F AS L2, L3.S AS L3\nFROM t L0\nLEFT JOIN t L1\nON L0.S = L1.F\nLEFT JOIN t L2\nO... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7673528/"
] |
74,491,530 | <p>Does microservice artchitecture/ rest api standards allow for different structures for different response codes like, say, for 200 and 207 ?</p>
<p>If yes, how can I implement the same in my spring boot restful application ?</p>
| [
{
"answer_id": 74596422,
"author": "The-Proton-Resurgence",
"author_id": 4939287,
"author_profile": "https://Stackoverflow.com/users/4939287",
"pm_score": 0,
"selected": false,
"text": "ResponseEntity<Object> @GetMapping(path = \"/demo/example\")\n public ResponseEntity<Object> getData (... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13548254/"
] |
74,491,538 | <p>I am given <code>k</code> numbers of <code>LinkedList<Integer></code> and I'm trying to put them into a <code>PriorityQueue p</code> in order to sort it.</p>
<p>However, I'm having trouble trying to convert it back into a <code>LinkedList<Integer></code> from the Priority Queue that I have declared.</p>
... | [
{
"answer_id": 74491891,
"author": "Sagar Gangwal",
"author_id": 5809720,
"author_profile": "https://Stackoverflow.com/users/5809720",
"pm_score": 0,
"selected": false,
"text": "flatMap public class MultiMergeWay {\n public static void main(String[] args) {\n LinkedList<Integer... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18984687/"
] |
74,491,593 | <p>my app got error "Type 'String' is not a subtype of type 'int' of 'index'. This is because i want to get data with a string id. But i use listview.builder and it can't accept a string data
this is my code</p>
<pre><code>class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@... | [
{
"answer_id": 74491891,
"author": "Sagar Gangwal",
"author_id": 5809720,
"author_profile": "https://Stackoverflow.com/users/5809720",
"pm_score": 0,
"selected": false,
"text": "flatMap public class MultiMergeWay {\n public static void main(String[] args) {\n LinkedList<Integer... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540659/"
] |
74,491,674 | <p>I am trying to have a list of checkboxes with different values that then will populate into a multi-line textbox based on the selection. I will need to have the list be dynamic between users checking and unchecking boxes and having these populate by their selection into this textbox.</p>
<p><a href="https://i.stack.... | [
{
"answer_id": 74491891,
"author": "Sagar Gangwal",
"author_id": 5809720,
"author_profile": "https://Stackoverflow.com/users/5809720",
"pm_score": 0,
"selected": false,
"text": "flatMap public class MultiMergeWay {\n public static void main(String[] args) {\n LinkedList<Integer... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13486871/"
] |
74,491,679 | <p>I'm looking to sort a list of of strings which illustrate dependencies (the structure of a Bayesian Networks determined through the PC Algorithm).</p>
<p>e.g.</p>
<pre><code>verbose_struct = ['A', 'C|A,E', 'E', 'B|C,D', 'D']
</code></pre>
<pre><code>sorted_struct = ['A', 'E', 'D', 'C|A,E', 'B|C,D']
</code></pre>
<p>... | [
{
"answer_id": 74492217,
"author": "amirhm",
"author_id": 4529589,
"author_profile": "https://Stackoverflow.com/users/4529589",
"pm_score": 0,
"selected": false,
"text": "import queue\n\na = list(filter(lambda x: len(x) == 1, verbose_struct ))\nb = {x.split('|')[0]: tuple(x.split('|')[1]... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16488477/"
] |
74,491,681 | <p>After requesting it for the backend, I want to display the product image to the user.</p>
<p>the problem is:
the API response with PNG image found the product image but if the product has no image the API response is with (204 NO Content), so I need to display the default image instead.</p>
<p>after searching I foun... | [
{
"answer_id": 74492217,
"author": "amirhm",
"author_id": 4529589,
"author_profile": "https://Stackoverflow.com/users/4529589",
"pm_score": 0,
"selected": false,
"text": "import queue\n\na = list(filter(lambda x: len(x) == 1, verbose_struct ))\nb = {x.split('|')[0]: tuple(x.split('|')[1]... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13546478/"
] |
74,491,685 | <p>Here is some code:</p>
<pre><code>declare const foo: Record<string, number>
const x = foo['some-key']
</code></pre>
<p>TypeScript says <code>x</code> has type <code>number</code>.</p>
<p>It <strong>should</strong> be <code>number | undefined</code>, because there's no guarantee that <code>some-key</code> exis... | [
{
"answer_id": 74491842,
"author": "geisterfurz007",
"author_id": 6707985,
"author_profile": "https://Stackoverflow.com/users/6707985",
"pm_score": 2,
"selected": false,
"text": "noUncheckedIndexedAccess strict Record<int, T> Record<string, number> number | undefined string number"
},
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/414825/"
] |
74,491,687 | <p>I'm trying to update an application built with expo + react native and I encounter the last problem.</p>
<p>expo.dev
<a href="https://i.stack.imgur.com/vzuqo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vzuqo.png" alt="enter image description here" /></a></p>
<p>Visual Code terminal</p>
<pre><c... | [
{
"answer_id": 74535989,
"author": "Pruteanu Alexandru",
"author_id": 12403963,
"author_profile": "https://Stackoverflow.com/users/12403963",
"pm_score": 1,
"selected": false,
"text": "require File.join(File.dirname(`node --print \"require.resolve('expo/package.json')\"`), \"scripts/auto... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12403963/"
] |
74,491,713 | <p>What is the usage of tilde symbol (~) in Oracle.
Please share me the output for the below query if we are using the column name and table name with two tilde symbols.</p>
<p><strong>SELECT ~column_name~ from ~Table_name~</strong></p>
| [
{
"answer_id": 74495884,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "_ $ # . @ $ # \\0 SELECT ~column_name~ from ~Table_name~\n ~column_name~ ~Table_name~ \" ~ _ $ # ORA-00911: invalid char... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12517359/"
] |
74,491,723 | <p>Let's say I have this script:</p>
<pre><code>const BusInfo = [
{
code: "B31",
destination: "Toronto"
},
{
code: "HJ1",
destination: "Montreal"
}
]
</code></pre>
<p>How would I be able to put that information in my html document? ... | [
{
"answer_id": 74493148,
"author": "TheBugCoder",
"author_id": 18866858,
"author_profile": "https://Stackoverflow.com/users/18866858",
"pm_score": 0,
"selected": false,
"text": "<p id=\"destination\">Destination</p> document.querySelector('#destination').textContent = BusInfo.destination... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20305399/"
] |
74,491,739 | <p>I am trying to make a program, that tells me when a note has been pressed.</p>
<p>I have the following notes exported as a <code>.wav</code> file <em>(The C Major Scale 4 times with different rhythms, dynamics and in different octaves)</em>:
<a href="https://i.stack.imgur.com/bDlBz.png" rel="nofollow noreferrer"><im... | [
{
"answer_id": 74493148,
"author": "TheBugCoder",
"author_id": 18866858,
"author_profile": "https://Stackoverflow.com/users/18866858",
"pm_score": 0,
"selected": false,
"text": "<p id=\"destination\">Destination</p> document.querySelector('#destination').textContent = BusInfo.destination... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13984609/"
] |
74,491,748 | <p>I would like to merge two columns into one but I am not sure how to do this efficiently. My df looks like this:</p>
<pre><code>col1 col2
0.4 -0.9
0.2 -0.5
-0.1 0.2
-0.2 0.4
0.8 -0.6
</code></pre>
<p>So if one column is positive, the other one is always negative. But I would like to have all negative... | [
{
"answer_id": 74491844,
"author": "Rabinzel",
"author_id": 15521392,
"author_profile": "https://Stackoverflow.com/users/15521392",
"pm_score": 2,
"selected": false,
"text": "col2 m = df['col1'] < 0 \ndf['col1'] = df['col1'].mask(m).fillna(df['col2'])\nprint(df)\n col1 col2\n0 0.4 ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20127965/"
] |
74,491,756 | <p>apologies in advance if this question is stupid but:</p>
<p>I have an interface:</p>
<pre><code>template <class T>
class IEqualCompare {
public:
virtual bool IsEqual(const T b) = 0;
bool operator== (const T b) { return this->IsEqual(b); } //Both are implemented in cpp file
bool operator!= (c... | [
{
"answer_id": 74494672,
"author": "YurkoFlisk",
"author_id": 3162368,
"author_profile": "https://Stackoverflow.com/users/3162368",
"pm_score": 1,
"selected": false,
"text": "IsEqual const IsEqual IsEqual T this T* IsEqual T template<typename T>\nclass AddEqualComparisons {\npublic:\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540421/"
] |
74,491,765 | <p>I am probably facing a basic problem. I would like to create TimePickers as in this project link: <a href="https://sourceforge.net/projects/time-picker/" rel="nofollow noreferrer">TimePickerProject</a></p>
<p>This project was given as reference in one of the Stack overflow answers <a href="https://stackoverflow.com/... | [
{
"answer_id": 74515179,
"author": "Jiale Xue - MSFT",
"author_id": 16764901,
"author_profile": "https://Stackoverflow.com/users/16764901",
"pm_score": 3,
"selected": true,
"text": "Opulos folder Opulos/Core/UI/TimePicker.cs public TimePicker() :this(3, true, true, true, true) {\n\n}\n"
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5384988/"
] |
74,491,769 | <p>I have homework that asks me to use a .class file for my project, but I don't know how to use those files in a .java file. This is the project structure</p>
<pre><code>agentes.class
datos_confidenciales.class
II_Parcial_2007_1.doc
Main.java
numeros.class
</code></pre>
<p>I mean, I got to make a class called <code>Ma... | [
{
"answer_id": 74492037,
"author": "MJG",
"author_id": 20283130,
"author_profile": "https://Stackoverflow.com/users/20283130",
"pm_score": -1,
"selected": false,
"text": "numeros"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13542764/"
] |
74,491,785 | <p>Every time I dump my structure.sql on a rails app, I get PROCEDURE over FUNCTION. FUNCTION is our default and I have to commit the file in parts which is annoying and sometimes I miss lines which is even worse, as it is a rather big structure.sql file.</p>
<p>git diff example:</p>
<pre><code>-CREATE TRIGGER cache_co... | [
{
"answer_id": 74492037,
"author": "MJG",
"author_id": 20283130,
"author_profile": "https://Stackoverflow.com/users/20283130",
"pm_score": -1,
"selected": false,
"text": "numeros"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3920497/"
] |
74,491,796 | <p>I like to make a somewhat easy calculation on the rows of my data frame and used to use <code>.iterrows()</code> but the the operation is very slow. Now I wonder if I can use <code>.apply()</code> to achieve the same thing to get it done faster. It could also be that there is a totally differnt option, which I'm jus... | [
{
"answer_id": 74491952,
"author": "kakben",
"author_id": 5550697,
"author_profile": "https://Stackoverflow.com/users/5550697",
"pm_score": 2,
"selected": false,
"text": "d = np.array([ [10,15,12,7],\n [20,10,17,21]])\ndf = pd.DataFrame(d, columns=[\"ID_1\",\"ID_2\",\"ID_... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12467446/"
] |
74,491,820 | <p>It should take multiple words and output a combined version, where each word is separated by a dollar sign $.</p>
<p>For example, for the words "hello", "how", "are", "you", the output should be "$hello$how$are$you$".</p>
<p><div class="snippet" data-lang="js" data-h... | [
{
"answer_id": 74492003,
"author": "mplungjan",
"author_id": 295783,
"author_profile": "https://Stackoverflow.com/users/295783",
"pm_score": 1,
"selected": false,
"text": "Array.join class Add {\n constructor(...words) {\n this.words = words;\n }\n all() {\n const output = this.... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540744/"
] |
74,491,840 | <p>i have added a second 2 ssh keys and added the needed config
in ubuntu WSL2 ~/.ssh</p>
<pre><code> Host github-key2
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/key2
</code></pre>
<p>so in UBUNTU this works:</p>
<pre><code> git clone git@github-key2:vendo... | [
{
"answer_id": 74507228,
"author": "hakre",
"author_id": 367456,
"author_profile": "https://Stackoverflow.com/users/367456",
"pm_score": -1,
"selected": false,
"text": "vendor-dir vendor platform composer.json"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1970576/"
] |
74,491,843 | <p>Can someone please help me return the highest speed (69) from the following Json array using javascript. Thanks</p>
<pre class="lang-json prettyprint-override"><code> [
{
"imei": "1234567",
"data_bucket": "19314",
"timestamp&... | [
{
"answer_id": 74492059,
"author": "Nijat Mursali",
"author_id": 10489887,
"author_profile": "https://Stackoverflow.com/users/10489887",
"pm_score": 0,
"selected": false,
"text": "let max = Math.max(...json.map((items)=> items.speed))\nconsole.log(max);\n const json = [\n {\n \"imei\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3913800/"
] |
74,491,853 | <p>I am trying to scale and skew a bitmap in SkiaSharp with an affine matrix, however; the results always cut part of the resulting bitmap. I am also not sure if my affine matrix has the correct values.</p>
<p>Here is a diagram of what I am trying to accomplish: on the left is the original image. It has a bitmap size o... | [
{
"answer_id": 74552267,
"author": "Maku",
"author_id": 1768606,
"author_profile": "https://Stackoverflow.com/users/1768606",
"pm_score": 2,
"selected": true,
"text": "public SKBitmap ApplyAffine(SKBitmap origBitmap, SKSizeI newSize, SKPointI xyRotation)\n{\n // mcoo: skew is the tang... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5792527/"
] |
74,491,856 | <p>I am learning Redux Toolkit. From a React POV it seems very intuitive to access whatever part of the state you need from within useSelector using an inline arrow function, and then conduct any calculations. As an example consider a cart item with its data (like item count) in redux store.</p>
<pre><code>function Car... | [
{
"answer_id": 74491857,
"author": "sayandcode",
"author_id": 18620006,
"author_profile": "https://Stackoverflow.com/users/18620006",
"pm_score": 2,
"selected": false,
"text": "useSelector useSelector useSelector useSelector dispatch() useSelector 4 === 4 // true\n'itemA' === 'itemA // t... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18620006/"
] |
74,491,889 | <p>Since <a href="https://en.cppreference.com/w/cpp/iterator/iterator" rel="nofollow noreferrer">iterator</a> is deprecated, I began converting iterators in my code base to use non-deprecated constructs. I could not seem to make my indirect iterator compliant with the <code>std::forward_iterator</code> concept unless ... | [
{
"answer_id": 74491857,
"author": "sayandcode",
"author_id": 18620006,
"author_profile": "https://Stackoverflow.com/users/18620006",
"pm_score": 2,
"selected": false,
"text": "useSelector useSelector useSelector useSelector dispatch() useSelector 4 === 4 // true\n'itemA' === 'itemA // t... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17841694/"
] |
74,491,895 | <p>I have this dataset:</p>
<pre class="lang-js prettyprint-override"><code>const dataset = [
{ date: "2022-01-01", category: "red", value: 10 },
{ date: "2022-01-01", category: "blue", value: 20 },
{ date: "2022-01-01", category: "gold", value: 30 },
... | [
{
"answer_id": 74511798,
"author": "Lucas Arcanjo",
"author_id": 8589377,
"author_profile": "https://Stackoverflow.com/users/8589377",
"pm_score": 3,
"selected": true,
"text": "getStackedSeries date category value start end export function getStackedSeries<T extends Datum>(\n data: T[],... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13415477/"
] |
74,491,900 | <p>I have a linked list for a catalog and book. I am trying to filter by author and return with the books that are of exact match, however, it says that my book type has no such attribute whenever i run it. I also try to upper case the author names so that it is consistent and match will return even if input are of dif... | [
{
"answer_id": 74492047,
"author": "emilyisstewpid",
"author_id": 19940541,
"author_profile": "https://Stackoverflow.com/users/19940541",
"pm_score": 3,
"selected": true,
"text": ".capitalize() list comprehension book Book \"author\" author author Book author.author.capitalize() def filt... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20250841/"
] |
74,491,949 | <p>Say I have a dataframe-</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
<th>Column B</th>
</tr>
</thead>
<tbody>
<tr>
<td>id1</td>
<td>blue</td>
</tr>
<tr>
<td>id1</td>
<td>red</td>
</tr>
<tr>
<td>id1</td>
<td>grey</td>
</tr>
<tr>
<td>id2</td>
<td>red</td>
</tr>
<tr>
<td>id... | [
{
"answer_id": 74492047,
"author": "emilyisstewpid",
"author_id": 19940541,
"author_profile": "https://Stackoverflow.com/users/19940541",
"pm_score": 3,
"selected": true,
"text": ".capitalize() list comprehension book Book \"author\" author author Book author.author.capitalize() def filt... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20388122/"
] |
74,491,956 | <p>I have updated my original post as have got a bit further and have the querying of my CW Alarms part of my code working. The below now outputs the state of my CW Alarms in the console, and in the format I want. What I'm now trying to do is take the output and upload this as a text file to an S3 bucket. Is this possi... | [
{
"answer_id": 74492047,
"author": "emilyisstewpid",
"author_id": 19940541,
"author_profile": "https://Stackoverflow.com/users/19940541",
"pm_score": 3,
"selected": true,
"text": ".capitalize() list comprehension book Book \"author\" author author Book author.author.capitalize() def filt... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12019122/"
] |
74,491,974 | <p>I have two large tables - Table_A and Table_B - that I want to join on the ID field. "ID" in Table_A is a column and "IDs" in Table_B is an array</p>
<pre><code>Table_A:
ID | City |
----+------------+
101 | London |
102 | Paris |
103 | Rome |
104 | Copenhagen |
105... | [
{
"answer_id": 74492047,
"author": "emilyisstewpid",
"author_id": 19940541,
"author_profile": "https://Stackoverflow.com/users/19940541",
"pm_score": 3,
"selected": true,
"text": ".capitalize() list comprehension book Book \"author\" author author Book author.author.capitalize() def filt... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539976/"
] |
74,491,977 | <p>We have some endpoints that we want to change but still want to keep using old ones for some time.</p>
<p>Example: Current Endpoint: /download -> New Endpoint: /document/download. We want to use both.</p>
<p>The Endpoints are defined in a class.
Current:</p>
<pre><code>class Endpoints {
public static final DOCU... | [
{
"answer_id": 74492047,
"author": "emilyisstewpid",
"author_id": 19940541,
"author_profile": "https://Stackoverflow.com/users/19940541",
"pm_score": 3,
"selected": true,
"text": ".capitalize() list comprehension book Book \"author\" author author Book author.author.capitalize() def filt... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5550583/"
] |
74,491,999 | <p>The XAML of my UserControl with name "Clinical_Protocol":</p>
<pre><code><Grid>
<DataGrid Name="ClinicalProtocolDataGrid"
ItemsSource="{Binding DataGridItems, ElementName=Clinical_Protocol}"
AutoGenerateColumns="False">
... | [
{
"answer_id": 74492298,
"author": "EldHasp",
"author_id": 13349759,
"author_profile": "https://Stackoverflow.com/users/13349759",
"pm_score": 3,
"selected": true,
"text": "<DataGrid Name=\"ClinicalProtocolDataGrid\"\n ItemsSource=\"{Binding DataGridItems, ElementName=Clinical_P... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74491999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9072227/"
] |
74,492,023 | <p>I have the following code below which is generated from Drift for a live chat widget.</p>
<pre><code><!-- Start of Async Drift Code -->
<script>
"use strict";
!function() {
var t = window.driftt = window.drift = window.driftt || [];
if (!t.init) {
if (t.invoked) return void (window.con... | [
{
"answer_id": 74492298,
"author": "EldHasp",
"author_id": 13349759,
"author_profile": "https://Stackoverflow.com/users/13349759",
"pm_score": 3,
"selected": true,
"text": "<DataGrid Name=\"ClinicalProtocolDataGrid\"\n ItemsSource=\"{Binding DataGridItems, ElementName=Clinical_P... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10671368/"
] |
74,492,091 | <p>Can I use float data type to store the return value of millis function as shown on the code here? I saw unsigned int type to do it. But look I'm converting that millis to hour. That's why I'm trying to store in float.</p>
<pre class="lang-cpp prettyprint-override"><code>#include<Servo.h>
#include<math.h>... | [
{
"answer_id": 74496954,
"author": "hcheung",
"author_id": 4902099,
"author_profile": "https://Stackoverflow.com/users/4902099",
"pm_score": 1,
"selected": false,
"text": "float millis() unsigned long uint32_t millis()/3600000 5*3600000 18000000 if((millis()/3600000) >= 5) // do somethin... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541006/"
] |
74,492,092 | <p>I need to write a program that converts an octal number to decimal. However if I enter a non octal number such as 1079, the program shows an error and stops.</p>
<p>I want the program to keep asking the user for a valid input until user enters a valid input.</p>
<pre><code>while True:
n= input("Enter an... | [
{
"answer_id": 74492163,
"author": "hiro protagonist",
"author_id": 4954037,
"author_profile": "https://Stackoverflow.com/users/4954037",
"pm_score": -1,
"selected": false,
"text": "while True:\n ans = input(\"Number in octal: \")\n try:\n number = int(ans, 8)\n break... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540903/"
] |
74,492,105 | <p>I'd like to create div with data getting from user input by clicking btn submit, But I don't know how. I am new in react js.</p>
<p>This is my App.js file:</p>
<pre><code>import './App.css';
import './RegisterApp.css'
import RegisterApp from './Components/RegisterApp';
function App() {
return (
<div classN... | [
{
"answer_id": 74492145,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 1,
"selected": false,
"text": " type=\"submit\" <button type=\"submit\">Submit</button>\n const formSubmit = (e) => { \n setList( {...... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17915341/"
] |
74,492,111 | <p>I'm trying to print the value of currently logged in username in my main.html file. My login.html file looks like this:</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=ed... | [
{
"answer_id": 74492145,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 1,
"selected": false,
"text": " type=\"submit\" <button type=\"submit\">Submit</button>\n const formSubmit = (e) => { \n setList( {...... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18771634/"
] |
74,492,112 | <p>More of a curiosity of if and how it can be done. I sometimes find myself repeating commands with small parts of the same command modified.</p>
<p>Example:</p>
<pre><code>grep aaa file.txt
grep bbb file.txt
grep ccc file.txt
</code></pre>
<p>I know I could set this up with a for loop but I don't always know all of t... | [
{
"answer_id": 74492510,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 2,
"selected": false,
"text": "f () { grep \"$1\" file.txt; }\n f aaa\nf bbb\nf ccc\n f"
},
{
"answer_id": 74492530,
"author": "omnivir... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3022906/"
] |
74,492,124 | <p>I'm having an issue with <code>TaggedOutput</code>s in Apache Beam (<code>DataflowRunner</code>) using Python 3.9. I've included the necessary pieces of code below for understanding.</p>
<p>Basically the tagged output from <code>parent_check_pipeline</code> for <code>Tag.REQS_SATISFIED</code>) is not working. When... | [
{
"answer_id": 74499337,
"author": "CaptainNabla",
"author_id": 16622985,
"author_profile": "https://Stackoverflow.com/users/16622985",
"pm_score": 1,
"selected": false,
"text": "Tag.WHATEVER PTransform class ParentCheckPipeline(beam.PTransform):\n def expand(self, source):\n p... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614254/"
] |
74,492,167 | <p>I would like to create a function in which a mathematical formula is set as argument (with only two possible variables) and use this formula within two nested loop. The idea is to be able to change the formula as I would like to create y values based on the formula. This is what I have done but I cannot apply the fo... | [
{
"answer_id": 74492452,
"author": "G. Grothendieck",
"author_id": 516548,
"author_profile": "https://Stackoverflow.com/users/516548",
"pm_score": 3,
"selected": true,
"text": "foo <- function(formula = y ~ a - b) {\n fun <- function(a, b) {}\n body(fun) <- formula[[length(formula)]]\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3887120/"
] |
74,492,192 | <p>I am new to swift .. I am trying to crate delay and print the delay time like 1 seconds and start printing the next item into list . I got the result but I am not sure make delay of each iteration and print it ..
Here is the struct .</p>
<pre><code>struct CartProductResult {
var id: Int
var title: String
var quan... | [
{
"answer_id": 74492594,
"author": "Kaushal Rola",
"author_id": 14252468,
"author_profile": "https://Stackoverflow.com/users/14252468",
"pm_score": 0,
"selected": false,
"text": "func printWithDelay(products: [CartProductResult], completion: (@escaping ()-> Void)) {\n for product in p... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8705895/"
] |
74,492,224 | <p>I'm writing a program that displays a fast food menu and it allows the user to select an item. Then, the user enters the quantity of that item, and can continue selecting items with specific quantities until done. What I'm having trouble with is finding out how to calculate a running total. I am new to c# so I only ... | [
{
"answer_id": 74492594,
"author": "Kaushal Rola",
"author_id": 14252468,
"author_profile": "https://Stackoverflow.com/users/14252468",
"pm_score": 0,
"selected": false,
"text": "func printWithDelay(products: [CartProductResult], completion: (@escaping ()-> Void)) {\n for product in p... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540538/"
] |
74,492,252 | <p>I have a data frame of this format:</p>
<pre class="lang-py prettyprint-override"><code>import pandas as pd
df = pd.DataFrame({
1: {'mean': 1.0, 'std': 0.8},
2: {'mean': 0.5, 'std': 0.2},
3: {'mean': 0.2, 'std': 0.1},
4: {'mean': 0.1, 'std': 0.1},
5: {'mean': 0.6, 'std': 0.2}
})
df
1 ... | [
{
"answer_id": 74492402,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 2,
"selected": false,
"text": "df iterrows axis=1 full_noise = []\nfor _, col in df.T.iterrows():\n noise = np.random.normal(loc=col[\"m... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18134832/"
] |
74,492,260 | <p>How can I reduce an array of objects into one object, with unique properties. I will appreciate any help! Thank you!</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-js lang-js prettyprint-override"><code>const ... | [
{
"answer_id": 74492402,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 2,
"selected": false,
"text": "df iterrows axis=1 full_noise = []\nfor _, col in df.T.iterrows():\n noise = np.random.normal(loc=col[\"m... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7762963/"
] |
74,492,265 | <p>It seems to be impossible to animate the <code>.backgroundColor</code> property of an <code>SCNView</code>.</p>
<p>Does anyone know how to do this?</p>
<p>Please note, it is easy to animate the background of an actual scene (<code>SCNScene</code>) and I know how to do that, thanks. It is also easy to animate the ba... | [
{
"answer_id": 74507030,
"author": "ZAY",
"author_id": 7839658,
"author_profile": "https://Stackoverflow.com/users/7839658",
"pm_score": 2,
"selected": true,
"text": "viewDidLoad override func viewDidLoad() {\n super.viewDidLoad()\n \n // create a new scene\n let scene = SCNS... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/294884/"
] |
74,492,285 | <p>I've tried to find why the error occurs, and the helper functions work perfectly fine. But still i couldn't find the solution. Could you point out where exactly my function is broken, or breaks down?</p>
<p><strong>The goal is to return a number that is the smallest in its row, and greatest in its column.</strong></... | [
{
"answer_id": 74492366,
"author": "PADMANABAN GOKULA",
"author_id": 20450907,
"author_profile": "https://Stackoverflow.com/users/20450907",
"pm_score": -1,
"selected": false,
"text": " function luckyNumbers(matrix) {\n for (let i = 0; i < matrix.length; i++) {\n for (let j = 0; j ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16400935/"
] |
74,492,302 | <p>I have a dataframe like this:</p>
<p>df:</p>
<pre><code> Collection ID
0 [{'tom': 'one'}, {'tom': 'two'}] 10
1 [{'nick': 'one'}] 10
2 [{'julie': 'one'}] 14
</code></pre>
<p>When the 'ID' column has duplicated values, for whichever entry of dupli... | [
{
"answer_id": 74492366,
"author": "PADMANABAN GOKULA",
"author_id": 20450907,
"author_profile": "https://Stackoverflow.com/users/20450907",
"pm_score": -1,
"selected": false,
"text": " function luckyNumbers(matrix) {\n for (let i = 0; i < matrix.length; i++) {\n for (let j = 0; j ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11913986/"
] |
74,492,328 | <p>I have a simple numpy array made of floats and integers</p>
<pre><code>array_to_save=np.array([shutter_time,int(nb_frames),np.mean(intensities),np.std(intensities)])
</code></pre>
<p>I would like to save this numpy array, appending it to an existing csv file by doing the following.</p>
<pre><code> with open('fram... | [
{
"answer_id": 74492690,
"author": "wrbp",
"author_id": 16662333,
"author_profile": "https://Stackoverflow.com/users/16662333",
"pm_score": 1,
"selected": false,
"text": "array_to_save=np.array([[shutter_time,int(nb_frames),np.mean(intensities),np.std(intensities)]])\n"
},
{
"ans... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2163392/"
] |
74,492,350 | <p>I am working with an API that returns Dates in the format 2022-03-01T11:32:37</p>
<pre><code>Created:&nbsp;{this.props.proposal.OPENWHEN}
Created: 2022-03-01T11:32:37
</code></pre>
<p>How do i format this into DD/MM/YYY 24:00:00 ?</p>
<p>Thanks In Advance</p>
| [
{
"answer_id": 74492690,
"author": "wrbp",
"author_id": 16662333,
"author_profile": "https://Stackoverflow.com/users/16662333",
"pm_score": 1,
"selected": false,
"text": "array_to_save=np.array([[shutter_time,int(nb_frames),np.mean(intensities),np.std(intensities)]])\n"
},
{
"ans... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15222578/"
] |
74,492,386 | <p>So here is my code</p>
<pre><code>#include<math.h>
#include<stdio.h>
#include"hw1.h"
int main (int argc, char *argv[]) {
int num_choices, k;
char right_choices[20];
do {
printf("Enter number of choices:\n");
scanf("%d", &num_choices);
... | [
{
"answer_id": 74492690,
"author": "wrbp",
"author_id": 16662333,
"author_profile": "https://Stackoverflow.com/users/16662333",
"pm_score": 1,
"selected": false,
"text": "array_to_save=np.array([[shutter_time,int(nb_frames),np.mean(intensities),np.std(intensities)]])\n"
},
{
"ans... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541188/"
] |
74,492,390 | <p>let's say I have these many dataset (let's imagine 1000 datasets) :</p>
<pre><code>df1 = data.frame(x = 1:10)
df2 = data.frame(x = 2:11)
df3 = data.frame(x = 3:5)
df4 = data.frame(x = 11:20)
</code></pre>
<p>I want to create a list that is called L as follows</p>
<pre><code>L = list(df1,df2,df3,df4)
</code></pr... | [
{
"answer_id": 74492690,
"author": "wrbp",
"author_id": 16662333,
"author_profile": "https://Stackoverflow.com/users/16662333",
"pm_score": 1,
"selected": false,
"text": "array_to_save=np.array([[shutter_time,int(nb_frames),np.mean(intensities),np.std(intensities)]])\n"
},
{
"ans... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19720935/"
] |
74,492,431 | <p>Yo! I am learning requests in python and i get a problem!</p>
<p>when i try to get status code from the url i dont receive answer</p>
<p>When I run the program, it doesn't finish or return anything. Below is a picture of the terminal and my code.</p>
<pre><code>import requests
import socket
old_getaddrinfo = socke... | [
{
"answer_id": 74492690,
"author": "wrbp",
"author_id": 16662333,
"author_profile": "https://Stackoverflow.com/users/16662333",
"pm_score": 1,
"selected": false,
"text": "array_to_save=np.array([[shutter_time,int(nb_frames),np.mean(intensities),np.std(intensities)]])\n"
},
{
"ans... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20470305/"
] |
74,492,437 | <p><a href="https://i.stack.imgur.com/KlYZh.png" rel="nofollow noreferrer">my problem</a></p>
<p>I am on windows 10 I tried reinstalling .net multiple times and re installed vscode i am really despreate for soloutions now</p>
| [
{
"answer_id": 74492690,
"author": "wrbp",
"author_id": 16662333,
"author_profile": "https://Stackoverflow.com/users/16662333",
"pm_score": 1,
"selected": false,
"text": "array_to_save=np.array([[shutter_time,int(nb_frames),np.mean(intensities),np.std(intensities)]])\n"
},
{
"ans... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540532/"
] |
74,492,441 | <p>I have a table of properties:</p>
<pre><code>+----+-----------------------------+
| prop_id | prop_name |
+---------+------------------------+
| 1 | Cottage |
+---------+------------------------+
| 2 | Mountain House |
+---------+------------------------+
| 3 | B... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383908/"
] |
74,492,447 | <p>I'm trying to extract text string from a <p> tag, the text string I'm interested in is separated by a <br> tag.</p>
<pre><code><div id="foo">
<p>
" Data 1 : Lorem"
<br>
<br>
" Data 2 : Ipsum"
<br>
</p>
<div>
</code></pre>... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11465465/"
] |
74,492,459 | <p>I have a widget that, no matter what constraints I place upon it and other widgets, including the addition of barriers, always positions itself at the top of the layout.</p>
<p>This is a fairly simple arrangement of two rows of two elements each, not aligned column wise. The first element in each row is a TextView ... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1151724/"
] |
74,492,464 | <p>i have started this code, which looks in worksheet PCrun for "yes" in cell D2 then then copies A1:C9 and paste as an image to worksheet PCexport starting at cell A1.
This works but there are a few more steps i am stuck on.
I would like it to move on to the next range of cells A10:C18 looking in cell D11 fo... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16504005/"
] |
74,492,475 | <p>Write a function that returns only negative odd numbers from an array.</p>
<pre><code>const arr = [4, -7, -6]
</code></pre>
<p>I first tried:</p>
<pre><code>let negativeOdd = arr.filter(n => n % 2 === 1 && n < 0);
return negativeOdd;
</code></pre>
<p>result was an empty array. <code>[]</code>. The ans... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504727/"
] |
74,492,512 | <p>I'm creating a quiz and I try to shuffle answers but one of them keeps repeating. Up to 4 times, sometimes even four (I have 4 answers overall). I have a project deadline soon, please help me. Thank you in advance</p>
<p>`</p>
<pre><code>const questions = [{
question: "What is the name of Ellie's mom?&q... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20450499/"
] |
74,492,519 | <p>I don' t know how to insert a row in the child table that has an attribute that references to the column ID (primary key of the father Table)in the same transaction because i dont know the father primary key if i don't commit the transaction.
Is there a way to solve this problem?</p>
| [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18805621/"
] |
74,492,523 | <p>That is my manifest code which download, install and remove installer on a host.</p>
<pre><code>class googlechrome_2 {
package { 'GoogleChrome':
ensure => installed,
source => 'C:\Soft\ChromeSetup.msi',
install_options => ['/qn'],
require => File['GoogleChromeMsi'],
}
file { 'Goog... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20450805/"
] |
74,492,553 | <p>I've actually read every stackoverflow post related to my problem, but I can't solve it, every attempt brings me a new problem.</p>
<p>This is the <strong>structure</strong>:
<a href="https://i.stack.imgur.com/8ZN75.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8ZN75.jpg" alt="enter image descri... | [
{
"answer_id": 74492636,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "SELECT\n\"prop_id\"\nFROM properties2accessories p \nWHERE (\"acc_id\" = 'GAR') \nAND EXISTS (SELECT 1 FROM properties2a... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5600753/"
] |
74,492,557 | <p>I've written a program to randomly assign teams to four people for a World Cup sweepstakes. The code works fine, but it's ugly. How do I shuffle the variables Seed1, Seed2, ... Seed8 with a loop? How do I print which teams have been assigned to each player with more professional looking code?</p>
<pre><code>import r... | [
{
"answer_id": 74492648,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 3,
"selected": true,
"text": "import random\n\nteams = [\"Alice\", \"Bob\", \"Charlie\", \"Delilah\"]\nrandom.shuffle(teams)\n\nseeds = [\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14156986/"
] |
74,492,599 | <p>i need help to shorten this code a lot</p>
<p>im trying to make the month selection witch is repeating shorter or into a function preferable but cant make it work, id like to make the month selection a function but cant due to having to call in different csv files what you guys got?
csv files (<a href="https://send.... | [
{
"answer_id": 74492648,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 3,
"selected": true,
"text": "import random\n\nteams = [\"Alice\", \"Bob\", \"Charlie\", \"Delilah\"]\nrandom.shuffle(teams)\n\nseeds = [\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541297/"
] |
74,492,619 | <p>I'm seeing a difference in text/font quality between MainMenu and ContextMenu items in my desktop app. In the screenshot below, the first line was taken from a ContextMenu and the second line from a MainMenu (which arguably looks much better). The third line is from a ContextMenu with <code>TextOptions.TextFormattin... | [
{
"answer_id": 74492648,
"author": "Matteo Zanoni",
"author_id": 13384774,
"author_profile": "https://Stackoverflow.com/users/13384774",
"pm_score": 3,
"selected": true,
"text": "import random\n\nteams = [\"Alice\", \"Bob\", \"Charlie\", \"Delilah\"]\nrandom.shuffle(teams)\n\nseeds = [\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/981831/"
] |
74,492,631 | <p>I need some guidance on what to use for a simple app that shows and saves speed.</p>
<p>Right now I have an app with main activity and LocationService. It does the saving well but i can't find a way to update the UI continuously. I have made other apps with the location code in mainActivity but I want the transmissi... | [
{
"answer_id": 74492924,
"author": "Boyan Iliev",
"author_id": 15367035,
"author_profile": "https://Stackoverflow.com/users/15367035",
"pm_score": 1,
"selected": false,
"text": "public static class NewGPSCoordinates\n{\n public final Location mlocation;\n \n public NewGPSCoo... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12787982/"
] |
74,492,646 | <p>I am trying to implement cypress-cucumber-preprocessor for Cypress 11 with TypeScript, but I am unsure what I miss.
Here are the steps that I do:</p>
<ol>
<li>Install it with the following command:</li>
</ol>
<blockquote>
<p>npm install @badeball/cypress-cucumber-preprocessor</p>
</blockquote>
<ol start="2">
<li>Her... | [
{
"answer_id": 74495876,
"author": "Cristian Antonio Rosas Ayala",
"author_id": 20543270,
"author_profile": "https://Stackoverflow.com/users/20543270",
"pm_score": 2,
"selected": false,
"text": "npm i @bahmutov/cypress-esbuild-preprocessor \n"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10395384/"
] |
74,492,673 | <pre><code>// PARENT
const [data, setData] = useState(0);
const clickHandler = () => {
setData(prevState => prevState + 1);
}
return (
<div>
<RerenderCheck data={data} />
<button onClick={clickHandler}>Click</button>
</div>
)
// CHILD
const RerenderCheck = (pr... | [
{
"answer_id": 74495876,
"author": "Cristian Antonio Rosas Ayala",
"author_id": 20543270,
"author_profile": "https://Stackoverflow.com/users/20543270",
"pm_score": 2,
"selected": false,
"text": "npm i @bahmutov/cypress-esbuild-preprocessor \n"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74492673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19831427/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.