qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,439,607 | <p>I'm trying to save the summary of a model as a data frame in R. The model is a stepwise regression model using the MASS package. I'm primarily interested in saving the coefficients, their t value and the R-squared of the model.</p>
<p><a href="https://i.stack.imgur.com/737p0.png" rel="nofollow noreferrer"><img src="... | [
{
"answer_id": 74439745,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 1,
"selected": false,
"text": "$ $coefficients $r.squared cbind() model.cars <- lm(mtcars)\n\nsummary.cars <- summary(model.cars)\n\nwant <- cbin... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8730970/"
] |
74,439,608 | <p>So my endpoint is only expecting this schema:</p>
<pre><code>{
A: "number",
B: "number
}
</code></pre>
<p>The sender sends:</p>
<pre><code>{
A: "number",
B: "number,
C: "number
}
</code></pre>
<p>What do I do with <code>C</code>?
What if the sender is my UI, which means t... | [
{
"answer_id": 74439745,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 1,
"selected": false,
"text": "$ $coefficients $r.squared cbind() model.cars <- lm(mtcars)\n\nsummary.cars <- summary(model.cars)\n\nwant <- cbin... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5432156/"
] |
74,439,620 | <p>Data:</p>
<pre><code>import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
data = pd.DataFrame(np.random.normal(size=(15,4)))
#Rename columns
data.set_axis(['Column A', 'Column B', 'Column C', 'Column D'], axis=1, inplace=True)
data
Column A Column B Column C Column D
0 0.786186... | [
{
"answer_id": 74439745,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 1,
"selected": false,
"text": "$ $coefficients $r.squared cbind() model.cars <- lm(mtcars)\n\nsummary.cars <- summary(model.cars)\n\nwant <- cbin... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20188834/"
] |
74,439,647 | <p>Hi i have a txt file with loads of numbers each number is randomly scattered across the file and when i read the file in as a string and try to subdivide it into individual numbers in an array i get the issue of
ie my file contains</p>
<pre><code> 1234
3467
22222
</code></pre>
<p>i didv... | [
{
"answer_id": 74439745,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 1,
"selected": false,
"text": "$ $coefficients $r.squared cbind() model.cars <- lm(mtcars)\n\nsummary.cars <- summary(model.cars)\n\nwant <- cbin... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,439,663 | <p>I want to use data from a list of dictionaries in a string. For example</p>
<pre><code>dict = [{'name':'Matt', 'age':'21'},{'name':'Sally','age':'28'}]
print(f"His name is {??} and he is {??} years old")
</code></pre>
<p>I need to know what to replace the question marks with to make it work.</p>
<p>I hav... | [
{
"answer_id": 74439745,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 1,
"selected": false,
"text": "$ $coefficients $r.squared cbind() model.cars <- lm(mtcars)\n\nsummary.cars <- summary(model.cars)\n\nwant <- cbin... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19722528/"
] |
74,439,665 | <p>I have a basic Web API written in Node.js that writes an object as an HSET to a Redis cache. Both are running in docker containers.</p>
<p>I have a Python script running on the same VM which needs to watch the Redis cache and then run some code when there is a new HSET or a change to a field in the HSET.</p>
<p>I c... | [
{
"answer_id": 74439745,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 1,
"selected": false,
"text": "$ $coefficients $r.squared cbind() model.cars <- lm(mtcars)\n\nsummary.cars <- summary(model.cars)\n\nwant <- cbin... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1624184/"
] |
74,439,712 | <p><a href="https://i.stack.imgur.com/9daiy.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9daiy.gif" alt="enter image description here" /></a></p>
<p>As the GIF above shows, running <code>git log</code> in my WSL2 Ubuntu suddenly became noninteractive. It would show all the logs at once (while the ... | [
{
"answer_id": 74439737,
"author": "Noscere",
"author_id": 10728583,
"author_profile": "https://Stackoverflow.com/users/10728583",
"pm_score": 0,
"selected": false,
"text": "git log git log -n 1 -n 2"
},
{
"answer_id": 74439794,
"author": "ElpieKay",
"author_id": 6330106,... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7783806/"
] |
74,439,722 | <p>I was looking at some code which came with the following short-hand statement</p>
<pre><code>score = ((initialPlayer == player) ? CAPTURE_SCORE : -CAPTURE_SCORE) + recursive_solver(lastMap, initialPlayer, findOpponent(player), 1 + rounds);
</code></pre>
<p>I think that I understand the first portion of the code,</p... | [
{
"answer_id": 74439730,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 3,
"selected": true,
"text": "if(initialPlayer == player)\n score = CAPTURE_SCORE + recursive_solver(lastMap, initialPlayer, findOpponent(player), 1... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14965389/"
] |
74,439,747 | <p>I'm trying to figure out how/if possible to execute a truncate table command in a remote sql server from databricks. I'm using databricks for an ETL script, but it is loading into a remote ms sql server.</p>
<p>The original script truncates the table, and then appends repeatedly to it. It truncates it like:</p>
<pre... | [
{
"answer_id": 74439730,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 3,
"selected": true,
"text": "if(initialPlayer == player)\n score = CAPTURE_SCORE + recursive_solver(lastMap, initialPlayer, findOpponent(player), 1... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19871699/"
] |
74,439,763 | <p>I want to read a text file that contains the following:</p>
<pre><code>--------------------
---+---+---+--+-----
-------------+------
++-----------+------
-+-+----+------+----
--------------------
-----------+-------+
------+----+-------+
+-------------------
--+--------+------+-
</code></pre>
<p>I want to not only ... | [
{
"answer_id": 74439730,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 3,
"selected": true,
"text": "if(initialPlayer == player)\n score = CAPTURE_SCORE + recursive_solver(lastMap, initialPlayer, findOpponent(player), 1... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505729/"
] |
74,439,769 | <p>I am following the example for terra::intersect</p>
<pre><code>library(terra)
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
e <- ext(5.6, 6, 49.55, 49.7)
x <- intersect(v, e)
p <- vect(c("POLYGON ((5.8 49.8, 6 49.9, 6.15 49.8, 6 49.6, 5.8 49.8))",
... | [
{
"answer_id": 74439730,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 3,
"selected": true,
"text": "if(initialPlayer == player)\n score = CAPTURE_SCORE + recursive_solver(lastMap, initialPlayer, findOpponent(player), 1... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5108251/"
] |
74,439,781 | <p>How to Make transparent background on canvas android.?</p>
<p>I want to make a transparent background like this (see picture), does this kind of background use a bitmap?</p>
<p><a href="https://i.stack.imgur.com/gfh3O.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gfh3O.jpg" alt="background like ... | [
{
"answer_id": 74439730,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 3,
"selected": true,
"text": "if(initialPlayer == player)\n score = CAPTURE_SCORE + recursive_solver(lastMap, initialPlayer, findOpponent(player), 1... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13785339/"
] |
74,439,793 | <p>I am using nextcord and I am trying to check if a user has a role when they run a command. I have no idea how to do this so I cannot provide an MRE. I imagine that the code will be something like this:</p>
<pre class="lang-py prettyprint-override"><code>@client.slash_command(name="test")
async def test(int... | [
{
"answer_id": 74448440,
"author": "Sam Shields",
"author_id": 19261069,
"author_profile": "https://Stackoverflow.com/users/19261069",
"pm_score": 1,
"selected": false,
"text": "from nextcord.utils import get\n\nrole = get(ctx.guild.roles, name='search for role by name')\n\nif interactio... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19779047/"
] |
74,439,795 | <p>I have a dataset with varying observations per ID, and these participants are also in different treatment status (Group). I wonder if I can use proc means to quickly calculate the number of participants and visits to clinic per group status by using proc means? Ideally, I can use proc means sum function quickly capt... | [
{
"answer_id": 74448440,
"author": "Sam Shields",
"author_id": 19261069,
"author_profile": "https://Stackoverflow.com/users/19261069",
"pm_score": 1,
"selected": false,
"text": "from nextcord.utils import get\n\nrole = get(ctx.guild.roles, name='search for role by name')\n\nif interactio... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17413705/"
] |
74,439,831 | <blockquote>
<p>Hi,</p>
</blockquote>
<p>I'm trying to build an app using Tailwind and NextJs with some style in SCSS. Everything was working find and I was tweaking some Tailwind class in my components until the app suddenly crashed with this message</p>
<blockquote>
<p>./node_modules/next/dist/build/webpack/loaders/c... | [
{
"answer_id": 74448440,
"author": "Sam Shields",
"author_id": 19261069,
"author_profile": "https://Stackoverflow.com/users/19261069",
"pm_score": 1,
"selected": false,
"text": "from nextcord.utils import get\n\nrole = get(ctx.guild.roles, name='search for role by name')\n\nif interactio... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11951973/"
] |
74,439,839 | <p>I am building a web application, some HTML elements might take some time to be fetched.
So I decided to render the layout of the element, without the data from the backend. But I want to indicate to the user, that the data is loading with a CSS animation. I want it to look like this, but I want the transition of the... | [
{
"answer_id": 74439924,
"author": "Kairav Thakar",
"author_id": 20447312,
"author_profile": "https://Stackoverflow.com/users/20447312",
"pm_score": 0,
"selected": false,
"text": "animation-timing-function animation-timing-function"
},
{
"answer_id": 74440106,
"author": "Atom... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744228/"
] |
74,439,850 | <p>I'm using WordPress with ACF, and I need to use a value of custom fields for CSS. For example, if the value of ACF 'Name' is YES, then CSS style just background around that field, if the value of the field is NO, then the background will be red.</p>
| [
{
"answer_id": 74440842,
"author": "Monzur Alam",
"author_id": 11748128,
"author_profile": "https://Stackoverflow.com/users/11748128",
"pm_score": 1,
"selected": false,
"text": "<?php\n// Get field data\n$data = get_field('wifi');\nif( 'yes' == $data ){\n ?>\n <style>\n .ent... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9214388/"
] |
74,439,916 | <p>I am currently trying to add a delete and edit button on each row of a table, I currently am able to make the buttons run the functions just fine but the big issue i am having is that I cannot for the life of me figure out how to get the id of that row and make it into a variable for me to plug into the function.`</... | [
{
"answer_id": 74439959,
"author": "Franco Gabriel",
"author_id": 19499461,
"author_profile": "https://Stackoverflow.com/users/19499461",
"pm_score": -1,
"selected": true,
"text": "onClick={() => deletePet(pet.id)} function deletePet(id) {\n fetch(\"http://localhost:3001/api?act=delet... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14297891/"
] |
74,439,994 | <p>I have a function that takes data from a 2D array and stores it in a Hashmap. I just want to know that how can I input a 2D int array correctly in my main function. Here is what I have so far:</p>
<pre><code>public class Sorted {
public static void countSort(List<List<Integer>> inputData) {
... | [
{
"answer_id": 74439959,
"author": "Franco Gabriel",
"author_id": 19499461,
"author_profile": "https://Stackoverflow.com/users/19499461",
"pm_score": -1,
"selected": true,
"text": "onClick={() => deletePet(pet.id)} function deletePet(id) {\n fetch(\"http://localhost:3001/api?act=delet... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18984687/"
] |
74,439,998 | <p>I am trying to achieve a loop with the condition but no luck yet.
Just trying if host name is A then add 1.1.1.1 ip address in commands and
if host name of the device is B then add 2.2.2.2 ip address.</p>
<p>Can you please help.</p>
<pre><code> - name: logs
ios_command:
commands:
... | [
{
"answer_id": 74439959,
"author": "Franco Gabriel",
"author_id": 19499461,
"author_profile": "https://Stackoverflow.com/users/19499461",
"pm_score": -1,
"selected": true,
"text": "onClick={() => deletePet(pet.id)} function deletePet(id) {\n fetch(\"http://localhost:3001/api?act=delet... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74439998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11634220/"
] |
74,440,014 | <p>Let's say I have table A with an alphanumeric string primary key. The code used to create the table and how the table looks are shown below.</p>
<pre><code>CREATE TABLE A
(
ID CHAR(7) NOT NULL,
...
CONSTRAINT PK_A PRIMARY KEY (ID)
)
</code></pre>
<pre><code>| ID | ... |
| -------- | -------- ... | [
{
"answer_id": 74440105,
"author": "Parth M. Dave",
"author_id": 12119351,
"author_profile": "https://Stackoverflow.com/users/12119351",
"pm_score": -1,
"selected": false,
"text": "Insert into stminternal values(1,'C',6,0)\n UPDATE stminternal SET LASTNO=2 WHERE CODE=1\n"
},
{
"a... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505744/"
] |
74,440,023 | <p>I was taking a lesson on Udemy about inputs and dropdown buttons for bootstrap. The lesson was well until I decided to try and make a simple selection of albums for one of my favorite artists. The buttons separate from each other the moment I try getting them to the center underneath the photo of the artist. Can som... | [
{
"answer_id": 74441612,
"author": "Kairav Thakar",
"author_id": 20447312,
"author_profile": "https://Stackoverflow.com/users/20447312",
"pm_score": 1,
"selected": false,
"text": "<div class=\"input-group justify-content-center\">\n <button class=\"btn btn-dark m-0\">Bad Bunny Albums<... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17391992/"
] |
74,440,043 | <p>EDIT: the original title of this question was '<strong>Unable to multiply two python arrays together</strong>',and the corresponding question is below. The error arose from the fact that list2 contained data that had implicit units of 'astropy.Time' and each element in the list was a 'time object'. The answer provid... | [
{
"answer_id": 74440085,
"author": "R Walser",
"author_id": 17889492,
"author_profile": "https://Stackoverflow.com/users/17889492",
"pm_score": 0,
"selected": false,
"text": "np.outer import numpy as np \nlist1 = np.ones((5,))\nlist2 = np.linspace(-2,2,5)\nrl = np.outer(list1, list2)\nrl... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505964/"
] |
74,440,063 | <p>I enabled the skip login, wherein I am not able to get the email of the account I was logged in to.</p>
<p>How can I still get the email if skip login is enabled in the second launch of the app?</p>
| [
{
"answer_id": 74441156,
"author": "Priyanka Singhal",
"author_id": 9148371,
"author_profile": "https://Stackoverflow.com/users/9148371",
"pm_score": 0,
"selected": false,
"text": "AppPreferences.INSTANCE.initAppPreferences(ActivityName.this);\n public enum AppPreferences {\nINSTANCE;\np... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506025/"
] |
74,440,090 | <p>How can i put the number after calculated on the text view??
i can share more files if needed</p>
<pre><code>
fun calcularIdade() {
val editTextHello = findViewById<TextInputEditText>(R.id.Date)
var num= Integer.parseInt(editTextHello.toString())
num = 2022-num
Toast.makeTex... | [
{
"answer_id": 74440873,
"author": "Kunu",
"author_id": 3022836,
"author_profile": "https://Stackoverflow.com/users/3022836",
"pm_score": 1,
"selected": false,
"text": "var num= Integer.parseInt(editTextHello.text.toString()) var num= Integer.parseInt(editTextHello.toString())"
},
{
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505991/"
] |
74,440,092 | <p>I'm a noob, learning via Datacamp (which is really annoying and nitpicky... I could've sworn elements started from 0, counting the first element in the list as 0???? This is the problem.</p>
<p>"Create downstairs again, as the first 6 elements of areas. This time, simplify the slicing by omitting the begin inde... | [
{
"answer_id": 74440873,
"author": "Kunu",
"author_id": 3022836,
"author_profile": "https://Stackoverflow.com/users/3022836",
"pm_score": 1,
"selected": false,
"text": "var num= Integer.parseInt(editTextHello.text.toString()) var num= Integer.parseInt(editTextHello.toString())"
},
{
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506028/"
] |
74,440,131 | <p>I am new to rails and am trying to build a blog app where only signed in users can see the username of the person who created a post, however I keep getting this error NoMethodError in Posts#index undefined method `username' for nil:NilClass</p>
<p><a href="https://i.stack.imgur.com/xpNAe.png" rel="nofollow norefer... | [
{
"answer_id": 74440725,
"author": "Alok Swain",
"author_id": 301419,
"author_profile": "https://Stackoverflow.com/users/301419",
"pm_score": 0,
"selected": false,
"text": "Post post.user username nil"
}
] | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20170519/"
] |
74,440,152 | <p>I am tasked with creating two functions one that creates a list of 10 random integers and the other is supposed to find the highest number in the list using a loop (without using the max option). I am having difficulty with the second function (getHighest). Nothing is being returned/printed and I am also not getting... | [
{
"answer_id": 74440725,
"author": "Alok Swain",
"author_id": 301419,
"author_profile": "https://Stackoverflow.com/users/301419",
"pm_score": 0,
"selected": false,
"text": "Post post.user username nil"
}
] | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506015/"
] |
74,440,160 | <p>i want to write a python code to do the categorisation of store names(chemist,restaurent etc) automatically.</p>
<p>if the store name is Anand Medical store it should fall in chemist cat., if it is 7 General store it should fall in General store cat.</p>
| [
{
"answer_id": 74440725,
"author": "Alok Swain",
"author_id": 301419,
"author_profile": "https://Stackoverflow.com/users/301419",
"pm_score": 0,
"selected": false,
"text": "Post post.user username nil"
}
] | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506120/"
] |
74,440,193 | <p>I have a multipart form on my website which contains a few separate 'information popups'.</p>
<p>In this stripped down example, I only included two of the popups... the 'Privacy Policy' popup and the 'Terms and Conditions' popup.</p>
<p>I am trying to 'blur' or 'fade' everything except the popups, when they are indi... | [
{
"answer_id": 74441196,
"author": "Saad1430",
"author_id": 19199222,
"author_profile": "https://Stackoverflow.com/users/19199222",
"pm_score": 2,
"selected": true,
"text": ".blurry{\n filter: blur(5px);\n }\n <!DOCTYPE html>\n\n<head>\n\n <meta name=\"viewport\" content=\"width=dev... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8322896/"
] |
74,440,207 | <p>Please see the below <code>Makefile</code>:</p>
<pre><code>SHELL=/bin/bash -euo pipefail
REPO_ROOT = $(shell pwd)
export VIRTUAL_ENV := ${REPO_ROOT}/venv
# bin = POSIX, Scripts = Windows
export PATH := ${VIRTUAL_ENV}/bin:${VIRTUAL_ENV}/Scripts:${PATH}
show-python: ## Show path to python and version
@echo -n... | [
{
"answer_id": 74440942,
"author": "Beta",
"author_id": 128940,
"author_profile": "https://Stackoverflow.com/users/128940",
"pm_score": 1,
"selected": false,
"text": "export export fork export"
},
{
"answer_id": 74451199,
"author": "Intrastellar Explorer",
"author_id": 11... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11163122/"
] |
74,440,236 | <p>I am very new to using React, but my gut tells me this concept has come up already and there are better tools or methods of dealing with it than what I used. I want to have a list of buttons to choose from, and when one is clicked, to display that menu and remove the other buttons. My current solution is to have a O... | [
{
"answer_id": 74440942,
"author": "Beta",
"author_id": 128940,
"author_profile": "https://Stackoverflow.com/users/128940",
"pm_score": 1,
"selected": false,
"text": "export export fork export"
},
{
"answer_id": 74451199,
"author": "Intrastellar Explorer",
"author_id": 11... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4552258/"
] |
74,440,312 | <p>i have a screen file let say <code>screenA.blade.php</code>. inside this file, i want call a constant file that store some of string let say <code>constant.js</code>.</p>
<p>is this possible?</p>
<p>this is what i have inside <code>screenA.blade.php</code></p>
<pre><code><head>
<script>
... | [
{
"answer_id": 74440942,
"author": "Beta",
"author_id": 128940,
"author_profile": "https://Stackoverflow.com/users/128940",
"pm_score": 1,
"selected": false,
"text": "export export fork export"
},
{
"answer_id": 74451199,
"author": "Intrastellar Explorer",
"author_id": 11... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20195612/"
] |
74,440,338 | <p>I don't know how to get data and fill into my word template. It's actually a long list, and I need to fill it on my table on word document. Am I doing it right? Here is my code:</p>
<p><em>views.py</em></p>
<pre><code>def save_sample_details(request):
sample = SampleList.objects.all()
doc = DocxTemplate(&quo... | [
{
"answer_id": 74440967,
"author": "pzutils",
"author_id": 13812770,
"author_profile": "https://Stackoverflow.com/users/13812770",
"pm_score": 2,
"selected": false,
"text": "SampleList SampleList.objects.all() QuerySet SampleList sample = SampleList.objects.get(id=1) QuerySet sample = Sa... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12998295/"
] |
74,440,357 | <p>I have an order as <code>ORDER_1</code> which start from <code>MFG_1</code> and goes to <code>PORT_B</code>. Order moves via different location and in between at some locations it goes through processing AND MAINTENANCE.</p>
<p>Here in this example it goes into 7 Shipments. Shipment Mode is PROCESS if it stays at sa... | [
{
"answer_id": 74441774,
"author": "d r",
"author_id": 19023353,
"author_profile": "https://Stackoverflow.com/users/19023353",
"pm_score": 2,
"selected": false,
"text": "WITH\n tbl AS\n (\n Select 'MFG_1' \"SHIPMENT_SOURCE_LOCATION\", 'PORT_B' \"SHIPMENT_DESTINATION_... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4693084/"
] |
74,440,408 | <p>I have an array with six values in it {1, 2, 3, 4, 5, 6}.
I have been able to successfully push the values into a stack using a for loop. I am supposed to also write a for loop and pop each value from the stack until there is only one left. I can't find an example of it anywhere. Help, please?</p>
<pre><code>int[] n... | [
{
"answer_id": 74440451,
"author": "vivek nuna",
"author_id": 6527049,
"author_profile": "https://Stackoverflow.com/users/6527049",
"pm_score": 0,
"selected": false,
"text": "int count = myStack.Count;\nfor (int i = 1; i < count; i++)\n{\n Console.WriteLine(\"The value popped from the... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16276238/"
] |
74,440,422 | <p>I am trying to stop some behaviour based on a condition if a mouse is hovering over a particular react component in my app.</p>
<p>I can only find old answers referencing jQuery and JS vanilla. Is there another way to do this? Or is it not acceptable?</p>
<p>Here is the component I interested in determining if the m... | [
{
"answer_id": 74440493,
"author": "John Li",
"author_id": 20436957,
"author_profile": "https://Stackoverflow.com/users/20436957",
"pm_score": 1,
"selected": false,
"text": "onClick <Component\nonMouseEnter={handleSomething}\nonMouseLeave={handleSomething}\n/>\n"
},
{
"answer_id"... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13831283/"
] |
74,440,466 | <p>Given the following df:</p>
<pre><code> word1 word2 distance
mango ola 25
mango johnkoo 33
apple ola 25
apple johnkoo 0
</code></pre>
<p>I find the two largest values of distance per group in the following way:</p>
<pre><code>res = df.groupby(['word1'])['dis... | [
{
"answer_id": 74440526,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 2,
"selected": false,
"text": "(df.sort_values('distance',ascending=False)\n .groupby('word1').head(2).set_index(['word1','word2'])['distance'])\nOu... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8176763/"
] |
74,440,469 | <p>I am trying to identify which groups in a column contain a specific sequence length of non-zero numbers. In the basic example below, where the goal is the find the groups with the a sequence length of 5, only group <code>b</code> would be the correct.</p>
<pre class="lang-r prettyprint-override"><code>set.seed(123)
... | [
{
"answer_id": 74440527,
"author": "Ronak Shah",
"author_id": 3962914,
"author_profile": "https://Stackoverflow.com/users/3962914",
"pm_score": 3,
"selected": true,
"text": "rle library(dplyr)\n\nfind_groups <- function(x, n) {\n tmp <- rle(x != 0)\n any(tmp$lengths[tmp$values] >= n)\n... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6168956/"
] |
74,440,510 | <p>I have a Sprint boot based Java server that exposes REST endpoints. I need to create documentation for external customers on the endpoints. I'm not a fan of the Swagger generated docs. I'd like to be able to generate documentation like the Stripe API's : <a href="https://stripe.com/docs/api" rel="nofollow noreferrer... | [
{
"answer_id": 74440527,
"author": "Ronak Shah",
"author_id": 3962914,
"author_profile": "https://Stackoverflow.com/users/3962914",
"pm_score": 3,
"selected": true,
"text": "rle library(dplyr)\n\nfind_groups <- function(x, n) {\n tmp <- rle(x != 0)\n any(tmp$lengths[tmp$values] >= n)\n... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/235041/"
] |
74,440,512 | <p>I have made an app that fetches some data by API.</p>
<p>In my emulator, the app fetches data perfectly and shows the data correctly too.
But whenever I build an APK and install it on my phone the data doesn't show up.</p>
<p>Why is it happening? In the emulator, it's works.</p>
<p>For fetching data, I used future b... | [
{
"answer_id": 74440527,
"author": "Ronak Shah",
"author_id": 3962914,
"author_profile": "https://Stackoverflow.com/users/3962914",
"pm_score": 3,
"selected": true,
"text": "rle library(dplyr)\n\nfind_groups <- function(x, n) {\n tmp <- rle(x != 0)\n any(tmp$lengths[tmp$values] >= n)\n... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7597207/"
] |
74,440,522 | <p>I have an S3-hosted static website and a Cloud Front distribution. THere is an A record in Route 53 pointing to the Cloud Front distribution. When I created the distribution, I accepted the default setting for the certificate. That is, I did not enter a certificate ID or request a certificate. When I attempt to brow... | [
{
"answer_id": 74441052,
"author": "dave_thompson_085",
"author_id": 2868801,
"author_profile": "https://Stackoverflow.com/users/2868801",
"pm_score": 2,
"selected": true,
"text": "curl -v https://host echo Q | openssl s_client -connect host:443 -servername host Server certificate / subj... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14442297/"
] |
74,440,532 | <p>Im having a problem using an Api which i have a List in. When i try to show, it shows like
<code>[Instance of 'Source']</code> on screen</p>
<p>i had a problem like that with others data, but i was able to use a second source of call, like</p>
<p><code>finalApi![widget.index].aspect.name</code></p>
<p>but this one i... | [
{
"answer_id": 74441052,
"author": "dave_thompson_085",
"author_id": 2868801,
"author_profile": "https://Stackoverflow.com/users/2868801",
"pm_score": 2,
"selected": true,
"text": "curl -v https://host echo Q | openssl s_client -connect host:443 -servername host Server certificate / subj... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20187271/"
] |
74,440,536 | <p>Send mail with php mail() function.</p>
<p>Please review my code. It is not sending mail and the landing page is not being called. I have tested with another script to send mail on my host and it is working fine.</p>
<pre><code><?php
> if (isset($_POST['submit'])) {
>
> $name=$_POST['name'];
> ... | [
{
"answer_id": 74441052,
"author": "dave_thompson_085",
"author_id": 2868801,
"author_profile": "https://Stackoverflow.com/users/2868801",
"pm_score": 2,
"selected": true,
"text": "curl -v https://host echo Q | openssl s_client -connect host:443 -servername host Server certificate / subj... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20403674/"
] |
74,440,550 | <p>Today, I tried starting a new project using JHipster. My environment includes:</p>
<pre><code>Windows 10 22H2 build 19045.2251 (64 bit)
OpenJDK Runtime Environment Temurin-16.0.2+7
node 16.17.0
npm 8.19.1
Gradle 7.5.1
MariaDB 10.6.8
Chrome 107.0.5304.107
</code></pre>
<p>Project configuration file (myapp.jh) is:</p>... | [
{
"answer_id": 74451931,
"author": "Matt Raible",
"author_id": 65681,
"author_profile": "https://Stackoverflow.com/users/65681",
"pm_score": 1,
"selected": false,
"text": "openjdk 17.0.5 2022-10-18\nOpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8)\nOpenJDK 64-Bit Server VM T... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9035446/"
] |
74,440,582 | <p>I was able to encrypt the password using <code>CryptoJS</code> library in Angular project. And want to implement same encryption using <code>java</code>. Can any one suggest the best approach?.</p>
<p><strong>Below is with Angular <code>CryptoJS</code> library implementation</strong></p>
<pre><code>let hash = Crypto... | [
{
"answer_id": 74440625,
"author": "Joma",
"author_id": 3158594,
"author_profile": "https://Stackoverflow.com/users/3158594",
"pm_score": 0,
"selected": false,
"text": "let hash = CryptoJS.SHA256(\"grape\");\nlet passBase64 = CryptoJS.enc.Base64.stringify(hash);\nconsole.log(passBase64)\... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4376984/"
] |
74,440,583 | <p>RDF IRI such as:</p>
<ul>
<li><a href="https://www.w3.org/1999/02/22-rdf-syntax-ns" rel="nofollow noreferrer">https://www.w3.org/1999/02/22-rdf-syntax-ns</a></li>
<li><a href="https://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_terms.ttl" rel="nofollow noreferrer">https://www.dublincore.org/... | [
{
"answer_id": 74491080,
"author": "chenkun",
"author_id": 19464739,
"author_profile": "https://Stackoverflow.com/users/19464739",
"pm_score": 1,
"selected": true,
"text": "HTTP RDF IRI javascript"
}
] | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19464739/"
] |
74,440,616 | <p>My problem is related to Angular <code>@Input()</code> decorator, as when I am using this decorator, typescript throwing error, not when using in regular code.</p>
<p>In my <code>child.component.ts</code> file I am declaring this decorator to get props from parent component :</p>
<pre><code>@Input() customColumns: {... | [
{
"answer_id": 74440769,
"author": "Dinuka Silva",
"author_id": 20457576,
"author_profile": "https://Stackoverflow.com/users/20457576",
"pm_score": 1,
"selected": false,
"text": "export class CustomColumns {\nconstructor(\npublic name?: string,\npublic index?: number,\npublic type?: 'ico... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14610912/"
] |
74,440,629 | <p>I am trying to fetch User from my own API which needs a token (i can store the token in localStorage or in Cookies).
As there is no localStorage access when using server side rendering, i have to use cookies. But the cookie is undefined in the server. I tried several NPM packages.</p>
<p>I just want to fetch the use... | [
{
"answer_id": 74641989,
"author": "Nicolai Lissau",
"author_id": 1116508,
"author_profile": "https://Stackoverflow.com/users/1116508",
"pm_score": 0,
"selected": false,
"text": "next/headers import axios from \"axios\";\nimport React from \"react\";\nimport { cookies } from 'next/header... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16690055/"
] |
74,440,632 | <p>I have a png image of a person's head when I hover on it I want the head to get white outline about 5px I tried to use</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code> img... | [
{
"answer_id": 74641989,
"author": "Nicolai Lissau",
"author_id": 1116508,
"author_profile": "https://Stackoverflow.com/users/1116508",
"pm_score": 0,
"selected": false,
"text": "next/headers import axios from \"axios\";\nimport React from \"react\";\nimport { cookies } from 'next/header... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15357136/"
] |
74,440,655 | <p>I'm making an async call inside useEffect. When the promise resolves, I am able to successfully log the data in the response. However, after I set state and index into it, I get an empty array and an error. How come my array did not get set? I am using Typescript.</p>
<pre><code>const [codeTemplate, setCodeTemplate]... | [
{
"answer_id": 74641989,
"author": "Nicolai Lissau",
"author_id": 1116508,
"author_profile": "https://Stackoverflow.com/users/1116508",
"pm_score": 0,
"selected": false,
"text": "next/headers import axios from \"axios\";\nimport React from \"react\";\nimport { cookies } from 'next/header... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3030419/"
] |
74,440,677 | <p>so i have an array like this, that i want to find the unique value with then count:</p>
<pre><code>users:
[ '21000316',
'21000316',
'21000316',
'21000316',
'22000510',
'22000510',
'22000510',
'22000510' ]
</code></pre>
<p>is it possible for me to get the unique value and count ... | [
{
"answer_id": 74440703,
"author": "Finbar",
"author_id": 17525834,
"author_profile": "https://Stackoverflow.com/users/17525834",
"pm_score": 3,
"selected": true,
"text": "const users = ['1', '1', '2', '3', '3', '3', '3'];\nconst result = {};\n\nfor(const user in users)\n result[users[u... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16136595/"
] |
74,440,680 | <p>I am trying to compare two CSV files and print the differences in Python as a custom text file.</p>
<p>For example:</p>
<p>CSV 1:</p>
<pre><code>Id, Customer, Status, Date
01, ABC, Good, Mar 2023
02, BAC, Good, Feb 2024
03, CBA, Bad, Apr 2022
</code></pre>
<p>CSV 2:</p>
<pre><code>Id, Customer, Status, Date
01, ABC,... | [
{
"answer_id": 74440703,
"author": "Finbar",
"author_id": 17525834,
"author_profile": "https://Stackoverflow.com/users/17525834",
"pm_score": 3,
"selected": true,
"text": "const users = ['1', '1', '2', '3', '3', '3', '3'];\nconst result = {};\n\nfor(const user in users)\n result[users[u... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506563/"
] |
74,440,706 | <p>Because of my lack of understanding of Powershell objects my question may not be worded accurately. I take it from the documentation <a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.3" rel="nofollow noreferrer">Powershell 7.3 ForEach-Object</a> t... | [
{
"answer_id": 74440703,
"author": "Finbar",
"author_id": 17525834,
"author_profile": "https://Stackoverflow.com/users/17525834",
"pm_score": 3,
"selected": true,
"text": "const users = ['1', '1', '2', '3', '3', '3', '3'];\nconst result = {};\n\nfor(const user in users)\n result[users[u... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15542245/"
] |
74,440,727 | <p>i have the following routes in my main</p>
<pre><code>routes: {
'/sign-in': (context) => BlocProvider(
lazy: false,
create: (_) => AuthCubit(),
child: const LandingPage(),
),
'/home': (context) => const HomeLandingPage(),
'/sign-u... | [
{
"answer_id": 74441849,
"author": "An Nguyen",
"author_id": 20507354,
"author_profile": "https://Stackoverflow.com/users/20507354",
"pm_score": -1,
"selected": false,
"text": "final List<Widget> pages = const [\n HomePage(),\n SearchPage(),\n NotificationsPage(),\n SettingPa... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17110550/"
] |
74,440,738 | <p>In my controller, I got three parameters. (GET : /Class/List)</p>
<pre><code>public class ClassController : Controller {
public ActionResult List(string classCode = null, string className = null, List<string> semester = null)
{ ... }
}
</code></pre>
<p>And I got this in my nav bar...</p>
<pre><code>&l... | [
{
"answer_id": 74441849,
"author": "An Nguyen",
"author_id": 20507354,
"author_profile": "https://Stackoverflow.com/users/20507354",
"pm_score": -1,
"selected": false,
"text": "final List<Widget> pages = const [\n HomePage(),\n SearchPage(),\n NotificationsPage(),\n SettingPa... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506452/"
] |
74,440,749 | <p>I'm trying to only validate React Hook Form when the <strong>is:</strong> is true then run the <strong>then:</strong> validation.
What I have so far is showing isValid= true in React-hook-form which it should not until all statements have been validated.</p>
<p>Sequance of validation should be:
show invalid and when... | [
{
"answer_id": 74441849,
"author": "An Nguyen",
"author_id": 20507354,
"author_profile": "https://Stackoverflow.com/users/20507354",
"pm_score": -1,
"selected": false,
"text": "final List<Widget> pages = const [\n HomePage(),\n SearchPage(),\n NotificationsPage(),\n SettingPa... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1096499/"
] |
74,440,793 | <p>I'm using updating out Exchange Mail Client written in .NET 4 Framework using Exchange Web Services (EWS) to .NET Core 6 using Microsoft.Graph. I've managed to port most of the functions but I'm having trouble working out how to Forward a Message as an Attachment.</p>
<p>In EWS</p>
<pre><code>// This method results ... | [
{
"answer_id": 74441849,
"author": "An Nguyen",
"author_id": 20507354,
"author_profile": "https://Stackoverflow.com/users/20507354",
"pm_score": -1,
"selected": false,
"text": "final List<Widget> pages = const [\n HomePage(),\n SearchPage(),\n NotificationsPage(),\n SettingPa... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/381582/"
] |
74,440,803 | <p>I am doing the EAT+ THAT= APPLE, where each letter represents a different number from 0-9. I need to find all combinations. I was wondering if there is a better way to write it, especially 'if' and 'for'</p>
<p>I've tried writing it like this but it gave me infinite results</p>
<pre><code>public class Main {
publi... | [
{
"answer_id": 74441264,
"author": "Syed Asad Manzoor",
"author_id": 20477563,
"author_profile": "https://Stackoverflow.com/users/20477563",
"pm_score": -1,
"selected": false,
"text": "**Second Version of Code**\n\npublic class EatingApple {\n ArrayList<Permutation> eat = new ArrayList(... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19705717/"
] |
74,440,817 | <p>I have a df1 with column values as below</p>
<pre><code>names
AB
DC
DE
FG
GG
TR
</code></pre>
<p>Another df2 as</p>
<pre><code>date names
2022-11-01 AB
2022-11-01 DE
2011-11-01 FG
2022-11-02 DC
2022-11-02 GG
2022-11-02 TR
</code></pre>
<p>I w... | [
{
"answer_id": 74441264,
"author": "Syed Asad Manzoor",
"author_id": 20477563,
"author_profile": "https://Stackoverflow.com/users/20477563",
"pm_score": -1,
"selected": false,
"text": "**Second Version of Code**\n\npublic class EatingApple {\n ArrayList<Permutation> eat = new ArrayList(... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8375724/"
] |
74,440,827 | <p>I am currently studying CUDA and learned that there are global memory and shared memory.</p>
<p>I have checked the CUDA document and found that GPUs can access shared memory and global memory using ld.shared/st.shared and ld.global/st.global instructions, respectively.</p>
<p>What I am curious about is what instruct... | [
{
"answer_id": 74440857,
"author": "Kryrena",
"author_id": 18229254,
"author_profile": "https://Stackoverflow.com/users/18229254",
"pm_score": 4,
"selected": true,
"text": "__shared__ float smem[2];\nsmem[0] = global_memory[0];\n LDG Rx, [Ry]\nSTS [Rz], Rx\n"
},
{
"answer_id": ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12311185/"
] |
74,440,828 | <p>I am doing this exercise from the book Eloquent JavaScript and I am trying to <strong>subtract a list using the reduce function</strong> and show the sum at the end.
This is what I have:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
... | [
{
"answer_id": 74440857,
"author": "Kryrena",
"author_id": 18229254,
"author_profile": "https://Stackoverflow.com/users/18229254",
"pm_score": 4,
"selected": true,
"text": "__shared__ float smem[2];\nsmem[0] = global_memory[0];\n LDG Rx, [Ry]\nSTS [Rz], Rx\n"
},
{
"answer_id": ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506688/"
] |
74,440,829 | <p>I have been trying to set a time limit for a certain form to not function past a specified date in a month, but I have been unsuccessful so far.</p>
<p>I am working with a low-code windows interface software that does the majority of the actual coding in the background but since it has some limitations I need to cod... | [
{
"answer_id": 74440857,
"author": "Kryrena",
"author_id": 18229254,
"author_profile": "https://Stackoverflow.com/users/18229254",
"pm_score": 4,
"selected": true,
"text": "__shared__ float smem[2];\nsmem[0] = global_memory[0];\n LDG Rx, [Ry]\nSTS [Rz], Rx\n"
},
{
"answer_id": ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506645/"
] |
74,440,850 | <pre><code>export default function ChatButton({showScreen}) {
const [active4, setActive4] = useState(false);
const handleClick4 = () => {
setActive4((prev) => !prev);
showScreen("MessageScreen");
};
return (
<div id="chat-button">
<div
className=&quo... | [
{
"answer_id": 74440857,
"author": "Kryrena",
"author_id": 18229254,
"author_profile": "https://Stackoverflow.com/users/18229254",
"pm_score": 4,
"selected": true,
"text": "__shared__ float smem[2];\nsmem[0] = global_memory[0];\n LDG Rx, [Ry]\nSTS [Rz], Rx\n"
},
{
"answer_id": ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505486/"
] |
74,440,870 | <pre><code></code></pre>
<p>i <- 1
while(i<10){
print(i)
i<-i+1
if(i==4){
next
}
}</p>
<pre><code>[1] 1
[1] 2
[1] 3
[1] 4
[1] 5
[1] 6
[1] 7
[1] 8
[1] 9
</code></pre>
<p>I execute this code, but still have number 4 in my result although I am using "next" in my code to skipp it</p>
| [
{
"answer_id": 74440857,
"author": "Kryrena",
"author_id": 18229254,
"author_profile": "https://Stackoverflow.com/users/18229254",
"pm_score": 4,
"selected": true,
"text": "__shared__ float smem[2];\nsmem[0] = global_memory[0];\n LDG Rx, [Ry]\nSTS [Rz], Rx\n"
},
{
"answer_id": ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20306157/"
] |
74,440,881 | <p><a href="https://i.stack.imgur.com/2qNPU.jpg" rel="nofollow noreferrer">display</a></p>
<pre><code> <div class="slider">
<div class="slides">
<input type="radio" name="radio-button" id="radio1">
&l... | [
{
"answer_id": 74440857,
"author": "Kryrena",
"author_id": 18229254,
"author_profile": "https://Stackoverflow.com/users/18229254",
"pm_score": 4,
"selected": true,
"text": "__shared__ float smem[2];\nsmem[0] = global_memory[0];\n LDG Rx, [Ry]\nSTS [Rz], Rx\n"
},
{
"answer_id": ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20464434/"
] |
74,440,895 | <p>I have an array of objects with duplicates:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>[
{
"code": "d1",
"title": "Title 1"
},
{
"code": "d2",
"... | [
{
"answer_id": 74440985,
"author": "Dreamy Player",
"author_id": 15319747,
"author_profile": "https://Stackoverflow.com/users/15319747",
"pm_score": 1,
"selected": false,
"text": "const ressult = YourArray.filter(\n (value, index, array) => array.findIndex((v) => v.code === value.code) ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4911440/"
] |
74,440,897 | <p>react-refresh-runtime.development.js:315 Uncaught TypeError: Cannot read properties of undefined (reading 'map')</p>
<pre><code>const Exchange = () => {
const { exchanges, setExchanges } = useState([]);
const { loading, setLoading } = useState(true);
useEffect(() => {
const fetchExchanges = async ()... | [
{
"answer_id": 74440934,
"author": "Ahmet Ulutaş",
"author_id": 17040927,
"author_profile": "https://Stackoverflow.com/users/17040927",
"pm_score": 1,
"selected": false,
"text": "exchanges.map exchanges?.map((i) => .........\n"
},
{
"answer_id": 74441013,
"author": "Ashley F... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15840945/"
] |
74,440,927 | <p>Have a Dataframe:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column_A</th>
<th>Column_B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>20</td>
</tr>
<tr>
<td>2</td>
<td>25</td>
</tr>
<tr>
<td>1</td>
<td>52</td>
</tr>
<tr>
<td>2</td>
<td>22</td>
</tr>
<tr>
<td>4</td>
<td>67</td>
</t... | [
{
"answer_id": 74441032,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 0,
"selected": false,
"text": "df[df[\"Column_A\"] <= 3].groupby(\"Column_A\")[\"Column_B\"].mean()\ndf[df[\"Column_A\"] > 3].groupby(\"Column_... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18757560/"
] |
74,440,931 | <p>I have a multidimensional array like this</p>
<p><code>Owner[0].dog[0].typeOfDog = "shiba inu", Owner[0].dog[1].typeOfDog = "poodle", Owner[0].dog[2].typeOfDog = "samoyan", Owner[1].dog[0].typeOfDog = "poodle", Owner[1].dog[1].typeOfDog = "poodle", Owner[1].dog[2].ty... | [
{
"answer_id": 74440982,
"author": "Adrian Brand",
"author_id": 1679126,
"author_profile": "https://Stackoverflow.com/users/1679126",
"pm_score": 1,
"selected": false,
"text": "const OwnersNoPoodles = Owner.map(o => ({...o, dog: o.dog.filter(d => d.typeOfDog !== 'poodle' )}));\n"
},
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506515/"
] |
74,440,940 | <h1>Background</h1>
<p>So I have a validator:</p>
<ol>
<li>To determine whether an email format is correct or not</li>
<li>Does the <strong>email already exist</strong> in the database</li>
<li>Along with some other column validation (<em>just ignore this</em>)
Like this:</li>
</ol>
<pre><code>$validator = Validator::m... | [
{
"answer_id": 74440982,
"author": "Adrian Brand",
"author_id": 1679126,
"author_profile": "https://Stackoverflow.com/users/1679126",
"pm_score": 1,
"selected": false,
"text": "const OwnersNoPoodles = Owner.map(o => ({...o, dog: o.dog.filter(d => d.typeOfDog !== 'poodle' )}));\n"
},
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9039350/"
] |
74,440,961 | <p>I created anchor tag in which I use heart icon which change the color after click. But I want to remain same the color after reloading or restaring the page. when I restart or reload the page it comes back on their default color.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-b... | [
{
"answer_id": 74441223,
"author": "Vivek K.",
"author_id": 3802484,
"author_profile": "https://Stackoverflow.com/users/3802484",
"pm_score": 0,
"selected": false,
"text": "unset onload window.onload = (event) => {\n document.getElementById('favorite').style.color = \"unset\";\n};\nvar ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74440961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20467305/"
] |
74,441,140 | <p>I'm trying to design this view.</p>
<p><a href="https://i.stack.imgur.com/MpOJ3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MpOJ3.png" alt="enter image description here" /></a></p>
<p>I already have the basic design of the cards, but i would like to know how to change the card's background col... | [
{
"answer_id": 74441620,
"author": "manhtuan21",
"author_id": 8921450,
"author_profile": "https://Stackoverflow.com/users/8921450",
"pm_score": 2,
"selected": false,
"text": "class CategoryCard extends StatelessWidget {\n final String? categoryCardName;\n final Function()? wasPressed;\... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20395420/"
] |
74,441,162 | <p>the code:
shop.vue</p>
<pre class="lang-html prettyprint-override"><code><template>
<div class="shop">
<div class="products" v-for="Product in items" :key="Product.id" :Product="Product"
v-on:add-To-Cart="addToCart($event)&... | [
{
"answer_id": 74441620,
"author": "manhtuan21",
"author_id": 8921450,
"author_profile": "https://Stackoverflow.com/users/8921450",
"pm_score": 2,
"selected": false,
"text": "class CategoryCard extends StatelessWidget {\n final String? categoryCardName;\n final Function()? wasPressed;\... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20317198/"
] |
74,441,166 | <p>I have many Java flaky tests using testNG, which may fail randomly. Now I'd like to run them repeatly until failure and see the log output. Can testNG do this?</p>
<p>Seems there are many questions about how to retry fail tests, but no solution about how to retry tests until failure.</p>
| [
{
"answer_id": 74441620,
"author": "manhtuan21",
"author_id": 8921450,
"author_profile": "https://Stackoverflow.com/users/8921450",
"pm_score": 2,
"selected": false,
"text": "class CategoryCard extends StatelessWidget {\n final String? categoryCardName;\n final Function()? wasPressed;\... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10523820/"
] |
74,441,179 | <p>I need help figuring out how to ask the user if they would like to repeat the program. Any help is much appreciated. I am relatively new to Python and it would be great to receive some advice!</p>
<pre><code>X = int(input("How many numbers would you like to enter? "))
Sum = 0
sumNeg = 0
sumPos = 0
for i i... | [
{
"answer_id": 74441460,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 1,
"selected": true,
"text": "break Y y lower() while True:\n X = int(input(\"How many numbers would you like to enter? \"))\n Sum = 0\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18320598/"
] |
74,441,183 | <p>I am planning to start development and I don't know which method of analysis to take as a basis. Perhaps you have some ideas?</p>
<p>In the Forex market:</p>
<pre><code>Volume = the number of price changes over a period of time.
</code></pre>
<p>In the stock market:</p>
<pre><code>Volume = trading volume * price.
</... | [
{
"answer_id": 74441460,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 1,
"selected": true,
"text": "break Y y lower() while True:\n X = int(input(\"How many numbers would you like to enter? \"))\n Sum = 0\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20507083/"
] |
74,441,235 | <p>This is input file:
<code>input.txt</code></p>
<pre><code>PS name above bit below bit original 1_info 2_info new
PS_AS_0 PS_00[31] PS_00[00] 0x00000000 0x156A17[00] 0x156A17[31] 0x0003F4a1
PS_RST_D2 PS_03[05] PS_0... | [
{
"answer_id": 74441751,
"author": "Thomas Weller",
"author_id": 480982,
"author_profile": "https://Stackoverflow.com/users/480982",
"pm_score": 0,
"selected": false,
"text": "import re\nline = re.sub(' +', ' ', line)\n 0x0a56F001 int(cols[6], 16) int(cols[6], 2) number = int(cols[6],16)... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20273554/"
] |
74,441,240 | <p>I have a timestamp <code>2022-11-20 21:00:00+0900</code> now I need to convert this to IST.
So I tried this</p>
<pre><code> loc, _ := time.LoadLocation("Asia/Calcutta")
format := "Jan _2 2006 3:04:05 PM"
timestamp := "2022-11-20 21:00:00+0900"
ISTformat, err := time.Parse... | [
{
"answer_id": 74441415,
"author": "Navjot Sharma",
"author_id": 20201743,
"author_profile": "https://Stackoverflow.com/users/20201743",
"pm_score": 0,
"selected": false,
"text": "package main\n\nimport (\n \"fmt\"\n \"time\"\n)\n\nfunc main() {\n loc, _ := time.LoadLocation(\"A... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20196947/"
] |
74,441,292 | <p>I tried to put margin to separate text and icon using this code</p>
<pre><code>
{% load static %}
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-sc... | [
{
"answer_id": 74441318,
"author": "kamil",
"author_id": 17498928,
"author_profile": "https://Stackoverflow.com/users/17498928",
"pm_score": 2,
"selected": true,
"text": "span { padding-left: 20px; }\n"
},
{
"answer_id": 74441322,
"author": "Manoj Tolagekar",
"author_id":... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20476548/"
] |
74,441,308 | <p>When you press the full-screen button of the youtube player it goes to landscape mode when you press it again it's come back to portrait mode but the status bar hides permanently throughout the app.</p>
<p>If anyone knows <strong>how to show the status bar persistent in Portrait mode.</strong> Please let me know. Th... | [
{
"answer_id": 74441318,
"author": "kamil",
"author_id": 17498928,
"author_profile": "https://Stackoverflow.com/users/17498928",
"pm_score": 2,
"selected": true,
"text": "span { padding-left: 20px; }\n"
},
{
"answer_id": 74441322,
"author": "Manoj Tolagekar",
"author_id":... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5917068/"
] |
74,441,329 | <p>I am new to Android Studio and have been pulling my hair out for the past hour trying to figure this out.</p>
<p>So I have a MainActivity java class which has two separate onClick methods each with an intent that opens a certain activity depending on the button (in activity_main.mxml) pressed.</p>
<p>For whatever re... | [
{
"answer_id": 74441318,
"author": "kamil",
"author_id": 17498928,
"author_profile": "https://Stackoverflow.com/users/17498928",
"pm_score": 2,
"selected": true,
"text": "span { padding-left: 20px; }\n"
},
{
"answer_id": 74441322,
"author": "Manoj Tolagekar",
"author_id":... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20259005/"
] |
74,441,354 | <p>This is a hackerrank program which I tried last week. There is a list of Items in the shopping cart, each having a cost associated with it.</p>
<p>There are <code>n</code> items, the cost of the <code>ith</code> item is <code>i</code> dollars and <code>m</code> items have already been bought and represented in the a... | [
{
"answer_id": 74441318,
"author": "kamil",
"author_id": 17498928,
"author_profile": "https://Stackoverflow.com/users/17498928",
"pm_score": 2,
"selected": true,
"text": "span { padding-left: 20px; }\n"
},
{
"answer_id": 74441322,
"author": "Manoj Tolagekar",
"author_id":... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3181365/"
] |
74,441,383 | <p>I have multiple columns in a pandas dataframe that I want to reduce from wide form to long form so that it essentially multiplies the number of rows in my dataframe by 2 and also adds a new column to indicate where each row comes from originally.</p>
<p>I have the following dataframe <code>df</code> where cols <code... | [
{
"answer_id": 74441408,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "wide_to_long group df = (pd.wide_to_long(df.reset_index(), \n stubnames=['a','b','c','d'], i=['i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12148545/"
] |
74,441,388 | <p>I wanted to create a new column, let say named "group id" on the basis of:</p>
<ol>
<li>compare the nth row with (n-1)th row.</li>
<li>if both the records are equal then in a "group id", previous "group id" is copied</li>
<li>If these records are not equal, then 1 should be added to &qu... | [
{
"answer_id": 74441408,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "wide_to_long group df = (pd.wide_to_long(df.reset_index(), \n stubnames=['a','b','c','d'], i=['i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20507143/"
] |
74,441,405 | <p>In one table I have such column with data</p>
<p><a href="https://i.stack.imgur.com/bX6dq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bX6dq.png" alt="Source data" /></a></p>
<p>Is there possible way to make a query that return this data in this format:</p>
<pre><code>_IDS_
71554
99188
69337
70... | [
{
"answer_id": 74441570,
"author": "bigtheo",
"author_id": 13567984,
"author_profile": "https://Stackoverflow.com/users/13567984",
"pm_score": 0,
"selected": false,
"text": "Sélect * from table1 where id not in (sélect cast(strcol as int) from table2);\n"
},
{
"answer_id": 744417... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5686432/"
] |
74,441,486 | <p>I am having a complex nested json</p>
<pre><code>{
...
"key1": {
"key2" : [
{ ...
"base_score" :4.5
}
]
"key3": {
"key4": [
{ ...
"base_score" : 0.5
...
}
]
}
...
... | [
{
"answer_id": 74441642,
"author": "peak",
"author_id": 997358,
"author_profile": "https://Stackoverflow.com/users/997358",
"pm_score": 2,
"selected": false,
"text": "jq --argjson limit 7.0 '\n any(.. | select(type==\"object\" and (.base_score|type==\"number\")) | .base_score; . > $limi... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14996394/"
] |
74,441,510 | <pre><code> mpdf.create_pvf(card, mpImgBytes, mlen, L"");
int inDoc = mpdf.open_pdi_document(card, L"");
</code></pre>
<p>I am using pdflib version 9.3.</p>
<blockquote>
<p>open_pdi_document returns -1</p>
</blockquote>
<blockquote>
<p>create_pvf creates an empty file of size 0.
Any i... | [
{
"answer_id": 74443860,
"author": "Rainer",
"author_id": 2862406,
"author_profile": "https://Stackoverflow.com/users/2862406",
"pm_score": 2,
"selected": false,
"text": "open_pdi_document() /* Open the input PDF */\n indoc = mpdf.open_pdi_document(card, L\"\");\n i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17021954/"
] |
74,441,561 | <p>Can someone please explain me how the below epoch time</p>
<ul>
<li>epoch time/unix-timestamp :<strong>1668443121840</strong></li>
<li>converts to the date : <strong>2022-11-14T16:25:21.840+0000</strong></li>
</ul>
<p>How is the conversion taking place and additionally how to identify an epoch timestamp if it is men... | [
{
"answer_id": 74443860,
"author": "Rainer",
"author_id": 2862406,
"author_profile": "https://Stackoverflow.com/users/2862406",
"pm_score": 2,
"selected": false,
"text": "open_pdi_document() /* Open the input PDF */\n indoc = mpdf.open_pdi_document(card, L\"\");\n i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20475188/"
] |
74,441,578 | <p>Did anyone try this?</p>
<p>I have a custom module I created a field next visit, I want to make an event after saving my record in my custom module based on next visit field date. here's the following code tried.</p>
<pre><code>public function process(Vtiger_Request $request) {
try {
$CustomSaveEvents= $this->... | [
{
"answer_id": 74443860,
"author": "Rainer",
"author_id": 2862406,
"author_profile": "https://Stackoverflow.com/users/2862406",
"pm_score": 2,
"selected": false,
"text": "open_pdi_document() /* Open the input PDF */\n indoc = mpdf.open_pdi_document(card, L\"\");\n i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10471397/"
] |
74,441,582 | <p>Is there any way to stop all nested describes in case one of the Iterations (Test case) is failing inside one of the nested describes</p>
<p>how to achieve this anyone have any idea</p>
<p>Example</p>
<pre><code>Test
Describe 1
it() {}
Describe 1.1
It1() {}
It2() {} (On Error)
... | [
{
"answer_id": 74443860,
"author": "Rainer",
"author_id": 2862406,
"author_profile": "https://Stackoverflow.com/users/2862406",
"pm_score": 2,
"selected": false,
"text": "open_pdi_document() /* Open the input PDF */\n indoc = mpdf.open_pdi_document(card, L\"\");\n i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5097541/"
] |
74,441,607 | <p>how to get substring from</p>
<pre class="lang-none prettyprint-override"><code> 42 45 47 49 4e 21 40 23 47 68 6a 6b 2c 47 68 6a BEGIN!@#Ghjk,Ghj 6b 45 4e 44 23 40 21 kEND#@!
</code></pre>
<p>to be</p>
<pre class="lang-none prettyprint-override"><code>BEGIN!@#Ghjk,GhjkEND#@!
</code></pre>
<p><strong>Note:</... | [
{
"answer_id": 74441833,
"author": "user1934428",
"author_id": 1934428,
"author_profile": "https://Stackoverflow.com/users/1934428",
"pm_score": 1,
"selected": false,
"text": "if [[ $line =~ (BEGIN[^ ]+)\\ .*([^ ]+END[^ ]+) ]]\nthen\n substring=${BASH_REMATCH[1]}${BASH_REMATCH[2]}\nelse... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20507322/"
] |
74,441,616 | <p>Is there a way to copy data from all tables in a Synapse instance to another?</p>
<p>Considered Data Migration Assistant, but it doesn't allow to select Synapse as Source.</p>
<p>Also, I am considering to use Copy activity in a pipeline, but the number of tables is not small.</p>
| [
{
"answer_id": 74441833,
"author": "user1934428",
"author_id": 1934428,
"author_profile": "https://Stackoverflow.com/users/1934428",
"pm_score": 1,
"selected": false,
"text": "if [[ $line =~ (BEGIN[^ ]+)\\ .*([^ ]+END[^ ]+) ]]\nthen\n substring=${BASH_REMATCH[1]}${BASH_REMATCH[2]}\nelse... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2881345/"
] |
74,441,622 | <p>Trying to find duplicates in an array where each list inside the list is a different row of a document. Im trying to find the words where that are the same</p>
<pre><code>def helper(a):
for x in range(len(a)-1):
for y in range(len(a[x])):
for i in range(len(a)):
for j in range(len(a[x])-1):
... | [
{
"answer_id": 74441693,
"author": "JohnyCapo",
"author_id": 19335841,
"author_profile": "https://Stackoverflow.com/users/19335841",
"pm_score": -1,
"selected": false,
"text": "for same_words = list()\n\nfor scanning_list in a:\n for scanned_list in a:\n if scanning_list == scanne... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506902/"
] |
74,441,662 | <p>I am trying to save roughly 20,000 records and it takes an unforgivable amount of time to finish. What is the more optimal way of achieving this?</p>
<p>Here's what I currently have:</p>
<pre><code>public async Task SaveOrUpdateItemAsync(List<DepartmentalizedItem> departmentalizedItems)
{
using(WarehouseCo... | [
{
"answer_id": 74441788,
"author": "Kiran Joshi",
"author_id": 9760311,
"author_profile": "https://Stackoverflow.com/users/9760311",
"pm_score": 2,
"selected": false,
"text": "AddRange Add AddRange UpdateRange public class abc\n{\n public int propa {get;set;}\n public string propb {get... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9589439/"
] |
74,441,730 | <p>I can install modules, such as the 'requests' module. However, if I try and import them, python tells me it's missing. I can use native modules such as the json module, however.</p>
<p>I tried to install and import third-party modules in python on visualstudio code, but I'm stuck trying to figure out how to import t... | [
{
"answer_id": 74441788,
"author": "Kiran Joshi",
"author_id": 9760311,
"author_profile": "https://Stackoverflow.com/users/9760311",
"pm_score": 2,
"selected": false,
"text": "AddRange Add AddRange UpdateRange public class abc\n{\n public int propa {get;set;}\n public string propb {get... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15790774/"
] |
74,441,753 | <p>I have an invaild view on my PROD system:</p>
<pre><code>PROD.CLIENT
</code></pre>
<p>I found out that is invalid with following statement:</p>
<pre><code>select
owner c1,
object_type c3,
object_name c2
from
dba_objects
where
status != 'VALID'
order by
owner,
object_type;
</code></pre>
<p... | [
{
"answer_id": 74441823,
"author": "lavantho0508_java_dev",
"author_id": 18500877,
"author_profile": "https://Stackoverflow.com/users/18500877",
"pm_score": 0,
"selected": false,
"text": " CREATE VIEW example AS\n select\n owner c1,\n object_type c3,\n object_name c2\nfrom\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18297879/"
] |
74,441,758 | <p>I am trying to teach myself linked lists, so I have managed to put together a small piece of code that should create three linked nodes and then print them out. Except it only prints out the first element, and I don't understand why not the other two.</p>
<p>Also, I am pretty sure I am supposed to free memory when I... | [
{
"answer_id": 74441823,
"author": "lavantho0508_java_dev",
"author_id": 18500877,
"author_profile": "https://Stackoverflow.com/users/18500877",
"pm_score": 0,
"selected": false,
"text": " CREATE VIEW example AS\n select\n owner c1,\n object_type c3,\n object_name c2\nfrom\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20224183/"
] |
74,441,806 | <p>I am having an issue when trying to define my routes to controller classes in Laravel.</p>
<p>My web.php route looks like this:</p>
<pre><code>use App\Http\Controllers\Frontend\ArticlesController as FrontEndArticlesController;
Route::get('/articles/{article:slug}', [FrontendArticlesController::class, 'show']);
</cod... | [
{
"answer_id": 74441823,
"author": "lavantho0508_java_dev",
"author_id": 18500877,
"author_profile": "https://Stackoverflow.com/users/18500877",
"pm_score": 0,
"selected": false,
"text": " CREATE VIEW example AS\n select\n owner c1,\n object_type c3,\n object_name c2\nfrom\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20413406/"
] |
74,441,878 | <p>I have pushed 2 commits in my feature branch(remote) but now I have to revert back the latest commit for the branch.</p>
<p>e.g commit A latest
commit B first</p>
<p>here I want to delete commit A and want to leave changes as it was in commit B</p>
<p>I can see many solution in google but not sure what to do?
Some s... | [
{
"answer_id": 74441823,
"author": "lavantho0508_java_dev",
"author_id": 18500877,
"author_profile": "https://Stackoverflow.com/users/18500877",
"pm_score": 0,
"selected": false,
"text": " CREATE VIEW example AS\n select\n owner c1,\n object_type c3,\n object_name c2\nfrom\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74441878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14237523/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.