qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,547,913 | <p>I am fairly new to javscript and this might sound like an easy question. I have two datasets that have the same column and I would like to join them together.</p>
<p>The datasets look sth like this:</p>
<pre><code>const dataset1= [{state: 'France', value: 1001.8},
{state: 'Germany', value: 1236.8},.... | [
{
"answer_id": 74548839,
"author": "Francesco Rosso",
"author_id": 9630238,
"author_profile": "https://Stackoverflow.com/users/9630238",
"pm_score": 0,
"selected": false,
"text": "plugins {\n id 'application'\n id 'java'\n id 'eclipse'\n}\n\nrepositories {\n mavenCentral()\n}... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17749183/"
] |
74,547,917 | <p>In vim, <code>/string</code> is to search a <code>string</code>, <code>:s/string/replace</code> is to replace <code>string</code> with <code>replace</code>.</p>
<p>By typing <code>/</code> and hitting up/down, one can view history searches. Same with replacing.</p>
<p>But is there a way to make replacing use history... | [
{
"answer_id": 74548225,
"author": "M. Desjardins",
"author_id": 1507350,
"author_profile": "https://Stackoverflow.com/users/1507350",
"pm_score": 0,
"selected": false,
"text": ":%s// :h :s :global :global :s /search <c-r>/ :%s/"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3665518/"
] |
74,547,926 | <p>In my Python lab, I need to ask the user how many numbers to store; have them enter said numbers individually and store them in a file named numbers1.txt. Then again, repeat this process but store the numbers in a file named numbers2.txt. From there I had to write some code that would read a line from one file and a... | [
{
"answer_id": 74548265,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 0,
"selected": false,
"text": "close with zip scalar_product = 0\nwith open(\"numbers1.txt\") as numfile1, open(\"numbers2.txt\") as numfile2:\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524919/"
] |
74,547,933 | <p>I have a JSON file that is given as:</p>
<pre><code>{
"Person": "true",
"Age": "true",
"Location": "false",
"Phone": "true"
}
</code></pre>
<p>I am able to read it in Unity by using the code below. I am using SimpleJSON l... | [
{
"answer_id": 74548520,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 1,
"selected": false,
"text": "itemsData[\"Age\"] = \"false\";\n"
},
{
"answer_id": 74548747,
"author": "Mykhailo Svyrydovych",
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17561671/"
] |
74,547,950 | <p>I have a button with a click event called <code>handleCount()</code>. I have 3 functions, <code>fun1()</code>, <code>fun2()</code>, <code>fun3()</code>. I'm calling <code>fun1()</code>, <code>fun2()</code>, <code>fun3()</code> in <code>handleCount()</code> based on <code>count</code> value.</p>
<p>If <code>count</co... | [
{
"answer_id": 74548520,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 1,
"selected": false,
"text": "itemsData[\"Age\"] = \"false\";\n"
},
{
"answer_id": 74548747,
"author": "Mykhailo Svyrydovych",
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20338321/"
] |
74,547,956 | <p><code>window.open(URL, '_blank')</code></p>
<p>this is not working with local file
it's give error "Not allowed to load local resource"</p>
<p>my local file path is like bellow</p>
<p>file:///var/www/html/proj/proj.pdf</p>
| [
{
"answer_id": 74548520,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 1,
"selected": false,
"text": "itemsData[\"Age\"] = \"false\";\n"
},
{
"answer_id": 74548747,
"author": "Mykhailo Svyrydovych",
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8138415/"
] |
74,547,987 | <p>I was using public repo for wso2is i.e wso2/wso2is:5.10.0 however when I try to upgrade to 6.0.0 it does not let me pull the image. Looks like 6.0.0 is not on the public repo. How do I get 6.0.0, do we need to have active subscription to use the private wso2 ?</p>
| [
{
"answer_id": 74548520,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 1,
"selected": false,
"text": "itemsData[\"Age\"] = \"false\";\n"
},
{
"answer_id": 74548747,
"author": "Mykhailo Svyrydovych",
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19557539/"
] |
74,547,994 | <p>I have this start timer function</p>
<pre><code>async startTimer() {
this.count = 30;
for (var i = 30; i >= 0; i--) {
await new Promise((f) => setTimeout(f, 1000));
this.count = i;
}
}
</code></pre>
<p>which gets started by calling <code>this.startTimer()</code> but when i try to set ... | [
{
"answer_id": 74548520,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 1,
"selected": false,
"text": "itemsData[\"Age\"] = \"false\";\n"
},
{
"answer_id": 74548747,
"author": "Mykhailo Svyrydovych",
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3653474/"
] |
74,547,995 | <p>I have created some code to search through a string and return True if there is an emoji in the string. The strings are found in a column in a pandas dataframe, and one can assume the string and the length of the dataframe could be arbitrarily long. I then create a new column in my dataframe with these boolean resul... | [
{
"answer_id": 74548113,
"author": "ScottC",
"author_id": 20174226,
"author_profile": "https://Stackoverflow.com/users/20174226",
"pm_score": 3,
"selected": true,
"text": "emoji.emoji_count() import emoji\n\n# Create example dataframe\ndf = pd.DataFrame({'post_text':['', '', 'text ', 'ab... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74547995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10138766/"
] |
74,548,015 | <p>I'd like to emphasize where a web application is loaded from: the local development environment vs a test or production environment.
To keep things simple, the mechanism should work just on CSS. But so far my CSS is a static file.</p>
<p>Is it possible to write a CSS that evaluates on the browser what background col... | [
{
"answer_id": 74548153,
"author": "FUZIION",
"author_id": 13050564,
"author_profile": "https://Stackoverflow.com/users/13050564",
"pm_score": 3,
"selected": true,
"text": "if (window.location.href.indexOf(\"stackoverflow\") > -1) {\n document.body.style.backgroundColor = 'red';\n} else... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4222206/"
] |
74,548,069 | <p>I have a boolean BehaviorSubject whose value I want to use in my template:</p>
<pre><code>isLoggedIn$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);
</code></pre>
<p>in ngOnInit, I subscribe to it:</p>
<pre><code>this.isLoggedIn$.subscribe((result) => {
console.log('result', result... | [
{
"answer_id": 74548153,
"author": "FUZIION",
"author_id": 13050564,
"author_profile": "https://Stackoverflow.com/users/13050564",
"pm_score": 3,
"selected": true,
"text": "if (window.location.href.indexOf(\"stackoverflow\") > -1) {\n document.body.style.backgroundColor = 'red';\n} else... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/296848/"
] |
74,548,070 | <p>I have an array of shapes created in a for loop and want to assign simple code to each of them as "yes/no" buttons.</p>
<p>The code that creates the array of buttons is as follows:</p>
<pre><code> Dim i As Integer
Dim j As Integer
Dim k As Integer
For i = 1 To 3
For j = 2 To 17... | [
{
"answer_id": 74552240,
"author": "Tim Williams",
"author_id": 478884,
"author_profile": "https://Stackoverflow.com/users/478884",
"pm_score": 1,
"selected": false,
"text": "Option Explicit\n\nSub Tester()\n \n Dim i As Long, j As Long, k As Long\n Dim addr As String, shp As Sh... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16759275/"
] |
74,548,105 | <p>I'm having some issues hosting blazor WASM standalone (without an asp.net core project as host) behind nginx as a reverse proxy.</p>
<p>Here is my Nginx default config file:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="s... | [
{
"answer_id": 74552240,
"author": "Tim Williams",
"author_id": 478884,
"author_profile": "https://Stackoverflow.com/users/478884",
"pm_score": 1,
"selected": false,
"text": "Option Explicit\n\nSub Tester()\n \n Dim i As Long, j As Long, k As Long\n Dim addr As String, shp As Sh... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8468850/"
] |
74,548,126 | <p>I am trying to concatenate two strings in TypeScript like this:</p>
<pre><code>let string1 = new String("IdNumber: " + this.IdNumber);
let string2 = new String(this.notes);
this.notes = string1.concat(string2.toString());
</code></pre>
<p>The output I see for this.notes on line 3 is missing the original te... | [
{
"answer_id": 74552240,
"author": "Tim Williams",
"author_id": 478884,
"author_profile": "https://Stackoverflow.com/users/478884",
"pm_score": 1,
"selected": false,
"text": "Option Explicit\n\nSub Tester()\n \n Dim i As Long, j As Long, k As Long\n Dim addr As String, shp As Sh... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7201774/"
] |
74,548,143 | <p>When trying to use Huggingface estimator on sagemaker, Run training on Amazon SageMaker e.g.</p>
<pre><code># create the Estimator
huggingface_estimator = HuggingFace(
entry_point='train.py',
source_dir='./scripts',
instance_type='ml.p3.2xlarge',
instance_count=1,
role=role,
... | [
{
"answer_id": 74554115,
"author": "Arun Lokanatha",
"author_id": 19490330,
"author_profile": "https://Stackoverflow.com/users/19490330",
"pm_score": 2,
"selected": false,
"text": "pt_estimator = PyTorch(\nentry_point=\"train.py\",\nsource_dir=\"scripts\",\nrole=sagemaker.get_execution_r... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/610569/"
] |
74,548,150 | <p>I have one column that has important identifiers, but they are not uniform, so I am stuck with string splitting. I guess an example is best.</p>
<p><strong>Code example, "df" is the tibble as is, result the result</strong></p>
<pre><code>a <- c('Text1','Text1','Text1','Text1_sub1','Text1_sub2','Text2','... | [
{
"answer_id": 74548298,
"author": "DaveArmstrong",
"author_id": 8206434,
"author_profile": "https://Stackoverflow.com/users/8206434",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(glue)\na <- c('Text1','Text1','Text1','Text1_sub1','Text1_sub2','Text2','Text2','Text2... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3620212/"
] |
74,548,163 | <p>I have a data frame and am trying to fill the missing values with the previous and next values in the data frame. I used the following code, but it did not fill and returns missing values still. I tried 2 different variations, but both do not work. Could someone please let me know what I am doing wrong? Thanks!</p>
... | [
{
"answer_id": 74548298,
"author": "DaveArmstrong",
"author_id": 8206434,
"author_profile": "https://Stackoverflow.com/users/8206434",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(glue)\na <- c('Text1','Text1','Text1','Text1_sub1','Text1_sub2','Text2','Text2','Text2... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18469498/"
] |
74,548,178 | <pre class="lang-sql prettyprint-override"><code>select max(to_number(ltrim(aefo_number,'VE')))
from exemption
where aefo_number like 'E%'
or aefo_number like 'V%'
</code></pre>
<p>I am getting Function to_number(text) does not exist error for the above select statement and I am unable to convert it.</p>
<p>If ... | [
{
"answer_id": 74548538,
"author": "a_horse_with_no_name",
"author_id": 330315,
"author_profile": "https://Stackoverflow.com/users/330315",
"pm_score": 2,
"selected": false,
"text": "to_number() to_number(ltrim(aefo_number,'VE'), '99999999999') numeric integer select max(ltrim(aefo_numbe... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20561493/"
] |
74,548,189 | <p>I have been working with AWS Athena for a while and need to do create a backup and version control of the views. I'm trying to build an automation for the backup to run daily and get all the views.
I tried to find a way to copy all the views created in Athena using boto3, but I couldn't find a way to do that. With D... | [
{
"answer_id": 74552985,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "SHOW CREATE TABLE [db_name.]table_name table_name"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19487309/"
] |
74,548,240 | <p>say I have four separate lists like so:</p>
<pre><code>colors = ['red', 'blue', 'green', 'black']
widths = [10.0, 12.0, 8.0, 22.0]
lengths = [35.5, 41.0, 36.5, 36.0]
materials = ['steel', 'copper', 'iron', 'steel']
</code></pre>
<p>What's the best way to take this data and create a list of dicts representing objects... | [
{
"answer_id": 74548365,
"author": "CodeKorn",
"author_id": 10882128,
"author_profile": "https://Stackoverflow.com/users/10882128",
"pm_score": 0,
"selected": false,
"text": "range colors = ['red', 'blue', 'green', 'black']\nwidths = [10.0, 12.0, 8.0, 22.0]\nlengths = [35.5, 41.0, 36.5, ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12251859/"
] |
74,548,251 | <p>I'm trying to get the Username and Date <code>'y/m/d'</code> from a <code>/var/log/secure</code>, however when I'm trying to use <code>awk</code>, it only provides the date.</p>
<p>Sample of a secure log file.</p>
<pre><code>2022-11-23T02:03:24.594880+01:00 servername su: pam_unix(su:session): session opened for use... | [
{
"answer_id": 74549039,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 3,
"selected": true,
"text": "T 2022-11-23 User: T awk -F\"[[:blank:]]+|T\" '{print $1, $10 }' file\n T awk '{split($1,a,\"T\"); print a[... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18653424/"
] |
74,548,257 | <p>So I have a dataframe with 3 columns: date, price, text</p>
<pre><code>import pandas as pd
from datetime import datetime
import random
columns = ('dates','prices','text')
datelist = pd.date_range(datetime.today(), periods=5).tolist()
prices = []
for i in range(0, 5):
prices.append(random.randint(50, 60))
text =... | [
{
"answer_id": 74548439,
"author": "ZachW",
"author_id": 8462327,
"author_profile": "https://Stackoverflow.com/users/8462327",
"pm_score": 2,
"selected": true,
"text": "import plotly.graph_objects as go\n\nfig = go.Figure(data=go.Scatter(x=df['dates'], y=df['price'], mode='lines+markers'... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9410998/"
] |
74,548,261 | <p>I am developing an internal TypeScript library which needs to call a couple of GraphQL endpoints. The library is supposed be imported in front end projects, but it is not dependent on any specific framework (like angular or react).</p>
<p>I would like to be able to use a GraphQL library for GraphQL calls. I checked ... | [
{
"answer_id": 74548439,
"author": "ZachW",
"author_id": 8462327,
"author_profile": "https://Stackoverflow.com/users/8462327",
"pm_score": 2,
"selected": true,
"text": "import plotly.graph_objects as go\n\nfig = go.Figure(data=go.Scatter(x=df['dates'], y=df['price'], mode='lines+markers'... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2065796/"
] |
74,548,266 | <p>To reduce my last question (it was a bit complicated). Is it possible to change the names of "array objects" dynamically?</p>
<p>I have a list of variables (structure must stay like this way):</p>
<pre><code>var markers = []
var markerHouse = ... markers.push(markerHouse);
var markerAnimal = ... markers.pu... | [
{
"answer_id": 74548330,
"author": "voidbrain",
"author_id": 1000137,
"author_profile": "https://Stackoverflow.com/users/1000137",
"pm_score": 0,
"selected": false,
"text": "L.layerGroup([eval(\"markerHouse\"), eval(\"markerAnimal\")]);\n"
},
{
"answer_id": 74548496,
"author"... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4399382/"
] |
74,548,279 | <p>So would like to create an 2D array of characters for testing purposes. Here is my code.</p>
<pre><code> const int rows = 4;
const int columns = 6;
//char field[rows][columns];
//fill_field(rows,columns,field);
char field[rows][columns] = {
"A BCD ",
... | [
{
"answer_id": 74548383,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 0,
"selected": false,
"text": "const int #define rows 4\n#define columns 6\n"
},
{
"answer_id": 74548401,
"author": "Vlad from Mos... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582642/"
] |
74,548,292 | <p>I am going to be given an array of integers. My job is to take that array and find an index N where the sum of the integers to the left of N is equal to the sum of the integers to the right of N. If there is no index that would make this happen, return -1.</p>
<p>My code is:</p>
<pre class="lang-py prettyprint-overr... | [
{
"answer_id": 74548383,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 0,
"selected": false,
"text": "const int #define rows 4\n#define columns 6\n"
},
{
"answer_id": 74548401,
"author": "Vlad from Mos... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16843327/"
] |
74,548,309 | <p>I am starting to learn HTML and CSS and I decided to try to make a website with dreamweaver just for practice.
But I am strongly struggling with making my website responsive. I tend to give fix position to every element and obviously that is very bad cause if you re-size the website is going to be completely destroy... | [
{
"answer_id": 74548383,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 0,
"selected": false,
"text": "const int #define rows 4\n#define columns 6\n"
},
{
"answer_id": 74548401,
"author": "Vlad from Mos... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582754/"
] |
74,548,343 | <p>We have the following two data frames</p>
<pre><code>temp = pd.DataFrame(np.array([['I am feeling very well',1],['It is hard to believe this happened',0],
['What is love?',1], ['No new friends',0],
['I love this show',1],['Amazing day today',1]]),
... | [
{
"answer_id": 74548471,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 4,
"selected": true,
"text": "import re\npattern = '|'.join(map(re.escape, temp_truncated['message']))\n\nkey = temp['message'].str.extract(f'({pa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8972207/"
] |
74,548,359 | <p>I'm using Google Tag Manager to configure events for an e-commerce and I need search for the word "trash" in the string below:</p>
<p><code>"SVGSVGElement: html > body.template-home.overflow-none > div.theme-w" + "ide#container > form.js-ajax-cart-panel.js-fullscreen-modal.ajax-car&... | [
{
"answer_id": 74548471,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 4,
"selected": true,
"text": "import re\npattern = '|'.join(map(re.escape, temp_truncated['message']))\n\nkey = temp['message'].str.extract(f'({pa... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582645/"
] |
74,548,391 | <p>I used a for-loop in my code and my output prints vertically, but what I want is it to print horizontally. For example</p>
<pre class="lang-java prettyprint-override"><code>for (int i = 0; i < 10; i++ ) {
System.out.println("i is " + (i+1) + " | ");
}
</code></pre>
<p>For this the output i... | [
{
"answer_id": 74548493,
"author": "aatwork",
"author_id": 14263933,
"author_profile": "https://Stackoverflow.com/users/14263933",
"pm_score": 1,
"selected": false,
"text": "for (int i = 0; i < 10; i++ ) {\n System.out.print(\"i is \" + (i+1) + \" | \");\n}\n"
},
{
"answer_i... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20136181/"
] |
74,548,395 | <p>I am making a post request to the tiktok API, entering the 3 parameters that are requested, but when I carry out the request, it shows me the following: "Required fields are missing: app_id is required.", I attach an image:</p>
<p><a href="https://i.stack.imgur.com/AOuEU.png" rel="nofollow noreferrer">ente... | [
{
"answer_id": 74548493,
"author": "aatwork",
"author_id": 14263933,
"author_profile": "https://Stackoverflow.com/users/14263933",
"pm_score": 1,
"selected": false,
"text": "for (int i = 0; i < 10; i++ ) {\n System.out.print(\"i is \" + (i+1) + \" | \");\n}\n"
},
{
"answer_i... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19474791/"
] |
74,548,404 | <p>I have a general component that accepts a prop named <code>component</code> and the rest of the props should be the props of that specific component. how can I do it in typescript?</p>
<p>i.e. :</p>
<pre><code> <FormField component={Input} ... />
</code></pre>
<p>This FormField should accept whatever props <c... | [
{
"answer_id": 74548513,
"author": "A.Vinuela",
"author_id": 9095818,
"author_profile": "https://Stackoverflow.com/users/9095818",
"pm_score": 1,
"selected": false,
"text": "const FormField = <K,>(props: FormFieldProps & K) => {\n //Your component here\n}\n <FormField<InputProps> ....... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7787393/"
] |
74,548,456 | <p>How does the code look like to partition the following table. date and status are given, partition column shall be added. Column group is only to explain where the group starts and ends.
Finally, I like to do some analytics, e.g. how long takes the process per group.</p>
<p>In words but don't know to convert to code... | [
{
"answer_id": 74548877,
"author": "Mike Organek",
"author_id": 13808319,
"author_profile": "https://Stackoverflow.com/users/13808319",
"pm_score": 1,
"selected": false,
"text": "with groups as ( -- Assign partitions\n select *, \n coalesce(\n sum(case when status = '... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10866435/"
] |
74,548,467 | <p>I am trying to check if an entered value is in a list of values and then use it if it does using the <code>any</code> command in an <code>if</code> statement. But for some reason when the command finished iterating through the list it won't let me use this value.<br>Can someone where do I neeed to change my code to ... | [
{
"answer_id": 74548518,
"author": "Amin",
"author_id": 10281248,
"author_profile": "https://Stackoverflow.com/users/10281248",
"pm_score": 1,
"selected": false,
"text": "for key in publicKeys:\n if SHA3_256.new(key.export_key()).hexdigest() == hashed_pk:\n print(key)\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19916855/"
] |
74,548,475 | <p>I am trying to create a new Azure CosmosDB account in terraform account using:</p>
<p><strong>create_mode = "Restore"</strong></p>
<p>Basically I am trying to restore from an existing DB, and the code needs another input attribute, of the source DB:</p>
<p><strong>"source_cosmosdb_account_id"</st... | [
{
"answer_id": 74548518,
"author": "Amin",
"author_id": 10281248,
"author_profile": "https://Stackoverflow.com/users/10281248",
"pm_score": 1,
"selected": false,
"text": "for key in publicKeys:\n if SHA3_256.new(key.export_key()).hexdigest() == hashed_pk:\n print(key)\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582841/"
] |
74,548,479 | <p>I'm calling a part of a table from a razor component to a component that can be viewed. But the the problem is that there is an audio element i want to separate so it can be called at a different place.</p>
<p>Right now the audio element is included in the call in the loop. Is there any way the audio element can be ... | [
{
"answer_id": 74549598,
"author": "Mister Magoo",
"author_id": 2658697,
"author_profile": "https://Stackoverflow.com/users/2658697",
"pm_score": 1,
"selected": false,
"text": "@childMarkup\n\n<Component1 ExtraMarkup=@( em => childMarkup = em) />\n\n@code \n{\n RenderFragment childMar... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20373344/"
] |
74,548,486 | <h1>Request</h1>
<p>I want to list all the table names in a schema in association with the list of that table attributes. I'm using DBeaver, but I can download other software if it works. I don't mind about the output data extension: txt, excel, csv etc., but I'm not searching for an ER diagram.</p>
<h1>Example</h1>
<p... | [
{
"answer_id": 74549598,
"author": "Mister Magoo",
"author_id": 2658697,
"author_profile": "https://Stackoverflow.com/users/2658697",
"pm_score": 1,
"selected": false,
"text": "@childMarkup\n\n<Component1 ExtraMarkup=@( em => childMarkup = em) />\n\n@code \n{\n RenderFragment childMar... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14976735/"
] |
74,548,503 | <p>I have a serious problem with my Riverpod. Specifically, I am using StateProvider in Riverpod package. But when I update state, the widget tree does not rebuild. I checked the new state whether is updated by printing out state to see, I see that they are actually updated.
I have some same situations but when I click... | [
{
"answer_id": 74554350,
"author": "Randal Schwartz",
"author_id": 22483,
"author_profile": "https://Stackoverflow.com/users/22483",
"pm_score": 2,
"selected": true,
"text": "final data = ref.watch(helloWorldProvider.notifier).state;\n final data = ref.watch(helloWorldProvider);\n"
},
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582783/"
] |
74,548,508 | <p>I need your help. I want to connect the device locally (not an emulator). <a href="https://i.stack.imgur.com/5tDIF.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>But I stopped at this problem that I can't solve.<a href="https://i.stack.imgur.com/Zy5Bt.png" rel="nofollow noreferrer">enter imag... | [
{
"answer_id": 74554350,
"author": "Randal Schwartz",
"author_id": 22483,
"author_profile": "https://Stackoverflow.com/users/22483",
"pm_score": 2,
"selected": true,
"text": "final data = ref.watch(helloWorldProvider.notifier).state;\n final data = ref.watch(helloWorldProvider);\n"
},
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20561359/"
] |
74,548,514 | <p>I'm trying to get some youtube videos data from a channel using the google api v3.</p>
<p>When I run the url in my browser the information I get looks good.
<code>https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCBYyJBCtCvgqA4NwtoPMwpQ&maxResults=10&order=date&type=video&key={... | [
{
"answer_id": 74549353,
"author": "Bench Vue",
"author_id": 8054998,
"author_profile": "https://Stackoverflow.com/users/8054998",
"pm_score": 3,
"selected": true,
"text": "Accept-Encoding gzip const axios = require('axios')\nconst config = require('./my-key.json');\n\nconst getVideo = a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6445726/"
] |
74,548,570 | <p>Compare the outputs of these two functions:</p>
<pre><code>from itertools import repeat
def rand_list1():
l = lambda: np.random.rand(3)
return list(repeat(l(), 5))
def rand_list2():
return [np.random.rand(3) for i in range(5)]
</code></pre>
<p>We see that <code>rand_list1</code> who uses <code>itetools.... | [
{
"answer_id": 74548749,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 2,
"selected": false,
"text": "l l() l() repeat repeat repeat repeat return [l() for _ in range(5)]\n l() l l 1"
},
{
"answer_id": 74548890,
... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4809113/"
] |
74,548,574 | <p>How can I make the following code short:</p>
<pre><code>q=0.34
density=''
</code></pre>
<pre><code> if abs(q) ==0:
density='Null'
elif abs(q) <= 0.09:
density='negligible'
elif abs(q) <= 0.49:
density='slight'
elif abs(q) <= 0.69:
density='strong'
else:
... | [
{
"answer_id": 74548813,
"author": "Raida",
"author_id": 13763683,
"author_profile": "https://Stackoverflow.com/users/13763683",
"pm_score": 2,
"selected": false,
"text": "def f(q):\n # List of your limits values and their density values\n values = [(0, \"Null\"), (0.09, \"negligib... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15852600/"
] |
74,548,601 | <p>So what I am trying to do is to create a Bug ticket after a test run fails in DevOps. I have a screenshot in my Attachments area but when I try to create a Bug ticket only error messages, the stack trace and other kinds of information is automatically displayed in the Repro Steps of the Bug.</p>
<p>When I create the... | [
{
"answer_id": 74548813,
"author": "Raida",
"author_id": 13763683,
"author_profile": "https://Stackoverflow.com/users/13763683",
"pm_score": 2,
"selected": false,
"text": "def f(q):\n # List of your limits values and their density values\n values = [(0, \"Null\"), (0.09, \"negligib... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15300316/"
] |
74,548,608 | <p>Im having an error with this query, I'm using a the latest SQL server and management studio</p>
<p>See the query below</p>
<pre><code>CREATE TABLE messages_server (
Id int unsigned NOT NULL AUTO_INCREMENT,
SentTime datetime,
MessageRead BIT,
Content varchar(8000),
MessageCategory varchar(255),
MessageUser varchar(25... | [
{
"answer_id": 74548813,
"author": "Raida",
"author_id": 13763683,
"author_profile": "https://Stackoverflow.com/users/13763683",
"pm_score": 2,
"selected": false,
"text": "def f(q):\n # List of your limits values and their density values\n values = [(0, \"Null\"), (0.09, \"negligib... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15714952/"
] |
74,548,612 | <p>I feel like I'm going insane because I can't figure out what feels like should be a simple problem! I want to generate fake data in a numpy array and I can't figure out how to repeat a row of observations. I'd rather generate thousands of rows and I can't figure out how to repeat a row whenever I feel like.</p>
<p>F... | [
{
"answer_id": 74548791,
"author": "robinood",
"author_id": 8814229,
"author_profile": "https://Stackoverflow.com/users/8814229",
"pm_score": 1,
"selected": false,
"text": "np.array([['Democrat', 'Republican', 'Third']]* 10000)\n"
},
{
"answer_id": 74549089,
"author": "obchar... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13298650/"
] |
74,548,631 | <p>I have a time series dataset on which I am running the auto arima model. The dataset has multiple columns that are independent of each other, so basically it's like multiple auto arima analysis.</p>
<p>The code I currently have loops through all the columns in the dataframe and stores the order values of p,d,q for e... | [
{
"answer_id": 74548791,
"author": "robinood",
"author_id": 8814229,
"author_profile": "https://Stackoverflow.com/users/8814229",
"pm_score": 1,
"selected": false,
"text": "np.array([['Democrat', 'Republican', 'Third']]* 10000)\n"
},
{
"answer_id": 74549089,
"author": "obchar... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20059373/"
] |
74,548,636 | <p>I've added identity and authentication to an already existing API that was written in .net core 2.1.</p>
<p>There is for sure something funky going on as I am getting no roles returned when calling GetRolesAsync() like so:</p>
<pre><code>var user = await _userManager.FindByEmailAsync(email);
var roles = await _userM... | [
{
"answer_id": 74556084,
"author": "Chen",
"author_id": 18789859,
"author_profile": "https://Stackoverflow.com/users/18789859",
"pm_score": 1,
"selected": false,
"text": "model.Roles RoleManager _userManager.FindByEmailAsync(email) user"
},
{
"answer_id": 74602540,
"author": ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11545419/"
] |
74,548,659 | <p>I am creating a text based game for a Python class.</p>
<p>I created a dictionary for my rooms and created a list for my directions:</p>
<pre class="lang-py prettyprint-override"><code>rooms = {
'Great Hall': {
'name': 'Great Hall',
'South': 'Bedroom'
},
'Bedroom': {
'name': 'Bedr... | [
{
"answer_id": 74548774,
"author": "Bill Lynch",
"author_id": 47453,
"author_profile": "https://Stackoverflow.com/users/47453",
"pm_score": 2,
"selected": false,
"text": " directions = ['South', 'North', 'East', 'West']\n command = 'South'\n if command in directions:\n print('T... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20334526/"
] |
74,548,703 | <p>Does the storing of local variables into stack memory, depends on using their values in function calls?</p>
<p>While doing some simple excercises with the "C" programming language and more specificly - with pointers, I've noticed the following anomaly (<em>I know it's not anomaly, it's just me with lack of... | [
{
"answer_id": 74549068,
"author": "hyde",
"author_id": 1717300,
"author_profile": "https://Stackoverflow.com/users/1717300",
"pm_score": 2,
"selected": false,
"text": "volatile"
},
{
"answer_id": 74549094,
"author": "0___________",
"author_id": 6110094,
"author_profi... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11648577/"
] |
74,548,720 | <p>HAVE
<br/>
M1234TESTABC
<br/>
M34567TESTABC
<br/>
M100023459ABC
<br/>
M234TEST
<br/></p>
<p>WANT
<br/>
TESTABC
<br/>
TESTABC
<br/>
ABC
<br/>
TEST</p>
| [
{
"answer_id": 74549068,
"author": "hyde",
"author_id": 1717300,
"author_profile": "https://Stackoverflow.com/users/1717300",
"pm_score": 2,
"selected": false,
"text": "volatile"
},
{
"answer_id": 74549094,
"author": "0___________",
"author_id": 6110094,
"author_profi... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2008558/"
] |
74,548,729 | <p>Folks, could you please advise how I can rebase existing class so that it <strong>doesn't</strong> have particular interface in its parents ?</p>
<p>For example</p>
<pre><code>interface One {
fun one(): Unit
}
interface Two {
fun two(): Unit
}
class Test: One, Two {
// implementation of one() and two()
}
val... | [
{
"answer_id": 74563476,
"author": "expert",
"author_id": 226895,
"author_profile": "https://Stackoverflow.com/users/226895",
"pm_score": 1,
"selected": true,
"text": "val fieldDelegate = \"delegate\"\nval unloaded = ByteBuddy()\n .subclass(Any::class.java)\n .defineField(fieldDele... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/226895/"
] |
74,548,748 | <p>I have a database of polymorphic structure: a "base" type table and two "derived" types:</p>
<pre><code>CREATE TABLE ContactMethod(
id integer PRIMARY KEY
person_id integer
priority integer
allow_solicitation boolean
FOREIGN KEY(person_id) REFERENCES People(id)
)
CREATE TABLE PhoneNum... | [
{
"answer_id": 74549284,
"author": "Olivier Jacot-Descombes",
"author_id": 880990,
"author_profile": "https://Stackoverflow.com/users/880990",
"pm_score": 0,
"selected": false,
"text": "ContactMethod ContactMethod"
},
{
"answer_id": 74551665,
"author": "Bill Karwin",
"aut... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7535740/"
] |
74,548,792 | <p>This is my code for react native for a carousel its a slider type thingy. I want the slider to scroll aswell with the other components but its not working as scroll view has already been used.</p>
<pre><code>import React, { useState } from "react";
import { SafeAreaView, StyleSheet, ScrollView, Text, Dimen... | [
{
"answer_id": 74549284,
"author": "Olivier Jacot-Descombes",
"author_id": 880990,
"author_profile": "https://Stackoverflow.com/users/880990",
"pm_score": 0,
"selected": false,
"text": "ContactMethod ContactMethod"
},
{
"answer_id": 74551665,
"author": "Bill Karwin",
"aut... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583080/"
] |
74,548,875 | <p>Very simple task: extract the region from an AWS arn.</p>
<p>Example:</p>
<pre><code>arn:aws:lambda:eu-west-2:12345678912:layer:my-awsome-layer:3
</code></pre>
<p>I need to extract <code>eu-west-2</code></p>
<p>I have a working regex for this: <a href="https://regex101.com/r/Apyhb8/1" rel="nofollow noreferrer"><code... | [
{
"answer_id": 74549105,
"author": "Kappacake",
"author_id": 4220401,
"author_profile": "https://Stackoverflow.com/users/4220401",
"pm_score": 2,
"selected": false,
"text": "echo \"arn:aws:lambda:eu-west-2:12345678912:layer:my-awsome-layer:3\" | cut -d':' -f4\n eu-west-2"
},
{
"a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4220401/"
] |
74,548,895 | <p>In this code when I am not using row then proceed button is not expanding but when I am using Row for adding one more widget then that is expanding.</p>
<p>This is my code.</p>
<pre><code>Stack(
alignment: Alignment.centerRight,
children: [
Container(
margin: EdgeInsets.all(5),
... | [
{
"answer_id": 74549105,
"author": "Kappacake",
"author_id": 4220401,
"author_profile": "https://Stackoverflow.com/users/4220401",
"pm_score": 2,
"selected": false,
"text": "echo \"arn:aws:lambda:eu-west-2:12345678912:layer:my-awsome-layer:3\" | cut -d':' -f4\n eu-west-2"
},
{
"a... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15610685/"
] |
74,548,898 | <p>I have installed ngx-toastr and imported in app.module.ts but getting this error while compiling
<a href="https://i.stack.imgur.com/yzrQ6.png" rel="nofollow noreferrer">enter image description here</a>...is it because i have set the properties of toaster in service file which I created like below?<a href="https://i.... | [
{
"answer_id": 74561913,
"author": "Jhonatan Martinez",
"author_id": 20591545,
"author_profile": "https://Stackoverflow.com/users/20591545",
"pm_score": 2,
"selected": false,
"text": "npm install --save ngx-toastr@15.2.0"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583120/"
] |
74,548,901 | <p>I have following data in my mongoDb database and I want to find the student from the array of students objects by iterating on all my students field of my database with the id the students array objects have.</p>
<p>I want to do it with the help of mongoose please help me find the solution as I am unable to find it.... | [
{
"answer_id": 74561913,
"author": "Jhonatan Martinez",
"author_id": 20591545,
"author_profile": "https://Stackoverflow.com/users/20591545",
"pm_score": 2,
"selected": false,
"text": "npm install --save ngx-toastr@15.2.0"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583013/"
] |
74,548,906 | <p>I have two models EcommerceOrders and Medicines</p>
<pre><code>class EcommerceOrders extends Model
{
use HasFactory;
protected $table = 'ecommerce_orders';
protected $fillable = [
'user_id',
'manager_id',
'first_name',
'last_name',
'phone_number',
'email'... | [
{
"answer_id": 74561913,
"author": "Jhonatan Martinez",
"author_id": 20591545,
"author_profile": "https://Stackoverflow.com/users/20591545",
"pm_score": 2,
"selected": false,
"text": "npm install --save ngx-toastr@15.2.0"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20211699/"
] |
74,548,910 | <p>android {
compileSdkVersion 33
ndkVersion flutter.ndkVersion</p>
<p>added the 33 and this is the output :</p>
<p>/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/firebase_app.dart:18:25: Error: Member not found: 'FirebaseAppPlatform.verifyExtends'.
FirebaseAppPlatform.verifyExtends... | [
{
"answer_id": 74548953,
"author": "powerman23rus",
"author_id": 6163011,
"author_profile": "https://Stackoverflow.com/users/6163011",
"pm_score": 1,
"selected": false,
"text": "compileSdkVersion build.gradle path_to_your_project/android/app/build.gradle \n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20582929/"
] |
74,548,919 | <p>Is there a way to get the value of a JS variable into a Velocity variable?</p>
<p>In a page script, I have some JS code and I'd like to just parse an output to a Velocity variable but I can't seem to find a way.</p>
<p>The other way around seems to work though, I can use the <code>$!pageContext.put</code> and .get t... | [
{
"answer_id": 74613511,
"author": "Julien Llanes",
"author_id": 13183060,
"author_profile": "https://Stackoverflow.com/users/13183060",
"pm_score": 1,
"selected": true,
"text": " #set($releaseOverdueCompleteFilter = $transaction.workItems.search.query(\"type:changerequest AND NOT HAS_VA... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13183060/"
] |
74,548,921 | <p>I have a list of addresses in a text document and I want to add a comma after address line 1, and then save it all to a new text document.</p>
<p>example my list of addresses are</p>
<pre><code>Address 1404 756 48 Stockholm
Address 9 756 52 Stockholm
Address 53 B lgh 1001 619 34 Stockholm
Address 72 B lgh 1101 619 3... | [
{
"answer_id": 74549151,
"author": "Fedor Soldatkin",
"author_id": 14370531,
"author_profile": "https://Stackoverflow.com/users/14370531",
"pm_score": 0,
"selected": false,
"text": "str.rstrip() file_line = 'Address 72 B lgh 1101 619 30 Stockholm'\n\n# Use maxsplit=3\nfirst_line, *second... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16302076/"
] |
74,548,982 | <p>I'm trying to create a to-do-list. I think I've created the <strong>CSS</strong> design and done all the <strong>HTML</strong> markup correctly. However, when I'm trying to use <code>clearElement()</code> to remove my HTML markup of the <code>taskContainer</code> to allow the user input their own task (blank value a... | [
{
"answer_id": 74549151,
"author": "Fedor Soldatkin",
"author_id": 14370531,
"author_profile": "https://Stackoverflow.com/users/14370531",
"pm_score": 0,
"selected": false,
"text": "str.rstrip() file_line = 'Address 72 B lgh 1101 619 30 Stockholm'\n\n# Use maxsplit=3\nfirst_line, *second... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16107968/"
] |
74,548,983 | <p>My input has multiple layers of nested arrays from which I need to concatenate these fields: <code>employeeName</code>, <code>subject</code>, <code>text</code> to form comment text.</p>
<p>I then need to <code>label</code> the type of comment text and create an output that is a single array array with multiple obje... | [
{
"answer_id": 74549151,
"author": "Fedor Soldatkin",
"author_id": 14370531,
"author_profile": "https://Stackoverflow.com/users/14370531",
"pm_score": 0,
"selected": false,
"text": "str.rstrip() file_line = 'Address 72 B lgh 1101 619 30 Stockholm'\n\n# Use maxsplit=3\nfirst_line, *second... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14566248/"
] |
74,548,993 | <p>I would like to know if it is possible to use the function itself in its default parameter.</p>
<pre><code>function somename(a,b=somename()){
return a+b;
}
somename(10);
</code></pre>
| [
{
"answer_id": 74549097,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "function somename(a, b = somename(3, 5)) {\n return a + b;\n}\nconsole.log(somename(10));"
},
{
"... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74548993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11662563/"
] |
74,549,027 | <p>I attach you an example with my attempts because I am not able to manage / arrange data through R code. I have a datraframe that first column is the taxonomic lineage of microorganisms. And each column is a DNA sequence recodified by ASV1 and so on.</p>
<p>For each column, only some of its values will have value ==1... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522749/"
] |
74,549,045 | <p>I have a FastAPI web application using Jinja2 templates, which is working fine on <code>localhost</code>, but <strong>not</strong> in production. The problem is that is not generating URLs for JavaScript and other <code>static</code> files correctly. I have deployed it on EC2 instance using <code>gunicorn</code> and... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19296108/"
] |
74,549,071 | <p>I am relatively new to the field of Android Application development, and I have been meaning to ask this problem I have been trying to resolve for hours. The issue is that every time I click a card view from the fragment with the RecyclerView, the app crashes showing this error from the "Problem" tab.</p>
... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583098/"
] |
74,549,077 | <p>Assume I have data in a CSV that I've imported in R. This is a simplified version- the real sheet has 4700+ rows. There are months in 1 digits and there are months in 2 digits.</p>
<pre><code>| | Posted.On |
|1| 5/18/2022 |
|2| 07/04/2022|
|3| 6/20/2022 |
</code></pre>
<p>I would like to change all months in 1 di... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19375357/"
] |
74,549,078 | <p>I am a c++ newbie so I'm not sure how to write this, but basically I want a function that takes in a few parameters and returns a function pointer that does not need any parameters and can be executed for later use. Exactly like a closure.</p>
<p>I know c++ does not have closures, but can get some of the same effect... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7741858/"
] |
74,549,091 | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.footer_image {
height: 60rem;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code><footer&... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20573306/"
] |
74,549,113 | <p>When I read this doc: <a href="https://developers.google.com/android/guides/google-services-plugin" rel="nofollow noreferrer">https://developers.google.com/android/guides/google-services-plugin</a> they say :</p>
<blockquote>
<p>As part of enabling Google APIs or Firebase services in your Android application you may... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114043/"
] |
74,549,120 | <p>This is my data looks like</p>
<p><code>my_list = [('Australia',), ('Europe',)]</code></p>
<p>I need to remove the comma "," after every element.</p>
<p><code>new_list = [('Australia'), ('Europe')]</code></p>
<p>I can achieve this using a loop and extracting one element at a time and replacing it. Is there... | [
{
"answer_id": 74550770,
"author": "Camillionnaire",
"author_id": 16453562,
"author_profile": "https://Stackoverflow.com/users/16453562",
"pm_score": 1,
"selected": false,
"text": "values <- apply(datastackoverchange[,2:ncol(datastackoverchange)],2,FUN = function(x)datastackoverchange$Cl... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11402025/"
] |
74,549,121 | <p>I am trying to find all substrings within a multi string in python 3, I want to find all words in between the word 'Colour:':</p>
<p>example string:</p>
<pre><code>str = """
Colour: Black
Colour: Green
Colour: Black
Colour: Red
Colour: Orange
Colour: Blue
Colour: Green
"""
</code></pre>... | [
{
"answer_id": 74549298,
"author": "charon25",
"author_id": 16114044,
"author_profile": "https://Stackoverflow.com/users/16114044",
"pm_score": 2,
"selected": true,
"text": ". colours = re.findall(r'Colour: (.+)', str)\n re.findall colours = [line.split()[1] for line in str.splitlines()]... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16798681/"
] |
74,549,139 | <p>I need to show notice/pop ups upon hitting of a button. Similar approaches are working in other views and controllers of the app but here on this Import button things are not working since long. None of the <code>redirect_to</code> works in the controller while their similar usage in other controller works.</p>
<p><... | [
{
"answer_id": 74549611,
"author": "markets",
"author_id": 3033649,
"author_profile": "https://Stackoverflow.com/users/3033649",
"pm_score": 0,
"selected": false,
"text": "render redirect_to return return redirect_to(...)\n redirect_to(...) and return\n"
},
{
"answer_id": 7458218... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17796286/"
] |
74,549,165 | <p>I'm trying to dockerize a spring boot app but i'm having trouble building a jar file with maven.
I Already tried to follow <a href="https://stackoverflow.com/questions/27767264/how-to-dockerize-maven-project-and-how-many-ways-to-accomplish-it">this tutorial</a> but somehow my .jar isn't being updated by the 'mvn pac... | [
{
"answer_id": 74551436,
"author": "victor",
"author_id": 20583190,
"author_profile": "https://Stackoverflow.com/users/20583190",
"pm_score": 1,
"selected": true,
"text": "./mvnw spring-boot:build-image\n"
},
{
"answer_id": 74551601,
"author": "Ronak Jain",
"author_id": 2... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583190/"
] |
74,549,175 | <p>i'm trying to do a program that counts the sequence of binary numbers, let me give an example
the input is [0,0,0,1,1,0,0,0,1,1,1,1]
The output should be [0(the first number),3(number of 0 in sequence),2 (number of 1 in sequence),3,4]
the input size is infinite and it needs to be a list, so far what I have done is t... | [
{
"answer_id": 74552065,
"author": "Nicholas Carey",
"author_id": 467473,
"author_profile": "https://Stackoverflow.com/users/467473",
"pm_score": 0,
"selected": false,
"text": "?- run_length_encoding( [a,b,b,c,c,c] , Rs ) .\n Rs = [ a:1, b:2, c:3 ]\n run_length_encoding( Xs, Ys ) :- nonv... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20488471/"
] |
74,549,196 | <p>I have the following:</p>
<blockquote>
<pre><code> ID Value1 Value2 Code
0001 3.3 432 A
0001 0 654 A
0001 0 63 A
0002 0 7... | [
{
"answer_id": 74549351,
"author": "MrFlick",
"author_id": 2372064,
"author_profile": "https://Stackoverflow.com/users/2372064",
"pm_score": 0,
"selected": false,
"text": "if_else library(dplyr)\ndd %>% \n group_by(ID) %>% \n mutate(Value2=if_else(any(Value1!=0) & Value1==0, 0L, Value2... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19938845/"
] |
74,549,273 | <p>I'm trying to use min in a list that came from a .csv and some of the values are <em><strong>''</strong></em> how can I ignore those and also <em><strong>"0"</strong></em>?</p>
<p>I tried</p>
<pre><code>index1 = (life_expectancy.index(min(life_expectancy,)))
print(life_expectancy[index1])
</code></pre>
<p>... | [
{
"answer_id": 74549441,
"author": "Stef",
"author_id": 3080723,
"author_profile": "https://Stackoverflow.com/users/3080723",
"pm_score": 2,
"selected": false,
"text": "min filter min int def int_or_zero(s):\n try:\n return int(s)\n except ValueError:\n return 0\n\nde... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583292/"
] |
74,549,279 | <p>I am using popovers as part of an input validation process. I have the idea but I can't work out the syntax on how to get this to work.</p>
<p><a href="https://jsbin.com/sufitelodo/1/edit?html,js,output" rel="nofollow noreferrer">https://jsbin.com/sufitelodo/1/edit?html,js,output</a></p>
<p>This JSBin is the basis o... | [
{
"answer_id": 74549441,
"author": "Stef",
"author_id": 3080723,
"author_profile": "https://Stackoverflow.com/users/3080723",
"pm_score": 2,
"selected": false,
"text": "min filter min int def int_or_zero(s):\n try:\n return int(s)\n except ValueError:\n return 0\n\nde... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13062685/"
] |
74,549,322 | <p>I'm using ms sql server.
I have a simple table with a parent child relationship, like
Parent, Child</p>
<p>Now I need a query which delivers every Element with itself, all its successors and successors of them an so on.
Example</p>
<pre><code>Parent Child
------ -----
A A1
A1 A11
A A2
A2 A21
A21 ... | [
{
"answer_id": 74549745,
"author": "Nenad Zivkovic",
"author_id": 612181,
"author_profile": "https://Stackoverflow.com/users/612181",
"pm_score": 2,
"selected": true,
"text": "WITH CTE_AllRoots AS \n(\n SELECT Parent as Root FROM Table1\n UNION \n SELECT Child FROM Table1\n)\n, ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10364464/"
] |
74,549,328 | <p>Suppose I have an array with <code>302</code> elements. I want to split the array into <code>n = 6</code> groups (roughly equal size), such that it looks like the following. The following code works when <code>n = 6</code>. However, if <code>n</code> is <code>51</code> groups, then it failed and generated <code>60</... | [
{
"answer_id": 74549646,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 0,
"selected": false,
"text": "302 // n import numpy\n\nn = 51\ngroup_num = numpy.arange(302) // (302 / n)\ngroup_num[group_num == n] = n-1\npr... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1769197/"
] |
74,549,345 | <p>I've got some strings like:</p>
<pre><code>Cola12018
ColaKKK112018
Cola-22018
</code></pre>
<p>And I need retrieve just Cola from them and delete everything after in order to use further.</p>
<p>I tried</p>
<p>$cola = 'Cola.*'</p>
<p>What did I miss?</p>
<p>The main thing - I want to check that the word begins wi... | [
{
"answer_id": 74549646,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 0,
"selected": false,
"text": "302 // n import numpy\n\nn = 51\ngroup_num = numpy.arange(302) // (302 / n)\ngroup_num[group_num == n] = n-1\npr... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18644650/"
] |
74,549,349 | <p>Using invalid HTML I get the look I want, but using valid HTML I don't. Is there CSS that will allow me to configure the <FIGURE> or <FIGCAPTION> to emulate what the <SPAN> is doing?</p>
<p>The way I want it to look is on the left, the valid HTML is on the right.</p>
<p>Invalid HTML:</p>
<p><div cl... | [
{
"answer_id": 74549646,
"author": "Mauro Vanetti",
"author_id": 581285,
"author_profile": "https://Stackoverflow.com/users/581285",
"pm_score": 0,
"selected": false,
"text": "302 // n import numpy\n\nn = 51\ngroup_num = numpy.arange(302) // (302 / n)\ngroup_num[group_num == n] = n-1\npr... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5332013/"
] |
74,549,356 | <p>I am trying to share the Mongo connection with other modules in my Node.js project. I keep getting either <code>undefined</code> or <code>is not a function</code> when attempting to use the exported client. I also had a question around detecting if the connection is in fact open before performing operations on the d... | [
{
"answer_id": 74550076,
"author": "thecodeparadox",
"author_id": 690854,
"author_profile": "https://Stackoverflow.com/users/690854",
"pm_score": 1,
"selected": false,
"text": "const client = new MongoClient(uri, {\n useNewUrlParser: true,\n useUnifiedTopology: true,\n});\n\nlet __inst... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4797603/"
] |
74,549,395 | <p>I'm trying to create a simple flutter UI that is similar to the layout below. How would I create this without using any other libs/packages? All of the examples I've seen are using massive libraries. Looking for some small example of how to achieve this.</p>
<p>Example using a package: <a href="https://pub.dev/packa... | [
{
"answer_id": 74549520,
"author": "Petro",
"author_id": 2163927,
"author_profile": "https://Stackoverflow.com/users/2163927",
"pm_score": 0,
"selected": false,
"text": " Timeline(children: [\n const RightChild(\n asset: 'assets/delivery/order_placed.png',\n ... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2163927/"
] |
74,549,414 | <p>Trying to generate a BPMN diagram, even a basic one with start event, end event and some user tasks. Is there any Java libraries or API's available that would help me achieve this.
Have searched around a lot but could not find any suitable.
Any help would be appreciated</p>
| [
{
"answer_id": 74567634,
"author": "rob2universe",
"author_id": 1491439,
"author_profile": "https://Stackoverflow.com/users/1491439",
"pm_score": 2,
"selected": true,
"text": " public static void main(String[] args) {\n\n BpmnModelInstance modelInst;\n try {\n // Fil... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14859042/"
] |
74,549,427 | <p>When I render an array of objects and try to render component inside map function is gives me this error:
Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value).map is not a function
The problem occurs here:</p>
<pre><code>{comments.map((obj, i) => (
<CommentsBlock
k... | [
{
"answer_id": 74549551,
"author": "Tigran Petrosyan",
"author_id": 10422933,
"author_profile": "https://Stackoverflow.com/users/10422933",
"pm_score": 1,
"selected": false,
"text": "(isLoading ? [...Array(5)] : items).map((obj, index) \n [undefined, undefined, undefined, undefined, unde... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583316/"
] |
74,549,436 | <p>I'm migrating a Java Spring application to Spring Boot. I've transferred the application-context.xml configuration inside Java beans. However, when I try to launch the Spring Boot app, I get the following error:</p>
<blockquote>
<p>java.lang.NoSuchMethodError:
com.zaxxer.hikari.HikariDataSource.getMetricsTrackerFact... | [
{
"answer_id": 74562162,
"author": "TCH",
"author_id": 5611906,
"author_profile": "https://Stackoverflow.com/users/5611906",
"pm_score": 1,
"selected": true,
"text": "<dependency>\n <groupId>org.quartz-scheduler</groupId>\n <artifactId>quartz</artifactId>\n <version>${quartz.version}<... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5611906/"
] |
74,549,450 | <pre class="lang-html prettyprint-override"><code> <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content=&quo... | [
{
"answer_id": 74549564,
"author": "jerry",
"author_id": 20493210,
"author_profile": "https://Stackoverflow.com/users/20493210",
"pm_score": 2,
"selected": true,
"text": " let html =\n '<div class=\"answer\">\\\n <label class=\"answer-label\" for=\"answer\">Choice-1 </labe... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12314029/"
] |
74,549,487 | <p>I am very new to Maven, and I am creating a Maven parent and child project. I want the child project to have a different version than the parent, but if I change the version, then I am getting the error <code>Cannot resolve</code> for some of the dependencies.</p>
<p>How can I have a have a parent version different ... | [
{
"answer_id": 74549564,
"author": "jerry",
"author_id": 20493210,
"author_profile": "https://Stackoverflow.com/users/20493210",
"pm_score": 2,
"selected": true,
"text": " let html =\n '<div class=\"answer\">\\\n <label class=\"answer-label\" for=\"answer\">Choice-1 </labe... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7584240/"
] |
74,549,492 | <p>I have 2 pandas dataframes:</p>
<p>df1</p>
<pre><code> Home Place
a MS Z2
c KM Z3
d RR R2
</code></pre>
<p>df2</p>
<pre><code> Place1
a A2
c A66
z F32
x K41
t E90
</code></pre>
<p>I want to replace values of df2['Place1'] with df1['Place'] when indexes are matching and... | [
{
"answer_id": 74549556,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 1,
"selected": false,
"text": "update df2['Place1'].update(df1['Place'])\ndf2\nOut[75]: \n Place1\na Z2\nc Z3\nz F32\nx K41\nt E90\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583361/"
] |
74,549,542 | <p>can somebody help me?
I have problem with position in css. I would like to move first div to the right and second div move under it (first picture).When I use <strong>float: right</strong> for first <strong>div</strong> it looks like that these components are next to each other (second picture).</p>
<pre><code><d... | [
{
"answer_id": 74549556,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 1,
"selected": false,
"text": "update df2['Place1'].update(df1['Place'])\ndf2\nOut[75]: \n Place1\na Z2\nc Z3\nz F32\nx K41\nt E90\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14182697/"
] |
74,549,567 | <p>I'm trying to practice for a techniqual test where I have to count the number of characters in a DNA sequence, but no matter what I do the counter won't update, this is really frustrating as I learnt code with ruby and it would update, but Java seems to have an issue. I know there's something wrong with my syntaxt b... | [
{
"answer_id": 74549671,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 2,
"selected": false,
"text": "substring System.out.println(dna.substring(i)); ATGCGATACGCTTGA\nTGCGATACGCTTGA\nGCGATACGCTTGA\nCGATACGCTTGA\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583533/"
] |
74,549,568 | <p>I am working on a project to build a portal inside SharePoint online. Now i got this requirement:-</p>
<ul>
<li>To build a quick links web part in React SPFx (similar to the built-in modern Quick Links)</li>
<li>But this quick links can contain links to internal applications that can only be accessed using VPN.</li>... | [
{
"answer_id": 74549671,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 2,
"selected": false,
"text": "substring System.out.println(dna.substring(i)); ATGCGATACGCTTGA\nTGCGATACGCTTGA\nGCGATACGCTTGA\nCGATACGCTTGA\n... | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1146775/"
] |
74,549,582 | <p>I'm currently building a minimalist app following this CMake architecture:</p>
<p>-root</p>
<p>--QmlModule</p>
<p>---Component1.qml</p>
<p>---Component2.qml</p>
<p>--App1</p>
<p>---main.cpp</p>
<p>---main.qml</p>
<p>--App2</p>
<p>---main.cpp</p>
<p>---main.qml</p>
<p>I use "qt6_add_qml_module" to create a ... | [
{
"answer_id": 74602211,
"author": "Greg",
"author_id": 4373753,
"author_profile": "https://Stackoverflow.com/users/4373753",
"pm_score": 1,
"selected": true,
"text": "QQmlApplicationEngine engine;\nengine.addImportPath(\":/\");\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4373753/"
] |
74,549,589 | <p>i need a guide to establish a connection to a public web service, send request to it and get response back. for example this web service:</p>
<pre><code>http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
</code></pre>
<p>i've tried to test this API with SoapUI application. this API h... | [
{
"answer_id": 74602211,
"author": "Greg",
"author_id": 4373753,
"author_profile": "https://Stackoverflow.com/users/4373753",
"pm_score": 1,
"selected": true,
"text": "QQmlApplicationEngine engine;\nengine.addImportPath(\":/\");\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8150028/"
] |
74,549,597 | <p>I'm trying to create an Java Swing (with Ant) application to send an email to a desired address(My first time).The application builds successfully but when I click the button to send the email I get a lot of different error messages, with the first being a java.lang.NoClassDefFoundError: javax/activation/DataSource ... | [
{
"answer_id": 74602211,
"author": "Greg",
"author_id": 4373753,
"author_profile": "https://Stackoverflow.com/users/4373753",
"pm_score": 1,
"selected": true,
"text": "QQmlApplicationEngine engine;\nengine.addImportPath(\":/\");\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20325375/"
] |
74,549,610 | <p>Valid URL fails requests.get</p>
<p><a href="https://finance.yahoo.com/quote/AAPL/analysis?p=AAPL" rel="nofollow noreferrer">https://finance.yahoo.com/quote/AAPL/analysis?p=AAPL</a> is a valid URL as is not redirects</p>
<p>DOES NOT WORK</p>
<pre><code>import requests
url6 = 'https://finance.yahoo.com/quote/AAPL/an... | [
{
"answer_id": 74602211,
"author": "Greg",
"author_id": 4373753,
"author_profile": "https://Stackoverflow.com/users/4373753",
"pm_score": 1,
"selected": true,
"text": "QQmlApplicationEngine engine;\nengine.addImportPath(\":/\");\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20574706/"
] |
74,549,630 | <p>I test my script just printing return value of .split:</p>
<pre><code>for f in os.listdir():
f_name, f_ext = os.path.splitext(f)
print(f_name.split('-'))
</code></pre>
<p>and it shows me what I'd like to see - lists with 3 strings in each.</p>
<pre><code>['Earth ', ' Our Solar System ', ' #4']
['Saturn ', ' ... | [
{
"answer_id": 74602211,
"author": "Greg",
"author_id": 4373753,
"author_profile": "https://Stackoverflow.com/users/4373753",
"pm_score": 1,
"selected": true,
"text": "QQmlApplicationEngine engine;\nengine.addImportPath(\":/\");\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20562348/"
] |
74,549,658 | <p>When I run <code>Invoke-Sqlcmd</code> with a <code>-Query</code> that contains a password retrieved via <code>Read-Host</code> with the <code>-AsSecureString</code> parameter, and the value entered is <a href="https://learn.microsoft.com/en-us/previous-versions/azure/jj943764(v=azure.100)" rel="nofollow noreferrer">... | [
{
"answer_id": 74602211,
"author": "Greg",
"author_id": 4373753,
"author_profile": "https://Stackoverflow.com/users/4373753",
"pm_score": 1,
"selected": true,
"text": "QQmlApplicationEngine engine;\nengine.addImportPath(\":/\");\n"
}
] | 2022/11/23 | [
"https://Stackoverflow.com/questions/74549658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/533460/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.