qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,408,366 | <p>Using this as a reference: <a href="https://airflow.apache.org/docs/apache-airflow/stable/howto/define_extra_link.html" rel="nofollow noreferrer">https://airflow.apache.org/docs/apache-airflow/stable/howto/define_extra_link.html</a></p>
<p>I can not get links to show in the UI. I have tried adding the link within th... | [
{
"answer_id": 74408483,
"author": "Denis",
"author_id": 14202100,
"author_profile": "https://Stackoverflow.com/users/14202100",
"pm_score": 0,
"selected": false,
"text": "modelBuilder.Entity<Customer> Entity<TEntity>(Action<EntityTypeBuilder<TEntity>>) Entity<TEntity>() entity EntityTyp... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14179104/"
] |
74,408,393 | <p>I am trying to figure out why my image won't add to the WordPress website I am creating. This course came with other images that will display but not the ones I add as a jpg file. I am not sure why it will add the other jpg images but not the ones I want. Here's my code:</p>
<pre><code><?php get_header(); ?>
&... | [
{
"answer_id": 74408536,
"author": "Krunal Bhimajiyani",
"author_id": 19587288,
"author_profile": "https://Stackoverflow.com/users/19587288",
"pm_score": 1,
"selected": false,
"text": "<div class=\"page-banner\">\n <div class=\"page-banner__bg-image\" style=\"background-image: url(<?p... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19265401/"
] |
74,408,396 | <p>I want to turn a number like 0.1235 to 1235.</p>
<p>i tried to do it through a loop by multiplying by 10 but i didnt know how to stop the loop.</p>
<pre><code>#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main (){
double a;
printf("a:");
scanf("%lf"... | [
{
"answer_id": 74408536,
"author": "Krunal Bhimajiyani",
"author_id": 19587288,
"author_profile": "https://Stackoverflow.com/users/19587288",
"pm_score": 1,
"selected": false,
"text": "<div class=\"page-banner\">\n <div class=\"page-banner__bg-image\" style=\"background-image: url(<?p... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20167462/"
] |
74,408,405 | <p>I have a c program that comes below:</p>
<pre><code>int A[size][size] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
int B[size][size] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
int C[size][size];
int multiplication()
{
//using array A, B and C here
return 0;
}
</code></pre>
<p>I also ... | [
{
"answer_id": 74408536,
"author": "Krunal Bhimajiyani",
"author_id": 19587288,
"author_profile": "https://Stackoverflow.com/users/19587288",
"pm_score": 1,
"selected": false,
"text": "<div class=\"page-banner\">\n <div class=\"page-banner__bg-image\" style=\"background-image: url(<?p... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9353594/"
] |
74,408,416 | <p>I'm really new to Ruby. I have the following scenario where - I need to check if a keyword is an array or not in ruby?</p>
<p>Something like this -</p>
<pre><code>if(value == array) {
do something
}
else
do something
</code></pre>
<p>How can I do so using the if condition in ruby?</p>
<p>Any teachings would be real... | [
{
"answer_id": 74408536,
"author": "Krunal Bhimajiyani",
"author_id": 19587288,
"author_profile": "https://Stackoverflow.com/users/19587288",
"pm_score": 1,
"selected": false,
"text": "<div class=\"page-banner\">\n <div class=\"page-banner__bg-image\" style=\"background-image: url(<?p... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400359/"
] |
74,408,424 | <p>I'm making an outlined button component and getting the button colors dynamically in hex type by the backend. Whatever color comes, the hover color should be one tone darker than the normal color. I used <code>filter: brightness(85%)</code> for button text color but I can't use it for border color. How can I dynamic... | [
{
"answer_id": 74408504,
"author": "K i",
"author_id": 11196771,
"author_profile": "https://Stackoverflow.com/users/11196771",
"pm_score": 3,
"selected": true,
"text": "border inset box-shadow button {\n border:0;\n outline: 0;\n padding: 7px 10px;\n color:white;\n background: #32aa... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14044506/"
] |
74,408,454 | <p>I am trying to create a java program which compares the stored string(meaning password stored) and another string to check password. and also trying to add a number of attempts like 3 in it. am almost done. but am still getting one small logical error. i tried so many changes and adding break statements to my knowle... | [
{
"answer_id": 74408504,
"author": "K i",
"author_id": 11196771,
"author_profile": "https://Stackoverflow.com/users/11196771",
"pm_score": 3,
"selected": true,
"text": "border inset box-shadow button {\n border:0;\n outline: 0;\n padding: 7px 10px;\n color:white;\n background: #32aa... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10288727/"
] |
74,408,469 | <p>Running our spring boot application takes 2-3 minutes to boot. Bulk of the time was spent on connecting to different servers via Spring Cloud Consul Discovery Client.</p>
<p>I'm looking for a way to cache service discovery in a separate application like in the following diagram:</p>
<pre><code>+---------------------... | [
{
"answer_id": 74408504,
"author": "K i",
"author_id": 11196771,
"author_profile": "https://Stackoverflow.com/users/11196771",
"pm_score": 3,
"selected": true,
"text": "border inset box-shadow button {\n border:0;\n outline: 0;\n padding: 7px 10px;\n color:white;\n background: #32aa... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4535957/"
] |
74,408,488 | <p>Hi everyone I am revisiting an older project that I haven't toyed with in quite some time.</p>
<p>I was trying out vue for the first time and attempted to create an calculator for archery (Kinetic energy/velocity/etc). Didnt want to do a full fledge vue app setup so i just used a cdn link. It was initially completel... | [
{
"answer_id": 74408504,
"author": "K i",
"author_id": 11196771,
"author_profile": "https://Stackoverflow.com/users/11196771",
"pm_score": 3,
"selected": true,
"text": "border inset box-shadow button {\n border:0;\n outline: 0;\n padding: 7px 10px;\n color:white;\n background: #32aa... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9168755/"
] |
74,408,501 | <p>I need to apply the same join i do in this code, but in another code i build it with Eloquent\Builder $query</p>
<p>The join I want is this:</p>
<pre><code>$afiliates = DB::table('ad_afiliado as af')
->join('af_promocion as promo', 'af.Clave', '=', 'promo.id_afiliado')
->select('af.logo_url', '... | [
{
"answer_id": 74408910,
"author": "N69S",
"author_id": 4369919,
"author_profile": "https://Stackoverflow.com/users/4369919",
"pm_score": 0,
"selected": false,
"text": "whereHas() $afiliates = AdAfiliado::query()\n ->where('Activo','=', 'S') \n ->where(function (... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20292715/"
] |
74,408,509 | <p>Pretty new to excel VBA and coding, I wanted to get some support with the following text.
I would like to have the following text split into columns.
Usually, the data is always in the same format being a TEXT: TEXT
Name: John Doe</p>
<p>Could someone help me understand how to begin splitting this text into columns?... | [
{
"answer_id": 74408910,
"author": "N69S",
"author_id": 4369919,
"author_profile": "https://Stackoverflow.com/users/4369919",
"pm_score": 0,
"selected": false,
"text": "whereHas() $afiliates = AdAfiliado::query()\n ->where('Activo','=', 'S') \n ->where(function (... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6053001/"
] |
74,408,527 | <p>I am trying to find a way to do the following:</p>
<p>Find the string "John" in column "Zone", then if the previous cell above it with a value (some rows are empty) in "Zone" column was the string "Four", replace that string with the word "Five".</p>
<p>I could do th... | [
{
"answer_id": 74409176,
"author": "alice_hooper",
"author_id": 20384402,
"author_profile": "https://Stackoverflow.com/users/20384402",
"pm_score": 0,
"selected": false,
"text": "test = filter(input, Zone != \"\")\nanswer <- test %>%\n mutate(Zone1 = if_else(lead(Zone, default = first(Z... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20384402/"
] |
74,408,557 | <p>I've spent the whole day trying to find a solution for showing the images in the template but I couldn't find any solution to my case.</p>
<p>This is my settings</p>
<pre><code>STATIC_URL = '/static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
STATIC_ROOT = os.path.join(BASE_DIR, 'static')... | [
{
"answer_id": 74408619,
"author": "saro",
"author_id": 18366396,
"author_profile": "https://Stackoverflow.com/users/18366396",
"pm_score": 0,
"selected": false,
"text": "urlpatterns = [\n Your urls\n] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n"
},
{
"an... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10987656/"
] |
74,408,612 | <p>I am trying to change the text in a column by removing a word in all rows.</p>
<p>For example, if a row contained "second row", I want to replace it with "second". Here is an example dataset</p>
<pre><code>df <- data.frame(row_num = c(1,2,3,4,5),
text_long = c("first row&... | [
{
"answer_id": 74408619,
"author": "saro",
"author_id": 18366396,
"author_profile": "https://Stackoverflow.com/users/18366396",
"pm_score": 0,
"selected": false,
"text": "urlpatterns = [\n Your urls\n] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n"
},
{
"an... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1112097/"
] |
74,408,661 | <p>First of all I am new to Laravel framework, so please bear with me. I am creating an e-commerce website and created a registration page. The problem is whenever I fill the registration form and press register button the page will refresh but the data I filled will not be updated in MySQL database.</p>
<p>the registr... | [
{
"answer_id": 74408619,
"author": "saro",
"author_id": 18366396,
"author_profile": "https://Stackoverflow.com/users/18366396",
"pm_score": 0,
"selected": false,
"text": "urlpatterns = [\n Your urls\n] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n"
},
{
"an... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20254214/"
] |
74,408,677 | <p>I am trying to get the user's name from a form input and display it on the page in the form of a greeting "Hello (user)".
I have already got the solution to do it in 2 separate HTML files but I need to do it all in one file using query string and onload options.</p>
<p>Thanks for your help!</p>
<p><strong>... | [
{
"answer_id": 74408619,
"author": "saro",
"author_id": 18366396,
"author_profile": "https://Stackoverflow.com/users/18366396",
"pm_score": 0,
"selected": false,
"text": "urlpatterns = [\n Your urls\n] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n"
},
{
"an... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481542/"
] |
74,408,699 | <p>I currently have a list with the following filenames
[file1, file2]
I want to read each files by iterating through the list and read the contents of the file into dictionary</p>
<p>So I am trying to create dictionary with key and value as :</p>
<p>thisisdict={ "file1" : "abcdefgh",
"file2&qu... | [
{
"answer_id": 74408619,
"author": "saro",
"author_id": 18366396,
"author_profile": "https://Stackoverflow.com/users/18366396",
"pm_score": 0,
"selected": false,
"text": "urlpatterns = [\n Your urls\n] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)\n"
},
{
"an... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20443396/"
] |
74,408,735 | <p>I'm looking for a way to redirect any url that start with <code>/D/</code> to the same URL with lowercased <code>/d/</code>.</p>
<p><code>/D/<anything_including_url_params></code></p>
<p>to</p>
<p><code>/d/<anything_including_url_params></code></p>
<p>I literally only want to redirect urls that start wit... | [
{
"answer_id": 74408800,
"author": "Swift",
"author_id": 8874154,
"author_profile": "https://Stackoverflow.com/users/8874154",
"pm_score": 0,
"selected": false,
"text": "/D/ /d/"
},
{
"answer_id": 74415898,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_pro... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2607447/"
] |
74,408,773 | <p>I'm able to call function from DLL created in C (.c file), but i can't do it from DLL created in C++ (.cpp file). I want to find out why it doesn't work in .cpp file.</p>
<p>I'm trying to call function <code>printword()</code> from a simple DLL, created with Visual Studio 2022:</p>
<pre><code>// FILE: dllmain.cpp
B... | [
{
"answer_id": 74408800,
"author": "Swift",
"author_id": 8874154,
"author_profile": "https://Stackoverflow.com/users/8874154",
"pm_score": 0,
"selected": false,
"text": "/D/ /d/"
},
{
"answer_id": 74415898,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_pro... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19259079/"
] |
74,408,778 | <p>i have partial form on my rails project.
this form is for nested route(post and comment), and this form only brings me to make new data.
the url to edit page works well, but when i get into that edit page, form tag was written like -> posts/1/comment (method: post), which makes me can not update data.
my expect... | [
{
"answer_id": 74410730,
"author": "Alter Lagos",
"author_id": 895789,
"author_profile": "https://Stackoverflow.com/users/895789",
"pm_score": 2,
"selected": true,
"text": "<%= form_with model: [post, post.comments.build] do |f| %>\n post.comments.build <% post.comments.each do |comment|... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20142639/"
] |
74,408,817 | <p>I have been trying to understand why this is not working properly for the past five hours.</p>
<p>The question explicitly asks for the use of switch() and no if-else (or of the likes) to count the number of words, lines, and characters in typed up text. And exit the program with Ctrl+D or Ctrl+Z.</p>
<p>Here, I deco... | [
{
"answer_id": 74410730,
"author": "Alter Lagos",
"author_id": 895789,
"author_profile": "https://Stackoverflow.com/users/895789",
"pm_score": 2,
"selected": true,
"text": "<%= form_with model: [post, post.comments.build] do |f| %>\n post.comments.build <% post.comments.each do |comment|... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480864/"
] |
74,408,864 | <p>I have this Body Component set:</p>
<pre><code>import 'bootstrap/dist/css/bootstrap.css';
import {Container} from "react-bootstrap";
import Navigation from './Navigation'
import axios from 'axios'
import {useState,useEffect} from "react";
function Body() {
const [searchItems, setSearchItems... | [
{
"answer_id": 74409098,
"author": "Nijat Mursali",
"author_id": 10489887,
"author_profile": "https://Stackoverflow.com/users/10489887",
"pm_score": 2,
"selected": true,
"text": "Body drill Body import \"bootstrap/dist/css/bootstrap.css\";\nimport { Container } from \"react-bootstrap\";\... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2823842/"
] |
74,408,874 | <p>I want to do two things :</p>
<p><strong>1)</strong></p>
<pre><code>char *myStr = "2 1 3 2 5 2 5 4 6 1 6 2 7 1 7 3 7 4 8 1 ";
</code></pre>
<p>The goal is to have my string to be of this form</p>
<pre><code>2 1
3 2
5 2
...
...
</code></pre>
<p>And so on until the end of the string.</p>
<p><strong>2)</stro... | [
{
"answer_id": 74409426,
"author": "John Bayko",
"author_id": 11846953,
"author_profile": "https://Stackoverflow.com/users/11846953",
"pm_score": 1,
"selected": false,
"text": "char * myStrPtr = myStr;\n\nint myArr[NUM_PAIRS][2];\nint myArrIdx = 0;\n char * getInt(char * myStrPtr, int * ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19176243/"
] |
74,408,887 | <p>consider a library module <code>ctx</code></p>
<pre><code>xquery version "3.1";
module namespace ctx="module/ctx";
declare function ctx:resolve (
$ctx as function(xs:string) as xs:QName
) as function(xs:string, xs:integer) as function(*)? {
function ($name as xs:string, $arity as xs:in... | [
{
"answer_id": 74409036,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_profile": "https://Stackoverflow.com/users/36305",
"pm_score": 2,
"selected": false,
"text": "ctx as <Type> ctx:resolve() as function(*)? xquery version \"3.1\";\n\nmodule namespace ctx=\"module/ctx\"; \... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/426832/"
] |
74,408,906 | <p>I noticed that if I try to use EOMONTH on more than one cell at a time on for instance:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th></th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>1/1/2022</td>
</tr>
<tr>
<td>2</td>
<td>1/2/2022</td>
</tr>
<tr>
<td>3</td>
<td>1/3/2022</td... | [
{
"answer_id": 74409107,
"author": "lisboakotor",
"author_id": 16454771,
"author_profile": "https://Stackoverflow.com/users/16454771",
"pm_score": 2,
"selected": true,
"text": "=EOMONTH(A1:A13,0) =EOMONTH(TRANSPOSE(TRANSPOSE(A1:A13)),0) TRANSPOSE EOMONTH =EOMONTH(UNIQUE(A1:A13),0)"
},
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12634230/"
] |
74,408,925 | <p>I'm trying to make a function that will delete "negative" responses in a magic 8-ball application. I'm trying to delete any elements of the response array that have the word "no" in them but I don't want to delete responses that include "now" or "not".</p>
<p><div class="snipp... | [
{
"answer_id": 74408962,
"author": "LeoDog896",
"author_id": 7589775,
"author_profile": "https://Stackoverflow.com/users/7589775",
"pm_score": 1,
"selected": false,
"text": "words const responses = [\n \"It is certain\",\n \"It is decidedly so\",\n \"Without a doubt\",\n \"Yes, defin... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,408,926 | <p>While running a query that selects a Location, date, and visitIDs, I need to be able to select a new combined location name (eg. "LOC3+4") which includes all the rows from locations "LOC3" and "LOC4". This new dataset need to have <strong>its own location name</strong> so that I can gro... | [
{
"answer_id": 74408962,
"author": "LeoDog896",
"author_id": 7589775,
"author_profile": "https://Stackoverflow.com/users/7589775",
"pm_score": 1,
"selected": false,
"text": "words const responses = [\n \"It is certain\",\n \"It is decidedly so\",\n \"Without a doubt\",\n \"Yes, defin... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3412156/"
] |
74,408,952 | <p>I am running tests using <code>rails test:models</code> and got this error (though the tests still run)</p>
<pre><code>ActiveRecord::NoDatabaseError: We could not find your database: postgres. Which can be found in the database configuration file located at config/database.yml.
</code></pre>
<p>A database called <co... | [
{
"answer_id": 74411736,
"author": "Lee Drum",
"author_id": 17457026,
"author_profile": "https://Stackoverflow.com/users/17457026",
"pm_score": 1,
"selected": false,
"text": "database1_test sudo -u postgres psql \\l database1_test cmd RAILS_ENV=test rails db:prepare\n"
},
{
"ans... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9356904/"
] |
74,408,956 | <p>Within an Azure Data Factory Pipeline I am attempting to remove an empty directory.</p>
<p>The files within the directory were removed by a previous pipelines' iterative operation thus leaving an empty directory to be removed.</p>
<p>The directory is a sub-folder: The hierarchy being:</p>
<p>container / top-level-fo... | [
{
"answer_id": 74411736,
"author": "Lee Drum",
"author_id": 17457026,
"author_profile": "https://Stackoverflow.com/users/17457026",
"pm_score": 1,
"selected": false,
"text": "database1_test sudo -u postgres psql \\l database1_test cmd RAILS_ENV=test rails db:prepare\n"
},
{
"ans... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3609480/"
] |
74,409,033 | <p>I'm new to pandas (version 1.1.5) and have tried <code>str.split()</code> and <code>str.extract()</code> to split column <code>POS</code> of numerical values with no success. My dataframe is about 3000 lines and is structured like this (note <code>_</code> and <code>-</code> delimiters in subset):</p>
<pre><code>df.... | [
{
"answer_id": 74409060,
"author": "PaulS",
"author_id": 11564487,
"author_profile": "https://Stackoverflow.com/users/11564487",
"pm_score": 1,
"selected": true,
"text": "_ - '' df['POS'] = df['POS'].str.replace(r'[-_]\\d+', '')\n CHROM POS REF ALT\n0 7 105121514 C T\n1... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4400289/"
] |
74,409,058 | <p>I found the following example to walk myself through a part of SpringBoot: <a href="https://dev.to/reytech-lesson/spring-boot-hello-world-example-by-using-spring-initilizr-b7o" rel="nofollow noreferrer">found here</a></p>
<p>The example works without an error, but I am not able to wrap my head around why the addAttr... | [
{
"answer_id": 74409060,
"author": "PaulS",
"author_id": 11564487,
"author_profile": "https://Stackoverflow.com/users/11564487",
"pm_score": 1,
"selected": true,
"text": "_ - '' df['POS'] = df['POS'].str.replace(r'[-_]\\d+', '')\n CHROM POS REF ALT\n0 7 105121514 C T\n1... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6254385/"
] |
74,409,063 | <p>My code is setup like this:</p>
<pre><code> private void TrySpawningAnAgent(GameObject startStructure, GameObject endStructure){
if (startStructure != null && endStructure != null){
houses=GameObject.FindGameObjectsWithTag("Houses");
specials = GameObject.FindGameObj... | [
{
"answer_id": 74409060,
"author": "PaulS",
"author_id": 11564487,
"author_profile": "https://Stackoverflow.com/users/11564487",
"pm_score": 1,
"selected": true,
"text": "_ - '' df['POS'] = df['POS'].str.replace(r'[-_]\\d+', '')\n CHROM POS REF ALT\n0 7 105121514 C T\n1... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15415023/"
] |
74,409,074 | <p>I created a react product list using state and I also created a filter to filter the product.
My problem is when I clicked on the category button the second time my page disappear.</p>
<p>I tried not to use state to store data in memory but did not work. A link to my sandbox code is here.</p>
<p><a href="https://cod... | [
{
"answer_id": 74409060,
"author": "PaulS",
"author_id": 11564487,
"author_profile": "https://Stackoverflow.com/users/11564487",
"pm_score": 1,
"selected": true,
"text": "_ - '' df['POS'] = df['POS'].str.replace(r'[-_]\\d+', '')\n CHROM POS REF ALT\n0 7 105121514 C T\n1... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18580694/"
] |
74,409,116 | <p>I am trying to use generic programming in Haskell and need to sort an array of numbers but for some reason when I run the code, I receive an error stating "No instance for (Fractional Nums) In the expression: 645.41...." Every time I look at my code, I think it makes sense, but I'm not sure why it does not... | [
{
"answer_id": 74409171,
"author": "Robin Zigmond",
"author_id": 8475054,
"author_profile": "https://Stackoverflow.com/users/8475054",
"pm_score": 1,
"selected": false,
"text": "arr Double sortNums Nums print(sortNums arr) print (sortNums (map Nums arr)) Nums 645.41 Fractional sortNums N... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8768617/"
] |
74,409,125 | <p>I'm trying to correct a specific customer type in our database from a character customer type of "05" to a character customer type of "09". I need to iterate through the database and find a customer name of ex."Gas Station 123" and then change the customer type to a '09' for each record... | [
{
"answer_id": 74411663,
"author": "Dam",
"author_id": 939484,
"author_profile": "https://Stackoverflow.com/users/939484",
"pm_score": 3,
"selected": true,
"text": "%SCAN(search argument : source string {: start position {: length}})\n If %scan('GAS STATION 123':BL2LN1) > 0;\n"
},
{
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11914714/"
] |
74,409,133 | <p>I am using Mapbox GL JS to capture frame by frame video of the animation of a geoJson (similar to what is described here: <a href="https://docs.mapbox.com/mapbox-gl-js/example/animate-a-line/" rel="nofollow noreferrer">https://docs.mapbox.com/mapbox-gl-js/example/animate-a-line/</a>).</p>
<p>The strategy for encodin... | [
{
"answer_id": 74411663,
"author": "Dam",
"author_id": 939484,
"author_profile": "https://Stackoverflow.com/users/939484",
"pm_score": 3,
"selected": true,
"text": "%SCAN(search argument : source string {: start position {: length}})\n If %scan('GAS STATION 123':BL2LN1) > 0;\n"
},
{
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1193105/"
] |
74,409,162 | <p>Somehow I got operator looping till I get correct input. When i try to put num1 or num2 in "if" statement, It says that I cannot convert "int" to "boolean". Please help</p>
<pre class="lang-java prettyprint-override"><code>public class main {
public static void main(String[] args) {
... | [
{
"answer_id": 74411663,
"author": "Dam",
"author_id": 939484,
"author_profile": "https://Stackoverflow.com/users/939484",
"pm_score": 3,
"selected": true,
"text": "%SCAN(search argument : source string {: start position {: length}})\n If %scan('GAS STATION 123':BL2LN1) > 0;\n"
},
{
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481566/"
] |
74,409,199 | <p>I'm iterating 4 million times (for a project). This is taking forever to do. I was wondering how I can go faster.</p>
<pre><code>numbers = [0,1]
evenNumbers = []
y = 0
l = 0
for x in range (1,4000000):
l = numbers[x-1] + numbers[x]
numbers.append(l)
for k in numbers:
if k % 2 ==0:
evenNumbers.append(... | [
{
"answer_id": 74409249,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 2,
"selected": false,
"text": "m, n = 0, 1\ny = 0\nfor _ in range(1, 4000000):\n m, n = n, m + n\n if n % 2 == 0:\n y += n\n\nprint(y)... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14024430/"
] |
74,409,202 | <p>My table has 650M rows (according to a fast but decently precise estimate from a query I found <a href="https://stackoverflow.com/a/7945274/470749">here</a>).</p>
<p>It has a text column called <code>receiver_account_id</code>, and I need to be able to search those records like: <code>r.receiver_account_id LIKE '%ot... | [
{
"answer_id": 74409249,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 2,
"selected": false,
"text": "m, n = 0, 1\ny = 0\nfor _ in range(1, 4000000):\n m, n = n, m + n\n if n % 2 == 0:\n y += n\n\nprint(y)... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470749/"
] |
74,409,209 | <p>I am trying to write a Query in Google Sheets using the following formula:</p>
<p><code>=QUERY(Input!A2:AD,"SELECT Col1, Col4, Col5, Col6, Col7, Col12, Col13 WHERE Col12 > 200 AND Col30 = '"&B3&"' ORDER BY Col13 DESC LIMIT 10")</code></p>
<p>I have also tried:</p>
<p><code>=QUERY(Input... | [
{
"answer_id": 74409369,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=QUERY({Input!A2:AD}, \n \"select Col1,Col4,Col5,Col6,Col7,Col12,Col13 \n where Col12 > 200 \n and Col30 = '\"&TO... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481875/"
] |
74,409,230 | <p>I want to write some symbols in the console, but I have troubles with the output of the <code>\</code> character.</p>
<p>I know it is reserved by C for formatting inside <code>printf()</code>, but I really want to output it.</p>
<pre><code>printf(" __ __ __ __ ____ \n");
printf(" ||\ /|| || ... | [
{
"answer_id": 74409233,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 2,
"selected": true,
"text": "'\\n' \\\\ \\"
},
{
"answer_id": 74409251,
"author": "pm100",
"author_id": 173397,
"author_profile"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481926/"
] |
74,409,246 | <p>Im trying to get my Card components to take the full width and height of my 4x4 Tailwindcss grid, right now they only take about 1/4 of the full width even with w-max.</p>
<p>Here's my code:</p>
<pre><code>function Card({ title, description }: Props) {
return (
<div className="border border-zinc-700 ho... | [
{
"answer_id": 74409233,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 2,
"selected": true,
"text": "'\\n' \\\\ \\"
},
{
"answer_id": 74409251,
"author": "pm100",
"author_id": 173397,
"author_profile"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15828620/"
] |
74,409,254 | <p>I have this JSON an I want to get just license_key.</p>
<pre><code>{"data": {"enabled": true,"product_link": "example","license_key": "BS7X4-55UH7-ZG2EV-ME2N5","buyer_email": "example@gmail.com","uses": 0,"date": &quo... | [
{
"answer_id": 74409233,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 2,
"selected": true,
"text": "'\\n' \\\\ \\"
},
{
"answer_id": 74409251,
"author": "pm100",
"author_id": 173397,
"author_profile"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20330453/"
] |
74,409,286 | <p>Pretty rusty at tcl so bear with me if the solution to this questions is a fairly simple one.</p>
<p>I have a .txt file that contains sites and addresses with one space between them.
It looks something like this:</p>
<pre><code>site1 address1
site2 address2
site3 address3
.
.
.
.
</code></pre>
<p>I want to read the ... | [
{
"answer_id": 74409233,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 2,
"selected": true,
"text": "'\\n' \\\\ \\"
},
{
"answer_id": 74409251,
"author": "pm100",
"author_id": 173397,
"author_profile"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10226550/"
] |
74,409,289 | <p>I am trying to replace a CSS file with another one on a page by toggling between the day/night themes using an eventlistener. I tried to do this in numerous ways, but none of them worked completely.</p>
<p>My default theme is dark and I can only manage to change it to light theme using my code, not back to dark agai... | [
{
"answer_id": 74409233,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 2,
"selected": true,
"text": "'\\n' \\\\ \\"
},
{
"answer_id": 74409251,
"author": "pm100",
"author_id": 173397,
"author_profile"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19251767/"
] |
74,409,291 | <p>How do I use the Loop Summing Pattern to calculate and print the total score of all the games in this list of dictionaries? The Sum function is not allowed, nor is importing functions:</p>
<pre><code>games = [
{"Name": "UD", "Score": 27, "Away?": False},
{"Name&qu... | [
{
"answer_id": 74409233,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 2,
"selected": true,
"text": "'\\n' \\\\ \\"
},
{
"answer_id": 74409251,
"author": "pm100",
"author_id": 173397,
"author_profile"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481928/"
] |
74,409,300 | <p>so im trying to display the fields name into a html page i used this code to display it but sometimes the result becomes undefined not sure why this is happening the columnNames will return to the html page.</p>
<pre><code>var dataset = mongoose.connection.db.collection(dsName)
populations = await mongoose.connect... | [
{
"answer_id": 74409233,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 2,
"selected": true,
"text": "'\\n' \\\\ \\"
},
{
"answer_id": 74409251,
"author": "pm100",
"author_id": 173397,
"author_profile"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74409300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20200597/"
] |
74,409,375 | <p>I tried modifying the array "newTab" but without use <em>tab.copy()</em> but it always modifies the original array.</p>
<pre><code>tab = [[1]*2]*3
newTab = [None] * len(tab)
for i in range(0, len(tab)):
newTab[i] = tab[i]
newTab[0][0] = 2
print(tab)
[[2, 1], [2, 1], [2, 1]]
print(newTab)
[[2, 1], [2, ... | [
{
"answer_id": 74409446,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 1,
"selected": false,
"text": "copy import copy\n\ntab = [[1] * 2] * 3\nnewTab = [None] * len(tab)\nfor i in range(len(tab)):\n newTab[i... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20153722/"
] |
74,409,378 | <p>I'm currently programming a discord bot in module type, and the problem with the reload command is that the import doesn't notice the file changes.</p>
<p>Folder structure (only what relevant)</p>
<pre><code>application
├── src
│ ├── handlers
│ │ └── commands.js
│ └── commands
│ └── reload.js
</code></... | [
{
"answer_id": 74409432,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 0,
"selected": false,
"text": "loadCommands import { readdirSync } from 'fs';\n\nasync function reloadCommands(client)\n{\n const comman... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17245939/"
] |
74,409,420 | <p>I have this code where I want the bot to reply to a command, in the console it says it has received the message but does not reply.</p>
<pre><code>client.on('message', msg =>
{
console.log("Message recieved.")
if (msg.content === 'ping')
{
msg.reply("pong")
... | [
{
"answer_id": 74409698,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 1,
"selected": false,
"text": "client.on('message', message => {\n if (message.content === 'ping') {\n message.reply('pong');\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482039/"
] |
74,409,441 | <p>I want to write a program to find the position of letter <code>e</code> in a sentence and print the output (indices) as a list.</p>
<p>This is my code,</p>
<pre><code>def find_position(x):
n=len(x)
for test in range(0,n):
if x[test]=="e":
b=test
return b
text="Helloe"
ans=f... | [
{
"answer_id": 74409487,
"author": "Swifty",
"author_id": 20267366,
"author_profile": "https://Stackoverflow.com/users/20267366",
"pm_score": 0,
"selected": false,
"text": " def find_position(x):\n pos = []\n n=len(x)\n for test in range(0,n):\n if x[test]==\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482099/"
] |
74,409,442 | <p>So I like to use ruby <code>inspect</code> for debugging, however I have a class that have an array that have 6000+ elements and whenever I <code>puts obj.inspect</code> the array clutters the entire screen. Is there any way to make the array attribute hidden from inspect?</p>
<pre class="lang-rb prettyprint-overrid... | [
{
"answer_id": 74409663,
"author": "mechnicov",
"author_id": 10608621,
"author_profile": "https://Stackoverflow.com/users/10608621",
"pm_score": 2,
"selected": false,
"text": "class Test\n def initialize\n @x = 1\n @array = [1, 2, 3, 4, 5, 6, 7, 8, 9]\n end\n\n def myinspect\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11107859/"
] |
74,409,448 | <p>after learning javascript, I started to learn React and I'm not quite sure how DOM manipulation works in React, for example, I want to change the background colour in React, is it similar to Javascript or it's totally something else?</p>
<pre><code>
const onClick = () =>{
document.body.style.backgroundC... | [
{
"answer_id": 74409883,
"author": "Aleksandar",
"author_id": 12737879,
"author_profile": "https://Stackoverflow.com/users/12737879",
"pm_score": 2,
"selected": true,
"text": "null ...\n const selectText = document.getElementById(\"testDOM\");\n const faultyFunction = () => {\n sele... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14552086/"
] |
74,409,456 | <p>So I have an app deployed with docker but I'm tired to delete and rebuild the image everytime so i used wrote a script to do everything for me:</p>
<pre><code>#!/usr/bin/env sh
docker-compose ps # lists all services (id, name)
docker-compose stop dee506ab283a #this will stop only the selected container
docker-compos... | [
{
"answer_id": 74409883,
"author": "Aleksandar",
"author_id": 12737879,
"author_profile": "https://Stackoverflow.com/users/12737879",
"pm_score": 2,
"selected": true,
"text": "null ...\n const selectText = document.getElementById(\"testDOM\");\n const faultyFunction = () => {\n sele... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17583130/"
] |
74,409,471 | <p>I have one data frame with aircraft types, speed and range.</p>
<pre><code>Aircraft <- data.frame(type=c("X","Y","Z"),
Range=c(100,200,300),
Speed=c(50,60,70))
Aircraft
</code></pre>
<p>and a second long data frame with a list of destinations ... | [
{
"answer_id": 74409557,
"author": "SALAR",
"author_id": 12517976,
"author_profile": "https://Stackoverflow.com/users/12517976",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nDestination<-mutate(Destination\n ,TimeX=Distance/50\n ,TimeY=Distance... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482025/"
] |
74,409,481 | <p>I am new to android. I implemented a GIF in my activity.</p>
<p>I found a way to make it loop only once. So far everything is fine but I would like to display the image of this gif at the end of the animation of this one, this time in image and not in gif. Basically I would like the gif to loop once and then become ... | [
{
"answer_id": 74409557,
"author": "SALAR",
"author_id": 12517976,
"author_profile": "https://Stackoverflow.com/users/12517976",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nDestination<-mutate(Destination\n ,TimeX=Distance/50\n ,TimeY=Distance... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20325819/"
] |
74,409,510 | <p>Hi How can we control the line space? It seems we can only adjust font</p>
<p>For example, how can I make 'my name' 'is' closer to each other without changing the font?</p>
<pre><code>import PySimpleGUI as sg
layout = [
[sg.pin(sg.T('Hello'))],
[sg.pin(sg.T('my name'))],
[sg.pin(sg.T('is'))],
[sg.pin... | [
{
"answer_id": 74409557,
"author": "SALAR",
"author_id": 12517976,
"author_profile": "https://Stackoverflow.com/users/12517976",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nDestination<-mutate(Destination\n ,TimeX=Distance/50\n ,TimeY=Distance... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20043803/"
] |
74,409,512 | <p>i m using the an csv file of the following format:</p>
<pre><code>"LatD", "LatM", "LatS", "NS", "LonD", "LonM", "LonS", "EW", "City", "State"
41, 5, 59, "N", 80, 39, 0, "W", "... | [
{
"answer_id": 74409567,
"author": "KEcoding",
"author_id": 14055405,
"author_profile": "https://Stackoverflow.com/users/14055405",
"pm_score": 0,
"selected": false,
"text": "cities[\"City\"].str.contains('Y').any()\n"
},
{
"answer_id": 74409584,
"author": "Andrej Kesely",
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5449244/"
] |
74,409,520 | <p>I have the following list -</p>
<pre><code> pts1_list = [
[224.95256042, 321.64755249],
[280.72879028, 296.15835571],
[302.34194946, 364.82437134],
[434.68283081, 402.86990356],
[244.64321899, 308.50286865],
[488.62979126, 216.26953125],
[214.77470398, 430.75869751],
[299.20846558, 31... | [
{
"answer_id": 74409567,
"author": "KEcoding",
"author_id": 14055405,
"author_profile": "https://Stackoverflow.com/users/14055405",
"pm_score": 0,
"selected": false,
"text": "cities[\"City\"].str.contains('Y').any()\n"
},
{
"answer_id": 74409584,
"author": "Andrej Kesely",
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10083150/"
] |
74,409,526 | <p>Question: Write JFrame that when you press the "start" button draws, and keep drawing random colored and sized filled ovals until the "stop" button is pressed.
Problem: loop inside the actionPerformed method() Doesn't Work.
The Code:</p>
<pre><code>import java.awt.*;
import java.awt.event.*;
imp... | [
{
"answer_id": 74409810,
"author": "MadProgrammer",
"author_id": 992484,
"author_profile": "https://Stackoverflow.com/users/992484",
"pm_score": 1,
"selected": false,
"text": "Timer paint JFrame paint BorderLayout CardLayout import java.awt.BorderLayout;\nimport java.awt.CardLayout;\nimp... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17617579/"
] |
74,409,566 | <p>I'm trying to write a regex that will find any CRLF in python.<br />
I am able to successfully open the file and use newlines to determine what newlines its using CRLF or LF. My numerous regex attempts have failed</p>
<pre><code>with open('test.txt', 'rU') as f:
text = f.read()
print repr(f.newlines)
regex... | [
{
"answer_id": 74409589,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 2,
"selected": true,
"text": "re \\r \\n import re\n\nwith open(\"test.txt\", \"rU\") as f:\n for line in f:\n if re.search(r\"\\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/814830/"
] |
74,409,594 | <p>I am very sorry for the confusing title, I did not know how else to phrase the question.</p>
<p>Let's say I have a class, <code>A</code>. It is described as shown:</p>
<pre><code>class A:
def __init__(self, argument):
self.value = argument
def submethod(self, argumentThatWillBeAClass):
print... | [
{
"answer_id": 74409752,
"author": "12944qwerty",
"author_id": 11177720,
"author_profile": "https://Stackoverflow.com/users/11177720",
"pm_score": -1,
"selected": false,
"text": "class B class A class A:\n def __init__(self, argument):\n self.value = argument\n\n def submeth... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17064640/"
] |
74,409,625 | <p>Does anyone know the use cases for the trace_block method by Openethereum?</p>
<p>Here's the link to it:</p>
<p><a href="https://docs.alchemy.com/reference/trace-block" rel="nofollow noreferrer">https://docs.alchemy.com/reference/trace-block</a></p>
<p>I cannot find any use cases listed for this method anywhere. Eve... | [
{
"answer_id": 74409833,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 1,
"selected": false,
"text": "curl -X POST --data '{\"jsonrpc\":\"2.0\",\"method\":\"trace_block\",\"params\":[\"0x1\"],\"id\":1}' https:/... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17658136/"
] |
74,409,655 | <p>I put together the following pen to illustrate my problem: <a href="https://codepen.io/ganakim/pen/jOKmByM" rel="nofollow noreferrer">https://codepen.io/ganakim/pen/jOKmByM</a></p>
<p>For some reason, even though column 1 has <code>overflow-y: auto</code> it doesn't scroll, and instead forces the footer outside the ... | [
{
"answer_id": 74556981,
"author": "Dakshank",
"author_id": 4940513,
"author_profile": "https://Stackoverflow.com/users/4940513",
"pm_score": 0,
"selected": false,
"text": "overflow: hidden min-height: 0 .wrapper{\n height: 200px;\n background-color: cornflowerblue\n}\n\n.card{\n max-... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4061471/"
] |
74,409,678 | <p>In the past I used to start a new thread for sorting, and abort it when the user clicked 'Cancel', and it worked flawlessly on virtually all .NET Framework versions.
But since the introduction of .NET Core and .NET 5+, a call to <code>Thread.Abort()</code> throws <code>PlatformNotSupportedException</code>.</p>
<p>So... | [
{
"answer_id": 74410274,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": -1,
"selected": false,
"text": "class ByteComparer : IComparer<byte>\n{\n private bool _cancel;\n\n public int Compare(byte x, byte y)\n {\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191727/"
] |
74,409,679 | <p>I am working on working on forming a logic:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>user_id</th>
<th>city</th>
<th>county</th>
<th>state</th>
<th>country</th>
<th>region</th>
<th>is_perm</th>
</tr>
</thead>
<tbody>
<tr>
<td>First</td>
<td>Oakland</td>
<td>Alameda</td>
<td>Califor... | [
{
"answer_id": 74410274,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": -1,
"selected": false,
"text": "class ByteComparer : IComparer<byte>\n{\n private bool _cancel;\n\n public int Compare(byte x, byte y)\n {\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3055164/"
] |
74,409,684 | <p>I am asking a user for four ranges of floating point numbers. I want to check that there is no overlap between them.</p>
<p>If the ranges were integer ranges it seems that I could either create sets or use Swift Range (or NSRange) and check for intersections.</p>
<p>Is there a way to figure this out if the ranges wh... | [
{
"answer_id": 74410274,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": -1,
"selected": false,
"text": "class ByteComparer : IComparer<byte>\n{\n private bool _cancel;\n\n public int Compare(byte x, byte y)\n {\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13376883/"
] |
74,409,716 | <p>I have been going at the endlessly all semester. I was able to add project from my prior year in school but have been unable to push and new projects to my repository.</p>
<p>I have tried deleting my key credentials via my key access chain.
I have created a new GitHub account and tried using that one.
I have deleted... | [
{
"answer_id": 74410274,
"author": "shingo",
"author_id": 6196568,
"author_profile": "https://Stackoverflow.com/users/6196568",
"pm_score": -1,
"selected": false,
"text": "class ByteComparer : IComparer<byte>\n{\n private bool _cancel;\n\n public int Compare(byte x, byte y)\n {\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20258926/"
] |
74,409,754 | <p>I'm trying to make a simple formula for multiple running totals.</p>
<p><img src="https://i.stack.imgur.com/liVQt.png" alt="Sample:" /></p>
<p>Basically, it's for recording transactions for different accounts, showing the running total of that particular account for each row. So, it's impossible to use SCAN+LAMBDA f... | [
{
"answer_id": 74410259,
"author": "Max R",
"author_id": 19662289,
"author_profile": "https://Stackoverflow.com/users/19662289",
"pm_score": 1,
"selected": false,
"text": "=SUMIF( B$2:B2, B2, C$2:C2 )"
},
{
"answer_id": 74416403,
"author": "P.b",
"author_id": 12634230,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4658181/"
] |
74,409,759 | <p>I've been working on a project where my goal is to have a chrome extension that looks for words on a page, then displays a popup with a message that depends on whether it finds that word (or words). I'm not very experienced in JavaScript + HTML, but I've been trying my best. At the moment, the extension does have a ... | [
{
"answer_id": 74410259,
"author": "Max R",
"author_id": 19662289,
"author_profile": "https://Stackoverflow.com/users/19662289",
"pm_score": 1,
"selected": false,
"text": "=SUMIF( B$2:B2, B2, C$2:C2 )"
},
{
"answer_id": 74416403,
"author": "P.b",
"author_id": 12634230,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482324/"
] |
74,409,780 | <p>I have an Outlook addin that utilizes the <strong>appendOnSendAsync</strong> function.</p>
<pre><code> Office.context.mailbox.item.body.appendOnSendAsync(
"<img src='xxxx' />",
{
coercionType: Office.CoercionType.Html
},
function(asyncResult) {
conso... | [
{
"answer_id": 74410259,
"author": "Max R",
"author_id": 19662289,
"author_profile": "https://Stackoverflow.com/users/19662289",
"pm_score": 1,
"selected": false,
"text": "=SUMIF( B$2:B2, B2, C$2:C2 )"
},
{
"answer_id": 74416403,
"author": "P.b",
"author_id": 12634230,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/331165/"
] |
74,409,784 | <p>I have a dataframe in pyspark that looks like this</p>
<pre><code>+------------------+--------------------+
| Community_Area| Date|
+------------------+--------------------+
| New City|09/05/2015 01:30:...|
| Austin|09/04/2015 11:30:...|
| New City|09/05/2015 12:01:...|... | [
{
"answer_id": 74410259,
"author": "Max R",
"author_id": 19662289,
"author_profile": "https://Stackoverflow.com/users/19662289",
"pm_score": 1,
"selected": false,
"text": "=SUMIF( B$2:B2, B2, C$2:C2 )"
},
{
"answer_id": 74416403,
"author": "P.b",
"author_id": 12634230,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20381469/"
] |
74,409,785 | <p>I'd like to find the rows that group A and group B have the same values in the <code>feature</code> column and the <code>value</code> column.</p>
<p>My data:</p>
<pre><code> group feature value
1 A f1 1
2 B f1 1
3 A f2 1
4 B f2 0
5 A f3 0
6 B ... | [
{
"answer_id": 74410333,
"author": "diomedesdata",
"author_id": 10366237,
"author_profile": "https://Stackoverflow.com/users/10366237",
"pm_score": 1,
"selected": false,
"text": "data.table library(data.table)\nsetDT(df)\n\ndf[, .SD[.I[.N > 1]], by = .(feature, value)]\n\n feature valu... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7816373/"
] |
74,409,795 | <p>i got this weird error in my app yesterday when i try to run it and i cant quite understand how to fix it. it shows a lot of error line, this wasnt happen before and i dont know what went wrong. here's the error</p>
<pre><code>Invalid depfile: D:\Kuliah\Mata Kuliah\Pemrograman Mobile\medreminder.dart_tool\flutter_bu... | [
{
"answer_id": 74409851,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "flutter clean\nflutter packages get\ndart pub get\n"
},
{
"answer_id": 74410020,
"author": "Tim Brückne... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20229067/"
] |
74,409,801 | <p>I have a .env that is used to create k8s secrets as a file. Before creating the secret, I have to set the values in it as per the environment for the respective keys. I am trying to use Terraform's Kubernetes provider for secret creation. Outside of Terraform, we have ways like scripting to set the.env file, and the... | [
{
"answer_id": 74437740,
"author": "Martin Atkins",
"author_id": 281848,
"author_profile": "https://Stackoverflow.com/users/281848",
"pm_score": 0,
"selected": false,
"text": "locals {\n env_values = {\n JAVA_OPTS = \"java_opts_value\"\n NGINX_VERSION = \"nginx_version_v... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5877576/"
] |
74,409,805 | <p>For example:</p>
<pre><code>input [TOTAL_CH-1:0] start_frame_i, // start of frame
</code></pre>
<p>Change to:</p>
<pre><code>input [TOTAL_CH-1:0] i_start_frame, // start of frame
</code></pre>
<p>Add on to clarify: There are many different strings are like above.</p>
| [
{
"answer_id": 74409954,
"author": "SaSkY",
"author_id": 18104248,
"author_profile": "https://Stackoverflow.com/users/18104248",
"pm_score": 3,
"selected": true,
"text": "cat file.txt | sed -r 's/(\\w+)_i\\b/i_\\1/g'\n (\\w+)_i\\b (\\w+)_i _i _i (\\w+) \\b start_frame_iAAA i_start_frameA... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/981714/"
] |
74,409,817 | <p>What regex do I use to select the first instance of a string in single quotes when the line contains multiple comma separated single quote values ?</p>
<p>There could be multiple lines and <strong>I want to match <em>first instance</em> on <em>each line</em></strong>.</p>
<p><code>‘(.*?)’</code> selects all instance... | [
{
"answer_id": 74409954,
"author": "SaSkY",
"author_id": 18104248,
"author_profile": "https://Stackoverflow.com/users/18104248",
"pm_score": 3,
"selected": true,
"text": "cat file.txt | sed -r 's/(\\w+)_i\\b/i_\\1/g'\n (\\w+)_i\\b (\\w+)_i _i _i (\\w+) \\b start_frame_iAAA i_start_frameA... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5487094/"
] |
74,409,835 | <p>I need to read the user's name from a “Form” text input and display it somewhere on the page in a greeting message i.e. Hello (user). I need to use the “Form” input and extract the user’s name from the URL using the query string. I also need to read the query string when the page is loaded, not when the button is pr... | [
{
"answer_id": 74410031,
"author": "KylianJay",
"author_id": 17792463,
"author_profile": "https://Stackoverflow.com/users/17792463",
"pm_score": 0,
"selected": false,
"text": " <!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n <h1 id=\"h1\">Hello World</h1>\n\n <form> \... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481542/"
] |
74,409,839 | <p>I want to scrape Congressional stock trades from <a href="https://www.capitoltrades.com/trades" rel="nofollow noreferrer">Capitol Trades</a>. I can scrape the data, but the column that contains stock tickers has a span tag that separates company names from company tickers. <code>pandas.read_html()</code> removes thi... | [
{
"answer_id": 74410031,
"author": "KylianJay",
"author_id": 17792463,
"author_profile": "https://Stackoverflow.com/users/17792463",
"pm_score": 0,
"selected": false,
"text": " <!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n <h1 id=\"h1\">Hello World</h1>\n\n <form> \... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/334755/"
] |
74,409,881 | <p>I have the following array of array of objects that is a result of a <code>CloudWatch</code> query using <code>AWS-SDK-V3 JS</code>:</p>
<pre><code>const respCW = [
[
{ field: '@timestamp', value: '2022-10-25 15:30:36.685' },
{
field: '@message',
value: 'foo'
},
{
field: '@ptr',
... | [
{
"answer_id": 74410031,
"author": "KylianJay",
"author_id": 17792463,
"author_profile": "https://Stackoverflow.com/users/17792463",
"pm_score": 0,
"selected": false,
"text": " <!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n <h1 id=\"h1\">Hello World</h1>\n\n <form> \... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3788767/"
] |
74,409,902 | <p>For a homework assignment we are to calculate the perimeter of a triangle with one function: <code>perimeter()</code></p>
<p>Then we are supposed to calculate the area of a triangle with the second function: <code>area()</code></p>
<p>Then we are supposed to create a third function called: <code>perimeterArea()</cod... | [
{
"answer_id": 74410031,
"author": "KylianJay",
"author_id": 17792463,
"author_profile": "https://Stackoverflow.com/users/17792463",
"pm_score": 0,
"selected": false,
"text": " <!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n <h1 id=\"h1\">Hello World</h1>\n\n <form> \... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20120602/"
] |
74,409,911 | <p>I'm looking for a way to print all the phone numbers (10 digit number) in column <code>Phone_num</code> of table <code>Customer</code> that has digit 5 6 7 in 5th 6th 7th position in the whole number, using <code>SELECT FROM WHERE</code> format.</p>
| [
{
"answer_id": 74409920,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 1,
"selected": false,
"text": "SELECT * FROM table WHERE number ~ '^[0-9]{4}567[0-9]{3}$'\n"
},
{
"answer_id": 74409958,
"autho... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18265893/"
] |
74,409,933 | <p>I cannot figure out why this is returning 1 instead of 7.</p>
<pre><code> const getNextEventCountTest = () => {
let sum = 0;
let q = 0;
do {
sum = sum + 0.5
}
while (sum < 4){
q = q + 1;
}
return q;
};
</cod... | [
{
"answer_id": 74409920,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 1,
"selected": false,
"text": "SELECT * FROM table WHERE number ~ '^[0-9]{4}567[0-9]{3}$'\n"
},
{
"answer_id": 74409958,
"autho... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1223975/"
] |
74,409,934 | <p>Each time I click enter when typing in the form, the app refreshes.</p>
<p>I am trying to capture the input of the form as a value and set the state as that value.</p>
<pre><code><form>
<input
value={input}
disabled={!channelId}
onChange={(e) => setInput(e.tar... | [
{
"answer_id": 74409920,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 1,
"selected": false,
"text": "SELECT * FROM table WHERE number ~ '^[0-9]{4}567[0-9]{3}$'\n"
},
{
"answer_id": 74409958,
"autho... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19066133/"
] |
74,409,961 | <p>got a question that I hope is easy to answer!</p>
<p>I'm self teaching myself C# right now - I do know JavaScript and PHP so far. One thing I've been struggling with is how to deal with List<>, Dictionary<> etc, with regard to actually initiating these things - if that makes sense.</p>
<p>So for example,... | [
{
"answer_id": 74409991,
"author": "ESG",
"author_id": 1251127,
"author_profile": "https://Stackoverflow.com/users/1251127",
"pm_score": 3,
"selected": true,
"text": "Beat beat = new Beat(\"00:00\", 2, new List<int> { 200, 400 }, true);\n ICollection<int> Beat beat = new Beat(\"00:00\", ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74409961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15006497/"
] |
74,410,011 | <p>How can I generate a Random (N*M) 0's and 1's Matrix in which the sum of each row equals to 10?
(in python using numpy)</p>
<p>for example for <code>10*10(N*M)</code> matrix we can use:</p>
<pre><code>import numpy as np
np.random.randint(2, size=(10, 10))
</code></pre>
<p>but I want sum of each rows equals to 10</p>... | [
{
"answer_id": 74410079,
"author": "Warren Weckesser",
"author_id": 1217358,
"author_profile": "https://Stackoverflow.com/users/1217358",
"pm_score": 2,
"selected": false,
"text": "In [29]: rng = np.random.default_rng(121263137472525314065)\n\nIn [30]: n_rows = 5\n\nIn [31]: n_cols = 20\... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482557/"
] |
74,410,034 | <p>Have a dataset for determining interrater reliability. Trying to restructure my data from wide to long form. Here is my data.</p>
<pre><code>Subject Rater Item_1 Item_2
AB 1 6 4
AB 2 5 5
CD 1 4 5
CD 2 6 5
EF 1 ... | [
{
"answer_id": 74410082,
"author": "Ronak Shah",
"author_id": 3962914,
"author_profile": "https://Stackoverflow.com/users/3962914",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\nlibrary(tidyr)\n\n#Thanks to @Dan Adams for the `NA` trick. \ndf %>%\n pivot_longer(cols = start... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17518136/"
] |
74,410,037 | <p>I am looking to mutate data into one column seperated by ","</p>
<p>I can do this if I name each input column, but is there a way to do it without having to type out each V1...V11?</p>
<pre><code>input = mtcars
colnames(input) = c('V1','V2','V3','V4','V5','V6','V7','V8','V9','V10','V11')
joined = mutate(ou... | [
{
"answer_id": 74410051,
"author": "Ronak Shah",
"author_id": 3962914,
"author_profile": "https://Stackoverflow.com/users/3962914",
"pm_score": 4,
"selected": true,
"text": "tidyr::unite tidyr::unite(input, join, dplyr::everything(), sep = \",\")\n\n# ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20384402/"
] |
74,410,083 | <p>I am trying to figure out a way to reset the cumulative counting every time I reach "SI".</p>
<p>For example i am doing a running total of word "NO" , if there are some blanks then result should be blank, if there is a "NO" after blank then it again start doing running count of "No... | [
{
"answer_id": 74411568,
"author": "aclayden",
"author_id": 20175535,
"author_profile": "https://Stackoverflow.com/users/20175535",
"pm_score": 0,
"selected": false,
"text": "=IF(E3=\"No\", IF(G2=\"\", 1, G2+1), \"\")\n"
},
{
"answer_id": 74411978,
"author": "Tom Sharpe",
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17635658/"
] |
74,410,117 | <p>I have a string that is received over Ethernet and I want to convert the string to std::float_t data.<br>
I'm using <code>std::regex_replace</code> to strip out all non-digit, non-decimal, non-sign (plus, minus) and replace with empty string.<br>
When I execute the <code>std::regex_replace</code>, it only returns di... | [
{
"answer_id": 74410864,
"author": "rici",
"author_id": 1566221,
"author_profile": "https://Stackoverflow.com/users/1566221",
"pm_score": 2,
"selected": false,
"text": "\\D \\D std::regex \\ #include <iostream>\n#include <string>\nint main() {\n // Here is a string with a \\D escape:\n ... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6319901/"
] |
74,410,129 | <p>I get these error. what do i do?</p>
<p>`</p>
<pre><code>import React, { useState } from "react";
import "./App.css";
import { Button } from "@mui/material";
//declaring the colors
const colorSequence = [
{ "color": "#3db44b" },
{ "color": "#bfe... | [
{
"answer_id": 74410147,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 1,
"selected": false,
"text": "const [colors, setColors] = useState<{ color: string; id?: number }[]>([]);\n"
},
{
"answer_id": 74410155,... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20242528/"
] |
74,410,131 | <p>for an assignment I have to implement my own floats. They are working for many possible combinations of inputs i could think of, so I set out to make a JUnit test with random values. Now I encountered some trouble with dynamically setting the delta value in the method call assertEquals(String message, Double expecte... | [
{
"answer_id": 74410147,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 1,
"selected": false,
"text": "const [colors, setColors] = useState<{ color: string; id?: number }[]>([]);\n"
},
{
"answer_id": 74410155,... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14623254/"
] |
74,410,187 | <p>I have a Django Form where users inserts numeric values. I am sending the Ajax to a url but I keep receiving:</p>
<pre><code>TypeError: addlog() missing 1 required positional argument: 'id'
</code></pre>
<p>I have tried to add the id in the url I got:</p>
<pre><code>Reverse for 'addlog' with arguments '(2,)' not fou... | [
{
"answer_id": 74410147,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 1,
"selected": false,
"text": "const [colors, setColors] = useState<{ color: string; id?: number }[]>([]);\n"
},
{
"answer_id": 74410155,... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13176726/"
] |
74,410,190 | <p>I have a table like this</p>
<p><a href="https://i.stack.imgur.com/q4Jmy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q4Jmy.png" alt="enter image description here" /></a></p>
<p>TRX_NUMBER is a invoice, and this field have a return number inside of the invoice.</p>
<p>And I want to select table... | [
{
"answer_id": 74411288,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 2,
"selected": true,
"text": "SQL> with invoice (customer_trx_id, trx_number, previous_customer_trx_id) as\n 2 (select 81196, 'ARR05-09', 22... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20328169/"
] |
74,410,224 | <p>here is the code and when I run code it's print my result correctly but there is a null as result (in line 4) :</p>
<pre><code> main() {
var ferrari = Car();
ferrari.armor = 85;
print(ferrari.armor);
}
class Car {
int? _armor;
int? get armor {
return _armor;
}
set armor(int?... | [
{
"answer_id": 74411288,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 2,
"selected": true,
"text": "SQL> with invoice (customer_trx_id, trx_number, previous_customer_trx_id) as\n 2 (select 81196, 'ARR05-09', 22... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14901385/"
] |
74,410,231 | <p>So I'm self-studying a compiler's textbook and I'm getting the hang of it but I have a question regarding compilation of simple high level expressions, such as <code>52 + -10</code>, to x86-64 (AT&T).</p>
<p>Consider the following expressions:</p>
<p><code>10 + 32</code> generates the following assembly:</p>
<pr... | [
{
"answer_id": 74410303,
"author": "chez93",
"author_id": 15403542,
"author_profile": "https://Stackoverflow.com/users/15403542",
"pm_score": 1,
"selected": false,
"text": "subq $16, %rsp"
},
{
"answer_id": 74410403,
"author": "Peter Cordes",
"author_id": 224132,
"aut... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15403542/"
] |
74,410,242 | <p>I'm trying to obtain the variable with the highest number so basically this are the variables:</p>
<pre><code>number_no = 17
number_yes = 2
number_dontknow = 10
</code></pre>
<p>I would like to know with one is the highest I was using max(number_no, number_yes) but it gave me the number and I need the variable name... | [
{
"answer_id": 74410303,
"author": "chez93",
"author_id": 15403542,
"author_profile": "https://Stackoverflow.com/users/15403542",
"pm_score": 1,
"selected": false,
"text": "subq $16, %rsp"
},
{
"answer_id": 74410403,
"author": "Peter Cordes",
"author_id": 224132,
"aut... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16239103/"
] |
74,410,254 | <p>I've the following data structure:</p>
<pre><code>id flag date
101 A may
101 A jun
101 1 jul
101 A aug
101 1 sep
101 2 oct
101 3 nov
201 A jun
201 A jul
</code></pre>
<p>I want to create variable based off flag values and count the frequency of occurrence in S... | [
{
"answer_id": 74410762,
"author": "Shiva",
"author_id": 3007402,
"author_profile": "https://Stackoverflow.com/users/3007402",
"pm_score": 0,
"selected": false,
"text": "SELECT\n id,\n flag_1,\n flag_2,\n flag_3,\n (flag_all - flag_1 - flag_2 - flag_3) AS flag_else\nFROM\n (\n S... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1696975/"
] |
74,410,261 | <p>So, I'm trying to read a .sav file using python and turn it into a .csv. I already got my code to read .sav files, and I also checked it with a test .sav, which I managed to turn into a csv. I then went on to use the real .sav file, and not it no longer works.
Here is the code:</p>
<pre><code>import pyreadstat
df, ... | [
{
"answer_id": 74410762,
"author": "Shiva",
"author_id": 3007402,
"author_profile": "https://Stackoverflow.com/users/3007402",
"pm_score": 0,
"selected": false,
"text": "SELECT\n id,\n flag_1,\n flag_2,\n flag_3,\n (flag_all - flag_1 - flag_2 - flag_3) AS flag_else\nFROM\n (\n S... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19401453/"
] |
74,410,270 | <p>Following is my numpy array.</p>
<pre><code>import numpy as np
arr = np.array([1,2,3,4,5])
arrc=arr
arrc[arr<3]=3
</code></pre>
<p>When I run</p>
<pre><code>>>> arrc
output : array([3,3,3,4,5])
>>> arr
output : array([3,3,3,4,5])
</code></pre>
<p>I expected changing arrc does not affect arr. H... | [
{
"answer_id": 74410277,
"author": "Royadma",
"author_id": 20476279,
"author_profile": "https://Stackoverflow.com/users/20476279",
"pm_score": 1,
"selected": false,
"text": "a[1,2] = \"some value\"\n"
},
{
"answer_id": 74410311,
"author": "Austin",
"author_id": 8472377,
... | 2022/11/12 | [
"https://Stackoverflow.com/questions/74410270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16188807/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.