qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,651,056 | <p>I have an array of stocks with each stock having 3 properties. I want to get the price property from the array and find out the highest/lowest price and return the object with highest/lowest price.</p>
<pre><code>'use strict';
const stocks = [
{ company: 'Splunk', symbol: 'SPLK', price: 137.55 },
{ company:... | [
{
"answer_id": 74651273,
"author": "Abra",
"author_id": 2164365,
"author_profile": "https://Stackoverflow.com/users/2164365",
"pm_score": 1,
"selected": false,
"text": "java.time.format.DateTimeFormatter Locale Exception in thread \"main\" java.time.format.DateTimeParseException: Text 'W... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20445050/"
] |
74,651,069 | <p>I have the following code snippet. I'm not sure how to clean up all subscriptions or if I made any mistakes. Please help to improve it.</p>
<p>I'm using it within an Angular service to initialize my application.</p>
<pre><code> destroy$ = new Subject();
loadData() : void {
const loadData1 = this.store.select... | [
{
"answer_id": 74651273,
"author": "Abra",
"author_id": 2164365,
"author_profile": "https://Stackoverflow.com/users/2164365",
"pm_score": 1,
"selected": false,
"text": "java.time.format.DateTimeFormatter Locale Exception in thread \"main\" java.time.format.DateTimeParseException: Text 'W... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6034899/"
] |
74,651,075 | <p>how to open a file using R? I am thinking about a function like <code>file.open(...)</code>, what it does is like double-click a file to open it. However, I did not find any function doing that. Is it possible to use R to open a file? I am using Windows system.</p>
| [
{
"answer_id": 74651084,
"author": "iDoMnCi",
"author_id": 10850031,
"author_profile": "https://Stackoverflow.com/users/10850031",
"pm_score": 3,
"selected": true,
"text": "file.show() \"myfile.txt\" file.show(\"myfile.txt\")"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5736676/"
] |
74,651,078 | <p>Basically, I am trying to get my title and navbar vertically and horizontally centered with the title on top, but no matter what I do the navbar will not go under page title. They are just stacked horizontally.
I've tried line breaks and everything else I can, and It still won't work how I want it to. I know it's po... | [
{
"answer_id": 74651084,
"author": "iDoMnCi",
"author_id": 10850031,
"author_profile": "https://Stackoverflow.com/users/10850031",
"pm_score": 3,
"selected": true,
"text": "file.show() \"myfile.txt\" file.show(\"myfile.txt\")"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20662592/"
] |
74,651,093 | <p>I searched a while but couldn't find the answer that I want. I am have a very simple question, how to get rid of the empty objects from Map.</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 prettyprin... | [
{
"answer_id": 74651167,
"author": "iDoMnCi",
"author_id": 10850031,
"author_profile": "https://Stackoverflow.com/users/10850031",
"pm_score": 2,
"selected": true,
"text": "const fruits = [{\n apple: 'red',\n banana: 1\n },\n {\n apple: 'green',\n banana: 1\n },\n {\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1166137/"
] |
74,651,103 | <p>How can I call "willChangeValue" when using swift Task/await without the following warning showing up?</p>
<p><em>Instance method 'willChangeValue' is unavailable from asynchronous contexts; Only notify of changes to a key in a synchronous context. Notifying changes across suspension points has undefined b... | [
{
"answer_id": 74653698,
"author": "jrturton",
"author_id": 852828,
"author_profile": "https://Stackoverflow.com/users/852828",
"pm_score": 1,
"selected": true,
"text": "await MainActor.run { \n self.willChangeValue(forKey: \"localFilesTitle\")\n self.localFiles.append(contentsOf: ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2567126/"
] |
74,651,117 | <p>I was trying to open and read through a P5 .pgm (grayscale) file, then extract the least-significant-bit from each pixel. I tried to get the LSB of every pixel, so one bit bit per byte of the image.So it would take 8 image bytes/pixels to extract 1 byte of hidden text.Then, I would be able to get one byte of the hid... | [
{
"answer_id": 74651226,
"author": "heystewart",
"author_id": 13738949,
"author_profile": "https://Stackoverflow.com/users/13738949",
"pm_score": 2,
"selected": true,
"text": " // We will have (at most) size/8 bytes in the final text\n for(int i=0; i<size/8; i++){\n // Process e... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17566468/"
] |
74,651,157 | <p>I am making a program that asks how many players are playing, and then asks to input the names of those players. Then, I want it to print a random player, but I can't figure it out how.</p>
<p>The code right now prints a random letter from the last name given, I think:</p>
<pre class="lang-py prettyprint-override"><... | [
{
"answer_id": 74651189,
"author": "accdias",
"author_id": 6789321,
"author_profile": "https://Stackoverflow.com/users/6789321",
"pm_score": 2,
"selected": false,
"text": "from random import choice\n\nnumber_of_players = int(input(\"How many players are there: \"))\nplayers = []\n\nfor _... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18106010/"
] |
74,651,215 | <p>I'm working on a captcha solver and I need to use ffmpeg, though nothing works. Windows 10 user.</p>
<p>Warning when running the code for the first time:</p>
<pre><code>C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmp... | [
{
"answer_id": 74651189,
"author": "accdias",
"author_id": 6789321,
"author_profile": "https://Stackoverflow.com/users/6789321",
"pm_score": 2,
"selected": false,
"text": "from random import choice\n\nnumber_of_players = int(input(\"How many players are there: \"))\nplayers = []\n\nfor _... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19552290/"
] |
74,651,227 | <p>I created table.</p>
<pre><code>CREATE TABLE test_tab(
ID INT,
FIRSTNAME VARCHAR(40),
TS TIMESTAMP)
</code></pre>
<p>And insert values into it.</p>
<pre><code>INSERT INTO test_tab (ID, FIRSTNAME, TS) VALUES (1, 'Jhon', '2018-06-05 00:11:56');
INSERT INTO test_tab (ID, FIRSTNAME, TS) VALUES (2, 'Jhon', '2018-06-15 00... | [
{
"answer_id": 74651189,
"author": "accdias",
"author_id": 6789321,
"author_profile": "https://Stackoverflow.com/users/6789321",
"pm_score": 2,
"selected": false,
"text": "from random import choice\n\nnumber_of_players = int(input(\"How many players are there: \"))\nplayers = []\n\nfor _... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20503658/"
] |
74,651,235 | <p>I want to select an image from the gallery and display it at the bottom of the container when the container is clicked using image_picker. But <strong>'The argument type 'File?' can't be assigned to the parameter type 'File'. '</strong> error occurs. I searched hard for an answer on Google and StackOverFlow, but cou... | [
{
"answer_id": 74651189,
"author": "accdias",
"author_id": 6789321,
"author_profile": "https://Stackoverflow.com/users/6789321",
"pm_score": 2,
"selected": false,
"text": "from random import choice\n\nnumber_of_players = int(input(\"How many players are there: \"))\nplayers = []\n\nfor _... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19443112/"
] |
74,651,250 | <p>I am trying to write a simple python program to read a log file and extract specific values
I have the following log line I want to look out for</p>
<pre><code>2022-12-02 13:13:10.539 [metrics-writer-1] [INFO ] metrics - type=GAUGE, name=Topic.myTopic1.TotalIncomingBytes.Count, value=20725269
</code></pre>
<p>I hav... | [
{
"answer_id": 74651313,
"author": "Tim Roberts",
"author_id": 1883316,
"author_profile": "https://Stackoverflow.com/users/1883316",
"pm_score": 0,
"selected": false,
"text": "data = \"\"\"\\\n2022-12-02 13:13:10.539 [metrics-writer-1] [INFO ] metrics - type=GAUGE, name=Topic.myTopic1.To... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16452929/"
] |
74,651,255 | <p>I am new to Angular and I just started learning it recently. I came across the concept of Databinding in Angular. I was able to understand the syntax and stuff but there were some questions that I couldn't find an answer for. These are the queries I had:</p>
<ol>
<li><p>When we export a class from the component TS f... | [
{
"answer_id": 74651313,
"author": "Tim Roberts",
"author_id": 1883316,
"author_profile": "https://Stackoverflow.com/users/1883316",
"pm_score": 0,
"selected": false,
"text": "data = \"\"\"\\\n2022-12-02 13:13:10.539 [metrics-writer-1] [INFO ] metrics - type=GAUGE, name=Topic.myTopic1.To... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16890522/"
] |
74,651,287 | <p>I have a function that returns a double. Any real number is a valid output. I'm using nan's to signal errors. I am error checking this way.</p>
<pre><code>double foo();
const auto error1 = std::nan("1");
const auto error2 = std::nan("2");
const auto error3 = std::nan("3");
bool bit_eq... | [
{
"answer_id": 74654280,
"author": "Homer512",
"author_id": 17167312,
"author_profile": "https://Stackoverflow.com/users/17167312",
"pm_score": 1,
"selected": false,
"text": "nan(const char*) double foo();\ndouble foo(std::nothrow_t) noexcept;\n\ndouble bar()\n{\n try {\n doubl... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20662705/"
] |
74,651,297 | <p>I am using Angular 15. I want to get the property values from an array of objects, use the values to do calculation and then map them in the frontend. I had tried 3 different ways, I still can't get what I want but I think I am very close.
The only difference between these 3 methods is, the .subscribe at the end of ... | [
{
"answer_id": 74654280,
"author": "Homer512",
"author_id": 17167312,
"author_profile": "https://Stackoverflow.com/users/17167312",
"pm_score": 1,
"selected": false,
"text": "nan(const char*) double foo();\ndouble foo(std::nothrow_t) noexcept;\n\ndouble bar()\n{\n try {\n doubl... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16984566/"
] |
74,651,340 | <p>I have multiple functions that pass data from one to another. I moved one of the functions to the backend and receive data as API with Axios. Now I cannot manage to assign data from Axios to some local variable.
Simple code would be like:</p>
<pre><code>function function1()
{
axios({get, url})
.then(response =... | [
{
"answer_id": 74654280,
"author": "Homer512",
"author_id": 17167312,
"author_profile": "https://Stackoverflow.com/users/17167312",
"pm_score": 1,
"selected": false,
"text": "nan(const char*) double foo();\ndouble foo(std::nothrow_t) noexcept;\n\ndouble bar()\n{\n try {\n doubl... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10180757/"
] |
74,651,347 | <p>So Am unable to make a search function i want to get a variable from search field and show the results that matched but am constantly getting this error
variable undefined when i try to console.log it in the node server
Edit-- i have already changed the axios.post to axios.get</p>
<pre><code>app.get(`/search/`, (req... | [
{
"answer_id": 74651465,
"author": "Sujit Libi",
"author_id": 4935491,
"author_profile": "https://Stackoverflow.com/users/4935491",
"pm_score": 1,
"selected": false,
"text": "POST POST GET GET axios.get(`your_endpoint_route_goes_here`);\n axios.post(`your_endpoint_route_goes_here`, reque... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20528880/"
] |
74,651,348 | <p>Expected output is 'not detected' but I get 'no error' on get and post. Why?</p>
<p>index.html</p>
<pre><code>{% if error %}
<p>{{ error }}</p>
{% else %}
<p>no error</p>
{% endif %}
</code></pre>
<p>main.py</p>
<pre><code>@app.route('/', methods=['GET', 'POST'])
def index():
if r... | [
{
"answer_id": 74654409,
"author": "Matthias",
"author_id": 5272567,
"author_profile": "https://Stackoverflow.com/users/5272567",
"pm_score": 0,
"selected": false,
"text": "curl.exe --header \"Content-Type: application/json\" -d '{\\\"message\\\":false}' http://localhost:5000\n <p>no... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7764497/"
] |
74,651,354 | <p>Example :
(101,Julie,Hapert,Pam,23932)</p>
<p>Output should be :
(101,"Julie","Hapert","Pam",23932)</p>
| [
{
"answer_id": 74654409,
"author": "Matthias",
"author_id": 5272567,
"author_profile": "https://Stackoverflow.com/users/5272567",
"pm_score": 0,
"selected": false,
"text": "curl.exe --header \"Content-Type: application/json\" -d '{\\\"message\\\":false}' http://localhost:5000\n <p>no... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20168194/"
] |
74,651,359 | <p>I have implemented a TabLayout (which uses fragments) in my bottom sheet toolbar that has buttons which should affect the Main Activity. How do I pass the button clicks from the fragments in my TabLayout to the Main Activity?</p>
<p>I'm stuck and I don't know where to start.</p>
| [
{
"answer_id": 74654409,
"author": "Matthias",
"author_id": 5272567,
"author_profile": "https://Stackoverflow.com/users/5272567",
"pm_score": 0,
"selected": false,
"text": "curl.exe --header \"Content-Type: application/json\" -d '{\\\"message\\\":false}' http://localhost:5000\n <p>no... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20392587/"
] |
74,651,473 | <p>I have data as follows:</p>
<pre><code>myvec <- c("Some 1 sentence...113_the answer", "Some 3 sentence...1_the answer")
</code></pre>
<p>I would like to remove the three consecutrive dots and the following number from these strings, how should I do this?</p>
<p>I could do:</p>
<pre><code>myvec... | [
{
"answer_id": 74654409,
"author": "Matthias",
"author_id": 5272567,
"author_profile": "https://Stackoverflow.com/users/5272567",
"pm_score": 0,
"selected": false,
"text": "curl.exe --header \"Content-Type: application/json\" -d '{\\\"message\\\":false}' http://localhost:5000\n <p>no... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8071608/"
] |
74,651,480 | <p>How can I make clickable link of url's in my content?</p>
<p>Imagine you have piece of code <code>{{post.caption}}</code> and it returns one paragraph, something like this:</p>
<blockquote>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Numquam sunt
nostrum nihil, illum nam ipsam at, ratione, <a href="... | [
{
"answer_id": 74654409,
"author": "Matthias",
"author_id": 5272567,
"author_profile": "https://Stackoverflow.com/users/5272567",
"pm_score": 0,
"selected": false,
"text": "curl.exe --header \"Content-Type: application/json\" -d '{\\\"message\\\":false}' http://localhost:5000\n <p>no... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8490993/"
] |
74,651,496 | <p>I have been trying to fix a problem while running python files in VSCode. I have a directory with a program <code>my_program.py</code> that imports a module <code>personal_functions.py</code> from a folder <code>packages_i_made</code>.</p>
<pre><code>project
├── .env
└── folder_a
├── my_program.py
my_packages
├... | [
{
"answer_id": 74651919,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 2,
"selected": true,
"text": "sys.path.append import sys\nsys.path.append(\"C:/Users/user_1/my_packages\")\n\nfrom packages_i_made import persona... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19935694/"
] |
74,651,503 | <p>i try to add two cookies in php file...but when i excute one the other is deleted</p>
<p>here is the code:</p>
<pre><code><?php
if (isset($_COOKIE["background"])) {
echo "<style> body { background-color:". $_COOKIE["background"] . "}</style>";
}
if (isset(... | [
{
"answer_id": 74651919,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 2,
"selected": true,
"text": "sys.path.append import sys\nsys.path.append(\"C:/Users/user_1/my_packages\")\n\nfrom packages_i_made import persona... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15109567/"
] |
74,651,506 | <p>I'm trying to create an admin page for <code>my project</code> including <code>app1</code> and <code>app2</code></p>
<pre><code>myproject
settings.py
urls.py
admin.py
app1
app2
</code></pre>
<p>In <code>myproject/urls.py</code></p>
<pre><code>urlpatterns = [
path('admin/', admin.site.urls),
path... | [
{
"answer_id": 74651919,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 2,
"selected": true,
"text": "sys.path.append import sys\nsys.path.append(\"C:/Users/user_1/my_packages\")\n\nfrom packages_i_made import persona... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11696515/"
] |
74,651,540 | <p>After some years developing web apps using ruby on rails, I decided to give Django a try, however it seems that I'm missing something, which is how to structure large project, or any project in general.</p>
<p>For example, in rails we have a models folder which contains model classes, each in a separate ruby file, a... | [
{
"answer_id": 74651919,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 2,
"selected": true,
"text": "sys.path.append import sys\nsys.path.append(\"C:/Users/user_1/my_packages\")\n\nfrom packages_i_made import persona... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15327464/"
] |
74,651,542 | <p>I'm in the process of learning how to make fetch api calls and return an array with a list of certain usernames. In the below code that I've written, the array that I was looking for seems to have been generated fine. However, when I try using .forEach() method on the array, it just does not seem to work. If I chang... | [
{
"answer_id": 74651678,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 1,
"selected": false,
"text": "addUsersToDOM() async function getUsers(){\n return fetch(\"https://api.github.com/users\")\n .then(dat... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19985072/"
] |
74,651,550 | <p>I am trying to add certain values from certain Brand from certain Month by using .groupby, but I keep getting the same Error: KeyError: ('Acura', '1', '2020')</p>
<p>This Values Do exist in the file i am importing:</p>
<pre><code>ANIO ID_MES MARCA MODELO UNI_VEH
2020 1 Acura ILX 6
2020 1 Acura M... | [
{
"answer_id": 74651678,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 1,
"selected": false,
"text": "addUsersToDOM() async function getUsers(){\n return fetch(\"https://api.github.com/users\")\n .then(dat... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610124/"
] |
74,651,579 | <p>I am reusing the same code for clearing the screen many times in my program, and I thought about turning it into a class, but I still don't get how classes work and how to properly make one.</p>
<p>My code to clear buttons and other controls is as follows:</p>
<pre><code> List<RichTextBox> _richTextBoxe... | [
{
"answer_id": 74651678,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 1,
"selected": false,
"text": "addUsersToDOM() async function getUsers(){\n return fetch(\"https://api.github.com/users\")\n .then(dat... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20583505/"
] |
74,651,587 | <p>I’m new here. I wanted to sum all the values inside a dictionary, but my values are all strings, I don’t know how to convert the strings to integers…
I really appreciate if anyone can help with it!</p>
<p>Here’s the dictionary with code:</p>
<pre><code>dic1 = dict()
dic1 = {'2012-03-06':['1','4','5'],'2012-03-12':['... | [
{
"answer_id": 74651621,
"author": "Usman Arshad",
"author_id": 20582506,
"author_profile": "https://Stackoverflow.com/users/20582506",
"pm_score": 2,
"selected": false,
"text": "map dic1 = {'2012-03-06':['1','4','5'],'2012-03-12':['7','3','10']}\n\nresult_dict = {key: sum(map(int, value... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663143/"
] |
74,651,599 | <p>What currently I have is this:</p>
<pre><code>
example: Joi.boolean()
.required()
.invalid(false)
.label('Disclaimer Checkbox'),
</code></pre>
<p>and the output which I am getting is "Disclaimer checkbox contains invalid value".</p>
<p>What I need is label which contain only message... | [
{
"answer_id": 74651629,
"author": "sai reddy",
"author_id": 18832149,
"author_profile": "https://Stackoverflow.com/users/18832149",
"pm_score": 1,
"selected": false,
"text": " a: Joi.string()\n .min(2)\n .max(10)\n .required()\n .messages({\n 'string.base': `\"a\" shou... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10035101/"
] |
74,651,606 | <p>I have a NodeJS/Express app that is using Handlebars for templates.</p>
<p>All of the templates and partials load fine except where I am returning data from an Express API.</p>
<p>The data is returned and I can see it in the Chrome debugger.</p>
<p>In this template, I am defining the HTML in a script and compiling i... | [
{
"answer_id": 74652260,
"author": "76484",
"author_id": 3397771,
"author_profile": "https://Stackoverflow.com/users/3397771",
"pm_score": 2,
"selected": true,
"text": "{{#each patient}} patient patient #each patient let patientSearchResultTemplateObject = patientSearchResultTemplateFunc... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16285100/"
] |
74,651,609 | <p>I am using the directive to validate the mobile number input</p>
<pre><code>import { Directive, ElementRef, HostListener, Input } from '@angular/core';
@Directive({
selector: '[mobileNumber]'
})
export class MobileNumberDirective {
@Input()
public value: any;
constructor(private el: ElementRef) { }
@Ho... | [
{
"answer_id": 74652260,
"author": "76484",
"author_id": 3397771,
"author_profile": "https://Stackoverflow.com/users/3397771",
"pm_score": 2,
"selected": true,
"text": "{{#each patient}} patient patient #each patient let patientSearchResultTemplateObject = patientSearchResultTemplateFunc... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14390338/"
] |
74,651,616 | <p>I have a mouseover (hover) state I’m trying to work out. I have a set of anchors, and I’m wrapping each letter in a span and assigning a color to each from an array. What I’m looking to do is on mouseover, assign a color to each span again repeatedly in a sequence (from the array), like a constantly animating color ... | [
{
"answer_id": 74652260,
"author": "76484",
"author_id": 3397771,
"author_profile": "https://Stackoverflow.com/users/3397771",
"pm_score": 2,
"selected": true,
"text": "{{#each patient}} patient patient #each patient let patientSearchResultTemplateObject = patientSearchResultTemplateFunc... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663172/"
] |
74,651,626 | <p>I have tried this solution. But I am not receiving any output. Can someone please point out my error.</p>
<pre><code>def num_case(str):
z=0
j=0
for i in str:
if i.isupper():
z=z+1
return z
elif i.islower():
j=j+1
return j
else:
... | [
{
"answer_id": 74652260,
"author": "76484",
"author_id": 3397771,
"author_profile": "https://Stackoverflow.com/users/3397771",
"pm_score": 2,
"selected": true,
"text": "{{#each patient}} patient patient #each patient let patientSearchResultTemplateObject = patientSearchResultTemplateFunc... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14064726/"
] |
74,651,691 | <p>Print all details of the 16th order placed by each customer if any.</p>
<p>How to print exact 16th Order?</p>
<pre><code>SELECT COUNT(orderId)
FROM orders
GROUP BY CustomerID
ORDER BY CustomerID;
</code></pre>
| [
{
"answer_id": 74652260,
"author": "76484",
"author_id": 3397771,
"author_profile": "https://Stackoverflow.com/users/3397771",
"pm_score": 2,
"selected": true,
"text": "{{#each patient}} patient patient #each patient let patientSearchResultTemplateObject = patientSearchResultTemplateFunc... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663282/"
] |
74,651,693 | <blockquote>
<p>A query that compares the LAG value and fills the sub column with data if there is a difference?</p>
</blockquote>
<pre><code>WITH A AS (
SELECT 'GOLD' AS Title, 1 AS RNUM, 555.4 AS VALUE1, null AS DIFF, null AS LAG FROM DUAL UNION ALL
SELECT 'GOLD' AS Title, 2 AS RNUM, 555.4 AS VALUE1, 0 AS DIF... | [
{
"answer_id": 74653670,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "MATCH_RECOGNIZE SELECT title,\n rnum,\n value1,\n value1 - lag AS diff,\n lag,\n MAX(rnum)... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14298339/"
] |
74,651,695 | <p>Im creating a project where the area or volume of certain shapes are calculated using dropdown menus in java. I don't have any errors when compiling however I'm getting the message that "Unlikely argument type for equals(): String seems to be unrelated to String[]". As stated, it complies fine, but when ru... | [
{
"answer_id": 74651823,
"author": "tquadrat",
"author_id": 1554195,
"author_profile": "https://Stackoverflow.com/users/1554195",
"pm_score": 2,
"selected": true,
"text": "choices.equals(…) question question.equals(…) import javax.swing.JOptionPane;\npublic class Shapes \n{\n public s... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663178/"
] |
74,651,755 | <p>In fresh openfeign library (version 3.1.3) there is a check in <a href="https://github.com/spring-cloud/spring-cloud-openfeign/blob/v3.1.3/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/annotation/PathVariableParameterProcessor.java#L52" rel="nofollow noreferrer">PathVariableParameterP... | [
{
"answer_id": 74651823,
"author": "tquadrat",
"author_id": 1554195,
"author_profile": "https://Stackoverflow.com/users/1554195",
"pm_score": 2,
"selected": true,
"text": "choices.equals(…) question question.equals(…) import javax.swing.JOptionPane;\npublic class Shapes \n{\n public s... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2185612/"
] |
74,651,756 | <p>Could someone enlighten me where I'm going wrong.</p>
<p>I can't convert the byte array produced from the hash sum function by casting with string, I have to use Sprintf.</p>
<p>Here is a snippet of the code:</p>
<pre><code>f, _ := os.Open(filename)
hash := md5.New()
io.Copy(hash, f)
hashStringGood := fmt.Sprintf(&q... | [
{
"answer_id": 74651841,
"author": "Burak Serdar",
"author_id": 11923999,
"author_profile": "https://Stackoverflow.com/users/11923999",
"pm_score": 1,
"selected": false,
"text": "fmt.Sprintf"
},
{
"answer_id": 74652394,
"author": "chuckx",
"author_id": 373815,
"author... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8652908/"
] |
74,651,759 | <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>let count = 0;
let counter = document.querySelector("#number-el");
let btns = document.querySelectorAll(".btn");
let decreaseEl = ... | [
{
"answer_id": 74651841,
"author": "Burak Serdar",
"author_id": 11923999,
"author_profile": "https://Stackoverflow.com/users/11923999",
"pm_score": 1,
"selected": false,
"text": "fmt.Sprintf"
},
{
"answer_id": 74652394,
"author": "chuckx",
"author_id": 373815,
"author... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19569602/"
] |
74,651,766 | <p>I am trying to create docker containers and I was trying to 1 for MySql and another for Spring io. The DB container is running OK but the spring boot container comes at a point and exits. I have searched and tried many thing but I can't seem to be able to solve it, the thing that I concluded that it seems that somet... | [
{
"answer_id": 74651841,
"author": "Burak Serdar",
"author_id": 11923999,
"author_profile": "https://Stackoverflow.com/users/11923999",
"pm_score": 1,
"selected": false,
"text": "fmt.Sprintf"
},
{
"answer_id": 74652394,
"author": "chuckx",
"author_id": 373815,
"author... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17683987/"
] |
74,651,790 | <p>Trying to update the carType value from another component.Updated value only working inside the callFun fucntion. Not able to get outside of the callFun function. I am trying to get the updated value inside callFlag function. But it is not working. So, how to resolve this issue using service.</p>
<p>compone.componen... | [
{
"answer_id": 74652046,
"author": "renaud H",
"author_id": 7032224,
"author_profile": "https://Stackoverflow.com/users/7032224",
"pm_score": 0,
"selected": false,
"text": "export class ChildComponent {\n @Output() $buttonClicked = new EventEmitter<boolean>();\n\n public click(): void ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19099386/"
] |
74,651,872 | <pre><code>useEffect(() => {
const maybeHandler = (event: MouseEvent) => {
menuData.forEach((el) => {
if (el.hasActiveDropdown && event.clientY > 50) {
handleCloseDropDown();
// handleDropDown('0');
}
});
};
document.addEventListener('mouse... | [
{
"answer_id": 74652046,
"author": "renaud H",
"author_id": 7032224,
"author_profile": "https://Stackoverflow.com/users/7032224",
"pm_score": 0,
"selected": false,
"text": "export class ChildComponent {\n @Output() $buttonClicked = new EventEmitter<boolean>();\n\n public click(): void ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17822267/"
] |
74,651,876 | <pre><code>
here is my service method
public Employee updateByEmployeeIdAndFirstName(Long employeeId, String firstName, Employee employeesDetails){
Employee updateEmployee = employeeRepository.findByEmployeeIdAndFirstName(employeeId, firstName).get(0);
if (employeesDetails.getFirstName() != null ) {
... | [
{
"answer_id": 74652337,
"author": "Pekinek",
"author_id": 5198144,
"author_profile": "https://Stackoverflow.com/users/5198144",
"pm_score": 1,
"selected": false,
"text": "Optional.ofNullable(employeesDetails.getEmail()).ifPresent(updateEmployee::setEmail);\n"
},
{
"answer_id": 7... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663370/"
] |
74,651,878 | <p>Let's say I have this model:</p>
<pre><code>public enum State
{
Valid = 1,
Invalid = 2
}
public class Person
{
public string Name { get; set; }
public State state { get; set; }
}
</code></pre>
<p>And this controller action:</p>
<pre><code>[HttpPost]
public object SavePerson([FromBody] Person pe... | [
{
"answer_id": 74652810,
"author": "Ziv Weissman",
"author_id": 4162955,
"author_profile": "https://Stackoverflow.com/users/4162955",
"pm_score": 1,
"selected": false,
"text": " static void Main(string[] args)\n {\n //This should be run on startup code (there are other ways ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16473956/"
] |
74,651,891 | <p>I have a requirement to customize the contributor role at Azure Subscription level, such that, people added to that customized contributor role can NOT view or read the data from the storage account (under that subscription).</p>
<p>This is how i'm doing this:</p>
<p>Step1
<a href="https://i.stack.imgur.com/rgoKE.pn... | [
{
"answer_id": 74652810,
"author": "Ziv Weissman",
"author_id": 4162955,
"author_profile": "https://Stackoverflow.com/users/4162955",
"pm_score": 1,
"selected": false,
"text": " static void Main(string[] args)\n {\n //This should be run on startup code (there are other ways ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1837976/"
] |
74,651,911 | <p>I am having a headache with the error mentioned in the title.
I am using react-native-gifted-charts (<a href="https://www.npmjs.com/package/react-native-gifted-charts/v/1.0.3" rel="nofollow noreferrer">https://www.npmjs.com/package/react-native-gifted-charts/v/1.0.3</a>)
The charts works perfectly in ios but in Andr... | [
{
"answer_id": 74652582,
"author": "JSONCMD",
"author_id": 20629269,
"author_profile": "https://Stackoverflow.com/users/20629269",
"pm_score": 0,
"selected": false,
"text": "npm install react-native-svg-transformer --save \n"
},
{
"answer_id": 74652813,
"author": "Asifiwe Ebe... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663257/"
] |
74,651,918 | <p>I'm trying to create a program with Javascript that prints two random numbers and calculates their sum. It should be really easy, but for some reason I can't get the program to work. I've got the program to print random numbers, but I can't get it to add the numbers together. What am I doing wrong?</p>
<pre><code>
&... | [
{
"answer_id": 74652582,
"author": "JSONCMD",
"author_id": 20629269,
"author_profile": "https://Stackoverflow.com/users/20629269",
"pm_score": 0,
"selected": false,
"text": "npm install react-native-svg-transformer --save \n"
},
{
"answer_id": 74652813,
"author": "Asifiwe Ebe... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663356/"
] |
74,651,923 | <p>the expected out put was</p>
<pre><code>1 1
2 2
3 3
4 4
5 5
</code></pre>
<p>but the output I got is</p>
<pre><code>1
1 2
2 3
3 4
4 5
5
</code></pre>
<pre><code>for num in numlist:
print(num)
print(num,end=' ')
</code></pre>
<p>I tried to execute this python code in python interpreter and got the wrong out... | [
{
"answer_id": 74652047,
"author": "Ita",
"author_id": 20347147,
"author_profile": "https://Stackoverflow.com/users/20347147",
"pm_score": 1,
"selected": false,
"text": "print end print print end end 1st print NEWLINE\n2nd print SPACE 1st print NEWLINE\n2nd print SPACE 1st print NEWLINE\... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663471/"
] |
74,651,930 | <p>I have a table :</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>A</td>
</tr>
<tr>
<td>1</td>
<td>B</td>
</tr>
<tr>
<td>1</td>
<td>C</td>
</tr>
<tr>
<td>2</td>
<td>A</td>
</tr>
<tr>
<td>2</td>
<td>B</td>
</tr>
<tr>
<td>3</... | [
{
"answer_id": 74651983,
"author": "ElapsedSoul",
"author_id": 3053899,
"author_profile": "https://Stackoverflow.com/users/3053899",
"pm_score": 0,
"selected": false,
"text": "exists select id from ${table} a where value = 'A' \nand exists (select 1 from ${table} b where a.id = b.id and ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4416877/"
] |
74,651,950 | <p>I want to initialise and print a 2-D array in two separate functions, but i don't really know if i am doing this correctly.</p>
<p>I wrote 2 functions: <code>int** matrix_initialization(int n, int m)</code> and <code>int print_matrix(int n1, int n2, int **a);</code></p>
<p>In the first function i have to arguments... | [
{
"answer_id": 74652007,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 0,
"selected": false,
"text": "malloc(n * sizeof(n))\n malloc(n * sizeof(int))\n n int sizeof(int) == sizeof(int *) malloc(n * sizeof(in... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20276903/"
] |
74,651,997 | <p>I am trying to get a specific category products by category slug.I have Color model,Product model and product variation model in shop app.</p>
<pre><code>class Colour(models.Model):
title = models.CharField(max_length=100)
color_code = models.CharField(max_length=50,null=True)
</code></pre>
<pre><code>class ... | [
{
"answer_id": 74652007,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 0,
"selected": false,
"text": "malloc(n * sizeof(n))\n malloc(n * sizeof(int))\n n int sizeof(int) == sizeof(int *) malloc(n * sizeof(in... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74651997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20217121/"
] |
74,652,010 | <p>Getting the internal error when i try to import the maven project from my local machine.
<img src="https://i.stack.imgur.com/KjamX.png" alt="Internal error" /></p>
<p>Should import successfully.</p>
| [
{
"answer_id": 74652007,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 0,
"selected": false,
"text": "malloc(n * sizeof(n))\n malloc(n * sizeof(int))\n n int sizeof(int) == sizeof(int *) malloc(n * sizeof(in... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19616469/"
] |
74,652,066 | <p>So I am trying to make a regex match for strings of the form:
<code>"catalog.schema.'tablename'"</code> .</p>
<p>The output I am looking for is just <code>catalog.schema.'tablename'</code> leaving out the quotes at the end position.</p>
<p>Can anyone help me out</p>
<p>I tried to do it with the expression
... | [
{
"answer_id": 74652007,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 0,
"selected": false,
"text": "malloc(n * sizeof(n))\n malloc(n * sizeof(int))\n n int sizeof(int) == sizeof(int *) malloc(n * sizeof(in... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18954455/"
] |
74,652,095 | <p>I've had a Typescript react project I've been working on for the past couple of months. Everything worked fine until yesterday when I run <code>npm audit fix</code> and <code>npm audit fix --force</code> to fix some security errors I honestly did not understand where or what caused them.</p>
<p>That broke my applica... | [
{
"answer_id": 74652268,
"author": "Andrew Shearer",
"author_id": 10688837,
"author_profile": "https://Stackoverflow.com/users/10688837",
"pm_score": 0,
"selected": false,
"text": "\"target\": \"es5\" tsconfig.json {\n \"compilerOptions\": {\n \"target\": \"es2020\",\n // ...\n }... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16018684/"
] |
74,652,100 | <p>So i am creating a javascript searchbar that uses a fetch command to fetch data from a server. This server is not my own and i just used it as a template. This script works fine.But what i want to do is replace the fetch api with my own</p>
<p><a href="https://i.stack.imgur.com/ibMuL.png" rel="nofollow noreferrer">D... | [
{
"answer_id": 74654108,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 0,
"selected": false,
"text": "Raw const url = 'https://gist.githubusercontent.com/UllestReal/09ca3d968dda94535e8fc25b998a6ce5/raw/705e7b335cd24e382... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663572/"
] |
74,652,169 | <p>Just starting to use R and am feeling a bit confused. Suppose I have three columns</p>
<pre><code>data = data.frame(id=c(101, 102, 103),column1=c(2, 4, 9),
column2=c(3, 4, 2), column3=c(5, 15, 7))
</code></pre>
<p>How can I create a new column (e.g., colmean) that is the mean of the two columns cl... | [
{
"answer_id": 74652463,
"author": "Sotos",
"author_id": 5635580,
"author_profile": "https://Stackoverflow.com/users/5635580",
"pm_score": 2,
"selected": false,
"text": "findClosest() findClosest <- function(x, n) {\n x <- sort(x)\n x[seq.int(which.min(diff(x, lag = n - 1L)), len... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8425343/"
] |
74,652,171 | <p>I have i project with speech-to-text in react native, and now the problem in with speech Vloume, how to make average value from this function?</p>
<pre><code> const onSpeechVolumeChanged = (e) => {
console.log(e);
setPitch(e.value);
};
</code></pre>
<p>And the log in the console is:</p>
<pre><code>{&quo... | [
{
"answer_id": 74652463,
"author": "Sotos",
"author_id": 5635580,
"author_profile": "https://Stackoverflow.com/users/5635580",
"pm_score": 2,
"selected": false,
"text": "findClosest() findClosest <- function(x, n) {\n x <- sort(x)\n x[seq.int(which.min(diff(x, lag = n - 1L)), len... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20589275/"
] |
74,652,190 | <p>I'm new to firebase and am trying to search the title of the product using <strong>queryStartingAtValue</strong>.
in my firebase JSON and code below, I have a few levels to travel.
it look like -> /item/(section name: clothing,games etc)/autoID/(product name, price)
I was able to receive the results using for-loo... | [
{
"answer_id": 74657877,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 1,
"selected": false,
"text": "startAt endAt startAfter endAfter equalTo Title Database.database().reference()\n .child(\"item\")\n .qu... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5929213/"
] |
74,652,196 | <p>i am at this error for some hours now, and i cant resolve it by myself.</p>
<p>this is the code:</p>
<pre><code>
</code></pre>
<p>$repeated_entry = Product_Market::where('produto_id', '=', $product->id)
->where('market_id', '=', $market->id)->get();</p>
<pre><code> $repeated_entry_update = Pro... | [
{
"answer_id": 74657877,
"author": "Frank van Puffelen",
"author_id": 209103,
"author_profile": "https://Stackoverflow.com/users/209103",
"pm_score": 1,
"selected": false,
"text": "startAt endAt startAfter endAfter equalTo Title Database.database().reference()\n .child(\"item\")\n .qu... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663667/"
] |
74,652,205 | <p>I'm trying to get google form as json. I get all questions and it's type. I want the validation of the form
I want form validation tooo how to Include form validations
Is it possible to get all validations from google form</p>
<pre><code>fetch(` https://forms.googleapis.com/v1/forms/${id}`,
{ method: 'GET', he... | [
{
"answer_id": 74652283,
"author": "Muhammad Salman",
"author_id": 15715337,
"author_profile": "https://Stackoverflow.com/users/15715337",
"pm_score": 1,
"selected": false,
"text": "GET https://forms.googleapis.com/v1/forms/${id}/questions/${questionId}\nAuthorization: Bearer ${token}\n"... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663757/"
] |
74,652,211 | <pre><code>package webdriverbasic;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Webdriverbasicclass {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","C:\\Users\\Sammy\\Downloads\\chromedriver_... | [
{
"answer_id": 74652283,
"author": "Muhammad Salman",
"author_id": 15715337,
"author_profile": "https://Stackoverflow.com/users/15715337",
"pm_score": 1,
"selected": false,
"text": "GET https://forms.googleapis.com/v1/forms/${id}/questions/${questionId}\nAuthorization: Bearer ${token}\n"... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663571/"
] |
74,652,242 | <p>I've defined a template function that receives std::function. and I want to send a member function. that works fine (example: test2)
How can I rewrite it so std::function receives any number of argument? (test3)</p>
<p>another question - can this be done without the std::bind?</p>
<pre><code>struct Cls
{
int foo... | [
{
"answer_id": 74652495,
"author": "Miles Budnek",
"author_id": 4151599,
"author_profile": "https://Stackoverflow.com/users/4151599",
"pm_score": 4,
"selected": true,
"text": "std::bind std::function test3 std::function template <typename Func, typename... Args>\nvoid test3(Func&& func, ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/595599/"
] |
74,652,258 | <p>I am trying to press a the download on this page</p>
<p><a href="https://data.unwomen.org/data-portal/sdg?annex=All&finic%5B%5D=SUP_1_1_IPL_P&flocat%5B%5D=478&flocat%5B%5D=174&flocat%5B%5D=818&flocat%5B%5D=504&flocat%5B%5D=729&flocat%5B%5D=788&flocat%5B%5D=368&flocat%5B%5D=400&am... | [
{
"answer_id": 74652419,
"author": "AbiSaran",
"author_id": 7671727,
"author_profile": "https://Stackoverflow.com/users/7671727",
"pm_score": 2,
"selected": false,
"text": "driver.get(\"https://data.unwomen.org/data-portal/sdg?annex=All&finic[]=SUP_1_1_IPL_P&flocat[]=478&flocat[]=174&flo... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16727862/"
] |
74,652,269 | <p>I have the multiple sheets in a single workbook.</p>
<p>The first sheet is having summary details:</p>
<p><a href="https://i.stack.imgur.com/6WQ6f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6WQ6f.png" alt="enter image description here" /></a></p>
<p>Other sheets are like details as show below... | [
{
"answer_id": 74652360,
"author": "Jos Woolley",
"author_id": 17007704,
"author_profile": "https://Stackoverflow.com/users/17007704",
"pm_score": 2,
"selected": false,
"text": "=SUMPRODUCT(COUNTIF(INDIRECT(\"'\"&SheetList&\"'!A:A\"),B2)) column A B2 B3 B4"
},
{
"answer_id": 7465... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4268241/"
] |
74,652,275 | <p>A bit lowly a query but here goes:
bash shell script. POSIX, Mint 21</p>
<p>I just want one/any (mp3) file from a directory. As a sample.
In normal execution, a full run, the code would be such</p>
<pre><code>for f in *.mp3 do
#statements
done
</code></pre>
<p>This works fine but if I wanted to sample just one fil... | [
{
"answer_id": 74653883,
"author": "Ljm Dullaart",
"author_id": 6908895,
"author_profile": "https://Stackoverflow.com/users/6908895",
"pm_score": -1,
"selected": false,
"text": "for f in *.mp3 do\n f=$(ls *.mp3|head)\nstatement\n f=$(ls *.mp3|sort -R | tail -1)\n"
},
{
"answer_id... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1065168/"
] |
74,652,332 | <p>I have a list of fasta may be used, but some of them may also not be used, so I hope to use snakemake to index fastq if need</p>
<p>I bulit a yaml file like this</p>
<pre><code># config.yaml
reference_genome:
fa1: "path/to/genome"
fa2: "..."
fa3: "..."
...
</code></pre>
<p>and I writ... | [
{
"answer_id": 74653883,
"author": "Ljm Dullaart",
"author_id": 6908895,
"author_profile": "https://Stackoverflow.com/users/6908895",
"pm_score": -1,
"selected": false,
"text": "for f in *.mp3 do\n f=$(ls *.mp3|head)\nstatement\n f=$(ls *.mp3|sort -R | tail -1)\n"
},
{
"answer_id... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20240835/"
] |
74,652,336 | <p>I have a JavaScript list of objects with rows of varying dynamic fields that I wish to simply.
For an input list:</p>
<pre><code>{ A: a1, B: "b1" },
{ A: a2, B: "b2" },
{ C: c1, D: "d1" },
{ C: c2, D: "d2" }
</code></pre>
<p>I wish the output list to be:</p>
<pre><code>{ A: a1... | [
{
"answer_id": 74652413,
"author": "Andrew Shearer",
"author_id": 10688837,
"author_profile": "https://Stackoverflow.com/users/10688837",
"pm_score": 0,
"selected": false,
"text": ".map() .reduce() for of function convertArray(arr) {\n const result = [];\n let currentObject = {};\n\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663709/"
] |
74,652,346 | <p>I have two tables I need to join these table and there is a possibility that joined table might return duplicate rows but there is column updated date which will be unique so I need to fetch record from these tables and get distinct records from second table</p>
<p>Table-1</p>
<div class="s-table-container">
<table ... | [
{
"answer_id": 74652470,
"author": "learning",
"author_id": 12458846,
"author_profile": "https://Stackoverflow.com/users/12458846",
"pm_score": 3,
"selected": true,
"text": "SELECT a.id, a.accountKey, MAX(b.cdate)\nFROM table1 a\nJOIN table2 b ON a.accountKey = b.accountKey\nGROUP BY a.i... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16406283/"
] |
74,652,349 | <p>I am new in flutter, how to set width and height OutlineButton in Flutter,
i have to try input width and height inside OutlineButton but got some errors.
this is my code :</p>
<pre><code>OutlinedButton(
//width: AppSize.DIMEN_230,
style: OutlinedButton.styleFrom(
side: BorderSide(
width: 2.0, color: Co... | [
{
"answer_id": 74652470,
"author": "learning",
"author_id": 12458846,
"author_profile": "https://Stackoverflow.com/users/12458846",
"pm_score": 3,
"selected": true,
"text": "SELECT a.id, a.accountKey, MAX(b.cdate)\nFROM table1 a\nJOIN table2 b ON a.accountKey = b.accountKey\nGROUP BY a.i... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20388273/"
] |
74,652,361 | <pre><code>function sendMail() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("Pending Tasks");
var lr = sheet.getLastRow();
var range = sheet.getRange(2,1,lr-1,10).getValues();
for(var i = 0; i<range.filter(String).length; i++){
for(var j = 0; j<range[i].... | [
{
"answer_id": 74652661,
"author": "doubleunary",
"author_id": 13045193,
"author_profile": "https://Stackoverflow.com/users/13045193",
"pm_score": 1,
"selected": false,
"text": "for condition Logger.log(range[i],[j]); forEach() function sendMail() {\n const ss = SpreadsheetApp.getActive... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9425257/"
] |
74,652,369 | <p>I have a dataframe in which one column contains day and its time, I want to put that each day and its time in its respective column.</p>
<p>I have put a '$' in each day to either split or use it to put it in its respective column.</p>
<pre><code>import pandas as pd
data = [{'timings' : 'Friday 10 am - 6:30 pm$Satur... | [
{
"answer_id": 74652661,
"author": "doubleunary",
"author_id": 13045193,
"author_profile": "https://Stackoverflow.com/users/13045193",
"pm_score": 1,
"selected": false,
"text": "for condition Logger.log(range[i],[j]); forEach() function sendMail() {\n const ss = SpreadsheetApp.getActive... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20357722/"
] |
74,652,373 | <p>I am working on a project the requirement is to store some encrypted data in the database. What is the preferred fieldtype of Django model for storing encrypted data?</p>
<p>I am currently using CharField, however, I am not sure if this is the best approach. Also, should BinaryField be an option?</p>
| [
{
"answer_id": 74652661,
"author": "doubleunary",
"author_id": 13045193,
"author_profile": "https://Stackoverflow.com/users/13045193",
"pm_score": 1,
"selected": false,
"text": "for condition Logger.log(range[i],[j]); forEach() function sendMail() {\n const ss = SpreadsheetApp.getActive... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12165050/"
] |
74,652,407 | <p>I try to initialise my database in Java by running testdb.sql file</p>
<pre><code>private static Connection con;
private static void initConenction() throws SQLException{
//Getting the connection
String url = "jdbc:mysql://localhost:3306/testDB?allowMultiQueries=true";
final String userName = &... | [
{
"answer_id": 74652620,
"author": "Ivan Dong",
"author_id": 20458097,
"author_profile": "https://Stackoverflow.com/users/20458097",
"pm_score": 0,
"selected": false,
"text": " ScriptRunner sr = new ScriptRunner(con);\n Reader sqlFile = new BufferedReader(new FileReader(Paths.get(\"src/t... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9012992/"
] |
74,652,410 | <p>Here is the HTML code:</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-css lang-css prettyprint-override"><code>.container {
max-width: 120rem;
margin: 0 auto;
padding: 0 3.2rem;
}
.grid {
display: gri... | [
{
"answer_id": 74652490,
"author": "talkkis",
"author_id": 20597903,
"author_profile": "https://Stackoverflow.com/users/20597903",
"pm_score": 0,
"selected": false,
"text": "display: flex; align-items: center margin: 0 auto;"
},
{
"answer_id": 74652500,
"author": "Nick",
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525500/"
] |
74,652,411 | <p><strong>Minimal reproducible code:</strong></p>
<pre class="lang-dart prettyprint-override"><code>void main() async {
final prefs = await SharedPreferences.getInstance();
await prefs.setString('key', null); // Error
}
</code></pre>
<p>How can I set a <code>null</code> value in <a href="https://pub.dev/packages/s... | [
{
"answer_id": 74652490,
"author": "talkkis",
"author_id": 20597903,
"author_profile": "https://Stackoverflow.com/users/20597903",
"pm_score": 0,
"selected": false,
"text": "display: flex; align-items: center margin: 0 auto;"
},
{
"answer_id": 74652500,
"author": "Nick",
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12483095/"
] |
74,652,423 | <p><strong>Example:</strong></p>
<pre><code>n = 5
x = 3.5
Output:
array([3.5, 3.5, 3.5, 3.5, 3.5])
</code></pre>
<p><strong>My code:</strong></p>
<pre><code>import numpy as np
def init_all_x(n, x):
np.all = [x]*n
return np.all
init_all_x(5, 3.5)
</code></pre>
<p><strong>My question:</strong></p>
<p>Why init_all... | [
{
"answer_id": 74652490,
"author": "talkkis",
"author_id": 20597903,
"author_profile": "https://Stackoverflow.com/users/20597903",
"pm_score": 0,
"selected": false,
"text": "display: flex; align-items: center margin: 0 auto;"
},
{
"answer_id": 74652500,
"author": "Nick",
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20422327/"
] |
74,652,466 | <p>I am trying to accomplish the following task using VBA:</p>
<ol>
<li>Rename the word document(.docx) to Zip(.zip) so that I can make changes in xml</li>
<li>extract, Zip content</li>
<li>goto the word folder</li>
<li>Open and edit the document.xml file</li>
<li>Search using the following regular expression:
w:date=&... | [
{
"answer_id": 74655015,
"author": "William Walseth",
"author_id": 901290,
"author_profile": "https://Stackoverflow.com/users/901290",
"pm_score": 0,
"selected": false,
"text": "Set xMetricNames = oDoc.SelectNodes(\"//project/metric_names/metric_name\")\n xMetricNames.removeAll()\n"
}
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6236294/"
] |
74,652,467 | <p>I want something like that</p>
<pre><code> `ifdef N_O > N_I
`define GREATER 1
`else
`define LESSER 1
`endif
</code></pre>
<p>But cannot do. Any solution or reading?</p>
<p>I tried hard to do this but could not do it.</p>
| [
{
"answer_id": 74655015,
"author": "William Walseth",
"author_id": 901290,
"author_profile": "https://Stackoverflow.com/users/901290",
"pm_score": 0,
"selected": false,
"text": "Set xMetricNames = oDoc.SelectNodes(\"//project/metric_names/metric_name\")\n xMetricNames.removeAll()\n"
}
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20225187/"
] |
74,652,493 | <p>the code below displays a list after loading data from a backend, how can I cause the values to be removed from the list and the table to be updated</p>
<p><strong>React Code:</strong></p>
<pre><code>import React, { Component } from "react";
import { fileuploadbolla } from "../../services/file"... | [
{
"answer_id": 74652606,
"author": "Andrew Shearer",
"author_id": 10688837,
"author_profile": "https://Stackoverflow.com/users/10688837",
"pm_score": 1,
"selected": false,
"text": "import React, { useState } from \"react\";\nimport { fileuploadbolla } from \"../../services/file\";\nimpor... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10278268/"
] |
74,652,513 | <p>I have two Objects with unknown keys I want to merge into a new object that has a type and all keys not part of that type should be omitted.</p>
<p>To make a practical example: I have URL query parameters (exposed and editable by the user) and cookie values which I want to merge. I want to omit all unwanted paramete... | [
{
"answer_id": 74654467,
"author": "Romain TAILLANDIER",
"author_id": 2355088,
"author_profile": "https://Stackoverflow.com/users/2355088",
"pm_score": 2,
"selected": true,
"text": "const requestAdditionalParametersKeys = [\"session\", \"searchInput\", \"id\"] as const;\ntype RequestAddi... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3775690/"
] |
74,652,533 | <p>I've started getting to grips with flex and as soon as I think I have a solid understanding and tried to implement it I find it's not working.</p>
<p>The main issue is the <code>justify-content: space-evenly</code> inside my <code>ul</code> isn't taking any effect and I can't see why. From everything I've looked at ... | [
{
"answer_id": 74652596,
"author": "jerry",
"author_id": 20493210,
"author_profile": "https://Stackoverflow.com/users/20493210",
"pm_score": 0,
"selected": false,
"text": "<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-wid... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19127509/"
] |
74,652,567 | <p>Hi is there a way to select a value filtered with multiple parameter with flux language in influx db :
Exemple in sql : select val1 from tab1,tab2,tab3 where val2.tab2>30 and val3.tab>6 .
Is this possible in flux language ? Thanks</p>
<p>For now I only grab every value that I need and I filtered myself on Jav... | [
{
"answer_id": 74652596,
"author": "jerry",
"author_id": 20493210,
"author_profile": "https://Stackoverflow.com/users/20493210",
"pm_score": 0,
"selected": false,
"text": "<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-wid... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664026/"
] |
74,652,569 | <p>I have a modal with my inputs, I'm using Bootstrap modal with jQuery some validation code to validate my form on submit, my problem is that when I close the modal and then I open the modal again the messages from validation still there, so my question is, how can I reset or hide those messages when I close the modal... | [
{
"answer_id": 74652596,
"author": "jerry",
"author_id": 20493210,
"author_profile": "https://Stackoverflow.com/users/20493210",
"pm_score": 0,
"selected": false,
"text": "<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-wid... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8701694/"
] |
74,652,586 | <p>I wanted to create a gene like twisty rotating effect purely with HTML and CSS. I can animate the the whole div to rotate but I couldn't figure out how to make it rotate horizontally gradually from bottom to top. Is this possible through pure HTML and CSS? If it is possible, any ideas how to do this?</p>
| [
{
"answer_id": 74652596,
"author": "jerry",
"author_id": 20493210,
"author_profile": "https://Stackoverflow.com/users/20493210",
"pm_score": 0,
"selected": false,
"text": "<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-wid... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3382461/"
] |
74,652,590 | <p>I have this array of all users:</p>
<pre><code>let allUsers = [
{
id: 1,
name: "Mike"
},
{
id: 2,
name: "John"
},
{
id: 3,
name: "Kim"
},
{
id: 4,
name: "Mike"
}
];
</code></pre>
<p... | [
{
"answer_id": 74652692,
"author": "Layhout",
"author_id": 17308201,
"author_profile": "https://Stackoverflow.com/users/17308201",
"pm_score": 0,
"selected": false,
"text": "let allUsers = [{\n id: 1,\n name: \"Mike\"\n },\n {\n id: 2,\n name: \"John\"\n },\n {\n id: 3... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3924832/"
] |
74,652,597 | <p>In laravel 9 I have table pivot table defined :</p>
<pre><code> Schema::create('article_vote', function (Blueprint $table) {
$table->id();
$table->foreignId('article_id')->references('id')->on('articles')->onUpdate('RESTRICT')->onDelete('CASCADE');
$table->foreignId('v... | [
{
"answer_id": 74652683,
"author": "jrcamatog",
"author_id": 11165788,
"author_profile": "https://Stackoverflow.com/users/11165788",
"pm_score": 0,
"selected": false,
"text": "syncWithoutDetaching attach $vote->articles()->syncWithoutDetaching([$articleId => $data]);\n"
},
{
"ans... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10873713/"
] |
74,652,655 | <p>Error message:</p>
<p><code>/bin/sh: can't open 'usr/local/bin/entrypoint.sh': No such file or directory</code></p>
<p>exited with code 2</p>
<p>This is my DOCKERFILE</p>
<pre class="lang-bash prettyprint-override"><code>FROM node:18-alpine as builder
COPY package*.json .
COPY . /app
RUN npx prisma generate
RUN ya... | [
{
"answer_id": 74652683,
"author": "jrcamatog",
"author_id": 11165788,
"author_profile": "https://Stackoverflow.com/users/11165788",
"pm_score": 0,
"selected": false,
"text": "syncWithoutDetaching attach $vote->articles()->syncWithoutDetaching([$articleId => $data]);\n"
},
{
"ans... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5860306/"
] |
74,652,669 | <p>I want to write a C# code from UML Diagram as shown below. However, I come across this attribute "age: Integer{0<=age<=150}". I will circle for you. May I know what it means? and How can we convert it to C# code?
<a href="https://i.stack.imgur.com/DAtH5.png" rel="nofollow noreferrer"><img src="https:... | [
{
"answer_id": 74653389,
"author": "qwerty_so",
"author_id": 3379653,
"author_profile": "https://Stackoverflow.com/users/3379653",
"pm_score": 2,
"selected": false,
"text": "<constraint> ::= ‘{‘ [ <name> ‘:’ ] <boolean-expression> ‘ }’"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17239329/"
] |
74,652,671 | <p>I have a multi-index data set with 100 cases, and each case has 5 questions. Each question was scored by 2 raters.</p>
<pre><code>case question rater1 rater2
1 1 1 1
1 2 1 0
1 3 1 1
1 4 1 1
1 5 0 0
2 1 0 1... | [
{
"answer_id": 74653055,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\n\ndf %>%\n group_by(case) %>%\n summarize(rater1 = c(rater1, \n sum(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20081864/"
] |
74,652,690 | <p>i need help with my app since iam new to flutter. so i have a button that suppossed to have a text inside it, but when i run my app, the text isnt inside the button, i dont know how to fix this. so here is my app when i run it:</p>
<p><a href="https://i.stack.imgur.com/P36wn.png" rel="nofollow noreferrer"><img src="... | [
{
"answer_id": 74653055,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\n\ndf %>%\n group_by(case) %>%\n summarize(rater1 = c(rater1, \n sum(... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20229067/"
] |
74,652,726 | <p>I have a search bar component Search.jsx</p>
<pre><code>import { useEffect, useState } from 'react'
export default function Search() {
const [query, setQuery] = useState('')
return (
<div className={styles.container}>
<link rel="stylesheet" href="https://fonts.goog... | [
{
"answer_id": 74652860,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 0,
"selected": false,
"text": "Card Search Search Card Search onSubmit query query Card filteredMenus query Card menus"
},
{
"answer_id": ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15913974/"
] |
74,652,727 | <p>I have an array of <code>FormGroup</code>s which all holds one <code>FormControl</code> called <code>checked</code> which is represented as a checkbox input in the template.</p>
<p>This array <code>formGroups$</code> is computed from another <code>Observable</code> called <code>items$</code>.</p>
<pre class="lang-js... | [
{
"answer_id": 74652903,
"author": "snsakib",
"author_id": 9611676,
"author_profile": "https://Stackoverflow.com/users/9611676",
"pm_score": 0,
"selected": false,
"text": "of items$ of formGroups$ from of from formGroups$ items$ from // component.ts\nconstructor(private fb: FormBuilder) ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7987318/"
] |
74,652,761 | <p>I have the following tibble:</p>
<pre><code>df <- tibble(
x = c(5, 5),
Column_1 = c(0.5, 0.5),
Column_2 = c(0.75, 0.75))
</code></pre>
<p>I would like to create two new columns, which are the product of column x and Column_1 and x and Column_2 respectively. These columns should be named ABC_1 and ABC_2.</p>... | [
{
"answer_id": 74652903,
"author": "snsakib",
"author_id": 9611676,
"author_profile": "https://Stackoverflow.com/users/9611676",
"pm_score": 0,
"selected": false,
"text": "of items$ of formGroups$ from of from formGroups$ items$ from // component.ts\nconstructor(private fb: FormBuilder) ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13824985/"
] |
74,652,785 | <p>i have a data set with 37 columns and 230k rows</p>
<p>i am trying using seaborn to histogram every column</p>
<p>i have not yet cleaned my data</p>
<p>here is my code</p>
<pre><code>for i in X.columns:
plt.figure()
ax = sns.histplot(data=df,x=i)
</code></pre>
<p>i got also this <code>File C:\ProgramData\Anaco... | [
{
"answer_id": 74652903,
"author": "snsakib",
"author_id": 9611676,
"author_profile": "https://Stackoverflow.com/users/9611676",
"pm_score": 0,
"selected": false,
"text": "of items$ of formGroups$ from of from formGroups$ items$ from // component.ts\nconstructor(private fb: FormBuilder) ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20110385/"
] |
74,652,847 | <p>wring this batch of code and geting syntax exxor what seems to be the problem
File "", line 2
if color == 1: color_sq =
^
SyntaxError: invalid syntax</p>
<pre><code>def calc_color(data, color=None):
if color == 1: color_sq =
['#dadaebFF','#bcbddcF0','#9e9ac8F0',
... | [
{
"answer_id": 74652903,
"author": "snsakib",
"author_id": 9611676,
"author_profile": "https://Stackoverflow.com/users/9611676",
"pm_score": 0,
"selected": false,
"text": "of items$ of formGroups$ from of from formGroups$ items$ from // component.ts\nconstructor(private fb: FormBuilder) ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20621132/"
] |
74,652,852 | <p>In a spare-time project of mine, I'm implementing a duplex transcoding framework. The most essential functions I'm writing are <code>Read</code> and <code>Write</code> functions, which are to be called on different threads, to exchange data like Unix Pipe/FIFO.</p>
<p>Because they're on different threads, I need to ... | [
{
"answer_id": 74653067,
"author": "doron",
"author_id": 232918,
"author_profile": "https://Stackoverflow.com/users/232918",
"pm_score": 1,
"selected": false,
"text": "join"
},
{
"answer_id": 74672217,
"author": "John Bollinger",
"author_id": 2402272,
"author_profile"... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6230282/"
] |
74,652,858 | <p>my code goes through quite a large number of arrays where everything is sorted so that it is in the right place. It flies 3 times through the input data to sort everything well, which causes empty arrays to appear. I try to delete them with the following code, but in some cases the code leaves me 1 empty array</p>
<... | [
{
"answer_id": 74653067,
"author": "doron",
"author_id": 232918,
"author_profile": "https://Stackoverflow.com/users/232918",
"pm_score": 1,
"selected": false,
"text": "join"
},
{
"answer_id": 74672217,
"author": "John Bollinger",
"author_id": 2402272,
"author_profile"... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13613817/"
] |
74,652,871 | <p>I am trying to access packages outside of the current package using setup.py. My project structure looks like this.</p>
<pre><code>Example1/
|-- submodule1/
| |-- __init__.py
| |-- main/
| |-- __init__.py
| |-- hello.py
| |-- setup.py
|-- submodule2/
| |-- __init__.py
| |-- main/
| ... | [
{
"answer_id": 74678105,
"author": "Ange Loron",
"author_id": 4617824,
"author_profile": "https://Stackoverflow.com/users/4617824",
"pm_score": -1,
"selected": false,
"text": "package_dir={\n 'main': 'main',\n 'utils': '../../utils'\n}\n setup(\n name='sample_package',\n descript... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6014418/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.