qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,564,064 | <p>I want to jump from def number1 to def number2.
I tried this:</p>
<pre><code>def number1():
print("from here to ")
number2()
number1()
def blablabla():
print("blablabla")
blablabla()
def number2():
print("here")
number2()
</code></pre>
<p>but I received this error:</p>
<... | [
{
"answer_id": 74564142,
"author": "Xiidref",
"author_id": 11260467,
"author_profile": "https://Stackoverflow.com/users/11260467",
"pm_score": 2,
"selected": true,
"text": "def number1():\n print(\"from here to \")\n number2()\n\ndef blablabla():\n print(\"blablabla\")\n\ndef nu... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20592582/"
] |
74,564,068 | <p>I was trying to create a blog app by following an online Django tutorial and while I was testing the sign-up page, I ran into a Value Error saying that the view did not return a HTTP response object. i tried everything but i could not find the answer as i am not a Django expert</p>
<p>in the users app's views.py fil... | [
{
"answer_id": 74564142,
"author": "Xiidref",
"author_id": 11260467,
"author_profile": "https://Stackoverflow.com/users/11260467",
"pm_score": 2,
"selected": true,
"text": "def number1():\n print(\"from here to \")\n number2()\n\ndef blablabla():\n print(\"blablabla\")\n\ndef nu... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20592802/"
] |
74,564,096 | <p>I have a function which groups anagrams together</p>
<pre class="lang-js prettyprint-override"><code>function groupAnagrams(strs) {
let result = {};
for (let word of strs) {
let cleansed = word.split("").sort().join("");
if (result[cleansed]) {
result[cleansed].push(word);
}... | [
{
"answer_id": 74564166,
"author": "R4ncid",
"author_id": 14326899,
"author_profile": "https://Stackoverflow.com/users/14326899",
"pm_score": 3,
"selected": true,
"text": "const data = [ [ 'abc', 'bac', 'cba' ], [ 'fun', 'fun', 'unf' ], [ 'hello' ] ]\n\ndata.forEach(row => console.log(ro... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19940752/"
] |
74,564,118 | <p><code>std::reference_wrapper</code> cannot be bound to rvalue reference to prevent dangling pointer.
However, with combination of <code>std::optional</code>, it seems that rvalue could be bound.</p>
<p>That is, <code>std::is_constructible_v<std::reference_wrapper<const int>, int&&>)</code> is <co... | [
{
"answer_id": 74567461,
"author": "Ranoiaetep",
"author_id": 12861639,
"author_profile": "https://Stackoverflow.com/users/12861639",
"pm_score": 2,
"selected": false,
"text": "optional const& auto ref = std::cref(static_cast<const int&>(1));\n"
},
{
"answer_id": 74567981,
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2580815/"
] |
74,564,148 | <p>I want to be able to run my Cypress scripts on any URL by modifying the value of <code>baseUrl</code> but the command doesn't change it.</p>
<pre><code>"cypress open --env version=development --config baseUrl=https://google.com"
</code></pre>
<p>I have tried env variable too but that also doesn't work:</p>... | [
{
"answer_id": 74564842,
"author": "Amirhossein",
"author_id": 11342834,
"author_profile": "https://Stackoverflow.com/users/11342834",
"pm_score": 0,
"selected": false,
"text": "\"cypress:open:dev\": \"CYPRESS_BASE_URL=https://google.com cypress open --env version=development\"\n"
},
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4405472/"
] |
74,564,164 | <p>I have a scenario where i will be getting a datatable with multiple rows of data (sometimes in thousands) and i need to process the data row by row. While processing the data row by row, initially i need to call an ONprem sql DB where in i will call a stored procedure with input and output parameters and once the SP... | [
{
"answer_id": 74564267,
"author": "SNBS",
"author_id": 20426120,
"author_profile": "https://Stackoverflow.com/users/20426120",
"pm_score": 3,
"selected": true,
"text": "foreach Declare Variables"
},
{
"answer_id": 74564378,
"author": "nbk",
"author_id": 5193536,
"aut... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10838358/"
] |
74,564,176 | <p>I wonder if I can catch up with custom event (EventEmiter). I have a child component that emit event with @Output('myCustomEvent).</p>
<p>Can I catch it in my parent component with @HostListener('myCustomEvent') ?</p>
<p>I try to di this so I get rid of the (myCustomEvent)="myMethod" in my html, which I th... | [
{
"answer_id": 74564267,
"author": "SNBS",
"author_id": 20426120,
"author_profile": "https://Stackoverflow.com/users/20426120",
"pm_score": 3,
"selected": true,
"text": "foreach Declare Variables"
},
{
"answer_id": 74564378,
"author": "nbk",
"author_id": 5193536,
"aut... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7698722/"
] |
74,564,182 | <p>By running the procedure through the command line, pointing it to the input file like this</p>
<pre><code>_progres -b -p test.p < test.txt
</code></pre>
<p>I can read the contents of test.txt into test.p with a simple</p>
<pre><code>def var cline as c no-undo.
_tt:
do while true on endkey undo _tt,leave _tt:
impo... | [
{
"answer_id": 74574675,
"author": "Tom Bascom",
"author_id": 123238,
"author_profile": "https://Stackoverflow.com/users/123238",
"pm_score": 3,
"selected": true,
"text": "/* isatty.i\n */\n \nfunction isatty returns logical () in super.\n /* isatty.p\n * \n * to use this:\n *\n * run... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4846049/"
] |
74,564,241 | <p>I've a 5x5 2D array filled like this :</p>
<pre><code> -----
-----
-----
-----
</code></pre>
<p>I'm trying to fill this array by percentage, for example <strong>40%</strong> :</p>
<pre><code>-e--e
---f-
-i-h-
-ghh-
---ii
</code></pre>
<p>As you can see 40 % of 25 is 10 so 10 characters have been added to the arra... | [
{
"answer_id": 74574675,
"author": "Tom Bascom",
"author_id": 123238,
"author_profile": "https://Stackoverflow.com/users/123238",
"pm_score": 3,
"selected": true,
"text": "/* isatty.i\n */\n \nfunction isatty returns logical () in super.\n /* isatty.p\n * \n * to use this:\n *\n * run... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13739336/"
] |
74,564,245 | <p>I have the following code.</p>
<p>I am trying to loop through columns of a dataframe <strong>(newerdf)</strong> and plot a <strong>histogram</strong> for each one.</p>
<p>I am then saving each plot as a .png file on my desktop.</p>
<p>However, the following code gives me the error: <strong>'numpy.ndarray' object has... | [
{
"answer_id": 74574675,
"author": "Tom Bascom",
"author_id": 123238,
"author_profile": "https://Stackoverflow.com/users/123238",
"pm_score": 3,
"selected": true,
"text": "/* isatty.i\n */\n \nfunction isatty returns logical () in super.\n /* isatty.p\n * \n * to use this:\n *\n * run... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12985497/"
] |
74,564,252 | <p>Starting with the following dictionary:</p>
<pre><code>test_dict = {'header1_1': {'header2_1': {'header3_1': {'header4_1': ['322.5', 330.0, -0.28],
'header4_2': ['322.5', 332.5, -0.26]},
'header3_2': {'header4_1': ['285.0', 277.5, -0.09],
'header4_2': ['287.5', 277.5, -0.12]}},
'header2_2': {'header3_1'... | [
{
"answer_id": 74568499,
"author": "Azhar Khan",
"author_id": 2847330,
"author_profile": "https://Stackoverflow.com/users/2847330",
"pm_score": 1,
"selected": false,
"text": "print(df.columns)\n\n[Out]:\nRangeIndex(start=0, stop=3, step=1)\n df.rename() df = df.rename(columns={0: 'Col1',... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6467736/"
] |
74,564,253 | <p>I have a object like this,</p>
<pre><code>const obj =
{
"One": "1",
"Two": "2",
"Three": "3"
}
</code></pre>
<p>I want to convert this object in to an array, in this format,</p>
<pre><code>const options = [
{ value: "1", label: &quo... | [
{
"answer_id": 74568499,
"author": "Azhar Khan",
"author_id": 2847330,
"author_profile": "https://Stackoverflow.com/users/2847330",
"pm_score": 1,
"selected": false,
"text": "print(df.columns)\n\n[Out]:\nRangeIndex(start=0, stop=3, step=1)\n df.rename() df = df.rename(columns={0: 'Col1',... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18972177/"
] |
74,564,292 | <p>I have some high dimensional boolean data, in this example an array with 4 dimensions, but this is arbitrary:</p>
<pre><code>X.shape
(3, 2, 66, 241)
</code></pre>
<p>I want to group the dataset into connected regions of True values, which can be done with <a href="https://docs.scipy.org/doc/scipy/reference/generate... | [
{
"answer_id": 74568499,
"author": "Azhar Khan",
"author_id": 2847330,
"author_profile": "https://Stackoverflow.com/users/2847330",
"pm_score": 1,
"selected": false,
"text": "print(df.columns)\n\n[Out]:\nRangeIndex(start=0, stop=3, step=1)\n df.rename() df = df.rename(columns={0: 'Col1',... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6555561/"
] |
74,564,294 | <p>I am trying to plot a raster in a projected in a coordinated system which follows the curvature of the earth like most projections that are not WGS84. The problem is that the places were the globe wraps around the data should not be plotted outside the globe. I realize that ggplot cannot do a rounded/elliptical plot... | [
{
"answer_id": 74568499,
"author": "Azhar Khan",
"author_id": 2847330,
"author_profile": "https://Stackoverflow.com/users/2847330",
"pm_score": 1,
"selected": false,
"text": "print(df.columns)\n\n[Out]:\nRangeIndex(start=0, stop=3, step=1)\n df.rename() df = df.rename(columns={0: 'Col1',... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2319308/"
] |
74,564,387 | <p>I am trying to remove whitespace from the titles of columns on a dataframe.</p>
<pre><code>my_df=pd.DataFrame({' name_1':[1, 2],' name_2':[3, 4],})
</code></pre>
<p>After some research, i've tried:</p>
<pre><code>my_df.columns.map(lstrip())
df.columns.to_series().map(lstrip)
</code></pre>
<p>these both give:</p>
... | [
{
"answer_id": 74568499,
"author": "Azhar Khan",
"author_id": 2847330,
"author_profile": "https://Stackoverflow.com/users/2847330",
"pm_score": 1,
"selected": false,
"text": "print(df.columns)\n\n[Out]:\nRangeIndex(start=0, stop=3, step=1)\n df.rename() df = df.rename(columns={0: 'Col1',... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4792022/"
] |
74,564,401 | <p>When I try to define a constructor taking a universal reference with a defaulted value as a parameter like this:</p>
<pre class="lang-cpp prettyprint-override"><code>struct S {
int x; // I know that universal ref is useless for int, but it's here for simplicity
template<class T>
S(const T&&... | [
{
"answer_id": 74564555,
"author": "Jarod42",
"author_id": 2684539,
"author_profile": "https://Stackoverflow.com/users/2684539",
"pm_score": 1,
"selected": false,
"text": "T template<class T = int>\nS(T&& arg = 123) : x(std::forward<T>(arg)) {}\n"
},
{
"answer_id": 74564559,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19087625/"
] |
74,564,445 | <p>The code to render a TabList:</p>
<pre><code>import React, { Children, useEffect } from 'react';
import { LayoutChangeEvent, View } from 'react-native';
import {
ScrollView,
TouchableWithoutFeedback,
} from 'react-native-gesture-handler';
import Animated, {
Easing,
useAnimatedStyle,
useSharedValue,
withT... | [
{
"answer_id": 74577130,
"author": "shet_tayyy",
"author_id": 2338858,
"author_profile": "https://Stackoverflow.com/users/2338858",
"pm_score": 1,
"selected": false,
"text": "flexWrap: 'wrap' import { createUseStyle } from '@theme';\n\n// createUseStyle basically returns (fn) => useStyle... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2338858/"
] |
74,564,479 | <p>I have the following linq query:</p>
<pre><code>private List<Port> DoCountriesSearch(string search)
{
return Countries.Where(x => x.CountrySearch.ToLower().Contains(search.ToLower())).ToList();
}
</code></pre>
<p>I have an object called <code>Countries</code> which is a list of Port objects with various... | [
{
"answer_id": 74577130,
"author": "shet_tayyy",
"author_id": 2338858,
"author_profile": "https://Stackoverflow.com/users/2338858",
"pm_score": 1,
"selected": false,
"text": "flexWrap: 'wrap' import { createUseStyle } from '@theme';\n\n// createUseStyle basically returns (fn) => useStyle... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4388132/"
] |
74,564,509 | <p>I have a list of tuples and the tuples look like this (2, 11) which means exam 2 must be taken by student 11. The exams are numbered from 0 to however many exams there are and the same with students. I need to produce a 2D list where the first list is the exams the 0th student is taking and the second list is the ex... | [
{
"answer_id": 74564613,
"author": "Jay",
"author_id": 8677071,
"author_profile": "https://Stackoverflow.com/users/8677071",
"pm_score": 2,
"selected": true,
"text": "exams exams examsEachStudentsIsDoing exams examsEachStudentsIsDoing exams [0,2] examsEachStudentsIsDoing exams examsEachS... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20585322/"
] |
74,564,510 | <p>Tried to keep this relatively simple but let me know if you need more information.</p>
<p>I have 2 dictionaries made up of three dataframes each, these have been produced through loops then added into a dictionary. They have the keys ['XAUUSD', 'EURUSD', 'GBPUSD'] in common:</p>
<p>trades_dict</p>
<pre><code>{'XAUUS... | [
{
"answer_id": 74564872,
"author": "R Walser",
"author_id": 17889492,
"author_profile": "https://Stackoverflow.com/users/17889492",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport pandas as pd\n\nnp.random.seed(42)\ndf_trades_1 = df_trades_2 = df_trades_3 = pd.DataF... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16342202/"
] |
74,564,521 | <p>I need to "subtract" from the distance a line has and doing so maintaining the same direction it initially had.</p>
<p>Note: If we try to simply subtract a given value (example 10) the direction will change.</p>
<p>I guess it's a mathematical problem?
I need to be able to change coordinates to cause the di... | [
{
"answer_id": 74564551,
"author": "Bill Lynch",
"author_id": 47453,
"author_profile": "https://Stackoverflow.com/users/47453",
"pm_score": 2,
"selected": false,
"text": "<line\n x1=\"x1\"\n y1=\"y1\"\n x2=\"x1 + (x2 - x1) * .9\"\n y2=\"y1 + (y2 - y1) * .9\">\n"
},
{
"answer_... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5857719/"
] |
74,564,532 | <p>I am trying to lay down all these square divs horizontally but when I set <code>display:inline-block</code> on the parent div, everything shrinks down and collapses into a pellet. If I use <code>flex</code>, I feel like I need to tweak <code>flex</code> property to my need. Is there a simple way to fix it?(I want th... | [
{
"answer_id": 74564664,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": -1,
"selected": false,
"text": ".square {\nwidth:10vw;\nmax-width:60px;aspect-ratio:1;\n \n \n margin-bottom:3vw;\n border: 1px dotted black;\n bo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15173572/"
] |
74,564,548 | <p>How do use a structure variables value inside a structure member without calling on the structure variables name but only using the member of that structure and a global variable (string)? the idea is that i set the global variables value to the structure variables name and then just doing <code>.structM</code> afte... | [
{
"answer_id": 74564664,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": -1,
"selected": false,
"text": ".square {\nwidth:10vw;\nmax-width:60px;aspect-ratio:1;\n \n \n margin-bottom:3vw;\n border: 1px dotted black;\n bo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19873242/"
] |
74,564,564 | <p>The function below needs the values of some <code>user</code> properties. Parameter <code>scores</code> is dependent on <code>user</code> and is provided by <code>this.form.get('scores').valueChanges.subscribe((value)</code>. The <code>console.log</code> correctly shows <code>scores</code> as an array and <code>th... | [
{
"answer_id": 74572587,
"author": "Dimanoid",
"author_id": 1122806,
"author_profile": "https://Stackoverflow.com/users/1122806",
"pm_score": 1,
"selected": false,
"text": "this.user.pipe(...) user BehaviorSubject<User> this.userService.user.getValue() userService.loadUser() constructor(... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3998720/"
] |
74,564,586 | <p>I want to get the records based on the row value. Please refer to the attached image for a table overview with records.</p>
<p>If there is no <code>Execution Project</code> in the column <code>projecttype</code> for a specific <code>ESAProjectID</code> then take the row with values
<code>projecttype='Group Project'<... | [
{
"answer_id": 74572587,
"author": "Dimanoid",
"author_id": 1122806,
"author_profile": "https://Stackoverflow.com/users/1122806",
"pm_score": 1,
"selected": false,
"text": "this.user.pipe(...) user BehaviorSubject<User> this.userService.user.getValue() userService.loadUser() constructor(... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2681855/"
] |
74,564,588 | <p>I want my app in SwiftUI for macOS get shown or available to user with some sec delay like 5 sec delay, how can I do this? Just given more info, <strong>I want nothing shown to user in 5 sec</strong>, and after that Window get available to user. Also I know the use case of timer or DispatchQueue, but I have no idea ... | [
{
"answer_id": 74565701,
"author": "Frederik Mrozek",
"author_id": 17997003,
"author_profile": "https://Stackoverflow.com/users/17997003",
"pm_score": 1,
"selected": false,
"text": "@main\nstruct test2App: App {\n @State private var visible: Bool = false\n var body: some Scene {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20027993/"
] |
74,564,595 | <pre><code>class_day <- c(1:10)
control_group <- c(67,72,69,81,73,66,71,72,77,71)
A_treatment_group <- c(NA,72,77,81,73,85,69,73,74,77)
B_treatment_group <- c(NA,66,68,69,67,72,73,75,79,77)
class.df<-data.frame(class_day, control_group, A_treatment_group, B_treatment_group)
</code></pre>
<p>I tried t... | [
{
"answer_id": 74564650,
"author": "M.Viking",
"author_id": 10276092,
"author_profile": "https://Stackoverflow.com/users/10276092",
"pm_score": 2,
"selected": false,
"text": "class.df<-data.frame(class_day = c(1:10),\n control_group = c(67,72,69,81,73,66,71,72,77,... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20379598/"
] |
74,564,598 | <p>The script I'm working on is a ticket reserving bot for student events, it waits in the specified loop until sales start, and the write-progress is supposed to let you know when they do start. I'm fairly new to PowerShell and I'm sorry if the code is a sore for the eyes. I'm just baffled since this part did work ear... | [
{
"answer_id": 74564650,
"author": "M.Viking",
"author_id": 10276092,
"author_profile": "https://Stackoverflow.com/users/10276092",
"pm_score": 2,
"selected": false,
"text": "class.df<-data.frame(class_day = c(1:10),\n control_group = c(67,72,69,81,73,66,71,72,77,... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593176/"
] |
74,564,607 | <p>I am struggling with Text binding in my WPF app.</p>
<ol>
<li>Lets imagine that I have another working app (ex. windows service) with some data in it.</li>
<li>In my WPF app I would like to have folder "DATA" with class where data are introduced and in same folder another class which would include a void w... | [
{
"answer_id": 74564679,
"author": "Jason",
"author_id": 1338,
"author_profile": "https://Stackoverflow.com/users/1338",
"pm_score": 0,
"selected": false,
"text": "INotifyPropertyChanged public partial class MainWindow : Window, INotifyPropertyChanged\n"
},
{
"answer_id": 7456499... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20592936/"
] |
74,564,616 | <p>Good afternoon!
We're looking to get a javascript variable from a webpage, that we are usually able to retrieve typing <code>app</code> in the Chrome DevTools.</p>
<p>However, we're looking to realize this headlessly as it has to be performed on numerous apps.</p>
<p><strong>Our ideas :</strong></p>
<ul>
<li><p>Usin... | [
{
"answer_id": 74564679,
"author": "Jason",
"author_id": 1338,
"author_profile": "https://Stackoverflow.com/users/1338",
"pm_score": 0,
"selected": false,
"text": "INotifyPropertyChanged public partial class MainWindow : Window, INotifyPropertyChanged\n"
},
{
"answer_id": 7456499... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19762598/"
] |
74,564,625 | <p>I work inside a research environment and I can't copy paste the code I used there, but I have <a href="https://stackoverflow.com/questions/73961307/how-to-label-plot-with-value-of-bars">previously generated this plot</a>, and have been helped by various people in labelling it with the count number. The problem arise... | [
{
"answer_id": 74564820,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 3,
"selected": true,
"text": "geom_text(..., fontface = \"bold\") axis.text.x = element_text(angle=0, hjust=.5, face = \"bold\") ggplot2::mpg libr... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7825736/"
] |
74,564,633 | <p>I’m looking for something like <code>Record.Do</code> with <code>Record.bind</code> so I can do something like this</p>
<pre><code>function getB: (a:A) => B
function getC: (b: B) => C
function getD: (c: C) => D
type Z = {
a: A,
b: B,
c: C,
d: D,
}
const getZ = (a: A): Z => pipe(
R.Do,
R.bin... | [
{
"answer_id": 74564769,
"author": "Manav Chawla",
"author_id": 5895968,
"author_profile": "https://Stackoverflow.com/users/5895968",
"pm_score": 0,
"selected": false,
"text": "const getZ = (a:A): Z => {\n const b = getB(a)\n const c = getC(b)\n const d = getD(c)\n return ({a, b,... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5895968/"
] |
74,564,636 | <pre><code>[{
"resource": "/d:/Users/Home/Desktop/Python/estudos/pratices.py",
"owner": "_generated_diagnostic_collection_name_#0",
"code": {
"value": "reportMissingModuleSource",
"target": {
"$m... | [
{
"answer_id": 74564769,
"author": "Manav Chawla",
"author_id": 5895968,
"author_profile": "https://Stackoverflow.com/users/5895968",
"pm_score": 0,
"selected": false,
"text": "const getZ = (a:A): Z => {\n const b = getB(a)\n const c = getC(b)\n const d = getD(c)\n return ({a, b,... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20460171/"
] |
74,564,654 | <p>I have a question on using regular expressions in Python. This is a part of the text I am analysing.</p>
<pre><code>Amit Jawaharlaz Daryanani, Evercore ISI Institutional Equities, Research Division - Senior MD & Fundamental Research Analyst [19]\n I have 2 as well. I guess, first off, on the channel inventory... | [
{
"answer_id": 74564676,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 3,
"selected": true,
"text": "\\bAmit Jawaharlaz Daryanani\\b.*\\n\\s*(.*)\\n\n \\bAmit Jawaharlaz Daryanani\\b .*\\n \\s*(.*)\\n import re... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15788507/"
] |
74,564,659 | <p>I want to make imagecircleview and textview lie side by side in xml kotlin android. I have tried this but the textview lies above the imageview. The button is also above the image which I want at the bottom.</p>
<p>I also would appreciate a brief description of the main android layout attributes.<a href="https://i.s... | [
{
"answer_id": 74564676,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 3,
"selected": true,
"text": "\\bAmit Jawaharlaz Daryanani\\b.*\\n\\s*(.*)\\n\n \\bAmit Jawaharlaz Daryanani\\b .*\\n \\s*(.*)\\n import re... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4317594/"
] |
74,564,671 | <p>What I'm trying to do is this:</p>
<pre><code>interface A {
a: number
b: number
}
function f<T extends A>() {
const x: Partial<Record<keyof T, string>> = {a: 'generz'}
console.log(x)
}
</code></pre>
<p>But, when compiling (using <code>tsc v4.9.3</code>) I get this error message:</p... | [
{
"answer_id": 74601661,
"author": "dubble",
"author_id": 17867284,
"author_profile": "https://Stackoverflow.com/users/17867284",
"pm_score": -1,
"selected": false,
"text": "function f<T extends A>() {\n const x: Partial<Record<keyof T, string>> = { a: 'generz' }\n // Type `{ a: \"gene... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2394898/"
] |
74,564,685 | <p>R noob here, working in <code>tidyverse</code> / RStudio.</p>
<p>I have a categorical / factor variable that I'd like to retain in a <code>group_by</code>/<code>summarize</code> workflow. I'd like to <code>summarize</code> it using a summary function that returns the most common value of that factor within each grou... | [
{
"answer_id": 74565029,
"author": "Quinten",
"author_id": 14282714,
"author_profile": "https://Stackoverflow.com/users/14282714",
"pm_score": 3,
"selected": true,
"text": "fmode collapse mtcars cyl library(dplyr)\nlibrary(collapse)\n\nmtcars %>%\n mutate(cyl = as.factor(cyl)) %>%\n gr... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12305295/"
] |
74,564,691 | <p>When using <code>@Secured</code> on a REST-Controller, implementing an interface, the Controller is not found in a <code>@WebMvcTest</code>. Either removing the @Secured annotation or removing the implements on the class will make it run in the test.</p>
<pre><code>@Controller
@RequestMapping(path="/failing&quo... | [
{
"answer_id": 74564778,
"author": "viking",
"author_id": 19741639,
"author_profile": "https://Stackoverflow.com/users/19741639",
"pm_score": -1,
"selected": false,
"text": "@RestController\n@RequestMapping(path = \"/running\")\npublic class RunningTestController {\n}\n"
},
{
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5545821/"
] |
74,564,700 | <p>I am trying to get a total by using the <code>forEach</code> in javascript but failing somehow... It just lists the values rather than giving me the total figure</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": 74564810,
"author": "Daniel Benisti",
"author_id": 10022794,
"author_profile": "https://Stackoverflow.com/users/10022794",
"pm_score": 0,
"selected": false,
"text": "const array1 = [1, 2, 3, 4];\n// 0 + 1 + 2 + 3 + 4\nconst initialValue = 0;\nconst sumWithInitial = array1.... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20581800/"
] |
74,564,728 | <p>I'm trying to use Kafka ByteArrayDeserializer to read avro records from a Kafka topic. But getting below exception.</p>
<pre><code>Caused by: java.lang.ClassCastException: [B cannot be cast to java.lang.String
</code></pre>
<p>My Code:</p>
<pre><code>val ssc = new StreamingContext(spark.sparkContext, Seconds(1))
... | [
{
"answer_id": 74566310,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 3,
"selected": true,
"text": "Subscribe[String, String] Subscribe[String, Array[Byte]] record.value()"
},
{
"answer_id": 74571707,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15982497/"
] |
74,564,730 | <p>I'm trying to make an countdown timer set to 1 hour , when the hour is done , the timer should redirect people to a specific page.</p>
<p>My current code is not working as intended since its not storing in localstorage the countdown after a refresh of the page.</p>
<pre><code><div id='stored'></div>
<... | [
{
"answer_id": 74566310,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 3,
"selected": true,
"text": "Subscribe[String, String] Subscribe[String, Array[Byte]] record.value()"
},
{
"answer_id": 74571707,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20084394/"
] |
74,564,755 | <p><img src="https://i.stack.imgur.com/7dp33.png" alt="Problem outline" /></p>
<p>This is the solution I have come up with but I'm unsure whether this is the best possible solution as far as Big (O) notation is concerned...</p>
<pre><code>def solution(A):
B = [0, 0, 0, 0, 0]
for i in range (len(A)):
if ... | [
{
"answer_id": 74566310,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 3,
"selected": true,
"text": "Subscribe[String, String] Subscribe[String, Array[Byte]] record.value()"
},
{
"answer_id": 74571707,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14683805/"
] |
74,564,760 | <p>I've seen this question a lot, and I feel like I've tried most suggestions, but I can't get it to work. For now, I'm just logging the messageCreate event, but it just won't work.
Help would be very much appreciated.</p>
<p>This is my code:</p>
<p>as you can see I've tried a couple things^^</p>
<pre><code>
const { Ga... | [
{
"answer_id": 74566310,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 3,
"selected": true,
"text": "Subscribe[String, String] Subscribe[String, Array[Byte]] record.value()"
},
{
"answer_id": 74571707,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19476464/"
] |
74,564,791 | <p>So I have next situation. I need to check if entity with <em>ManyToMany</em> relationship exists by list of this entities.
Example:</p>
<pre><code>@Entity
@NoArgsConstructor
@Builder(setterPrefix = "with")
@AllArgsConstructor
@Getter
@Setter
@Table(name = "ingredient")
public class Ingredient {
... | [
{
"answer_id": 74566310,
"author": "OneCricketeer",
"author_id": 2308683,
"author_profile": "https://Stackoverflow.com/users/2308683",
"pm_score": 3,
"selected": true,
"text": "Subscribe[String, String] Subscribe[String, Array[Byte]] record.value()"
},
{
"answer_id": 74571707,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17683553/"
] |
74,564,792 | <p>I have the following curl command which I can use to retrieve a list of users from a specific group in PagerDuty:</p>
<pre><code>curl -H "Accept: application/vnd.pagerduty+json;version=2" -H "Authorization: Token token=xxx" -X GET --data-urlencode "team_ids[]=abc" 'https://api.pagerduty... | [
{
"answer_id": 74564931,
"author": "Lord Elrond",
"author_id": 10746224,
"author_profile": "https://Stackoverflow.com/users/10746224",
"pm_score": 2,
"selected": true,
"text": "--data-urlencode import requests\n\nparams = {\n 'team_ids[]':\"abc\",\n \"offset\": '0',\n}\nheaders = {... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20536016/"
] |
74,564,802 | <p>I have a modal where I want to display a certain amount of picture in a window, but show the full picture (the overlay) in the background.</p>
<p>Basically if the amount of picture to be shown (the window) is 100px wide, but the picture itself is 150px wide, you'd see the picture as is in the window (<code>opacity: ... | [
{
"answer_id": 74588258,
"author": "Rokit",
"author_id": 996314,
"author_profile": "https://Stackoverflow.com/users/996314",
"pm_score": 0,
"selected": false,
"text": "let imageContainer = document.getElementById(\"image-container\");\nimageContainer.onmousemove = function(e) {\n let ov... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18060222/"
] |
74,564,804 | <p>I'm trying to modify a nested property of a useState, but I'm struggling to do it in this case:</p>
<ol>
<li><p>The component receives a prop "order" which has many items (line_items), which are the products within that order</p>
</li>
<li><p>A useEffect iterates through the line_items and generates an arr... | [
{
"answer_id": 74588258,
"author": "Rokit",
"author_id": 996314,
"author_profile": "https://Stackoverflow.com/users/996314",
"pm_score": 0,
"selected": false,
"text": "let imageContainer = document.getElementById(\"image-container\");\nimageContainer.onmousemove = function(e) {\n let ov... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8726315/"
] |
74,564,823 | <p>I want to get the maximum values in a row and print the value and the name of the appropriate column.</p>
<pre><code>s1 = pd.Series([5, 6, 7, 10, 12, 6, 8, 55, 9])
s2 = pd.Series([7, 8, 9, 16, 13, 8, 2, 11, 7])
df = pd.DataFrame([list(s1), list(s2)], columns = ["A", "B", "C", "D... | [
{
"answer_id": 74565155,
"author": "msailor",
"author_id": 10155119,
"author_profile": "https://Stackoverflow.com/users/10155119",
"pm_score": 0,
"selected": false,
"text": ">>> df.loc[0].sort_values(ascending=False).iloc[:4]\nH 55\nE 12\nD 10\nI 9\nName: 0, dtype: int64\n d... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19668762/"
] |
74,564,846 | <p>Suppose there is a dataset.
Let's say that the dataset has a column A which contains city names like "New York", "California", or "Florida"
now we have a dictionary like</p>
<pre><code>my_dict = {"New York":1, "California":2, "Florida":3}
</code></pre>
<p>S... | [
{
"answer_id": 74565155,
"author": "msailor",
"author_id": 10155119,
"author_profile": "https://Stackoverflow.com/users/10155119",
"pm_score": 0,
"selected": false,
"text": ">>> df.loc[0].sort_values(ascending=False).iloc[:4]\nH 55\nE 12\nD 10\nI 9\nName: 0, dtype: int64\n d... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593253/"
] |
74,564,868 | <p>I am processing binary images, and was previously using this code to find the largest area in the binary image:</p>
<pre><code># Use the hue value to convert to binary
thresh = 20
thresh, thresh_img = cv2.threshold(h, thresh, 255, cv2.THRESH_BINARY)
cv2.imshow('thresh', thresh_img)
cv2.waitKey(0)
cv2.destroyAllWind... | [
{
"answer_id": 74566139,
"author": "Nick ODell",
"author_id": 530160,
"author_profile": "https://Stackoverflow.com/users/530160",
"pm_score": 1,
"selected": false,
"text": "np.argwhere() import cv2\nimport numpy as np\n\nimg = cv2.imread('test197_img.png')\ngray = cv2.cvtColor(img, cv2.C... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13451885/"
] |
74,564,878 | <p>I am building a React-based SPA that communicates with a spring-boot backend via a REST API. I need the user to be able to log into their Microsoft account on the browser client (the SPA) and I need the backend service (spring-boot app) to be able to query Microsoft's Graph API on behalf of that user.</p>
<p>After r... | [
{
"answer_id": 74568623,
"author": "Tiny Wang",
"author_id": 14574199,
"author_profile": "https://Stackoverflow.com/users/14574199",
"pm_score": 2,
"selected": true,
"text": "on-behalf-flow client credential flow User.ReadWrite.All, Mail.ReadWrite.All"
}
] | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2779450/"
] |
74,564,884 | <p>I've been through the array documentation in Big Query and found that I can use UNNEST and DISTINCT to remove duplicates in an array content, but I want to remove the duplicates <strong>only if</strong> they are adjacent in the array (as it's an ordered list).</p>
<p>For example, for this input:</p>
<p><code>[a, a, ... | [
{
"answer_id": 74565148,
"author": "Mikhail Berlyant",
"author_id": 5221944,
"author_profile": "https://Stackoverflow.com/users/5221944",
"pm_score": 0,
"selected": false,
"text": "select *, array( \n select any_value(el)\n from (\n select as struct *, countif(flag) over(order b... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593365/"
] |
74,564,889 | <p>I run into a compiler error that I am not sure how to resolve it.</p>
<p>Basically, I have a few enum classes described below.</p>
<p>I created abstract classes myTool and myTools deriving from myTool.
The compiler for some reason does not like the way I structured the constructor for MyTools and threw error</p>
<bl... | [
{
"answer_id": 74565115,
"author": "Olivier Jacot-Descombes",
"author_id": 880990,
"author_profile": "https://Stackoverflow.com/users/880990",
"pm_score": 2,
"selected": true,
"text": "int System.Enum T enumValue = (T)Enum.ToObject(typeof(T), intValue);\n T enumValue = (T)(object)intValu... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1205746/"
] |
74,564,919 | <p>I'm trying to make a program which concatenates two strings. The max length of the strings should be 50 characters and I'm making a string with that size. I'm getting the strings using <code>argv</code>. How can I detect if the strings are over 50 characters? Can I do it without playing around with memory since I ha... | [
{
"answer_id": 74565104,
"author": "Oka",
"author_id": 2505965,
"author_profile": "https://Stackoverflow.com/users/2505965",
"pm_score": 1,
"selected": false,
"text": "#include <stdio.h>\n#include <string.h>\n\n#define LIMIT 50\n\nint main(int argc, char **argv)\n{\n if (argc < 3) {\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16748931/"
] |
74,564,937 | <p>What happens with this simple workflow:</p>
<pre><code>x@PC MINGW64 /c/Temp/tests/git/branches/changes
$ git init
Initialized empty Git repository in C:/Temp/tests/git/branches/changes/.git/
x@PC MINGW64 /c/Temp/tests/git/branches/changes (master)
$ echo "CHANGE #1" >> test.txt
x@PC MINGW64 /c/Temp... | [
{
"answer_id": 74565535,
"author": "eftshift0",
"author_id": 2437508,
"author_profile": "https://Stackoverflow.com/users/2437508",
"pm_score": 1,
"selected": false,
"text": "HEAD -f"
},
{
"answer_id": 74572335,
"author": "torek",
"author_id": 1256452,
"author_profile"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145757/"
] |
74,564,952 | <p>I want to accept a input with java.time.Duration data type in java using net.sourceforge.argparse4j.ArgumentParsers . However since Duration is a non-primitive data type, it is not directly supported to be passed as one of the argument. Is there any better or direct way to accept Duration as paramter in java other t... | [
{
"answer_id": 74565221,
"author": "hc_dev",
"author_id": 5730279,
"author_profile": "https://Stackoverflow.com/users/5730279",
"pm_score": 2,
"selected": false,
"text": "valueOf T valueOf(String text) T T valueOf(String) java.time java.time.Duration final Duration valueOf Duration.parse... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74564952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10074233/"
] |
74,565,012 | <p>If I run this query:</p>
<pre><code>select date, sum(orders) as "Total orders"
from tbl
where date >=1 and date <= 4
group by date
</code></pre>
<p>How can I get the expected output as shown in the screenshot?</p>
<p><a href="https://i.stack.imgur.com/Qe1Z4.png" rel="nofollow noreferrer"><img src=... | [
{
"answer_id": 74565272,
"author": "Jiří Kopřiva",
"author_id": 15018327,
"author_profile": "https://Stackoverflow.com/users/15018327",
"pm_score": -1,
"selected": false,
"text": "WITH cte as (\n\nSELECT date, orders\nFROM dbo.Orders\n\n),\n\ncte2 as (\n\nselect top (SELECT MAX(date) FRO... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15079214/"
] |
74,565,057 | <p>I try do split a dataframe by two variables, year and sectors. I did split them with group_split but everytime I need them, I have to call them with $ operator. I want to give them a name automatically so I do not need to use $ for every usage. I know I can assign them to new names by hand but I have more than 70 va... | [
{
"answer_id": 74565096,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "group_split list split base R lst1 <- split(dummy, dummy$year)\nnames(lst1) <- paste0('year_', names(lst1))\n list2env ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20193096/"
] |
74,565,063 | <p>i'm trying to make a program that calculates simple interest and the function i made to calculate the interest returns 0 when i run it and i don't know what the problem is</p>
<pre><code>
</code></pre>
<pre><code>`year = int(input("Enter years: "))
month = int(input("Enter months: "))
days = int(... | [
{
"answer_id": 74565172,
"author": "michael perkins",
"author_id": 19620151,
"author_profile": "https://Stackoverflow.com/users/19620151",
"pm_score": 1,
"selected": false,
"text": "TotalYears get_time TotalYears year = int(input(\"Enter years: \"))\nmonth = int(input(\"Enter months: \")... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20160436/"
] |
74,565,085 | <p>I have a text file containing random strings. I want to use specific criterias to extract the strings that match these criterias.</p>
<p>Example text :</p>
<p>B311-SG-1700-ASJND83-ANSDN762
BAKSJD873-JAN-1293</p>
<p>Example criteria :</p>
<p>All the strings that contains characters seperated by hyphens this way : XXX... | [
{
"answer_id": 74565172,
"author": "michael perkins",
"author_id": 19620151,
"author_profile": "https://Stackoverflow.com/users/19620151",
"pm_score": 1,
"selected": false,
"text": "TotalYears get_time TotalYears year = int(input(\"Enter years: \"))\nmonth = int(input(\"Enter months: \")... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593393/"
] |
74,565,105 | <p>I want to change the background of the elements in a list from dark to light.</p>
<p>The number of items in the list is variable. It could be 5, it could be 50.</p>
<p>I can set the default color of the first item.</p>
<p>for example;
<a href="https://i.stack.imgur.com/dqSnY.png" rel="nofollow noreferrer">for exampl... | [
{
"answer_id": 74565172,
"author": "michael perkins",
"author_id": 19620151,
"author_profile": "https://Stackoverflow.com/users/19620151",
"pm_score": 1,
"selected": false,
"text": "TotalYears get_time TotalYears year = int(input(\"Enter years: \"))\nmonth = int(input(\"Enter months: \")... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20592836/"
] |
74,565,121 | <p>After defining a variable ("xyz" at screenshot), I fetched some data on my firestore database, then changed that variable value to data i fetched from firestore. When I print the changed variable with "print()" it appears at "Run" the value I fetched, which is what I want. But when I r... | [
{
"answer_id": 74565172,
"author": "michael perkins",
"author_id": 19620151,
"author_profile": "https://Stackoverflow.com/users/19620151",
"pm_score": 1,
"selected": false,
"text": "TotalYears get_time TotalYears year = int(input(\"Enter years: \"))\nmonth = int(input(\"Enter months: \")... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20267587/"
] |
74,565,122 | <pre><code>String s = "vttqexwqgdc";
char[] ch = s.toCharArray();
int[] indices = {9, 5, 8, 0, 4, 3, 6, 10, 1, 2, 7};
ArrayList<String> list = new ArrayList<>();
for (int i = 0, j = 0; i < ch.length; i++, j++) {
list.add((indices[j] + "" + ch[i]));
}
Collections.sort(list);
System... | [
{
"answer_id": 74565172,
"author": "michael perkins",
"author_id": 19620151,
"author_profile": "https://Stackoverflow.com/users/19620151",
"pm_score": 1,
"selected": false,
"text": "TotalYears get_time TotalYears year = int(input(\"Enter years: \"))\nmonth = int(input(\"Enter months: \")... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593457/"
] |
74,565,134 | <p>What is the proper way for storing LocalDate instances in h2 db?</p>
<p>I am using data type <code>TIMESTAMP</code> but getting a strange behaviour depending on the <code>user.timezone</code> java process started with.</p>
<p>When I insert a <code>TIMESTAMP</code> with timeZone America/Toronto - and read it back wit... | [
{
"answer_id": 74565172,
"author": "michael perkins",
"author_id": 19620151,
"author_profile": "https://Stackoverflow.com/users/19620151",
"pm_score": 1,
"selected": false,
"text": "TotalYears get_time TotalYears year = int(input(\"Enter years: \"))\nmonth = int(input(\"Enter months: \")... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1173112/"
] |
74,565,159 | <p>I would like to call a function that is inside another function, that function will clear the timeout.</p>
<p>I have tried the following code, but without success:</p>
<pre class="lang-js prettyprint-override"><code>async function Blast2() {
const delayTime = 1000;
const timer = (ms) => new Promise((res) =>... | [
{
"answer_id": 74565172,
"author": "michael perkins",
"author_id": 19620151,
"author_profile": "https://Stackoverflow.com/users/19620151",
"pm_score": 1,
"selected": false,
"text": "TotalYears get_time TotalYears year = int(input(\"Enter years: \"))\nmonth = int(input(\"Enter months: \")... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17909031/"
] |
74,565,175 | <p>Suppose I have something like this:</p>
<pre><code>CREATE TABLE "PIPPO" ("COLUMN1" number);
INSERT INTO PIPPO (COLUMN1) VALUES (1);
INSERT INTO PIPPO (COLUMN1) VALUES (2);
INSERT INTO PIPPO (COLUMN1) VALUES (3);
INSERT INTO PIPPO (COLUMN1) VALUES (4);
INSERT INTO PIPPO (COLUMN1) VALUES (5);
I... | [
{
"answer_id": 74565259,
"author": "jarlh",
"author_id": 3706016,
"author_profile": "https://Stackoverflow.com/users/3706016",
"pm_score": 3,
"selected": true,
"text": "FETCH FIRST select * from\n(\n select * from PIPPO \n order by COLUMN1 desc\n fetch first (select mod(count(*)... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3359469/"
] |
74,565,179 | <p>I have a boxplot with four groups and I want to add a name to each group that consists <strong>of two lines</strong> and <strong>includes subscripts</strong>. Therefore I tried using <code>bquote()</code>:</p>
<pre><code>#sample data
groups = matrix(1:40,ncol=4)
#create group names
names = as.expression(sapply(1:4,... | [
{
"answer_id": 74565259,
"author": "jarlh",
"author_id": 3706016,
"author_profile": "https://Stackoverflow.com/users/3706016",
"pm_score": 3,
"selected": true,
"text": "FETCH FIRST select * from\n(\n select * from PIPPO \n order by COLUMN1 desc\n fetch first (select mod(count(*)... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11738400/"
] |
74,565,181 | <pre><code> Container(
decoration: BoxDecoration(
color: (page == _currentPage)
? Colors.blue.shade800
: Colors.green.shade600
),
</code></pre>
<p>I am trying to add another option to the tenerary operator since i have t... | [
{
"answer_id": 74565295,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": false,
"text": "color: page == _currentPage\n ? anotherCheck == _currentPage? \n Colors.blue.shade500: Colors.... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17302941/"
] |
74,565,192 | <p>I have a third party closed source c library that interfaces with hardware. The library has some api functions that accept <code>void *</code> arguments to read/write and configure some io, like so:</p>
<pre><code>int iocall(int cmd, void * args);
int iorw(int cmd, void * buff, size_t buff_size);
</code></pre>
<p>I ... | [
{
"answer_id": 74565295,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 2,
"selected": false,
"text": "color: page == _currentPage\n ? anotherCheck == _currentPage? \n Colors.blue.shade500: Colors.... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593119/"
] |
74,565,207 | <p>I have a table
tx_bla_domain_model_offer</p>
<p>in the title field I store several titles from
tx_bla_domain_model_blubtitle
with
tx_bla_blub_title_mm</p>
<p>The first time I save everything is correct, I can sort the titles as I want and it keeps everything sorted.</p>
<p>Only, if I want to sort the same titles dif... | [
{
"answer_id": 74568919,
"author": "Bernd Wilke πφ",
"author_id": 6796354,
"author_profile": "https://Stackoverflow.com/users/6796354",
"pm_score": 1,
"selected": false,
"text": "attention"
},
{
"answer_id": 74575750,
"author": "Gero Langheim",
"author_id": 20593382,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593382/"
] |
74,565,229 | <p>I am using below formula to find the last matching value<br />
but how can i expand it with ArrayFormula<br />
=index(filter(A:A,B:B=F3),SUMPRODUCT(B:B=F3))</p>
<p>I expect to have a arrayformula to work with index and filter but couldnt</p>
| [
{
"answer_id": 74568919,
"author": "Bernd Wilke πφ",
"author_id": 6796354,
"author_profile": "https://Stackoverflow.com/users/6796354",
"pm_score": 1,
"selected": false,
"text": "attention"
},
{
"answer_id": 74575750,
"author": "Gero Langheim",
"author_id": 20593382,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20590728/"
] |
74,565,244 | <p>Im making portfolio website, and I want my fixed texts change its color on some sections, how can I do that ?I can't post my code,because its too big and long, but if you will give example with codes will be really pleased,here is how it must look like (<a href="https://olaolu.dev" rel="nofollow noreferrer">https://... | [
{
"answer_id": 74568919,
"author": "Bernd Wilke πφ",
"author_id": 6796354,
"author_profile": "https://Stackoverflow.com/users/6796354",
"pm_score": 1,
"selected": false,
"text": "attention"
},
{
"answer_id": 74575750,
"author": "Gero Langheim",
"author_id": 20593382,
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19269749/"
] |
74,565,245 | <p>i get the error Unhandled Exception: "dynamic" not found. You need to call "Get.put(dynamic())" or "Get.lazyPut(()=>dynamic())" when i call the authController, below is my code.</p>
<pre><code>if (Get.find<AuthController>().isLoggedIn()) {
//statements
}
</code></pre>
<p>... | [
{
"answer_id": 74565644,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 2,
"selected": false,
"text": "Getx Get.find() sharedPreferences AuthController Get.find();\nGet.find();\n Getx Type Getx Type dynamic Get.find();... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7987255/"
] |
74,565,298 | <p>I have a list of values and want to create a new dictionary from an existing dictionary using the key/value pairs that correspond to the values in the list. I can't find a Stackoverflow answer that covers this.</p>
<pre><code>example_list = [1, 2, 3, 4, 5]
original_dict = {"a": 1, "b": 2, "... | [
{
"answer_id": 74565321,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 3,
"selected": true,
"text": "dict comprehension filter example_list = [1, 2, 3, 4, 5]\n\noriginal_dict = {\"a\": 1, \"b\": 2, \"c\": 9, \"d\": 2, ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16027663/"
] |
74,565,303 | <p>I have an exported csv file that contains extracted climate data from netCDF file, however the Date column has exported as below list, I would like to change this column to normal datetime.
Is there any solution please!
Thanks!</p>
<pre><code>(cftime.Datetime360Day(2006, 1, 1, 12, 0, 0, 0, has_year_zero=True),)
(cf... | [
{
"answer_id": 74565321,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 3,
"selected": true,
"text": "dict comprehension filter example_list = [1, 2, 3, 4, 5]\n\noriginal_dict = {\"a\": 1, \"b\": 2, \"c\": 9, \"d\": 2, ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593581/"
] |
74,565,320 | <p>I just joined a new company and I'm trying to learn Airflow as I used it. So far I've got the basics of most things down except External Task Sensors.
I have two DAGs, DAG A that has a schedule interval of <code>"0 6 * * *"</code> and DAG B with schedule interval of <code>"0 7 * * *"</code> DAG A... | [
{
"answer_id": 74597849,
"author": "Jabbar",
"author_id": 16930239,
"author_profile": "https://Stackoverflow.com/users/16930239",
"pm_score": 0,
"selected": false,
"text": "timeout reschedule poke ExternalTaskSensor(\n task_id = \"wait_sensor\",\n external_dag_id=\"dag_b\",\n ex... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2250263/"
] |
74,565,364 | <p>I have a dataframe like this:</p>
<pre><code>INDEX_COL col1
A Random Text
B Some more random text
C more stuff
A Blah
B Blah, Blah
C Yet more stuff
A ... | [
{
"answer_id": 74565448,
"author": "Nuri Taş",
"author_id": 19255749,
"author_profile": "https://Stackoverflow.com/users/19255749",
"pm_score": 3,
"selected": true,
"text": "agg(list) explode output = df.groupby('INDEX_COL').agg(list).T.apply(pd.Series.explode)\n INDEX_COL A ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8818760/"
] |
74,565,368 | <p>I've been on this for a while now, trying to find something similar. And I bet there is - I just can't seem to find it.</p>
<p>Basically what I am trying to do is getting the name of a term located in a custom taxonomy by ID.</p>
<p>The taxonomy is called <code>pwb-brand</code></p>
<p>The term ID is generated from a... | [
{
"answer_id": 74566031,
"author": "Web Assembler",
"author_id": 15500541,
"author_profile": "https://Stackoverflow.com/users/15500541",
"pm_score": 0,
"selected": false,
"text": "get_term_by $brands = get_terms( array(\n 'taxonomy' => 'pwb-brand',\n));\n the_sub_field echo '<pre>';\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4026698/"
] |
74,565,378 | <p>I am trying to understand the order of events in the code. I hypothesized that after a click event, when Promise 2 (//2) is awaited, the for loop would proceed, after Promise 1 is awaited, and break because <code>stop</code> had been set to true prior to Promise 2 being awaited. However, it isn't predictable. Wha... | [
{
"answer_id": 74566031,
"author": "Web Assembler",
"author_id": 15500541,
"author_profile": "https://Stackoverflow.com/users/15500541",
"pm_score": 0,
"selected": false,
"text": "get_term_by $brands = get_terms( array(\n 'taxonomy' => 'pwb-brand',\n));\n the_sub_field echo '<pre>';\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12465038/"
] |
74,565,412 | <p>In my nav bar I want my logo text to be centered vertically with the logo. Here's <a href="https://i.stack.imgur.com/YI6N9.png" rel="nofollow noreferrer">what it looks like right now</a>.</p>
<p>HTML:</p>
<pre><code><header>
<ul class = "logo">
<img class = "... | [
{
"answer_id": 74565502,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 1,
"selected": false,
"text": "flex align-items: center .logo Flex .logo {\n margin-right: auto;\n list-style: none;\n /* Add these */\n dis... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16529833/"
] |
74,565,429 | <p>I want to connect to the <code>twelevedata</code> server through its provided socket connection to receive information.</p>
<pre class="lang-js prettyprint-override"><code>
import * as dotenv from 'dotenv'
import WebSocket from 'ws';
import express from 'express'
const app = express();
//setting up env
dotenv.con... | [
{
"answer_id": 74565722,
"author": "Christian Fritz",
"author_id": 1087119,
"author_profile": "https://Stackoverflow.com/users/1087119",
"pm_score": 1,
"selected": false,
"text": "emit send ws.emit('subscribe',payload)\n ws.send(payload)\n"
},
{
"answer_id": 74577712,
"author... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13708712/"
] |
74,565,432 | <p>I am new at using the angular form, and I was told to use reactive forms and I am following the angular material tutorial, but when I tried to use the input that has the form control it says that is not part of the input, and I believe that I already have all the imports, here is the error my code.</p>
<p><code> Can... | [
{
"answer_id": 74565498,
"author": "Andrés Blanco",
"author_id": 14017883,
"author_profile": "https://Stackoverflow.com/users/14017883",
"pm_score": -1,
"selected": false,
"text": "<label for=\"name\">Name: </label>\n<input id=\"name\" type=\"text\" matInput [formControl]=\"name\">\n"
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531528/"
] |
74,565,437 | <p>When I was working on a Django project (blog), I had an error(s) while working on the site. Here are the errors I have appeared:
1: When I entered the python command manage.py makemigrations blog(via the console) in the directory C:\mysite\site\miniproject , then there is this:</p>
<pre><code>Traceback (most recent ... | [
{
"answer_id": 74565495,
"author": "Swift",
"author_id": 8874154,
"author_profile": "https://Stackoverflow.com/users/8874154",
"pm_score": 1,
"selected": false,
"text": "ForeignKey on_delete BlogPost models.ForeignKey(..., on_delete=models.CASCADE)\n BlogPost blog/models.py"
},
{
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19350769/"
] |
74,565,450 | <p>Hi I have problem i dont knbwo how to add numbers order 1 to 8 on the left side and right side of this function. And another problem is there is always showing none when I print it I dont know why I thouth it was beacouse my function was empty but that din't help . So what can I do with this thank you very much.</p>... | [
{
"answer_id": 74565495,
"author": "Swift",
"author_id": 8874154,
"author_profile": "https://Stackoverflow.com/users/8874154",
"pm_score": 1,
"selected": false,
"text": "ForeignKey on_delete BlogPost models.ForeignKey(..., on_delete=models.CASCADE)\n BlogPost blog/models.py"
},
{
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583119/"
] |
74,565,468 | <p>I am trying to install an exe created using Inno Setup.
When I try to install it using PowerShell with</p>
<pre class="lang-none prettyprint-override"><code>Start-Process -wait C:\updatefile.exe /VERYSILENT
</code></pre>
<p>all folders are created at proper places, registry values are created, but console hangs and ... | [
{
"answer_id": 74565710,
"author": "mklement0",
"author_id": 45375,
"author_profile": "https://Stackoverflow.com/users/45375",
"pm_score": 4,
"selected": true,
"text": "-Wait Start-Process cmd.exe start Start-Process cmd /c C:\\updatefile.exe /VERYSILENT\n cmd /c cmd.exe start /wait -Pas... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1126021/"
] |
74,565,479 | <p>I have a fairly simple terraform setup setting up:</p>
<ul>
<li>An AWS VPC</li>
<li>Its default route table, with an endpoint to S3</li>
<li>A couple of security groups</li>
<li>Some EC2 instances</li>
<li>An internal Route53 DNS zone</li>
</ul>
<p>Now, if I execute <code>terraform plan</code> immediately after <cod... | [
{
"answer_id": 74565710,
"author": "mklement0",
"author_id": 45375,
"author_profile": "https://Stackoverflow.com/users/45375",
"pm_score": 4,
"selected": true,
"text": "-Wait Start-Process cmd.exe start Start-Process cmd /c C:\\updatefile.exe /VERYSILENT\n cmd /c cmd.exe start /wait -Pas... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62143/"
] |
74,565,490 | <p>I am wondering how it is possible to combine the following functions into one. The functions remove the entire word if "_" respectively "/" occur in a text.</p>
<p>I have tried the following, and the code fulfils it purpose. It his however cumbersome and I am wondering how to simplify it.</p>
<pr... | [
{
"answer_id": 74565710,
"author": "mklement0",
"author_id": 45375,
"author_profile": "https://Stackoverflow.com/users/45375",
"pm_score": 4,
"selected": true,
"text": "-Wait Start-Process cmd.exe start Start-Process cmd /c C:\\updatefile.exe /VERYSILENT\n cmd /c cmd.exe start /wait -Pas... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20556046/"
] |
74,565,515 | <p>I am new to DynamoDB and working on a dynamo project. I am trying to update the item amount in a transaction with condition <strong>if_not_exists()</strong> with <strong>TransactionWriteRequest</strong> in DynamoDB Mapper.</p>
<p>As per the Doc, <strong>transactionWriteRequest.updateItem()</strong> takes <strong>Dyn... | [
{
"answer_id": 74565710,
"author": "mklement0",
"author_id": 45375,
"author_profile": "https://Stackoverflow.com/users/45375",
"pm_score": 4,
"selected": true,
"text": "-Wait Start-Process cmd.exe start Start-Process cmd /c C:\\updatefile.exe /VERYSILENT\n cmd /c cmd.exe start /wait -Pas... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5124753/"
] |
74,565,537 | <p>I have a node express server running on Machine 1 as (0.0.0.0) and some client applications running on Machine 2, 3, and so on...
All machines are connected to the same Wi-Fi</p>
<p>How can I get the private IP of Machine 1 (which is running the express server), so that I can directly start calling the server APIs f... | [
{
"answer_id": 74565710,
"author": "mklement0",
"author_id": 45375,
"author_profile": "https://Stackoverflow.com/users/45375",
"pm_score": 4,
"selected": true,
"text": "-Wait Start-Process cmd.exe start Start-Process cmd /c C:\\updatefile.exe /VERYSILENT\n cmd /c cmd.exe start /wait -Pas... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7771944/"
] |
74,565,551 | <p>I'm trying to make the code repeat the line "player name invalid" and ask for the input repetively until the input is "player 1". How do i do that?</p>
<pre><code>correct_n="player 1"
while True:
Name1 = input ("Enter Your Name: ")
if Name1 == correct_n:
cp = '... | [
{
"answer_id": 74565582,
"author": "walker",
"author_id": 19708567,
"author_profile": "https://Stackoverflow.com/users/19708567",
"pm_score": -1,
"selected": false,
"text": "while input('Enter your name: ') != 'player 1': print('Player name invalid')\n"
},
{
"answer_id": 74565611... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593781/"
] |
74,565,594 | <p>I am using cypress to test that a textfield displays the entered text correctly.</p>
<pre><code>cy.get('.creation-name').should('not.have.text');
const testName = 'Test name';
cy.get('.creation-name').type(`${testName}`);
</code></pre>
<p>TextField is a MUI component and this is a React project.</p>
<pre><code><d... | [
{
"answer_id": 74565679,
"author": "Fody",
"author_id": 16997707,
"author_profile": "https://Stackoverflow.com/users/16997707",
"pm_score": 3,
"selected": true,
"text": "<input> cy.get('.creation-name') // or .create-name, maybe a typo in the question\n .find('input')\n .invoke('val')... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12474420/"
] |
74,565,596 | <p>Clean Architecture recommends to implement "enterprise wide rules" in the entity / domain level.</p>
<p>I'm struggling to understand how to deal with the following scenario: Take a warehouse where you need to make sure that safety rules are followed. For example, acid must not be stored above alkaline (lye... | [
{
"answer_id": 74565679,
"author": "Fody",
"author_id": 16997707,
"author_profile": "https://Stackoverflow.com/users/16997707",
"pm_score": 3,
"selected": true,
"text": "<input> cy.get('.creation-name') // or .create-name, maybe a typo in the question\n .find('input')\n .invoke('val')... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10035674/"
] |
74,565,625 | <p>I'm kinda new to JS so I kinda got stuck with this what it seemed simple problem.
I have to convert payload from:</p>
<pre><code>const payload = {left: ['name', 'phone'], right: ['address']}
</code></pre>
<p>to:</p>
<pre><code>const payload =
columns: {
name: {
pinned: 'left',
},
phone:... | [
{
"answer_id": 74565679,
"author": "Fody",
"author_id": 16997707,
"author_profile": "https://Stackoverflow.com/users/16997707",
"pm_score": 3,
"selected": true,
"text": "<input> cy.get('.creation-name') // or .create-name, maybe a typo in the question\n .find('input')\n .invoke('val')... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17361030/"
] |
74,565,663 | <p>I have a library (dll). For some reason, when I compile, file .runtimeconfig.json is generated:</p>
<pre><code>{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": &qu... | [
{
"answer_id": 74565679,
"author": "Fody",
"author_id": 16997707,
"author_profile": "https://Stackoverflow.com/users/16997707",
"pm_score": 3,
"selected": true,
"text": "<input> cy.get('.creation-name') // or .create-name, maybe a typo in the question\n .find('input')\n .invoke('val')... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2671330/"
] |
74,565,668 | <p>I'm trying to make a program that accepts the number of students enrolled to an exam, and how many points each of them got. I try to loop the inputs but it gives seemingly random numbers in output</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
int main ()
{
int studenti;
scanf("%d&qu... | [
{
"answer_id": 74565781,
"author": "Dash",
"author_id": 11542834,
"author_profile": "https://Stackoverflow.com/users/11542834",
"pm_score": 0,
"selected": false,
"text": "malloc"
},
{
"answer_id": 74566046,
"author": "user3121023",
"author_id": 3121023,
"author_profil... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17594677/"
] |
74,565,689 | <p>i have a problem with this python code for inverting a Number
<strong>like Nb = 358 ---> inv = 853</strong>
but in the end <strong>i got 'inf' msg</strong> from the prog , and its runs normally in C language</p>
<pre><code>def envers(Nb):
inv = 0
cond = True
while cond:
s = Nb % 10
inv = (inv*10)+ s
... | [
{
"answer_id": 74565717,
"author": "ti7",
"author_id": 4541045,
"author_profile": "https://Stackoverflow.com/users/4541045",
"pm_score": 2,
"selected": false,
"text": ">>> int(input(\"enter a number to reverse: \")[::-1])\nenter a number to reverse: 1234\n4321\n input() [::-1] int"
},
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18900688/"
] |
74,565,704 | <p>I am learning SQL and using Oracle SQL Developer.
I have a table that contains the following columns</p>
<ol>
<li>FlightDate</li>
<li>DepartureTime</li>
<li>ArrivalTime</li>
</ol>
<p>I have inserted values using either</p>
<pre><code>TO_DATE('10:45', 'hh24:mi')
</code></pre>
<p>or</p>
<pre><code>TO_DATE('20/10/2000'... | [
{
"answer_id": 74565870,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "DATE SQL> create table flight\n 2 (id number,\n 3 flight_date date,\n 4 departure_ti... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20239849/"
] |
74,565,707 | <p>I have an excel file and I accumulate thre values for each fruit sort with each other.</p>
<p>So I do it like this:</p>
<pre><code>def calulate_total_fruit_NorthMidSouth():
import openpyxl
import tabula
excelWorkbook = openpyxl.load_workbook(path, data_only=True)
sheet_factuur = excelWorkbook['Fac... | [
{
"answer_id": 74565891,
"author": "Cole Bechtel",
"author_id": 20593892,
"author_profile": "https://Stackoverflow.com/users/20593892",
"pm_score": 0,
"selected": false,
"text": "mylist = list(fruit_sums.items())\nfor i in mylist:\n newlist = list(i)\n for x in range(len(newlist)):\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7713770/"
] |
74,565,735 | <p>let's say a generic code of validate function of shiny R :</p>
<pre><code>## Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
checkboxGroupInput('in1', 'Check some letters', choices = head(LETTERS)),
selectizeInput('in2', 'Select a state', choices = state.name),
plotOutput(... | [
{
"answer_id": 74566411,
"author": "Johan Rosa",
"author_id": 10266675,
"author_profile": "https://Stackoverflow.com/users/10266675",
"pm_score": 0,
"selected": false,
"text": ".shiny-output-error-validation library(shiny)\n\nui <- fluidPage(\n tags$head(\n tags$style(HTML(\"\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8811744/"
] |
74,565,811 | <p>I have a class called Bullet which is essentially a div on a space invader webpage. When this bullet gets 'fired' I call a method which gradually moves the 'bullet' up the screen.</p>
<p>When the bullet gets to the edge of the screen I want to remove the whole bullet object from memory. However, the <code>setTimeout... | [
{
"answer_id": 74565880,
"author": "Amanda Woods",
"author_id": 19771135,
"author_profile": "https://Stackoverflow.com/users/19771135",
"pm_score": 2,
"selected": false,
"text": "const fireBullet = setTimeout(function(){\n that.moveUp();\n window.dispatchEvent(that.bulletmove);\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4150443/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.