qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,382,696 | <p>i'm having a real brain fart atm. i have a simple getBalance function on a contract that accepts a wallet. this returns the balance, but as you know it's the BigNumber of the balance and doesnt factor in the decimals. So how do i turn:</p>
<p>806179086037007</p>
<p>into 806179.086037007</p>
<p>where the decimals for... | [
{
"answer_id": 74382824,
"author": "pilchard",
"author_id": 13762301,
"author_profile": "https://Stackoverflow.com/users/13762301",
"pm_score": 2,
"selected": true,
"text": "current.type type: 'list' const content = [{ type: \"heading\", content: \"whatever\" }, { type: \"para\", content... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/652318/"
] |
74,382,707 | <p>I am very new to Python (Only a couple weeks) and I'm trying to make a rock paper scissors game for Replits 100 days of code. My previous game was very simple and worked fine but it wont fly as a template for this lesson so I've started from scratch but I'm having trouble.</p>
<pre><code>from getpass import getpass ... | [
{
"answer_id": 74382734,
"author": "Geoffrey Negiar",
"author_id": 5173924,
"author_profile": "https://Stackoverflow.com/users/5173924",
"pm_score": 0,
"selected": false,
"text": "hinput(f\"Enter {p1} choice: \")\n a = 4\nb = 3\nprint(f\"a + b = {a+b}\")\n>>> a + b = 7\n \"Enter\",p1,\"c... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20095437/"
] |
74,382,713 | <p>I am getting a build error when using the <code>vision-camera-code-scanner</code> package for my react native project.</p>
<p>The short hand error is:</p>
<blockquote>
<p>Undefined symbols for architecture x86_64</p>
</blockquote>
<p>The full error is the following:</p>
<pre><code>ld: warning: ignoring file /XXXXXXX... | [
{
"answer_id": 74382734,
"author": "Geoffrey Negiar",
"author_id": 5173924,
"author_profile": "https://Stackoverflow.com/users/5173924",
"pm_score": 0,
"selected": false,
"text": "hinput(f\"Enter {p1} choice: \")\n a = 4\nb = 3\nprint(f\"a + b = {a+b}\")\n>>> a + b = 7\n \"Enter\",p1,\"c... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74382713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5716477/"
] |
74,382,727 | <p>I would like to allow the user to select multiple times the same choice. It implies that when the user selects some element, it should not be removed from the choices' dropdown menu.</p>
<p>Here is a minimal reproducible example:</p>
<pre><code>library(shiny)
ui <- fluidPage(
selectInput(
inputId = "M... | [
{
"answer_id": 74382734,
"author": "Geoffrey Negiar",
"author_id": 5173924,
"author_profile": "https://Stackoverflow.com/users/5173924",
"pm_score": 0,
"selected": false,
"text": "hinput(f\"Enter {p1} choice: \")\n a = 4\nb = 3\nprint(f\"a + b = {a+b}\")\n>>> a + b = 7\n \"Enter\",p1,\"c... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15881999/"
] |
74,382,739 | <p>How can I make sure that the postcode corresponding to a name in worksheet 1 matches the address for the same name in worksheet 2.</p>
<p>For example, I would need a column with a vlookup or index/match formula that would check <code>Alice</code>'s postcode from worksheet 1 against <code>Alice</code>s postcode in wo... | [
{
"answer_id": 74382953,
"author": "David Leal",
"author_id": 6237093,
"author_profile": "https://Stackoverflow.com/users/6237093",
"pm_score": 2,
"selected": true,
"text": "VLOOKUP MATCH XLOOKUP XMATCH =XLOOKUP(D3,$C$8:$C$9,$B$8:$B$9)=B3\n"
}
] | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1016900/"
] |
74,382,754 | <p>I am using excel 2019 and I am trying to extract from a bunch of messed up text cells any (up to 5) word ending with dot that comes after a ].</p>
<p>This is a sample of the text I am trying to parse/clean
`</p>
<pre><code>some text [asred.] ost. |Monday - Ribben (ult.) lot. ac, sino. other maybe long text; collan. ... | [
{
"answer_id": 74383189,
"author": "RemDosal",
"author_id": 20452901,
"author_profile": "https://Stackoverflow.com/users/20452901",
"pm_score": 1,
"selected": false,
"text": "([a-zA-Z]+)\\.\n [a-zA-Z] \\+ \\."
},
{
"answer_id": 74383421,
"author": "Ron Rosenfeld",
"author... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463613/"
] |
74,382,776 | <p>In the code shown below, I have a function that adds an object to an array. This object has a property named status which has a value of true. An addEventListener for a button named "check for true object" is able to access the 'true' object and log it in the console. I also have an addEventListener for a... | [
{
"answer_id": 74383189,
"author": "RemDosal",
"author_id": 20452901,
"author_profile": "https://Stackoverflow.com/users/20452901",
"pm_score": 1,
"selected": false,
"text": "([a-zA-Z]+)\\.\n [a-zA-Z] \\+ \\."
},
{
"answer_id": 74383421,
"author": "Ron Rosenfeld",
"author... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19747345/"
] |
74,382,817 | <p>I am new to python and I seem to be unable to understand the concept in Start:Stop:Step. For example</p>
<p>word = "Champ"
print (word[0:5:2])</p>
<p>why do I get cap as I result ? if someone could help me with this I would truly appreciated</p>
<p>I tried using different numbers to see what the outcome wa... | [
{
"answer_id": 74382853,
"author": "MM-Borhan ",
"author_id": 20463099,
"author_profile": "https://Stackoverflow.com/users/20463099",
"pm_score": 1,
"selected": false,
"text": "word = \"Champ\"\n\nprint (word[0:5:2])\n# you are taking index=0, then index=0+2, then index=0+2+2\n# then ind... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19411276/"
] |
74,382,820 | <p>Right now the text aligns underneath the image. I want the text to be beside the image vertically. I tried to add <code>flex-direction: column</code> and <code>justify-content: center</code> but it's not working. I also tried <code>float</code> and it didn't work. I can't figure out how to align the text and image s... | [
{
"answer_id": 74382853,
"author": "MM-Borhan ",
"author_id": 20463099,
"author_profile": "https://Stackoverflow.com/users/20463099",
"pm_score": 1,
"selected": false,
"text": "word = \"Champ\"\n\nprint (word[0:5:2])\n# you are taking index=0, then index=0+2, then index=0+2+2\n# then ind... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20413531/"
] |
74,382,856 | <p>My CSV files with whitespace:</p>
<pre><code>Id ; FirstName ; LastName ; email
123; Marc ; TOTO ; marc@toto.com
</code></pre>
<p>I would like delete whitespace in my csv by line like this :</p>
<pre><code>Id;FirstName;LastName;email
123;Marc;TOTO;marc@toto.com
</code></pre>
<p>I would ... | [
{
"answer_id": 74382946,
"author": "Dave Pritlove",
"author_id": 2005666,
"author_profile": "https://Stackoverflow.com/users/2005666",
"pm_score": 0,
"selected": false,
"text": "awk '{OFS=\"\";$1=$1;print $0}' file.csv;\n OFS"
},
{
"answer_id": 74383677,
"author": "tshiono",
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12750226/"
] |
74,382,857 | <p>I have 2 tables Customer and Orders.</p>
<p>1st question:</p>
<p>That is a master table for Customers that have a few columns like Customer number, customer name, Active flag, etc. Table may contain 2 or more records for the same customer number but as per the business logic only 1 records at a time should ideally b... | [
{
"answer_id": 74382946,
"author": "Dave Pritlove",
"author_id": 2005666,
"author_profile": "https://Stackoverflow.com/users/2005666",
"pm_score": 0,
"selected": false,
"text": "awk '{OFS=\"\";$1=$1;print $0}' file.csv;\n OFS"
},
{
"answer_id": 74383677,
"author": "tshiono",
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463793/"
] |
74,382,862 | <p>I have a "default" image file that's meant to be used if the "proper" image file doesn't exist. I'm using Maven to create the <code>jar</code> and have placed the file under <code>resources/images</code>, along with the other images I already have.</p>
<p>The file is defined in a class that has a... | [
{
"answer_id": 74383530,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 3,
"selected": true,
"text": "new File File File private static final File MY_IMG_FILE = new File(\"/foo/bar\");\n\npublic JLabel codeThatIsInvo... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12247094/"
] |
74,382,869 | <p><a href="https://i.stack.imgur.com/k3jQ3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k3jQ3.png" alt="This is the file directory and server.js and a preview of what the website looks like with the error " /></a></p>
<p>I was excpeting the partial to show up as the header and the partial code is... | [
{
"answer_id": 74383530,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 3,
"selected": true,
"text": "new File File File private static final File MY_IMG_FILE = new File(\"/foo/bar\");\n\npublic JLabel codeThatIsInvo... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14216814/"
] |
74,382,919 | <p>Drag a corner of an image in DM triggers the image content refreshed to the new window size. What is the DM script command to trigger that refreshing?</p>
<p>Specifically, I want to add a text below the image. So, I get the imageDocument as root component, add a text annotation below the image (the vertical position... | [
{
"answer_id": 74383530,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 3,
"selected": true,
"text": "new File File File private static final File MY_IMG_FILE = new File(\"/foo/bar\");\n\npublic JLabel codeThatIsInvo... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6406828/"
] |
74,382,927 | <p>I am trying to install the macport demeter using the following line in mac terminal:</p>
<pre><code>sudo port install demeter
</code></pre>
<p>I get the error message</p>
<pre><code>Error: Failed to activate demeter: Image error: /opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/Ifeffit.pm is being us... | [
{
"answer_id": 74383530,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 3,
"selected": true,
"text": "new File File File private static final File MY_IMG_FILE = new File(\"/foo/bar\");\n\npublic JLabel codeThatIsInvo... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1798869/"
] |
74,382,971 | <p>I have this graph that I made using this code:</p>
<pre><code>df3 <- data.frame(outcome=c("Any complication", "Cardiac complication",
"Vascular Complication","Vascular complication",
"Respiratory complication"... | [
{
"answer_id": 74383530,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 3,
"selected": true,
"text": "new File File File private static final File MY_IMG_FILE = new File(\"/foo/bar\");\n\npublic JLabel codeThatIsInvo... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19141802/"
] |
74,382,986 | <p>I am using "react-native-paper": "^4.12.5" & "react-native": "0.70.4"</p>
<p>I want to transform the layout on the left to the one on the right using react-native-paper. But I have found a problem. I don't know how to center the input, and the placeholder of a TextInput. ... | [
{
"answer_id": 74383703,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 2,
"selected": true,
"text": "style={(styles.custom, style)} textAlign style={[styles.custom, style]} style={{...styles.custom, ...style}}"
},... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11596081/"
] |
74,382,992 | <p>I am new to <strong>jq</strong> and this one seems impossible to write. So need some help from jq gurus out there:</p>
<p>So I have an Open API spec file, let's take version 3.0 for example:</p>
<p>The <code>paths</code> element has <code>endpoints</code> listed, and each of them has methods(<code>get</code>, <code>... | [
{
"answer_id": 74383703,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 2,
"selected": true,
"text": "style={(styles.custom, style)} textAlign style={[styles.custom, style]} style={{...styles.custom, ...style}}"
},... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74382992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463822/"
] |
74,383,033 | <p>I have a function, findnums(v) that is intended to append 5 numbers taken from user input to list v, which starts in main as an empty list. I have a nested try-except loop in my for loop for the function findnums(v) to try and reject non float user input.</p>
<p>I want my except condition to ignore the iteration tha... | [
{
"answer_id": 74383703,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 2,
"selected": true,
"text": "style={(styles.custom, style)} textAlign style={[styles.custom, style]} style={{...styles.custom, ...style}}"
},... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20161630/"
] |
74,383,037 | <p>I'm using pypika to build some queries. It used to work great but I have an issue with subqueries on an oracle database. The query reads as follow</p>
<pre><code>fake_query = Query().from_(my_table).where(my_table.ID == "12345").select(my_table.ID)
QN = AliasedQuery("fake_query_with")
query = (... | [
{
"answer_id": 74383703,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 2,
"selected": true,
"text": "style={(styles.custom, style)} textAlign style={[styles.custom, style]} style={{...styles.custom, ...style}}"
},... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1141818/"
] |
74,383,044 | <p>I have a problem... thant's a code:</p>
<pre><code>class Currency {
cosnstructor() {
this.currencyInfo = [];
}
getCurrency(getInfo) {
this.currencyInfo = getInfo;
}
}
const actuallyCurrency = new Currency;
(async () => {
const response = await fetch(`http://api.nbp.pl/ap... | [
{
"answer_id": 74383703,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 2,
"selected": true,
"text": "style={(styles.custom, style)} textAlign style={[styles.custom, style]} style={{...styles.custom, ...style}}"
},... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14809861/"
] |
74,383,145 | <p>I am getting the date as below</p>
<pre><code>2022-10-25 11:00:00
</code></pre>
<p>which I need to convert to</p>
<pre><code>2022-10-25T11:00:00
</code></pre>
<p>Please let me know the appropriate data weave to achieve the above output.</p>
| [
{
"answer_id": 74383703,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 2,
"selected": true,
"text": "style={(styles.custom, style)} textAlign style={[styles.custom, style]} style={{...styles.custom, ...style}}"
},... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17642608/"
] |
74,383,148 | <p>I have an object like this :</p>
<pre><code>let data = {
approval: [{
name: 'XXXX',
kode: '10'
},
{
name: 'YYYY',
kode: '12'
},
{
name: 'ZZZZ',
kode: '14'
},
{
name: 'HHHH',
... | [
{
"answer_id": 74383237,
"author": "Fauzan DP",
"author_id": 18874268,
"author_profile": "https://Stackoverflow.com/users/18874268",
"pm_score": 1,
"selected": false,
"text": " const batas = (data) => {\n let arr = data.approval\n let batas = data.batas\n for (let... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19396950/"
] |
74,383,155 | <p>How can I create a predicate so that when the user selects "Full Body" it returns the entire list with no predicate? Right now, it is returning "part" which corresponds to the muscle groups I have set (Abs, Legs, Push, Pull). I want to return all of the options when "Full Body" is selec... | [
{
"answer_id": 74383237,
"author": "Fauzan DP",
"author_id": 18874268,
"author_profile": "https://Stackoverflow.com/users/18874268",
"pm_score": 1,
"selected": false,
"text": " const batas = (data) => {\n let arr = data.approval\n let batas = data.batas\n for (let... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20186634/"
] |
74,383,187 | <p>`</p>
<pre><code>import csv
record={}
with open( 'subject-info.csv') as f:
reader = csv.DictReader(f)
for row in reader:
record[row['ID']]=row['Age_group']
</code></pre>
<p>`
now the dictionary has ID number as keys and the value of each key has one number between 1 and 13. each number represents an... | [
{
"answer_id": 74383237,
"author": "Fauzan DP",
"author_id": 18874268,
"author_profile": "https://Stackoverflow.com/users/18874268",
"pm_score": 1,
"selected": false,
"text": " const batas = (data) => {\n let arr = data.approval\n let batas = data.batas\n for (let... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20027429/"
] |
74,383,188 | <p>I am trying to figure out how to run two different loops on the same code. I am trying to create a matrix where I am filling a column with the mean of a variable for each year.</p>
<p>Here's the code I am using to do it right now:</p>
<pre class="lang-r prettyprint-override"><code>matplot2 = as.data.frame(matrix(NA,... | [
{
"answer_id": 74383220,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 2,
"selected": false,
"text": "i<-1:16\nmatplot2[i,1] = mean(matplot[matplot$Year==(2002 + i), 'TotalTime'])\n"
},
{
"answer_id": 74383224,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464109/"
] |
74,383,234 | <p>I am getting the following error when I try 'npm install prisma'</p>
<pre><code>npm ERR! code 1
npm ERR! path /Users/path/to/project/node_modules/prisma
npm ERR! command failed
npm ERR! command sh -c -- node scripts/preinstall-entry.js
npm ERR! ┌───────────────────────────────────────────┐
npm ERR! │ Prisma only s... | [
{
"answer_id": 74383220,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 2,
"selected": false,
"text": "i<-1:16\nmatplot2[i,1] = mean(matplot[matplot$Year==(2002 + i), 'TotalTime'])\n"
},
{
"answer_id": 74383224,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2076046/"
] |
74,383,259 | <p>I have a bit of a complicated scenario. I have two tables, <code>employee</code> and <code>agency</code>. An employee may or may not have an agency, but if an employee has an agency I want the select clause to check another condition on the agency, but if the employee does not have an agency its fine I want to fet... | [
{
"answer_id": 74383220,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 2,
"selected": false,
"text": "i<-1:16\nmatplot2[i,1] = mean(matplot[matplot$Year==(2002 + i), 'TotalTime'])\n"
},
{
"answer_id": 74383224,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7385798/"
] |
74,383,308 | <p>Environment: vs 2022 v 17.4.0, with NET7 sdk installed</p>
<p>I have a multi target project <code>net7.0;net472</code>:</p>
<pre><code><PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net7.0;net472</TargetFrameworks>
<LangVersion>11.0<... | [
{
"answer_id": 74383220,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 2,
"selected": false,
"text": "i<-1:16\nmatplot2[i,1] = mean(matplot[matplot$Year==(2002 + i), 'TotalTime'])\n"
},
{
"answer_id": 74383224,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3142139/"
] |
74,383,322 | <p><code>$course_hour = 1; $starttime = '07:00'; $endtime = '16:00';</code></p>
<p>I wish if it could return an array of values like below:
If</p>
<pre><code>$course_hour = 1;
</code></pre>
<p>$return_array = array('07:00 - 08:00', '08:00 - 09:00', '09:00 - 10:00', '10:00 - 11:00', '11:00 - 12:00', '12:00 - 13:00', '13... | [
{
"answer_id": 74383220,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 2,
"selected": false,
"text": "i<-1:16\nmatplot2[i,1] = mean(matplot[matplot$Year==(2002 + i), 'TotalTime'])\n"
},
{
"answer_id": 74383224,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2289225/"
] |
74,383,360 | <p>Given the below string, what would be the most efficient way to get the file ID? The portion wanted: <code>XXXXXXXXXXXxxxxxxxxXXX</code>, which is between <code>/</code> and <code>/view</code></p>
<p>The attempt below works, but is it really needed to reverse the string twice?</p>
<p><div class="snippet" data-lang="... | [
{
"answer_id": 74383220,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 2,
"selected": false,
"text": "i<-1:16\nmatplot2[i,1] = mean(matplot[matplot$Year==(2002 + i), 'TotalTime'])\n"
},
{
"answer_id": 74383224,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11832197/"
] |
74,383,379 | <p>I am making a very creative tetris clone for a project with a friend and we have custom sprites for every shape (including the rotations) and we made a wall of else if statements for the rotations. It's supposed to work like this: It calls a random shape out of list of the main 7 shapes and every time the user press... | [
{
"answer_id": 74383220,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 2,
"selected": false,
"text": "i<-1:16\nmatplot2[i,1] = mean(matplot[matplot$Year==(2002 + i), 'TotalTime'])\n"
},
{
"answer_id": 74383224,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464220/"
] |
74,383,394 | <p>I am trying to concatenate every element in a slice of <code>&str</code>s (<code>&[&str]</code>) into a single owned <code>String</code>. For example, I want to turn <code>&['Hello', ' world!']</code> into <code>"Hello world!"</code>.</p>
<p>I tried to do this by converting the slice into a... | [
{
"answer_id": 74383433,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 3,
"selected": true,
"text": "into_iter Item=&&str .to_owned() &str .copied .cloned &str a.into_iter().copied().map(|s| s.to_owned()).collect::<Vec... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13376511/"
] |
74,383,395 | <p>This code used to get a xlsx file and write over it, but after updating from pandas 1.1.5 to 1.5.1 I got <code>zipfile.badzipfile file is not a zip file</code></p>
<p>Then I read <a href="https://stackoverflow.com/a/66472617/13274766">here</a> that after pandas 1.2.0 the <code>pd.ExcelWriter(report_path, engine='ope... | [
{
"answer_id": 74383433,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 3,
"selected": true,
"text": "into_iter Item=&&str .to_owned() &str .copied .cloned &str a.into_iter().copied().map(|s| s.to_owned()).collect::<Vec... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13274766/"
] |
74,383,418 | <p>I have an HTML content and I am trying to extract the text. In the HTML content, I have gif images. Due to this the extract text process is taking longer time with InnerHTML.</p>
<p>Is there any way to extract text from HTML tags without using InnerHTML?</p>
<p>Right now I am using the below code.</p>
<pre><code> fu... | [
{
"answer_id": 74383433,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 3,
"selected": true,
"text": "into_iter Item=&&str .to_owned() &str .copied .cloned &str a.into_iter().copied().map(|s| s.to_owned()).collect::<Vec... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11855535/"
] |
74,383,426 | <p>Is it possible to combine together addClass and fadeIn in JS?
I'm trying to develop a script where on text hover (the title), the div container change background fading in/out (the whole section).</p>
<pre><code>$(document).ready(function () {
$('#1st').hover(function () {
$('#BG').addClass('first');
... | [
{
"answer_id": 74383433,
"author": "Mikdore",
"author_id": 8309536,
"author_profile": "https://Stackoverflow.com/users/8309536",
"pm_score": 3,
"selected": true,
"text": "into_iter Item=&&str .to_owned() &str .copied .cloned &str a.into_iter().copied().map(|s| s.to_owned()).collect::<Vec... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19764257/"
] |
74,383,440 | <p>I am trying to mark the index number for each duplicated item in the below dataframe.</p>
<pre><code> Column_A
0 Kitten
1 Kitten
2 Judy
3 Lamb
4 Momo
5 Judy
</code></pre>
<p>The new dataframe I want is as follows. As you can see, the items which have more than one (such as "Judy") are ... | [
{
"answer_id": 74383600,
"author": "Sheldon",
"author_id": 6440589,
"author_profile": "https://Stackoverflow.com/users/6440589",
"pm_score": 1,
"selected": true,
"text": "import pandas as pd\nmylist = ['Kitten', 'Kitten', 'Judy', 'Lamb', 'Momo', 'Judy']\ndf=pd.DataFrame()\ndf['Column_A'... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16277415/"
] |
74,383,448 | <p>I am trying to create a simple function that returns the least value passed to the function... but when running it doesn't work it just returns the same values I pass into the function 15,2,3 which should return 2... can someone help me and tell me why it doesn't work?</p>
<pre><code>CREATE OR REPLACE
function
GET_... | [
{
"answer_id": 74384809,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "regexp_substr to_number min least SQL> CREATE OR REPLACE FUNCTION get_least_value (in_numbers IN VARCHAR2)\n 2 ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13936549/"
] |
74,383,472 | <p>ALL,</p>
<p>I just tried the query found <a href="https://learn.microsoft.com/en-us/sql/relational-databases/databases/view-a-list-of-databases-on-an-instance-of-sql-server?view=sql-server-ver16#TsqlProcedure" rel="nofollow noreferrer">here</a>, but it gave me all names.</p>
<p>How do I filter out system databases n... | [
{
"answer_id": 74384809,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "regexp_substr to_number min least SQL> CREATE OR REPLACE FUNCTION get_least_value (in_numbers IN VARCHAR2)\n 2 ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/945871/"
] |
74,383,473 | <p>I am trying to send a string to a stored procedure which single quotes of multiple Id's. I am going use that string in IN clause in the stored procedure.</p>
<p>In order to test this I set string to like below but I am getting error. Help me out how to pass this to the stored procedure?</p>
<pre><code>DECLARE @str1 ... | [
{
"answer_id": 74383785,
"author": "Patrick Hurst",
"author_id": 18522514,
"author_profile": "https://Stackoverflow.com/users/18522514",
"pm_score": 0,
"selected": false,
"text": "DECLARE @string NVARCHAR(10) = '''apple'''\nPRINT @string\n"
},
{
"answer_id": 74384069,
"author... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/158008/"
] |
74,383,476 | <p>I need to make a Quadtree in Haskell. But I never used the language before. As I understand, there is no null pointers in Haskell. So how could I instantiate a null version of Group for the pointers of the Quadtree(if there is even a way)?</p>
<pre><code>data Group = Group {
idf :: Int,
name :: String,
l... | [
{
"answer_id": 74383784,
"author": "Fyodor Soikin",
"author_id": 180286,
"author_profile": "https://Stackoverflow.com/users/180286",
"pm_score": 4,
"selected": true,
"text": "Maybe Nothing Just x x data Group = Group {\n ...\n nw :: Maybe Group,\n ne :: Maybe Group,\n sw :: M... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464350/"
] |
74,383,478 | <p>I want to add two shorts as if they are unsigned and get the carry bit from the addition.</p>
<p>So for example, the following shorts represented in binary</p>
<pre><code>1111111111111111 (-1) +
0000000000000001 (1)
----------------
0000000000000000 (0)
</code></pre>
<p>Their addition has the carry bit of <code>1</c... | [
{
"answer_id": 74384004,
"author": "WJS",
"author_id": 1552534,
"author_profile": "https://Stackoverflow.com/users/1552534",
"pm_score": 3,
"selected": true,
"text": "short a = some short;\nshort b = some short;\nshort carry = getCarry(a, b);\n\npublic static short getCarry(short a, shor... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9700478/"
] |
74,383,504 | <p>In my js file I have a class <em>slideshow</em> and an array <em>slideshows</em> which I fill with instances of the slideshow class. Later in my code I use a for loop, where I iterate over each element in <em>slideshows</em> and try to get a specific value from it. However, when trying to run my code I get the follo... | [
{
"answer_id": 74384004,
"author": "WJS",
"author_id": 1552534,
"author_profile": "https://Stackoverflow.com/users/1552534",
"pm_score": 3,
"selected": true,
"text": "short a = some short;\nshort b = some short;\nshort carry = getCarry(a, b);\n\npublic static short getCarry(short a, shor... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20361715/"
] |
74,383,527 | <p>I am trying to combine 2 tables in such a way that rows with the same ID (the ID may be a combination of multiple columns) are summed together. Rows without a match of either table are still retained.</p>
<p>Here is an illustration of what I had in mind. <code>C1</code> & <code>C2</code> are the ID columns whils... | [
{
"answer_id": 74384004,
"author": "WJS",
"author_id": 1552534,
"author_profile": "https://Stackoverflow.com/users/1552534",
"pm_score": 3,
"selected": true,
"text": "short a = some short;\nshort b = some short;\nshort carry = getCarry(a, b);\n\npublic static short getCarry(short a, shor... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19621357/"
] |
74,383,540 | <p>I am trying to use this service getTodaysRoute() where I figure out what is today's route node key using .equalTo and from what I understand then I have to use this .on function snapshot from which then I can finally get the key after that I use this key to get data as an observable. The problem happens that the cod... | [
{
"answer_id": 74384004,
"author": "WJS",
"author_id": 1552534,
"author_profile": "https://Stackoverflow.com/users/1552534",
"pm_score": 3,
"selected": true,
"text": "short a = some short;\nshort b = some short;\nshort carry = getCarry(a, b);\n\npublic static short getCarry(short a, shor... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13454000/"
] |
74,383,574 | <p>I am trying to do some coniditonal styling in react js. Very new to react, so there may be a better way to do this, but have searched the internet to no avail. I am trying to check the screen size and style based off of said screen size. In this use case I am wanting to center some text based off of screen size. Can... | [
{
"answer_id": 74383691,
"author": "Mohammed Shahed",
"author_id": 19067773,
"author_profile": "https://Stackoverflow.com/users/19067773",
"pm_score": 2,
"selected": true,
"text": "media query @media screen and (min-width: 578px) and (max-width: 993px) {\n .someclass {\n text-align:ce... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4131053/"
] |
74,383,647 | <pre class="lang-lua prettyprint-override"><code>function string.split(input, delimiter)
input = tostring(input)
delimiter = tostring(delimiter)
if (delimiter=='') then return false end
local pos,arr = 0, {}
-- for each divider found
for st,sp in function() return string.find(input, delimiter, p... | [
{
"answer_id": 74383957,
"author": "pynexj",
"author_id": 900078,
"author_profile": "https://Stackoverflow.com/users/900078",
"pm_score": 2,
"selected": false,
"text": "for .. in string.find() for .. in nil for while true do\n st, sp = string.find(input, delimiter, pos, true)\n if ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14375125/"
] |
74,383,685 | <p>So i am practicing header files and implementation files for c++ and i cannot seem to display the letter grade for this program. Everything else is working as it should and displaying the correct data except for the letter grade. I have been trying to figure it out and i think it may be something so simple that i am... | [
{
"answer_id": 74383957,
"author": "pynexj",
"author_id": 900078,
"author_profile": "https://Stackoverflow.com/users/900078",
"pm_score": 2,
"selected": false,
"text": "for .. in string.find() for .. in nil for while true do\n st, sp = string.find(input, delimiter, pos, true)\n if ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464489/"
] |
74,383,695 | <pre><code>#include <stdio.h>
#include <stdlib.h>
void Increase(int *array1,int *Nums) {
int*array2 = realloc(array1,(*Nums+1)*sizeof(int));
array2[*Nums] = 13;
array2[*Nums-1] = 14;
++(*Nums);
}
int main() {
int NumOfElements=0,i;
int*array=(int*)malloc(0*sizeof(int));
Increa... | [
{
"answer_id": 74383909,
"author": "Jeremy Friesner",
"author_id": 131930,
"author_profile": "https://Stackoverflow.com/users/131930",
"pm_score": 2,
"selected": true,
"text": "realloc() realloc() malloc() realloc() realloc() main() array main() array realloc() realloc() free() array2 ar... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18265473/"
] |
74,383,775 | <pre><code>Name date leave marked_leave_bfr_days
A 8/1/2021 1 3
A 8/2/2021 1 4
A 8/3/2021 1 5
A 8/4/2021 1 5
A 8/5/2021 1 6
A 8... | [
{
"answer_id": 74387985,
"author": "cg-zhou",
"author_id": 5844918,
"author_profile": "https://Stackoverflow.com/users/5844918",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\nfrom datetime import datetime, timedelta\n\nfile = 'D:/test/TestPython/leave.csv' \ndf = pd.rea... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19741064/"
] |
74,383,788 | <p>How to reverse a string using pointers. I don't understand any of the answers online. I need it to be explained really slowly.</p>
<p>For an assignment, I need to use pointers to reverse a string (and to use that to test if something is a palindrome), and I cannot for the life of me understand any of the answers to ... | [
{
"answer_id": 74384111,
"author": "Pepijn Kramer",
"author_id": 16649550,
"author_profile": "https://Stackoverflow.com/users/16649550",
"pm_score": 1,
"selected": false,
"text": "#include <iostream>\n\nvoid reverse(char* input)\n{\n const std::size_t offset_of_last_character = strlen... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18865975/"
] |
74,383,791 | <p>I have a relative gravity dataset of 697 measurements taken at points with latitude and longitude. I am having trouble converting to an Xarray dataset so that I can inevitably create an interpolated grid with Xarray.interp_like.</p>
<p>I tried creating the DataArray from a series and from a Dataframe using the follo... | [
{
"answer_id": 74384111,
"author": "Pepijn Kramer",
"author_id": 16649550,
"author_profile": "https://Stackoverflow.com/users/16649550",
"pm_score": 1,
"selected": false,
"text": "#include <iostream>\n\nvoid reverse(char* input)\n{\n const std::size_t offset_of_last_character = strlen... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16042238/"
] |
74,383,797 | <p>I have excel with Survey Results.
There are multiple submissions(rows) by the same email.
I want to find the most filled / most completed row and delete the rest of the duplicate rows with the same email address.</p>
<p>I have a table like this. Multiple Submissions from a single email.</p>
<div class="s-table-conta... | [
{
"answer_id": 74516117,
"author": "b2m",
"author_id": 16592991,
"author_profile": "https://Stackoverflow.com/users/16592991",
"pm_score": 1,
"selected": false,
"text": "forEach(\n row.columnNames,\n colName,\n if(isNonBlank(row.cells[colName].value), 1, 0))\n .sum()\n"
},
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82457/"
] |
74,383,808 | <p>I would like to take the different values from my data frame and replace these values for the variables zip_code and id in the string query.</p>
<p>Example</p>
<p>This is my query</p>
<p>UPDATE <code>hospitals</code>
SET zip_code = 96761
WHERE id =
'o5FOLOdM1UtOXDB5_WDbWA'
AND zip_code = 9676</p>
<p>This is the inpu... | [
{
"answer_id": 74516117,
"author": "b2m",
"author_id": 16592991,
"author_profile": "https://Stackoverflow.com/users/16592991",
"pm_score": 1,
"selected": false,
"text": "forEach(\n row.columnNames,\n colName,\n if(isNonBlank(row.cells[colName].value), 1, 0))\n .sum()\n"
},
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11985685/"
] |
74,383,814 | <p>I have a strange problem that I can't seem to solve. At an impasse and I could really use your help. Here are the key characteristics of the problem.</p>
<ol>
<li><p>I CAN send an SMS via Twilio using <code>curl</code> (see below) at the command line and I CAN successfully receive it via T-mobile or Google Voice. T... | [
{
"answer_id": 74397260,
"author": "Misunderstood",
"author_id": 3813605,
"author_profile": "https://Stackoverflow.com/users/3813605",
"pm_score": 1,
"selected": false,
"text": "fetch('https://api.twilio.com/2010-04-01/Accounts/<SID>/Messages', {\n method: 'POST',\n headers: {\n ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19345701/"
] |
74,383,830 | <p>Suppose I have a texture, what I want to do is for each pixel, return only the biggest channel as 1 and the rest as 0.</p>
<p>For instance:</p>
<pre><code> | INPUT | OUTPUT
------|-------------------------|-----------------
RGBA | (0.5, 0.3, 0.4, 0.3) | (1, 0, 0, 0)
RGBA | ( 0 , 0... | [
{
"answer_id": 74383921,
"author": "Deleted",
"author_id": 585968,
"author_profile": "https://Stackoverflow.com/users/585968",
"pm_score": 1,
"selected": false,
"text": " Red\nRGBA -------- \n | \\ \n | Maximum -------- Maximum --- (max of R, G, B)\n | Green... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5348875/"
] |
74,383,862 | <p>I currently have a DataFrame with a shape of (16280, 13). I want to assign values to specific rows in a single column. I was originally doing so with:</p>
<pre><code>for idx, row in enumerate(df.to_dict('records')):
instances = row['instances']
labels = row['labels'].split('|')
for instance in instances... | [
{
"answer_id": 74385348,
"author": "Zelemist",
"author_id": 7512185,
"author_profile": "https://Stackoverflow.com/users/7512185",
"pm_score": 2,
"selected": false,
"text": ".iterrows() .to_dict() iterrows idx df.loc[idx, 'labels'] df.iloc[idx, : ].loc['labels'] loc iloc df_example = pd.D... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7766024/"
] |
74,383,879 | <p>In my flutter project I have created an api_service.dart which sends username and password and returns back with the Token authorization.</p>
<p>I am currently not able to send the authorization Token in the header to allow fetching information from dj-rest-auth/user and I am getting <code>Forbidden: /api/dj-rest-au... | [
{
"answer_id": 74385348,
"author": "Zelemist",
"author_id": 7512185,
"author_profile": "https://Stackoverflow.com/users/7512185",
"pm_score": 2,
"selected": false,
"text": ".iterrows() .to_dict() iterrows idx df.loc[idx, 'labels'] df.iloc[idx, : ].loc['labels'] loc iloc df_example = pd.D... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13176726/"
] |
74,383,907 | <p>So I have this code right here (<a href="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4cdc318db136b2cd5e381b32039845d4" rel="nofollow noreferrer">playground</a>):</p>
<pre class="lang-rs prettyprint-override"><code>use std::error::Error;
struct Foo {
data: Vec<i32>,
... | [
{
"answer_id": 74383986,
"author": "Nikolay Zakirov",
"author_id": 9023490,
"author_profile": "https://Stackoverflow.com/users/9023490",
"pm_score": 2,
"selected": true,
"text": "use std::cell::RefCell;\nuse std::error::Error;\n\nstruct Foo {\n data: RefCell<Vec<i32>>,\n counter: R... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13512544/"
] |
74,383,917 | <p>I'm making a tutorial on how to use my app for the first time.</p>
<p>So it looks like a popup about how to use a button</p>
<p>during the tutorial, I want to make the background darker and a circle appears that will circle the button and there is a tutorial text</p>
<p>So, I want to make a container that has circul... | [
{
"answer_id": 74384020,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 0,
"selected": false,
"text": "<head>\n <meta charset=\"UTF-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19811641/"
] |
74,383,924 | <p>I have 80 folders, and inside every folder, there are between 1 to 30 images.</p>
<p>I'm looking for a way to rename every image to random 20 digits.
<strong>Here is an example:</strong></p>
<pre><code>Folder_1
|
--- J0tNNchs7U.png -> 59106128950679048106.png
--- nB9HodYxov.png -> 95787130775876521419.png
--- ... | [
{
"answer_id": 74384020,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 0,
"selected": false,
"text": "<head>\n <meta charset=\"UTF-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7474282/"
] |
74,383,933 | <p>I have two Google sheets. Sheet1 are the employees, Sheet2 are the job titles, and Sheet3 I would like to find all employees with the specified job titles.</p>
<p>Sheet1 (thousands of rows)<br>
<a href="https://i.stack.imgur.com/emz2H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/emz2H.png" alt=... | [
{
"answer_id": 74383994,
"author": "Harun24hr",
"author_id": 5514747,
"author_profile": "https://Stackoverflow.com/users/5514747",
"pm_score": 1,
"selected": false,
"text": "=QUERY(Sheet1!A:C,\"select * where B matches '\" & TEXTJOIN(\"|\",TRUE,Sheet2!A2:A) & \"'\",1)\n"
},
{
"an... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4889910/"
] |
74,383,936 | <p>I'm not able to see my data on the map when I run the following script. I can see the map, the temporal slider is present at the bottom and scrolls through the dates I provided, however, I do not see a heat signature at any of the locations. Is there something I'm leaving off of this?</p>
<p>This is the table I'm ... | [
{
"answer_id": 74386367,
"author": "r-beginners",
"author_id": 13107804,
"author_profile": "https://Stackoverflow.com/users/13107804",
"pm_score": 1,
"selected": false,
"text": "import folium\nimport folium.plugins as plugins\nimport pandas as pd\nimport numpy as np\nimport random\n\n# s... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2877327/"
] |
74,383,937 | <p>I get a Laravel collection from a Eloquent query and I converted into an array using <code>toArray()</code> method. The sample output is mentioned below.</p>
<pre class="lang-php prettyprint-override"><code>Array ( [0] => Array ( [id] => 1 [details] => routes [level] => beginner [created_at] => 2022-1... | [
{
"answer_id": 74383965,
"author": "dvnc0",
"author_id": 20464681,
"author_profile": "https://Stackoverflow.com/users/20464681",
"pm_score": 0,
"selected": false,
"text": "foreach array_map $milestone_ids = array_map(function($data){\n return $data['pivot']['milestone_id'];\n}, $pivot... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16484935/"
] |
74,383,938 | <p>So I'm trying to create at REST API using DRF and Swagger for API Documentation, But I notice that Swagger UI Parameter doesn't match the given Serializer.
<strong>MailSerializer.py</strong>
`</p>
<pre><code>from main.BusinessLayer.Model.Mails import Mails
from rest_framework import serializers
class MailSerialize... | [
{
"answer_id": 74384293,
"author": "Ersain",
"author_id": 11544538,
"author_profile": "https://Stackoverflow.com/users/11544538",
"pm_score": 0,
"selected": false,
"text": "Meta.fields class MailSerializer(serializers.Serializer):\n class MailSerializer(serializers.ModelSerializer):\n"
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464787/"
] |
74,383,941 | <p>I have a project build with Laravel 8. My project will use for creating dynamic report that run with SQL query. So i must save the SQL query in my database to run dynamic every report.</p>
<p>It's all fine since i faced problem if my query are dynamic.</p>
<p>my code on Controller:</p>
<pre><code>public function dat... | [
{
"answer_id": 74384293,
"author": "Ersain",
"author_id": 11544538,
"author_profile": "https://Stackoverflow.com/users/11544538",
"pm_score": 0,
"selected": false,
"text": "Meta.fields class MailSerializer(serializers.Serializer):\n class MailSerializer(serializers.ModelSerializer):\n"
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9786205/"
] |
74,383,946 | <p>I love when simple things you think will take all of two minutes ends up taking over an hour! </p>
<p>When writing unit tests, we need to test for several specific error types, some of which have associated values. We also need access to the error itself so we can unit-test the localized description.</p>
<p>The iss... | [
{
"answer_id": 74384036,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 0,
"selected": false,
"text": "do/catch default: do {\n throw Error.missingKey(in: \"A\", at: \"A\".startIndex)\n}\ncatch {\n switch err... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/168179/"
] |
74,383,950 | <p>I have two divs within a <code>main</code> tag and a div. I'm trying to align them horizontally besides each other but nothing I've tried is working. I've tried <code>display:inline, flex, float, block, flex-direction</code>... but none are working. Some help would be great, thanks.</p>
<p>css:</p>
<pre><code><di... | [
{
"answer_id": 74384077,
"author": "Suresh Ponnukalai",
"author_id": 3607064,
"author_profile": "https://Stackoverflow.com/users/3607064",
"pm_score": 2,
"selected": true,
"text": "flex main .flexbox {\n display: flex;\n}\n\n\nmain {\n width: 100%;\n flex-direction: row;\n fl... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19730514/"
] |
74,383,962 | <p>I have a nested json value in flutter. I wanna get the value from nested json. But I can't do it.</p>
<p>I already tried to make a Class of nested json object. But it seems cannot cast to that object. I used jsonDecode() which is not work.
When I call the Data.fromJson, ParentData is null</p>
<pre><code>factory Data... | [
{
"answer_id": 74384077,
"author": "Suresh Ponnukalai",
"author_id": 3607064,
"author_profile": "https://Stackoverflow.com/users/3607064",
"pm_score": 2,
"selected": true,
"text": "flex main .flexbox {\n display: flex;\n}\n\n\nmain {\n width: 100%;\n flex-direction: row;\n fl... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74383962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20297139/"
] |
74,384,011 | <p>Let's say I have a dataframe, called <code>original_df</code>, of 20,000 rows. I split the first 18,000 rows to be used as my training set and the last 2,000 rows to be used as my testing set. When I use the <code>sample</code> function on the <code>original_df</code> <em>before splitting</em> and run a classifier m... | [
{
"answer_id": 74384077,
"author": "Suresh Ponnukalai",
"author_id": 3607064,
"author_profile": "https://Stackoverflow.com/users/3607064",
"pm_score": 2,
"selected": true,
"text": "flex main .flexbox {\n display: flex;\n}\n\n\nmain {\n width: 100%;\n flex-direction: row;\n fl... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12208412/"
] |
74,384,043 | <div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Contact</th>
<th>Old Contact</th>
</tr>
</thead>
<tbody>
<tr>
<td>234255</td>
<td>987778</td>
</tr>
<tr>
<td>343556</td>
<td>987877</td>
</tr>
<tr>
<td>Missing</td>
<td>984567</td>
</tr>
<tr>
<td>Missing</td>
<td></td>
</tr>
<tr>
<td>Missing</td>
... | [
{
"answer_id": 74384091,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 2,
"selected": true,
"text": "mask df['Contact'].mask(df['Contact'].eq('Missing'), df['Old Contact'].fillna('Missing'))\n 0 234255\n1 ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6048779/"
] |
74,384,046 | <p>I have a process with repetitive events with an order, you can see an example in the table</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>User</th>
<th>Event</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>XYZ</td>
<td>Event 1</td>
<td>2022-01-01</td>
</tr>
<tr>
<td>XYZ</td>
<td>Even... | [
{
"answer_id": 74384091,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 2,
"selected": true,
"text": "mask df['Contact'].mask(df['Contact'].eq('Missing'), df['Old Contact'].fillna('Missing'))\n 0 234255\n1 ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20325690/"
] |
74,384,057 | <p><strong>SplashActivity.cs</strong></p>
<p>namespace Splash12.Droid
{
[Activity(Theme = "@style/MyTheme.Splash", MainLauncher = true, NoHistory = true)]
public class SplashActivity : AppCompatActivity
{
static readonly string TAG = "X:" + typeof(SplashActivity).Name;</p>
<pre><code> public over... | [
{
"answer_id": 74384091,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 2,
"selected": true,
"text": "mask df['Contact'].mask(df['Contact'].eq('Missing'), df['Old Contact'].fillna('Missing'))\n 0 234255\n1 ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464856/"
] |
74,384,059 | <p>I am trying to validate a restclientexception error. My code is below and help would be appreciated. This is from my test class:`</p>
<p>`</p>
<pre><code>@Test
void test_update_customer_in_ath0_server_error(){
//given
ResponseEntity<String> responseEntity = new ResponseEntity<>(HttpStatus.SERVICE... | [
{
"answer_id": 74384091,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 2,
"selected": true,
"text": "mask df['Contact'].mask(df['Contact'].eq('Missing'), df['Old Contact'].fillna('Missing'))\n 0 234255\n1 ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464887/"
] |
74,384,074 | <p>I'm trying to remove the last comma at the end of my string, plain and simply because it looks WRONG.</p>
<pre><code>while($row = mysqli_fetch_assoc($query)){
$category = $row['category'];
$string = "<a href='category.php'>".$category.",</a> ";
ech... | [
{
"answer_id": 74384188,
"author": "dvnc0",
"author_id": 20464681,
"author_profile": "https://Stackoverflow.com/users/20464681",
"pm_score": -1,
"selected": false,
"text": "substr $category = substr($row['category'], 0, -1); $category = implode(',', $row['category']); implode while $outp... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19670004/"
] |
74,384,075 | <p>I have a javascript array that contains 40 items in it. I want to create a function so that the function cycles through of item in the array and makes an api call based on the current value of the array.</p>
<p>The catch is that I want there to be a 3 second timer between each of the api calls in order to prevent ex... | [
{
"answer_id": 74384167,
"author": "vitaly-t",
"author_id": 1102051,
"author_profile": "https://Stackoverflow.com/users/1102051",
"pm_score": 1,
"selected": false,
"text": "import {pipeAsync, map, wait, delay} from 'iter-ops';\n\nconst properties = [...]; // your list of objects\n\nconst... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19124184/"
] |
74,384,076 | <p>How can i only let tid length 7 at level <strong>one</strong> and tid length 10 go to show at level <strong>two</strong>. I tried to use v-if to make as filter but only show the level <strong>one</strong>, but level <strong>two</strong> doesn't show.</p>
<p>Tid</p>
<p><img src="https://i.stack.imgur.com/Dt7OM.png" a... | [
{
"answer_id": 74384228,
"author": "O-h-y-o",
"author_id": 20417954,
"author_profile": "https://Stackoverflow.com/users/20417954",
"pm_score": 1,
"selected": false,
"text": "<template>\n <div class=\"css-treeview\">\n <template v-for=\"item in treelist\" :key=\"item\">\n <ul>\n ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20181506/"
] |
74,384,114 | <p>I need to filter the df based on 2 criteria: where Name != jack and ignore all dates for jack where Date <= 2020-04-01</p>
<pre><code> # List of Tuples
df = [ ('jack', 'Apples' , '2020-01-01') ,
('Riti', 'Mangos' , '2020-02-01') ,
('Aadi', 'Grapes' , '2020-03-01') ,
('... | [
{
"answer_id": 74384239,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 3,
"selected": true,
"text": "boolean indexing cond1 = df1['Name'] != 'jack'\ncond2 = pd.to_datetime(df1['Date']) > pd.Timestamp('2020-04-01')\... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19046169/"
] |
74,384,135 | <p>I have asked the user for input and set out while true,try and expect blocks. I keep getting valueError even though I have set out that integer required should be displayed if I enter a letter.</p>
<pre><code>pass_credit=int(input("please enter your credits at pass:"))
defer_credit=int(input("Please e... | [
{
"answer_id": 74384189,
"author": "Aftab_Udaipurwala",
"author_id": 20417129,
"author_profile": "https://Stackoverflow.com/users/20417129",
"pm_score": 0,
"selected": false,
"text": "if __name__ =='__main__':\n pass_credit=int(float(input(\"please enter your credits at pass:\")))\n ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463955/"
] |
74,384,145 | <p>I have this data <strong>:</strong></p>
<pre><code>let obj = {
"additional_image_link": [
[
"https://2ccdn.celestino.gr/small/SK7732.1825-7@2.jpg",
"https://2ccdn.celestino.gr/small/SK7732.1825-7@2F.jpg",
]
],
"aff_link": &qu... | [
{
"answer_id": 74384230,
"author": "Rajesh",
"author_id": 3783478,
"author_profile": "https://Stackoverflow.com/users/3783478",
"pm_score": 0,
"selected": false,
"text": "Array.concat [property] : [].concat(...obj[property])\n let obj = {\n \"additional_image_link\": [\n [\n \"h... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1091439/"
] |
74,384,170 | <p>I am working on BPM project and using Activiti for the BPM configuration.</p>
<p>While executing the process I am facing one issue, where one of the property which is I am passing from one of the task expecting to meet to other task wont work.</p>
<p>This is the error I am facing:</p>
<blockquote>
<p>Activiti Caused... | [
{
"answer_id": 74384230,
"author": "Rajesh",
"author_id": 3783478,
"author_profile": "https://Stackoverflow.com/users/3783478",
"pm_score": 0,
"selected": false,
"text": "Array.concat [property] : [].concat(...obj[property])\n let obj = {\n \"additional_image_link\": [\n [\n \"h... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3948697/"
] |
74,384,200 | <p>I'm getting a json format like this and I want to get the value of <em>"Duration", "Id", "LoadCumulLimit" and "Notes"</em>.</p>
<p><code>QJsonDocument({"d":{"results":[{"Duration":"420.000","Id":"123456789XYZ","L... | [
{
"answer_id": 74384230,
"author": "Rajesh",
"author_id": 3783478,
"author_profile": "https://Stackoverflow.com/users/3783478",
"pm_score": 0,
"selected": false,
"text": "Array.concat [property] : [].concat(...obj[property])\n let obj = {\n \"additional_image_link\": [\n [\n \"h... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8296423/"
] |
74,384,244 | <p>The red border is only for reference. I have tried <code>overflow: hidden</code> but it didn't work. I am trying to have the same border radius as the red border. Is there anything that I am doing wrong? Thank you.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
... | [
{
"answer_id": 74384291,
"author": "Nick Vu",
"author_id": 9201587,
"author_profile": "https://Stackoverflow.com/users/9201587",
"pm_score": 0,
"selected": false,
"text": "overflow: hidden .rating *,*::before, *::after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464992/"
] |
74,384,254 | <p>I'm using <strong>ScalingLazyColumn</strong> with a very long <strong>Text</strong> inside as follows:</p>
<pre><code>@Preview(device = Devices.WEAR_OS_SMALL_ROUND, showSystemUi = true)
@Composable
fun Test(modifier: Modifier = Modifier) {
val scalingLazyState = remember { ScalingLazyListState() }
val focusR... | [
{
"answer_id": 74385014,
"author": "Yuri Schimke",
"author_id": 1542667,
"author_profile": "https://Stackoverflow.com/users/1542667",
"pm_score": 0,
"selected": false,
"text": "\n val scalingLazyState = remember { ScalingLazyListState(initialCenterItemIndex = 0) }\n ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7219194/"
] |
74,384,258 | <p>I have a selectpicker inside a table. I am passing the selected value into it but it shows the first value. why?</p>
<pre><code><td>
<select name="select[]" id="select" data-selected="224515"
class="selectpicker form-control select" data-live-search="... | [
{
"answer_id": 74387919,
"author": "Shreya Desai",
"author_id": 11439701,
"author_profile": "https://Stackoverflow.com/users/11439701",
"pm_score": 0,
"selected": false,
"text": "<td>\n <select name=\"select[]\" id=\"select\"\n class=\"selectpicker form-control select\" data-live-sear... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15787350/"
] |
74,384,329 | <p>I have this component:</p>
<pre><code><div #widget
class="widget">
</div>
@ViewChild('widget') widget!: any;
ngOnInit() {
console.log(this.widget.nativeElement) //returns undedined
}
</code></pre>
<p>However it is working if I use native api:</p>
<pre><code>console.log(document.... | [
{
"answer_id": 74384431,
"author": "Khumo Mogorosi",
"author_id": 9674861,
"author_profile": "https://Stackoverflow.com/users/9674861",
"pm_score": 0,
"selected": false,
"text": "ngOnInit() ngAfterViewInit() export class AddUpdateFormComponent implements AfterViewInit {\n @ViewChild('wi... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2926340/"
] |
74,384,336 | <p>I have an array which has keys <code>eventId</code> and <code>selectedNumber</code>. In the array same eventid can be present in multiple objects but <code>selectedNumber</code> value will be always different. My aim is to make a nested array in which each object will have unique <code>eventId</code> But <code>selec... | [
{
"answer_id": 74384431,
"author": "Khumo Mogorosi",
"author_id": 9674861,
"author_profile": "https://Stackoverflow.com/users/9674861",
"pm_score": 0,
"selected": false,
"text": "ngOnInit() ngAfterViewInit() export class AddUpdateFormComponent implements AfterViewInit {\n @ViewChild('wi... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5392636/"
] |
74,384,354 | <p>I have a model that uses an attention mechanism as below:</p>
<pre><code>def create_model(feature_size, max_features, num_class):
feature_input = Input((max_features,feature_size), dtype=tf.float32)
feature_vectors = TimeDistributed(Dense(feature_size, use_bias=False, activation='tanh'))(feature_inpu... | [
{
"answer_id": 74384930,
"author": "V.M",
"author_id": 8143158,
"author_profile": "https://Stackoverflow.com/users/8143158",
"pm_score": 3,
"selected": true,
"text": "attention scores attention = keras.Model(inputs=model.input, \n outputs=model.get_layer(\... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4299527/"
] |
74,384,371 | <p>How would I go about adding a column to a MudBlazor DataGrid that uses a nested object?</p>
<p>For example, I have a basic entity called Foo which has the following makeup:</p>
<pre><code>public class Foo
{
public int Id {get; set;}
public Bar Bar {get; set;}
}
public class Bar
{
public string Name {ge... | [
{
"answer_id": 74448511,
"author": "LYass",
"author_id": 15592966,
"author_profile": "https://Stackoverflow.com/users/15592966",
"pm_score": 1,
"selected": false,
"text": "public class Bar \n{\n public string Name {get; set;}\n public override string ToString(){\n return... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6490191/"
] |
74,384,372 | <p>Help me pls.
I have this error.
10Q</p>
<p>Unhandled Exception: NoSuchMethodError: Class 'FirebaseAuthException' has no instance getter '_message'.
E/flutter ( 5700): Receiver: Instance of 'FirebaseAuthException'
E/flutter ( 5700): Tried calling: _message</p>
<pre><code>await _auth
.signInWithEmailAndPassword(
... | [
{
"answer_id": 74448511,
"author": "LYass",
"author_id": 15592966,
"author_profile": "https://Stackoverflow.com/users/15592966",
"pm_score": 1,
"selected": false,
"text": "public class Bar \n{\n public string Name {get; set;}\n public override string ToString(){\n return... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19936765/"
] |
74,384,395 | <p>Good morning
I've been sitting for 5 hours on what should be a simple problem. I would be grateful if you could end my suffering.
It is about a dashboard page. I want the user to be greeted with his name (Hello, ....) after he has registered with his email address. When registering, the email address is always the s... | [
{
"answer_id": 74384556,
"author": "ilyasbbu",
"author_id": 16475089,
"author_profile": "https://Stackoverflow.com/users/16475089",
"pm_score": 0,
"selected": false,
"text": "current_user = request.user current_user = current_user.split('@')[0]\n"
},
{
"answer_id": 74384583,
... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19433213/"
] |
74,384,403 | <p>I'm trying to avoid having a bunch of <code>if</code>s or <code>assert</code>s in the code using this class.</p>
<pre class="lang-py prettyprint-override"><code>class TemplateRow(tp.NamedTuple):
"""Parsed template row, if not error."""
template: Template | None = None
error... | [
{
"answer_id": 74386094,
"author": "Paweł Rubin",
"author_id": 8091093,
"author_profile": "https://Stackoverflow.com/users/8091093",
"pm_score": 3,
"selected": true,
"text": "TypeGuard ValidTemplateRow InvalidTemplateRow isinstance \nclass ValidTemplateRow(tp.NamedTuple):\n template: ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4574182/"
] |
74,384,406 | <p>Sort the k arrays individually and concatenate them.
Input Description:
First line contains the number of arrays. Subsequent lines contain the size of the array followed by the elements of the array.</p>
<p>Output Description:
An array containing the sorted elements of k sorted arrays</p>
<p>Sample Input :
3
2
98 12... | [
{
"answer_id": 74385084,
"author": "creatorpravin",
"author_id": 17981270,
"author_profile": "https://Stackoverflow.com/users/17981270",
"pm_score": 2,
"selected": false,
"text": "import re\nval = \"[ ' 1 2 ' , ' 9 8 ' ] [ ' 1 ' , ' 2 ' , ' 3 ' , ' 5 ' , ' 8 ' , ' 9 ' ] [ ' 1... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18381720/"
] |
74,384,416 | <p>I am new to python and I've been trying to wrap my head around this code:</p>
<pre><code>stop = int(input())
result = 0
for a in range(4):
print(a, end=': ')
for b in range(2):
result += a + b
if result > stop:
print('-', end=' ')
continue
print(result, end=... | [
{
"answer_id": 74384882,
"author": "Nazmul Hasan",
"author_id": 20173161,
"author_profile": "https://Stackoverflow.com/users/20173161",
"pm_score": 0,
"selected": false,
"text": "when a = 0 and b = 1, result = 0 + 0 + 1 = 1, \n\nso, for a = 1 and b = 0, result = 1 + 1 + 0 = 2\nwhen a = ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20103444/"
] |
74,384,437 | <p>I would like to define the content of a file in a <code>wstring</code>, so I can print it with an <code>ofstream</code> later on.</p>
<p>Example:</p>
<pre><code>// Working
std::wstring file_content=L"€";
</code></pre>
<pre><code>// Working
file_content=L"€"
L"€"
L"€";
</code><... | [
{
"answer_id": 74384488,
"author": "Özgür Murat Sağdıçoğlu",
"author_id": 5106317,
"author_profile": "https://Stackoverflow.com/users/5106317",
"pm_score": 0,
"selected": false,
"text": "std::wstring file_content=LR\"SOMETHING(\n€\n€\"\n€\n)SOMETHING\";\n SOMETHING \""
},
{
"answ... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18376025/"
] |
74,384,454 | <p>Im working on a new social media app and Im having and issue with my navigation code.</p>
<p>Once a user fills out the registration form I want them to be prompted to upload the profile picture. The issue I am having is that it shows the intended view for a half second then moves right back to the registration view.... | [
{
"answer_id": 74385211,
"author": "workingdog support Ukraine",
"author_id": 11969817,
"author_profile": "https://Stackoverflow.com/users/11969817",
"pm_score": 0,
"selected": false,
"text": "NavigationStack NavigationStack viewModel.didAuthenticateUser struct ContentView: View {\n @... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20441037/"
] |
74,384,455 | <pre><code>return [
'contract_code' => 'required',
'name' => 'required|string',
'abbreviation' => 'required|string',
'linecount_divisor' => 'required|integer'
];
</code></pre>
<pre><code>// into input fields => 'required'
</code></pre>
<p>How to shorten the validation rule in multiple inputs?</p>
| [
{
"answer_id": 74385211,
"author": "workingdog support Ukraine",
"author_id": 11969817,
"author_profile": "https://Stackoverflow.com/users/11969817",
"pm_score": 0,
"selected": false,
"text": "NavigationStack NavigationStack viewModel.didAuthenticateUser struct ContentView: View {\n @... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16847167/"
] |
74,384,464 | <p>I am using CMake 3.23 and the build directory is <code>C:\Dev\MyProject\LibA\cmake-build-debug-vs</code>. <code>${CMAKE_CURRENT_BINARY_DIR}</code> provide the full path to the build directory. Is there any way to only get <code>cmake-build-debug-vs</code>?</p>
<p>Does CMake have a dedicated variable for only the nam... | [
{
"answer_id": 74385211,
"author": "workingdog support Ukraine",
"author_id": 11969817,
"author_profile": "https://Stackoverflow.com/users/11969817",
"pm_score": 0,
"selected": false,
"text": "NavigationStack NavigationStack viewModel.didAuthenticateUser struct ContentView: View {\n @... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227860/"
] |
74,384,468 | <p>I am trying to find the way of making a formula that will auto generate the "id" number like we do in mySql auto-generate.</p>
<p>If I explain more, it would be like (number of A1 + 1).</p>
| [
{
"answer_id": 74384538,
"author": "hello world",
"author_id": 11209333,
"author_profile": "https://Stackoverflow.com/users/11209333",
"pm_score": 3,
"selected": true,
"text": "=SUM((INDIRECT(\"A\" & ROW() - 1)),1)\n A"
},
{
"answer_id": 74386343,
"author": "player0",
"au... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15225193/"
] |
74,384,470 | <pre><code>url = "https://www.ebay.com/sch/i.html?_from=R40&_trksid=p2380057.m570.l1313&_nkw=electronics"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
names = soup.find_all("div", class_="s-item__title")
prices = soup.find_all("... | [
{
"answer_id": 74384538,
"author": "hello world",
"author_id": 11209333,
"author_profile": "https://Stackoverflow.com/users/11209333",
"pm_score": 3,
"selected": true,
"text": "=SUM((INDIRECT(\"A\" & ROW() - 1)),1)\n A"
},
{
"answer_id": 74386343,
"author": "player0",
"au... | 2022/11/10 | [
"https://Stackoverflow.com/questions/74384470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.