qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,423,699 | <p>For example lest say I have those two lists:</p>
<pre><code>x = ["hi [ICON]", "apple [ICON]", "world [ICON]" ]
y = ["hi", "apple"]
</code></pre>
<p>How can I tell if all of list <code>y</code> is inside of list <code>x</code>?</p>
| [
{
"answer_id": 74423757,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 3,
"selected": true,
"text": "any all # First check each element of 'y' exist in at least one element of 'x'\n>>> [any(i in j for j in x) for i in... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10014106/"
] |
74,423,702 | <p>I came across the Apple website where I can see the same image/design on scrolling up to some extent and also animation on scrolling to the bottom and up.</p>
<p>Ref URL: <a href="https://www.apple.com/in/macbook-air-m2/" rel="nofollow noreferrer">https://www.apple.com/in/macbook-air-m2/</a></p>
<p>I want to know ho... | [
{
"answer_id": 74536881,
"author": "Shivangam Soni",
"author_id": 16659219,
"author_profile": "https://Stackoverflow.com/users/16659219",
"pm_score": 1,
"selected": false,
"text": "const observer = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n if (entry.isI... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11074422/"
] |
74,423,719 | <p>In my Vaadin (v.23.2.6) application I have a form tied up to Filter class which has 5 attributes.
All of them are optional, i.e. user can leave the blank.</p>
<pre><code> public FilterPanel(ApiBookUtils api) {
this.api = api;
this.authorField = new ComboBox<Author>("Author Name");
this.co... | [
{
"answer_id": 74441237,
"author": "Tatu Lund",
"author_id": 8962195,
"author_profile": "https://Stackoverflow.com/users/8962195",
"pm_score": -1,
"selected": false,
"text": "IntegerField null Binder null withNullPresentation(defaultValue) this.binder.forField(fromYear)\n .withNullPre... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4103615/"
] |
74,423,723 | <p>I deploy a docker swarm with 6 nodes. I built some images and I am trying to add them as services to the swarm. I have 5 microservices. When I run the on one host with docker-compose everything works fine. I run this command docker service create rate --with-registry-auth and I get the following message.</p>
<pre><c... | [
{
"answer_id": 74434087,
"author": "BMitch",
"author_id": 596285,
"author_profile": "https://Stackoverflow.com/users/596285",
"pm_score": 1,
"selected": false,
"text": "image rate:latest could not be accessed on a registry to record\nits digest. Each node will access rate:latest independ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17998172/"
] |
74,423,732 | <p>I have 2 folders separated, one for backend and one for frontend services:</p>
<ul>
<li>backend/docker-compose.yml</li>
<li>frontend/docker-compose.yml</li>
</ul>
<p>The backend has a headless <code>wordpress</code> installation on <code>nginx</code>, with the scope to serve the frontend as an api service. The front... | [
{
"answer_id": 74434087,
"author": "BMitch",
"author_id": 596285,
"author_profile": "https://Stackoverflow.com/users/596285",
"pm_score": 1,
"selected": false,
"text": "image rate:latest could not be accessed on a registry to record\nits digest. Each node will access rate:latest independ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4464905/"
] |
74,423,762 | <p>I am getting a multi-line block of text from the single column of a database query result set like this:</p>
<pre><code>$data = <<<DATA
DATE = FEE = PAYMENT
2021-03-09 = 119.25 = 119.25 = 2021-04-13
2021-03-15 = 119.25 = 119.25 = 2021-04-13
DATA;
</code></pre>
<p>I need to parse this text, ignore the ... | [
{
"answer_id": 74423844,
"author": "Markus Zeller",
"author_id": 2645713,
"author_profile": "https://Stackoverflow.com/users/2645713",
"pm_score": 1,
"selected": true,
"text": "$result = 'DATE = FEE = PAYMENT\n2021-03-09 = 119.25 = 119.25 = 2021-04-13\n\n2021-03-15 = 119.25 = 119.25... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10563104/"
] |
74,423,764 | <p>Need to create lists with the letters of the words of the first list by index. For example the first output list for the first index of all the words will be ['l', 'c', 'e', 't', 's', 'a', 's', 'm', 'p']. I have solved this problem in a certain way, but i need another way to do this without the except method.</p>
<p... | [
{
"answer_id": 74423844,
"author": "Markus Zeller",
"author_id": 2645713,
"author_profile": "https://Stackoverflow.com/users/2645713",
"pm_score": 1,
"selected": true,
"text": "$result = 'DATE = FEE = PAYMENT\n2021-03-09 = 119.25 = 119.25 = 2021-04-13\n\n2021-03-15 = 119.25 = 119.25... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494445/"
] |
74,423,772 | <p>I have a string with the names of a cities and the numbers of people living in them. I need to match only names of cities using Regex</p>
<pre><code>city = "New York - 8 468 000 Los Angeles - 3 849 000 Berlin - 3 645 000"
</code></pre>
<p>tried this</p>
<pre><code>[a-zA-Z]+(?:[\s-][a-zA-Z]+)*$
</code></pr... | [
{
"answer_id": 74423808,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 0,
"selected": false,
"text": "([^-]+?)\\s*-\\s*([\\d\\s]+)\n import re\n\ncity = \"New York - 8 468 000 Los Angeles - 3 849 000 Berlin - 3... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20250998/"
] |
74,423,773 | <p>I have an array of points and I'm looking to print the name of the points instead of the actual points.</p>
<pre><code>A = (2,0)
B = (3, 4)
C = (5, 6)
array1 = [A, B, C]
</code></pre>
<p>when I do <code>print(array1[0])</code> it ends up printing the values. But I want to print the letters such as A, B or C. How ... | [
{
"answer_id": 74423917,
"author": "romano_fafard",
"author_id": 4462565,
"author_profile": "https://Stackoverflow.com/users/4462565",
"pm_score": 1,
"selected": false,
"text": "print(\"A\") dictionary = {\"A\": (2, 0), \"B\": (3, 4), \"C\": (5, 6)} print(dictionary[\"A\"]) (2,0) diction... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494733/"
] |
74,423,781 | <p>I want the user to input values of elements to an array of 10 <code>int</code>s. Then I want to print out all the indexes of the values of the elements which when divided by 5 give 0.</p>
<p>I've tried doing it like this, but it's not working. How do I append the i's into an array?</p>
<pre><code>#include <stdio.... | [
{
"answer_id": 74423917,
"author": "romano_fafard",
"author_id": 4462565,
"author_profile": "https://Stackoverflow.com/users/4462565",
"pm_score": 1,
"selected": false,
"text": "print(\"A\") dictionary = {\"A\": (2, 0), \"B\": (3, 4), \"C\": (5, 6)} print(dictionary[\"A\"]) (2,0) diction... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19297945/"
] |
74,423,792 | <p>I have some data which looks like:</p>
<pre><code> NMUN
1 Cubo de Tierra del Vino, El
2 Peraleja, La
3 Franco, El
4 Pont de Vilomara i Rocafort, El
5 Gabias, Las
6 Adrada, La
7 ... | [
{
"answer_id": 74423837,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 3,
"selected": true,
"text": "gsub data$NMUN <- gsub(\"^(.*),\\\\s(.*)$\", \"\\\\2 \\\\1\", data$NMUN)\n\ndata\n#> NM... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6447399/"
] |
74,423,811 | <p>My goal is to view the content of the bottom page from the top of the other content page. In order to accomplish this, I used PushModalAsync to navigate and set the BackgroundColor property of the navigation page to Transparent. I can view the content on the bottom page on Android. However on the iOS platform, a bla... | [
{
"answer_id": 74425172,
"author": "Ivan Ičin",
"author_id": 202179,
"author_profile": "https://Stackoverflow.com/users/202179",
"pm_score": 1,
"selected": false,
"text": "ViewController <ContentPage ...\n xmlns:ios=\"clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpeci... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7498552/"
] |
74,423,822 | <p>I have a list of times of events in strings (i.e. ['Apr 24th 10:00 p.m.','Apr 26th 7:00 p.m.']).
I'd like to replace each instance of the number 10 with the number 7, 8 with the number 5 etc. Is there any way to have a list of values (i.e. [10,9,8,7,6,5]) that wherever one of those values is found in a string then t... | [
{
"answer_id": 74425172,
"author": "Ivan Ičin",
"author_id": 202179,
"author_profile": "https://Stackoverflow.com/users/202179",
"pm_score": 1,
"selected": false,
"text": "ViewController <ContentPage ...\n xmlns:ios=\"clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpeci... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494739/"
] |
74,423,826 | <p>I need to have a start and stop event on input range, so I can detect when dragging start and when it ends. Are these good events to use or is there a better way?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code... | [
{
"answer_id": 74425172,
"author": "Ivan Ičin",
"author_id": 202179,
"author_profile": "https://Stackoverflow.com/users/202179",
"pm_score": 1,
"selected": false,
"text": "ViewController <ContentPage ...\n xmlns:ios=\"clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpeci... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1009466/"
] |
74,423,880 | <p>For uni I have this project where i need to program a simple game in haskell. Right now I'm facing the following problem:</p>
<pre><code>instance Renderable Player where
render (MkPlayer pos rad bults _) = do playerpic <- displayimg pos rad "./images/player.bmp"
... | [
{
"answer_id": 74423927,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 3,
"selected": true,
"text": "mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b) instance Renderable Player where\n render (MkP... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15547208/"
] |
74,423,883 | <p><a href="https://i.stack.imgur.com/tU9Ds.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tU9Ds.png" alt="enter image description here" /></a>
React Routing Problem. I Install react-router-dom but it don't work how can i fix</p>
<p><a href="https://i.stack.imgur.com/f11W5.png" rel="nofollow norefer... | [
{
"answer_id": 74424010,
"author": "Arsalan-Zahid",
"author_id": 12104214,
"author_profile": "https://Stackoverflow.com/users/12104214",
"pm_score": 0,
"selected": false,
"text": "import React, { useContext, useEffect, useState } from \"react\";\nimport {useNavigate} from \"react-router-... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19347218/"
] |
74,423,896 | <p>Here is my an example of a document from my "Cart" schema:</p>
<pre><code>{
_id: 1,
line_items: [
{ item_id: 101, color: 'white', quantity: 1 },
{ item_id: 101, color: 'green', quantity: 1 },
{ item_id: 102, color: 'white', quantity: 1 },
]
}
</code></pre>
<p>I want to increase the quant... | [
{
"answer_id": 74424010,
"author": "Arsalan-Zahid",
"author_id": 12104214,
"author_profile": "https://Stackoverflow.com/users/12104214",
"pm_score": 0,
"selected": false,
"text": "import React, { useContext, useEffect, useState } from \"react\";\nimport {useNavigate} from \"react-router-... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19643541/"
] |
74,423,899 | <p>I have a large panel data set that includes job descriptions. I would like to extract the wages/salaries from the job descriptions. However, there is a lot of variability in how the salaries are stated in the job descriptions. Here are a few examples:</p>
<p>“The salary range in Colorado for this role is from USD $1... | [
{
"answer_id": 74424007,
"author": "SaSkY",
"author_id": 18104248,
"author_profile": "https://Stackoverflow.com/users/18104248",
"pm_score": 2,
"selected": false,
"text": "\\1 .*?(?:\\b(?:[sS]alary|[wW]age|[pP]ay)\\b).*?([$][\\d,.]+\\s*[ot-]+\\s*[\\d$,.]+\\d+)\n"
},
{
"answer_id"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20381052/"
] |
74,423,910 | <p>In <code>App.tsx</code>, I have:</p>
<pre><code>export default function App() {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='feed' screenOptions={{ headerShown: false, gestureDirection: 'vertical' }}>
<Stack.Scre... | [
{
"answer_id": 74459953,
"author": "Hardik prajapati",
"author_id": 18241250,
"author_profile": "https://Stackoverflow.com/users/18241250",
"pm_score": 0,
"selected": false,
"text": "const abc = [1, 2, 4];\n <FlatList\n horizontal={true}\n data={abc}\n maxToRen... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239879/"
] |
74,423,941 | <p>I deployed NGinx, php-fpm and php 8 on a EC2 / Linux 2 instance (T4g / ARM) to run a php application. As I had done for the previous version of this application and php 7.</p>
<p>It runs well, excepted for all first requests. Whatever the actions (clicking a button, submitted a text, etc.), the first request always ... | [
{
"answer_id": 74425072,
"author": "symcbean",
"author_id": 223992,
"author_profile": "https://Stackoverflow.com/users/223992",
"pm_score": 1,
"selected": false,
"text": "$upstream_response_time $request_time"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7863847/"
] |
74,423,945 | <p>I have a material ui design of a input type="file". How to validate the file and display the error message?</p>
<p>App.js</p>
<pre><code>import React from "react";
import {useForm } from "react-hook-form";
import Button from "@mui/material/Button";
import { MuiFileInput } from... | [
{
"answer_id": 74425072,
"author": "symcbean",
"author_id": 223992,
"author_profile": "https://Stackoverflow.com/users/223992",
"pm_score": 1,
"selected": false,
"text": "$upstream_response_time $request_time"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11766145/"
] |
74,423,948 | <p>Having this vector:</p>
<pre><code>vector <- c("236", "234", "", "12", "24", "3")
[1] "236" "234" "" "12" "24" "3"
</code></pre>
<p>I would like to check how many consecutive numbers there... | [
{
"answer_id": 74424134,
"author": "Waldi",
"author_id": 13513328,
"author_profile": "https://Stackoverflow.com/users/13513328",
"pm_score": 4,
"selected": true,
"text": "sapply(strsplit(vector,\"\"),\n function(x) {s <- sum(diff(as.numeric(x))==1); \n if (s) {s+... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13321647/"
] |
74,423,972 | <p>I have a dictionary that looks like this:</p>
<pre><code>dict = {id: ["gavin", "gavin123@email.com", age, 55, [111, 222, 333]]}
</code></pre>
<p>There are more keys but that's not important. I want to be able to change the age value to be a number instead of <strong>age</strong> so the new dictio... | [
{
"answer_id": 74424210,
"author": "Brijesh Varsani",
"author_id": 14525381,
"author_profile": "https://Stackoverflow.com/users/14525381",
"pm_score": 1,
"selected": false,
"text": "dict[id][2] = 20\n dict[\"id\"][2] = 20\n"
},
{
"answer_id": 74441207,
"author": "Woody1193",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74423972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494854/"
] |
74,424,016 | <p>I have a html table that I would like to make interactive, sorting, filtering etc. I watched this great <a href="https://www.youtube.com/watch?v=A20PY5RxdI8" rel="nofollow noreferrer">tutorial</a> & thought I would try replicating it. However nothing happens what so ever, I am not sure what I am missing? My code... | [
{
"answer_id": 74424210,
"author": "Brijesh Varsani",
"author_id": 14525381,
"author_profile": "https://Stackoverflow.com/users/14525381",
"pm_score": 1,
"selected": false,
"text": "dict[id][2] = 20\n dict[\"id\"][2] = 20\n"
},
{
"answer_id": 74441207,
"author": "Woody1193",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2730554/"
] |
74,424,048 | <p>I'm trying to make a video out of 4 still images with ffmpeg.</p>
<p>This is the command I am having trouble with getting working at the moment:</p>
<pre><code>ffmpeg -y -loop 1 -framerate 24 -t 3 \
-i ./images/title-card.png -loop 1 -framerate 24 -t 4 \
-i ./images/001.png -loop 1 -framerate 24 -t 4 \
-i ./images/0... | [
{
"answer_id": 74424395,
"author": "kesh",
"author_id": 4516027,
"author_profile": "https://Stackoverflow.com/users/4516027",
"pm_score": 1,
"selected": false,
"text": "setsar -filter_complex \"[0]setsar=1[v0];[1]setsar=1[v1];[2]setsar=1[v2];[3]setsar=1[v3];\n [v0][v1][v2... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1829990/"
] |
74,424,049 | <p>I want to write a script such that if the value is less than ...then color is red, if value = ...then color is yellow and if the value is greater than ...then color is dark magenta. I am just experimenting with powershell.</p>
<p>I am a Data Science student, don't know any powershell scripting, just want to have so... | [
{
"answer_id": 74424395,
"author": "kesh",
"author_id": 4516027,
"author_profile": "https://Stackoverflow.com/users/4516027",
"pm_score": 1,
"selected": false,
"text": "setsar -filter_complex \"[0]setsar=1[v0];[1]setsar=1[v1];[2]setsar=1[v2];[3]setsar=1[v3];\n [v0][v1][v2... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20379772/"
] |
74,424,072 | <p>I've read up on Readers-writer lock on wiki - <a href="https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock</a> but tried using only one counter and one lock.</p>
<p>I'm curious to know whether this implementation is valid. If ... | [
{
"answer_id": 74424518,
"author": "Dan Bonachea",
"author_id": 3528321,
"author_profile": "https://Stackoverflow.com/users/3528321",
"pm_score": 3,
"selected": true,
"text": "doWrite() num_of_writers==1 read() write() g lock g lock g g.wait() notify wait g.wait() doRead() g"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1745356/"
] |
74,424,158 | <p>I have a very easy question but somehow I'm having trouble with it...</p>
<p>I'm creating an 81x41 string 2d-array with numpy. I then iterate through all positions of this array and want to put a certain string inside each position.</p>
<p>For some reason, it doesn't assign the variable to the position. It remains e... | [
{
"answer_id": 74424518,
"author": "Dan Bonachea",
"author_id": 3528321,
"author_profile": "https://Stackoverflow.com/users/3528321",
"pm_score": 3,
"selected": true,
"text": "doWrite() num_of_writers==1 read() write() g lock g lock g g.wait() notify wait g.wait() doRead() g"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11285228/"
] |
74,424,178 | <p>I created a table in PGSQL (version 13) using the following command:</p>
<pre><code>db1=# create table temp2(
foo int PRIMARY KEY,
bar varchar(20) UNIQUE NOT NULL
);
CREATE TABLE
</code></pre>
<p>The <code>\d</code> or <code>d+</code> command does not list the associated indexes for the table (contrary to what I gat... | [
{
"answer_id": 74424697,
"author": "Adrian Klaver",
"author_id": 7070613,
"author_profile": "https://Stackoverflow.com/users/7070613",
"pm_score": 3,
"selected": true,
"text": "tuples_only on create table temp2(\nfoo int PRIMARY KEY,\nbar varchar(20) UNIQUE NOT NULL\n);\n\ntest(5432)=# ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348939/"
] |
74,424,201 | <p>I have a list of Strings that looks like that:</p>
<pre><code>['training_tech26.txt', 'training_tech41.txt', 'training_tech68.txt', 'training_tech84.txt', 'training_tech52.txt', 'training_sales17.txt', 'training_sales2.txt', 'training_tech47.txt', 'training_sales23.txt', 'training_sales3.txt', 'training_tech9.txt', ... | [
{
"answer_id": 74424304,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 0,
"selected": false,
"text": "input = ['training_tech26.txt', 'training_tech41.txt', 'training_tech68.txt', 'training_tech84.txt', 'training_te... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18598837/"
] |
74,424,229 | <p>When i try to run "docker-compose up". It is working. But when i try to run "docker run denexbackend_denex-service". I am getting mongo connection timeout error.</p>
<p><em><a href="https://github.com/mwlt68/Denex.BackEnd" rel="nofollow noreferrer">Denex.Backend</a> is open source project.</em></... | [
{
"answer_id": 74424304,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 0,
"selected": false,
"text": "input = ['training_tech26.txt', 'training_tech41.txt', 'training_tech68.txt', 'training_tech84.txt', 'training_te... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12603069/"
] |
74,424,288 | <p>I use WTelgramClient to remind patients about an upcoming doctor's appointment.</p>
<p>I am sending a message and I need to make sure that it is read.</p>
<pre><code>using var client = new WTelegram.Client(Config);
var user = await client.LoginUserIfNeeded();
var contact = await client.Contacts_ImportContacts(new[] ... | [
{
"answer_id": 74424304,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 0,
"selected": false,
"text": "input = ['training_tech26.txt', 'training_tech41.txt', 'training_tech68.txt', 'training_tech84.txt', 'training_te... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20479693/"
] |
74,424,292 | <p>Is there any way to make the SetPosition of a LineRenderer smoother. I'm making a 2D game, and I'm making a chameleon tongue, where it pops out of the mouth to a point and then comes back, but this makes the animation very fast, is there any way to make it slower and smoother?</p>
<p>My question is is there a way to... | [
{
"answer_id": 74424304,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 0,
"selected": false,
"text": "input = ['training_tech26.txt', 'training_tech41.txt', 'training_tech68.txt', 'training_tech84.txt', 'training_te... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19971812/"
] |
74,424,298 | <p>I have to make a C shell interpreter that can handle multiple ' | ' operators. So if I write something like this: <code>cat test.txt | sort | uniq -c | sort -nr</code> it works correctly. The problem comes when I try to use more complex functions, for example: <code>cat test.txt | awk '/" 404 / {print%7}' | sor... | [
{
"answer_id": 74424492,
"author": "0___________",
"author_id": 6110094,
"author_profile": "https://Stackoverflow.com/users/6110094",
"pm_score": 0,
"selected": false,
"text": "argv == NULL size_t splitstring(char **argv, size_t argvsize, char *str, const char *delim)\n{\n size_t pos ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9535098/"
] |
74,424,306 | <p>Trying setting up my SQLite data and populating from database to Lists database will return an <code>async Task<List<T>></code> that holds values I need to assign to my collection list. I get error code CS1503 :</p>
<pre><code>Using System.Collections.Generic;
Using SQLite;
public Task<List<Reward... | [
{
"answer_id": 74424949,
"author": "Jason",
"author_id": 1338,
"author_profile": "https://Stackoverflow.com/users/1338",
"pm_score": 2,
"selected": false,
"text": "await async rewardlist = await reward.GetItemsAsync();\n"
},
{
"answer_id": 74427704,
"author": "koishi",
"a... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495037/"
] |
74,424,324 | <p>I want to increment progress bar value every second, but every time I increment variable, value start incrementing faster then I defined.</p>
<p>Here is an example:</p>
<pre class="lang-kotlin prettyprint-override"><code>var progress by remember { mutableStateOf(0.00f) }
val animatedProgress by animateFloatAsState(
... | [
{
"answer_id": 74424707,
"author": "Gabriele Mariotti",
"author_id": 2016562,
"author_profile": "https://Stackoverflow.com/users/2016562",
"pm_score": 1,
"selected": false,
"text": "val state = remember { ProgressState() }\n\nDisposableEffect(Unit) {\n state.start()\n onDispose {\n... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18939913/"
] |
74,424,343 | <p>I have created this pandas dataframe:</p>
<pre><code>import numpy as np
import pandas as pd
ds = {"col1":[1,2,3,2,2,2,3,4,1,0,0,0,0,0,1,2,3,5]}
df = pd.DataFrame(data=ds)
</code></pre>
<p>which looks like this:</p>
<pre><code>print(df)
col1
0 1
1 2
2 3
3 2
4 2
5 2
6 ... | [
{
"answer_id": 74424707,
"author": "Gabriele Mariotti",
"author_id": 2016562,
"author_profile": "https://Stackoverflow.com/users/2016562",
"pm_score": 1,
"selected": false,
"text": "val state = remember { ProgressState() }\n\nDisposableEffect(Unit) {\n state.start()\n onDispose {\n... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15439524/"
] |
74,424,356 | <p>I am trying to create a very large wordlist with each word in a separate line. I generate the words using some logic and storing them using StringBuilder. It appears in tests that I create some duplicated words e.g.</p>
<pre><code>!AngryDogAngry1916!
@AngryAngryDog1916!
:AngryDog1916!
!AngryDogAngry1916!
...
</code>... | [
{
"answer_id": 74425379,
"author": "Jämes",
"author_id": 2780334,
"author_profile": "https://Stackoverflow.com/users/2780334",
"pm_score": 0,
"selected": false,
"text": "HashSet<T> StringBuilder StringBuilder HashSet<T> StringBuilder StringBuilder StringBuilder Environment.NewLine HashSe... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806967/"
] |
74,424,368 | <p>I've got something challenging (at least for me) to do. There is this OpenAPI 3.0 file that needs some dicing based on the tags (i.e. cut into as many chunks as there are items in the <code>tags</code> property.</p>
<p>For simplicity, there 2 tags in this example.
So, all the <code>paths</code> that belong to the <s... | [
{
"answer_id": 74425379,
"author": "Jämes",
"author_id": 2780334,
"author_profile": "https://Stackoverflow.com/users/2780334",
"pm_score": 0,
"selected": false,
"text": "HashSet<T> StringBuilder StringBuilder HashSet<T> StringBuilder StringBuilder StringBuilder Environment.NewLine HashSe... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463822/"
] |
74,424,379 | <p>In below query the <code>awarded</code>, <code>banned</code>, <code>featured</code> and <code>published</code> parts are being ignored, why?</p>
<p>Query: Show me a list of all featured published books with an author that has been awarded and has not been banned.</p>
<pre><code>$books = myBooks::with('authors')
... | [
{
"answer_id": 74424687,
"author": "Vlad",
"author_id": 20382571,
"author_profile": "https://Stackoverflow.com/users/20382571",
"pm_score": 0,
"selected": false,
"text": "awarded banned featured published $books = Books::with('authors')\n ->whereHas('authors', function ($query) {\n ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78297/"
] |
74,424,430 | <p>I am breaking a monolith that is hosted as an app service on Azure. Application is made on .NET 4.8.</p>
<p>Is it possible to keep existing API calls in place, but redirect to a microservice instead of processing it by existing APP service?</p>
<p>Example:
Call POST
<strong>some-url.azurewebsites.com/api/some-endpoi... | [
{
"answer_id": 74424687,
"author": "Vlad",
"author_id": 20382571,
"author_profile": "https://Stackoverflow.com/users/20382571",
"pm_score": 0,
"selected": false,
"text": "awarded banned featured published $books = Books::with('authors')\n ->whereHas('authors', function ($query) {\n ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2200319/"
] |
74,424,432 | <p>I have my azure pipeline doing a kubernetes@1 task with my kubernetes config:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
name: tennant-service-deployment
labels:
app: tennant-service
spec:
replicas: 3
selector:
matchLabels:
app: tennant-service
template:
metadata:
... | [
{
"answer_id": 74426348,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": " resources:\n pipelines:\n - pipeline: TenentServiceImage\n source: Tenent Service Image\n ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/133584/"
] |
74,424,433 | <p>In the React Navigation <a href="https://reactnavigation.org/docs/header-buttons" rel="nofollow noreferrer">documentation for Header Buttons</a>, there is a code that creates a function that updates the "count" state.</p>
<p><code>const [count, setCount] = React.useState(0);</code></p>
<p><code><Button ... | [
{
"answer_id": 74426348,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": " resources:\n pipelines:\n - pipeline: TenentServiceImage\n source: Tenent Service Image\n ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/761902/"
] |
74,424,457 | <p>I have data with timestamps, I want to make it into 1min time series and fill the missing values in rows that are created with the last input. However, also have a limit on the ffill function as well. So, if the next input is missing for too long, leave NaN.</p>
<p>Data:</p>
<pre><code>timestamp pay
2020-1... | [
{
"answer_id": 74424776,
"author": "Bushmaster",
"author_id": 15415267,
"author_profile": "https://Stackoverflow.com/users/15415267",
"pm_score": 2,
"selected": false,
"text": "mask = df.set_index('timestamp').sort_index().resample('1Min').ffill(limit=1440)\n"
},
{
"answer_id": 7... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20489776/"
] |
74,424,476 | <p>I'm using Oracle and SQL Developer. I have downloaded HR schema and need to do some queries with it. Now I'm working with table Employees. As an user <strong>I need to see employees with the highest gap between their salary and the average salary of all later hired colleagues in corresponding department</strong>. It... | [
{
"answer_id": 74424517,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": false,
"text": " AVG(salary) OVER(\n PARTITION BY department_id\n ORDER BY hire_date \n ROWS BETWEEN UNBOUNDED... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18744508/"
] |
74,424,507 | <p>I am having a heck of a time using an environment variable with a semicolon in a properties file read by WildFly (24) in Linux. One like:</p>
<p><code>DATABASE_JDBC_URL=jdbc:sqlserver://sqlserver.c3klg5a2ws.us-east-1.rds.amazonaws.com:1433;DatabaseName=ejbca;encrypt=false</code></p>
<p>The issue is that its truncat... | [
{
"answer_id": 74431578,
"author": "andrewJames",
"author_id": 12567365,
"author_profile": "https://Stackoverflow.com/users/12567365",
"pm_score": 2,
"selected": true,
"text": "{ } {;}"
},
{
"answer_id": 74554745,
"author": "Alex G.",
"author_id": 16345396,
"author_pr... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16345396/"
] |
74,424,631 | <p>I'm trying to initialize a dummy array of length <code>n</code> using <code>np.zeros(n)</code> with <code>dtype=object</code>. I want to use this dummy array to store <code>n</code> copies of another array of length <code>m</code>.
I'm trying to avoid for loop to set values at each index.</p>
<p>I tried using the be... | [
{
"answer_id": 74431578,
"author": "andrewJames",
"author_id": 12567365,
"author_profile": "https://Stackoverflow.com/users/12567365",
"pm_score": 2,
"selected": true,
"text": "{ } {;}"
},
{
"answer_id": 74554745,
"author": "Alex G.",
"author_id": 16345396,
"author_pr... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20278669/"
] |
74,424,654 | <pre><code>SELECT CAST(purchase_price AS FLOAT64)
FROM customer_data.customer_purchase
ORDER BY CAST(purchase_price AS FLOAT64) DESC
</code></pre>
<p>This is what someone wrote, and it's working fine. Is it necessary to have <code>CAST</code> twice? Why is that so? Thank you!</p>
<p>I tried removing <code>CAST</code> f... | [
{
"answer_id": 74431578,
"author": "andrewJames",
"author_id": 12567365,
"author_profile": "https://Stackoverflow.com/users/12567365",
"pm_score": 2,
"selected": true,
"text": "{ } {;}"
},
{
"answer_id": 74554745,
"author": "Alex G.",
"author_id": 16345396,
"author_pr... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19325292/"
] |
74,424,661 | <p>My current program prints all the different sums that are generated with the given integers. Instead of the program printing the content of the list, I would want to print only the lenght of the list.</p>
<pre><code>def sums(items):
if len(items) == 1:
return items
else:
new_list = []
... | [
{
"answer_id": 74424676,
"author": "svfat",
"author_id": 2419628,
"author_profile": "https://Stackoverflow.com/users/2419628",
"pm_score": 0,
"selected": false,
"text": "if __name__ == \"__main__\":\n print(len(sums([1, 2, 3]))) \n print(len(sums([2, 2, 3])))\n"
},
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10332465/"
] |
74,424,671 | <p>My <code>python --version</code> is Python 3.9.6
And my <code>python3 --version</code> is Python 3.10.8</p>
<p>I believe because of this I have a problem with running flask applications in VsCode. When I run one I receive <code>ModuleNotFoundError: No module named 'flask</code> error, however, I did install flask m... | [
{
"answer_id": 74427331,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 2,
"selected": true,
"text": "import sys\nprint(sys.executable)\n <pythonpath> -m pip install flask\n"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18930222/"
] |
74,424,684 | <p>I'm using dash (python lib to make dashboards) and i'm having a problem with bootstrap components. I can´t exclude the right margin from the container. I'm usign this: <code>class_name='m-0'</code> on the container class. Already tried using <code>style={'margin': '0px'}</code> too, but keeps this same way.</p>
<pre... | [
{
"answer_id": 74427331,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 2,
"selected": true,
"text": "import sys\nprint(sys.executable)\n <pythonpath> -m pip install flask\n"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17856015/"
] |
74,424,691 | <p><a href="https://i.stack.imgur.com/Jbll5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jbll5.png" alt="My Code" /></a>
I have been trying to solve the problem set 1 in CS50, language C. I've come to this point, but I got stuck in here. I want my code to ask for a new input while(n>=9 || n<... | [
{
"answer_id": 74424777,
"author": "eRtuSa",
"author_id": 16422168,
"author_profile": "https://Stackoverflow.com/users/16422168",
"pm_score": 0,
"selected": false,
"text": "(n >= 9 || n <= 0) return 0 main()"
},
{
"answer_id": 74424898,
"author": "emetsipe",
"author_id": ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20493966/"
] |
74,424,693 | <p>I am about half way through an intro to python course. I very recently started studying lists/dictionaries. I was trying to create my own python code to try to learn how to work with dictionaries better. Basically, what I am trying to do is get a user's input as to what section of a video series they are on and then... | [
{
"answer_id": 74424715,
"author": "Mark",
"author_id": 2203038,
"author_profile": "https://Stackoverflow.com/users/2203038",
"pm_score": 3,
"selected": true,
"text": "video_dict = {\n 1 : 9, # Section 1 is 9 minutes\n 2 : 75,\n 3 : 174,\n 4 : 100\n}\n\n\n\ncurrent_section ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9221493/"
] |
74,424,704 | <p>I have a list of lists each of those lists having one element. Is there a "pythonic" way to turn this into a list of elements that aren't lists outside of using the loop displayed below?</p>
<pre><code>un_list = []
for x in home_times:
y=x[0]
un_list.append(y)
</code></pre>
| [
{
"answer_id": 74424715,
"author": "Mark",
"author_id": 2203038,
"author_profile": "https://Stackoverflow.com/users/2203038",
"pm_score": 3,
"selected": true,
"text": "video_dict = {\n 1 : 9, # Section 1 is 9 minutes\n 2 : 75,\n 3 : 174,\n 4 : 100\n}\n\n\n\ncurrent_section ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494739/"
] |
74,424,708 | <blockquote>
<p>Create a function in python that replaces at least four different words or phrases with internet slang acronyms such as LOL, OMG, TBH. For example, if the user enters a sentence "Oh my god, I am scared to be honest." The output should be "OMG I am scared TBH". <strong>The program mus... | [
{
"answer_id": 74424902,
"author": "not a tshirt",
"author_id": 13190923,
"author_profile": "https://Stackoverflow.com/users/13190923",
"pm_score": 1,
"selected": false,
"text": "slang new_string len(slang) - 1 if (i < Len(slang)):\n i = i + 1\n i"
},
{
"answer_id": 74425792,
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495039/"
] |
74,424,760 | <p>I have this code. I print the content of a DIV via its ID, but omit an image. I would like your support to know how to make that image be included. (the image is also inside the DIV)</p>
<p>impresion = The DIV to print</p>
<pre><code>function printDiv(impresion) {
var contenido= document.getElementById(impresio... | [
{
"answer_id": 74424902,
"author": "not a tshirt",
"author_id": 13190923,
"author_profile": "https://Stackoverflow.com/users/13190923",
"pm_score": 1,
"selected": false,
"text": "slang new_string len(slang) - 1 if (i < Len(slang)):\n i = i + 1\n i"
},
{
"answer_id": 74425792,
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13901700/"
] |
74,424,769 | <p>More specifically, <code>adjustment_type</code> keeps getting (seemingly) updated on each <code>terraform plan</code>. Why is that and can it be avoided?</p>
<pre><code>Terraform will perform the following actions:
# aws_autoscaling_policy.this will be updated in-place
~ resource "aws_autoscaling_policy&qu... | [
{
"answer_id": 74427390,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "resource \"aws_autoscaling_policy\" \"this\" {\n name = var.service_name # Same between `terraform` ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16672610/"
] |
74,424,771 | <p>I am trying to fetch profile image from firestore. But it is giving an error.
Here is the code of fuction which is use to get the image from database. Kindly help if you can</p>
<pre><code>Future<String> getUserImage() async {
final uid = auth.currentUser?.uid;
final users = await firestore
.collectio... | [
{
"answer_id": 74427390,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "resource \"aws_autoscaling_policy\" \"this\" {\n name = var.service_name # Same between `terraform` ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14305969/"
] |
74,424,780 | <p>Im using selenium-java 4.6.0 and Im capturing network traffic.When I try to import the selenium class for 'Network', I get several options :</p>
<p>-org.openqa.selenium.devtools.v107.network.Network;
-org.openqa.selenium.devtools.v106.network.Network;
-etc...</p>
<p>Is there a way to select always the last version a... | [
{
"answer_id": 74427390,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "resource \"aws_autoscaling_policy\" \"this\" {\n name = var.service_name # Same between `terraform` ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6317663/"
] |
74,424,796 | <p>I want to create a progress bar in flutter which is like this
<a href="https://i.stack.imgur.com/faVdV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/faVdV.png" alt="enter image description here" /></a></p>
<p>I get the data of week from backend but I have to create it this way.
and the icon on w... | [
{
"answer_id": 74424887,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 0,
"selected": false,
"text": "Stepper type: StepperType.horizontal"
},
{
"answer_id": 74425698,
"author": "Stellar Creed",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14729488/"
] |
74,424,807 | <p>I have a dataframe as a result of a pivot which has several thousand columns (representing time-boxed attributes). Below is a much shortened version for resemblance.</p>
<pre><code>d = {'incount - 14:00': [1,'NaN', 1,1,'NaN','NaN','NaN','NaN',1],
'incount - 15:00': [2,1,2,'NaN','NaN','NaN',1,4,'NaN'],
'out... | [
{
"answer_id": 74424887,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 0,
"selected": false,
"text": "Stepper type: StepperType.horizontal"
},
{
"answer_id": 74425698,
"author": "Stellar Creed",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20215078/"
] |
74,424,811 | <p>I am getting the error:</p>
<blockquote>
<p>Error Code: 3780. Referencing column 'category' and referenced column 'category_id' in foreign key constraint 'product_ibfk_1' are incompatible.</p>
</blockquote>
<pre><code>drop table if exists Provider;
drop table if exists Category;
drop table if exists Product;
create... | [
{
"answer_id": 74424887,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 0,
"selected": false,
"text": "Stepper type: StepperType.horizontal"
},
{
"answer_id": 74425698,
"author": "Stellar Creed",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20493776/"
] |
74,424,827 | <h2>Explanation</h2>
<p>I'm making <strong>program that use a <em>XML</em> file to save some values to use as settings</strong>, and <strong>only need to read and modify the element values</strong> in the <em>XML</em>. The <strong>code is written in <em>Java</em></strong> and I'm <strong>using <em><a href="http://www.j... | [
{
"answer_id": 74428874,
"author": "Michael Kay",
"author_id": 415448,
"author_profile": "https://Stackoverflow.com/users/415448",
"pm_score": 1,
"selected": false,
"text": "setElementValue() xmlOutput.output(settingsDoc, settingsWriter);"
},
{
"answer_id": 74438345,
"author"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18646685/"
] |
74,424,840 | <p>Below is my review.html.erb:</p>
<pre><code><% provide(:title, 'All reviews') %>
<h1>All reviews</h1>
<ol class="reviews">
<%= render @reviews %>
</ol>
<%= will_paginate @reviews %>
</code></pre>
<p>And my _review.html.erb looks like:</p>
<pre><code><li>
... | [
{
"answer_id": 74428544,
"author": "LihnNguyen",
"author_id": 15527415,
"author_profile": "https://Stackoverflow.com/users/15527415",
"pm_score": -1,
"selected": false,
"text": "_review.html.erb Student.find(review.student_id) <li>\n <p>Student: <%= review.student&.name%></p> // chang... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17257723/"
] |
74,424,842 | <p>Fairly new to python, I have been struggling with creating a calculated column based off of the variable values of each item.</p>
<p>I Have this table below with DF being the dataframe name</p>
<p><a href="https://i.stack.imgur.com/08DKR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/08DKR.png" a... | [
{
"answer_id": 74424976,
"author": "Rawson",
"author_id": 18571565,
"author_profile": "https://Stackoverflow.com/users/18571565",
"pm_score": 2,
"selected": true,
"text": "PE Ratio import pandas as pd\n\ndf = pd.DataFrame({\"PE Ratio\": [1,2,3,4,5,6,7],\n \"Industry\": ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20427838/"
] |
74,424,846 | <p>Is there a way to remove entries from a counter object if the value matches a certain condition. For example:</p>
<pre><code>Counter({'a': 1142,'b':1004,'c':100,'d':5})
</code></pre>
<p>I want to drop all indexes where it is less than 1000, so I just have 'a' and 'b' left. I know I can loop through each and then del... | [
{
"answer_id": 74424872,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "from collections import Counter\n\nc = Counter({'a': 1142,'b':1004,'c':100,'d':5})\n\nfor k in list(c):\n if c[k... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5137645/"
] |
74,424,848 | <pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link ... | [
{
"answer_id": 74424872,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "from collections import Counter\n\nc = Counter({'a': 1142,'b':1004,'c':100,'d':5})\n\nfor k in list(c):\n if c[k... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461001/"
] |
74,424,878 | <p>I started learning Thymeleaf templating with SpringBoot and my learning path was blocked by some implicit issue i could not find....</p>
<p>The issue is: SpringBoot app does not see template, although:</p>
<ol>
<li><p>Controller looks like
<a href="https://i.stack.imgur.com/s4wQJ.png" rel="nofollow noreferrer"><img ... | [
{
"answer_id": 74424962,
"author": "void void",
"author_id": 18969611,
"author_profile": "https://Stackoverflow.com/users/18969611",
"pm_score": 3,
"selected": true,
"text": "@RestController @Controller @RestController @RestController @ResponseBody @ResponseBody"
},
{
"answer_id"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3292527/"
] |
74,424,933 | <p>I'm trying to create a simple search bar animation, more specifically, when hovering over the bar, the search history pops up. However, when I try .search-bar-input:hover + .search-history, code doesn't work. I'm new to html, so it's possible it's a basic bug - but I can't find an answer anywhere</p>
<pre><code><... | [
{
"answer_id": 74424962,
"author": "void void",
"author_id": 18969611,
"author_profile": "https://Stackoverflow.com/users/18969611",
"pm_score": 3,
"selected": true,
"text": "@RestController @Controller @RestController @RestController @ResponseBody @ResponseBody"
},
{
"answer_id"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495411/"
] |
74,424,945 | <p>Full Error:
InvalidOperationException: Cannot get the value of a token type 'Number' as a string.
System.Text.Json.Utf8JsonReader.GetString()</p>
<p>JsonException: The JSON value could not be converted to System.String. Path: $[0].status | LineNumber: 0 | BytePositionInLine: 197.
System.Text.Json.ThrowHelper.ReThrow... | [
{
"answer_id": 74424962,
"author": "void void",
"author_id": 18969611,
"author_profile": "https://Stackoverflow.com/users/18969611",
"pm_score": 3,
"selected": true,
"text": "@RestController @Controller @RestController @RestController @ResponseBody @ResponseBody"
},
{
"answer_id"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19509283/"
] |
74,424,963 | <p>I want to get <code><a></code> element of html. I use xPath <code>/html/body/nav/div/a</code> but not correct. Someone know how I get the <code>Example text</code> ?</p>
<pre><code><nav class="navbar navbar-expand-xl" id="menu">
<div>
<a>
<i class="fas fa-user... | [
{
"answer_id": 74425146,
"author": "Shaman Technology",
"author_id": 15475207,
"author_profile": "https://Stackoverflow.com/users/15475207",
"pm_score": -1,
"selected": false,
"text": "<i class=\"fas fa-user mr-2\"> Example text </i>\n <?php\n $doc = new DOMDocument();\n $doc->loadHTML... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20409409/"
] |
74,424,989 | <p>I have a dataFrame containing a column of names and I want to extract the last name and make that a new column. However, I am running into a problem.</p>
<p>Here is a toy example of my dataframe:</p>
<pre><code> Candidate_Name Party State District Office Year ... | [
{
"answer_id": 74425146,
"author": "Shaman Technology",
"author_id": 15475207,
"author_profile": "https://Stackoverflow.com/users/15475207",
"pm_score": -1,
"selected": false,
"text": "<i class=\"fas fa-user mr-2\"> Example text </i>\n <?php\n $doc = new DOMDocument();\n $doc->loadHTML... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74424989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12394134/"
] |
74,425,008 | <p>I'm able to import data to a list. For example:</p>
<pre><code>write.csv(mtcars, "mtcars.csv")
write.csv(iris, "iris.csv")
</code></pre>
<pre><code>files <- list.files(pattern="*.csv")
</code></pre>
<pre><code>imported_files <- list()
for(i in seq_along(files)){
imported_files[[... | [
{
"answer_id": 74425146,
"author": "Shaman Technology",
"author_id": 15475207,
"author_profile": "https://Stackoverflow.com/users/15475207",
"pm_score": -1,
"selected": false,
"text": "<i class=\"fas fa-user mr-2\"> Example text </i>\n <?php\n $doc = new DOMDocument();\n $doc->loadHTML... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13874036/"
] |
74,425,023 | <p>I'm working on an RPG project, and want to get a preview of how costs will shake out.</p>
<p>The plan is for every raise of an attribute, you pay its new value times 9.</p>
<p>Going from 1 to 2 costs 18 XP.</p>
<p>If you wish to go from 1 to 4, you need to pay (2x9)+(3x9)+(4x9), or (9x9), 72.</p>
<p>I want to be abl... | [
{
"answer_id": 74425146,
"author": "Shaman Technology",
"author_id": 15475207,
"author_profile": "https://Stackoverflow.com/users/15475207",
"pm_score": -1,
"selected": false,
"text": "<i class=\"fas fa-user mr-2\"> Example text </i>\n <?php\n $doc = new DOMDocument();\n $doc->loadHTML... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495521/"
] |
74,425,038 | <p>When implementing a reactive endpoint, is there any difference between returning <code>Uni<List<T>></code> vs <code>Multi<T></code> ?</p>
<pre class="lang-java prettyprint-override"><code>@Path("/fruits")
public class FruitResource {
@GET
@Path("uni")
public Uni<... | [
{
"answer_id": 74427724,
"author": "geoand",
"author_id": 2504224,
"author_profile": "https://Stackoverflow.com/users/2504224",
"pm_score": 1,
"selected": false,
"text": "Multi<T> Uni<List<T>> List<T>"
},
{
"answer_id": 74427895,
"author": "Davide D'Alto",
"author_id": 24... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5521607/"
] |
74,425,063 | <p>How can I create a function to convert the string "ABCD" to an array like: ["A", "AB", "ABC", "ABCD"] in Javascript ?</p>
<hr />
<p>(I don't know how to exactly describe this process in English so I just put the question in the title, so, would be great if there was ... | [
{
"answer_id": 74425084,
"author": "Dimava",
"author_id": 5734961,
"author_profile": "https://Stackoverflow.com/users/5734961",
"pm_score": 1,
"selected": false,
"text": "const s = 'ABCD'\n\nfunction f(s) {\n return s // = 'ABCD'\n // make array of length s.length\n .spl... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18094325/"
] |
74,425,069 | <p>guys.</p>
<p>I have three string lists like that:</p>
<pre><code>list1 list2 list3
[0]xxx25, [0]48,yyy [0]95,www
[1]xxx36, [1]25,yyy [1]75,www
[2]xxx95, [2]36,www
[3]xxx48,
[4]xxx75,
</code></pre>
<p>I want to end up with list1 like that:</p>
<pre><code>list1... | [
{
"answer_id": 74425084,
"author": "Dimava",
"author_id": 5734961,
"author_profile": "https://Stackoverflow.com/users/5734961",
"pm_score": 1,
"selected": false,
"text": "const s = 'ABCD'\n\nfunction f(s) {\n return s // = 'ABCD'\n // make array of length s.length\n .spl... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16224909/"
] |
74,425,076 | <p>It's been a while since I played around with Shiny, and I want to insert a UI and remove the UI whenever I toggle between two values of <code>radioButtons()</code>. Ideally, I want the Z <code>selectInput()</code> to appear whenever the user selects <code>TRUE</code> from the radio button; I'd also want it to disapp... | [
{
"answer_id": 74425084,
"author": "Dimava",
"author_id": 5734961,
"author_profile": "https://Stackoverflow.com/users/5734961",
"pm_score": 1,
"selected": false,
"text": "const s = 'ABCD'\n\nfunction f(s) {\n return s // = 'ABCD'\n // make array of length s.length\n .spl... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6710466/"
] |
74,425,083 | <p>I have a multipart form which includes 'Name', 'Email' and 'Phone Number' fields.</p>
<p>Note: The phone number 'field' is actually made up of 10 individual 'single-digit' fields.</p>
<p>I want to provide the user with a 'Clear Phone Number" button to reset the phone number fields if they accidentally enter the... | [
{
"answer_id": 74425171,
"author": "dale landry",
"author_id": 1533592,
"author_profile": "https://Stackoverflow.com/users/1533592",
"pm_score": 3,
"selected": true,
"text": "let inputs = document.querySelectorAll('.phoneField'); let btnClear = document.querySelector('button');\nlet inpu... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8322896/"
] |
74,425,090 | <pre><code>def arithmetic_sequence():
a = float(input('Type the first term'))
d = float(input('Type the difference'))
n = float(input("Type the number of values"))
if a == ValueError:
print("Write a value")
elif d == ValueError:
print("Write a value")
... | [
{
"answer_id": 74425171,
"author": "dale landry",
"author_id": 1533592,
"author_profile": "https://Stackoverflow.com/users/1533592",
"pm_score": 3,
"selected": true,
"text": "let inputs = document.querySelectorAll('.phoneField'); let btnClear = document.querySelector('button');\nlet inpu... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495630/"
] |
74,425,102 | <p>I'm trying to upload a script to my ESP32 DOIT board through Arduino IDE. tl;dr: I'm trying to get a string from a webform and print it on a 0.96" OLED display.</p>
<p>The code I'm using is a combination of two scripts: the first one was a <a href="https://randomnerdtutorials.com/esp32-esp8266-input-data-html-f... | [
{
"answer_id": 74425427,
"author": "romkey",
"author_id": 2670348,
"author_profile": "https://Stackoverflow.com/users/2670348",
"pm_score": 2,
"selected": false,
"text": "delay() loop() boolean show_message = false;\nString input_message;\n\nvoid setup() {\n ...\n\n server.on(\"/get\",... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20140130/"
] |
74,425,104 | <p>I'm using VSCode with Python 3.11.0 in a virtual enviroment. I have installed the aforementioned toolchain to configure and launch LTSpice models.</p>
<p>However, it seems not to work and I cannot find why (I'm quite new to python programming). I attach here the actual code and the traceback. Notice that the main co... | [
{
"answer_id": 74596069,
"author": "user20587669",
"author_id": 20587669,
"author_profile": "https://Stackoverflow.com/users/20587669",
"pm_score": 0,
"selected": false,
"text": "else: # Windows\n LTspice_exe = [r\"C:\\Program Files\\LTC\\LTspiceXVII\\XVIIx64.exe\"]\n LTspice_arg ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495620/"
] |
74,425,134 | <p>I have maybe a very naive question (I am no expert in C programming), but I couldn't get a fully satisfactory explanation. Here is just the declaration of static array and a few prints:</p>
<pre><code>#include <stdlib.h>
#include <stdio.h>
void main() {
int N=3, a[N];
for (int i=0; i<N; i++) a... | [
{
"answer_id": 74425188,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 2,
"selected": false,
"text": "a &a[0] &a a a &a[0] &a &a[0] &a &a int (*)[3] int a &a[0] int *"
},
{
"answer_id": 74425212,
"author": "V... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14778592/"
] |
74,425,159 | <p>I have a html page with a script, It looks like</p>
<pre><code><html>
</html>
<script>
<script>
</code></pre>
<p>The page needs to run this script to display the content correctly.</p>
<p>But when I redirect to this page with following code:</p>
<pre><code>redirect_to user_trips_path(params[... | [
{
"answer_id": 74425188,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 2,
"selected": false,
"text": "a &a[0] &a a a &a[0] &a &a[0] &a &a int (*)[3] int a &a[0] int *"
},
{
"answer_id": 74425212,
"author": "V... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495644/"
] |
74,425,185 | <p>So basically I found this piece of code that sorts map by value:</p>
<pre><code>bool cmp(pair<string, int>& a,
pair<string, int>& b)
{
return a.second < b.second;
}
void sort(map<string, int>& M)
{
vector<pair<string, int> > A;
for (auto& it... | [
{
"answer_id": 74425188,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 2,
"selected": false,
"text": "a &a[0] &a a a &a[0] &a &a[0] &a &a int (*)[3] int a &a[0] int *"
},
{
"answer_id": 74425212,
"author": "V... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18494367/"
] |
74,425,203 | <p>In my Rails 7 app I've got custom two_factor_authentication. Now I want to enable this 2fa only in development and test environment.</p>
<pre><code>class ApplicationController < ActionController::Base
before_action :check_two_factor_authentication, except: :check_authentication
private
def check_two_facto... | [
{
"answer_id": 74425244,
"author": "Ursus",
"author_id": 3857758,
"author_profile": "https://Stackoverflow.com/users/3857758",
"pm_score": 3,
"selected": true,
"text": "if %w(development test).include?(Rails.env)\n before_action :check_two_factor_authentication, except: :check_authentic... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19143199/"
] |
74,425,204 | <p>I have 2 lists a and b which contain sublists that have different lenghts, and i want to find a sublist in a and a sublist in b that have the same length.
My approach was:</p>
<pre><code>for j in range(0, len(a)-1):
for k in range(0, len(b)-1):
if len(a[j]) == len(b[k]):
</code></pre>
<p>Problem being th... | [
{
"answer_id": 74425244,
"author": "Ursus",
"author_id": 3857758,
"author_profile": "https://Stackoverflow.com/users/3857758",
"pm_score": 3,
"selected": true,
"text": "if %w(development test).include?(Rails.env)\n before_action :check_two_factor_authentication, except: :check_authentic... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16581025/"
] |
74,425,218 | <p>I installed a "dnspython" package with "pip install dnspython" under Ubuntu 22.10 and made a following short script:</p>
<pre><code>#!/usr/bin/env python3
import dns.zone
import dns.query
zone = dns.zone.Zone("example.net")
dns.query.inbound_xfr("10.0.0.1", zone)
for (name,... | [
{
"answer_id": 74462150,
"author": "Victor Lee",
"author_id": 6240879,
"author_profile": "https://Stackoverflow.com/users/6240879",
"pm_score": 2,
"selected": false,
"text": "--exclude PATTERN --follow-imports mypy export MYPYPATH"
},
{
"answer_id": 74509997,
"author": "Anony... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1053143/"
] |
74,425,235 | <p>I have Lua scripts, that uses variables such as:</p>
<pre><code>VERSION_LOCALE = "1.0"
MAX_MONSTERS = 5
FORBIDDEN_MONSTERS = {2827}
</code></pre>
<p>I would like to make the variables externally configurable using a simple C# Program.</p>
<ol>
<li>Load the Lua script from a dialog</li>
<li>Overwrite the fi... | [
{
"answer_id": 74462150,
"author": "Victor Lee",
"author_id": 6240879,
"author_profile": "https://Stackoverflow.com/users/6240879",
"pm_score": 2,
"selected": false,
"text": "--exclude PATTERN --follow-imports mypy export MYPYPATH"
},
{
"answer_id": 74509997,
"author": "Anony... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18756404/"
] |
74,425,256 | <p>I have the following table;</p>
<pre><code>| uuid | user_id | user_created | profile_edited |
|:---- |:------:| -----:|:------:|:------:|
| 1c5d134c | user_3 | 2022-11-10T19:09:05+00:00 | 2022-11-18T18:00:05+00:00
| 1c5d134b | user_3 | 2022-11-10T19:09:05+00:00 | 2022-11-15T18:00:05+00:00
| 1c5d134a | user_... | [
{
"answer_id": 74462150,
"author": "Victor Lee",
"author_id": 6240879,
"author_profile": "https://Stackoverflow.com/users/6240879",
"pm_score": 2,
"selected": false,
"text": "--exclude PATTERN --follow-imports mypy export MYPYPATH"
},
{
"answer_id": 74509997,
"author": "Anony... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3719201/"
] |
74,425,265 | <p>I need help finding a regex that will allow most strings, except:</p>
<ul>
<li>if the string only contains whitespaces</li>
<li>if the string contains <code>:</code> or <code>*</code></li>
</ul>
<p>I want to reject the following strings:</p>
<ul>
<li><code>"hello:world"</code></li>
<li><code>"hello*wo... | [
{
"answer_id": 74425310,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 2,
"selected": false,
"text": "^(?!\\s*$)[^:*]+$\n ^ (?!\\s*$) [^:*]+ : * $"
},
{
"answer_id": 74425872,
"author": "MikeM",
"aut... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3326166/"
] |
74,425,292 | <p>In a plain text file,</p>
<pre><code>bag1: apple
bag3: pear
bag2: potato
bag2: orange
bag1: banana
bag2: banana
onion
</code></pre>
<p>needs to be converted to</p>
<pre><code>bag1: [apple, banana]
bag2: [banana, orange, potato]
bag3: [pear]
non-categorized: onion
</code></pre>
<p>Of course, <code>sort</code> is the ... | [
{
"answer_id": 74425597,
"author": "Fravadona",
"author_id": 3387716,
"author_profile": "https://Stackoverflow.com/users/3387716",
"pm_score": 2,
"selected": false,
"text": "sort awk sort file.txt |\nawk '\n {\n if (idx = index($0,\": \")) {\n key = substr($0,1,idx)\... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12387370/"
] |
74,425,293 | <p>Hey I have an issue where I am collecting input from several inputs.. I tried to write a helper function for just updating the state object for each input, but it seems like the input is only gathering the first letter from my input and nothing else.. and it seems like it stores it once and then I can change it.. an... | [
{
"answer_id": 74425316,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 2,
"selected": true,
"text": "setNewStudent({[name]: value, ...newStudent});\n // ^^^^^^^^^^ overwriting existing value... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20035901/"
] |
74,425,320 | <p>I tried to implement some controller test with the usage of jwt in Spring Boot Microservices.</p>
<p>When I run the test method shown below, I got this error</p>
<pre><code>java.lang.NoClassDefFoundError: org/springframework/security/oauth2/server/resource/authentication/JwtGrantedAuthoritiesConverter
Caused by: ja... | [
{
"answer_id": 74425316,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 2,
"selected": true,
"text": "setNewStudent({[name]: value, ...newStudent});\n // ^^^^^^^^^^ overwriting existing value... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19721745/"
] |
74,425,351 | <p>I'm new to python and have started learning about functions. I am having trouble with homework to create my function to convert Fahrenheit to Celsius. Please see my code below.</p>
<pre><code>def convert_f_to_c(temp_in_fahrenheit):
celsius = float(temp_in_fahrenheit - 32.00) * float(5.00 / 9.00)
return... | [
{
"answer_id": 74425373,
"author": "StonedTensor",
"author_id": 6023918,
"author_profile": "https://Stackoverflow.com/users/6023918",
"pm_score": 3,
"selected": false,
"text": "temp_in_fahrenheit \n#wrong\nfloat(temp_in_fahrenheit - 32)\n\n#better\nfloat(temp_in_fahrenheit) - 32\n\n"
}... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495309/"
] |
74,425,354 | <p>I have little problem with my table. It is stylized by classes. One for TABLE that makes rounded corners and changes background to grey. The other is to make rest of the table white and I assign it to TBODY.
After second class is asigned, bottom-left and bottom-right corners are no longer rounded.</p>
<pre><code><... | [
{
"answer_id": 74425376,
"author": "Ronnie Royston",
"author_id": 4797603,
"author_profile": "https://Stackoverflow.com/users/4797603",
"pm_score": 2,
"selected": false,
"text": "table {\n border-radius: 5px;\n border: 1px solid black;\n}\ntable thead {\n background: gray;\n} <table... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495756/"
] |
74,425,382 | <p>Let's say my text file looks like this:</p>
<pre><code>John Doe 18 male
Amy hun 19 female
</code></pre>
<p>I need to read this into an array like so</p>
<pre><code>while(reader.hasNextLine()){
result[i] = new Person(reader.next(),reader.next(),reader.next());
reader.nextLine();
i++;
}
</cod... | [
{
"answer_id": 74425376,
"author": "Ronnie Royston",
"author_id": 4797603,
"author_profile": "https://Stackoverflow.com/users/4797603",
"pm_score": 2,
"selected": false,
"text": "table {\n border-radius: 5px;\n border: 1px solid black;\n}\ntable thead {\n background: gray;\n} <table... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495827/"
] |
74,425,394 | <p>I'm trying to learn c# and trying to make simple minesweeper game on console. When i am returning int to char it returns '' or an emoji when it should return me 0-3. I know that my code is not clean i am still learning just the basics.</p>
<pre><code>public char howManyMinesHaveBeenPut(int xCoordinate, int yCoordina... | [
{
"answer_id": 74425466,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": -1,
"selected": false,
"text": " howMany.ToString()[0]\n"
},
{
"answer_id": 74425556,
"author": "Enigmativity",
"author_id": 259769,
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19845858/"
] |
74,425,399 | <p>I would like to pass IHttpContextAccessor in the startup class. Here is my startup page.</p>
<pre><code> public class Startup
{
public Startup(IConfiguration configuration, IHttpContextAccessor httpContext)
{
Configuration = configuration;
HttpContext = httpContext;
... | [
{
"answer_id": 74426983,
"author": "Jason Pan",
"author_id": 7687666,
"author_profile": "https://Stackoverflow.com/users/7687666",
"pm_score": 0,
"selected": false,
"text": "services. AddSingleton<IHttpContextAccessor, HttpContextAccessor>();\n namespace WebApplication8\n{\n public cl... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10152435/"
] |
74,425,436 | <p>I'm using <code>fixest::feols()</code> and I have a function I want to pass an argument to in order to subset the data using the <code>subset =</code> argument. However when keep getting the error: <code>The argument 'subset' is a formula whose variables must be in the data set given in argument 'data'.</code></p>
<... | [
{
"answer_id": 74425510,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 1,
"selected": false,
"text": "my_fun <- function(data,expr = ~ hp > 150){\n \n feols(mpg ~ disp + drat,\n data = data,\n subset = ex... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74425436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18967565/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.