qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,322,940 | <p>I have a dataset of only categorical data formatted as factors. We'll call it "mydata".</p>
<p>I want to create a dataframe or tibble of nested contingency tables for all combinations of factors in mydata for review in exploratory data analysis and to easily pass to chisq.test(). I envision this looking li... | [
{
"answer_id": 74323018,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 4,
"selected": true,
"text": "x = SetObject(1,2,3)\ny = SetObject(4,5,6)\n\nobject_set = dict([(x, x),(y, y)])\n\nprint(f\"{object_set=}\")\n\nz = S... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6716054/"
] |
74,322,962 | <p>I am working with Xamarin ListView and Picker, trying to create an android app that calculates a student's GPA in one page(view).
I have a class <code>GPADetails</code> that takes care of the Picker properties. This class contains a "List"...</p>
<p><code>public ObservableRangeCollection<string> Unit... | [
{
"answer_id": 74323018,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 4,
"selected": true,
"text": "x = SetObject(1,2,3)\ny = SetObject(4,5,6)\n\nobject_set = dict([(x, x),(y, y)])\n\nprint(f\"{object_set=}\")\n\nz = S... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19111991/"
] |
74,322,965 | <p>So I'm curious.. Why is it that I need to do <code>+1</code> and <code>-1</code> when truncating a side of the array.
I get that an array is index based and starts at 0 but is that really the reason to why I need to do it? What's the actual logic behind it? I've noticed that if I don't do it, it just never exists th... | [
{
"answer_id": 74323313,
"author": "trincot",
"author_id": 5459839,
"author_profile": "https://Stackoverflow.com/users/5459839",
"pm_score": 3,
"selected": true,
"text": "l = mid + 1; l = mid; l r (l + r) / 2 == l mid l values[mid] if l mid r = mid - 1; r = mid l r values[mid] r mid mid ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5500630/"
] |
74,322,967 | <p>I have a input file xml called offerings and I have the course xml both are in combined xml and the file should have all the titles that are in the course xml . In this case the number of titles present in offerings xml is 3 i.e</p>
<ul>
<li>Launch Class Link - HDU_VILT01 - 1</li>
<li>Launch Class Link - HDU_VILT01... | [
{
"answer_id": 74323313,
"author": "trincot",
"author_id": 5459839,
"author_profile": "https://Stackoverflow.com/users/5459839",
"pm_score": 3,
"selected": true,
"text": "l = mid + 1; l = mid; l r (l + r) / 2 == l mid l values[mid] if l mid r = mid - 1; r = mid l r values[mid] r mid mid ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19505439/"
] |
74,322,973 | <pre><code><a href="https://123.com/'.$_SESSION["usersId"].' " target="_blank"><img src="./images/w.jpg"></a>
</code></pre>
<p>Hello, I'm new to coding and I was wondering how can I make a custom link with an user ID directly taken from my database. The name use... | [
{
"answer_id": 74323023,
"author": "rehdadth",
"author_id": 19181018,
"author_profile": "https://Stackoverflow.com/users/19181018",
"pm_score": -1,
"selected": true,
"text": "$_SESSION[\"userId\"] = your_mysql_object[\"userId\"]\n"
},
{
"answer_id": 74323113,
"author": "HKTE"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20195280/"
] |
74,322,985 | <p>In my .Net 6 WebPI service, I am queueing work to a background task queue, very closely based on the example here, but I could post parts of my implementation if that would help:
<a href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-6.0&tabs=visual-studio#queued... | [
{
"answer_id": 74323023,
"author": "rehdadth",
"author_id": 19181018,
"author_profile": "https://Stackoverflow.com/users/19181018",
"pm_score": -1,
"selected": true,
"text": "$_SESSION[\"userId\"] = your_mysql_object[\"userId\"]\n"
},
{
"answer_id": 74323113,
"author": "HKTE"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806378/"
] |
74,323,002 | <p>I'm reading an HTML file, trying to get some information out of it. I've tried HTML parsers, but can't figure out how to use them to get key text out. The original reads the html file, but this version is a minimal working example for StackOverflow purposes.</p>
<pre><code>#!/usr/bin/env perl
use 5.036;
use warni... | [
{
"answer_id": 74323150,
"author": "Dan Bonachea",
"author_id": 3528321,
"author_profile": "https://Stackoverflow.com/users/3528321",
"pm_score": 3,
"selected": true,
"text": "/ $regex \""
},
{
"answer_id": 74323179,
"author": "Polar Bear",
"author_id": 12313309,
"aut... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3973175/"
] |
74,323,055 | <p>I'm doing a homework for class right now and it requires me to use private variables from a superclass in one of its subclasses, but I don't know how to. I found a lot of info on changing the superclass which would work, but the assignment says that I'm not allowed to edit the superclass, just its subclasses. Is thi... | [
{
"answer_id": 74323749,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 0,
"selected": false,
"text": "Field field = super\n .getClass()\n .getDeclaredField(\"firstName\");\nfield.setAccessible(true);\nStri... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421255/"
] |
74,323,065 | <p>Frontend is Vue and my backend is an express rest api that pulls data from mysql. I want to secure both the frontend (login form) and backend api, but without limiting use of the api to just my frontend. I may want to use this api for other projects in the future.</p>
<p>What I'm strugging with is understanding ho... | [
{
"answer_id": 74323749,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 0,
"selected": false,
"text": "Field field = super\n .getClass()\n .getDeclaredField(\"firstName\");\nfield.setAccessible(true);\nStri... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/355754/"
] |
74,323,183 | <pre><code>import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
import pylab
plt.rcParams['figure.figsize'] = [10, 10]
G = nx.DiGraph()
G.add_edges_from([('A', 'B'),('C','D'),('G','D')], weight=1)
G.add_edges_from([('D','A'),('D','E'),('B','D'),('D','E')], weight=2)
G.add_edges_from([('B','C'),('E'... | [
{
"answer_id": 74323327,
"author": "Ben Grossmann",
"author_id": 2476977,
"author_profile": "https://Stackoverflow.com/users/2476977",
"pm_score": 2,
"selected": true,
"text": "node_size edge_opt edge_opt = {\n 'node_size': 3500,\n 'width': 1,\n 'edge_color' : 'black',\n 'arr... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16912990/"
] |
74,323,193 | <p>I am looking for an elegant way to replace a string after a particular word in a text with Java.
Example:
"Today we have an IKAR ME123 from Greece."
I want to replace the word after "IKAR" with my custom string, lets say XXXX , then the text should look:
"Today we have an IKAR XXXX from Gre... | [
{
"answer_id": 74323383,
"author": "Jesse Barnum",
"author_id": 260516,
"author_profile": "https://Stackoverflow.com/users/260516",
"pm_score": 0,
"selected": false,
"text": "public class ReplaceText {\n public static void main(String[] args) {\n String input = \"Today we have ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2557930/"
] |
74,323,210 | <p>Sorry for the vague title, but I don't know how to word this type of problem better. Here is a simple example to explain it. I have to tables: OrderItemList and OrderHistoryLog.</p>
<pre><code>OrderItemList:
|------------------------------|
| OrderNo | ItemNo | Loc | Qty |
|------------------------------|
| 100 ... | [
{
"answer_id": 74323304,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "OrderItemList select OI.OrderNo, OI.ItemNo, OI.Loc, OI.Qty, IFNULL(OL.Qty, 0) as HistQty, OL2.LocHistQty\nfrom OrderIt... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1446482/"
] |
74,323,221 | <p>I use the Terraform EKS module, <a href="https://github.com/terraform-aws-modules/terraform-aws-eks" rel="nofollow noreferrer">terraform-aws-modules/eks/aws</a> (version: 18.30.1). I would like to enable Secrets encryption for EKS cluster. I added lines as follows in my code.</p>
<pre><code> create_kms_key = true
... | [
{
"answer_id": 74323899,
"author": "javierlga",
"author_id": 6182194,
"author_profile": "https://Stackoverflow.com/users/6182194",
"pm_score": 0,
"selected": false,
"text": "cluster_encryption_config dynamic \"encryption_config\" {\n for_each = toset(var.cluster_encryption_config)\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208419/"
] |
74,323,236 | <p>I have the following list of lists:</p>
<pre><code>lst = [['a',102, True],['b',None, False], ['c',100, False]]
</code></pre>
<p>I'd like to remove any lists where the value in the second position is None. How can I do this (in a list comprehension)</p>
<p>I've tried a few different list comprehension but can't seem ... | [
{
"answer_id": 74323255,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "lst = [item for item in lst if item[1] is not None]\n"
},
{
"answer_id": 74323262,
"author": "Michael M.",
"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12458212/"
] |
74,323,241 | <p>I want to extract content from two different tags using PHP. I want to associate h2 tags with the div tags' content that immediately follows them -- like a parent-child relationship.</p>
<pre><code><h1>Title 1</h1>
<div class="items">some data and divs here 1</div>
<h1>Title ... | [
{
"answer_id": 74323463,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 0,
"selected": false,
"text": "h1 span DOMDocument $html = '<h1>Title 1</h1>\n<div class=\"items\">some data and divs here 1</div>\n<h1>Title 2<... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421318/"
] |
74,323,281 | <p>I need to have the counts of re-purchase same product by the same customer in tow scenarios: in certain days and within certain duration.</p>
<p>Here is the sample data:</p>
<pre><code>create table tbl
(
Customer varchar(5),
StartDay date,
EndDay date,
Product varchar(5),
Cost decimal(10,2)
);
insert i... | [
{
"answer_id": 74323463,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 0,
"selected": false,
"text": "h1 span DOMDocument $html = '<h1>Title 1</h1>\n<div class=\"items\">some data and divs here 1</div>\n<h1>Title 2<... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19558526/"
] |
74,323,319 | <p>I made some scraping files and to run them at the same time I usually open multiple terminals in VS code and write " python filename.py " for each file, there's any method to automate this process to call each file and run it?</p>
| [
{
"answer_id": 74323463,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 0,
"selected": false,
"text": "h1 span DOMDocument $html = '<h1>Title 1</h1>\n<div class=\"items\">some data and divs here 1</div>\n<h1>Title 2<... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17583849/"
] |
74,323,336 | <p>I have a templated class, for which I want to specialize one of the methods for integral types. I see a lot of examples to do this for templated functions using <code>enable_if</code> trait, but I just can't seem to get the right syntax for doing this on a class method.</p>
<p>What am I doing wrong?</p>
<pre><code>#... | [
{
"answer_id": 74323362,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 1,
"selected": false,
"text": "class"
},
{
"answer_id": 74323440,
"author": "fabian",
"author_id": 2991525,
"author_profile": "ht... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501717/"
] |
74,323,366 | <p>I am working on a JavaScript function to create a pop up based on some data.
The data in result is not important, and can be omitted for this purpose, but I am including it becasue of some additional questions</p>
<p>The idea is that I want to send a portion of the result array to each pop up when the corresponding ... | [
{
"answer_id": 74323535,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 1,
"selected": false,
"text": "result, low, high, counter, i function addTable(result, indices) {\n counter = 0;\n indices = [2, 3, 6, 2, 4, 4... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2056201/"
] |
74,323,387 | <p>I have a select dropdown menu containing a list of states. I have restricted the visible options after clicking the dropdown via <a href="https://stackoverflow.com/questions/8788245/how-can-i-limit-the-visible-options-in-an-html-select-dropdown">this</a> stackoverflow solution as can be seen in my code below:</p>
<p... | [
{
"answer_id": 74323486,
"author": "str1ng",
"author_id": 12826055,
"author_profile": "https://Stackoverflow.com/users/12826055",
"pm_score": 1,
"selected": false,
"text": "size select <select id=\"vehicles\" size=\"2\" >\n <option value=\"Location1\">Location1</option>\n <op... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13783624/"
] |
74,323,404 | <p>For example, I have this dataFrame,</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>plates</th>
<th>food</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>eggs</td>
</tr>
<tr>
<td>1</td>
<td>bacon</td>
</tr>
<tr>
<td>2</td>
<td>waffles</td>
</tr>
<tr>
<td>2</td>
<td>toast</td>
</tr>
<tr>
<... | [
{
"answer_id": 74323439,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "food \"\" x = df.groupby(\"plates\")[\"food\"].agg(lambda x: \" \".join(x).strip() or np.nan)\nprint(x)\n pl... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421406/"
] |
74,323,408 | <p>I need a JavaScript regular expression for the following date/time format:</p>
<p>10 Jul 2010 15:00</p>
<p>(2 digits space 3 characters space 4 digits space 2 digits colon 2 digits)</p>
<p>Character case does not matter, and the only allowed input is a-z, 0-9, space, colon</p>
<p>Thanks in advance.</p>
<p>For now I ... | [
{
"answer_id": 74323439,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "food \"\" x = df.groupby(\"plates\")[\"food\"].agg(lambda x: \" \".join(x).strip() or np.nan)\nprint(x)\n pl... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421498/"
] |
74,323,413 | <p>I'm trying to export all the 722 rules into an ndjson file, but the file is incomplete. There are two sets of rule: Elastic rules and Custom rules.</p>
<p>I go to Security > Overview > Rules > Select all 722 rules > Bulk Actions > Export selected.</p>
<p><a href="https://i.stack.imgur.com/jo6wC.png" r... | [
{
"answer_id": 74377736,
"author": "PythonNoob",
"author_id": 17745322,
"author_profile": "https://Stackoverflow.com/users/17745322",
"pm_score": 3,
"selected": true,
"text": "https://<IP address\":<port>/api/detection_engine/rules/_find?page=1&per_page=<number of results to include>\n"
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17745322/"
] |
74,323,423 | <p>I have a dataFrame and each column is a list with 3 elements. How I can compare the second element os each list based on each column and row based?</p>
<pre><code>Col1 col2 col3
['A',0.2,5] ['A',0.4,5] ['A',0,5]
['A',0.4,5] ['A',0.2,5] ['A',0.7,5]
['A',0.1,5] ['A',0.1,5] ['A',0.20,5]
['A',0.25,5] ['A',0.... | [
{
"answer_id": 74323507,
"author": "Nuri Taş",
"author_id": 19255749,
"author_profile": "https://Stackoverflow.com/users/19255749",
"pm_score": 2,
"selected": false,
"text": "applymap axis new_df = df.applymap(lambda x: x[1])\n# rows\nnew_df.max(axis=1)\n# columns\nnew_df.max()\n"
},
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16831723/"
] |
74,323,454 | <p>i created the following custom rule for PMD but when i run it, i get an error. if i replace the regex with a trivial regex like "a", it works. cannot understand what's wrong.</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0"?>
<ruleset name="Custom Rules"... | [
{
"answer_id": 74323507,
"author": "Nuri Taş",
"author_id": 19255749,
"author_profile": "https://Stackoverflow.com/users/19255749",
"pm_score": 2,
"selected": false,
"text": "applymap axis new_df = df.applymap(lambda x: x[1])\n# rows\nnew_df.max(axis=1)\n# columns\nnew_df.max()\n"
},
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11324367/"
] |
74,323,465 | <p>I have text file that looks like this:</p>
<pre class="lang-none prettyprint-override"><code>[{"id":1,"title":"book1","author":"person1","pages":"10"}, {"id":2,"title":"book2","author":"person2",&q... | [
{
"answer_id": 74323498,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 0,
"selected": false,
"text": "eval irb(main):001:0> data = eval('[{\"id\":1,\"title\":\"book1\",\"author\":\"person1\",\"pages\":\"10\"}, {\"id\":... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421491/"
] |
74,323,479 | <p>I stuck at this simple scenario & not able to find smart solution to <code>Reverse a string</code> that has negative number.</p>
<pre><code>Example 1: str = "stack-1flow" #Expected output- wolf-1kcats
</code></pre>
<p>#Note may input contain multiple negative like</p>
<pre><code>Example 2: str =... | [
{
"answer_id": 74323528,
"author": "Rahul K P",
"author_id": 4407666,
"author_profile": "https://Stackoverflow.com/users/4407666",
"pm_score": 2,
"selected": false,
"text": "re import re\nre.search(r'-\\d', s).group().join(map(lambda x:x[::-1], re.split(r'-\\d', s)[::-1]))\n\n# 'wolf-1kc... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15358800/"
] |
74,323,483 | <p>I'm trying to make a GUI for my final year project, so to make it more ergonomic I've suggested a simple design as shown in the picture, so as I'm still a beginner in HTML/CSS I tried multiple ways to find how to turn an image to a button, and that button will start another function which starts capturing video with... | [
{
"answer_id": 74323528,
"author": "Rahul K P",
"author_id": 4407666,
"author_profile": "https://Stackoverflow.com/users/4407666",
"pm_score": 2,
"selected": false,
"text": "re import re\nre.search(r'-\\d', s).group().join(map(lambda x:x[::-1], re.split(r'-\\d', s)[::-1]))\n\n# 'wolf-1kc... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15137089/"
] |
74,323,496 | <p>I have tables like the one below.</p>
<pre><code>df <- data.frame(Metric = c("Stat1", "Stat1", "Stat1", "Stat1",
"Stat2", "Stat2", "Stat2",
"Stat3", "Stat3", "Stat... | [
{
"answer_id": 74323687,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 1,
"selected": false,
"text": "aggregate floor df <- data.frame(Metric = c(\"Stat1\", \"Stat1\", \"Stat1\", \"Stat1\",\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4714146/"
] |
74,323,504 | <p>I am trying to create a trigger on a table (TABLE_1) which detects if a column (ENTERED_DATE) has been changed then update another table (TABLE_2) to set the column (ENTRY_DATE) to the newly changed date on TABLE_1.</p>
<p>Here's what I have:</p>
<pre><code>create or replace trigger TRG_NAME
after insert or update... | [
{
"answer_id": 74323553,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 3,
"selected": true,
"text": "nvl if nvl(:old.ENTERED_DATE, '*') != nvl(:new.ENTERED_DATE, '*') then ...\n nvl null '*' IS DISTINCT FROM nvl(:old.ENT... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10167746/"
] |
74,323,511 | <p>I wrote a function in JS towards the end that is suppose to give you a letter grade once you get the average of 5 subjects, but it's not showing me anything
I'm lost right now</p>
<p>The forth function I wrote doesn't seem to produce any letter grade. I believe everything else is right</p>
<p><div class="snippet" da... | [
{
"answer_id": 74323554,
"author": "Jordan Amberg",
"author_id": 17266561,
"author_profile": "https://Stackoverflow.com/users/17266561",
"pm_score": 0,
"selected": false,
"text": "letterGrade let letterGrade = ' '\n letterGrade variable"
},
{
"answer_id": 74323651,
"author": ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208389/"
] |
74,323,516 | <p>How do I read an input CSV two rows at a time, combine some values into a new single row, and then write that row to a new CSV?</p>
<p>In the input below I want to read two rows, take price1 from the second row and make it price2 in a new, combined, row, then repeat for the next two rows:</p>
<p><strong>input</stron... | [
{
"answer_id": 74323554,
"author": "Jordan Amberg",
"author_id": 17266561,
"author_profile": "https://Stackoverflow.com/users/17266561",
"pm_score": 0,
"selected": false,
"text": "letterGrade let letterGrade = ' '\n letterGrade variable"
},
{
"answer_id": 74323651,
"author": ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/169366/"
] |
74,323,527 | <p>I have a problem with rerendering child component.</p>
<p>I have two components:</p>
<p><strong>Parent:</strong></p>
<pre><code>const Parent = () => {
const { checkAuth } = useActions();
const { isLoading } = useSelector(state => state.authReducer);
useEffect(() => {
checkAuth();
},... | [
{
"answer_id": 74323580,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 2,
"selected": false,
"text": "Child React.memo const Child = React.memo(() => { ... });\n"
},
{
"answer_id": 74324454,
"author": "Fa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421175/"
] |
74,323,543 | <p>I am trying to remove some json object from a result of mongoose findone function</p>
<p>but is not working</p>
<p>My code</p>
<pre><code> export const transferGuest = async (req, res, next) => {
var guest = await Booking.findOne({"roomNumber": req.body.roomNumber, booked: true}).sort({createdAt: ... | [
{
"answer_id": 74323982,
"author": "jefmat95",
"author_id": 17471937,
"author_profile": "https://Stackoverflow.com/users/17471937",
"pm_score": 2,
"selected": true,
"text": "findOne() sort() _id export const transferGuest = async (req, res, next) => {\n\n try{\n var guest = awa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16520980/"
] |
74,323,548 | <p>I have a script in google sheets that brings in data via API. Right now it is set to clear any old data in the sheet and then add the new data from the API, however in this instance I would like to be able to tell the script to look for the last row of data and the add the new API pull after the last row of data.</p... | [
{
"answer_id": 74323982,
"author": "jefmat95",
"author_id": 17471937,
"author_profile": "https://Stackoverflow.com/users/17471937",
"pm_score": 2,
"selected": true,
"text": "findOne() sort() _id export const transferGuest = async (req, res, next) => {\n\n try{\n var guest = awa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421542/"
] |
74,323,561 | <p>I want to do something that seems simple - I have an app on the iPhone that allows you to change a date. On the watch, I have a complication that shows among other things the days until that date. So clearly, when you change the date on the iPhone app, I want the date on the watch to change and that state to be per... | [
{
"answer_id": 74381613,
"author": "Reinhard Männer",
"author_id": 1987726,
"author_profile": "https://Stackoverflow.com/users/1987726",
"pm_score": 0,
"selected": false,
"text": "WatchSessionManager func session(_ session: WCSession, didReceiveUserInfo userInfo: [String: Any]) func tran... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2446374/"
] |
74,323,563 | <p>I have a list, that can be of various lengths (less than 100 or more than 1.800.000) and I need to display all those values on a graph (a waveform) of 800 points on which I can draw.</p>
<p>I have tried taking a value for every step, where a step is the list length / 800. And it is the closest I can get to. I have t... | [
{
"answer_id": 74381613,
"author": "Reinhard Männer",
"author_id": 1987726,
"author_profile": "https://Stackoverflow.com/users/1987726",
"pm_score": 0,
"selected": false,
"text": "WatchSessionManager func session(_ session: WCSession, didReceiveUserInfo userInfo: [String: Any]) func tran... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19759196/"
] |
74,323,574 | <p>I have the following code however it does not work:</p>
<pre class="lang-js prettyprint-override"><code>let dummyDOM = document.createElement( 'html' );
dummyDOM.innerHTML = text;
const html = dummyDOM.getElementById("someID");
</code></pre>
<p>I receive: <code>Uncaught (in promise) TypeError: dummyDOM.get... | [
{
"answer_id": 74323792,
"author": "ethry",
"author_id": 16030830,
"author_profile": "https://Stackoverflow.com/users/16030830",
"pm_score": 0,
"selected": false,
"text": "getElementById() function changeCol(c = \"cyan\") {\n document.getElementById(\"id1\").style.backgroundColor = c;\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4427375/"
] |
74,323,578 | <p>I have a BigQuery table that keeps track of user sign ins:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>user_id</th>
<th>user_name</th>
<th>user_sign_in_date</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>john doe</td>
<td>2019-04-05</td>
</tr>
<tr>
<td>1</td>
<td>john doe</td>
<td>2... | [
{
"answer_id": 74323792,
"author": "ethry",
"author_id": 16030830,
"author_profile": "https://Stackoverflow.com/users/16030830",
"pm_score": 0,
"selected": false,
"text": "getElementById() function changeCol(c = \"cyan\") {\n document.getElementById(\"id1\").style.backgroundColor = c;\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10002483/"
] |
74,323,584 | <p>I want to map the object in the array and access it through the row and col fields</p>
<p>I have the following object array:</p>
<pre class="lang-js prettyprint-override"><code>const arrayList = [
{row: 0, col: 0, name:'Ankara'},
{row: 0, col: 1, name:'Tokyo'},
{row: 1, col: 0, name:'Munih'},
{row: 1, col: 1... | [
{
"answer_id": 74323624,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 2,
"selected": true,
"text": "const arrayList = [\n {row:0,col:0, name:'Ankara'},\n {row:0,col:1, name:'Tokyo'},\n {row:1,col:0, name:'Munih'},\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19301566/"
] |
74,323,588 | <p>Using Entity Framework Core (5.0.17) code first I'm having trouble implementing a class that has two references to another class.</p>
<p>this is my structure:</p>
<pre><code>public class Beneficio
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public in... | [
{
"answer_id": 74323624,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 2,
"selected": true,
"text": "const arrayList = [\n {row:0,col:0, name:'Ankara'},\n {row:0,col:1, name:'Tokyo'},\n {row:1,col:0, name:'Munih'},\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4024357/"
] |
74,323,594 | <p>How we make a C++ function that can assign different types to an auto variable?</p>
<p>The nlohmann json package does this, which is proof that it’s possible:</p>
<pre><code>#include <iostream>
#include "./x64/Debug/single_include/nlohmann/json.hpp"
using namespace std;
using json = nlohmann::json;
... | [
{
"answer_id": 74323706,
"author": "463035818_is_not_a_number",
"author_id": 4117728,
"author_profile": "https://Stackoverflow.com/users/4117728",
"pm_score": 0,
"selected": false,
"text": "auto a1 a2 std::cout << std::variant std::visit #include <variant>\n#include <string>\n#include <i... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3845527/"
] |
74,323,601 | <p>How can I split each of the sentence in the arraylist? what i'm trying to make is, a different set of sentence to be splitted and shuffle, and student will arrange it in correct order</p>
<pre><code>public class QuestionActivity1 extends AppCompatActivity {
private int presCounter = 0;
private int maxpresCo... | [
{
"answer_id": 74323986,
"author": "jure",
"author_id": 10580773,
"author_profile": "https://Stackoverflow.com/users/10580773",
"pm_score": 1,
"selected": false,
"text": "List<QuestionModel1> list = new ArrayList();\nlist.add(new QuestionModel1(\"The kids are playing\"));\nlist.add(new Q... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20274602/"
] |
74,323,622 | <p>I've created a .NET 6 Minimal Web API that needs to support a particularly formatted URL. The URL that needs to be accepted is similar to /sensor/sensor:123/measurement</p>
<p>The following is the relevant Program.cs.</p>
<pre class="lang-cs prettyprint-override"><code>var builder = WebApplication.CreateBuilder(args... | [
{
"answer_id": 74323993,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 0,
"selected": false,
"text": "GetIntProduct int/{id:int} :int id [HttpGet(\"int/{id:int}\")] // GET /api/test2/int/3\npublic IActionResult GetI... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11912/"
] |
74,323,623 | <p>Firebase functions:</p>
<pre><code>const functions = require("firebase-functions");
const admin = require('firebase-admin');
admin.initializeApp();
exports.chatNotifications = functions.firestore.document("chat/{docId}").onCreate(
(snapshot, context) => {
admin.messaging().sendTo... | [
{
"answer_id": 74323993,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 0,
"selected": false,
"text": "GetIntProduct int/{id:int} :int id [HttpGet(\"int/{id:int}\")] // GET /api/test2/int/3\npublic IActionResult GetI... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421592/"
] |
74,323,625 | <p>I'm using Black to format python in VSCode, and it's making all my arrays super tall instead of wide. I've set max line length to 150 for pep8 and flake8 and black (but I'm new to Black, and not sure if it uses either of those settings):</p>
<p><code>"python.formatting.blackArgs": ["--line-length"... | [
{
"answer_id": 74323661,
"author": "pigrammer",
"author_id": 19846219,
"author_profile": "https://Stackoverflow.com/users/19846219",
"pm_score": 3,
"selected": true,
"text": "--skip-magic-trailing-comma \"python.formatting.blackArgs\": [\"--line-length\", \"150\", \"--skip-magic-trailing... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1214800/"
] |
74,323,626 | <p>I'm making a sudoku solver, and I have the actual solver working. However, I want the sudoku solver to be sort of 'animated' and every time one of the tiles changes I want that change to be shown. With the way I have it written currently it will only re render once the whole sudoku is solved.</p>
<p>Here is my code:... | [
{
"answer_id": 74323661,
"author": "pigrammer",
"author_id": 19846219,
"author_profile": "https://Stackoverflow.com/users/19846219",
"pm_score": 3,
"selected": true,
"text": "--skip-magic-trailing-comma \"python.formatting.blackArgs\": [\"--line-length\", \"150\", \"--skip-magic-trailing... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17266561/"
] |
74,323,677 | <p>I'm trying to replace a string with the character comma <code>,</code>, only if the string appears right <strong>after a digit</strong>.</p>
<p>Here is an example -</p>
<pre><code>text1 = "PaulWilliamsnéle110187auCaire"
text2 = "StaceyMauranéele190991auMaroc"
</code></pre>
<p>When I try using the... | [
{
"answer_id": 74323661,
"author": "pigrammer",
"author_id": 19846219,
"author_profile": "https://Stackoverflow.com/users/19846219",
"pm_score": 3,
"selected": true,
"text": "--skip-magic-trailing-comma \"python.formatting.blackArgs\": [\"--line-length\", \"150\", \"--skip-magic-trailing... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7819673/"
] |
74,323,678 | <p>I'm trying to create a graph for the function (1+1/x)^x.</p>
<p>I wrote it in python like this:</p>
<pre><code>def func(x):
return pow(1+(1/x),x)
</code></pre>
<p>I then plotted it like this:</p>
<pre><code>graph = axes.plot(lambda x: func(x), color=BLUE, stroke_width=2, x_range=[0,X_MAX])
</code></pre>
<p>(X_MA... | [
{
"answer_id": 74323661,
"author": "pigrammer",
"author_id": 19846219,
"author_profile": "https://Stackoverflow.com/users/19846219",
"pm_score": 3,
"selected": true,
"text": "--skip-magic-trailing-comma \"python.formatting.blackArgs\": [\"--line-length\", \"150\", \"--skip-magic-trailing... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19278323/"
] |
74,323,693 | <p>I'm trying to click on a button using the selenium, but I'm getting an error.</p>
<p>This is the error:</p>
<p><a href="https://i.stack.imgur.com/NQjnh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NQjnh.png" alt="enter image description here" /></a></p>
<p>this is the fragment of the accessed h... | [
{
"answer_id": 74323661,
"author": "pigrammer",
"author_id": 19846219,
"author_profile": "https://Stackoverflow.com/users/19846219",
"pm_score": 3,
"selected": true,
"text": "--skip-magic-trailing-comma \"python.formatting.blackArgs\": [\"--line-length\", \"150\", \"--skip-magic-trailing... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12156494/"
] |
74,323,710 | <p>JSON file:</p>
<pre><code>{
"data": [
{
"id": "ec35139e-60b9-458e-95c6-0aa1db7d30d4",
"name": "Jeffrey",
"last_ping": "2022-11-02 17:42:00.765568",
"last_ping_timestamp": 166740... | [
{
"answer_id": 74323661,
"author": "pigrammer",
"author_id": 19846219,
"author_profile": "https://Stackoverflow.com/users/19846219",
"pm_score": 3,
"selected": true,
"text": "--skip-magic-trailing-comma \"python.formatting.blackArgs\": [\"--line-length\", \"150\", \"--skip-magic-trailing... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14726294/"
] |
74,323,741 | <p>I need to insert links but check whether a file exists in this language. I want to adjust the link target dynamically during or after build.</p>
<p>Currently, due to the nested structure of the navigation file, a generator plugin creates an index of articles with their properties, e.g. title, path, etc. The informat... | [
{
"answer_id": 74343569,
"author": "bryson",
"author_id": 20423423,
"author_profile": "https://Stackoverflow.com/users/20423423",
"pm_score": 3,
"selected": true,
"text": "{% if page.lang != 'en' %}\n {% assign path = '_' | append: page.lang | append: '/' | \nappend: include.path %}\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3842598/"
] |
74,323,754 | <p>I am a newbie, please forgive my ignorance. I tried researching and reading other articles and questions, but nothing seems to give a proper answer.</p>
<p>If the answer is simply no, please just tell me.</p>
<p>Basically, I'm working on a project for school, and I want to be able to take someone's input (i.e. their... | [
{
"answer_id": 74323789,
"author": "Ged0jzn4",
"author_id": 17451659,
"author_profile": "https://Stackoverflow.com/users/17451659",
"pm_score": 2,
"selected": false,
"text": "name = input()\nnumber = 0\n\nfor letter in name:\n number += ord(letter) \n"
},
{
"answer_id": 7432380... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20361158/"
] |
74,323,757 | <p>I'm trying to loop over the lines in an output file I created that looks like this:</p>
<pre><code>2020-03-19, 22.0
2020-03-20, 6.0
2020-03-21, 5.0
</code></pre>
<p>And then create and print a list with the numbers in the 2nd column.</p>
<p>This is just my main and the function I'm having trouble with:</p>
<pre><cod... | [
{
"answer_id": 74323789,
"author": "Ged0jzn4",
"author_id": 17451659,
"author_profile": "https://Stackoverflow.com/users/17451659",
"pm_score": 2,
"selected": false,
"text": "name = input()\nnumber = 0\n\nfor letter in name:\n number += ord(letter) \n"
},
{
"answer_id": 7432380... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20413745/"
] |
74,323,763 | <p>I'm trying to make a simple few lines to print prime numbers between 1000 - 10,000</p>
<p>Shouldn't this code work? I'm taking i and dividing by 2 and saying if it does not equal remainder 0 then print the number as it would be prime.</p>
<pre><code>for i in range(1000, 10000):
if (i % 2) != 0:
print(i)
</cod... | [
{
"answer_id": 74323770,
"author": "PCDSandwichMan",
"author_id": 12007307,
"author_profile": "https://Stackoverflow.com/users/12007307",
"pm_score": -1,
"selected": false,
"text": "for i in range(1000, 10000):\n for j in range(2, i):\n if i % j == 0:\n break\n el... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18415626/"
] |
74,323,769 | <p>I am relatively new to typescript and trying to diagnose an error. I'm making sidebar navigation and trying to pull an icon from my navigation array.</p>
<p>Array:</p>
<pre><code> const menuItems = [
{ id: 1, label: "Dashboard", icon: <ComputerDesktopIcon />, link: "/" },
... | [
{
"answer_id": 74323770,
"author": "PCDSandwichMan",
"author_id": 12007307,
"author_profile": "https://Stackoverflow.com/users/12007307",
"pm_score": -1,
"selected": false,
"text": "for i in range(1000, 10000):\n for j in range(2, i):\n if i % j == 0:\n break\n el... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18377714/"
] |
74,323,772 | <p>I am trying to create a list of new objects in python (as in separate memory locations, not references)</p>
<pre><code>class example:
_name = ""
_words = []
def __init__(self,name):
_name = name
def add_words(self,new_words):
for i in new_words:
self._words.appe... | [
{
"answer_id": 74323798,
"author": "Carcigenicate",
"author_id": 3000206,
"author_profile": "https://Stackoverflow.com/users/3000206",
"pm_score": 2,
"selected": true,
"text": "_words = [] _words _words class example:\n def __init__(self,name):\n self._words = []\n\n . . .\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14469316/"
] |
74,323,773 | <p>I have a class Person that contains names and hobbies. Then there's a list that contains people.</p>
<ul>
<li>person1 = Person("MarySmith", ["dancing", "biking", "cooking"])</li>
<li>person2 = ...</li>
<li><strong>people = [person1, person2,..]</strong></li>
</ul>
<p>I need to... | [
{
"answer_id": 74323835,
"author": "Rahul K P",
"author_id": 4407666,
"author_profile": "https://Stackoverflow.com/users/4407666",
"pm_score": 1,
"selected": false,
"text": "class Person:\n def __init__(self, name, hobbies):\n self.name = name\n self.hobbies = sorted(hob... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421646/"
] |
74,323,826 | <p>After running 'npm update' on my app, I am suddenly getting the following error:</p>
<pre><code>Compiled with problems:
ERROR in ./node_modules/pako/lib/zlib/trees.js 257:106
Module parse failed: Unexpected token (257:106)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may n... | [
{
"answer_id": 74327940,
"author": "Attila Szombathelyi",
"author_id": 20425666,
"author_profile": "https://Stackoverflow.com/users/20425666",
"pm_score": 5,
"selected": true,
"text": "package-lock.json package-lock.json package.json package.json \"@babel/core\": \"7.19.6\",\n\"@babel/ge... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2487960/"
] |
74,323,850 | <p>So im making my first Dropdown but when i have a lot of Strings it expands upwards, is there a way to compact the list and make it scrollable or am i using the wrong Widget?</p>
<p><a href="https://i.stack.imgur.com/6Hi9J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Hi9J.png" alt="Closed Dropd... | [
{
"answer_id": 74327940,
"author": "Attila Szombathelyi",
"author_id": 20425666,
"author_profile": "https://Stackoverflow.com/users/20425666",
"pm_score": 5,
"selected": true,
"text": "package-lock.json package-lock.json package.json package.json \"@babel/core\": \"7.19.6\",\n\"@babel/ge... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19702304/"
] |
74,323,852 | <p>I was rewriting the code below using OpenMP task to parallilize the Pi program.</p>
<p>Original Code:</p>
<pre><code>#include <omp.h>
#include <stdio.h>
static long num_steps = 1024*1024*1024;
#define MIN_BLK 1024*1024*256
double pi_comp(int Nstart,int Nfinish,double step)
{ int i,iblk;
double x, sum ... | [
{
"answer_id": 74327940,
"author": "Attila Szombathelyi",
"author_id": 20425666,
"author_profile": "https://Stackoverflow.com/users/20425666",
"pm_score": 5,
"selected": true,
"text": "package-lock.json package-lock.json package.json package.json \"@babel/core\": \"7.19.6\",\n\"@babel/ge... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20305654/"
] |
74,323,853 | <p>I am trying run the following two command in one command.</p>
<pre><code>eval "$(ssh-agent)"
ssh add ~/.ssh/id_rsa
</code></pre>
<p>I tried with many possible solutions:</p>
<pre><code>su username -c "{ eval $(ssh-agent -s) }; ssh-add ~/.ssh/id_rsa"
su username -c "eval $(ssh-agent -s)"... | [
{
"answer_id": 74324137,
"author": "dan",
"author_id": 13919668,
"author_profile": "https://Stackoverflow.com/users/13919668",
"pm_score": 2,
"selected": true,
"text": "su username -c 'eval \"$(ssh-agent -s)\"; ssh-add ~/.ssh/id_rsa'\n ssh-add su username -c 'script=$(ssh-agent -s) || ex... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421724/"
] |
74,323,856 | <pre class="lang-c prettyprint-override"><code>StackMeta_t *mystack_create(size_t objsize)
{
StackMeta_t *elem;
elem = (StackMeta_t*)malloc(sizeof(StackMeta_t));
if(elem == NULL)
{
return NULL;
}
else
{
elem->stack = NULL; // my actual stack basically the first elem(the top)
... | [
{
"answer_id": 74324137,
"author": "dan",
"author_id": 13919668,
"author_profile": "https://Stackoverflow.com/users/13919668",
"pm_score": 2,
"selected": true,
"text": "su username -c 'eval \"$(ssh-agent -s)\"; ssh-add ~/.ssh/id_rsa'\n ssh-add su username -c 'script=$(ssh-agent -s) || ex... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19006940/"
] |
74,323,868 | <p><strong>routes.rb</strong></p>
<pre><code> namespace :scheduling do
resources :scheduling_details, only: [:create, :destroy, :update, :index]
do
</code></pre>
<p><strong>rake routes</strong></p>
<pre><code>scheduling_scheduling_detail
PATCH /scheduling/scheduling_details/:id(.:format)
scheduling/schedul... | [
{
"answer_id": 74324137,
"author": "dan",
"author_id": 13919668,
"author_profile": "https://Stackoverflow.com/users/13919668",
"pm_score": 2,
"selected": true,
"text": "su username -c 'eval \"$(ssh-agent -s)\"; ssh-add ~/.ssh/id_rsa'\n ssh-add su username -c 'script=$(ssh-agent -s) || ex... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3842322/"
] |
74,323,872 | <pre><code>test = {"poop":{"okay":[10]}}
print(test)
</code></pre>
<p>For example, I want the 10 within["okay"], to now be 20.</p>
| [
{
"answer_id": 74323890,
"author": "PCDSandwichMan",
"author_id": 12007307,
"author_profile": "https://Stackoverflow.com/users/12007307",
"pm_score": 0,
"selected": false,
"text": "# To update the value in the list\ntest[\"poop\"][\"okay\"][0] = 20\n\n# Replaces the list altogether\ntest... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14833560/"
] |
74,323,874 | <p>relatively new to using Python and the dict structure.
I have imported a CSV file from online and turned it to a dictionary. I use the first row as the Key, and then any other subsequent rows are used as the value.</p>
<p>So for example
<a href="https://i.stack.imgur.com/1Sq9j.png" rel="nofollow noreferrer"><img src... | [
{
"answer_id": 74324022,
"author": "TCK",
"author_id": 14525084,
"author_profile": "https://Stackoverflow.com/users/14525084",
"pm_score": 2,
"selected": false,
"text": "print(0.9872 in df.values())\n print(int(data_input) in df.values())\n"
},
{
"answer_id": 74324057,
"autho... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208266/"
] |
74,323,883 | <p>I have a webapi where iam using repository pattern, in the service layer i have to acess the response.cookies and append few values to it and so far iam unable to figure out how to do it , it looks like the response is accessible only within the controller,can someone please teach me how to do it in service layer? i... | [
{
"answer_id": 74324022,
"author": "TCK",
"author_id": 14525084,
"author_profile": "https://Stackoverflow.com/users/14525084",
"pm_score": 2,
"selected": false,
"text": "print(0.9872 in df.values())\n print(int(data_input) in df.values())\n"
},
{
"answer_id": 74324057,
"autho... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15556897/"
] |
74,323,902 | <p>I have this code and I want to count the days between 2 dates.</p>
<pre><code>from datetime import date, datetime
checkin= datetime(2022, 1, 30, 1, 15, 00)
checkout= datetime(2022, 1, 31, 0, 0, 00)
count_days= (checkout - checkin).days
</code></pre>
<p>In this case, the result of count_days result is 0, because in ... | [
{
"answer_id": 74323920,
"author": "PCDSandwichMan",
"author_id": 12007307,
"author_profile": "https://Stackoverflow.com/users/12007307",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, datetime\n\ncheck_in= datetime(2022, 1, 30, 1, 15, 00)\ncheck_out= datetime(2022... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19883757/"
] |
74,323,919 | <p>how can i redirect correctly to routes ?</p>
<p>My application has to have some route security and I try to do it with GoRouter
but it always executes one more redirection and always returns to home.</p>
<p>There are only 3 secure routes (profile, order, favorites) and if you are not logged in you must go back to lo... | [
{
"answer_id": 74323920,
"author": "PCDSandwichMan",
"author_id": 12007307,
"author_profile": "https://Stackoverflow.com/users/12007307",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, datetime\n\ncheck_in= datetime(2022, 1, 30, 1, 15, 00)\ncheck_out= datetime(2022... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16797746/"
] |
74,323,925 | <p>Is there any less time consuming method of creating a program that can take all of my given parameters and regardless of what they are simply fill in for those values? For example given optional 4 parameters that I want to fill will I have to write a constructor for each possible combination?</p>
<p>I'm new to Java ... | [
{
"answer_id": 74324167,
"author": "hfontanez",
"author_id": 2851311,
"author_profile": "https://Stackoverflow.com/users/2851311",
"pm_score": 2,
"selected": false,
"text": "builder.setOptionalParm1(val1).setOptionalParm2(val2)... public class ImmutableWidget {\n \n private final S... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421822/"
] |
74,323,958 | <p>A customer added data into a text area and separated line items by pressing enter and put each item on a separate line. In the XML file, each item is on a separate line, but when I render the page, the text all comes together on one line. Is there a way to take each separate line and add it to a list, then make the ... | [
{
"answer_id": 74324167,
"author": "hfontanez",
"author_id": 2851311,
"author_profile": "https://Stackoverflow.com/users/2851311",
"pm_score": 2,
"selected": false,
"text": "builder.setOptionalParm1(val1).setOptionalParm2(val2)... public class ImmutableWidget {\n \n private final S... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9115288/"
] |
74,323,971 | <p>I am trying to make a personal page with the name and other info and when you click EDIT PROFILE button it will take you to another page to edit the information.</p>
<p>On the EDIT Profile page I have the information on the input form that you can input new info. I want it to reflect the change only when I click the... | [
{
"answer_id": 74324076,
"author": "Drew Reese",
"author_id": 8690857,
"author_profile": "https://Stackoverflow.com/users/8690857",
"pm_score": 2,
"selected": false,
"text": "EditProfileItem onClick onClick={editProfileClickHandler} onClick={editProfileClickHandler()} profileReducer inpu... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18198092/"
] |
74,323,985 | <p>I have the following code which, when given a number n, calculates the nth Fibonacci number.</p>
<pre><code>pub fn fibonacci(n: i64) -> i64 {
fib_iter(1, 0, 0, 1, n)
}
fn fib_iter(a: i64, b: i64, p: i64, q: i64, count: i64) -> i64 {
if count == 0 {
return b;
}
if is_even(count) {
ret... | [
{
"answer_id": 74325003,
"author": "Ahmed Masud",
"author_id": 894328,
"author_profile": "https://Stackoverflow.com/users/894328",
"pm_score": 0,
"selected": false,
"text": "num_traits \nuse num_traits::identities::{One, Zero};\nuse std::cmp::PartialEq;\nuse std::fmt::{Debug, Display};\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74323985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16498809/"
] |
74,324,023 | <p>I am having difficulty writing tests for this 3rd party library I am importing. I think this is because I want my <code>CustomClient</code> struct to have a <code>client</code> interface instead of the <code>*banker.Client</code>. This is making testing very difficult because it's hard to mock a <code>*banker.Client... | [
{
"answer_id": 74324536,
"author": "nimdrak",
"author_id": 11758344,
"author_profile": "https://Stackoverflow.com/users/11758344",
"pm_score": 0,
"selected": false,
"text": "Client for _, test := []struct{}{\n testVerification VerificationInterface\n }{{\n testVerification... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74324023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5117502/"
] |
74,324,034 | <p>I have made a map in the tiled editor and intend to use it in a game using pygame. I imported pytmx to help with this process but when I use load_pygame("directory of file") it give out this error</p>
<pre><code>
Traceback (most recent call last):
File "D:\Coder man\code\GUI\game map\showing map.py&... | [
{
"answer_id": 74324536,
"author": "nimdrak",
"author_id": 11758344,
"author_profile": "https://Stackoverflow.com/users/11758344",
"pm_score": 0,
"selected": false,
"text": "Client for _, test := []struct{}{\n testVerification VerificationInterface\n }{{\n testVerification... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74324034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18739114/"
] |
74,324,049 | <p>I have a dataset with measures for individuals, where each measure represents a specific type of measure (say '1' or '2') and each individual belongs to specific group (say 'A' or 'B'). For a subset of individuals, I have observed both measures '1' and '2'. In this data, the different measures have different varianc... | [
{
"answer_id": 74324268,
"author": "Ben Bolker",
"author_id": 190277,
"author_profile": "https://Stackoverflow.com/users/190277",
"pm_score": 2,
"selected": false,
"text": "lme nlme dat$groupdummy <- as.numeric(dat$group) - 1\n model1 <- lme(y ~ group:measure + 0,\n data = d... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74324049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1637957/"
] |
74,324,086 | <p>I'm working with some developers to create a website, and I want to know if React will work if I hire someone to create the html and css first, and then have another person integrate react with those templates</p>
<p>Is react integratable in this situation, or does react have to be used from the get go? I am a pytho... | [
{
"answer_id": 74324268,
"author": "Ben Bolker",
"author_id": 190277,
"author_profile": "https://Stackoverflow.com/users/190277",
"pm_score": 2,
"selected": false,
"text": "lme nlme dat$groupdummy <- as.numeric(dat$group) - 1\n model1 <- lme(y ~ group:measure + 0,\n data = d... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11280068/"
] |
74,324,124 | <p>I am building a shop project for school, and as I decided that instead copying and pasting a function which toasts that there's no internet connection in each activity, I should instead add it to my project manager class, which is not an activity, ShopManager. The problem is, in order to toast, one of the parameters... | [
{
"answer_id": 74324258,
"author": "BigBeef",
"author_id": 20304512,
"author_profile": "https://Stackoverflow.com/users/20304512",
"pm_score": 0,
"selected": false,
"text": "Intent intent = new Intent(getApplicationContext(), Home.class);\nshopMng.someMethod(intent);\n public class ShopM... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13901310/"
] |
74,324,143 | <p>This was originally working, until I removed some JS files and unused CSS. Now, I can no longer get the accordion buttons to expand. I believe my implementation doesn't require JS. However, to the best of my knowledge I reimplemented all JS that was present when it was working.</p>
<p>I believe my issue is that I'm ... | [
{
"answer_id": 74324191,
"author": "Oscar ",
"author_id": 15619870,
"author_profile": "https://Stackoverflow.com/users/15619870",
"pm_score": 0,
"selected": false,
"text": "<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.min.js\" integrity=\"sha384-IDwe1+LCz0... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3605767/"
] |
74,324,193 | <p>I'm trying to put my append list into a table. I only can print one line of the list but not the others since the amount of numbers and words can varie from 1 to infinity</p>
<pre><code>everthing = []
option = 0
while option < 5:
Mainmenue = ["Main menue", "1. ADD AN ITEM", "4. GENER... | [
{
"answer_id": 74324191,
"author": "Oscar ",
"author_id": 15619870,
"author_profile": "https://Stackoverflow.com/users/15619870",
"pm_score": 0,
"selected": false,
"text": "<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.min.js\" integrity=\"sha384-IDwe1+LCz0... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421976/"
] |
74,324,213 | <p>I am working on a library project but my function called <code>changeColor</code> inside the <code>readStatus</code> function does not appear to be working.</p>
<p>I've tried separating it but having two event listeners on the same button does not appear to work. My goal is for <code>readStatus</code> function to al... | [
{
"answer_id": 74324191,
"author": "Oscar ",
"author_id": 15619870,
"author_profile": "https://Stackoverflow.com/users/15619870",
"pm_score": 0,
"selected": false,
"text": "<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.min.js\" integrity=\"sha384-IDwe1+LCz0... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19530516/"
] |
74,324,219 | <p>I have an application that I wrote in <strong>kivy</strong>. I want to convert this application to <strong>exe</strong>. Although I follow the steps in the documentation, I get an <strong>error</strong> when I run the <strong>exe</strong> file.</p>
<p>It didn't work even though I looked at all the examples. The .spe... | [
{
"answer_id": 74365492,
"author": "MST",
"author_id": 7351626,
"author_profile": "https://Stackoverflow.com/users/7351626",
"pm_score": 0,
"selected": false,
"text": "*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],\n"
}
] | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16230831/"
] |
74,324,234 | <p>How do I merge every single batch of consecutive lines in a .txt file?</p>
<p><strong>Example:</strong></p>
<p>Turn this:</p>
<pre><code>User#0001
Hello
Whats Up
User#0002
Hi
...
</code></pre>
<p>into this:</p>
<pre><code>User#0001 Hello Whats Up
User#0002 Hi
...
</code></pre>
<p>I want to merge all of the lines... | [
{
"answer_id": 74324278,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "re.sub inp = \"\"\"User#0001\nHello\nWhats Up\n\n\nUser#0002\nHi\"\"\"\n\noutput = re.sub(r'(?<!\\n)\\n(?=\\S... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12704826/"
] |
74,324,263 | <p>I'm trying to create a program that takes user input and passes it to three methods.</p>
<ul>
<li>one method calculates total pay</li>
<li>one method determines shift selected</li>
<li>I want the last method to be the display method, but I've used a method that receives parameters to pass the information, a <code>vo... | [
{
"answer_id": 74324278,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "re.sub inp = \"\"\"User#0001\nHello\nWhats Up\n\n\nUser#0002\nHi\"\"\"\n\noutput = re.sub(r'(?<!\\n)\\n(?=\\S... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20245024/"
] |
74,324,269 | <p>I have a row in my csv file here:</p>
<pre><code> 0 1 2 3 4 5
0 I 55 A 2018-03-10 00:00:00.000 username_in_current_row 2012-01-24 00:00:00.000
</code></pre>
<p>I want to write something in python where it onl... | [
{
"answer_id": 74324278,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "re.sub inp = \"\"\"User#0001\nHello\nWhats Up\n\n\nUser#0002\nHi\"\"\"\n\noutput = re.sub(r'(?<!\\n)\\n(?=\\S... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20412585/"
] |
74,324,271 | <p>I have a gallery of 20 images and each image corresponds to a div with text in it.
When i click on an image, the text should appear. When i click on the next image, that images text should appear WHILE closing the previous text div from the 1st image i clicked on.</p>
<p>So only one text box should be visible at one... | [
{
"answer_id": 74324278,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "re.sub inp = \"\"\"User#0001\nHello\nWhats Up\n\n\nUser#0002\nHi\"\"\"\n\noutput = re.sub(r'(?<!\\n)\\n(?=\\S... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18581100/"
] |
74,324,312 | <p>Currently, when you click 'more info' and the popup opens. You are able to scroll and you'll see that the background moves. I want to prevent the ability for scrolling while the popup is opening, what would I do to take care of this issue? I tried playing with overflow:hidden; in CSS but it didn't work for this. I w... | [
{
"answer_id": 74324340,
"author": "Sigurd Mazanti",
"author_id": 14776809,
"author_profile": "https://Stackoverflow.com/users/14776809",
"pm_score": 2,
"selected": false,
"text": "onclick body height: 100%;\noverflow: hidden;\n /*=============== SERVICES MODAL ===============*/\nconst m... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12683667/"
] |
74,324,317 | <p>I have a dataset of customer profiles where I am trying to capture how much revenue they generated until they cancelled their subscription. The issue I am having is that after the customer cancels their subscription, the customer profile still exists in the database and registers as being charged 0. I am trying to c... | [
{
"answer_id": 74324430,
"author": "The Impaler",
"author_id": 6436191,
"author_profile": "https://Stackoverflow.com/users/6436191",
"pm_score": 1,
"selected": false,
"text": "select *\nfrom (\n select\n t.customer_name,\n t.customer_id,\n t.cancel_flag,\n t.revenue_date,\n ... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20235204/"
] |
74,324,330 | <p>I tried to compose patten with regex, and tried to validate multiple strings. However, seems my patterns fine according to regex documentation, but some reason, some invalid string is not validated correctly. Can anyone point me out what is my mistakes here?</p>
<p><strong>test use case</strong></p>
<p>this is test ... | [
{
"answer_id": 74324379,
"author": "Micah Smith",
"author_id": 2514228,
"author_profile": "https://Stackoverflow.com/users/2514228",
"pm_score": 2,
"selected": true,
"text": "\\w \\w+ cdc_char4ec_pits [a-zA-Z0-9] usr_pat = r\"^\\$[a-zA-Z0-9]+_src_username_[a-zA-Z0-9]+$\"\n"
}
] | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708392/"
] |
74,324,372 | <p>How to get coefficients for ALL combinations of the variables of a multivariable polynomial using sympy.jl or another Julia package for symbolic computation?</p>
<p>Here is an example from MATLAB,</p>
<pre><code> syms a b y
[cxy, txy] = coeffs(ax^2 + by, [y x], ‘All’)
cxy =
[ 0, 0, b]
[ a, 0, 0]
txy... | [
{
"answer_id": 74324501,
"author": "smichr",
"author_id": 1089161,
"author_profile": "https://Stackoverflow.com/users/1089161",
"pm_score": -1,
"selected": false,
"text": "a*x**2 + b*y + c >>> from sympy import *\n>>> from sympy.abc import a, b, x, y\n>>> eq = a*x**2 + b*y\n>>> deg = lam... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20422196/"
] |
74,324,373 | <p>I am trying to make a Computer PIN cracking game in roblox.
But I don't know how to check how many digits the number value has, so I come here to ask.</p>
<p>If you guys want to play my game, <a href="https://web.roblox.com/games/11455612774/Computer-PIN-Cracking-Simulator" rel="nofollow noreferrer">Click Here</a><... | [
{
"answer_id": 74338136,
"author": "trico",
"author_id": 11760895,
"author_profile": "https://Stackoverflow.com/users/11760895",
"pm_score": 1,
"selected": true,
"text": "math.ceil(math.log(game.ReplicatedStorage.Password.Value))"
},
{
"answer_id": 74375177,
"author": "Kylaaa... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20422121/"
] |
74,324,386 | <p>I am using the <a href="https://pub.dev/packages/flutter_riverpod" rel="nofollow noreferrer"><code>flutter_riverpod</code></a> package. I'm using it for a search field and it's showing an error when searching for something. I asked <a href="https://stackoverflow.com/q/74316651/16124033">a question</a> about the erro... | [
{
"answer_id": 74338136,
"author": "trico",
"author_id": 11760895,
"author_profile": "https://Stackoverflow.com/users/11760895",
"pm_score": 1,
"selected": true,
"text": "math.ceil(math.log(game.ReplicatedStorage.Password.Value))"
},
{
"answer_id": 74375177,
"author": "Kylaaa... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16124033/"
] |
74,324,402 | <p>I have two tables Transactions_Products(tref,prod_id) and Products(prod_id,prod_name,price).
How to find product_id of Products which is not in any of Transactions_Products.</p>
<p>I have tried using NOT IN but it didn't work as expected</p>
| [
{
"answer_id": 74324418,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "SELECT p.*\nFROM Products p\nWHERE NOT EXISTS (\n SELECT 1\n FROM Transactions_Products tp\n WHERE ... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,324,458 | <p>Flutter ,My Launcher is not working With Link Widget of Url Launcher.</p>
<pre class="lang-dart prettyprint-override"><code>final websiteUri = Uri.parse('https://flutter.dev');
Link(
uri: websiteUri,
target: LinkTarget.blank,
builder: (context, openLink) => TextButto... | [
{
"answer_id": 74324418,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "SELECT p.*\nFROM Products p\nWHERE NOT EXISTS (\n SELECT 1\n FROM Transactions_Products tp\n WHERE ... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2831255/"
] |
74,324,476 | <p>While running react native app I am getting following error:</p>
<p>`</p>
<blockquote>
<p>Task :app:mergeDebugNativeLibs FAILED</p>
</blockquote>
<p>Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <a... | [
{
"answer_id": 74326754,
"author": "Kishan Vaghela",
"author_id": 3758898,
"author_profile": "https://Stackoverflow.com/users/3758898",
"pm_score": 3,
"selected": false,
"text": "android/build.gradle def REACT_NATIVE_VERSION = new File(['node', '--print',\"JSON.parse(require('fs').readFi... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16869852/"
] |
74,324,480 | <p>Say there's an existing function definition <code>.my.func:{[tbl;data] ...}</code> and I want to set the <code>upd</code> function to this lambda.</p>
<h3>Are the two lines below equivalent?</h3>
<pre><code>@[`.;`upd;:;.my.func]; / #1
`upd set .my.func; / #2
</code></pre>
<p>Asking because I see a lot of #1 in the c... | [
{
"answer_id": 74325997,
"author": "Thomas Smyth - Treliant",
"author_id": 5620913,
"author_profile": "https://Stackoverflow.com/users/5620913",
"pm_score": 4,
"selected": true,
"text": "\\d set @ set .test .test.upd d).my.func:{x}\nq)\\d .test\nq.test)`upd set .my.func;\nq.test)upd\n{x}... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3927314/"
] |
74,324,525 | <h1>Question:</h1>
<p>A common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a ... | [
{
"answer_id": 74325997,
"author": "Thomas Smyth - Treliant",
"author_id": 5620913,
"author_profile": "https://Stackoverflow.com/users/5620913",
"pm_score": 4,
"selected": true,
"text": "\\d set @ set .test .test.upd d).my.func:{x}\nq)\\d .test\nq.test)`upd set .my.func;\nq.test)upd\n{x}... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19999887/"
] |
74,324,558 | <p>How to determine if a column has two equal vowels in SQL Server?</p>
<p>For example <code>'maria'</code> has two <code>'a'</code> characters.</p>
<pre class="lang-sql prettyprint-override"><code>select
*
from
hr.locations
where
state_province is null
and
city like '...' <-- ?
</code></pre>
| [
{
"answer_id": 74325298,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 2,
"selected": false,
"text": "SELECT yourcolumn\nFROM yourtable\nWHERE\nLEN (yourcolumn) - LEN(REPLACE(yourcolumn,'a','')) = 2\nOR LEN (yo... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17474181/"
] |
74,324,565 | <p>I am trying to assign my APP with a static IP. I think I have assigned the IP, but I cannot reach the IP from outside either curl or the browser.</p>
<p>docker-compose.yaml</p>
<pre class="lang-yaml prettyprint-override"><code>version: '3.8'
services:
client:
container_name: client
build: ./frontend
po... | [
{
"answer_id": 74325298,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 2,
"selected": false,
"text": "SELECT yourcolumn\nFROM yourtable\nWHERE\nLEN (yourcolumn) - LEN(REPLACE(yourcolumn,'a','')) = 2\nOR LEN (yo... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17312196/"
] |
74,324,585 | <pre><code>condition = True
classes = []
print("Welcome to class registration!")
def printClasses():
print("You are currently taking these courses: ")
for item in range(0, len(classes)):
print(item+1, ".", classes[item])
while condition:
if(len(classes) < 5):
... | [
{
"answer_id": 74325298,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 2,
"selected": false,
"text": "SELECT yourcolumn\nFROM yourtable\nWHERE\nLEN (yourcolumn) - LEN(REPLACE(yourcolumn,'a','')) = 2\nOR LEN (yo... | 2022/11/05 | [
"https://Stackoverflow.com/questions/74324585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20422434/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.