qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,313,367 | <p>Im trying to proceed on the next activty from Kotlin to Java it gives me a red line in ".java"
in</p>
<pre><code> val intent = Intent(this, MainActivity::class.java)
startActivity(intent)
</code></pre>
<p>This is my whole code:</p>
<pre><code>package com.heyletscode.artutorial
import android.content.Int... | [
{
"answer_id": 74313498,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 1,
"selected": false,
"text": "onCreate override fun onCreate(savedInstanceState: Bundle?) {\n super.onCreate(savedInstanceState)\n set... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13745390/"
] |
74,313,372 | <p>python for loop "stale element reference: element is not attached to the page document"</p>
<p>here is my code</p>
<pre><code>from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import ... | [
{
"answer_id": 74313538,
"author": "Barry the Platipus",
"author_id": 19475185,
"author_profile": "https://Stackoverflow.com/users/19475185",
"pm_score": 0,
"selected": false,
"text": "[....]\ncontent =[\"listtext1\",\"listtext2\",\"listtext3\",\"listtext4\"]\n\nfor i in content:\n dr... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20147022/"
] |
74,313,402 | <p>My data is URL</p>
<pre><code>https://www.stackoverflow.com/abc/sometihng-herer?&jhdsfj@38736
</code></pre>
<p>Output I am looking is from 3rd occurance of '/' till before '?'</p>
<p>sample output:</p>
<pre><code> /abc/sometihng-herer
</code></pre>
<p>Database is vertica and datatype is long char</p>
| [
{
"answer_id": 74313473,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": true,
"text": "SELECT url, REGEXP_SUBSTR(url, 'https?://[^/]+(/[^?]+)', 1, 1, '', 1) AS path\nFROM yourTable;\n"
},
{
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10466645/"
] |
74,313,470 | <p>i am newly learn javascript, now i am having a serios compare in here.
In one nested array how to compare each array first 2 index, elements of first 4 digit are same to other array elemnts or not?</p>
<p>if array elements are same then will display rest of elemnts for both array in one array.</p>
<p>suppose the cod... | [
{
"answer_id": 74313473,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": true,
"text": "SELECT url, REGEXP_SUBSTR(url, 'https?://[^/]+(/[^?]+)', 1, 1, '', 1) AS path\nFROM yourTable;\n"
},
{
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19983659/"
] |
74,313,524 | <p>We are a team of developers working on an app for one and a half years, with the backend using <code>Firebase</code> and <code>Firestore</code> as <code>cloud database</code>. We have several owners and contributors to this project. Now our <code>Firestore</code> data and user authentication data have been deleted a... | [
{
"answer_id": 74313473,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": true,
"text": "SELECT url, REGEXP_SUBSTR(url, 'https?://[^/]+(/[^?]+)', 1, 1, '', 1) AS path\nFROM yourTable;\n"
},
{
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14186586/"
] |
74,313,612 | <p>I recently learned about the <code>[[noreturn]]</code> attribute and wanted to try and implement it on one of my existing code snippets.</p>
<p>I added the attribute to a void return type function with no <code>return;</code> keyword on it whatsoever. However, I'm getting this error:</p>
<pre><code>[ 17%] Building C... | [
{
"answer_id": 74313663,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 4,
"selected": true,
"text": "Text const void [[noreturn]] std::exit"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19574336/"
] |
74,313,615 | <p>Currently my code, is not too fancy.</p>
<p>A Meeting ID value has to be present for each row. If there is no Meeting Id in meeting object, then return error and stop all process (Meeting Id is the same for each row in the list).</p>
<p>Agenda Item is required, and it cannot be a duplicate value. If missing, or dupl... | [
{
"answer_id": 74362943,
"author": "Rohìt Jíndal",
"author_id": 4116300,
"author_profile": "https://Stackoverflow.com/users/4116300",
"pm_score": 2,
"selected": false,
"text": "MeetingID AgendaItem LegistarID asp.net [{\n MeetingID: 102,\n AgendaItem: 1,\n LegistarID: 74490,\n Title:... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5476615/"
] |
74,313,623 | <p>I want to implement an iterator that produces all the <a href="https://en.wikipedia.org/wiki/Subsequence" rel="nofollow noreferrer">subsequences</a> of an input sequence. Some examples:</p>
<pre><code>subsequences "abc"
["","a","b","ab","c","ac",&... | [
{
"answer_id": 74313979,
"author": "Nikolay Zakirov",
"author_id": 9023490,
"author_profile": "https://Stackoverflow.com/users/9023490",
"pm_score": 1,
"selected": false,
"text": "fn subsequences<A: Copy>(xs: &[A]) -> impl Iterator<Item=impl Iterator<Item=A>+ '_> {\n // return all sub... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1002430/"
] |
74,313,634 | <p>I made a simple code that should reply when someone mentions the bot.</p>
<pre><code>client.on("messageCreate", (message) => {
if (message.content === "<@935849545789763585>" || '<@!935849545789763585>') {
message.channel.send('Hi');
}
});
</code></pre>
<p>But I have a ... | [
{
"answer_id": 74313895,
"author": "Jakye",
"author_id": 10012735,
"author_profile": "https://Stackoverflow.com/users/10012735",
"pm_score": 2,
"selected": false,
"text": "<@935849545789763585> message.content === \"<@935849545789763585>\" || '<@!935849545789763585>'\n OR '<@!93584954578... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15321365/"
] |
74,313,641 | <p>When I read <a href="https://www.dropbox.com/s/lfxzqjqhisc502i/invalid_file.xlsx?dl=0" rel="nofollow noreferrer">this file</a> with pandas, only 15 of the 44 rows are read, seemingly without a system. Cell E31 is set to <code>nan</code>, and I'm unable to find out why.</p>
<p>How to reproduce:</p>
<pre><code>% pip s... | [
{
"answer_id": 74314316,
"author": "Сергей Кох",
"author_id": 18400908,
"author_profile": "https://Stackoverflow.com/users/18400908",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\n\ntest = pd.read_excel(open('invalid_file.xlsx', 'rb'), sheet_name='Sheet1')\nprint(test.t... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14414188/"
] |
74,313,668 | <p>Just trying to tinker with the Dart, a bit.
Here trying to use the Output of the first function ( which is a List) in the second function. but it prints 0, ?</p>
<pre><code>void main() {
print(secondFuncion(firstFuncion()));
}
List firstFuncion() {
List mylist = [];
for (var i = 0; i < 23; i++) {
myli... | [
{
"answer_id": 74314830,
"author": "7eg",
"author_id": 13311722,
"author_profile": "https://Stackoverflow.com/users/13311722",
"pm_score": 0,
"selected": false,
"text": " secondFuncion(List<mylist> b) {\n for (var element in b) {\n return element;\n }\n}\n secondFuncion(List b) {... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11440211/"
] |
74,313,676 | <p>So I was getting my hands-on on the new DALL.E api for Python which has been made public. I was getting the Attribution Error as it was not detecting the Image model in Open ai after running the following code:</p>
<pre><code>response = openai.Image.create(
prompt="a white siamese cat",
n=1,
size=&qu... | [
{
"answer_id": 74313677,
"author": "Usman Afridi",
"author_id": 15430546,
"author_profile": "https://Stackoverflow.com/users/15430546",
"pm_score": 3,
"selected": true,
"text": "pip install --upgrade openai\n"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15430546/"
] |
74,313,698 | <p>I am creating a simple application on Nodejs as a beginner. I am failing to connect nodejs with mongodb atlas. Kindly help me.
I have provided the username, password and clustername respectively.</p>
<pre><code>const express = require("express");
const app = express();
const userRouter = require("./ro... | [
{
"answer_id": 74313677,
"author": "Usman Afridi",
"author_id": 15430546,
"author_profile": "https://Stackoverflow.com/users/15430546",
"pm_score": 3,
"selected": true,
"text": "pip install --upgrade openai\n"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415167/"
] |
74,313,712 | <p>I was reading a spark DF with options below:</p>
<pre><code>testDF = spark.read.format("parquet").option("header", "true") \
.option("mergeSchema", "true").option("inferSchema", "true").load("folderPath/*/*")
</code></pre>
<p>How... | [
{
"answer_id": 74313677,
"author": "Usman Afridi",
"author_id": 15430546,
"author_profile": "https://Stackoverflow.com/users/15430546",
"pm_score": 3,
"selected": true,
"text": "pip install --upgrade openai\n"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260620/"
] |
74,313,715 | <p>I just want to wait for all concurrent HTTP calls completed then make another HTTP request.</p>
<p>here is my code ...</p>
<pre><code>
const observable = requestData.map(x => this.blobService.addNewVideo(x.uniqueName, x.chunk, x.base64BlockId));
from(observable).pipe(mergeAll(5)).subscribe(
(event: HttpEvent<a... | [
{
"answer_id": 74313677,
"author": "Usman Afridi",
"author_id": 15430546,
"author_profile": "https://Stackoverflow.com/users/15430546",
"pm_score": 3,
"selected": true,
"text": "pip install --upgrade openai\n"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19296176/"
] |
74,313,753 | <p>I have iterative numbered values lambdaSample1_1, lambdaSample1_2, lambdaSample1_3.... lambdaSample1_1000.</p>
<h1>1000 random Lambadas for dataset 3</h1>
<p>for (i in 1:numSamples) {</p>
<pre><code># generate ramdomNumber for credible interval
randomNumber <- floor(runif(numSamples, min = 1, max = nrow(mcmcMatr... | [
{
"answer_id": 74313677,
"author": "Usman Afridi",
"author_id": 15430546,
"author_profile": "https://Stackoverflow.com/users/15430546",
"pm_score": 3,
"selected": true,
"text": "pip install --upgrade openai\n"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17192847/"
] |
74,313,762 | <p>Consider the following code block:</p>
<pre><code>class MyException(Exception):
__hash__ = None
try:
raise ExceptionGroup("Foo", [
MyException("Bar")
])
except* Exception:
pass
</code></pre>
<p>The <code>except*</code> should catch any number of exceptions of any kind, th... | [
{
"answer_id": 74313861,
"author": "matszwecja",
"author_id": 9296093,
"author_profile": "https://Stackoverflow.com/users/9296093",
"pm_score": -1,
"selected": false,
"text": "Exception __hash__ class MyInt(int):\n __hash__ = None\n\nd = {}\nd[MyInt(2)] = 2 # TypeError: unhashable typ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11729033/"
] |
74,313,783 | <p>I use VSC to compile and debug a CPP generated test executable. The name of the executable and makefile changes depending on which build I'm debugging, and importantly there is only ever a single executable/makefile in my workspace directory.</p>
<p>I'm wondering if there's a way to simply build/debug the makefile/... | [
{
"answer_id": 74313861,
"author": "matszwecja",
"author_id": 9296093,
"author_profile": "https://Stackoverflow.com/users/9296093",
"pm_score": -1,
"selected": false,
"text": "Exception __hash__ class MyInt(int):\n __hash__ = None\n\nd = {}\nd[MyInt(2)] = 2 # TypeError: unhashable typ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11432928/"
] |
74,313,799 | <p>I want to loop through a dictionary of values that contain protein sequences in letters. The dictionary could be as large as 200,000 keys.</p>
<p>Using a for loop, it takes way too long. Below is my current implementation.</p>
<pre><code>def find_msa_diversity(seq_dict):
"""Find the diversity of ... | [
{
"answer_id": 74313861,
"author": "matszwecja",
"author_id": 9296093,
"author_profile": "https://Stackoverflow.com/users/9296093",
"pm_score": -1,
"selected": false,
"text": "Exception __hash__ class MyInt(int):\n __hash__ = None\n\nd = {}\nd[MyInt(2)] = 2 # TypeError: unhashable typ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13329337/"
] |
74,313,801 | <pre><code>cur.execute("""
CREATE TEMPORARY VIEW bobby_view AS
SELECT heading1, heading2
FROM bobby
WHERE heading2 = %s; """, (variable,))
cur.execute("""
SELECT d1.heading1
FROM bobby_vi... | [
{
"answer_id": 74313861,
"author": "matszwecja",
"author_id": 9296093,
"author_profile": "https://Stackoverflow.com/users/9296093",
"pm_score": -1,
"selected": false,
"text": "Exception __hash__ class MyInt(int):\n __hash__ = None\n\nd = {}\nd[MyInt(2)] = 2 # TypeError: unhashable typ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415241/"
] |
74,313,820 | <p>I receive a JSON in string format which I'm converting to Java Object Class using the Gson library. In that JSON the DateTime field is annotated with <strong>@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")</strong> The original format in which the date is <strong>"creationDate": "2022-10-2... | [
{
"answer_id": 74313861,
"author": "matszwecja",
"author_id": 9296093,
"author_profile": "https://Stackoverflow.com/users/9296093",
"pm_score": -1,
"selected": false,
"text": "Exception __hash__ class MyInt(int):\n __hash__ = None\n\nd = {}\nd[MyInt(2)] = 2 # TypeError: unhashable typ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6825083/"
] |
74,313,829 | <p>I am starting learning "React Three Fiber" with TypeScript,
but when I started my journey, I got stuck with this problem. I've searched a lot on internet but didn't find my answer.</p>
<pre class="lang-js prettyprint-override"><code>import React from "react";
import { Canvas, useFrame } from &quo... | [
{
"answer_id": 74313856,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 1,
"selected": false,
"text": "const meshRef = useRef<HTMLElement>()\n"
},
{
"answer_id": 74314157,
"author": "mlegrix",
"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17975554/"
] |
74,313,834 | <p>I'm creating a simple chat app wherein every chatbubbles will be shown in a RecyclerView, now I noticed that every time ill enter a new data coming from Firebase RealTime Database, the old data's / or let's say the old chat bubbles will disappear and reappear once the newly added data has been displayed. I would lik... | [
{
"answer_id": 74313856,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 1,
"selected": false,
"text": "const meshRef = useRef<HTMLElement>()\n"
},
{
"answer_id": 74314157,
"author": "mlegrix",
"... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19240900/"
] |
74,313,835 | <p>I have an output that contains a high number of words. I want to take these in a list and find their frequency column by column in my data.</p>
<p>For example, my output is with frequencies in the whole data</p>
<pre><code>ich 4
möchte 5
doner 3
und 2
ayran 6
</code></pre>
<p>and my ... | [
{
"answer_id": 74314099,
"author": "KrisAnathema",
"author_id": 3829013,
"author_profile": "https://Stackoverflow.com/users/3829013",
"pm_score": 0,
"selected": false,
"text": "word_count <- data.frame(Y2000 = c(\"word1\", \"word2\", \"ich\", \"ich\", \"word5\", \"und\"),\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17106998/"
] |
74,313,838 | <p>I am trying to add a search input control to the app header in my Flutter web app.</p>
<p>See...</p>
<pre><code>Widget _buildSearchControl() {
return Container(
alignment: Alignment.centerLeft,
color: Colors.white,
padding: EdgeInsets.only(right: 20),
margin: EdgeInsets.all(10),
wid... | [
{
"answer_id": 74314099,
"author": "KrisAnathema",
"author_id": 3829013,
"author_profile": "https://Stackoverflow.com/users/3829013",
"pm_score": 0,
"selected": false,
"text": "word_count <- data.frame(Y2000 = c(\"word1\", \"word2\", \"ich\", \"ich\", \"word5\", \"und\"),\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2868835/"
] |
74,313,894 | <p>Have a csv file with tons of rows, small example:</p>
<pre><code>id,location_id,name,title,email,directorate
1,1, Amy lee,Singer,,
2,2,brad Pitt,Actor,,Production
3,5,Steven Spielberg,Producer,spielberg@my.com,Production
</code></pre>
<p>Need to:</p>
<ul>
<li>change first and last name to uppercase, example, Brad... | [
{
"answer_id": 74314099,
"author": "KrisAnathema",
"author_id": 3829013,
"author_profile": "https://Stackoverflow.com/users/3829013",
"pm_score": 0,
"selected": false,
"text": "word_count <- data.frame(Y2000 = c(\"word1\", \"word2\", \"ich\", \"ich\", \"word5\", \"und\"),\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10009512/"
] |
74,313,909 | <p>I try to implement push notification in android mobile app. Using</p>
<pre><code>cordova-plugin-firebase-messaging
</code></pre>
<p>I can send push notification to android mobile using firebase console , but what happen those are installed apk file , all are receive push notifications, but i want to send to specific... | [
{
"answer_id": 74318458,
"author": "Eric",
"author_id": 749657,
"author_profile": "https://Stackoverflow.com/users/749657",
"pm_score": 0,
"selected": false,
"text": "https://fcm.googleapis.com/fcm/send"
},
{
"answer_id": 74336108,
"author": "Riya Singh",
"author_id": 139... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2484835/"
] |
74,313,923 | <p>the idea is basically the loop takes in input and it runs until I type "quit" but it doesn't work the way I want to and I can't figure out why :( (p.s. im a beginner that came from python pls be kind)</p>
<pre><code>import java.util.Scanner;
class HelloWorld {
static String s1;
public static void m... | [
{
"answer_id": 74318458,
"author": "Eric",
"author_id": 749657,
"author_profile": "https://Stackoverflow.com/users/749657",
"pm_score": 0,
"selected": false,
"text": "https://fcm.googleapis.com/fcm/send"
},
{
"answer_id": 74336108,
"author": "Riya Singh",
"author_id": 139... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415373/"
] |
74,313,941 | <p>I'm trying to create a rule for create/access the FRD data based on authenticated user. But am getting an error where running the <strong><code>Rules Playground</code></strong></p>
<p>What I want is, Users are creating the categories. So Users is able to only read their categories and update those categories.</p>
<p... | [
{
"answer_id": 74318458,
"author": "Eric",
"author_id": 749657,
"author_profile": "https://Stackoverflow.com/users/749657",
"pm_score": 0,
"selected": false,
"text": "https://fcm.googleapis.com/fcm/send"
},
{
"answer_id": 74336108,
"author": "Riya Singh",
"author_id": 139... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1826656/"
] |
74,313,977 | <p>I am creating MERN application and using env file but I am not able to access env variable inside react application , below is my code</p>
<pre><code>import React from 'react';
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Sidebar from './components/sidebar/Sidebar';
im... | [
{
"answer_id": 74318458,
"author": "Eric",
"author_id": 749657,
"author_profile": "https://Stackoverflow.com/users/749657",
"pm_score": 0,
"selected": false,
"text": "https://fcm.googleapis.com/fcm/send"
},
{
"answer_id": 74336108,
"author": "Riya Singh",
"author_id": 139... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6384458/"
] |
74,313,981 | <p>I want to make a function that receive error message string then after some time to disappear, I want to call this function along my application so no need to write the whole code every time I have error response , I tried the code below which works fine but I feel it is still big and can be more short please advice... | [
{
"answer_id": 74314112,
"author": "Park Numb",
"author_id": 19380738,
"author_profile": "https://Stackoverflow.com/users/19380738",
"pm_score": 2,
"selected": true,
"text": "MatSnackBar: @angular/material/snack-bar @Injectable({ providedIn: 'root'})\nexport class ToastrService {\n co... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15749884/"
] |
74,313,986 | <p>I have a generic table in global area and i want to use it in SELECT from. Is this possible or is there a way do this ?</p>
<p>Example Code:</p>
<pre><code>FIELD-SYMBOLS: <gt_data> TYPE STANDARD TABLE.
CLASS-DATA: mo_data TYPE REF TO data.
CREATE DATA mo_data LIKE lt_data.
ASSIGN mo_data->*... | [
{
"answer_id": 74332052,
"author": "phil soady",
"author_id": 1347784,
"author_profile": "https://Stackoverflow.com/users/1347784",
"pm_score": 1,
"selected": false,
"text": "Select from DBTAB where (string_cond).\n"
},
{
"answer_id": 74409243,
"author": "Suncatcher",
"a... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74313986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8483991/"
] |
74,314,037 | <p>I have configured some filters (given below) in web.xml of the tomcat server which were working fine before when we are on log4j1.x.</p>
<pre><code><filter>
<filter-name>newsession</filter-name>
<display-name>newsession</display-name>
<description>newsession</descri... | [
{
"answer_id": 74356279,
"author": "user3441151",
"author_id": 3441151,
"author_profile": "https://Stackoverflow.com/users/3441151",
"pm_score": 2,
"selected": true,
"text": "<Configuration>\n <Appenders>\n <Console name=\"STDOUT\" target=\"SYSTEM_OUT\">\n <PatternLa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3441151/"
] |
74,314,054 | <p>I am trying to not make my code redundant and I would like to know, if in a .updateOne method, when Im passing data to change, if its possible to implement if statement to choose from the data. Here is a situation.</p>
<p>I have my db model:</p>
<pre><code>const depositarySchema = new Schema({
euid: {
ty... | [
{
"answer_id": 74314766,
"author": "Wernfried Domscheit",
"author_id": 3027266,
"author_profile": "https://Stackoverflow.com/users/3027266",
"pm_score": 1,
"selected": true,
"text": "let upd = { \n euid: euid,\n count: dep.count - palletCounter\n};\n\nif (var === 1) {\n upd['euroPa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15990133/"
] |
74,314,062 | <p><img src="https://i.stack.imgur.com/9Mwyd.png" alt="More Explaining picture" /></p>
<p>I WANNA AD AN IF CONDITION IN THE IF THE CONDITION IS TRUE PLACE
LIKE :
IF (G5> 0, IF(G5 > 6, "BIG", "SMALL"), "")</p>
<p><a href="https://i.stack.imgur.com/S0G3q.png" rel="nofollow noreferrer">... | [
{
"answer_id": 74314766,
"author": "Wernfried Domscheit",
"author_id": 3027266,
"author_profile": "https://Stackoverflow.com/users/3027266",
"pm_score": 1,
"selected": true,
"text": "let upd = { \n euid: euid,\n count: dep.count - palletCounter\n};\n\nif (var === 1) {\n upd['euroPa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17381186/"
] |
74,314,108 | <p>I have a PHP page that shows me data from the database. I'm inserting a button that, if pressed, deletes the record. The problem is that if I push the button the action is done on all the records, because I can't uniquely identify the click on the button</p>
<p>some code</p>
<pre><code>foreach ( $associati as $assoc... | [
{
"answer_id": 74314766,
"author": "Wernfried Domscheit",
"author_id": 3027266,
"author_profile": "https://Stackoverflow.com/users/3027266",
"pm_score": 1,
"selected": true,
"text": "let upd = { \n euid: euid,\n count: dep.count - palletCounter\n};\n\nif (var === 1) {\n upd['euroPa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20211382/"
] |
74,314,121 | <p>I have written this code:</p>
<p>In the first step, I read an Excel file that contains the addresses of the buildings as a string.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>LABE</th>
<th>HAUS</th>
<th>Gemeindename</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hasenwinkel</td>
<td>14</td>
<t... | [
{
"answer_id": 74314766,
"author": "Wernfried Domscheit",
"author_id": 3027266,
"author_profile": "https://Stackoverflow.com/users/3027266",
"pm_score": 1,
"selected": true,
"text": "let upd = { \n euid: euid,\n count: dep.count - palletCounter\n};\n\nif (var === 1) {\n upd['euroPa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11332595/"
] |
74,314,139 | <p>I have a python list of touples like this:</p>
<pre><code>touple = [('Northwest Airlines', 93),
('Northwest Airlines', 81),
('Southwest Airlines', 79),
('NorthWestern', 77),
('NorthWestern', 69),
('Southwest Airlines', 69)]
</code></pre>
<p>Several of these items are... | [
{
"answer_id": 74314766,
"author": "Wernfried Domscheit",
"author_id": 3027266,
"author_profile": "https://Stackoverflow.com/users/3027266",
"pm_score": 1,
"selected": true,
"text": "let upd = { \n euid: euid,\n count: dep.count - palletCounter\n};\n\nif (var === 1) {\n upd['euroPa... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4654120/"
] |
74,314,154 | <p>I am trying to run the flutter application on the android studio before now all works perfectly but after I changed my targetSdkVersion to <code>targetSdkVersion 31</code> I started getting this error that says</p>
<pre><code>Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files fo... | [
{
"answer_id": 74314210,
"author": "MrShakila",
"author_id": 19292778,
"author_profile": "https://Stackoverflow.com/users/19292778",
"pm_score": 0,
"selected": false,
"text": "jcenter() jcenter()"
},
{
"answer_id": 74342692,
"author": "YourDeveloper",
"author_id": 2023070... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20230706/"
] |
74,314,173 | <p>Im trying to capture numbers inside a file using AWK, I could capture all, but im not being able to capture those in a certain amount of digits. What im doing wrong?</p>
<p><code>echo -e "$teste" | awk '/_OA/ { match($0,/\[\([:digit:]{4,13}\]/);oa = substr($0,RSTART,RLENGTH);print oa}'</code></p>
<p>File s... | [
{
"answer_id": 74314212,
"author": "Wiktor Stribiżew",
"author_id": 3832970,
"author_profile": "https://Stackoverflow.com/users/3832970",
"pm_score": 1,
"selected": false,
"text": "awk '/_OA/ { match($0,/\\[[[:digit:]]{4,13}]/);print substr($0,RSTART+1,RLENGTH-2)}'\n #!/bin/bash\ns='_OA ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17165376/"
] |
74,314,203 | <p>I want to make a query like this:</p>
<pre><code>Student.objects.filter(id= id).update(name=value)
</code></pre>
<p>And the value comes from the user.</p>
<p>But the problem is that I'm not only to update name but also update some
other information like address or phone number. I don't want to create duplicat... | [
{
"answer_id": 74314212,
"author": "Wiktor Stribiżew",
"author_id": 3832970,
"author_profile": "https://Stackoverflow.com/users/3832970",
"pm_score": 1,
"selected": false,
"text": "awk '/_OA/ { match($0,/\\[[[:digit:]]{4,13}]/);print substr($0,RSTART+1,RLENGTH-2)}'\n #!/bin/bash\ns='_OA ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1033591/"
] |
74,314,213 | <p>I need to use do-while loop for this.
My problem is that when I enter a positive number "5" the output should be 5 4 3 2 1 0 but instead, I get an output of 56543210
And if I enter a negative number "-5" the output should be -5 -4 3- -2 -1 0 but instead, I get an out put of -5-4-3-2-1010
Lastly, ... | [
{
"answer_id": 74314212,
"author": "Wiktor Stribiżew",
"author_id": 3832970,
"author_profile": "https://Stackoverflow.com/users/3832970",
"pm_score": 1,
"selected": false,
"text": "awk '/_OA/ { match($0,/\\[[[:digit:]]{4,13}]/);print substr($0,RSTART+1,RLENGTH-2)}'\n #!/bin/bash\ns='_OA ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415475/"
] |
74,314,227 | <pre><code>int FibonacciArray(int n){
if(n<=2){
return 1;
}
else {
return FibonacciArray(n-1) + FibonacciArray(n-2);
}
}
</code></pre>
<p>Is there a function for counting recursive calls?</p>
| [
{
"answer_id": 74314535,
"author": "Aatif Shaikh",
"author_id": 12703411,
"author_profile": "https://Stackoverflow.com/users/12703411",
"pm_score": 2,
"selected": false,
"text": "int GlobalCount = 0 ;\nint FibonacciArray(int n)\n{\n static int LocalCounter = 0;\n LocalCounter++;\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415578/"
] |
74,314,233 | <p>Currently, my image is center within it's div, but when i make the browser smaller, the image won't move further left to keep center within it's div.</p>
<p><a href="https://i.stack.imgur.com/CQlwh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CQlwh.jpg" alt="enter image description here" /></a>... | [
{
"answer_id": 74314535,
"author": "Aatif Shaikh",
"author_id": 12703411,
"author_profile": "https://Stackoverflow.com/users/12703411",
"pm_score": 2,
"selected": false,
"text": "int GlobalCount = 0 ;\nint FibonacciArray(int n)\n{\n static int LocalCounter = 0;\n LocalCounter++;\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15743242/"
] |
74,314,243 | <p>I'm again stuck with this hopefully simple task.</p>
<p>I have the following data frame:</p>
<pre><code>df <- data.frame(x1 = 1:3,
x2 = 2:4,
x3 = 3:5,
y1 = 1:3,
y2 = 2:4,
y3 = 3:5)
</code></pre>
<p>I now simply wanted to "lo... | [
{
"answer_id": 74314535,
"author": "Aatif Shaikh",
"author_id": 12703411,
"author_profile": "https://Stackoverflow.com/users/12703411",
"pm_score": 2,
"selected": false,
"text": "int GlobalCount = 0 ;\nint FibonacciArray(int n)\n{\n static int LocalCounter = 0;\n LocalCounter++;\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2725773/"
] |
74,314,256 | <p>I am developing my first angular app and now when it has come to navigating on my page with routerLink, it does not work. It loads up with the welcome component, but when I click on a routerLink it sends me to a blank page.</p>
<pre class="lang-js prettyprint-override"><code>import { Component } from "@angular/... | [
{
"answer_id": 74314535,
"author": "Aatif Shaikh",
"author_id": 12703411,
"author_profile": "https://Stackoverflow.com/users/12703411",
"pm_score": 2,
"selected": false,
"text": "int GlobalCount = 0 ;\nint FibonacciArray(int n)\n{\n static int LocalCounter = 0;\n LocalCounter++;\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2631359/"
] |
74,314,294 | <p>I have folders deep inside lists that have well over 5K files in them that need to be split up and moved to archive
I am unable to use get-PnPFolderItem as it returns the dreaded 'The attempted operation is prohibited because it exceeds the list view threshold' error.</p>
<p>I should be able to use get-PnPListItem (... | [
{
"answer_id": 74314535,
"author": "Aatif Shaikh",
"author_id": 12703411,
"author_profile": "https://Stackoverflow.com/users/12703411",
"pm_score": 2,
"selected": false,
"text": "int GlobalCount = 0 ;\nint FibonacciArray(int n)\n{\n static int LocalCounter = 0;\n LocalCounter++;\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415279/"
] |
74,314,308 | <p>It is difficult to find the parent-branch in git ...</p>
<p>My current solution:</p>
<pre><code>git show-branch -a 2>/dev/null \
| grep '\*' \
| grep -v `git rev-parse --abbrev-ref HEAD` \
| head -n1 \
| perl -ple 's/\[[A-Za-z]+-\d+\][^\]]+$//; s/^.*\[([^~^\]]+).*$/$1/'
</code></pre>
<p>Source: <a href="https://s... | [
{
"answer_id": 74316598,
"author": "Adam",
"author_id": 1281548,
"author_profile": "https://Stackoverflow.com/users/1281548",
"pm_score": 2,
"selected": false,
"text": ".git/refs/heads/master"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/633961/"
] |
74,314,327 | <p>Let's say I have these types:</p>
<pre class="lang-js prettyprint-override"><code>interface A {
a: number
b: string
c: string
}
interface B {
a: string
b: string
}
type C = A | B
</code></pre>
<p>I want to get the possible values of the type <code>C</code>. For example</p>
<pre class="lang-js prettyprint... | [
{
"answer_id": 74316598,
"author": "Adam",
"author_id": 1281548,
"author_profile": "https://Stackoverflow.com/users/1281548",
"pm_score": 2,
"selected": false,
"text": ".git/refs/heads/master"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5634526/"
] |
74,314,332 | <p>I need some help with sql.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th>Price1</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>01-09-2020</td>
<td>32</td>
</tr>
<tr>
<td>1</td>
<td>02-09-2020</td>
<td>343</td>
</tr>
<tr>
<td>2</td>
<td>03-09-2020</td>
<td>545... | [
{
"answer_id": 74316598,
"author": "Adam",
"author_id": 1281548,
"author_profile": "https://Stackoverflow.com/users/1281548",
"pm_score": 2,
"selected": false,
"text": ".git/refs/heads/master"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13540991/"
] |
74,314,363 | <p>I have question regarding memory management in c++
In below example is there any memory leakage. If so how to clear memory.
Also defining int by * new is the only option to use and not int num = 25;</p>
<pre><code>int main()
{
for(int i = 0;i < 200;i++)
{
int num = * new int(25);
}
</code></pre>
<p>I tr... | [
{
"answer_id": 74316598,
"author": "Adam",
"author_id": 1281548,
"author_profile": "https://Stackoverflow.com/users/1281548",
"pm_score": 2,
"selected": false,
"text": ".git/refs/heads/master"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415631/"
] |
74,314,369 | <p>I am trying to connect to a sql server with a different username/password combination than on my local account. I know it is valid credentials, since i am able to login through SSMS.</p>
<p>I've tried the following:</p>
<pre><code>connection_string = "DRIVER={SQL Server};SERVER=server;DATABASE=db;UID=username;P... | [
{
"answer_id": 74316598,
"author": "Adam",
"author_id": 1281548,
"author_profile": "https://Stackoverflow.com/users/1281548",
"pm_score": 2,
"selected": false,
"text": ".git/refs/heads/master"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17637412/"
] |
74,314,399 | <p>Suppose I have a bunch of code, the format is like verilog <code>input/output (wire {signal_name}(,)</code>.</p>
<pre><code>input wire aaa,
input bbb, // "wire" can be omitted
input wire ccc // the comma can be omitted
input wire ddd_0,
output ddd_1
output wire ddd_1,
output ... | [
{
"answer_id": 74316598,
"author": "Adam",
"author_id": 1281548,
"author_profile": "https://Stackoverflow.com/users/1281548",
"pm_score": 2,
"selected": false,
"text": ".git/refs/heads/master"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20051585/"
] |
74,314,424 | <p>On my WooCommere shop, when my product is in backorder the Sales badge still shows up on my product. I would like to replace the Sales badge with the Out Of Stock label.</p>
<p>I have this code so far:</p>
<pre><code>add_action( 'woocommerce_before_shop_loop_item_title', 'new_badge', 3 );
function new_... | [
{
"answer_id": 74315040,
"author": "Vipin Singh",
"author_id": 14305064,
"author_profile": "https://Stackoverflow.com/users/14305064",
"pm_score": 0,
"selected": false,
"text": " echo '<span class=\"now_sold\">Now Sold</span>';\n background: #000080;\n\ncolor: #fff;\n\nfont-size: 14px;... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10957635/"
] |
74,314,428 | <p>I have 4 columns such as the ones below (but a total of 50,000 values not shown here):</p>
<pre><code>Date Speed Area Incidents
1/1/2016 6.5 Maly L
1/2/2016 7.7 Maly H
1/3/2016 14 Maly H
...
1/1/2017 5.5 Reet ... | [
{
"answer_id": 74315040,
"author": "Vipin Singh",
"author_id": 14305064,
"author_profile": "https://Stackoverflow.com/users/14305064",
"pm_score": 0,
"selected": false,
"text": " echo '<span class=\"now_sold\">Now Sold</span>';\n background: #000080;\n\ncolor: #fff;\n\nfont-size: 14px;... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20413330/"
] |
74,314,457 | <p>I have some data in mongoDB and i want to group and sum it in object key - value:</p>
<pre><code>{
'_id': '1',
'value': {
A: 1,
B: 2,
C: 3
}
},
{
'_id': '2',
'value': {
B: 2,
C: 3
}
}
</code></pre>
<p>I need to group by keys name and sum the value of ea... | [
{
"answer_id": 74315040,
"author": "Vipin Singh",
"author_id": 14305064,
"author_profile": "https://Stackoverflow.com/users/14305064",
"pm_score": 0,
"selected": false,
"text": " echo '<span class=\"now_sold\">Now Sold</span>';\n background: #000080;\n\ncolor: #fff;\n\nfont-size: 14px;... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415611/"
] |
74,314,510 | <p>I am working on a Nodejs Express project and I keep getting 'Cannot GET /' error on Localhost. This is my server.js file</p>
<pre><code>console.clear();
const express = require("express");
const app = express();
const dbConnect = require("./config/dbConnect");
require("dotenv").config(... | [
{
"answer_id": 74315040,
"author": "Vipin Singh",
"author_id": 14305064,
"author_profile": "https://Stackoverflow.com/users/14305064",
"pm_score": 0,
"selected": false,
"text": " echo '<span class=\"now_sold\">Now Sold</span>';\n background: #000080;\n\ncolor: #fff;\n\nfont-size: 14px;... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19801522/"
] |
74,314,513 | <p>is there a way to import a function from component in ReactJS Hooks?
Like, I have this component and function:</p>
<pre><code>export default const Test(){
const [state, setState] = useState(0);
function TestFnc(){
setState(20)
}
return(
<p>{state}</p>
)
}
</code></pre>
<p>And I wonder how can I use tha... | [
{
"answer_id": 74314636,
"author": "ncpa0cpl",
"author_id": 8907391,
"author_profile": "https://Stackoverflow.com/users/8907391",
"pm_score": 1,
"selected": false,
"text": "const ChildComponent = (props) => {\n return <button onclick={() => props.fn()} />\n}\n\nconst ParentComponent = (... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415758/"
] |
74,314,546 | <p>This is a simple python language code, and I want to know the address of variable a:</p>
<pre class="lang-py prettyprint-override"><code>if __name__ == '__main__':
a = 2
print(a)
print(id(2))
print(id(a))
</code></pre>
<p>The output is:</p>
<pre><code>2
140704200824512
140704200824512
</code></pre>
<... | [
{
"answer_id": 74314625,
"author": "matszwecja",
"author_id": 9296093,
"author_profile": "https://Stackoverflow.com/users/9296093",
"pm_score": 1,
"selected": false,
"text": "id(a) == id(2) id a = 10000\n\na = 10\nb = 10\nfor i in range(4):\n a *= 10\n b *= 10\n print(f\"{id(a) ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415573/"
] |
74,314,548 | <p>For my Lucene Queries I have some preconditions for security reasons.</p>
<pre><code>if isValid()
return build.parse query
else
return null
</code></pre>
<p>I want to replace this <strong><code>return null</code></strong>. I need something like "empty" query, a query thats will nothing do.</p>
<p>Is ther... | [
{
"answer_id": 74316889,
"author": "andrewJames",
"author_id": 12567365,
"author_profile": "https://Stackoverflow.com/users/12567365",
"pm_score": 1,
"selected": false,
"text": "- -anything\n apples -body:anything\n -anything -anything anything NOT -"
},
{
"answer_id": 74352767,
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3290745/"
] |
74,314,557 | <p>With Powershell 7.2 there seems to be a change in how a JSON is deserialized into an object in terms of dates -> instead of string it is now datetime. But I want to have the "old" behavior, i.e. that it is handled as string and NOT datetime.</p>
<p>How can I achieve that when using ConvertFrom-Json in P... | [
{
"answer_id": 74316212,
"author": "iRon",
"author_id": 1701026,
"author_profile": "https://Stackoverflow.com/users/1701026",
"pm_score": 3,
"selected": true,
"text": "#13598 #18460 Invoke-PowerShell function Invoke-PowerShell ($Command) {\n $SerializeOutput = @\"\n `$Output =... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7009990/"
] |
74,314,573 | <p>TypeScript treats errors as <code>unknown</code> which is fair but leads me to writing what I think is ugly code. For example, to handle a particular error that I know has a <code>"code"</code> attribute (but I don't know the class so can't use <code>instanceOf</code>), I have to write this:</p>
<pre class... | [
{
"answer_id": 74314631,
"author": "Clashsoft",
"author_id": 4138801,
"author_profile": "https://Stackoverflow.com/users/4138801",
"pm_score": 1,
"selected": false,
"text": "code } catch (err: any) {\n if (err?.code === 'whatever') {\n console.log(\"Special case for this particular s... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1376848/"
] |
74,314,576 | <p>I have been struggling to create a new column based on the values of certain rows and columns in another dataframe. I have a data frame that looks like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>sample_ID</th>
<th>date</th>
<th>test_result</th>
</tr>
</thead>
<tbody>
<tr>
<td>... | [
{
"answer_id": 74314631,
"author": "Clashsoft",
"author_id": 4138801,
"author_profile": "https://Stackoverflow.com/users/4138801",
"pm_score": 1,
"selected": false,
"text": "code } catch (err: any) {\n if (err?.code === 'whatever') {\n console.log(\"Special case for this particular s... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415510/"
] |
74,314,605 | <p>I am trying to write a function that will take a target number, and a matrix as its parameter, and will return the 'co-ordinates' of the target number. If the target number doesn't exist, (-1, -1) will be returned.</p>
<p>It is assumed there will only be <strong>one</strong> occurrence of the target number.</p>
<p>E... | [
{
"answer_id": 74314739,
"author": "Swifty",
"author_id": 20267366,
"author_profile": "https://Stackoverflow.com/users/20267366",
"pm_score": 3,
"selected": true,
"text": "def find_target(target, matrix):\n for i, row in enumerate(matrix):\n for j, col in enumerate(row):\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20370719/"
] |
74,314,683 | <p>But I'm twisting it slightly, where I don't have a layout but rather a per page component that I'd like to add to the header.</p>
<p>I am getting the following error:
<a href="https://i.stack.imgur.com/G7NOp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G7NOp.png" alt="enter image description he... | [
{
"answer_id": 74314806,
"author": "MarioG8",
"author_id": 13705979,
"author_profile": "https://Stackoverflow.com/users/13705979",
"pm_score": 1,
"selected": false,
"text": "RecoilRoot RecoilRoot import React from 'react';\nimport Account from './Account.jsx';\nimport {\n RecoilRoot,\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19592889/"
] |
74,314,684 | <p>Hej!</p>
<p>My automatized script is running through many month. I'd like to have the monthly plots to show always the window [1:31], actually YYYY-MM-01 to YYYY-MM-31. For all month my script is handling. (And I don't care that some month have no data at the ends, e.g., February.)</p>
<p>Unfortunately, I don't know... | [
{
"answer_id": 74314806,
"author": "MarioG8",
"author_id": 13705979,
"author_profile": "https://Stackoverflow.com/users/13705979",
"pm_score": 1,
"selected": false,
"text": "RecoilRoot RecoilRoot import React from 'react';\nimport Account from './Account.jsx';\nimport {\n RecoilRoot,\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415812/"
] |
74,314,696 | <p>This is a follow-up question from <a href="https://stackoverflow.com/questions/74309067/extract-data-in-subfields-of-multiple-xml-files?noredirect=1#comment131191194_74309067">here</a>. it got lost due to high amount of other topic on this forum. Maybe i presented the question too complicated. Since then I improved ... | [
{
"answer_id": 74314806,
"author": "MarioG8",
"author_id": 13705979,
"author_profile": "https://Stackoverflow.com/users/13705979",
"pm_score": 1,
"selected": false,
"text": "RecoilRoot RecoilRoot import React from 'react';\nimport Account from './Account.jsx';\nimport {\n RecoilRoot,\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3579151/"
] |
74,314,700 | <p>I have one spark DF1 with datatype,</p>
<pre><code>string (nullable = true)
integer (nullable = true)
timestamp (nullable = true)
</code></pre>
<p>And one more spark DF2 (which I created from Pandas DF)</p>
<pre><code>object
int64
object
</code></pre>
<p>Now I need to change the DF2 datatype to match with the Df1 d... | [
{
"answer_id": 74314947,
"author": "Jonathan Lam",
"author_id": 10445333,
"author_profile": "https://Stackoverflow.com/users/10445333",
"pm_score": 0,
"selected": false,
"text": " df2 = spark.createDataFrame(\n df2.rdd, schema=df1.schema\n )\n cast"
},
{
"answer_id": 74... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18962965/"
] |
74,314,745 | <p>I have a table that has columns Name, Series and Season.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Name</th>
<th>series</th>
<th>season</th>
</tr>
</thead>
<tbody>
<tr>
<td>abc</td>
<td>alpha</td>
<td>s1</td>
</tr>
<tr>
<td>abc</td>
<td>alpha</td>
<td>s2</td>
</tr>
<tr>
<td>pqr</td... | [
{
"answer_id": 74314964,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 0,
"selected": false,
"text": "NOT EXISTS SELECT COUNT(*) AS desiredColumnName\nFROM yourtable y\nWHERE series = 'alpha'\nAND NOT EXISTS \n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415890/"
] |
74,314,783 | <p>I want to make a query that searches the table for names of cities and that the result will be names of cities that start with the letter b and then names of cities that contain the letter b.</p>
<pre><code>select *
from tb_city
where name like 'b%' or name like '%b%'
</code></pre>
<p>How can I first get the cities ... | [
{
"answer_id": 74314964,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 0,
"selected": false,
"text": "NOT EXISTS SELECT COUNT(*) AS desiredColumnName\nFROM yourtable y\nWHERE series = 'alpha'\nAND NOT EXISTS \n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13231407/"
] |
74,314,808 | <p>Here is the table data</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">id</th>
<th style="text-align: center;">time</th>
<th style="text-align: right;">amount</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">1</td>
<td style="text-align: center;">2... | [
{
"answer_id": 74314964,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 0,
"selected": false,
"text": "NOT EXISTS SELECT COUNT(*) AS desiredColumnName\nFROM yourtable y\nWHERE series = 'alpha'\nAND NOT EXISTS \n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5383686/"
] |
74,314,858 | <p>I'm having a hard time finding a solution for this and I don't even know if it's possible...</p>
<p>I'm developing a small app where I have 5 types of items with different stats, 7 levels (some have only 3 levels), and I would like to find all the items stats combinaisons.</p>
<p>Ex:</p>
<ul>
<li>Item 1 lvl 1, Item ... | [
{
"answer_id": 74317809,
"author": "lzl",
"author_id": 20312513,
"author_profile": "https://Stackoverflow.com/users/20312513",
"pm_score": -1,
"selected": false,
"text": "public static void main(String[] args) {\n int[] arr = {1, 2, 3, 4, 5};\n int n = arr.length;\n int r = 3;\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11097001/"
] |
74,314,865 | <p>I need to pass optional, runtime parameter to a command in Docker.</p>
<p>The idea is that if PARAM env variable is set when docker is being run - it should be passed to java command as <code>--key VALUE</code> , and when runtime parameter is not set - it shoulddn't pass anything - in particular it shouldn't pass <c... | [
{
"answer_id": 74317809,
"author": "lzl",
"author_id": 20312513,
"author_profile": "https://Stackoverflow.com/users/20312513",
"pm_score": -1,
"selected": false,
"text": "public static void main(String[] args) {\n int[] arr = {1, 2, 3, 4, 5};\n int n = arr.length;\n int r = 3;\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17062755/"
] |
74,314,868 | <p>Are this "*" mean anything like "." or ".." when we define path? I am not getting what those means. Why can't I specify the path in the <strong>usual way</strong>? I wanted to use paths like "../../XYZ" or something like that. But where is this asterisk coming from and what do... | [
{
"answer_id": 74317809,
"author": "lzl",
"author_id": 20312513,
"author_profile": "https://Stackoverflow.com/users/20312513",
"pm_score": -1,
"selected": false,
"text": "public static void main(String[] args) {\n int[] arr = {1, 2, 3, 4, 5};\n int n = arr.length;\n int r = 3;\n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15721461/"
] |
74,314,893 | <p>english is not my first language, so sorry for my bad writting.</p>
<p>i need to optimize an Algorithm, which is written with Python and running on a Raspberry Pi. The clue is, that i need to write the optimized Code as a C-Programm running on a stm32f4.</p>
<p>It is a image-processing algorithm (i know, image-proce... | [
{
"answer_id": 74321406,
"author": "old_timer",
"author_id": 16007,
"author_profile": "https://Stackoverflow.com/users/16007",
"pm_score": 0,
"selected": false,
"text": "void more_fun ( unsigned int );\nvoid fun ( void )\n{\n more_fun(0x12345678);\n}\n\n00000000 <fun>:\n 0: 4801 ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415867/"
] |
74,314,906 | <p>I have rails application which is using sidekiq for background jobs. Recently upgraded ruby from 2.7.0 to 3.1.2 and respectively redis gem automatically updated to '5.0.5'. After this sidekiq(6.4.1) logs throws below error, if i revert to old redis version (4.6.0) in my gemlock, there is no error. Any idea what is t... | [
{
"answer_id": 74356180,
"author": "pmv",
"author_id": 13631843,
"author_profile": "https://Stackoverflow.com/users/13631843",
"pm_score": 4,
"selected": true,
"text": "FalseClass gem 'sidekiq', '~> 6.5.5'"
},
{
"answer_id": 74574896,
"author": "slhck",
"author_id": 43509... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17683683/"
] |
74,314,910 | <p>I'm setting my first steps in dependency injection related programming in an <code>EntityFramework</code> environment, and I have following <code>Exception</code>:</p>
<p><code>Database</code> is of the type <code>Microsoft.EntityFrameworkCore.DatabaseFacade</code>.</p>
<p>The <code>Database.EnsureCreated();</code> ... | [
{
"answer_id": 74315027,
"author": "jmcilhinney",
"author_id": 584183,
"author_profile": "https://Stackoverflow.com/users/584183",
"pm_score": 0,
"selected": false,
"text": "ipAddress Ip"
},
{
"answer_id": 74315617,
"author": "LtObelix",
"author_id": 1926868,
"author_... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4279155/"
] |
74,314,911 | <p>I created these two components:</p>
<p><a href="https://i.stack.imgur.com/fSNqa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fSNqa.png" alt="enter image description here" /></a></p>
<p>After using ng serve i can see only one component in source of the chrome browser:</p>
<p><a href="https://i.s... | [
{
"answer_id": 74315027,
"author": "jmcilhinney",
"author_id": 584183,
"author_profile": "https://Stackoverflow.com/users/584183",
"pm_score": 0,
"selected": false,
"text": "ipAddress Ip"
},
{
"answer_id": 74315617,
"author": "LtObelix",
"author_id": 1926868,
"author_... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2572885/"
] |
74,314,915 | <p>I created a tool in Excel that will extract emails from a particular mailbox.</p>
<pre class="lang-vb prettyprint-override"><code>Sub GetFromOutlook()
Dim OutlookApp as Outlook.Application
Dim OutlookNameSpace As Namespace
Dim Folder as MAPIfolder
Dim OutlookMail As Variant
Dim objowner As Varian... | [
{
"answer_id": 74315027,
"author": "jmcilhinney",
"author_id": 584183,
"author_profile": "https://Stackoverflow.com/users/584183",
"pm_score": 0,
"selected": false,
"text": "ipAddress Ip"
},
{
"answer_id": 74315617,
"author": "LtObelix",
"author_id": 1926868,
"author_... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11013637/"
] |
74,314,930 | <p>There is no <code>simd_packed_float3</code> type in Swift.</p>
<p>Why it's a problem?</p>
<p>Consider this Metal struct:</p>
<pre><code>struct Test{
packed_float3 x;
float y;
};
</code></pre>
<p>First of all, you can't calculate a buffer pointer to address the memory of <code>y</code>, since you can't do th... | [
{
"answer_id": 74315027,
"author": "jmcilhinney",
"author_id": 584183,
"author_profile": "https://Stackoverflow.com/users/584183",
"pm_score": 0,
"selected": false,
"text": "ipAddress Ip"
},
{
"answer_id": 74315617,
"author": "LtObelix",
"author_id": 1926868,
"author_... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16896928/"
] |
74,314,932 | <p>I get a regular non-root logger of the default type:</p>
<pre><code>logger = logging.getLogger('a')
</code></pre>
<p>Now I want to change the type and get a new logger for the same name:</p>
<pre><code>logging.setLoggerClass(type('NewLoggerClass', (logging.Logger,), {}))
logger = logging.getLogger('a')
</code></pre>... | [
{
"answer_id": 74315027,
"author": "jmcilhinney",
"author_id": 584183,
"author_profile": "https://Stackoverflow.com/users/584183",
"pm_score": 0,
"selected": false,
"text": "ipAddress Ip"
},
{
"answer_id": 74315617,
"author": "LtObelix",
"author_id": 1926868,
"author_... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2988730/"
] |
74,314,984 | <p>I wanna make a price alert bot. It's just for the fun btw I dın't have any purpose about it but also I wanna run certain code every n minutes. Anyway the most import thing is I am gettin the bellow error rightnow I hope you guys can guide me and help me about run certain code every n min. Thank you for ur info.</p>
... | [
{
"answer_id": 74315423,
"author": "Annoymous",
"author_id": 14698023,
"author_profile": "https://Stackoverflow.com/users/14698023",
"pm_score": -1,
"selected": false,
"text": "@bot.command(name=\"MY_COMMAND_NAME\")\n @bot.event\nasync def on_ready():\n"
},
{
"answer_id": 7432363... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18472400/"
] |
74,314,985 | <p>I've created a script that should read a file, then find out wether the first line has a vowel in the first word/line, and if it does, it should output only the first 10 words in the list.
If not the first 15. My issue is that the script instead of showing the first 10 lines when I input a file that starts with a vo... | [
{
"answer_id": 74315074,
"author": "choroba",
"author_id": 1030675,
"author_profile": "https://Stackoverflow.com/users/1030675",
"pm_score": 2,
"selected": false,
"text": "# cat file.txt | word=$(head -1 file.txt)\nword=$(head -1 file.txt)\n word=${word%% *} # Remove everything from the... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74314985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400773/"
] |
74,315,005 | <p>I'm trying to write json data from a third-party site on a flater, but I've already tried different options. I get the same problem on the last step.
Please help me very much.</p>
<p>i have this model</p>
<pre><code>class SkinModel {
String src;
String name;
double minprice;
int count;
double avgprice;
d... | [
{
"answer_id": 74315282,
"author": "Ramil Rakhmatullin",
"author_id": 12030753,
"author_profile": "https://Stackoverflow.com/users/12030753",
"pm_score": 0,
"selected": false,
"text": "market_hash_name: String,\nvolume: String,\nprice: String,\n String src;\nString name;\ndouble minprice... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5942436/"
] |
74,315,011 | <p>Need to Merge the second row values with the first row of column C if the rows in columns A&B are null.</p>
<p>DATA:</p>
<pre><code> A B C
12525 1FWE23 1H654D
14654
24798 14654 S56E82
65116 63546 38945
46456 46485 R68R45
AD... | [
{
"answer_id": 74315191,
"author": "DSteman",
"author_id": 11383969,
"author_profile": "https://Stackoverflow.com/users/11383969",
"pm_score": 1,
"selected": false,
"text": "df[\"C\"] = df[\"C\"] + df[\"C\"].shift(-1).fillna(\"\")\n NaN C NaN \"\" A df[df[\"A\"] != \"\"]\n\n>>>\n\n A ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19580067/"
] |
74,315,035 | <p>I have created below workflow expecting github to ask the manual input and then run the rest of steps. However I don't see any button <code>run workflow</code> <a href="https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/" rel="nofollow noreferrer">such-as-this</a>. The wor... | [
{
"answer_id": 74315191,
"author": "DSteman",
"author_id": 11383969,
"author_profile": "https://Stackoverflow.com/users/11383969",
"pm_score": 1,
"selected": false,
"text": "df[\"C\"] = df[\"C\"] + df[\"C\"].shift(-1).fillna(\"\")\n NaN C NaN \"\" A df[df[\"A\"] != \"\"]\n\n>>>\n\n A ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8406398/"
] |
74,315,039 | <p>Here I am trying to fetch all the data from the api using flutter http package. I am getting an error</p>
<p>"type 'int' is not a subtype of type 'String?'"</p>
<p>Here is the link where I am trying to fetch data from</p>
<pre><code>https://wrestlingworld.co/wp-json/wp/v2/posts/128354
</code></pre>
<p>Here... | [
{
"answer_id": 74315226,
"author": "ThanhNguyen",
"author_id": 16992231,
"author_profile": "https://Stackoverflow.com/users/16992231",
"pm_score": 4,
"selected": true,
"text": "String? author int? author"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19890273/"
] |
74,315,084 | <p>I'm working with an API and after I try to clean up the data, I got an array of arrays of arrays:</p>
<pre><code>arr = [[[{name: "john"}],[{name: "jack"}]],[[{name: "joe"}],[{name: "bob"}]]]
</code></pre>
<p>How can I clean this up to something like this:</p>
<pre><code>arr = ... | [
{
"answer_id": 74315102,
"author": "Some random IT boy",
"author_id": 9248718,
"author_profile": "https://Stackoverflow.com/users/9248718",
"pm_score": 0,
"selected": false,
"text": "arr.flat().flat()"
},
{
"answer_id": 74315112,
"author": "jsejcksn",
"author_id": 438273,... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13812691/"
] |
74,315,115 | <p>I am stuck at a problem.</p>
<p>I need to upload a file (a CSV file) to a server by using Delphi. The server have certain requirements that must be followed :</p>
<blockquote>
<ul>
<li>The request must be an HTTP PUT request.</li>
<li>Must contain the Client ID in the URL request, like this : <code>example.com/uploa... | [
{
"answer_id": 74315197,
"author": "Softacom",
"author_id": 15611794,
"author_profile": "https://Stackoverflow.com/users/15611794",
"pm_score": 2,
"selected": true,
"text": "PUT TNetHTTPClient Put() TNetHeaders TNetHeaders TNameValuePair TNameValuePair TNameValuePair TNetHTTPClient Put()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7183251/"
] |
74,315,122 | <p>In my DOCKERFILE I'm running some PowerShell script which creates a custom event log (on Windows Server), then writes an entry. [I should add that I'm currently doing this only for debug purposes.]</p>
<p>The script/command which creates the event log appear to execute without any problems, but an exception is throw... | [
{
"answer_id": 74315197,
"author": "Softacom",
"author_id": 15611794,
"author_profile": "https://Stackoverflow.com/users/15611794",
"pm_score": 2,
"selected": true,
"text": "PUT TNetHTTPClient Put() TNetHeaders TNetHeaders TNameValuePair TNameValuePair TNameValuePair TNetHTTPClient Put()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262892/"
] |
74,315,132 | <p>i currently have a array function that reads in values of user input and I want to print out the array using another function.</p>
<p>this is my code</p>
<p>Function to read in user input and store in 2d array</p>
<pre><code>void readMatrix(){
int arr[3][4];
int *ptr;
for (int i = 0; i < 3; i++)
... | [
{
"answer_id": 74315312,
"author": "Lundin",
"author_id": 584518,
"author_profile": "https://Stackoverflow.com/users/584518",
"pm_score": 3,
"selected": true,
"text": "int arr[3][4]; #include <stdio.h>\n\nvoid readMatrix (int rows, int cols, int arr[rows][cols]){\n for (int i = 0; i <... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415156/"
] |
74,315,170 | <p>How to retrieve an object using multiple parameters in url? Example : 'customer/3/order/1/' or 'customer/<int:customer_pk>/order/<int:pk>/'</p>
<p>Using shell i'm able to get the object like this but i can't seem to do it from the views.</p>
<pre><code>>>> from temp.models import Customer, Order... | [
{
"answer_id": 74316365,
"author": "Mahammadhusain kadiwala",
"author_id": 19205926,
"author_profile": "https://Stackoverflow.com/users/19205926",
"pm_score": 0,
"selected": false,
"text": "queryset = Order.objects.filter(customer_id=self.kwargs[\"customer_pk\"],order_number=self.kwargs[... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19859438/"
] |
74,315,173 | <p>I'm trying to have elements appear when I'm hovering a specific one but I don't know which approach to chose. My project only contains html, css and javascript.</p>
<p><a href="https://i.stack.imgur.com/ODprX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ODprX.png" alt="enter image description h... | [
{
"answer_id": 74315387,
"author": "Aid Hadzic",
"author_id": 5963060,
"author_profile": "https://Stackoverflow.com/users/5963060",
"pm_score": 2,
"selected": true,
"text": "mouseenter mouseleave div large-bubble small-bubble display: none mouseenter mouseleave mouseenter document.getEle... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16844067/"
] |
74,315,174 | <p><strong>Objective:</strong> How to access and assign object type variable value from terraform root config</p>
<p><strong>Code I am trying:</strong></p>
<p>I am using modules in terraform. The following is one module I am using to create a cosmos DB account</p>
<p><strong>child module:</strong></p>
<pre><code>resour... | [
{
"answer_id": 74315243,
"author": "Marko E",
"author_id": 8343484,
"author_profile": "https://Stackoverflow.com/users/8343484",
"pm_score": 2,
"selected": true,
"text": "cosmos_db_config module \"cosmosdb\" { \n source = \"../modules/cosmosdb\"\n account_name = \"test\"\n rg_n... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9375954/"
] |
74,315,177 | <p>I already referred these posts <a href="https://stackoverflow.com/questions/2024954/line-of-best-fit-scatter-plot">here</a> and <a href="https://stackoverflow.com/questions/40941542/using-scikit-learn-linearregression-to-plot-a-linear-fit">here</a> and tried to plot the line of best fit for my linear regression prob... | [
{
"answer_id": 74315328,
"author": "StonedTensor",
"author_id": 6023918,
"author_profile": "https://Stackoverflow.com/users/6023918",
"pm_score": 3,
"selected": true,
"text": "X_test"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10829044/"
] |
74,315,218 | <p>So, I have a data frame that looks like this:</p>
<pre><code>plot <- data.frame(plot=c("A", "A", "A", "B", "B", "C", "C", "C"),
grid= c(1,1,1,2,2,3,3,3),
year1=c(2000,2000,2010,2000,2010,2000,201... | [
{
"answer_id": 74315328,
"author": "StonedTensor",
"author_id": 6023918,
"author_profile": "https://Stackoverflow.com/users/6023918",
"pm_score": 3,
"selected": true,
"text": "X_test"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20165603/"
] |
74,315,227 | <p>Hello I need to advice some formulas on my problem:</p>
<ul>
<li><p>How can I combine two, three or more columns into single one column?</p>
</li>
<li><p>And if in columns are <strong>"empty"</strong> cells I want to skip these cells inside of that single one column.</p>
</li>
</ul>
<p>But be aware! This i... | [
{
"answer_id": 74315288,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 2,
"selected": false,
"text": "E2 =TOCOL(IF(A2:C10=\"\",NA(),A2:C10),3,1)\n =TOCOL(A2:C10,3,1) \"\""
},
{
"answer_id": 74317973,
"author":... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14583736/"
] |
74,315,255 | <p>I've found that I can access a local coming from my root Terraform module in its children Terraform modules.
I thought that a local is scoped to the very module it's declared in.
See: <a href="https://developer.hashicorp.com/terraform/language/values/locals#using-local-values" rel="nofollow noreferrer">https://devel... | [
{
"answer_id": 74315362,
"author": "Alexander Ites",
"author_id": 7425756,
"author_profile": "https://Stackoverflow.com/users/7425756",
"pm_score": -1,
"selected": false,
"text": "resource \"local_file\" \"a_file\" {\n filename = \"${path.module}/file1\"\n content = \"foo!\"\n}\n\noutp... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7425756/"
] |
74,315,271 | <p>Given an array [[1, 7, 3, 8],[3, 2, 9, 4],[4, 3, 2, 1]],
how can I find the sum of its repeating elements? (In this case, the sum would be 10.)</p>
<p>Repeated values are - 1 two times, 3 three times, 2 two times, and 4 two times
So, 1 + 3 + 2 + 4 = 10</p>
<p>Need to solve this problem in the minimum time</p>
<p>The... | [
{
"answer_id": 74315362,
"author": "Alexander Ites",
"author_id": 7425756,
"author_profile": "https://Stackoverflow.com/users/7425756",
"pm_score": -1,
"selected": false,
"text": "resource \"local_file\" \"a_file\" {\n filename = \"${path.module}/file1\"\n content = \"foo!\"\n}\n\noutp... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415827/"
] |
74,315,289 | <p>I have this code:</p>
<pre><code>if(isset($_POST['submit'])) {
$name = $_POST['name'];
$query = mysqli_query($conn, "select name from accounts where name = '{$name}'");
if($query) {
echo "success";
} else {
echo "error";
}
}
?>
<form action="" method=&qu... | [
{
"answer_id": 74315620,
"author": "Tural Rzaxanov",
"author_id": 9922647,
"author_profile": "https://Stackoverflow.com/users/9922647",
"pm_score": -1,
"selected": false,
"text": "1';DROP table accounts where id!='123454321344321\n $name \n//That's a mean it is request variable\n$name = ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74315289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4399890/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.