qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,437,772 | <p>In the background does the app still running even though I'm not currently on that tab, or when I move between tabs, the current tab I was, in is getting paused and after I open that tab again it makes a request to the server to get the newer changes from the database?</p>
<p>Edit: The problem which I currently have... | [
{
"answer_id": 74473852,
"author": "Николай",
"author_id": 9098414,
"author_profile": "https://Stackoverflow.com/users/9098414",
"pm_score": 2,
"selected": true,
"text": "$posts = get_posts([\n 'post_mime_type' => 'image',\n 'post_type' => 'attachment',\n 'post_status' => 'inher... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13814476/"
] |
74,437,776 | <p>If the data is to be removed, I find the element with findIndex and discard it as a null value in isInArray. If there is no such data, how do I add it to the empty element starting from the first element? For example, if the element in the first data is full, it should know that the second element is empty and add i... | [
{
"answer_id": 74473852,
"author": "Николай",
"author_id": 9098414,
"author_profile": "https://Stackoverflow.com/users/9098414",
"pm_score": 2,
"selected": true,
"text": "$posts = get_posts([\n 'post_mime_type' => 'image',\n 'post_type' => 'attachment',\n 'post_status' => 'inher... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19301566/"
] |
74,437,796 | <p><em>New to OOP and python</em>, I am <em>struggling enormously</em> to grasp what good <em>classes actually are for</em>. I tried to ask <em>help from a lecturer</em> who said "oh, then you should read about general methods to classes". <em>Been putting in a days work but get no where</em>.</p>
<p>I get it... | [
{
"answer_id": 74473852,
"author": "Николай",
"author_id": 9098414,
"author_profile": "https://Stackoverflow.com/users/9098414",
"pm_score": 2,
"selected": true,
"text": "$posts = get_posts([\n 'post_mime_type' => 'image',\n 'post_type' => 'attachment',\n 'post_status' => 'inher... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504169/"
] |
74,437,809 | <p>I am trying add an local image on my svelte project. But it's giving 404 error. How can i fix it?</p>
<p>``</p>
<pre><code><script>
const src = './image/Banner.png'
</script>
<main>
<header>
<div class="Banner">
<div class="banner-img"... | [
{
"answer_id": 74439359,
"author": "Nico",
"author_id": 8760866,
"author_profile": "https://Stackoverflow.com/users/8760866",
"pm_score": 0,
"selected": false,
"text": "<script>\n import bannerImg from \"$lib/Banner.png\"; // The href of the image\n</script>\n\n<main>\n <header>\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14015433/"
] |
74,437,825 | <p>I made LazyColumn with vertical scroll bar and it's work good, but when i scroll mouse, column just jumping(not smooth), but when I scroll vert. bar, it's smooth</p>
<pre><code>@ExperimentalFoundationApi
@OptIn(ExperimentalMaterial3Api::class, ExperimentalComposeUiApi::class)
@Composable
fun App() {
Box(modi... | [
{
"answer_id": 74449135,
"author": "nevrozq",
"author_id": 19536890,
"author_profile": "https://Stackoverflow.com/users/19536890",
"pm_score": 0,
"selected": false,
"text": "val scope = rememberCoroutineScope() // coroutine for scroling(idk, i know coroutines very bad)\nval stateVertical... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19536890/"
] |
74,437,826 | <p>The title might be quite vague, but here is the code: <a href="https://github.com/amorfis/why-no-implicit" rel="nofollow noreferrer">https://github.com/amorfis/why-no-implicit</a></p>
<p>So there is a tool to transform <code>Map[String, Any]</code> to a simple case class. The tests pass and this piece of code illust... | [
{
"answer_id": 74438478,
"author": "Mateusz Kubuszok",
"author_id": 1305121,
"author_profile": "https://Stackoverflow.com/users/1305121",
"pm_score": 4,
"selected": true,
"text": "def to MapDecoder[TargetData] MapDecoder[A] A =:= TargetData to def to[A, R <: HList](map: Map[String, Any])... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/121595/"
] |
74,437,830 | <p>How do I end a program that reads an input line by line and it ends when there's a period (whitespace doesn't matter)?</p>
<p>For example:</p>
<pre><code>input = "HI
bye
."
</code></pre>
<p>the program should end after it reaches the period.</p>
<p>I tried doing two things:</p>
<pre>... | [
{
"answer_id": 74437856,
"author": "S.B",
"author_id": 13944524,
"author_profile": "https://Stackoverflow.com/users/13944524",
"pm_score": 2,
"selected": false,
"text": ".strip() .endswith() for line in f:\n if line.strip().endswith(\".\"):\n terminate...\n"
},
{
"answe... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20106966/"
] |
74,437,889 | <p>I have tried to use double indexing but this has not worked for me.</p>
<p>P.S check my work below</p>
<p>As you can see my code is not replacing only the digit at x,y position but every position at x.</p>
<p>Example variables for solution</p>
<pre><code>field =[[0, 1, 1],[1, 0, 1],[0, 0, 1]]
x_axis = 1
y_axis = 1
<... | [
{
"answer_id": 74437856,
"author": "S.B",
"author_id": 13944524,
"author_profile": "https://Stackoverflow.com/users/13944524",
"pm_score": 2,
"selected": false,
"text": ".strip() .endswith() for line in f:\n if line.strip().endswith(\".\"):\n terminate...\n"
},
{
"answe... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504390/"
] |
74,437,902 | <pre><code>#include <stdio.h>
int main(){
int number[];
scanf("%d", &number);
int counter = 0;
while (counter < number){
printf("%d\n", counter);
counter += 1;
}
}
</code></pre>
<p>I am getting an error saying that an integer cant be compared with a p... | [
{
"answer_id": 74437920,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": 2,
"selected": true,
"text": "int number[];\n int int number;\n int counter = 0;\nwhile (counter < number){\n printf(\"%d\\n\", counter... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432396/"
] |
74,437,909 | <pre><code>public function storeProject()
{
$this->validate();
$fileName = $this->files->store('uploads');
Project::create([
'title' => $this->title,
'description' => $this->description,
'files' => $fileName,
'skills' ... | [
{
"answer_id": 74441477,
"author": "raimondsL",
"author_id": 4354065,
"author_profile": "https://Stackoverflow.com/users/4354065",
"pm_score": 0,
"selected": false,
"text": "storeProject() <form enctype=\"multipart/form-data\">"
},
{
"answer_id": 74442833,
"author": "Ray C",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15311198/"
] |
74,437,910 | <p>Given the following list:</p>
<pre><code>dbset = [[{'id': '10556', 'nation': 'France', 'worth': '70'}], [{'id': '14808', 'nation': 'France', 'worth': '65'}], [{'id': '11446', 'nation': 'Ghana', 'worth': '69'}], [{'id': '11419', 'nation': 'France', 'worth': '69'}], [{'id': '11185', 'nation': 'Ghana', 'worth': '69'}],... | [
{
"answer_id": 74438074,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 2,
"selected": true,
"text": "perms = list(permutations(dbset,4))\nout = [x in perms if CONDITION]\n out = [x for x in perms if sum([int(country[... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/828017/"
] |
74,437,933 | <p>I have a bunch of sentences that I want to break into an array. Right now, I'm splitting every time \n appears in the string.</p>
<pre><code>@chapters = @script.split('\n')
</code></pre>
<p>What I'd like to do is .split ever OTHER "." in the string. Is that possible in Ruby?</p>
| [
{
"answer_id": 74438074,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 2,
"selected": true,
"text": "perms = list(permutations(dbset,4))\nout = [x in perms if CONDITION]\n out = [x for x in perms if sum([int(country[... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3462069/"
] |
74,437,964 | <p>I have 2 tables</p>
<p><code>tableA</code>:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>dateA</th>
<th>colA</th>
<th>...</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2022-11-11 12:00:00</td>
<td>A</td>
<td></td>
</tr>
<tr>
<td>2</td>
<td>2022-11-12 12:00:00</td>
<td>B<... | [
{
"answer_id": 74438006,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "UNION ALL ORDER BY select id, dateA as dateX, colA, null as colB from tableA\nunion all\nselect id, dateB, null, colB f... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74437964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11251712/"
] |
74,438,010 | <p>i have a nested tuple like this one :</p>
<pre><code>this_one = (w,h,(1,2,4,8,16),(0,2,3,4,6),("0"),("0"),(0,1))
</code></pre>
<p>It will be used to feed:
<code>itertools.product(*this_one)</code></p>
<p><code>w</code> and <code>h</code> have to be both generators.</p>
<p>Generated values from <c... | [
{
"answer_id": 74438172,
"author": "Grismar",
"author_id": 4390160,
"author_profile": "https://Stackoverflow.com/users/4390160",
"pm_score": 1,
"selected": false,
"text": "from itertools import product\n\nmaxvalue = 5\nw = (i for i in range(maxvalue) for j in range(i + 1))\nh = (j for i ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16256760/"
] |
74,438,095 | <p>I want to replace every string in and number in an object with an empty string of empty number.</p>
<p>For example:</p>
<pre><code>const test = {
a: "asdf",
b: 2,
c: [
{
lala: "more strings",
d: "saaa"
}
]
}
</code>... | [
{
"answer_id": 74438172,
"author": "Grismar",
"author_id": 4390160,
"author_profile": "https://Stackoverflow.com/users/4390160",
"pm_score": 1,
"selected": false,
"text": "from itertools import product\n\nmaxvalue = 5\nw = (i for i in range(maxvalue) for j in range(i + 1))\nh = (j for i ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1078829/"
] |
74,438,112 | <p>I been kinda stumped for a couple hours trying to figure out what to set as my default value on my createContext function. This is my code.</p>
<pre><code>// PetTypeProvider.tsx
import { useState, createContext, useContext } from 'react';
const PetTypeContext = createContext('');
const UpdatePetTypeContext = creat... | [
{
"answer_id": 74438172,
"author": "Grismar",
"author_id": 4390160,
"author_profile": "https://Stackoverflow.com/users/4390160",
"pm_score": 1,
"selected": false,
"text": "from itertools import product\n\nmaxvalue = 5\nw = (i for i in range(maxvalue) for j in range(i + 1))\nh = (j for i ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13759712/"
] |
74,438,143 | <p>How to Calculate total price of a List of items in <code>FutureBuilder</code> ?
i try this</p>
<pre><code>FutureBuilder<ProModel>(
future: futurePro,
builder: (context, snapshot){
if(snapshot.hasData){
snapshot.data.pro.forEach((element) {
subTotal = subTotal + int.parse(element.amount);
});
... | [
{
"answer_id": 74438628,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "subTotal = subTotal + int.parse(element.amount);\n element.amount amount list List<Map> amount Map element[amount] ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15015485/"
] |
74,438,148 | <p>I have a dataframe shown below:</p>
<p>I would like to count how many time the "code" column has a different character from the Key column group:
Ex: in this example the first group has two S but one Q then will count one. The second group it does not have a different char. The third group has three F but ... | [
{
"answer_id": 74438628,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "subTotal = subTotal + int.parse(element.amount);\n element.amount amount list List<Map> amount Map element[amount] ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10973494/"
] |
74,438,203 | <p>I have a collection that pulls state data from an HRIS on a daily basis. We can use state data for all kinds of interesting things, like predictive analytics.</p>
<p>However, state change data grows boundlessly (currently, that's another piece of tech debt that we need to tackle). I would like to start however by cr... | [
{
"answer_id": 74500769,
"author": "user20042973",
"author_id": 20042973,
"author_profile": "https://Stackoverflow.com/users/20042973",
"pm_score": 1,
"selected": false,
"text": "dateOfStateCapture db.createView(\n \"employeeStatusCurrentState\", \n \"rawEmployeeStatus\", \n [\n { ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1055516/"
] |
74,438,219 | <p>I am trying to complete some coursework, our exercise is focused around using data structures. I am trying to write a new method to print out each element in the array I have created but my for loop is not recognising the existence of the array that has been created above it. It is giving me an error at the 'student... | [
{
"answer_id": 74438306,
"author": "Mike Hofer",
"author_id": 47580,
"author_profile": "https://Stackoverflow.com/users/47580",
"pm_score": 1,
"selected": false,
"text": "printAllStudent students student students printAllStudent"
},
{
"answer_id": 74438974,
"author": "Rufus L... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504616/"
] |
74,438,234 | <p>I added an image to my windows form app, using a picture box. I have it saved in the resources folder . I can't seem to delete it because when I try to, it says that it couldn't find the file.</p>
<p>I have tried other solutions but can't seem to get them working, and don't understand how they are supposed to work.<... | [
{
"answer_id": 74438306,
"author": "Mike Hofer",
"author_id": 47580,
"author_profile": "https://Stackoverflow.com/users/47580",
"pm_score": 1,
"selected": false,
"text": "printAllStudent students student students printAllStudent"
},
{
"answer_id": 74438974,
"author": "Rufus L... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18054055/"
] |
74,438,272 | <p>I have the following code:</p>
<pre><code>Text(welcome)
</code></pre>
<p>Where 'welcome' is a String from another page.</p>
<pre><code> String welcome = "Welcome"
</code></pre>
<p>Basic. But what I would like was to be able to request some value of this String for example the username that way when using t... | [
{
"answer_id": 74438644,
"author": "Robert Sandberg",
"author_id": 13263384,
"author_profile": "https://Stackoverflow.com/users/13263384",
"pm_score": 1,
"selected": false,
"text": "Text(\"$welcome $username\")\n String welcome = \"Welcome\";\nString username = \"dnnx\";\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12793541/"
] |
74,438,283 | <p>I could not find a way to run a T-SQL Script using <a href="https://pypi.org/project/pyodbc/" rel="nofollow noreferrer">pyodbc</a> without having to change the script content.</p>
<p>Here's the simple SQL script file I'm trying to run:</p>
<pre><code>SET NOCOUNT ON
USE db_test
GO
CREATE OR ALTER FUNCTION usf_test(... | [
{
"answer_id": 74440270,
"author": "ASH",
"author_id": 5212614,
"author_profile": "https://Stackoverflow.com/users/5212614",
"pm_score": -1,
"selected": false,
"text": "cnxn_str = (\"Driver={SQL Server Native Client 11.0};\"\n \"Server=USXXX00345,67800;\"\n \"Databa... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6576653/"
] |
74,438,284 | <p>A colleague wrote some Perl code (v5.30.0) that does all of this:</p>
<pre><code>#!/usr/bin/perl
use warnings;
use strict;
use Data::Dumper;
package main;
sub processScalarHash
{
my $bar = $_[0];
printf "A subroutine can access the scalar hash: \"%s\"\n", $bar->{'key3'};
}
... | [
{
"answer_id": 74439410,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 4,
"selected": true,
"text": "sub f {\n my $h = shift; # Ref to hash\n for my $k ( keys( %$h ) ) {\n say \"$k: $h->{ $k }\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4040743/"
] |
74,438,298 | <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>function* bankAccount() {
let balance = 0;
while (balance >= 0) {
balance += yield balance;
}
return 'bankrupt! ';
... | [
{
"answer_id": 74438382,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 3,
"selected": true,
"text": "let balance = 0; while (balance >= 0) { yield balance balance += <value passed to next = 10> while (balance >= 0) { yi... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7217840/"
] |
74,438,303 | <p>Hi I am trying to automatically save the customer on post without having to list it in the forms. It currently shows the drop down and saves correctly but if I remove customer from forms.py it doesn't save anymore.
views.py</p>
<pre><code> @login_required(login_url='login')
def createInfringer(request):
cus... | [
{
"answer_id": 74438382,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 3,
"selected": true,
"text": "let balance = 0; while (balance >= 0) { yield balance balance += <value passed to next = 10> while (balance >= 0) { yi... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20453400/"
] |
74,438,322 | <p>So - if I try to access a writeable within a +page.js then it just returns empty.</p>
<pre class="lang-js prettyprint-override"><code>import { isAuthenticated, user } from '../../authstore';
export const load = async ({ fetch }) => {
console.log ('doing load')
console.log('is auth = ', isAuthenticated)
... | [
{
"answer_id": 74439405,
"author": "H.B.",
"author_id": 546730,
"author_profile": "https://Stackoverflow.com/users/546730",
"pm_score": 1,
"selected": false,
"text": "+page.server.js +layout.server.js cookies"
},
{
"answer_id": 74443113,
"author": "Rob",
"author_id": 1196... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/119655/"
] |
74,438,324 | <p>I'm working through 99 scheme problems and I have a solution for P16 (Drop every N'th element from a list.) using recursion, but I'm trying to practice more functional methods. Is there a clean way to filter by index in mit-scheme?</p>
<pre><code>(display (drop '(a b c d e f g h i j k) 3)))
=> (a b d e g h k)
</c... | [
{
"answer_id": 74464852,
"author": "Dinay Kingkiller",
"author_id": 20504471,
"author_profile": "https://Stackoverflow.com/users/20504471",
"pm_score": 1,
"selected": false,
"text": "zip ;; P16 (**) Drop every n'th element from a list. ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504471/"
] |
74,438,348 | <p>I want to have a graph with a color scale, however the graph has certain deviations, where the first category is missing and then the color scale does not work any more. Is there a method to skip the first discrete color in a color scale?</p>
<p>I provide an example that does not work below. The first graph has cate... | [
{
"answer_id": 74438591,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": false,
"text": "second_column drop = FALSE scale_fill_brewer() \"A\" library(ggplot2)\n\ndf2$second_column <- factor(df2$second_co... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6473874/"
] |
74,438,362 | <p>I'm trying to figure out what I need to do in order to have lib/graphql recognise the mutations I have made.</p>
<p>I have an issue.tsx (which is a form). It imports:</p>
<pre><code>import {
IssueInput,
useUpdateIssueMutation,
useAllIssuesQuery,
useCreateIssueMutation,
useDeleteIssueMutation,
Issue as Is... | [
{
"answer_id": 74532530,
"author": "ani chan",
"author_id": 18066948,
"author_profile": "https://Stackoverflow.com/users/18066948",
"pm_score": 1,
"selected": false,
"text": "overwrite: true\nschema: \"http://localhost:4000/graphql\"\ndocuments: \"src/graphql/**/*.graphql\"\ngenerates:\n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2860931/"
] |
74,438,413 | <p>I am new to react and am trying to build a simple app however am having trouble accessing objects within objects.</p>
<p>I have tried to replace the FlatList with a VirtualizedList like the documentation suggests when the data is not a plain array, however this also did not work.
Is there a proper way of tackling th... | [
{
"answer_id": 74532530,
"author": "ani chan",
"author_id": 18066948,
"author_profile": "https://Stackoverflow.com/users/18066948",
"pm_score": 1,
"selected": false,
"text": "overwrite: true\nschema: \"http://localhost:4000/graphql\"\ndocuments: \"src/graphql/**/*.graphql\"\ngenerates:\n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18259036/"
] |
74,438,416 | <p>I am new to Java and was trying to write code that would tell you how much change you would receive for a given amount of money (in minimum number of coins). For example <strong>$0.31</strong> would give <strong>1 quarters, 0 dimes, 1 nickels, 1 pennies</strong>.</p>
<p>I got to a point where my code seemed to work.... | [
{
"answer_id": 74438720,
"author": "synapticloop",
"author_id": 20489149,
"author_profile": "https://Stackoverflow.com/users/20489149",
"pm_score": 2,
"selected": true,
"text": "0.41\n0.15999999999999998\n0.05999999999999997\n0.009999999999999967\n public class CashMain {\n\n public s... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504678/"
] |
74,438,430 | <p>I created this custom hook to fetch (in this case listen to) a document in firestore:</p>
<pre><code>import { doc, onSnapshot } from 'firebase/firestore';
import { useEffect, useState } from 'react';
import { db, auth } from '../../firebase';
function useCurrentUser() {
const userId = auth.currentUser.uid;
con... | [
{
"answer_id": 74438475,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 2,
"selected": true,
"text": "onSnapshot await useEffect(() => {\n setIsUserLoading(true);\n const userRef = doc(db, 'users', userId);\n const un... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15637129/"
] |
74,438,498 | <p>I want to write a function that finds certain word combinations in text and tells it belongs to which list. Example:</p>
<pre><code>my_list1 = ["Peter Parker", "Eddie Brock"]
my_list2 = ["Harry Potter", "Severus Snape", "Dumbledore"]
Example input: "Harry Potte... | [
{
"answer_id": 74438475,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 2,
"selected": true,
"text": "onSnapshot await useEffect(() => {\n setIsUserLoading(true);\n const userRef = doc(db, 'users', userId);\n const un... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7775099/"
] |
74,438,540 | <p>I wanted to print each individual element of a list that's in nested list. it should also print symbols to show where the different lists end. There are only going to be 3 lists total in the big list.</p>
<p>For Example,</p>
<pre><code>list1 = [['assign1', 'assign2'], ['final,'assign4'], ['exam','study']]
</code></p... | [
{
"answer_id": 74438475,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 2,
"selected": true,
"text": "onSnapshot await useEffect(() => {\n setIsUserLoading(true);\n const userRef = doc(db, 'users', userId);\n const un... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495138/"
] |
74,438,555 | <p>I'm a complete novice at python and am trying to list the first n positive numbers, where n is an inputted value. E.g. when n=5, I want to output 5, 4, 3, 2 and 1.</p>
<p>This is my code which doesn't work:</p>
<pre><code>n= int(input("Please enter a number: "))
i=0
while i<n:
print(n)
n=n-1
... | [
{
"answer_id": 74438612,
"author": "ChrisSc",
"author_id": 16872665,
"author_profile": "https://Stackoverflow.com/users/16872665",
"pm_score": 2,
"selected": false,
"text": "False i print(n-i) i<n n= int(input(\"Please enter a number: \"))\ni=0\nwhile i<n:\n print(n-i)\n i=i+1 \n"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16824530/"
] |
74,438,566 | <p>I have a dataframe (df) that has three columns (user, vector, and group name), the vector column with multiple comma-separated values in each row.</p>
<pre><code>df = pd.DataFrame({'user': ['user_1', 'user_2', 'user_3', 'user_4', 'user_5', 'user_6'], 'vector': [[1, 0, 2, 0], [1, 8, 0, 2],[6, 2, 0, 0], [5, 0, 2, 2],... | [
{
"answer_id": 74438706,
"author": "markd227",
"author_id": 13650733,
"author_profile": "https://Stackoverflow.com/users/13650733",
"pm_score": 1,
"selected": false,
"text": "for group in df.group.unique():\n print(f'Group {group} results: ')\n tmp_df = pd.DataFrame(df[df.group==gr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17289012/"
] |
74,438,649 | <p>Need to prevent the main image on the product page from lazy loading.</p>
<p>The main product image is loaded in 'woocommerce/single-product/product-image.php'</p>
<p>It uses: wp_get_attachment_image( $attachment_id, $size, $icon, $attr ); to get the image.</p>
<p>Inside the function above, there is:</p>
<pre><code>... | [
{
"answer_id": 74438706,
"author": "markd227",
"author_id": 13650733,
"author_profile": "https://Stackoverflow.com/users/13650733",
"pm_score": 1,
"selected": false,
"text": "for group in df.group.unique():\n print(f'Group {group} results: ')\n tmp_df = pd.DataFrame(df[df.group==gr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19337048/"
] |
74,438,653 | <p>When launching a JNLP application with Java 8 update 351, the following error is received:</p>
<blockquote>
<p>**```
ERROR: Unsigned application requesting unrestricted access to system
Unsigned resoured: xyz.jar</p>
<pre><code></code></pre>
</blockquote>
<p>The release notes for update 351 include "JARs signe... | [
{
"answer_id": 74438706,
"author": "markd227",
"author_id": 13650733,
"author_profile": "https://Stackoverflow.com/users/13650733",
"pm_score": 1,
"selected": false,
"text": "for group in df.group.unique():\n print(f'Group {group} results: ')\n tmp_df = pd.DataFrame(df[df.group==gr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8786514/"
] |
74,438,656 | <p>I'm working on a school assignment. I am writing a program that utilizes <code>union</code>s to convert a given IP address in "192.168.1.10" format into its 32-bit single value, two 16-bit values, and four 8-bit values.</p>
<p>I'm having trouble with implementing my <code>struct</code>s and <code>union</co... | [
{
"answer_id": 74439099,
"author": "Remy Lebeau",
"author_id": 65863,
"author_profile": "https://Stackoverflow.com/users/65863",
"pm_score": 2,
"selected": false,
"text": "union union union union union IP_Adress {\n uint8_t u8[4]; // four 8-bit values\n uint16_t u16[2]; // two 16... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10714478/"
] |
74,438,678 | <p>I have a dataframe called teams. Each column is a team in the NFL, each row is how much a given fan would pay to attend a team's game. Looks like:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">team1</th>
<th style="text-align: center;">team2</th>
<th style="te... | [
{
"answer_id": 74438732,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "std NaN skipna=True df.std()\n team1 24.748737\nteam2 NaN\nteam3 21.213203\ndtype: float64\n"
},
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14276370/"
] |
74,438,687 | <p>I'm trying to add a button to a customization screen in Acumatica that will run a small JavaScript function when clicked.</p>
<p>I am able to type the function inside a <strong>JavaScript control</strong>, which will be called from the button's <strong>Click</strong> or <strong>MouseDown</strong> events. I can also ... | [
{
"answer_id": 74438732,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "std NaN skipna=True df.std()\n team1 24.748737\nteam2 NaN\nteam3 21.213203\ndtype: float64\n"
},
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11331427/"
] |
74,438,689 | <p>I was just wondering if anyone can help me with this problem.</p>
<p>I have two tables - Table 1 & Table 2.</p>
<p>What I'm trying to do is to find 2 timestamps before and after 'date' from Table 1, so everything highlighted in pink in Table 2.</p>
<p>How can I do this in Microsoft SQL Server? ideally without us... | [
{
"answer_id": 74438976,
"author": "John Cappelletti",
"author_id": 1570000,
"author_profile": "https://Stackoverflow.com/users/1570000",
"pm_score": 1,
"selected": false,
"text": "Select Date\n ,Value\n ,ID\n From (\n Select A.Date\n ,A.Value\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18707638/"
] |
74,438,697 | <p>I have an array that looks like this:</p>
<pre class="lang-js prettyprint-override"><code>const arr = [
{
parent: 'A',
children: ['B'],
},
{
parent: 'B',
children: ['C'],
},
{
parent: 'C',
children: ['D']
}];
</code></pre>
<p>and I want to create a function that will take this array and result in the fol... | [
{
"answer_id": 74439273,
"author": "Lucasbk38",
"author_id": 20480528,
"author_profile": "https://Stackoverflow.com/users/20480528",
"pm_score": -1,
"selected": false,
"text": "ts // here i just copy your data\nconst data = [{\n parent: 'A',\n children: ['B'],\n },\n {\n paren... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11929034/"
] |
74,438,710 | <pre><code>import random
q = random.randint(10, 100)
w = random.randint(10, 100)
e = (q, " * ", w)
r = int(input(e))
</code></pre>
<p>This outputs (i.e):</p>
<pre><code>>>> (60, ' * ', 24)
</code></pre>
<p>I tried following <a href="https://stackoverflow.com/questions/30666310/python-removing-quot... | [
{
"answer_id": 74438735,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 3,
"selected": true,
"text": "e = f\"{q} * {w}\"\n {}"
},
{
"answer_id": 74438781,
"author": "Tristan Bodding-Long",
"author_id": 468... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20503795/"
] |
74,438,744 | <pre><code>#include <iostream>
#include <vector>
#include <unordered_map>
#include <string>
class Solution {
public:
std::vector<std::vector<std::string>> groupAna(std::vector<std::string> strs) {
std::unordered_map<std::string, std::vector<std::string>>... | [
{
"answer_id": 74438822,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 1,
"selected": false,
"text": "groupAna std::vector<std::vector<std::string>> operator<< std::vector std::ostringstream std::string #include <ss... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504851/"
] |
74,438,797 | <p>So i'am working around an exercise that should be a very basic and easy function</p>
<p>Whish takes as argument a string and a list and should return None if there string is not in the list and return some list where the string has been removed from the list. This is an 2015 exam set i am practising and using List. ... | [
{
"answer_id": 74439853,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 1,
"selected": false,
"text": "None None Option.get Some let rec fromShelf bs ls = \n match ls with\n | [] -> None\n | h::tl when h = bs -> Some... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20478173/"
] |
74,438,807 | <p>I tried this code:</p>
<pre><code>string Input = TextBox1.Text;
string[] splitX = Regex.Split(Input, @"(?<=[|if|and|but|so|when|])");
</code></pre>
<p>Often this regular expression is applied @"(?<=[.?!])") to split a text into sentences. But I need to use words as a delimiter to split the... | [
{
"answer_id": 74438904,
"author": "wlyles",
"author_id": 2494394,
"author_profile": "https://Stackoverflow.com/users/2494394",
"pm_score": 1,
"selected": false,
"text": "[] [.?!] . ? ! \\. . | i f n | | | (?<=(if|and|but|so|when))"
},
{
"answer_id": 74439164,
"author": "flyt... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20465780/"
] |
74,438,823 | <p>I am unable to get a connection working using <a href="https://github.com/aws-samples/cloud9-to-power-vscode-blog/blob/main/scripts/ssm-proxy.sh" rel="nofollow noreferrer">this ssm-proxy.sh script</a> to remote connect to AWS Cloud9 from Visual Studio Code. I am following <a href="https://aws.amazon.com/blogs/archit... | [
{
"answer_id": 74614622,
"author": "Aniruddh Parihar",
"author_id": 8031784,
"author_profile": "https://Stackoverflow.com/users/8031784",
"pm_score": 0,
"selected": false,
"text": "type: All traffic, Protocol: All, Ports: All, Destination: 0.0.0.0/0\n"
},
{
"answer_id": 74614656,... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788377/"
] |
74,438,840 | <p>The Excel formula XMATCH has a third argument that returns a value if the value being tested is EITHER greater OR less than the list of values. I need it to return a numeric value in all cases - Less than the minimum (7 in the example below), within the values (1-7 in the example) or greater than the maximum (1 in ... | [
{
"answer_id": 74614622,
"author": "Aniruddh Parihar",
"author_id": 8031784,
"author_profile": "https://Stackoverflow.com/users/8031784",
"pm_score": 0,
"selected": false,
"text": "type: All traffic, Protocol: All, Ports: All, Destination: 0.0.0.0/0\n"
},
{
"answer_id": 74614656,... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1591729/"
] |
74,438,860 | <p>I have this code:</p>
<pre><code>arr=pd.date_range(start='1/1/2021', end='12/31/2021 23:00:00', freq='h')
df = pd.DataFrame({'year': arr.year})
dg = pd.DataFrame({'month': arr.month})
dh = pd.DataFrame({'day': arr.day})
di = pd.DataFrame({'hour': arr.hour,'minute': arr.minute,'second': arr.second})
</code></pre>
<... | [
{
"answer_id": 74438899,
"author": "AD DAB",
"author_id": 19599752,
"author_profile": "https://Stackoverflow.com/users/19599752",
"pm_score": 2,
"selected": false,
"text": "timevalue_12hour = time.strftime( \"%I:%M %p\", t )\n"
},
{
"answer_id": 74438911,
"author": "D.Manasre... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20293646/"
] |
74,438,879 | <p>I have an iframe that changes src pages when the page would normally switch to another page so that my main JS file can continue running in the background. For the first page, the one defined in the HTML src for the Iframe, I can access the inner document just fine by using iframe.contentDocument.</p>
<p>However, wh... | [
{
"answer_id": 74449934,
"author": "Mister Jojo",
"author_id": 10669010,
"author_profile": "https://Stackoverflow.com/users/10669010",
"pm_score": 0,
"selected": false,
"text": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>main Page</title>\n <style>... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20055980/"
] |
74,438,887 | <p>I need to parse the line similar to the:</p>
<pre><code>'''Object{identifier='d6e461c5-fd55-42cb-b3e8-40072670fd0f', name='some_name2', identifier='d6e461c5-fd55-42cb-b3e8-40072670fd0f', name='some_name3', value=value_without_quotes}'''
</code></pre>
<p>The line is much longer, but the pattern is the same.</p>
<p>Ba... | [
{
"answer_id": 74439007,
"author": "HoliSimo",
"author_id": 10419454,
"author_profile": "https://Stackoverflow.com/users/10419454",
"pm_score": 3,
"selected": true,
"text": "sentence = '''Object{identifier='d6e461c5-fd55-42cb-b3e8-40072670fd0f', name='some_name2', identifier='d6e461c5-fd... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19070565/"
] |
74,438,906 | <p>I have a dataset where I would like to remove all rows where the date is 4/1/2022 within a column in my dataset. The Date column is datetime64ns</p>
<p><strong>Data</strong></p>
<pre><code>ID Date
AA 1/1/2022
BB 1/1/2022
CC 4/1/2022
</code></pre>
<p><strong>Desired</strong></p>
<pre><code>ID Date
AA 1/1/2022
BB 1/1/... | [
{
"answer_id": 74439037,
"author": "wwnde",
"author_id": 8986975,
"author_profile": "https://Stackoverflow.com/users/8986975",
"pm_score": 1,
"selected": false,
"text": "df[~df['Date'].astype(str).str.contains('4/1/2022')]\n"
},
{
"answer_id": 74439041,
"author": "mozway",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5942100/"
] |
74,438,914 | <p>Ok so i am making a gen bot for me and my friends and i wanted to know how do i make my bot reply to the message with a account from a .txt file that i put in the folder with the bot please help me thank you</p>
<p>i tried `</p>
<pre><code>import random
@client.command()
async def color(ctx):
responses = ['red'... | [
{
"answer_id": 74439037,
"author": "wwnde",
"author_id": 8986975,
"author_profile": "https://Stackoverflow.com/users/8986975",
"pm_score": 1,
"selected": false,
"text": "df[~df['Date'].astype(str).str.contains('4/1/2022')]\n"
},
{
"answer_id": 74439041,
"author": "mozway",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18887131/"
] |
74,438,929 | <p>I am creating a stored procedure in Snowflake that returns number of rows in a table. Here is the code for the procedure and the result.</p>
<pre><code>CREATE OR REPLACE PROCEDURE CDS_EXTRACT_CHECK_ROWCOUNT(STAGE_DATABASE varchar, STAGE_SCHEMA varchar, STAGE_TABLE varchar)
RETURNS table (a int)
LANGUAGE SQL
AS
D... | [
{
"answer_id": 74439037,
"author": "wwnde",
"author_id": 8986975,
"author_profile": "https://Stackoverflow.com/users/8986975",
"pm_score": 1,
"selected": false,
"text": "df[~df['Date'].astype(str).str.contains('4/1/2022')]\n"
},
{
"answer_id": 74439041,
"author": "mozway",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13711883/"
] |
74,438,930 | <p>I am very very new to Swift programming and I am growing to dislike it very much. I am not grasping it aa easily as other languages.</p>
<p>I have a project I am working on and I cannot figure out what is wrong or why its isn't working.</p>
<p>In one view, I have a table view that has a cell. I am using an array to ... | [
{
"answer_id": 74439037,
"author": "wwnde",
"author_id": 8986975,
"author_profile": "https://Stackoverflow.com/users/8986975",
"pm_score": 1,
"selected": false,
"text": "df[~df['Date'].astype(str).str.contains('4/1/2022')]\n"
},
{
"answer_id": 74439041,
"author": "mozway",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19802615/"
] |
74,438,949 | <pre><code><MyComponent>
<button>Click me</button>
</MyComponent>
interface MyComponentProps {
children: ???;
}
const MyComponent: FC<MyComponentProps> = ({children}) => {
const string = children.??? //I want the string to be "Click me"
}
</code></pre>
<p>I tried s... | [
{
"answer_id": 74439219,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 1,
"selected": false,
"text": "children ReactElement children.props <MyComponent>\n <button>Click me</button>\n</MyComponent>\n\ninterface MyCompon... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9630194/"
] |
74,438,958 | <p>I'm trying to add an array to a dictionary in Matlab.</p>
<p>In Python it's very simple, just make a dictionary and for a key assign an array, but in Matlab I get this error:</p>
<blockquote>
<p>Error using () Dimensions of the key and value must be compatible, or the value must be scalar.</p>
</blockquote>
<p>Basi... | [
{
"answer_id": 74439138,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 3,
"selected": true,
"text": "d(\"key\") = {arr};\n"
},
{
"answer_id": 74439313,
"author": "Chris Ze Third",
"author_id": 19392... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19392385/"
] |
74,438,995 | <p>I installed successfully Odoo 16 on Ubuntu 22. (Yenthe script) When I run Odoo directly with the IP address on port 8069 everything functions. But when I run it with a domain name with a server block several things happen: The initial website generation gets stuck in an endless loop. After letting it run for a long ... | [
{
"answer_id": 74439138,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 3,
"selected": true,
"text": "d(\"key\") = {arr};\n"
},
{
"answer_id": 74439313,
"author": "Chris Ze Third",
"author_id": 19392... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74438995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5964689/"
] |
74,439,008 | <p>I was working with VS Code and everything was fine, now out of nowhere there is a problem with the intellisense caused by Omnisharp in my opinion. I'm with Macbook Air M1 (2020) with Ventura 13.0.1, also I'm with the latest .Net SDK 6.0.402. The intellisense is not working at all, I reinstalled the C# extension from... | [
{
"answer_id": 74439138,
"author": "Cris Luengo",
"author_id": 7328782,
"author_profile": "https://Stackoverflow.com/users/7328782",
"pm_score": 3,
"selected": true,
"text": "d(\"key\") = {arr};\n"
},
{
"answer_id": 74439313,
"author": "Chris Ze Third",
"author_id": 19392... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14541604/"
] |
74,439,019 | <p>I have a dataframe with rows as dictionaries as below:</p>
<pre><code>Col1 A B
{'A': 1, 'B': 23} apple carrot
{'A': 3, 'B': 35} banana spinach
</code></pre>
<p>I want to expand Col1 such that the dataframe looks like this:</p>
<pre><code>Col1.A Col2.B A B
1 23 apple carrot
3... | [
{
"answer_id": 74439089,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 2,
"selected": false,
"text": "df[\"Col1.A\"] = df[\"Col1\"].map(lambda x: x[\"A\"])\ndf[\"Col1.B\"] = df[\"Col1\"].map(lambda x: x[\"B\"])\ndf.dr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505088/"
] |
74,439,029 | <p>This is an example of my data frame with a list in it.</p>
<pre><code>df <- data.frame(x = 1:2, y = c("A", "B"))
df$z <- rep(list(1:3), 2)
df
> df
x y z
1 1 A 1, 2, 3
2 2 B 1, 2, 3
</code></pre>
<p>I would like to kind of <code>unlist</code> the list and rearrange the data frame... | [
{
"answer_id": 74439049,
"author": "onyambu",
"author_id": 8380272,
"author_profile": "https://Stackoverflow.com/users/8380272",
"pm_score": 2,
"selected": true,
"text": "tidyr::unnest(df,z) # or even unnest_longer(df, z)\n\n# A tibble: 6 × 3\n x y z\n <int> <chr> <int>\n1 ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11741943/"
] |
74,439,065 | <p>I'm adding a new server action to my Odoo, but is not working ok. It's supposed to check the n selected items, but only is checking the first one. What I'm missing?</p>
<p><a href="https://i.stack.imgur.com/jfH1t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jfH1t.png" alt="enter image descripti... | [
{
"answer_id": 74439310,
"author": "Bhavesh Odedra",
"author_id": 2926754,
"author_profile": "https://Stackoverflow.com/users/2926754",
"pm_score": 0,
"selected": false,
"text": "for obj in object:\n obj.validate_invalidate()\n records.validate_invalidate()\n"
},
{
"answer_id"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19883757/"
] |
74,439,075 | <p>I have a dataframe, where the variable top10 has either value 0 (not in top 10) and 1 (in top 10). And a categorical variable label (Independent, Warner Music, Sony music, Universal music).</p>
<p><a href="https://i.stack.imgur.com/89SYX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/89SYX.png" a... | [
{
"answer_id": 74439310,
"author": "Bhavesh Odedra",
"author_id": 2926754,
"author_profile": "https://Stackoverflow.com/users/2926754",
"pm_score": 0,
"selected": false,
"text": "for obj in object:\n obj.validate_invalidate()\n records.validate_invalidate()\n"
},
{
"answer_id"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14695152/"
] |
74,439,083 | <p>I'm having a problem when running the npx prisma migrate dev command. Docker desktop tells me that the database is running correctly on port 5432 but I still can't see the problem.
I tried to put <code>connect_timeout=300</code> to the connection string, tried many versions of postgres and docker, but I can't get it... | [
{
"answer_id": 74441624,
"author": "Abhishek S",
"author_id": 9754109,
"author_profile": "https://Stackoverflow.com/users/9754109",
"pm_score": 1,
"selected": false,
"text": "localhost:5432 postgres:5432 <dockerhost>:5432"
},
{
"answer_id": 74457010,
"author": "Mansur",
"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20488789/"
] |
74,439,086 | <pre><code><html>
<!-- ... (other page content) ... -->
<script src="common.js"></script>
<script src="homepage.js"></script>
</html>
</code></pre>
<p>On every page on my website, I have one common.js file for stuff that is always needed on every singl... | [
{
"answer_id": 74439113,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 1,
"selected": false,
"text": "data .then // common.js\nwindow.dataProm = fetch('/get-data').then(res => res.json());\n\ndataProm\n .th... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19643541/"
] |
74,439,102 | <p>I don't speak Russian, so I'm having trouble validating whether the months are correctly spelled, etc. To be honest, I'm not fully sure that my input is in Russian (Russian is the language detected by Google translate)</p>
<p>I have some code in Kotlin which does a best-effort to parse dates specified in various for... | [
{
"answer_id": 74439113,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 1,
"selected": false,
"text": "data .then // common.js\nwindow.dataProm = fetch('/get-data').then(res => res.json());\n\ndataProm\n .th... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2518281/"
] |
74,439,117 | <p>I would like to add the <code>data</code> parameter only when it has value if not then don't add data in the parameter string.</p>
<p>Currently, it is throwing unexpected token <code>if</code> and data values shows <code>undefined</code></p>
<pre><code>function Data() {
if ($("#data").val().length != 0) ... | [
{
"answer_id": 74439215,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "check() &data= Data() encodeURIComponent() $.ajax() data: function Data() {\n if ($(\"#data\").val()) {\n return \... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505175/"
] |
74,439,139 | <p>I have a HTML input and onClick with a button, I get the value of text input and store in a varibale in Javascipt. Now how can I use this varibale as a paramter to a python function?</p>
<p>In JavaScript I have:</p>
<pre><code>var text = document.getElementById("text").value;
</code></pre>
<p>and in Python... | [
{
"answer_id": 74439215,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "check() &data= Data() encodeURIComponent() $.ajax() data: function Data() {\n if ($(\"#data\").val()) {\n return \... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504613/"
] |
74,439,175 | <p><strong>Situation:</strong></p>
<p>C++ app developed with Visual Studio 2022 dies in Release mode only when debugger is detached. Now, while I may know the typical scenarios where this might be happening the code base is too immense for me to do any per-line code reviews. So, I set Windbg as post-mortem debugger in ... | [
{
"answer_id": 74439215,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "check() &data= Data() encodeURIComponent() $.ajax() data: function Data() {\n if ($(\"#data\").val()) {\n return \... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1549596/"
] |
74,439,190 | <p>say I have something like this in nextjs, when I run it I get the error</p>
<p>'Module not found: Can't resolve './${game.image}'</p>
<pre><code>const Categories = () => {
const Games =
[
{
name: "World of warcraft",
image: "/assets/wow.png",
},
{
name: &qu... | [
{
"answer_id": 74439322,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 1,
"selected": false,
"text": "const Games = \n [\n name: \"World of warcraft\",\n image: \"/assets/wow.png\",\n ],\n [\n na... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16409634/"
] |
74,439,197 | <p>I have this dict that was provided by ansible_facts</p>
<pre class="lang-yaml prettyprint-override"><code> ansible_facts.lvm.lvs:
lv-something-1:
size_g: '70.00'
vg: blockchains
lv-something2-2:
size_g: '45.00'
vg: blockchains
lv-something3-3:
size_g: '250.00'
vg: blo... | [
{
"answer_id": 74439322,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 1,
"selected": false,
"text": "const Games = \n [\n name: \"World of warcraft\",\n image: \"/assets/wow.png\",\n ],\n [\n na... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15945364/"
] |
74,439,199 | <p>I have made a list of all number from 0 to 500 and then I am looking for all number that end with a certain integer. The thing is I don't under stand how its working.</p>
<p>I am new to coding so don't know what to expect here or how it is working.</p>
<pre><code>x = 0
y = []
while x <= 500:
y.append(x)
x... | [
{
"answer_id": 74439322,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 1,
"selected": false,
"text": "const Games = \n [\n name: \"World of warcraft\",\n image: \"/assets/wow.png\",\n ],\n [\n na... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505191/"
] |
74,439,218 | <pre><code>import csv #working with csv files
from datetime import datetime #this will allow accessing time for later use
#initialize class for every output
class InventoryReports:
def __init__(self, item_list):
self.item_list = item_list #provide list to create new file
... | [
{
"answer_id": 74439322,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 1,
"selected": false,
"text": "const Games = \n [\n name: \"World of warcraft\",\n image: \"/assets/wow.png\",\n ],\n [\n na... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497304/"
] |
74,439,230 | <pre><code>void addNumbers(vector<double> &vec) {
double add_num {};
cout << "Enter an integer to add: ";
cin >> add_num;
vec.push_back(add_num);
cout << add_num << " added" << endl;
}
</code></pre>
<p>The vector is empty, and I only want p... | [
{
"answer_id": 74440020,
"author": "sxu",
"author_id": 19694882,
"author_profile": "https://Stackoverflow.com/users/19694882",
"pm_score": -1,
"selected": false,
"text": "void addNumbers(vector<double> &vec) {\n int add_num=0;\n std::cout << \"Enter an integer to add: \";\n if( ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505174/"
] |
74,439,235 | <pre><code>import java.util.Scanner;
class Assignment4
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
System.out.println("Type the message to be shortened");
String msg = scan.nextLine();
msg = msg.toLowerCase();
String alg1 = ""... | [
{
"answer_id": 74440020,
"author": "sxu",
"author_id": 19694882,
"author_profile": "https://Stackoverflow.com/users/19694882",
"pm_score": -1,
"selected": false,
"text": "void addNumbers(vector<double> &vec) {\n int add_num=0;\n std::cout << \"Enter an integer to add: \";\n if( ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74439235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505242/"
] |
74,439,252 | <p>What I'm trying to achieve is that when a row in col2 has a 1, it will copy that 1 onto all the other values in col2 as long as the rows in col1 have the same name. As an example, if the dataframe looks like this</p>
<pre><code>col1 col2
xx 1
xx 0
xx 0
xx 0
yy 0
yy 0
yy 0
zz ... | [
{
"answer_id": 74439318,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 4,
"selected": true,
"text": "groupby.transform('max') df['col2'] = df.groupby('col1')['col2'].transform('max')\n col1 col2\n0 xx 1\n1 ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505209/"
] |
74,439,257 | <p><a href="https://i.stack.imgur.com/WO7bZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WO7bZ.png" alt="display cut-out screenshot" /></a></p>
<p>I still want the bottom navigation bar to remain the same length, but I want to add some padding in the container to the left to shift the cards over t... | [
{
"answer_id": 74439470,
"author": "Zain",
"author_id": 9851608,
"author_profile": "https://Stackoverflow.com/users/9851608",
"pm_score": 1,
"selected": false,
"text": "<item name=\"android:windowLayoutInDisplayCutoutMode\">default</item>\n OrientationEventListener private var cutoutDept... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13965988/"
] |
74,439,263 | <p>So i am trying to build this website and as i go on i decided to use a bootstrap carousel, i already had a dropdown button in the navbar and a collapse menu when on smaller viewports and it all worked fine, but when i was implementing the carousel it had a delay between images. It was almost like a white page betwee... | [
{
"answer_id": 74439470,
"author": "Zain",
"author_id": 9851608,
"author_profile": "https://Stackoverflow.com/users/9851608",
"pm_score": 1,
"selected": false,
"text": "<item name=\"android:windowLayoutInDisplayCutoutMode\">default</item>\n OrientationEventListener private var cutoutDept... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505229/"
] |
74,439,269 | <p>I'm working in Google Sheets and am trying to find a more elegant way to return a value if a number in a referenced cell falls between two other values in the table. For example:</p>
<p><a href="https://i.stack.imgur.com/0cQlN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0cQlN.jpg" alt="Min Ma... | [
{
"answer_id": 74439468,
"author": "ztiaa",
"author_id": 17887301,
"author_profile": "https://Stackoverflow.com/users/17887301",
"pm_score": 0,
"selected": false,
"text": "=ARRAYFORMULA(LOOKUP(E2:E5,A2:A6,C2:C6))\n"
},
{
"answer_id": 74439872,
"author": "Ping",
"author_id... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1790492/"
] |
74,439,284 | <p>I have a nested list that has certain elements with an [x] at the beginning. I want the function to remove those elements and move them to the last list in <code>list1</code> (at index 2). But it should remove the [x] from it before placing it in the last list. It should also count how many were removed from each li... | [
{
"answer_id": 74439468,
"author": "ztiaa",
"author_id": 17887301,
"author_profile": "https://Stackoverflow.com/users/17887301",
"pm_score": 0,
"selected": false,
"text": "=ARRAYFORMULA(LOOKUP(E2:E5,A2:A6,C2:C6))\n"
},
{
"answer_id": 74439872,
"author": "Ping",
"author_id... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495138/"
] |
74,439,314 | <p>I need to check when a new process with a new visible main window handle is started (as the mouse hook of my app is lost on some applications and is restored only on a short internal restart).</p>
<p>I have tried to use <code>EnumWindows</code> and <code>EnumDesktopWindows</code> but those give me many many windows ... | [
{
"answer_id": 74440561,
"author": "Anders",
"author_id": 3501,
"author_profile": "https://Stackoverflow.com/users/3501",
"pm_score": 1,
"selected": false,
"text": "WH_SHELL WH_CBT SetWinEventHook()"
},
{
"answer_id": 74463839,
"author": "tar",
"author_id": 12622162,
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12622162/"
] |
74,439,329 | <p>Basically I just want to change nested dictionaries but in my code I change multiple sublevel dictionaries at once.</p>
<p>So I have a nested dictionary which looks this way</p>
<pre><code>d1 = {'a': {0: [1,2], 1: [1,2]}, 'b': {0: [1,2], 1: [1,2]}}
</code></pre>
<p>Then I want to add an entry</p>
<pre><code>d1['a'][... | [
{
"answer_id": 74439439,
"author": "RunnersNum45",
"author_id": 7675722,
"author_profile": "https://Stackoverflow.com/users/7675722",
"pm_score": -1,
"selected": false,
"text": "dict.fromkeys(keys, default) dict.copy() d1 = dict.fromkeys([0,1], [1,2])\nd2 = {key:d1.copy() for key in [\"a... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20478359/"
] |
74,439,336 | <p>I have a service that subscribes to an observable field of a dependency in the constructor. I am trying to write unit tests for this service, and in doing so, am trying to ignore the subscription to that observable. In other words, for some of these tests, I never want to emit a value, as I'm testing an unrelated fu... | [
{
"answer_id": 74439439,
"author": "RunnersNum45",
"author_id": 7675722,
"author_profile": "https://Stackoverflow.com/users/7675722",
"pm_score": -1,
"selected": false,
"text": "dict.fromkeys(keys, default) dict.copy() d1 = dict.fromkeys([0,1], [1,2])\nd2 = {key:d1.copy() for key in [\"a... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/491319/"
] |
74,439,395 | <p>so I don't know if I'm doing it right, but I wanted to make a button with a link in the submit input, but I don't know how to do that, the code is like this</p>
<pre><code><form class="box" action="index.html" method="post">
<h1>Login</h1>
<input type="... | [
{
"answer_id": 74439510,
"author": "DotBased - Josh",
"author_id": 20505455,
"author_profile": "https://Stackoverflow.com/users/20505455",
"pm_score": 2,
"selected": true,
"text": "<form class=\"box\" action=\"index.html\" method=\"post\" id=\"form\">\n <h1>Login</h1>\n <input type... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505394/"
] |
74,439,423 | <p>I've seen a lot of times code like this:</p>
<pre class="lang-scala prettyprint-override"><code>...
val aString: String = someFunctionDataReturnsAString()
...
if (someCondition) Some(aString)
else
...
</code></pre>
<p>Is it right to create a new <code>Option</code> using <code>Some(aString)</code>?
What if for som... | [
{
"answer_id": 74439775,
"author": "Alin Gabriel Arhip",
"author_id": 2205089,
"author_profile": "https://Stackoverflow.com/users/2205089",
"pm_score": 3,
"selected": false,
"text": "Option(aString) def apply[A](x: A): Option[A] Option Some(x) null None null x Some(value) value != null N... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12806640/"
] |
74,439,428 | <p>I need to type some text inside a box but the text needs to be like typing but the box to just be thare. I also need it to be yellow.</p>
<p>My code:</p>
<pre><code>
from termcolor import colored
import sys, time, random
import os
os.system('clear')
def print_slow(str):
for letter in str:
sys.stdout.wri... | [
{
"answer_id": 74439775,
"author": "Alin Gabriel Arhip",
"author_id": 2205089,
"author_profile": "https://Stackoverflow.com/users/2205089",
"pm_score": 3,
"selected": false,
"text": "Option(aString) def apply[A](x: A): Option[A] Option Some(x) null None null x Some(value) value != null N... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19278203/"
] |
74,439,437 | <p>I'm working on a calculator that needs to calculate the date of birth from 3 inputs: the age in years, months and days:</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> ... | [
{
"answer_id": 74439597,
"author": "Benjamin Penney",
"author_id": 6545526,
"author_profile": "https://Stackoverflow.com/users/6545526",
"pm_score": -1,
"selected": false,
"text": "let arrDatas = [39, 4, 19];\n\nconst isLeapYear = year => (year % 4 === 0 && year % 100 !== 0) || year % 40... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4154939/"
] |
74,439,442 | <p><a href="https://i.stack.imgur.com/kf67G.jpg" rel="nofollow noreferrer">enter image description here</a>Given a line of text as input, output the number of characters excluding spaces, periods, or commas.</p>
<p>Ex: If the input is: <code>Listen, Mr. Jones, calm down.</code> the output is: <code>21</code></p>
<p>N... | [
{
"answer_id": 74439474,
"author": "Noscere",
"author_id": 10728583,
"author_profile": "https://Stackoverflow.com/users/10728583",
"pm_score": -1,
"selected": false,
"text": "print(len(string.replace(',','').replace(' ','').replace('.','')))\n string"
},
{
"answer_id": 74453198,
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20384092/"
] |
74,439,443 | <p>I am trying to upload a CSV file to my database in laravel. But my CSV file is pretty big, I almost have 500 million rows that I want to import. (I am using Maatwebsite to do this)</p>
<p>And when I try to import it I am getting:</p>
<pre><code>Maximum execution time of 300 seconds exceeded
</code></pre>
<p>As you c... | [
{
"answer_id": 74439474,
"author": "Noscere",
"author_id": 10728583,
"author_profile": "https://Stackoverflow.com/users/10728583",
"pm_score": -1,
"selected": false,
"text": "print(len(string.replace(',','').replace(' ','').replace('.','')))\n string"
},
{
"answer_id": 74453198,
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12274354/"
] |
74,439,444 | <p>I have two container buttons (blue and red) that alternate being visible when pressed. plus a counter that ticks up each time the blue button is pressed.</p>
<pre><code>class Test extends StatefulWidget {
const Test({Key? key}) : super(key: key);
@override
State<Test> createState() => _TestState();
}... | [
{
"answer_id": 74439474,
"author": "Noscere",
"author_id": 10728583,
"author_profile": "https://Stackoverflow.com/users/10728583",
"pm_score": -1,
"selected": false,
"text": "print(len(string.replace(',','').replace(' ','').replace('.','')))\n string"
},
{
"answer_id": 74453198,
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20373623/"
] |
74,439,490 | <p>I'm new to Haskell and I'm currently trying to solve a little problem.</p>
<p>I want to create a function <code>occurrences</code> that is defined as such:</p>
<pre><code>occurrences:: Int -> String -> [[(Char, Int)]]
</code></pre>
<p>The function accepts an Int and String as its parameters; where Int represen... | [
{
"answer_id": 74439474,
"author": "Noscere",
"author_id": 10728583,
"author_profile": "https://Stackoverflow.com/users/10728583",
"pm_score": -1,
"selected": false,
"text": "print(len(string.replace(',','').replace(' ','').replace('.','')))\n string"
},
{
"answer_id": 74453198,
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10412970/"
] |
74,439,491 | <p>I have a sample dataframe:</p>
<pre><code>| ID | SampleColumn1| SampleColumn2 | SampleColumn3 |
|:-- |:------------:| ------------ :| ------------ |
| 1 |sample Apple | sample Cherry |sample Lime |
| 2 |sample Cherry | sample lemon | sample Grape |
</code></pre>
<p>I would like to create a new DataFrame bas... | [
{
"answer_id": 74439910,
"author": "crx91",
"author_id": 11016395,
"author_profile": "https://Stackoverflow.com/users/11016395",
"pm_score": 0,
"selected": false,
"text": "fruits = ['Apple', 'Lime', 'Cherry']\ndef replace_fruit(string):\n for fruit in fruits:\n if fruit in stri... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10981685/"
] |
74,439,509 | <p>Here is my data</p>
<pre><code># Create the data frame.
mydataframe <- data.frame(
emp_id = c (100,101,100,200,150,200,600,100,150,600),
value = c(5,3,2,1,6,7,8,3,2,1)
)
# Print the data frame.
print(mydataframe)
</code></pre>
<p>I want to write a function to replace id's that occur multiple time ... | [
{
"answer_id": 74439640,
"author": "Nicolás Velásquez",
"author_id": 8391095,
"author_profile": "https://Stackoverflow.com/users/8391095",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\nmydataframe %>% \n left_join(x = . ,\n y = select( . , emp_id) %>% u... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12096959/"
] |
74,439,537 | <p>The program is supposed to take two inputted strings, concatenate them, then print. This is the code I have right now and I am wondering how to go about this. I'm still new, so bear with me. Thanks in advance.</p>
<pre><code>.586
.MODEL FLAT
.STACK 4096
INCLUDE io.h
.DATA
Inputstr BYTE 100 DUP (?)
Inputstr2 BYTE 1... | [
{
"answer_id": 74439640,
"author": "Nicolás Velásquez",
"author_id": 8391095,
"author_profile": "https://Stackoverflow.com/users/8391095",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\nmydataframe %>% \n left_join(x = . ,\n y = select( . , emp_id) %>% u... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19862077/"
] |
74,439,553 | <pre><code>my_name = "Ali"
my_age = 22
place_of_work = " TD Bank"
introduction = 'Hi, my name is ' + my_name + ' and I am' , my_age , 'years old.' + ' I work at' + place_of_work + '.'
print (introduction)
</code></pre>
<p>It prints with brackets and quotations. It works well when I change the var... | [
{
"answer_id": 74439640,
"author": "Nicolás Velásquez",
"author_id": 8391095,
"author_profile": "https://Stackoverflow.com/users/8391095",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\nmydataframe %>% \n left_join(x = . ,\n y = select( . , emp_id) %>% u... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505542/"
] |
74,439,556 | <p>I have a list of times and I want to make a list of lists where the elements of the larger list is a list where the first element is the time and the second element is the number of minutes from a set time. So for example, this is what I have</p>
<pre><code>['2022-04-08, 1:05 pm',
'2022-04-09, 4:05 pm',
'2022-04-1... | [
{
"answer_id": 74439640,
"author": "Nicolás Velásquez",
"author_id": 8391095,
"author_profile": "https://Stackoverflow.com/users/8391095",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\n\nmydataframe %>% \n left_join(x = . ,\n y = select( . , emp_id) %>% u... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494739/"
] |
74,439,568 | <p>I have been doing a bit of brushing up on my Linear Algebra basics and figured a fun way to do so would be with code. I am trying to create a function that performs Vector addition given two vectors of different lengths. For example if we have two vectors v1 = 0, 7, 3 and v2 = 1, 2, 4 our sum would be 1, 9, 7. My en... | [
{
"answer_id": 74439619,
"author": "sxu",
"author_id": 19694882,
"author_profile": "https://Stackoverflow.com/users/19694882",
"pm_score": 2,
"selected": false,
"text": "vector<int> sum;\nfor (int i=0; i < std::min(v1.size(),v2.size()); i++) {\n sum.push_back(v1[i] + v2[i]);\n}\n vect... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19002577/"
] |
74,439,569 | <p>I'm trying to build a quick and simple webpage to test an HTTP Requests service that I'm building, and Flask seems to be making it way harder than it should be. All I want is to display any incoming HTTP Requests on the page, and then return the received payload to the service that called the webpage.</p>
<p>Copying... | [
{
"answer_id": 74439619,
"author": "sxu",
"author_id": 19694882,
"author_profile": "https://Stackoverflow.com/users/19694882",
"pm_score": 2,
"selected": false,
"text": "vector<int> sum;\nfor (int i=0; i < std::min(v1.size(),v2.size()); i++) {\n sum.push_back(v1[i] + v2[i]);\n}\n vect... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8705841/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.