qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,657,044 | <p>My task is to insert or update rows in a table2. Table1 contains id's of all employees. That id matches the ID in the table2. Some of the employees in table2 already have the rows I need but some don't. Table2 doesn't contain the ID's of the employees that don't have those rows.</p>
<p>My task is to update the rows ... | [
{
"answer_id": 74657108,
"author": "Dylan Delobel",
"author_id": 8338464,
"author_profile": "https://Stackoverflow.com/users/8338464",
"pm_score": -1,
"selected": false,
"text": "window.close() window.close() <button onclick=\"window.close()\">Close Window</button>\n button onclick windo... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18209333/"
] |
74,657,057 | <p>I am recently want to see and run some other developers code in github and clone it to run in my emulator but it showing some error like this</p>
<p>"Running "flutter pub get" in budgex...<br />
Because budgex depends on basic_utils from path which doesn't exist (could not find package basic_utils at ... | [
{
"answer_id": 74657108,
"author": "Dylan Delobel",
"author_id": 8338464,
"author_profile": "https://Stackoverflow.com/users/8338464",
"pm_score": -1,
"selected": false,
"text": "window.close() window.close() <button onclick=\"window.close()\">Close Window</button>\n button onclick windo... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20564203/"
] |
74,657,064 | <p>I have a file with multiple columns. I want to check the following conditions :</p>
<p>file.csv</p>
<pre><code>A.B.P;FATH;FNAME;XTRUC;XIZE;XIZE2;ORG;ORG2
AIT;Y9A;RAIT;UNKNOWN;UNKNOWN;80;X;XY
AIT-A;Y9A;RAIT;VIR;67;217;X;X
</code></pre>
<ul>
<li>if $4 contains <code>UNKNOWN</code> print in a new <code>error</code> col... | [
{
"answer_id": 74657537,
"author": "Dennis Williamson",
"author_id": 26428,
"author_profile": "https://Stackoverflow.com/users/26428",
"pm_score": 2,
"selected": true,
"text": "awk -F ';' 'BEGIN {OFS = FS}\n{new_field = NF + 1}\n$5 != $6 {$new_field = $new_field \"XIZE and XIZE2 do not m... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11363473/"
] |
74,657,065 | <p>I am building a CRUD app with React. For the Product Edit page where I want to edit a specific product(clicked product), I need to grab the product's Id. I use the dollar symbol in the code but it doesn't get blue(it doesn't work). I need the URL to change the specific product showing its id when clicked. How to do ... | [
{
"answer_id": 74657114,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 2,
"selected": false,
"text": "'' await axios.put(`http://localhost:3001/products/${id}`, product);\n"
},
{
"answer_id": 74657133... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14958858/"
] |
74,657,070 | <p>I am using Github codespace for creating an automated web scraping application using Webdriver-manager <a href="https://pypi.org/project/webdriver-manager/" rel="nofollow noreferrer">webdriver-manager</a> with Selenium.</p>
<p>I have tried: <a href="https://stackoverflow.com/questions/51046454/how-can-we-use-selen... | [
{
"answer_id": 74657114,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 2,
"selected": false,
"text": "'' await axios.put(`http://localhost:3001/products/${id}`, product);\n"
},
{
"answer_id": 74657133... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20148546/"
] |
74,657,136 | <p>I am trying to return a <code>value</code> from <code>get_queryset</code>.</p>
<pre><code>def get_queryset(self):
if self.request.user.is_superuser:
return StockPriceModel.objects.order_by('ticker').distinct()
elif not self.request.user.is_authenticated:
print('in')
print(self.request.d... | [
{
"answer_id": 74657114,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 2,
"selected": false,
"text": "'' await axios.put(`http://localhost:3001/products/${id}`, product);\n"
},
{
"answer_id": 74657133... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6387095/"
] |
74,657,168 | <p>I have a web-app I'm allowing users to add scripts to. These scripts are written in JavaScript and run in the user's browser. When developing new scripts to run locally, I've added a button to the app that allows you to load it from a locally running web server, (i.e. so you'd click on it and enter <a href="http://p... | [
{
"answer_id": 74657114,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 2,
"selected": false,
"text": "'' await axios.put(`http://localhost:3001/products/${id}`, product);\n"
},
{
"answer_id": 74657133... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2132/"
] |
74,657,182 | <p>When measuring elapsed time in Python, I use the following method.</p>
<pre><code>import time
startTime = time.time()
nowTime = time.time() - startTime
</code></pre>
<p>I think this code gets UNIX time in seconds.</p>
<p>time.time() returns a Float Value such as this.</p>
<pre><code>>>> import time
>>... | [
{
"answer_id": 74657253,
"author": "Ram",
"author_id": 2756820,
"author_profile": "https://Stackoverflow.com/users/2756820",
"pm_score": 0,
"selected": false,
"text": "double now = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12104604/"
] |
74,657,195 | <p>I am calling an array of all the comments of a poll by using the following code:</p>
<pre><code>$poll = Poll::find($id);
return view('pages.poll', ['poll' => $poll, 'comments' => $poll->comments]);
</code></pre>
<p>and the links between Comments and Polls are the following:</p>
<p><strong>Comment.php<... | [
{
"answer_id": 74657253,
"author": "Ram",
"author_id": 2756820,
"author_profile": "https://Stackoverflow.com/users/2756820",
"pm_score": 0,
"selected": false,
"text": "double now = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15775091/"
] |
74,657,266 | <p>here little example of my data.</p>
<pre><code>sales.data=structure(list(MDM_Key = c(370L, 370L, 370L, 370L, 370L, 370L,
370L, 371L, 371L, 371L, 371L, 371L, 371L, 371L), sale_count = c(30L,
32L, 32L, 24L, 20L, 15L, 23L, 30L, 32L, 32L, 24L, 20L, 15L, 23L
), iek_disc_price = c(38227.08, 38227.08, 33739.7, 38227.08, ... | [
{
"answer_id": 74657356,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 2,
"selected": false,
"text": "MDM_Key library(dplyr)\nlibrary(purrr)\nlibrary(broom)\n\nsales.data %>% \n group_by(MDM_Key) %>% \n mutate... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4529548/"
] |
74,657,268 | <p>I want to calculate the minimum and maximum values of array <code>A</code> but I want to exclude all values less than <code>1e-12</code>. I present the current and expected outputs.</p>
<pre><code>import numpy as np
A=np.array([[9.49108487e-05],
[1.05634586e-19],
[5.68676707e-17],
[1.02453254e-0... | [
{
"answer_id": 74657290,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "B = A[A>1e-12]\nMin = np.min(B)\nMax = np.max(B)\nprint(Min, Max)\n 1.02453254e-06 9.49108487e-05 B array([9.4910848... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20032724/"
] |
74,657,295 | <p>I've been playing around with reducers in this years's first advent of code challenge, and this code works fine:</p>
<pre><code>export default class CalorieCounter {
public static calculateMaxInventoryValue(elfInventories: number[][]): number {
const sumInventoriesReducer = (
acc: number[],
element... | [
{
"answer_id": 74657511,
"author": "Inbar Azulay",
"author_id": 6949373,
"author_profile": "https://Stackoverflow.com/users/6949373",
"pm_score": -1,
"selected": false,
"text": "this.sumCalories(element) this.sumCalories(element) number[] return [...acc, ...this.sumCalories(element)];"
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12233328/"
] |
74,657,323 | <pre><code>private void pictureBox2_Paint(object sender, PaintEventArgs e)
{
Bitmap bmp = new Bitmap(pictureBox1.Image);
// Lock the bitmap's bits.
Rectangle rect = new Rectangle(0, 0, bmp.Width, bmp.Height);
System.Drawing.Imaging.BitmapData bmpData =
... | [
{
"answer_id": 74657511,
"author": "Inbar Azulay",
"author_id": 6949373,
"author_profile": "https://Stackoverflow.com/users/6949373",
"pm_score": -1,
"selected": false,
"text": "this.sumCalories(element) this.sumCalories(element) number[] return [...acc, ...this.sumCalories(element)];"
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14694568/"
] |
74,657,326 | <p>Im looking to improve my skills with Playwright and I am creating this code to make an "1way-3ways-final way".</p>
<p>error:</p>
<blockquote>
<p>page.goto: net::ERR_ABORTED at
<a href="https://computer-database.gatling.io/computers" rel="nofollow noreferrer">https://computer-database.gatling.io/computers</... | [
{
"answer_id": 74657511,
"author": "Inbar Azulay",
"author_id": 6949373,
"author_profile": "https://Stackoverflow.com/users/6949373",
"pm_score": -1,
"selected": false,
"text": "this.sumCalories(element) this.sumCalories(element) number[] return [...acc, ...this.sumCalories(element)];"
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667346/"
] |
74,657,339 | <p>On <a href="https://en.cppreference.com/w/cpp/ranges" rel="nofollow noreferrer">https://en.cppreference.com/w/cpp/ranges</a>, <strong>std::views::counted</strong> is listed in the <strong>range adaptors</strong> section. However, it is not tagged as range adaptor object.</p>
<p>I guess that why I can't write using t... | [
{
"answer_id": 74657467,
"author": "Cory Kramer",
"author_id": 2296458,
"author_profile": "https://Stackoverflow.com/users/2296458",
"pm_score": 1,
"selected": false,
"text": "#include <ranges>\n#include <iostream>\n \nint main()\n{\n const int a[] = {1, 2, 3, 4, 5, 6, 7};\n for(in... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15175771/"
] |
74,657,346 | <p>my list is like this, in example the string is 'a' and 'b' ;
i want to return the index of string 'a' and for 'b' then i want to calculate how many time is 'a' repeated in the list1 :</p>
<p><code>list1=['a','a','b','a','a','b','a','a','b','a','b','a','a']</code></p>
<p>i want to return the order of evry 'a' in list... | [
{
"answer_id": 74657395,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "list1=['a','a','b','a','a','b','a','a','b','a','b','a','a']\npos = {}\nfor i,c in enumerate(list1, start=1): # 1-ba... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15068171/"
] |
74,657,348 | <p>I have a doubt about reading files in C using fgets(). I've seen people use loops in order to do this, but I skip the loop part, doing this instead.</p>
<p>What's the difference between using a loop and my way?</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
int main() {
FILE *file = NULL;
... | [
{
"answer_id": 74657395,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "list1=['a','a','b','a','a','b','a','a','b','a','b','a','a']\npos = {}\nfor i,c in enumerate(list1, start=1): # 1-ba... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18182271/"
] |
74,657,363 | <p>I try to combine a list of string to string using reduce function but it doesn't work. I prefer to use reduce function anyway how do I fix this?</p>
<pre><code>>> reduce(lambda x, y: x + y + "\n", ["dog", "cat"])
# this doesn't work
# dogcat
>> "\n".join(["dog... | [
{
"answer_id": 74657394,
"author": "azro",
"author_id": 7212686,
"author_profile": "https://Stackoverflow.com/users/7212686",
"pm_score": 2,
"selected": false,
"text": "reduce(lambda x, y: x + \"\\n\" + y, [\"dog\", \"cat\"])\n"
},
{
"answer_id": 74657451,
"author": "abo",
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9740664/"
] |
74,657,402 | <p>Code(python):</p>
<pre class="lang-py prettyprint-override"><code>import tkinter as tk
root = tk.Tk()
root.geometry("600x400")
message_var2 = tk.StringVar()
def page2(message):
print(f'test\n{message}')
def getInputtemp():
global message
message = message_var2.get()
message_var2.set(&qu... | [
{
"answer_id": 74657553,
"author": "TKirishima",
"author_id": 14300637,
"author_profile": "https://Stackoverflow.com/users/14300637",
"pm_score": 1,
"selected": false,
"text": "global message None message None ...\nroot.geometry(\"600x400\")\nmessage_var2 = tk.StringVar()\nmessage = None... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19533292/"
] |
74,657,407 | <p>In Google Sheet, I would like to take the input of a cell, make a calculation, and display the result in the same cell in a different format. This would likely always be a percentage value that I would use conditional formatting to color the cell to provide a 'dashboard' view of statistics.</p>
<p>Example would be u... | [
{
"answer_id": 74657553,
"author": "TKirishima",
"author_id": 14300637,
"author_profile": "https://Stackoverflow.com/users/14300637",
"pm_score": 1,
"selected": false,
"text": "global message None message None ...\nroot.geometry(\"600x400\")\nmessage_var2 = tk.StringVar()\nmessage = None... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4297385/"
] |
74,657,410 | <p>I'm beginning my path in Typescript and got a problem that i can solve. I'm trying to acess one index of one array inside the return of a API call. In the console the value is printed perfectly, but appears this message of error.</p>
<p>This is the interface i made :</p>
<pre><code> interface Data {
list:... | [
{
"answer_id": 74657553,
"author": "TKirishima",
"author_id": 14300637,
"author_profile": "https://Stackoverflow.com/users/14300637",
"pm_score": 1,
"selected": false,
"text": "global message None message None ...\nroot.geometry(\"600x400\")\nmessage_var2 = tk.StringVar()\nmessage = None... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20132466/"
] |
74,657,428 | <p>It’s tedious that I have to copy-paste a function like loadInitialValue(), loadInitialValue2(), loadInitialValue3(), so on and so forth. This is my repetitive code (if you click “Mark as Read,” the title of the short story grays out; otherwise, it goes back to white again):</p>
<pre><code>function readunread() { // ... | [
{
"answer_id": 74657459,
"author": "Emilien",
"author_id": 18143359,
"author_profile": "https://Stackoverflow.com/users/18143359",
"pm_score": 3,
"selected": true,
"text": "function readunread(a) { // Short Story \n const elemId = \"readunread\"+a;\n currentvalue = document.getElem... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20615177/"
] |
74,657,444 | <p>I just want to clear my doubts on the <strong>fromIntegral</strong> type in Haskell.</p>
<p>The output for these 2 euclidean distance functions are the same, so what's the point of putting fromIntegral? Like they both give floating point values of the euclidean distances.</p>
<p>Also, for the type definition of my f... | [
{
"answer_id": 74657613,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 1,
"selected": false,
"text": "fromIntegral Integral a => a Floating a => a sqrt fromIntegral (Integral a, Num b) => a -> b Integral a b Num Floati... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20613671/"
] |
74,657,455 | <p>i have a problem with my sed command. I have the following file and want to replace line number 4.</p>
<p>text.txt content:</p>
<pre><code> 1 Hi World!
2 Okey
3 Test
4 ;date.timezone =
</code></pre>
<p>cmd command:</p>
<pre><code>sed -i -e "s/;date.timezone =/date.timezone = Europe/Berlin/" text... | [
{
"answer_id": 74657613,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 1,
"selected": false,
"text": "fromIntegral Integral a => a Floating a => a sqrt fromIntegral (Integral a, Num b) => a -> b Integral a b Num Floati... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18246292/"
] |
74,657,456 | <p>I'm new to yml language and just setup a github actions flow which works well manually, however when I try to make it work on pushing of specific tag it doesn't work:</p>
<p>I'm trying to have the yml execute after doing</p>
<pre><code>git commit -am "my commit"
git tag cicd11
git push
</code></pre>
<p>and... | [
{
"answer_id": 74657920,
"author": "myz540",
"author_id": 7829963,
"author_profile": "https://Stackoverflow.com/users/7829963",
"pm_score": 1,
"selected": false,
"text": "A tag named v2 (refs/tags/v2) **cicd** refs/tags/cicd**"
},
{
"answer_id": 74658330,
"author": "David A",... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2606914/"
] |
74,657,464 | <p>Simple Map here:</p>
<pre><code>Map map = Map<int, String>{};
</code></pre>
<p>I can populate it:</p>
<pre><code>map = {1: 'c', 2: 'dart', 3: 'flutter'};
</code></pre>
<p>Here I need to specify a KEY. I would like to know on how to get an auto key.</p>
<p>I cannot use map.lenght because whenever I will delete ... | [
{
"answer_id": 74657622,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "index autoKey() int index = 0;\nautoKey() {\n return ++index;\n}\n\nMap<int, String> map = {};\nmap = {autoKey(): ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4651768/"
] |
74,657,469 | <p>I'm pretty new parsing HTML documents and I'm stuck in this problem.</p>
<p>Giving an HTML document made like this:</p>
<pre><code><h3>File: /home/finxadm/XMW.SET.OXF.CPP/LangCpp/oxf/OMMainThread.h</h3>
<table class="metricstable" width="100%">
<h4>Function: ::OMMainThread... | [
{
"answer_id": 74657622,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "index autoKey() int index = 0;\nautoKey() {\n return ++index;\n}\n\nMap<int, String> map = {};\nmap = {autoKey(): ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17318257/"
] |
74,657,502 | <p>I need a predicate that gives me all the suffixes of a list on Prolog.</p>
<p>For example:</p>
<pre><code>?- suffixes([1,2,3], X).
X = [[1, 2, 3], [2, 3], [3], []].
</code></pre>
<p>I tried this and it works, but I can't use the findall function to get all of them in a single list.</p>
<pre><code>suffix(Xs, Ys) :- ... | [
{
"answer_id": 74657622,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "index autoKey() int index = 0;\nautoKey() {\n return ++index;\n}\n\nMap<int, String> map = {};\nmap = {autoKey(): ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667440/"
] |
74,657,554 | <p>I have a question about the <code>STRING_SPLIT</code>. I need to separate phrases inside a String, separated by comma. The problem is that some of these phrases have around them, more commas.</p>
<p>This is an example:</p>
<ol>
<li>Archiviazione, 2. Conservazione in archivi**,** ad accesso selezionato, 3. Conservazi... | [
{
"answer_id": 74657622,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "index autoKey() int index = 0;\nautoKey() {\n return ++index;\n}\n\nMap<int, String> map = {};\nmap = {autoKey(): ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667137/"
] |
74,657,570 | <p>I have a listbox and a (annual holiday) date picker. The user chooses the date and adds it to the Listbox. I then want to sort the Listbox from earliest to latest date. I tried using sorted Listbox but that did not work as it sorts like they are alphabetic strings. I then used unsorted Listbox and found some code an... | [
{
"answer_id": 74657622,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "index autoKey() int index = 0;\nautoKey() {\n return ++index;\n}\n\nMap<int, String> map = {};\nmap = {autoKey(): ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3884423/"
] |
74,657,579 | <p>Here is my code</p>
<pre><code><Image
resizeMode="contain"
source={require('../../assets/splash.gif')}
style={{ width: '100%', alignSelf: 'center' }}
/>
</code></pre>
<p>How can I control the gif to loop only once while first render? thanks.</p>
| [
{
"answer_id": 74657622,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": "index autoKey() int index = 0;\nautoKey() {\n return ++index;\n}\n\nMap<int, String> map = {};\nmap = {autoKey(): ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12317652/"
] |
74,657,605 | <p>In Python I can do something like:</p>
<pre class="lang-py prettyprint-override"><code>def add_postfix(name: str, postfix: str = None):
if base is None:
postfix = some_computation_based_on_name(name)
return name + postfix
</code></pre>
<p>So I have an optional parameter which, if not provided, gets assigned ... | [
{
"answer_id": 74657690,
"author": "NarekMeta",
"author_id": 11340026,
"author_profile": "https://Stackoverflow.com/users/11340026",
"pm_score": 1,
"selected": false,
"text": "std::string add_postfix(const std::string& name, const std::string& postfix = \"default value\")\n{\n return n... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4391249/"
] |
74,657,651 | <p>I am using Dart but i am facing null safty issue with following code</p>
<pre><code>RxMap<Product,int>cartItems=Map<Product,int>().obs;
</code></pre>
<pre><code>void updateCart(Product product,String type){
if(type=="plus") {
cartItems.value[product]++;
}
else {
cartItems.value[p... | [
{
"answer_id": 74657705,
"author": "Gowtham K K",
"author_id": 9248098,
"author_profile": "https://Stackoverflow.com/users/9248098",
"pm_score": 2,
"selected": false,
"text": "cartItems.value[product]??0 +1\n cartItems.value[product]!+1\n"
},
{
"answer_id": 74657834,
"author"... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13486465/"
] |
74,657,670 | <p>I have an array of index ranges and a string:</p>
<pre class="lang-js prettyprint-override"><code>const ranges = [[2,5], [11, 14]]
const str = 'brave new world'
</code></pre>
<p>I'm trying to write a function to interpolate and wrap the characters at those ranges.</p>
<pre class="lang-js prettyprint-override"><code>... | [
{
"answer_id": 74657737,
"author": "upo",
"author_id": 7497935,
"author_profile": "https://Stackoverflow.com/users/7497935",
"pm_score": 0,
"selected": false,
"text": "const magic = (str, ranges, before='<bold>', after='</bold>') => {\n // Create an array of characters from the input st... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1428445/"
] |
74,657,673 | <p>Today we have faced an specific error about a dependency of aws cli called botocore.
We are using pip from a bitbucket caches like in this yml below:</p>
<pre><code> - step: &build-and-publish
name: Build and Publish
services:
- docker
caches:
- pip
... | [
{
"answer_id": 74657737,
"author": "upo",
"author_id": 7497935,
"author_profile": "https://Stackoverflow.com/users/7497935",
"pm_score": 0,
"selected": false,
"text": "const magic = (str, ranges, before='<bold>', after='</bold>') => {\n // Create an array of characters from the input st... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6005116/"
] |
74,657,676 | <p>I'm using Splunk classic dashboards where I have 2 time range inputs. I want to compare data for 2 time frames in a single table. Essentially, I want to perform query which counts errors by type for period A and B, then join the searches by error type so that I can see how many errors of each type there were in peri... | [
{
"answer_id": 74657737,
"author": "upo",
"author_id": 7497935,
"author_profile": "https://Stackoverflow.com/users/7497935",
"pm_score": 0,
"selected": false,
"text": "const magic = (str, ranges, before='<bold>', after='</bold>') => {\n // Create an array of characters from the input st... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9914653/"
] |
74,657,684 | <p>I have an apache2 installation on my local linux server. It has a virtual host called <code>pcts.local</code> which has the root <code>/var/www/repos/pcts/</code>. Inside the root of pcts.local is a .htaccess file which attempts to rewrite urls to include .php if it isn't given like below:</p>
<pre><code>http://pcts... | [
{
"answer_id": 74657737,
"author": "upo",
"author_id": 7497935,
"author_profile": "https://Stackoverflow.com/users/7497935",
"pm_score": 0,
"selected": false,
"text": "const magic = (str, ranges, before='<bold>', after='</bold>') => {\n // Create an array of characters from the input st... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8410287/"
] |
74,657,691 | <p>There's a macro defined as:</p>
<pre><code>#define SET_ARRAY(field, type) \
foo.field = bar[#field].data<type>();
</code></pre>
<p><code>foo</code> is a structure with members that are of type <code>int</code> or <code>float *</code>. <code>bar</code> is of type <code>cnpy::npz_t</code> (data loaded from .n... | [
{
"answer_id": 74657737,
"author": "upo",
"author_id": 7497935,
"author_profile": "https://Stackoverflow.com/users/7497935",
"pm_score": 0,
"selected": false,
"text": "const magic = (str, ranges, before='<bold>', after='</bold>') => {\n // Create an array of characters from the input st... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4409108/"
] |
74,657,722 | <p>I am trying to use a for loop with a nested ifelse statement to generate an indicator variable in a dataframe. I'm fairly new to using for-loops however. Other questions I've found seem to be more complex than my dataset, so the answers haven't been ideal for my situation.</p>
<p>Essentially, I have survey recipient... | [
{
"answer_id": 74657781,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": true,
"text": "%in% SurveyData$both_recip_boss <- +(SurveyData$RecipientFullName %in% bossrecip)\n\nSurveyData\n#> RecipientFullN... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18012617/"
] |
74,657,775 | <p>I am writing a bazel rule, and one of the steps is acquiring an authentication token that will expire in some time. When I rebuild this target after that time, the step sees that nothing regarding getting that token has changed, so bazel uses a cached token.</p>
<p>Is there a way to take the TTL of that token into a... | [
{
"answer_id": 74657781,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": true,
"text": "%in% SurveyData$both_recip_boss <- +(SurveyData$RecipientFullName %in% bossrecip)\n\nSurveyData\n#> RecipientFullN... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/241552/"
] |
74,657,789 | <p>I am getting <code>KeyError: "['CashFinancial'] not in index"</code> on the <code>df.to_csv</code> line because 'GOOG' doesn't have the <code>CashFinancial</code> column. How can I have it write in <code>null</code> for the <code>CashFinancial</code> value for 'GOOG'?</p>
<pre><code>import pandas as pd
fr... | [
{
"answer_id": 74657781,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": true,
"text": "%in% SurveyData$both_recip_boss <- +(SurveyData$RecipientFullName %in% bossrecip)\n\nSurveyData\n#> RecipientFullN... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6245473/"
] |
74,657,805 | <p>I'm trying to use Hibernate to map the following relationship:</p>
<p>Each order contains 2 images. When I delete an order I want the images gone as well.</p>
<p>I have two entities, OrderItems and Image and they look like this</p>
<pre><code>public class OrderItems {
@Id
@GeneratedValue(strategy = Generati... | [
{
"answer_id": 74657781,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": true,
"text": "%in% SurveyData$both_recip_boss <- +(SurveyData$RecipientFullName %in% bossrecip)\n\nSurveyData\n#> RecipientFullN... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20005272/"
] |
74,657,824 | <p>I'm using Axios to fetch some data:</p>
<pre><code>export const getProducts = async () => {
try {
const { data } = await axios.get(`/api/products`)
return data
} catch (err) {
console.log(err)
return err
}
}
</code></pre>
<p>Everything is fine, but I need to catch http errors... | [
{
"answer_id": 74657781,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": true,
"text": "%in% SurveyData$both_recip_boss <- +(SurveyData$RecipientFullName %in% bossrecip)\n\nSurveyData\n#> RecipientFullN... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15797551/"
] |
74,657,825 | <p>Imagine a data frame...</p>
<pre><code>df <- rbind("A*YOU 1.000 0.780", "A*YOUR 1.000 0.780", "B*USE 0.800 0.678", "B*USER 0.700 1.000")
df <- as.data.frame(df)
df
</code></pre>
<p>... which prints...</p>
<pre><code>> df
V1
1 A*YOU 1.000 0.780
2 A*Y... | [
{
"answer_id": 74657931,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 1,
"selected": false,
"text": "> df[gsub(\"\\\\s*\\\\d+\\\\.*\", \"\", df$V1) %in% tenables, ,drop=FALSE]\n V1\n1 A*YOU 1.000... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13574232/"
] |
74,657,846 | <p>`</p>
<pre><code>export default async function handler(req, res) {
if (req.method === 'POST') {
try {
const bodyItems = req.body.items;
console.log(bodyItems)
const renderCartItems = bodyItems?.map( singleProduct => {
return {
... | [
{
"answer_id": 74657872,
"author": "Muhammad Salman",
"author_id": 15715337,
"author_profile": "https://Stackoverflow.com/users/15715337",
"pm_score": 0,
"selected": false,
"text": "const renderCartItems = bodyItems ? bodyItems.map(singleProduct => {\n // Code to map the items goes here... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17030379/"
] |
74,657,884 | <p>The issue I have is that after entering a value to be used by the variable <em>action</em>, the program immediately ends without doing any of the cases inside the switch. Will post the other functions if needed, but otherwise, I will refrain because it's too long and it will flood the page. Can anyone tell me why th... | [
{
"answer_id": 74657953,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 2,
"selected": false,
"text": "scanf scanf(\"%d\", action);\n %d int int * int scanf(\"%d\", &action);\n scanf %d"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20564942/"
] |
74,657,888 | <p>I am working with an Oracle DB 11g</p>
<p>I have a database table with the primary key being a CHAR(4) - Though only numbers are used for this column.</p>
<p>I noticed that there are some records that for example show '0018' or '0123'.</p>
<p>So few things I noticed odd and needed some help on</p>
<p>-Does a CHAR co... | [
{
"answer_id": 74658312,
"author": "Alex Poole",
"author_id": 266304,
"author_profile": "https://Stackoverflow.com/users/266304",
"pm_score": 2,
"selected": false,
"text": "18 '18 ' SELECT * FROM TABLE_A WHERE COLUMN_1=18;\n '0018' 18 '0018' '018 ' 18 18 '0018' 18 column_1 SELECT * FR... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3922588/"
] |
74,657,914 | <p>Is there a way to hover over data in a <code>plotly</code> graph and then be able to click on a choice of hyperlinks within the text?</p>
<p>There are a number of questions (e.g., <a href="https://stackoverflow.com/questions/71819237/ggplotly-clickable-link-in-r-plot">here</a>, <a href="https://stackoverflow.com/que... | [
{
"answer_id": 74658312,
"author": "Alex Poole",
"author_id": 266304,
"author_profile": "https://Stackoverflow.com/users/266304",
"pm_score": 2,
"selected": false,
"text": "18 '18 ' SELECT * FROM TABLE_A WHERE COLUMN_1=18;\n '0018' 18 '0018' '018 ' 18 18 '0018' 18 column_1 SELECT * FR... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4083743/"
] |
74,657,952 | <p>I made a code that select vowels and replace them with ""</p>
<pre><code>function disemvowel(str) {
str = str.replace(/[aeiouAEIOU]/g, "");
return str;
}
console.log(disemvowel("This website is for losers LOL!"));
</code></pre>
<p>But I am not quite sure how this part of the code w... | [
{
"answer_id": 74658079,
"author": "jean.b",
"author_id": 11282291,
"author_profile": "https://Stackoverflow.com/users/11282291",
"pm_score": 1,
"selected": false,
"text": "replace Regular Expression Regex"
},
{
"answer_id": 74658084,
"author": "ikegami",
"author_id": 589... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74657952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20333201/"
] |
74,658,056 | <p>i'm using "SubCategoryTiles" widget all over the app. initially i was using same Group Icon but now i want to use different-different <strong>category_Icon</strong> wherever i use this widget. So i want to know how to do it. See the code and also the image with error i'm getting.</p>
<pre><code>class SubCa... | [
{
"answer_id": 74658079,
"author": "jean.b",
"author_id": 11282291,
"author_profile": "https://Stackoverflow.com/users/11282291",
"pm_score": 1,
"selected": false,
"text": "replace Regular Expression Regex"
},
{
"answer_id": 74658084,
"author": "ikegami",
"author_id": 589... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12722751/"
] |
74,658,078 | <p>I'm working with a couple volunteers on creating the first online dictionary for our language Tarifit (An Amazigh language spoken in Northern Morocco)</p>
<p>I'm still a CS student learning about Python and C# currently but I also know HTML/CSS/JS and my question was what is the best way to store all the words in a ... | [
{
"answer_id": 74658079,
"author": "jean.b",
"author_id": 11282291,
"author_profile": "https://Stackoverflow.com/users/11282291",
"pm_score": 1,
"selected": false,
"text": "replace Regular Expression Regex"
},
{
"answer_id": 74658084,
"author": "ikegami",
"author_id": 589... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667783/"
] |
74,658,107 | <p>Have a table of employees (key emp id) with one column being the boss (same key format). I was able to build out the hierarchy by doing repeated joins (took 10 for my real organization), but now I need to add a column for:</p>
<ul>
<li>employee_count (count of rows with the boss_id = emp_id of current row)</li>
<li>... | [
{
"answer_id": 74658079,
"author": "jean.b",
"author_id": 11282291,
"author_profile": "https://Stackoverflow.com/users/11282291",
"pm_score": 1,
"selected": false,
"text": "replace Regular Expression Regex"
},
{
"answer_id": 74658084,
"author": "ikegami",
"author_id": 589... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4346891/"
] |
74,658,113 | <p>I got 8 bytes Hex values in a cell as below which is in little endian format
00 00 08 04 22 00 40 00</p>
<p>With text split I could get individual hex values in an array.
= TEXTSPLIT(A1, , " ")</p>
<p>00
00
08
04
22
00
40
00</p>
<p>Is there an excel formula that I can use to grab the values in reverse orde... | [
{
"answer_id": 74658304,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 4,
"selected": true,
"text": "=TRIM(CONCAT(MID(\" \"&A1,SEQUENCE(8,,22,-3),3))) A2 =TEXTJOIN(\" \",,SORTBY(TEXTSPLIT(A1,,\" \"),ROW(1:8),-1))\n =LET(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2166368/"
] |
74,658,130 | <p>I am a beginner in writing React applications. Please help me where I have gone wrong in writing the code. This is the API- <a href="https://api.coindesk.com/v1/bpi/currentprice.json" rel="nofollow noreferrer">https://api.coindesk.com/v1/bpi/currentprice.json</a>. I am not able to iterate over the json format that I... | [
{
"answer_id": 74658304,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 4,
"selected": true,
"text": "=TRIM(CONCAT(MID(\" \"&A1,SEQUENCE(8,,22,-3),3))) A2 =TEXTJOIN(\" \",,SORTBY(TEXTSPLIT(A1,,\" \"),ROW(1:8),-1))\n =LET(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491989/"
] |
74,658,165 | <p>after running this code I keep getting the same error:</p>
<p>note:(the data is in excel file (Heights : 16 column) and (Wights:16 column)</p>
<p>I tried to change the epochs_num and it keeps giving the same problem...</p>
<pre><code>import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
# Load the d... | [
{
"answer_id": 74658304,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 4,
"selected": true,
"text": "=TRIM(CONCAT(MID(\" \"&A1,SEQUENCE(8,,22,-3),3))) A2 =TEXTJOIN(\" \",,SORTBY(TEXTSPLIT(A1,,\" \"),ROW(1:8),-1))\n =LET(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15165506/"
] |
74,658,183 | <p>I have the following table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>col1</th>
<th>col2</th>
<th>col3</th>
<th>col4</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>1</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>6</td>
<td>3</td>
</tr>
</tbody>
</table>
</div>
<p... | [
{
"answer_id": 74658239,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\ndf %>% \n rowwise() %>% \n mutate(max_val = max(across(everything())),\n repetition =... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8758029/"
] |
74,658,191 | <p>This REGEX</p>
<pre><code> [Required]
[RegularExpression("^[VB]", ErrorMessage = "The barcode must start with B or V")]
public string Barcode { get; set; }
</code></pre>
<p>fails with the following:</p>
<pre><code> "Barcode": {
"rawValue&qu... | [
{
"answer_id": 74658239,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\ndf %>% \n rowwise() %>% \n mutate(max_val = max(across(everything())),\n repetition =... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/307702/"
] |
74,658,236 | <p>Why does my button have a shadow around it?</p>
<p>I am trying to create a blue button with the border being the same color as the button itself. When you hover over the button it moves up by 3px and when you click it moves back down.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" d... | [
{
"answer_id": 74658328,
"author": "Leland",
"author_id": 3072442,
"author_profile": "https://Stackoverflow.com/users/3072442",
"pm_score": 3,
"selected": true,
"text": "border-style: outset border-style: solid button {\n border-style: solid;\n border-radius: 10px;\n padding-top: 7px;... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20140332/"
] |
74,658,273 | <p>I have a MaterialApp in Flutter and want to scale up text throughout the entire app, base in user preferences.</p>
| [
{
"answer_id": 74658328,
"author": "Leland",
"author_id": 3072442,
"author_profile": "https://Stackoverflow.com/users/3072442",
"pm_score": 3,
"selected": true,
"text": "border-style: outset border-style: solid button {\n border-style: solid;\n border-radius: 10px;\n padding-top: 7px;... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5190625/"
] |
74,658,276 | <p>I have this method in my <code>Cucumber</code> test:</p>
<pre><code>public void validateError(String name, DataTable errorTable) {
Map<String, String> error = errorTable.asMap(String.class, String.class);
String result = then().extract().body().jsonPath().getString("");
then().statusCode(Intege... | [
{
"answer_id": 74658328,
"author": "Leland",
"author_id": 3072442,
"author_profile": "https://Stackoverflow.com/users/3072442",
"pm_score": 3,
"selected": true,
"text": "border-style: outset border-style: solid button {\n border-style: solid;\n border-radius: 10px;\n padding-top: 7px;... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7836976/"
] |
74,658,279 | <p>i wanted to ask how can connect dns sever with my apps . all trafic will go through that server .</p>
<p>i wanted to ask how can connect dns sever with my apps . all trafic will go through that server .</p>
| [
{
"answer_id": 74658328,
"author": "Leland",
"author_id": 3072442,
"author_profile": "https://Stackoverflow.com/users/3072442",
"pm_score": 3,
"selected": true,
"text": "border-style: outset border-style: solid button {\n border-style: solid;\n border-radius: 10px;\n padding-top: 7px;... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17058635/"
] |
74,658,298 | <p><a href="https://i.stack.imgur.com/Bk6mJ.png" rel="nofollow noreferrer">The store function</a></p>
<p><a href="https://i.stack.imgur.com/teqcw.png" rel="nofollow noreferrer">The Route</a></p>
<p>I try to store a data to database and than i want to redirect the page with the created data ID. I use <code>return redire... | [
{
"answer_id": 74658328,
"author": "Leland",
"author_id": 3072442,
"author_profile": "https://Stackoverflow.com/users/3072442",
"pm_score": 3,
"selected": true,
"text": "border-style: outset border-style: solid button {\n border-style: solid;\n border-radius: 10px;\n padding-top: 7px;... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18631739/"
] |
74,658,306 | <p>Any idea why does Django Rest Framework ignore default values?</p>
<pre><code>class MyClass(models.Model):
some_field = models.CharField(default='Yes')
class MyClassSerializer(serializers.ModelSerializer):
class Meta:
model = MyCLass
fields = ['some_field']
class MyClassListCreateAPIView(Li... | [
{
"answer_id": 74658542,
"author": "rob",
"author_id": 6034955,
"author_profile": "https://Stackoverflow.com/users/6034955",
"pm_score": 2,
"selected": false,
"text": "{'some_field': None} MyClass some_field None None default some_field create()"
},
{
"answer_id": 74659068,
"... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13650271/"
] |
74,658,394 | <p>I know its normally obvious where the conversion between double and int has gone wrong but im using recursion methods to add up the sum of a list to 1 decimal point but i cannot seem to find where the error is. There is no error when i use console.WriteLine but when i use return (which i would like) it comes up with... | [
{
"answer_id": 74658619,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 2,
"selected": false,
"text": "return sum(values);\n double Console.WriteLine(values);\n Console.WriteLine return Main() int"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420084/"
] |
74,658,401 | <p><strong>CODE:</strong></p>
<pre><code>import re
inp=input()
tup=tuple(map(str,inp.split(',')))
i=0
while i<len(tup):
x=tup[i]
a=re.search("[0-9a-zA-Z\$#@",x)
if a!="None":
break
else:
i=i+1
if a!="None" and len(tup[i])>=6 and len(tup[i])<=12:
... | [
{
"answer_id": 74658619,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 2,
"selected": false,
"text": "return sum(values);\n double Console.WriteLine(values);\n Console.WriteLine return Main() int"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14732934/"
] |
74,658,402 | <p>Structure like this:</p>
<pre><code>chart.yaml
values.yaml
templates/
|__deploymentconfig.yaml
</code></pre>
<p>Usage: <code>helm install demo --dry-run --debug -f values.yaml</code></p>
<p>What i like to do is, to add an <code>environment variable</code> with the <code>--set</code> command on <code>helm install</co... | [
{
"answer_id": 74661972,
"author": "David Maze",
"author_id": 10008173,
"author_profile": "https://Stackoverflow.com/users/10008173",
"pm_score": 2,
"selected": true,
"text": "--set helm install --set env:\n - name: SOME_VARIABLE\n value: {{ .Values.someValue | default \"foo\" }}\n h... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5392813/"
] |
74,658,417 | <p>I need using JAVA, change colors of all textviews from LISTVIEW.</p>
<p>MainActivity.java:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
String[] programName = {"ex1", "ex2", "ex3"}
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | [
{
"answer_id": 74659304,
"author": "TANIMUL ISLAM",
"author_id": 18262004,
"author_profile": "https://Stackoverflow.com/users/18262004",
"pm_score": 1,
"selected": false,
"text": "holder.programTitle.setTextColor(Color.RED)\n holder.programTitle.setBackgroundColor(Color.RED)\n"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667940/"
] |
74,658,458 | <p>How can I sort this array of <code>boolean</code> primitive, by putting <code>false</code> first and <code>true</code> at the end?</p>
<p>Suppose I have the following:</p>
<pre><code>boolean[] arrayOfBoolean = // initializing the array
</code></pre>
| [
{
"answer_id": 74659304,
"author": "TANIMUL ISLAM",
"author_id": 18262004,
"author_profile": "https://Stackoverflow.com/users/18262004",
"pm_score": 1,
"selected": false,
"text": "holder.programTitle.setTextColor(Color.RED)\n holder.programTitle.setBackgroundColor(Color.RED)\n"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14481346/"
] |
74,658,493 | <p>So, how can I interchange two sets of adjacent elements In a string.</p>
<p>Like lets take a string "abcd" I want to make it "cdab",another example would be "5089" I want to change this to "8950", The string is a large one and I want to apply the method throughout the string. ... | [
{
"answer_id": 74659304,
"author": "TANIMUL ISLAM",
"author_id": 18262004,
"author_profile": "https://Stackoverflow.com/users/18262004",
"pm_score": 1,
"selected": false,
"text": "holder.programTitle.setTextColor(Color.RED)\n holder.programTitle.setBackgroundColor(Color.RED)\n"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20608200/"
] |
74,658,528 | <p>I am new to JSON in general. I have a JSON file and I want to extract data from it, but I can't seem to find a way on how to do it. I've searched online, but I could not find any answer or I was just looking at the wrong places.</p>
<p>Here is my JSON data:</p>
<pre><code>{"data":
{"cars":
... | [
{
"answer_id": 74658854,
"author": "dbc",
"author_id": 3744182,
"author_profile": "https://Stackoverflow.com/users/3744182",
"pm_score": 2,
"selected": true,
"text": "data.cars.total data.cars.total SelectTokens() ToArray() var jtoken = JToken.Parse(jsonString); // Or load the JSON from ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2052533/"
] |
74,658,534 | <p>I have this debounce function:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const selectElement = document.querySelector('input');
const debounce = (cb, time = 1000) =... | [
{
"answer_id": 74658583,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 2,
"selected": false,
"text": "debounce()() onChange onChange selectElement input selectElement.addEventListener(('input', onChange()) on... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12540500/"
] |
74,658,555 | <p>From the docs: "Indicates not to recurse creating indexes on partitions, if the table is partitioned. The default is to recurse.".</p>
<p>Am I understand correctly that index will not be created on existing partitons? What kind of index will be created then (on what)?</p>
| [
{
"answer_id": 74658583,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 2,
"selected": false,
"text": "debounce()() onChange onChange selectElement input selectElement.addEventListener(('input', onChange()) on... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7686473/"
] |
74,658,562 | <p>Okay so its been long i did react. my problem is very easy, i just dont know how to do it. Basically i am fetching data from an api and putting it inside a state. i basically want to display that data im fetching as raw data instead of mapping over it. this is what i mean.</p>
<p>This is my component:</p>
<pre><code... | [
{
"answer_id": 74658654,
"author": "David",
"author_id": 13019276,
"author_profile": "https://Stackoverflow.com/users/13019276",
"pm_score": 2,
"selected": false,
"text": "<pre>{JSON.stringify(data)}</pre>"
},
{
"answer_id": 74658666,
"author": "Amila Senadheera",
"author... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15975299/"
] |
74,658,593 | <p>taking an intro CS class on python and was met by this lab on my textbook. It calls for binary search using recursive functions. I have the rest of the program, I simply need to define the Binary Search function. Any help on this would be greatly appreciated.</p>
<p>Here is the problem:</p>
<p>Binary search can be i... | [
{
"answer_id": 74658632,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 1,
"selected": false,
"text": "lower + upper // if target == nums[(lower+upper)//2]:\n"
},
{
"answer_id": 74658911,
"author":... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667987/"
] |
74,658,634 | <p>I'm using Node v16.17 on MacBook Pro M1.
I want to use microsecond timestamps, so I tried <code>process.hrtime()</code>.
But this is very strange, as the first array element (which should be seconds when multiplied by 1000) is like some date in 2017:</p>
<pre><code>> new Date().getTime();
1669997280728
> proce... | [
{
"answer_id": 74658632,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 1,
"selected": false,
"text": "lower + upper // if target == nums[(lower+upper)//2]:\n"
},
{
"answer_id": 74658911,
"author":... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2240829/"
] |
74,658,655 | <p>I have an issue with React when I try to retrieve the value of return.</p>
<p>The code:</p>
<pre><code>export const RuoloOnline = (jwt) => {
axios.get("http://localhost:1337/api/users/me",
{
headers: {
"Authorization": `Bearer ${jwt}`
}
... | [
{
"answer_id": 74658632,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 1,
"selected": false,
"text": "lower + upper // if target == nums[(lower+upper)//2]:\n"
},
{
"answer_id": 74658911,
"author":... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14603504/"
] |
74,658,670 | <p>How to rebuilt this using rxjs if it is advisable:</p>
<pre><code>constructor(private customerInfoService: CustomerInfoService) {
customerInfoService.getCustomerIPById(this.a).subscribe(x => {
customerInfoService.getIPActivityDates(x).subscribe(y => {
this.latestActivityDate = y.latestDate;
})
... | [
{
"answer_id": 74658784,
"author": "Paul Thorsen",
"author_id": 11790081,
"author_profile": "https://Stackoverflow.com/users/11790081",
"pm_score": 2,
"selected": false,
"text": "customerInfoService.getCustomerIPById(this.a).pipe(\n switchMap(x => customerInfoService.getIPActivityDates(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10733113/"
] |
74,658,685 | <p>I want to have a Bool property, that represents that option key is pressed <code>@Publised var isOptionPressed = false</code>. <em>I would use it for changing SwiftUI View.</em></p>
<p>For that, I think, that I should use Combine to observe for key pressure.</p>
<p>I tried to find an NSNotification for that event, b... | [
{
"answer_id": 74658784,
"author": "Paul Thorsen",
"author_id": 11790081,
"author_profile": "https://Stackoverflow.com/users/11790081",
"pm_score": 2,
"selected": false,
"text": "customerInfoService.getCustomerIPById(this.a).pipe(\n switchMap(x => customerInfoService.getIPActivityDates(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18199114/"
] |
74,658,707 | <p>Say one has a div which is vertically resizable like a textarea as below. When the user resizes the div, I would like to run a javascript function, <code>resizeHandler</code> below.</p>
<p>It seems like the <code>resize</code> event is only for the document/window. And resize observer fires for all events, like say ... | [
{
"answer_id": 74658784,
"author": "Paul Thorsen",
"author_id": 11790081,
"author_profile": "https://Stackoverflow.com/users/11790081",
"pm_score": 2,
"selected": false,
"text": "customerInfoService.getCustomerIPById(this.a).pipe(\n switchMap(x => customerInfoService.getIPActivityDates(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5506400/"
] |
74,658,727 | <p>I am trying to run an Nonlinear Least Squares regression to estimate three parameters while controlling for categorical variables. I am currently using the nlsLM function from the minpack.lm package for this.</p>
<p>I have the following data set:</p>
<pre><code>df <- data.frame(Year=c(1990, 1990, 1990, 1990, 1990... | [
{
"answer_id": 74658993,
"author": "DaveArmstrong",
"author_id": 8206434,
"author_profile": "https://Stackoverflow.com/users/8206434",
"pm_score": 0,
"selected": false,
"text": " df <- data.frame(Year=c(1990, 1990, 1990, 1990, 1990, 1990, 1990, 1990, 1991, 1991, 1991, 1991, 1991, 1991, ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667228/"
] |
74,658,732 | <p>Having this dataframe:</p>
<pre><code>df_grafico2 = pd.DataFrame(data = {
"Usos" : ['Total','BK','BI','CyL','PyA','BC','VA','Resto','Total','BK','BI','CyL','PyA','BC','VA','Resto'],
"Periodo" : ['Octubre 2021*','Octubre 2021*','Octubre 2021*','Octubre 2021*','Octubre 2021*','Octubre 2021*... | [
{
"answer_id": 74663702,
"author": "r-beginners",
"author_id": 13107804,
"author_profile": "https://Stackoverflow.com/users/13107804",
"pm_score": 1,
"selected": false,
"text": "import plotly.express as px\n\nplot_impo_usos = px.histogram(df_grafico2[df_grafico2.Usos != \"Total\"],\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15204101/"
] |
74,658,809 | <p>Tring to move a PDF file from <code>Resources\Raw</code> to <code>appData</code> directory for App. File becomes corrupted on copy. Obviously I'm missing something.</p>
<p>using the following:</p>
<pre><code> using var stream = await FileSystem.OpenAppPackageFileAsync("CBA2015.pdf");
using var rea... | [
{
"answer_id": 74663702,
"author": "r-beginners",
"author_id": 13107804,
"author_profile": "https://Stackoverflow.com/users/13107804",
"pm_score": 1,
"selected": false,
"text": "import plotly.express as px\n\nplot_impo_usos = px.histogram(df_grafico2[df_grafico2.Usos != \"Total\"],\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20668345/"
] |
74,658,813 | <p>How to extract current branch name from git log</p>
<p>How to extract current branch name from git log</p>
<p>when I use the **</p>
<pre><code>log -n 1 --pretty=%d HEAD
</code></pre>
<p>**
then the following output is showing
(HEAD -> branch1, origin/branch1 , orign/branch3 , origin/branch4 etc....)</p>
<p>But I ... | [
{
"answer_id": 74659013,
"author": "Romain Valeri",
"author_id": 1057485,
"author_profile": "https://Stackoverflow.com/users/1057485",
"pm_score": 0,
"selected": false,
"text": "sed git log -1 --pretty=%d | sed -E 's/^.*HEAD -> ([^\\,]*)\\,.*$/\\1/'\n HEAD"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17005621/"
] |
74,658,816 | <p>I'm using js-interop to use the File System Access API with Dart in a web environment.
I would like to store a <code>FileSystemDirectoryHandle</code> in IndexedDB to reuse it later.</p>
<p>When storing an instance of <code>FileSystemDirectoryHandle</code> in IndexedDB, the data is a Dart object (Symbol when explorin... | [
{
"answer_id": 74659013,
"author": "Romain Valeri",
"author_id": 1057485,
"author_profile": "https://Stackoverflow.com/users/1057485",
"pm_score": 0,
"selected": false,
"text": "sed git log -1 --pretty=%d | sed -E 's/^.*HEAD -> ([^\\,]*)\\,.*$/\\1/'\n HEAD"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600235/"
] |
74,658,820 | <p><strong>Return Error when Im tried to make a class.</strong></p>
<p>When I tried as here <a href="https://www.stackoverflow.com/">https://github.com/google/mediapipe/blob/master/docs/solutions/face_mesh.md#python-solution-api</a>. everething is perfect</p>
<p>There are some problem with self. method. But I could not... | [
{
"answer_id": 74659013,
"author": "Romain Valeri",
"author_id": 1057485,
"author_profile": "https://Stackoverflow.com/users/1057485",
"pm_score": 0,
"selected": false,
"text": "sed git log -1 --pretty=%d | sed -E 's/^.*HEAD -> ([^\\,]*)\\,.*$/\\1/'\n HEAD"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20668220/"
] |
74,658,862 | <p>My goal is to write an algorithm that checks if an unsorted array of positive integers contains a value x and x^2 and return their indices if so.
I've solved this by proposing that first you sort the array using merge sort, then perform binary search for x, then perform binary search for x^2.
I then wrote that "... | [
{
"answer_id": 74659013,
"author": "Romain Valeri",
"author_id": 1057485,
"author_profile": "https://Stackoverflow.com/users/1057485",
"pm_score": 0,
"selected": false,
"text": "sed git log -1 --pretty=%d | sed -E 's/^.*HEAD -> ([^\\,]*)\\,.*$/\\1/'\n HEAD"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16689751/"
] |
74,658,900 | <p>I have 2 models named AdminContent, AdminCategory. I have content_category_id in my admin_contents table. I have category_id and category_name in my admin_categories table. I linked category_id with content_category_id foreign.
I am using the hasOne() function in my Admin Content model. But I get the error Using $th... | [
{
"answer_id": 74659013,
"author": "Romain Valeri",
"author_id": 1057485,
"author_profile": "https://Stackoverflow.com/users/1057485",
"pm_score": 0,
"selected": false,
"text": "sed git log -1 --pretty=%d | sed -E 's/^.*HEAD -> ([^\\,]*)\\,.*$/\\1/'\n HEAD"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20668283/"
] |
74,658,907 | <p>I use toString and I print out the output like below. I want to align it like a timetable using toString, but I can't.</p>
<p>what I print</p>
<p>NAME: Poon</p>
<p>IC NO: 000912</p>
<p>TAXABLE INCOME 85000.0</p>
<p>STATUS :S</p>
<p>TAX AMOUNT: 17000.0</p>
<p>what I use
public String toString(){
return person+"\... | [
{
"answer_id": 74659013,
"author": "Romain Valeri",
"author_id": 1057485,
"author_profile": "https://Stackoverflow.com/users/1057485",
"pm_score": 0,
"selected": false,
"text": "sed git log -1 --pretty=%d | sed -E 's/^.*HEAD -> ([^\\,]*)\\,.*$/\\1/'\n HEAD"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654455/"
] |
74,658,909 | <pre><code><FormWrap>
<FormImg img src='./img/CB.png' alt="CB" />
<FormContent>
<Form onSubmit={handleSubmit}>
{errorMessage && (<p className="errorM"> {errorMessage} </p>)}
<FormH1>Log in to... | [
{
"answer_id": 74659013,
"author": "Romain Valeri",
"author_id": 1057485,
"author_profile": "https://Stackoverflow.com/users/1057485",
"pm_score": 0,
"selected": false,
"text": "sed git log -1 --pretty=%d | sed -E 's/^.*HEAD -> ([^\\,]*)\\,.*$/\\1/'\n HEAD"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16640780/"
] |
74,658,926 | <pre><code>enhancerlist=[[5,8],[10,11]]
TFlist=[[6,7],[24,56]]
</code></pre>
<p>I have two lists of lists. I am trying to isolate the sublists in my 'TFlist' that don't fit in the range of ANY of the sublists of enhancerlist (by range: TFlist sublist range fits inside of enhancerlist sublist range).
SO for example, TFl... | [
{
"answer_id": 74659114,
"author": "DarrylG",
"author_id": 3066077,
"author_profile": "https://Stackoverflow.com/users/3066077",
"pm_score": 1,
"selected": false,
"text": "TF_notinrange = [tf for tf in TFlist \n if not any(istart <= tf[0] <= tf[1] <= iend \n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20257102/"
] |
74,658,982 | <p>I've encountered a problem in Excel that I don't know how to approach solving.</p>
<p><a href="https://i.stack.imgur.com/213Ye.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/213Ye.png" alt="enter image description here" /></a></p>
<p>There are two tables in the image above.</p>
<p>Table 1 is a li... | [
{
"answer_id": 74659176,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": true,
"text": "=TEXTJOIN(\", \",TRUE,FILTER(A:A,((B:B=$E$3)+(C:C=$E$3))*((B:B=$F$3)+(C:C=$F$3)),\"\"))\n"
},
{
"answer_... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74658982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20668151/"
] |
74,659,010 | <p>I'm creating a table that I'd like to search by he first column (number + % sign). I've got it set up so I can search for the number, but need it to return the exact number without necessitating the % to be included.</p>
<p>I've found a <a href="https://stackoverflow.com/questions/54700692/filter-search-table-for-ex... | [
{
"answer_id": 74659176,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": true,
"text": "=TEXTJOIN(\", \",TRUE,FILTER(A:A,((B:B=$E$3)+(C:C=$E$3))*((B:B=$F$3)+(C:C=$F$3)),\"\"))\n"
},
{
"answer_... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20668437/"
] |
74,659,026 | <p>I have a Blazor web project, and am getting errors on one rather large page file when I build. There are no errors if I close and relaunch VS 2022, until I build. Then, it says there are 2 errors ("} expected" and "; expected"), but it shows them in the .g file, and when I double-click on the e... | [
{
"answer_id": 74659176,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": true,
"text": "=TEXTJOIN(\", \",TRUE,FILTER(A:A,((B:B=$E$3)+(C:C=$E$3))*((B:B=$F$3)+(C:C=$F$3)),\"\"))\n"
},
{
"answer_... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/706983/"
] |
74,659,035 | <p>I'm trying to make the bot wait for a specific message(from a specific author and some specific things) But the bot is just waiting for any message and it makes the command.</p>
<p>Here's the function:</p>
<pre class="lang-py prettyprint-override"><code>async def check(message):
if type == "netflix":
... | [
{
"answer_id": 74659176,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": true,
"text": "=TEXTJOIN(\", \",TRUE,FILTER(A:A,((B:B=$E$3)+(C:C=$E$3))*((B:B=$F$3)+(C:C=$F$3)),\"\"))\n"
},
{
"answer_... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400934/"
] |
74,659,038 | <p>I am having the following dataframe</p>
<pre><code>data = [
[1000, 1, 1], [1000, 1, 1], [1000, 1, 1], [1000, 1, 2], [1000, 1, 2],
[1000, 1, 2], [2000, 0, 1], [2000, 0, 1], [2000, 1, 2],
[2000, 0, 2], [2000, 1, 2]]
df = pd.DataFrame(data, columns=['route_id', 'direction_id', 'trip_id'])
</code></pre>
<p>T... | [
{
"answer_id": 74659176,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": true,
"text": "=TEXTJOIN(\", \",TRUE,FILTER(A:A,((B:B=$E$3)+(C:C=$E$3))*((B:B=$F$3)+(C:C=$F$3)),\"\"))\n"
},
{
"answer_... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20668333/"
] |
74,659,044 | <p>I have the following table:</p>
<pre><code>product price date
banana 90 2022-01-01
banana 90 2022-01-02
banana 90 2022-01-03
banana 95 2022-01-04
banana 90 2022-01-05
banana 90 2022-01-06
</code></pre>
<p>I need to add a non-unique ID column to the table. Every time the price changes, I want the ID to ... | [
{
"answer_id": 74659176,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": true,
"text": "=TEXTJOIN(\", \",TRUE,FILTER(A:A,((B:B=$E$3)+(C:C=$E$3))*((B:B=$F$3)+(C:C=$F$3)),\"\"))\n"
},
{
"answer_... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5935369/"
] |
74,659,046 | <p>I'm new to the Entity Framework and I'm having problems with properly defining relationships.</p>
<p>I have a <code>Student</code> class, and a <code>Course</code> class and it's supposed to me a many to many relationship. A student can do one or more courses and a course can be done by one or more students. But whe... | [
{
"answer_id": 74666171,
"author": "Fitri Halim",
"author_id": 13218799,
"author_profile": "https://Stackoverflow.com/users/13218799",
"pm_score": 1,
"selected": false,
"text": "public class Enrollment\n{\n public int CourseId { get; set; }\n public int StudentId { get; set; }\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19462819/"
] |
74,659,050 | <p>I thought * should be escaped in bash when it is to be used in a meaning other than the universal character, for example I am trying to use * to multiply two numbers. But when I am trying to use * with an escape character I am getting an error.</p>
<pre><code>echo "scale=2; 10 \* 3" | bc
EOF encountered i... | [
{
"answer_id": 74666171,
"author": "Fitri Halim",
"author_id": 13218799,
"author_profile": "https://Stackoverflow.com/users/13218799",
"pm_score": 1,
"selected": false,
"text": "public class Enrollment\n{\n public int CourseId { get; set; }\n public int StudentId { get; set; }\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10164891/"
] |
74,659,075 | <p>I have created a project in ASP.NET Core and wanted the language to be detected based on the url:
https://localhost:7090/en</p>
<p>If controllers and actions are used in the url, everything works as planned. However, when the registration or login page is called, it does not work (default asp.net identity registrati... | [
{
"answer_id": 74666171,
"author": "Fitri Halim",
"author_id": 13218799,
"author_profile": "https://Stackoverflow.com/users/13218799",
"pm_score": 1,
"selected": false,
"text": "public class Enrollment\n{\n public int CourseId { get; set; }\n public int StudentId { get; set; }\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11919058/"
] |
74,659,078 | <p>How can I use the <code>style</code> input of <code>p-checkbox</code> to change the border and background color of a checkbox?
I already tried <code>[style]="{'background': '#ff0000'}"</code>. But this only applies the style to the div which holds the actual checkbox. So its useless. Instead I need to chan... | [
{
"answer_id": 74674802,
"author": "Mouayad_Al",
"author_id": 19101349,
"author_profile": "https://Stackoverflow.com/users/19101349",
"pm_score": 1,
"selected": false,
"text": "document.getElementsByClassName('p-checkbox-box') renderer2.setStyle() ngAfterViewInit() let chkboxes = docum... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74659078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9570195/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.