qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,378,814 | <p>A paper now in page proofs has been modified by the copy editor to have figure tags (e.g. 'A', 'B', ...) in <strong>bold</strong>, while the rest of the label is normal. For example "<strong>A</strong> matches > 30", "<strong>B</strong> matches > 60". I cannot figure out how to get facet_... | [
{
"answer_id": 74379017,
"author": "CryptoFool",
"author_id": 7631480,
"author_profile": "https://Stackoverflow.com/users/7631480",
"pm_score": 2,
"selected": true,
"text": "valuecheck() def valuecheck(checker):\n while True:\n try:\n checker = int(checker)\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10332171/"
] |
74,378,826 | <pre><code>LocalDate beginDate = LocalDate.now()
.with(ChronoField.DAY_OF_WEEK, 1)
.atStartOfDay()
.minusDays(8)
.toLocalDate();
</code></pre>
<p>I am getting the previous week begin date using the above code line. However I want to add HH:MM:SS format to this. I have tried different way... | [
{
"answer_id": 74378868,
"author": "Arkady Dymkov",
"author_id": 20446959,
"author_profile": "https://Stackoverflow.com/users/20446959",
"pm_score": -1,
"selected": false,
"text": "@DateTimeFormat(\"HH:MM:SS\")\n@JsonFormat(\"HH:MM:SS\")\n"
},
{
"answer_id": 74379096,
"author... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20406891/"
] |
74,378,858 | <pre><code>export interface team {
football:Football
table-tennis:TableTennis
}
export interface Football{
goalPost:any
ball:any
}
export interface TableTennis{
bat:any
ball:any
}
</code></pre>
| [
{
"answer_id": 74378868,
"author": "Arkady Dymkov",
"author_id": 20446959,
"author_profile": "https://Stackoverflow.com/users/20446959",
"pm_score": -1,
"selected": false,
"text": "@DateTimeFormat(\"HH:MM:SS\")\n@JsonFormat(\"HH:MM:SS\")\n"
},
{
"answer_id": 74379096,
"author... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7375694/"
] |
74,378,899 | <p>This will not work for some reason. I have no idea why it doesnt work</p>
<pre><code># adds an event
@client.event
async def on_message(message):
# so i dont have to say message.content a lot
msg = message.content
# if a message starts with !dm create a dm channel with the specified user
if msg.content.start... | [
{
"answer_id": 74378868,
"author": "Arkady Dymkov",
"author_id": 20446959,
"author_profile": "https://Stackoverflow.com/users/20446959",
"pm_score": -1,
"selected": false,
"text": "@DateTimeFormat(\"HH:MM:SS\")\n@JsonFormat(\"HH:MM:SS\")\n"
},
{
"answer_id": 74379096,
"author... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17205965/"
] |
74,378,910 | <p>I am creating two dataframes, that I set equal to eachother based on an index field. So each frame has the same indices on both sides and I sort them as well. I want to return the differences between these fields, so as to catch any of the rows that have 'updated' since the last run. But I am getting a weird resul... | [
{
"answer_id": 74378868,
"author": "Arkady Dymkov",
"author_id": 20446959,
"author_profile": "https://Stackoverflow.com/users/20446959",
"pm_score": -1,
"selected": false,
"text": "@DateTimeFormat(\"HH:MM:SS\")\n@JsonFormat(\"HH:MM:SS\")\n"
},
{
"answer_id": 74379096,
"author... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3486773/"
] |
74,378,923 | <p>I am trying to create a neat legend in Pyplot. So far I have this:</p>
<p><a href="https://i.stack.imgur.com/jKZvC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jKZvC.png" alt="Legend" /></a></p>
<pre><code> fig = plt.figure()
ax = plt.gca()
marker_size = [20.0, 40.0, 60.0, 100.0, 15... | [
{
"answer_id": 74379514,
"author": "JohanC",
"author_id": 12046409,
"author_profile": "https://Stackoverflow.com/users/12046409",
"pm_score": 3,
"selected": true,
"text": "'\\u2007' import matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = plt.gca()\n\nmarker_size = [20.0, 40.0, 60.0, ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19979370/"
] |
74,378,973 | <p>I have a dataframe, where I extract a certain subset:</p>
<pre><code>tmp <- mtcars |> select(disp, hp)
</code></pre>
<p>then I make some data manipulation</p>
<pre><code>tmp$disp <- tmp$disp*0
tmp$hp <- tmp$hp*2
</code></pre>
<p>Now I want to reintegrate the changes into the original
How?</p>
<p>Of cours... | [
{
"answer_id": 74379514,
"author": "JohanC",
"author_id": 12046409,
"author_profile": "https://Stackoverflow.com/users/12046409",
"pm_score": 3,
"selected": true,
"text": "'\\u2007' import matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = plt.gca()\n\nmarker_size = [20.0, 40.0, 60.0, ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2032712/"
] |
74,378,980 | <p>Java LibGdx Box2d</p>
<p>I would like to make body borders invisible or at least different color. One body should work as sensor and thus not be visible on the screen. I could not find a valid answer for that in hours and I cannot believe there is no such option in this library so I assume I must have missed one lin... | [
{
"answer_id": 74379514,
"author": "JohanC",
"author_id": 12046409,
"author_profile": "https://Stackoverflow.com/users/12046409",
"pm_score": 3,
"selected": true,
"text": "'\\u2007' import matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = plt.gca()\n\nmarker_size = [20.0, 40.0, 60.0, ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74378980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13211194/"
] |
74,379,021 | <p>I'm tring to make a clean Flask App which use SQLAlchemy and Multi-Threading.</p>
<p>I've read the doc : <a href="https://docs.sqlalchemy.org/en/14/orm/contextual.html#thread-local-scope" rel="nofollow noreferrer">https://docs.sqlalchemy.org/en/14/orm/contextual.html#thread-local-scope</a> but can't manage to make i... | [
{
"answer_id": 74379514,
"author": "JohanC",
"author_id": 12046409,
"author_profile": "https://Stackoverflow.com/users/12046409",
"pm_score": 3,
"selected": true,
"text": "'\\u2007' import matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = plt.gca()\n\nmarker_size = [20.0, 40.0, 60.0, ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2373259/"
] |
74,379,026 | <p>I'm trying to set up a GCP Cloud Function to generate the email verification link using <code>admin.auth().generateEmailVerificationLink</code>, but it throws the error:</p>
<pre><code>Error: Credential implementation provided to initializeApp() via the "credential" property has insufficient permission to ... | [
{
"answer_id": 74380501,
"author": "Alexander N.",
"author_id": 3946096,
"author_profile": "https://Stackoverflow.com/users/3946096",
"pm_score": 0,
"selected": false,
"text": "FIREBASE_CONFIG FIREBASE_CONFIG {\"projectId\":\"myawesomeproject\",\"storageBucket\":\"myawesomeproject.appspo... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6090140/"
] |
74,379,039 | <p>Hi everyone I would like to display for each element all of its sub-documents.</p>
<pre><code> <div><ul>{designModdulles.map((designModdulle)=><li key={designModdulle.epreuves.nature_epreuve}>{designModdulle.epreuves.nature_epreuve}</li>) }</ul></div>
```
I wanted the sub docu... | [
{
"answer_id": 74380501,
"author": "Alexander N.",
"author_id": 3946096,
"author_profile": "https://Stackoverflow.com/users/3946096",
"pm_score": 0,
"selected": false,
"text": "FIREBASE_CONFIG FIREBASE_CONFIG {\"projectId\":\"myawesomeproject\",\"storageBucket\":\"myawesomeproject.appspo... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17161829/"
] |
74,379,088 | <p>There's an object below named cricket mania consisting of net runs and points scored by different countries. I am trying to write a code in JS to sort the teams according to their Points first, and if they have the same points, use Net Run as the
tiebreaker. In our case, its the Bangladesh and Nepal that has scored ... | [
{
"answer_id": 74379433,
"author": "Alexey Zelenin",
"author_id": 6290921,
"author_profile": "https://Stackoverflow.com/users/6290921",
"pm_score": 2,
"selected": true,
"text": "asArray.sort((a, b) => (a.points * 100 + a.netRuns) - (b.points * 100 + b.netRuns));\n b.netRuns const cricket... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17526212/"
] |
74,379,093 | <pre><code>//1
print("abc".replaceAllMapped(RegExp("(.).+"), (m) => "${m[1]}"));
//printed "a"
//2
var r = r"${m[1]}"; //variables from outside
print("abc".replaceAllMapped(RegExp("(.).+"), (m) => r));
//printed "${m[1]}"
//How can ... | [
{
"answer_id": 74379433,
"author": "Alexey Zelenin",
"author_id": 6290921,
"author_profile": "https://Stackoverflow.com/users/6290921",
"pm_score": 2,
"selected": true,
"text": "asArray.sort((a, b) => (a.points * 100 + a.netRuns) - (b.points * 100 + b.netRuns));\n b.netRuns const cricket... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461337/"
] |
74,379,123 | <p>I am just starting to learn C. Any help is appreciated!</p>
<p>I have an array of pointers to a struct, and I want to use the built-in <a href="https://en.cppreference.com/w/c/algorithm/qsort" rel="nofollow noreferrer">qsort function</a> to sort the array according to values in the structs the pointers point to. I a... | [
{
"answer_id": 74379178,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "qsort & &arr[0] &arr[1] arr compare_nodes ListNode"
},
{
"answer_id": 74379491,
"author": "Vl... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8552542/"
] |
74,379,162 | <p>I'm looking to stack the indices of some columns on top of one another, this is what I currently have:</p>
<pre class="lang-py prettyprint-override"><code>
Buy Buy Currency Sell Sell Currency
Date
2013-12-31 100 CAD 100 U... | [
{
"answer_id": 74379178,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 2,
"selected": false,
"text": "qsort & &arr[0] &arr[1] arr compare_nodes ListNode"
},
{
"answer_id": 74379491,
"author": "Vl... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4731636/"
] |
74,379,181 | <p>So i have a main function that calls two other functions, one of witch i have to await for result, so each funtion needs to be called separatly as they are trigered in different parts of the code, but test1 funct can run in parallel and i don't need the result, but test2 needs to provide a result.</p>
<p>I like for ... | [
{
"answer_id": 74379455,
"author": "Totigamer 2004",
"author_id": 16471853,
"author_profile": "https://Stackoverflow.com/users/16471853",
"pm_score": 0,
"selected": false,
"text": "function getData(yourUrl, method=\"POST\"){\n return new Promise((resolve, reject) => \n var xhr ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8459020/"
] |
74,379,192 | <p>I want to get ID value of this HTML markup.</p>
<p>Example: 123</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>var id_query = document.querySelector("div.elementor-elemen... | [
{
"answer_id": 74379256,
"author": "isherwood",
"author_id": 1264804,
"author_profile": "https://Stackoverflow.com/users/1264804",
"pm_score": 2,
"selected": false,
"text": "querySelector element.id const element = document.querySelector(\"div.elementor-element-429a9ef\");\nconst id = el... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19808840/"
] |
74,379,216 | <p>I have the following HTML/CSS code for displaying an image and a block of text side by side over a full-width background image.</p>
<pre><code><section style="position: static; background-color: black; margin: 0; padding: 0; width: 100%; background-image: url("background.jpg"); background-repeat: n... | [
{
"answer_id": 74379917,
"author": "Coder1979",
"author_id": 11089218,
"author_profile": "https://Stackoverflow.com/users/11089218",
"pm_score": 0,
"selected": false,
"text": "<section style=\"position: static; background-color: black; margin: 0; padding: 0; width: 100%; background-image... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11089218/"
] |
74,379,227 | <p>I am working on creating a simple desktop program in Java, and I want to upload files via this program to Dropbox, but the problem is that the access token has a short life (temporary), how can I make the access token have a long life, or if I can use the App key and App secret?</p>
<p>I need a simple solution like ... | [
{
"answer_id": 74379917,
"author": "Coder1979",
"author_id": 11089218,
"author_profile": "https://Stackoverflow.com/users/11089218",
"pm_score": 0,
"selected": false,
"text": "<section style=\"position: static; background-color: black; margin: 0; padding: 0; width: 100%; background-image... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13898091/"
] |
74,379,233 | <p>Working with a function to write to breakdown a large dataset into grouped files</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>State</th>
<th>col1</th>
<th>col2</th>
</tr>
</thead>
<tbody>
<tr>
<td>MI</td>
<td>a</td>
<td>e</td>
</tr>
<tr>
<td>MI</td>
<td>b</td>
<td>f</td>
</tr>
<tr>
<t... | [
{
"answer_id": 74379917,
"author": "Coder1979",
"author_id": 11089218,
"author_profile": "https://Stackoverflow.com/users/11089218",
"pm_score": 0,
"selected": false,
"text": "<section style=\"position: static; background-color: black; margin: 0; padding: 0; width: 100%; background-image... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11021160/"
] |
74,379,235 | <p>I need to select the paragraph before the read more so that I can expand the height to the full height of the paragraph. I don't know how I can select it with the :focus selector</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre cla... | [
{
"answer_id": 74379917,
"author": "Coder1979",
"author_id": 11089218,
"author_profile": "https://Stackoverflow.com/users/11089218",
"pm_score": 0,
"selected": false,
"text": "<section style=\"position: static; background-color: black; margin: 0; padding: 0; width: 100%; background-image... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461570/"
] |
74,379,244 | <p>Warning: DOMDocument::loadXML(): CData section not finished public function add() { $this->load->language(' in Entity, line: 584 in /home/s/syperdgq/syperdgq.beget.tech/public_html/admin/controller/marketplace/modification.php on line 467Warning: DOMDocument::loadXML(): Premature end of data in tag add line 37... | [
{
"answer_id": 74379917,
"author": "Coder1979",
"author_id": 11089218,
"author_profile": "https://Stackoverflow.com/users/11089218",
"pm_score": 0,
"selected": false,
"text": "<section style=\"position: static; background-color: black; margin: 0; padding: 0; width: 100%; background-image... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461598/"
] |
74,379,268 | <p>I was reading the following on .NET 7 and <a href="https://learn.microsoft.com/en-us/dotnet/standard/generics/math" rel="nofollow noreferrer"><code>INumber</code></a>:</p>
<p>It gave an example of adding two INumber generic values, which I tried to replicate in F# to no success.</p>
<pre><code>let add<'T when 'T ... | [
{
"answer_id": 74379917,
"author": "Coder1979",
"author_id": 11089218,
"author_profile": "https://Stackoverflow.com/users/11089218",
"pm_score": 0,
"selected": false,
"text": "<section style=\"position: static; background-color: black; margin: 0; padding: 0; width: 100%; background-image... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8541861/"
] |
74,379,285 | <p>I am new to Spring boot and sorry in case it's very basic but I am posting as I have tried other ways and checked similar threads as well.</p>
<p>If I use below code it's returning correct response</p>
<pre><code>ResponseEntity<String> responseEntityString = restTemplate.exchange(url, HttpMethod.GET, requestEn... | [
{
"answer_id": 74382490,
"author": "Luiggi Mendoza",
"author_id": 1065197,
"author_profile": "https://Stackoverflow.com/users/1065197",
"pm_score": 1,
"selected": false,
"text": "static RestTemplate restTemplate = new RestTemplate(); import com.fasterxml.jackson.databind.ObjectMapper;\ni... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18569862/"
] |
74,379,302 | <p>I have an array of the vowels in the alphabet and the user should enter a letter.
This letter has to be checked if its in the array of vowels or not
If it is found in the array of vowels then print letter is a vowel
else print letter is a constant.</p>
<h1><strong>My problem is that</strong></h1>
<p>when I enter a l... | [
{
"answer_id": 74379402,
"author": "Dean",
"author_id": 20461571,
"author_profile": "https://Stackoverflow.com/users/20461571",
"pm_score": 0,
"selected": false,
"text": "public static void main(String[] args){\n Scanner g = new Scanner(System.in);\n char[] Vowels = {'A','I... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20079157/"
] |
74,379,318 | <p>I have the following code in Flutter. The variable checkValue is set to false and the variable newValue is optional, so I have to check if it is null or not. Then, I change checkValue to the value of newValue inside the setState() method. My problem is that it jumps the setState() method and does not change the valu... | [
{
"answer_id": 74379337,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": false,
"text": "setState setState(() {\n ///jobs\n});\n setState(\n () {\n checkValue = newValue;\n },\n);\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461528/"
] |
74,379,348 | <pre><code> return Scaffold(
body: Center(
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
color: Colors.red,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
child: Center(
child: Selec... | [
{
"answer_id": 74379337,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": false,
"text": "setState setState(() {\n ///jobs\n});\n setState(\n () {\n checkValue = newValue;\n },\n);\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17906689/"
] |
74,379,355 | <p>I have the following SVG:</p>
<pre><code><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><g id="Page-1" fill="none" fill-rule="evenodd"><g id="Artboard-5" fill="#000000"><path id="Combined-Shape" d="... | [
{
"answer_id": 74379919,
"author": "JorgeeFG",
"author_id": 1335189,
"author_profile": "https://Stackoverflow.com/users/1335189",
"pm_score": 0,
"selected": false,
"text": "20x20 width: 20 height: 20"
},
{
"answer_id": 74386921,
"author": "Sebastian Hajdus",
"author_id": ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1335189/"
] |
74,379,357 | <p>I'm building a blog app and in this instance I want to create a new post. I created a controller with @GetMapping and @PostMapping with value "/posts/new". I used
<code>th:action = "@{'/posts/new'}"</code> <code>(LINE 14)</code> in thymeleaf but when I start the web app, and access the localhost:... | [
{
"answer_id": 74379919,
"author": "JorgeeFG",
"author_id": 1335189,
"author_profile": "https://Stackoverflow.com/users/1335189",
"pm_score": 0,
"selected": false,
"text": "20x20 width: 20 height: 20"
},
{
"answer_id": 74386921,
"author": "Sebastian Hajdus",
"author_id": ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13372981/"
] |
74,379,372 | <pre><code>### Import specification function required - for some reason if I do just "import random"
from random import randint
moves = ["rock", "paper", "scissors"]
### While pretty much is used so we can play over and over.
while True:
computer = moves[randint(0,2)]
p... | [
{
"answer_id": 74379538,
"author": "Link_jon",
"author_id": 20461445,
"author_profile": "https://Stackoverflow.com/users/20461445",
"pm_score": 1,
"selected": true,
"text": "player = input(\"...\")\nplayer = player.lower() # -- Strings in python act akin to arrays, and this changes all\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461369/"
] |
74,379,381 | <p>I have this piece of code that helps me to sort a linked list whose nodes contain a singular word. From my understanding of insertion sort, I've managed to come up with this which works fine, but there is a part where I've copied from online and need help in understanding it.</p>
<pre><code>Node* insertion_sort(Node... | [
{
"answer_id": 74379538,
"author": "Link_jon",
"author_id": 20461445,
"author_profile": "https://Stackoverflow.com/users/20461445",
"pm_score": 1,
"selected": true,
"text": "player = input(\"...\")\nplayer = player.lower() # -- Strings in python act akin to arrays, and this changes all\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12255131/"
] |
74,379,382 | <p>I'm finishing AI50's tic tac toe, everything seems to be working, including the minimax algorithm but I came across a play (which almost always repeats itself), when the following steps occur as I am the X player:</p>
<p>[2][2] : X</p>
<p>[0][0] : O</p>
<p>[0][2] : X</p>
<p>[2][0] : O</p>
<p>At this point i place th... | [
{
"answer_id": 74379551,
"author": "NoDakker",
"author_id": 6032177,
"author_profile": "https://Stackoverflow.com/users/6032177",
"pm_score": -1,
"selected": false,
"text": "def winner(board):\n \"\"\"\n Returns the winner of the game, if there is one.\n \"\"\" \n # Check hor... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19635809/"
] |
74,379,387 | <p>I am working on cleaning data I scrapped and one of the columns is in for of dictionary in a list. How can I extract the values of the list in new column. The column name is "age " as shown in the screenshot.</p>
<p>Best regards</p>
<p>I have tried using pandas extract function but did not work.</p>
<p>df... | [
{
"answer_id": 74379551,
"author": "NoDakker",
"author_id": 6032177,
"author_profile": "https://Stackoverflow.com/users/6032177",
"pm_score": -1,
"selected": false,
"text": "def winner(board):\n \"\"\"\n Returns the winner of the game, if there is one.\n \"\"\" \n # Check hor... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10194913/"
] |
74,379,390 | <p>// I have a struct model for Notes</p>
<pre><code>struct NotesModel{
var groupName: String // sections in tableView
var info: [NotesInfo] // rows in respective sections in tableView
}
struct NotesInfo{
var groupName: String
var image: String
var notesTitle: String
var notesDes... | [
{
"answer_id": 74379551,
"author": "NoDakker",
"author_id": 6032177,
"author_profile": "https://Stackoverflow.com/users/6032177",
"pm_score": -1,
"selected": false,
"text": "def winner(board):\n \"\"\"\n Returns the winner of the game, if there is one.\n \"\"\" \n # Check hor... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452635/"
] |
74,379,411 | <p>In my Controller, I have</p>
<pre><code>@RequestParam boolean flag
</code></pre>
<p>This allows the caller of my API to pass "true", "yes", "on" or "1" to represent true.</p>
<p>However, I want to access this flag in my <code>HandlerInterceptor</code> too. There, all I have is... | [
{
"answer_id": 74381132,
"author": "Ashish Patil",
"author_id": 5014221,
"author_profile": "https://Stackoverflow.com/users/5014221",
"pm_score": 1,
"selected": false,
"text": " System.setProperty(\"true\", \"true\");\n System.setProperty(\"one\", \"true\");\n System... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13963086/"
] |
74,379,424 | <p>I've made a simple task in Webpack to bundle all my JS files. The console log shows that the file was created succesfully but it doesn't work when load the html page.</p>
<p>Here is the code:</p>
<pre><code>const path = require('path');
const TerserPlugin = require("terser-webpack-plugin");
module.export... | [
{
"answer_id": 74381132,
"author": "Ashish Patil",
"author_id": 5014221,
"author_profile": "https://Stackoverflow.com/users/5014221",
"pm_score": 1,
"selected": false,
"text": " System.setProperty(\"true\", \"true\");\n System.setProperty(\"one\", \"true\");\n System... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461496/"
] |
74,379,448 | <p>I have an example list of numbers:</p>
<pre><code>888*
8*
8.88*
88.88*
88888.888*
899900
8.89
0.08
80
89899
50
32
30.8
0.081
0.8
8.1
</code></pre>
<p>and I only want to match those that have only 8's. I put an asterisk for the ones I only want and the others should be ignored.</p>
<p>I tried this but could only get ... | [
{
"answer_id": 74379488,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 1,
"selected": false,
"text": " grep(\"^8+([.]8+)?$\", as.character(num), value = TRUE)\n[1] \"888\" \"8\" \"8.88\" \"88.88\" ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8864308/"
] |
74,379,482 | <p>I'm trying to calculate IRR by group using the package "jrvFinance" - function "irr" but i don't know how.</p>
<p>I have this for only 1 group:</p>
<p>example:</p>
<pre><code>pr1 <- data.frame(idC=1,period = 0:12,
cf = c(-10000,1623.8,1630.47,1637.88,1646.09,1655.21,... | [
{
"answer_id": 74379524,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "library(jrvFinance)\nlibrary(dplyr)\nfull_pr <- full_pr %>%\n group_by(idC) %>%\n mutate(calculate = irr(cf)) %>... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19839146/"
] |
74,379,484 | <p>I'm making a game and the player spawn is off I've tried tutorials and I haven't found anything here is my code and a photo I've tried playing with the code But I can't seem to find how to change my player spawn please can help I'm stuck <a href="https://i.stack.imgur.com/HkK1I.png" rel="nofollow noreferrer"><img sr... | [
{
"answer_id": 74379524,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "library(jrvFinance)\nlibrary(dplyr)\nfull_pr <- full_pr %>%\n group_by(idC) %>%\n mutate(calculate = irr(cf)) %>... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20218281/"
] |
74,379,523 | <p>I am taking the data from backend for that I am using the async function.
But the data contains some duplicate elements so I need to remove them and get those data in DOM.
Can we do that. If yes can you explain how to do that.</p>
<pre><code>function Productpage(){
const [data, setData] = useState([])
let na... | [
{
"answer_id": 74379524,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "library(jrvFinance)\nlibrary(dplyr)\nfull_pr <- full_pr %>%\n group_by(idC) %>%\n mutate(calculate = irr(cf)) %>... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12884905/"
] |
74,379,531 | <p>I'm a college student who has an android phone and wants to use the sidechat app (sidechat.lol), which is only available on iPhone.
I'm trying to create an API wrapper for sidechat's API which will allow me to use it on Android (or on the web), but I'm not quite sure how to discover the api endpoints. (As far as I'm... | [
{
"answer_id": 74379524,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "library(jrvFinance)\nlibrary(dplyr)\nfull_pr <- full_pr %>%\n group_by(idC) %>%\n mutate(calculate = irr(cf)) %>... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10039784/"
] |
74,379,540 | <p>I have a stackblitz <a href="https://stackblitz.com/edit/react-ts-dxzkov?file=App.tsx,style.css" rel="nofollow noreferrer">here</a></p>
<p>Super simple but I'm stuck</p>
<p>I have a div container containing 6 divs</p>
<p>I need the position the red div on the right of the container but still keep the layout of the d... | [
{
"answer_id": 74379637,
"author": "Alexis",
"author_id": 13986485,
"author_profile": "https://Stackoverflow.com/users/13986485",
"pm_score": 1,
"selected": false,
"text": "align-self display: flex flex-direction: column align-self: flex-end"
},
{
"answer_id": 74379649,
"auth... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4378588/"
] |
74,379,576 | <p>I'm making an Arduino reverse stopwatch..but Seems to have a problem with millis() function
Whenever I upload the code on Arduino the millis starts running itself..how can I keep it at 0 until I call the millis. or any alternatives to solve it...</p>
<pre><code>#include "SevSeg.h"
int button1 = 11;
int but... | [
{
"answer_id": 74379659,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "extern volatile unsigned long timer0_millis;\n noInterrupts ();\ntimer0_millis = 0;\ninterrupts ();\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16805360/"
] |
74,379,577 | <p>How to remove part of a tree but keep the files and directories in python?</p>
<p>I have paths like this:</p>
<pre><code>r"C:\User\Desktop\g1sr56g41f2d3s1gf\Document\A\file1.txt"
r"C:\User\Desktop\g1sr56g41f2d3s1gf\Document\B\C\file2.txt"
r"C:\User\Desktop\g1sr56g41f2d3s1gf\file3.txt"
r... | [
{
"answer_id": 74379659,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "extern volatile unsigned long timer0_millis;\n noInterrupts ();\ntimer0_millis = 0;\ninterrupts ();\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16958187/"
] |
74,379,585 | <p>I have the following table <strong>process_table</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>table</th>
<th>index</th>
</tr>
</thead>
<tbody>
<tr>
<td>TABLE_001</td>
<td>1</td>
</tr>
<tr>
<td>TABLE_002</td>
<td>2</td>
</tr>
<tr>
<td>TABLE_003</td>
<td>3</td>
</tr>
<tr>
<td>T... | [
{
"answer_id": 74379659,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "extern volatile unsigned long timer0_millis;\n noInterrupts ();\ntimer0_millis = 0;\ninterrupts ();\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/491637/"
] |
74,379,587 | <p>I am trying to write a Google Apps Script function which scans every row of my spreadsheet, and if column 36 has a specific string, will look at column 31, column 23, etc. of that row to create an array with the data in these columns.</p>
<p>I think it will ultimately require an array updating function inside an if ... | [
{
"answer_id": 74379659,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "extern volatile unsigned long timer0_millis;\n noInterrupts ();\ntimer0_millis = 0;\ninterrupts ();\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10461633/"
] |
74,379,590 | <p>My problem is I want create code in html/CSS which adjust automatically the website (blocks+content) whenever I minimize the browser window.
<strong>e.g.</strong> I've got the problem of <em>text overflow</em> in the block which I created, when I minimize the browser window.</p>
<p>I want the block element to adjust... | [
{
"answer_id": 74379659,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "extern volatile unsigned long timer0_millis;\n noInterrupts ();\ntimer0_millis = 0;\ninterrupts ();\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461760/"
] |
74,379,639 | <p>here I have tried to rewrite the query with cte cuz of good readability but when I try to rewrite the data is mismatched how to solve the problem for this?</p>
<p>Query;</p>
<pre><code>select count(1) as rage_tap
from ue_summary.summary_funnel_1066 s
join user_tasks_metadata utm on utm.asi = s.asi
join user_tasks ut... | [
{
"answer_id": 74379659,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "extern volatile unsigned long timer0_millis;\n noInterrupts ();\ntimer0_millis = 0;\ninterrupts ();\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20051145/"
] |
74,379,718 | <p>I have around 40 million records in my elasticsearch index. I want to calculate <strong>count of distinct values for combination of 2 fields.</strong></p>
<p>Example for given set of documents:</p>
<pre><code>[
{
"JobId" : 2,
"DesigId" : 12
},
{
"JobId" : 2,
"DesigId&quo... | [
{
"answer_id": 74379659,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 1,
"selected": false,
"text": "extern volatile unsigned long timer0_millis;\n noInterrupts ();\ntimer0_millis = 0;\ninterrupts ();\n"
},
{... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13378772/"
] |
74,379,742 | <p>Hi guuys Im trying to scrape some information about a shoe of zalando and save the price, the title, the day and the hour in differents variables using Seleinum webdriver.This is my code:</p>
<pre><code>from selenium import webdriver
from selenium.webdriver.common.by import By
import csv
DRIVER_PATH = 'C:\chromedri... | [
{
"answer_id": 74380259,
"author": "Jaky Ruby",
"author_id": 10050775,
"author_profile": "https://Stackoverflow.com/users/10050775",
"pm_score": 2,
"selected": true,
"text": "# Needed libs\nfrom selenium import webdriver\nfrom selenium.webdriver.common.by import By\nfrom selenium.webdriv... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16179319/"
] |
74,379,743 | <p>How would I go about implementing the onclick animation seen on this Google login form?</p>
<p>As you click the button box, the placeholder text shrinks and moves to the top left and the button border forms around the text.</p>
<p><a href="https://accounts.google.com/v3/signin/identifier?dsh=S906398310%3A16680182115... | [
{
"answer_id": 74379874,
"author": "kumorin",
"author_id": 16501128,
"author_profile": "https://Stackoverflow.com/users/16501128",
"pm_score": 2,
"selected": true,
"text": "<style>\n input:focus ~ .floating-label,\n input:not(:focus):valid ~ .floating-label{\n top: -6px;\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19991177/"
] |
74,379,779 | <p>I have a dataframe that lists political mandates with their start and end year. The question I want to answer is "How many people (person_id) have had mandates that overlap in terms of years active?</p>
<p>I've tried sequencing the active years as vectors, and then grouping and summarising by intersecting the v... | [
{
"answer_id": 74380037,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nlibrary(tidyr)\n\nset.seed(123)\n#Data example\nstart_year <- sample(1957:2003, 12, T)\nend_yea... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451876/"
] |
74,379,799 | <p>I'm trying to compare a value in list to a integer. can someone help how to do that</p>
<pre><code>list = [1]
if list == number:
print(number)
</code></pre>
<p>I want some thing like above, how to do</p>
| [
{
"answer_id": 74380037,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nlibrary(tidyr)\n\nset.seed(123)\n#Data example\nstart_year <- sample(1957:2003, 12, T)\nend_yea... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16600302/"
] |
74,379,809 | <p>The entire error:</p>
<blockquote>
<p>The foreign key property 'Appointment.CustomerId1' was created in a shadow state because a conflicting property with the simple name 'CustomerId' exists in the entity type, but is either not mapped, is already used for another relationship, or is incompatible with the associated... | [
{
"answer_id": 74381351,
"author": "Steve Py",
"author_id": 423497,
"author_profile": "https://Stackoverflow.com/users/423497",
"pm_score": 3,
"selected": true,
"text": "[ForeignKey] [ForeignKey(nameof(Customer))]\npublic string CustomerId { get; set; }\n[ForeignKey(nameof(Employee))]\np... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16711792/"
] |
74,379,846 | <p>I can add to the <code>context</code> in the <code>serve</code> method for a page, and get the context variable in the page template. I cannot seem to add to the context in <code>get_context</code>; or, access it in the page template. This is stumping me.</p>
<p>I'd like to add a variable or two to the context using... | [
{
"answer_id": 74381351,
"author": "Steve Py",
"author_id": 423497,
"author_profile": "https://Stackoverflow.com/users/423497",
"pm_score": 3,
"selected": true,
"text": "[ForeignKey] [ForeignKey(nameof(Customer))]\npublic string CustomerId { get; set; }\n[ForeignKey(nameof(Employee))]\np... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20460884/"
] |
74,379,850 | <p>I am learning about data handling in python, trying to handle weather data from each day of October. The data is from a local csv. I Iterate for day of the month and iterating for each hour inside of it. I have a class object handling data for each day. The class object is being initialized right after the iteratio... | [
{
"answer_id": 74381351,
"author": "Steve Py",
"author_id": 423497,
"author_profile": "https://Stackoverflow.com/users/423497",
"pm_score": 3,
"selected": true,
"text": "[ForeignKey] [ForeignKey(nameof(Customer))]\npublic string CustomerId { get; set; }\n[ForeignKey(nameof(Employee))]\np... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7343017/"
] |
74,379,867 | <p>I am making something which allows logged user to report their lost items to the firestore firebase.
Now what I've done successfully registers details of the user's report to the 'reports'collection.</p>
<p>but everytime the same user reports another item, the details of previously reported item gets overwritten.
I ... | [
{
"answer_id": 74381351,
"author": "Steve Py",
"author_id": 423497,
"author_profile": "https://Stackoverflow.com/users/423497",
"pm_score": 3,
"selected": true,
"text": "[ForeignKey] [ForeignKey(nameof(Customer))]\npublic string CustomerId { get; set; }\n[ForeignKey(nameof(Employee))]\np... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20359012/"
] |
74,379,871 | <p>I am trying running a code in Android Studio, but always I run the code, get this error:</p>
<p>Error: No named parameter with the name 'controller'.</p>
<pre><code>TextEditingController nota1Controller = TextEditingController();
</code></pre>
<pre><code>nota1Controller.text = "";
</code></pre>
<pre><code>... | [
{
"answer_id": 74380008,
"author": "7eg",
"author_id": 13311722,
"author_profile": "https://Stackoverflow.com/users/13311722",
"pm_score": 1,
"selected": false,
"text": " TextField(\n keyboardType: TextInputType.number,\n decoration: InputDecoration(\n labelText: \"Nota 1\",\n l... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18042322/"
] |
74,379,880 | <p>I'm trying to join a table onto another table. The gimmick here is that the column from the table contains a long string. Something like this:</p>
<pre><code> PageNumber-190-ChapterTitle-HelloThere
PageNumber-19-ChapterTitle-NotToday
</code></pre>
<p>I have another table that has a list of page numbers and whe... | [
{
"answer_id": 74379983,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLE tab1\n ([str] varchar(38))\n;\n \nINSERT INTO tab1\n ([str])\nVALUES\n ('PageNumber-190-Chapter... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18485985/"
] |
74,379,893 | <p>I have a Picker with menu style presenting a label with an icon and text. When applying a padding to any views containing the picker, the picker will behave as though there is not enough space and run to multiple lines even though there is enough space.</p>
<p>Sample Code</p>
<pre><code>struct ContentView: View {
... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1684508/"
] |
74,379,906 | <p>I have an issue with react navigation.
I would like to have the same behavior as the linkedIn app has.
I mean, in that app, you can open the settings page from the drawer in differents tabs. You can open it from the first tab, second one... and so on. and at the end you get multiple instances.</p>
<p>I am not able t... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9747939/"
] |
74,379,933 | <p>I have my array with data referring to different subjects divided in 3 different groups</p>
<p><code>A = ([12, 13, 15], [13, 16, 18], [15, 15, 17])</code></p>
<p>I want to append these to 3 different arrays, but I don't want to do it "manually" since I should use this code for bigger set of data.
So, I was... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19719303/"
] |
74,379,944 | <p>After clicking on the FavoriteIcon inside the ExamplesCard all the icons turn red instead of just one icon. I'm using useState to change icon state value between true and false and style to change icon color.</p>
<p><strong>Componenet ExamplesCard.tsx</strong></p>
<pre><code>import * as React from "react";... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20335073/"
] |
74,379,974 | <p>I have 2 generators. One has a nested generator, and the other has a nested list comprehension.</p>
<pre><code>// list of variables
variables = []
nestedGen = (x for x in (y for y in variables))
nestedList = (x for x in [y for y in variables])
</code></pre>
<p>Both generators can be simplified to remove nesting, bu... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15318873/"
] |
74,379,985 | <p>I want to change State with child elements in React. However, when I click once, it is not immediately updated. Click twice, it shows the correct answer.</p>
<p>How to update async?</p>
<pre><code>export default function Example() {
const onClick = async () => {
console.log('a', test)
// should be 'b', bu... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74379985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9315566/"
] |
74,380,061 | <p>Been trying to get started with using Python procedures in Snowflake. I have another basic procedure that works fine, but I can't get this part working. I am hoping to filter a dataframe, but getting this weird error.</p>
<pre><code>[P0000][100357] Python Interpreter Error: Traceback (most recent call last): File &q... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18208164/"
] |
74,380,065 | <pre><code> import string
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
import random
from random import randint
Number_of_emailname_letters = randint(3,10)
Number_of_emailDomain_letters = randint(5,15)
Email_name = 'pt1'
Email_Domain = 'ptd1'
def Email_name():
if Num... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15292744/"
] |
74,380,113 | <p>I'm working with Moment JS in my Nuxt JS project. I'm building a countdown timer which needs to count down to a specific date & time, ideally, I need it to display the same countdown information based on timezone in the user's country, I need it to countdown to a date & time in Europe/London though.</p>
<p>T... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9982090/"
] |
74,380,134 | <pre><code>adb exec-out screencap -p > screen.png
</code></pre>
<p>This used to work on my Chromecast with Google TV while playing video (no DRM) when it was running on Android 10. After upgrading to Android 12, it just produces a completely white image (with correct screen resolution; with no other view widgets eit... | [
{
"answer_id": 74388243,
"author": "Mischa",
"author_id": 2062785,
"author_profile": "https://Stackoverflow.com/users/2062785",
"pm_score": 1,
"selected": false,
"text": "fixedSize() Picker Picker(\"Work Type\", selection: selectedOption) {\n // ...\n}\n.pickerStyle(.menu)\n.fixedSize... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462031/"
] |
74,380,157 | <p>I have the following code:</p>
<pre><code>parser = argparse.ArgumentParser(description='')
parser.add_argument('-l', '--login', action='store_true')
parser.add_argument('FILTER1')
parser.add_argument('FILTER2')
parser.add_argument('FILTER3')
</code></pre>
<p>I'd like "--login" to be mutually exclusive fro... | [
{
"answer_id": 74380503,
"author": "wjandrea",
"author_id": 4518341,
"author_profile": "https://Stackoverflow.com/users/4518341",
"pm_score": 2,
"selected": false,
"text": "nargs=3 import argparse\n\nparser = argparse.ArgumentParser()\n\nmeg = parser.add_mutually_exclusive_group()\nmeg.a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8799182/"
] |
74,380,184 | <p>I just want to have the message 'no actors' if the name is NULL. How can I do this?</p>
<pre><code>SELECT length, title, LISTAGG(SUBSTR(first_name, 1, 1) || '. ' || last_name, ', ')
WITHIN GROUP (ORDER BY last_name) AS ACTORS -- 'no actors' if first_name is NULL
FROM film INNER JOIN film_actor ... | [
{
"answer_id": 74380503,
"author": "wjandrea",
"author_id": 4518341,
"author_profile": "https://Stackoverflow.com/users/4518341",
"pm_score": 2,
"selected": false,
"text": "nargs=3 import argparse\n\nparser = argparse.ArgumentParser()\n\nmeg = parser.add_mutually_exclusive_group()\nmeg.a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20197912/"
] |
74,380,231 | <p>I am writing a small DirectShow application in C++,</p>
<p>and i'm have a lot of trouble fetching the data of the recorded audio.</p>
<p>What i'm trying to achieve :</p>
<p><strong>Microphone->Avi MUX filter->Data buffer->send buffer to server-> write data to an Avi file</strong></p>
<p>How can this be d... | [
{
"answer_id": 74380503,
"author": "wjandrea",
"author_id": 4518341,
"author_profile": "https://Stackoverflow.com/users/4518341",
"pm_score": 2,
"selected": false,
"text": "nargs=3 import argparse\n\nparser = argparse.ArgumentParser()\n\nmeg = parser.add_mutually_exclusive_group()\nmeg.a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18277419/"
] |
74,380,235 | <p>I am running a function with string similarity to find the similarity of the strings in the list. But I want to do this in a synchronized way by using multi threads in this list.</p>
<p>Each thread does the whole task by itself. I want to do the task once, with multiple thread</p>
<pre><code> public class Runn imple... | [
{
"answer_id": 74380888,
"author": "Alexander Pavlov",
"author_id": 998126,
"author_profile": "https://Stackoverflow.com/users/998126",
"pm_score": 2,
"selected": true,
"text": "public static void main(String[]args){\n final ConcurrentLinkedQueue<String> queue=new ConcurrentLinkedQueu... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20142626/"
] |
74,380,242 | <p>I'm working with a very long list of numbers, say 1.5 billion. I need a way to specify a percentage of numbers that I want to keep, and the rest discard. Now I know I can use a Random Number Generator to randomly decide if I should keep it or not, but the problem is that I need the numbers to keep/discard to always ... | [
{
"answer_id": 74380507,
"author": "Dmitry Bychenko",
"author_id": 2319407,
"author_profile": "https://Stackoverflow.com/users/2319407",
"pm_score": 2,
"selected": false,
"text": "IEnumerable<T> new Random(seed) static IEnumerable<bool> GenerateShouldAddList(int totalCombos, decimal perc... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19693550/"
] |
74,380,270 | <pre><code>@Test
void interruptedExceptionThrownByCompletableFutures() throws InterruptedException, ExecutionException {
//given
when(patientsClient.getPatientTreatmentDetails(RPT_TOKEN, "123", CLINICAL_ID))
.thenReturn(createPatientTreatmentDetails());
CompletableFuture<List<HDT... | [
{
"answer_id": 74380507,
"author": "Dmitry Bychenko",
"author_id": 2319407,
"author_profile": "https://Stackoverflow.com/users/2319407",
"pm_score": 2,
"selected": false,
"text": "IEnumerable<T> new Random(seed) static IEnumerable<bool> GenerateShouldAddList(int totalCombos, decimal perc... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462184/"
] |
74,380,286 | <p>I am currently working on a login form in C# where I am using WPF, and I have made a check to see if the data in the form is valid but for some reason it always returns false.</p>
<p>For context here is my check:</p>
<pre><code>private bool CanExecuteLoginCommand(object obj)
{
bool validData;
if (string.IsNu... | [
{
"answer_id": 74380365,
"author": "Stephen",
"author_id": 20462236,
"author_profile": "https://Stackoverflow.com/users/20462236",
"pm_score": -1,
"selected": false,
"text": "obj Username Password obj.Username"
},
{
"answer_id": 74381214,
"author": "kapz424",
"author_id":... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14226632/"
] |
74,380,287 | <p>I have converted a strategy to an indicator, basically share the same code, only the header and footer code is different.</p>
<p>The strategy works as I expect.</p>
<p>Say for example running on a 5min chart on the 10:30 bar the triggering conditions may occur several times but I am only concerned with the close of ... | [
{
"answer_id": 74380365,
"author": "Stephen",
"author_id": 20462236,
"author_profile": "https://Stackoverflow.com/users/20462236",
"pm_score": -1,
"selected": false,
"text": "obj Username Password obj.Username"
},
{
"answer_id": 74381214,
"author": "kapz424",
"author_id":... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1699015/"
] |
74,380,303 | <p>My project has many Enums that follow a certain Naming convention.</p>
<p>I have a general method that converts a string into an Enum value.</p>
<p>I want to convert Enum Attribute Names to Enums ( I got this handled ).</p>
<p>Also I want to convert an <code>int</code> value passed in a string to an Enum if the enum... | [
{
"answer_id": 74380358,
"author": "juanpa.arrivillaga",
"author_id": 5014455,
"author_profile": "https://Stackoverflow.com/users/5014455",
"pm_score": 2,
"selected": false,
"text": "if issubclass(ec, (enum.IntEnum, enum.IntFlag)):\n # handle IntEnum or IntFlag case\n"
},
{
"a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1171746/"
] |
74,380,335 | <p>I just recently discovered gtsummary and I'm impressed by the ease of use and the amount of work that our team won't have to do creating summary tables of our results. Thanks!</p>
<p>My question: With more than two groups, the p-value included with add_p() refers to the global test. How can I obtain the information ... | [
{
"answer_id": 74380358,
"author": "juanpa.arrivillaga",
"author_id": 5014455,
"author_profile": "https://Stackoverflow.com/users/5014455",
"pm_score": 2,
"selected": false,
"text": "if issubclass(ec, (enum.IntEnum, enum.IntFlag)):\n # handle IntEnum or IntFlag case\n"
},
{
"a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14107245/"
] |
74,380,377 | <p>Im trying to dynamically change the link of a button based on which div a user has currently selected.</p>
<p>I tried to run a quick test with a JS variable in the HTML script tag, but Django isn't reading the variable like a num.</p>
<pre><code><script type="text/javascript">
const testing = 10
... | [
{
"answer_id": 74381020,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 3,
"selected": true,
"text": "{% url 'battlefield:onevsone_trainer_selection' num_trainers=testing %} <a id='changeableUrl' href=\"{% url 'battl... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16167140/"
] |
74,380,391 | <p>My program is like the command prompt (cmd) but much simpler. I am creating a command called, <code>'bd'</code> which stands for back (one) directory. There is a path string: <code>path = "C:/Program Files/node.js"</code> and I want to remove the last directory <code>'/node.js'</code> but I don't want to u... | [
{
"answer_id": 74381020,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 3,
"selected": true,
"text": "{% url 'battlefield:onevsone_trainer_selection' num_trainers=testing %} <a id='changeableUrl' href=\"{% url 'battl... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20442433/"
] |
74,380,400 | <p>Here I am trying to empty an array using recursion by calling shift function, but anyhow I am getting an error please help.</p>
<pre><code>let arr = [1,2,3,4];
function del(arr){
if(arr.length === 0){
return []
}else {
let result = arr.shift();
return del(result)
}
}
console.log(d... | [
{
"answer_id": 74380451,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 2,
"selected": false,
"text": "Array#shift undefined function del(arr) {\n if (arr.length === 0) return arr;\n arr.shift();\n return d... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16708103/"
] |
74,380,413 | <p>I'm trying to create a simple line plot in ggplot2 with a dataframe, but the results aren't appearing as expected.</p>
<p>Here is the code to reproduce the data:</p>
<pre><code>tograph<-data.frame(PANEL=13:22,total=c(10,20,30,40,50,60,70,80,90,100))
</code></pre>
<p>And when I graph the results in ggplot2, it jus... | [
{
"answer_id": 74380451,
"author": "Nina Scholz",
"author_id": 1447675,
"author_profile": "https://Stackoverflow.com/users/1447675",
"pm_score": 2,
"selected": false,
"text": "Array#shift undefined function del(arr) {\n if (arr.length === 0) return arr;\n arr.shift();\n return d... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462134/"
] |
74,380,415 | <p>I want to implement this layout:</p>
<p><img src="https://i.stack.imgur.com/ro304.png" alt="layout" /></p>
<ul>
<li>where the body takes full view height,</li>
<li>it has a fixed height app-bar</li>
<li>and a main section that takes the rest available space using flex-grow: 1.</li>
</ul>
<p>Inside the main section,<... | [
{
"answer_id": 74380509,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 0,
"selected": false,
"text": "height: calc(80vh - 50px);\n"
},
{
"answer_id": 74380516,
"author": "Michael Benjamin",
"author_... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14632244/"
] |
74,380,418 | <p>I have the following code where I want to add the string 'NSQscores' to the list of strings 'newlist'.</p>
<p>However, the following code gives me a 'none'.</p>
<pre><code>columnlist = list(newdf.columns)
newlist = columnlist[0:87]
newlist2 = newlist.extend(['NSQscores'])
print(newlist2)
none
</code></pre>
<p>Would... | [
{
"answer_id": 74380509,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 0,
"selected": false,
"text": "height: calc(80vh - 50px);\n"
},
{
"answer_id": 74380516,
"author": "Michael Benjamin",
"author_... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12985497/"
] |
74,380,420 | <p>the issue is very easy, but seems quite complicate;I've search on internet and try a lot but there is not way to find a solution for me!!
All I need is not having space between an icon and a text:
<a href="https://i.stack.imgur.com/S42rJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S42rJ.png" a... | [
{
"answer_id": 74381248,
"author": "Rolf",
"author_id": 298103,
"author_profile": "https://Stackoverflow.com/users/298103",
"pm_score": 1,
"selected": false,
"text": "subTitleLayout.setExpandRatio(stpIMG, 1); setExpandRatio stpIMG"
},
{
"answer_id": 74617331,
"author": "fraaa... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3691373/"
] |
74,380,421 | <p>I have a flat JSON where keys represent different levels.</p>
<p>For example:</p>
<pre><code>data = {
"name": "John",
"age": 30,
"address:city": "New-York",
"address:street": "5th avenue",
"address:number": ... | [
{
"answer_id": 74380680,
"author": "jpseng",
"author_id": 16332641,
"author_profile": "https://Stackoverflow.com/users/16332641",
"pm_score": 0,
"selected": false,
"text": "jq 'reduce to_entries[] as {$key, $value} ({}; setpath($key / \":\"; $value))'\n {\n \"name\": \"John\",\n \"age\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6240756/"
] |
74,380,428 | <p>I want to achieve similar effect to the google play books app where searchbar expands and takes the whole screen. Currently I have simple Textfield that sits in Card widget and elevates it and the whole thing is in Appbar. How should I approach it? (I'm using material you 3)</p>
<pre><code> appBar: AppBar(
titl... | [
{
"answer_id": 74380680,
"author": "jpseng",
"author_id": 16332641,
"author_profile": "https://Stackoverflow.com/users/16332641",
"pm_score": 0,
"selected": false,
"text": "jq 'reduce to_entries[] as {$key, $value} ({}; setpath($key / \":\"; $value))'\n {\n \"name\": \"John\",\n \"age\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12191215/"
] |
74,380,430 | <p>I'm attempting to initialize a table called, "character", in a MySQL server database, and I am getting the SQL syntax error provided below:</p>
<pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character ( chara... | [
{
"answer_id": 74380680,
"author": "jpseng",
"author_id": 16332641,
"author_profile": "https://Stackoverflow.com/users/16332641",
"pm_score": 0,
"selected": false,
"text": "jq 'reduce to_entries[] as {$key, $value} ({}; setpath($key / \":\"; $value))'\n {\n \"name\": \"John\",\n \"age\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20073587/"
] |
74,380,466 | <p>I've been looking during 2 days for <strong>a sotfware which allows me to limit the time I play</strong>(or use any program) and I found nothing usefull so I decided to put my coding cape back since 6 years ago and program it myself.</p>
<p>A friend recommended me powershell as the easiest and faster way to do it. I... | [
{
"answer_id": 74380680,
"author": "jpseng",
"author_id": 16332641,
"author_profile": "https://Stackoverflow.com/users/16332641",
"pm_score": 0,
"selected": false,
"text": "jq 'reduce to_entries[] as {$key, $value} ({}; setpath($key / \":\"; $value))'\n {\n \"name\": \"John\",\n \"age\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14677704/"
] |
74,380,489 | <p>I'm a newbie and I'm looking to get my basic HTML calculator working.</p>
<p>I have the JavaScript working to the point it's logging the button presses from my HTML buttons in a string variable. So for example if I click 9 * 9 on the calculator I can see I have a string "9*9" in the console which is what I... | [
{
"answer_id": 74380680,
"author": "jpseng",
"author_id": 16332641,
"author_profile": "https://Stackoverflow.com/users/16332641",
"pm_score": 0,
"selected": false,
"text": "jq 'reduce to_entries[] as {$key, $value} ({}; setpath($key / \":\"; $value))'\n {\n \"name\": \"John\",\n \"age\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462058/"
] |
74,380,521 | <p>I'm getting my JSON data as such:</p>
<pre><code>{
"cars": [
{
"make":"BMW",
"model":"X3",
"Lot":"Used"
},
{
"make":"BMW",
"model":"520&q... | [
{
"answer_id": 74380650,
"author": "JustWantsToCode",
"author_id": 8382717,
"author_profile": "https://Stackoverflow.com/users/8382717",
"pm_score": 0,
"selected": false,
"text": "const getAllCars = () => {\n allCars.GetAllCars()\n .then((response) => {\n setallCars(response.da... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8382717/"
] |
74,380,545 | <p>I am struggling to extract the text between two works. Specifically, I would like to extract the text between Example and Constraints. Here is a sample</p>
<pre><code>"Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.\nYou can return the an... | [
{
"answer_id": 74380650,
"author": "JustWantsToCode",
"author_id": 8382717,
"author_profile": "https://Stackoverflow.com/users/8382717",
"pm_score": 0,
"selected": false,
"text": "const getAllCars = () => {\n allCars.GetAllCars()\n .then((response) => {\n setallCars(response.da... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7158458/"
] |
74,380,583 | <p>I need to create a new array as you can see it has a key value that specifies the latitude and longitude.</p>
<p>I want the key values that are equal to be set as 1 only but according to who has the highest count</p>
<pre><code>[
{
"color":"green",
"coment_calification&... | [
{
"answer_id": 74380650,
"author": "JustWantsToCode",
"author_id": 8382717,
"author_profile": "https://Stackoverflow.com/users/8382717",
"pm_score": 0,
"selected": false,
"text": "const getAllCars = () => {\n allCars.GetAllCars()\n .then((response) => {\n setallCars(response.da... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462347/"
] |
74,380,607 | <p>I'm having a problem trying to pass data into the "amount" param.</p>
<p>I am sending the "price" from the client to the server.</p>
<p>When I output the data into the console, I get the correct information.</p>
<p>When I check the "typeOf", i get "number" which is the expecte... | [
{
"answer_id": 74380743,
"author": "bismarck",
"author_id": 18506404,
"author_profile": "https://Stackoverflow.com/users/18506404",
"pm_score": -1,
"selected": true,
"text": "amount const paymentIntent = await stripe.paymentIntents.create({ app.post(\"/payment-sheet\", async (req, res) =... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19367048/"
] |
74,380,618 | <p>I have this vector of names:</p>
<pre><code>vector <string> names;
names.push_back("William");
names.push_back("Maria");
names.push_back("Petterson");
names.push_back("McCarthy");
names.push_back("Jose");
names.push_back("Pedro");
names.push_back(&quo... | [
{
"answer_id": 74380736,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": -1,
"selected": false,
"text": "while (itR != names.rbegin())\n names.rbegin() itR = itR - 1;\n itR names.rbegin() names.rend() - 1 //Use ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18992797/"
] |
74,380,623 | <p>We have these tables in PostgreSQL 12:</p>
<pre>
User -> id, name, email
items -> id, user_id, description
</pre>
<p>We want to run a query to find users that have 1 item or less.</p>
<p>I tried using a join statement and in the WHERE clause tried to put the count of users < 1 with this query</p>
<pre><code>selec... | [
{
"answer_id": 74380736,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": -1,
"selected": false,
"text": "while (itR != names.rbegin())\n names.rbegin() itR = itR - 1;\n itR names.rbegin() names.rend() - 1 //Use ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18907309/"
] |
74,380,630 | <p>The database for an application I manage use UUIDs. These UUIDs are stored as <code>char(36)</code> with a <code>utf8</code> character set. From a strict performance point of view, I know this is not optimal. The general recommendation seem to be to use a <code>binary(16)</code> column for UUIDs. I cannot change the... | [
{
"answer_id": 74383301,
"author": "Rick James",
"author_id": 1766831,
"author_profile": "https://Stackoverflow.com/users/1766831",
"pm_score": 1,
"selected": false,
"text": "JOINing CHARACTER SET COLLATION ..._ci ..._bin VARCHAR CHAR"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/355232/"
] |
74,380,634 | <p>I've got a list of customers which I'm binding to a CollectionView in .Net Maui. If a value of a boolean in the bound objects is set to false, I want to set the background color of the frame to red. Otherwise, I just want to keep it "normal" / default.</p>
<pre><code> <CollectionView Grid.Row=&... | [
{
"answer_id": 74380923,
"author": "Siegfried.V",
"author_id": 7310000,
"author_profile": "https://Stackoverflow.com/users/7310000",
"pm_score": 3,
"selected": true,
"text": "<DataTrigger Binding=\"{Binding IsValid}\" Value=\"true\">\n <Setter Property=\"Background\" Value=\"#FFFFFF\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1623023/"
] |
74,380,644 | <p>I'm trying to join 2 tables and count the number of entries for unique variables in one of the columns. In this case I'm trying to join 2 tables - <code>patients</code> and <code>trials</code> (patients has a FK to trials) and count the number of patients that show up in each trial. This is the code i have so far:</... | [
{
"answer_id": 74380753,
"author": "Stu",
"author_id": 15332650,
"author_profile": "https://Stackoverflow.com/users/15332650",
"pm_score": 2,
"selected": true,
"text": "select t.title Trial_Name, Count(*) Num_Patients\nfrom Trials t\njoin Patients p on p.Trial_Id = t.Id\ngroup by t.title... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74380644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11370582/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.