qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,526,041 | <p>I am trying to understand the pointer used in line of code below written by the user <a href="https://stackoverflow.com/users/8542346/h-s">H.S</a> in <a href="https://stackoverflow.com/questions/48333430/iterate-through-argv/74523715#74523715">this post</a>. Could anyone help me?</p>
<pre><code>for (char **pargv = ... | [
{
"answer_id": 74526365,
"author": "John Bollinger",
"author_id": 2402272,
"author_profile": "https://Stackoverflow.com/users/2402272",
"pm_score": 1,
"selected": false,
"text": "**pargv = argv+1 ** pargv char ** char argv argv (argv+1) (&argv[1]) *pargv for (int i = 1; argv[i] != ar... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74526041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18534979/"
] |
74,526,043 | <p>I am trying to make my bash script ssh into each server and then grep Selinux=enforcing/replace with Selinux=permissive. The issue I am facing is it checks the first server and but not the second server. I believe it arises from my if statement.</p>
<pre><code>#!/bin/bash
selinux_path=/opt/configtest
hosts=(server1... | [
{
"answer_id": 74526365,
"author": "John Bollinger",
"author_id": 2402272,
"author_profile": "https://Stackoverflow.com/users/2402272",
"pm_score": 1,
"selected": false,
"text": "**pargv = argv+1 ** pargv char ** char argv argv (argv+1) (&argv[1]) *pargv for (int i = 1; argv[i] != ar... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74526043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20565135/"
] |
74,526,051 | <p>I am looking for help in a scenario where I have a scala dataframe PARENT. I need to</p>
<ul>
<li><p>loop through each record in PARENT dataframe</p>
</li>
<li><p>Query the records from a database based on a filter using ID value of
parent (the output of this step is dataframe)</p>
</li>
<li><p>append few attribute... | [
{
"answer_id": 74582042,
"author": "Koedlt",
"author_id": 15405732,
"author_profile": "https://Stackoverflow.com/users/15405732",
"pm_score": 1,
"selected": false,
"text": ".join val df = Seq((1, \"X\"), (2, \"Y\")).toDF(\"id\", \"parentname\")\ndf.show\n+---+----------+ ... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74526051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2201536/"
] |
74,526,053 | <p>I need to setup ViewPager2 in a way where I dynamically update the Fragments that are displayed within the ViewPager2.</p>
<p>To facilitate this, I've created a view model LiveData object that includes a list of items that represent the data the fragments should display:</p>
<pre><code>val items: LiveData<List<... | [
{
"answer_id": 74526073,
"author": "corporate_fun",
"author_id": 1840956,
"author_profile": "https://Stackoverflow.com/users/1840956",
"pm_score": 0,
"selected": false,
"text": "getItemId containsItem FragmentStateAdapter"
},
{
"answer_id": 74526580,
"author": "花未开",
"aut... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74526053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1840956/"
] |
74,526,064 | <p>I'm trying to write a scope that sorts on one of two columns--if the first (<code>scheduled_at</code>) has data in it then use that data, otherwise resort to <code>created_at</code>.</p>
<pre><code>def self.by_scheduled_at
if scheduled_at
order(scheduled_at: :desc)
else
order(created_at: :desc)
end
... | [
{
"answer_id": 74526073,
"author": "corporate_fun",
"author_id": 1840956,
"author_profile": "https://Stackoverflow.com/users/1840956",
"pm_score": 0,
"selected": false,
"text": "getItemId containsItem FragmentStateAdapter"
},
{
"answer_id": 74526580,
"author": "花未开",
"aut... | 2022/11/21 | [
"https://Stackoverflow.com/questions/74526064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1153022/"
] |
74,526,091 | <pre><code>testdata = ["One,For,The,Money", "Two,For,The,Show", "Three,To,Get,Ready", "Now,Go,Cat,Go"]
#My Code:
def chop(string):
x = 0
y = 0
while x < 5:
y = string.find(",") + 1
z = string.find(",", y)
x = x + 1
... | [
{
"answer_id": 74526073,
"author": "corporate_fun",
"author_id": 1840956,
"author_profile": "https://Stackoverflow.com/users/1840956",
"pm_score": 0,
"selected": false,
"text": "getItemId containsItem FragmentStateAdapter"
},
{
"answer_id": 74526580,
"author": "花未开",
"aut... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567408/"
] |
74,526,134 | <p>Context: I roughly have a dictionary of about 130 lists in the form of a key and a list of indexes.</p>
<p><code>{‘key1’:[0,1,2], ‘key2’: [2, 3, 4], ‘key3’:[5, 6],…, ‘key130’:[0, 450, 1103, 500,…]}</code></p>
<p>Lists are all different sizes.</p>
<p>This is a two-part problem where:</p>
<ol>
<li><p>I want some form ... | [
{
"answer_id": 74526474,
"author": "CryptoFool",
"author_id": 7631480,
"author_profile": "https://Stackoverflow.com/users/7631480",
"pm_score": 0,
"selected": false,
"text": "from pprint import pprint\n\n# Build the comparison structure\ndef build_comparisons(input, sparse=True):\n co... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11445194/"
] |
74,526,167 | <p>I'm trying to pass an ArrayList from an AsyncTask in the MainActivity to a fragment, but I'm getting a <em>NullPointerException</em> for invoking
<code> CategoryAdapter.getItemCount()</code> even if I'm passing the array after the BroadCastReceiver Invoke.</p>
<p>What Am I doing wrong?</p>
<p><strong>MainActivity</s... | [
{
"answer_id": 74526474,
"author": "CryptoFool",
"author_id": 7631480,
"author_profile": "https://Stackoverflow.com/users/7631480",
"pm_score": 0,
"selected": false,
"text": "from pprint import pprint\n\n# Build the comparison structure\ndef build_comparisons(input, sparse=True):\n co... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567458/"
] |
74,526,175 | <p>I'm currently writing a script that uses the function <code>walk</code> in jq, which I'm using to check for the value of a field, which can appear multiple times in the file. If any instance of that field is not <code>true</code>, I want to echo an error notifying users that the field is invalid. Similar to below:</... | [
{
"answer_id": 74526228,
"author": "pmf",
"author_id": 2158479,
"author_profile": "https://Stackoverflow.com/users/2158479",
"pm_score": 3,
"selected": true,
"text": "all --exit-status -e if jq -e 'all(.. | objects | select(has(\"foo\")); .foo)' file.json >/dev/null\nthen\n echo \"All t... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9030977/"
] |
74,526,183 | <p>I need to sort a ranking of points by descending order. The users and points are inside <code>lista_ranking</code> which includes de following code:</p>
<p>[{'partido': {'codigo': 'AAA', 'fecha': datetime.date(2022, 11, 20), 'hora': '13:00hs', 'equipo_local': 'Catar', 'equipo_visitante': 'Ecuador', 'estado': 'Finali... | [
{
"answer_id": 74526220,
"author": "aaryanm23",
"author_id": 17690095,
"author_profile": "https://Stackoverflow.com/users/17690095",
"pm_score": 0,
"selected": false,
"text": " for (num, first, last) in ranking_high_to_low:\n print(\"{} {} {}\".format(first, last, num))\n"
},
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531685/"
] |
74,526,223 | <p>I used the following process the generate a <code>numpy array</code> with size = <code>(720, 720, 3)</code>. In principle, it should cost <code>720 * 720 * 3 * 8Byte = 12.3MB</code>. <strong>However, in the <code>ans = memory_benchmark()</code>, it costs <code>188 MB</code>.</strong> Why does it cost much more memor... | [
{
"answer_id": 74526220,
"author": "aaryanm23",
"author_id": 17690095,
"author_profile": "https://Stackoverflow.com/users/17690095",
"pm_score": 0,
"selected": false,
"text": " for (num, first, last) in ranking_high_to_low:\n print(\"{} {} {}\".format(first, last, num))\n"
},
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10969942/"
] |
74,526,251 | <p>I wanted to run different error handling with React Promise.
API 1 and 2 should have different error handlings.</p>
<ol>
<li>Execute APIs all at once to save time.</li>
<li>Run different error handling statements for each API as soon as possible, without waiting for the others.</li>
<li>Each API should continue even... | [
{
"answer_id": 74526301,
"author": "gerrod",
"author_id": 127497,
"author_profile": "https://Stackoverflow.com/users/127497",
"pm_score": 2,
"selected": true,
"text": "Promise.all const fetchFromApi1 = async () => {\n try {\n const response = await fetch(api1);\n return response.j... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15435022/"
] |
74,526,263 | <p>I have a problem with make dropdown menu and submenu with bootstrap on Vue 3 and bootstrap 5.2</p>
<p>There is my json menu data:</p>
<pre><code>[
{
"id": 1,
"name": "Menu 1",
"active": 1,
"created_at": "2022-11-20T03:27:47.00... | [
{
"answer_id": 74526301,
"author": "gerrod",
"author_id": 127497,
"author_profile": "https://Stackoverflow.com/users/127497",
"pm_score": 2,
"selected": true,
"text": "Promise.all const fetchFromApi1 = async () => {\n try {\n const response = await fetch(api1);\n return response.j... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8402887/"
] |
74,526,266 | <p>If I want to construct a temporary valueset for testing, I can do something like this:</p>
<pre><code>SELECT * FROM (VALUES (97.99), (98.01), (99.00))
</code></pre>
<p>which will result in this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;"></th>
<th style="te... | [
{
"answer_id": 74526301,
"author": "gerrod",
"author_id": 127497,
"author_profile": "https://Stackoverflow.com/users/127497",
"pm_score": 2,
"selected": true,
"text": "Promise.all const fetchFromApi1 = async () => {\n try {\n const response = await fetch(api1);\n return response.j... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3121975/"
] |
74,526,291 | <p>I have React Router wrapping my root div but I can't seem to figure out how to handle a popup window when a link is clicked.</p>
<p>I know I can instead load a static HTML page in the public folder but I'd like it to be a .js file in src.</p>
<p>This is what I want:</p>
<pre><code>import { Link } from "react-ro... | [
{
"answer_id": 74526465,
"author": "andres martinez",
"author_id": 13625491,
"author_profile": "https://Stackoverflow.com/users/13625491",
"pm_score": 0,
"selected": false,
"text": "onClick={() => {\n var myWindow = window.open(\n \"\",\n \"Popup\",\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18305379/"
] |
74,526,310 | <p>I have a react form that has several dropdowns and it was working, however, the WebAPI changed and now the data is being returned slightly different and now none of the dropdowns are populated.</p>
<p>The old JSON format was like:</p>
<pre><code> {
"data":
[{
"id" : 1,
"n... | [
{
"answer_id": 74526465,
"author": "andres martinez",
"author_id": 13625491,
"author_profile": "https://Stackoverflow.com/users/13625491",
"pm_score": 0,
"selected": false,
"text": "onClick={() => {\n var myWindow = window.open(\n \"\",\n \"Popup\",\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8382717/"
] |
74,526,320 | <p>i want to add button color but it didnt show up</p>
<p>here is the drawable
rounded_button.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:c... | [
{
"answer_id": 74526498,
"author": "花未开",
"author_id": 18241066,
"author_profile": "https://Stackoverflow.com/users/18241066",
"pm_score": 0,
"selected": false,
"text": "app:backgroundTint=\"@null\"\n"
},
{
"answer_id": 74528432,
"author": "Kushal Prajapati",
"author_id":... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20308102/"
] |
74,526,345 | <p>I was wondering why sympy won't solve the following problem:</p>
<pre><code>from sympy import *
ss = symbols('s', real = True)
a = symbols('a', real = True)
f = Function('f')
g = Function('g')
eq = Integral(a*g(ss) + f(ss),(ss,0,oo))
solve(eq, a)
</code></pre>
<p>The return is an empty solution list. I want to tell ... | [
{
"answer_id": 74526675,
"author": "Alex P",
"author_id": 11554968,
"author_profile": "https://Stackoverflow.com/users/11554968",
"pm_score": 2,
"selected": true,
"text": "Integral(g(ss),(ss,0,oo)) Integral doit from sympy import *\n\nx = symbols('x', real = True)\na = symbols('a', real ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4207869/"
] |
74,526,464 | <p>Given the sentence "I want to eat fish and I want to buy a car. Therefore, I have to make money."</p>
<p>I want to split the sentene by</p>
<p>['I want to eat fish', 'I want to buy a car", Therefore, 'I have to make money']</p>
<p>I am trying to split the sentence</p>
<pre><code>re.split('.|and', sent... | [
{
"answer_id": 74526501,
"author": "Dan Nagle",
"author_id": 2202018,
"author_profile": "https://Stackoverflow.com/users/2202018",
"pm_score": 1,
"selected": false,
"text": ". import re\n\ns = \"I want to eat fish and I want to buy a car. Therefore, I have to make money.\"\n\nre.split('\... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7229276/"
] |
74,526,492 | <p>I tried to program a local notification by expo, following the code provide on:
<a href="https://docs.expo.dev/versions/latest/sdk/notifications/#getpermissionsasync-promisenotificationpermissionsstatus" rel="nofollow noreferrer">here - docs.expo.dev</a></p>
<p>The problem: the notification simple don't appear in my... | [
{
"answer_id": 74526501,
"author": "Dan Nagle",
"author_id": 2202018,
"author_profile": "https://Stackoverflow.com/users/2202018",
"pm_score": 1,
"selected": false,
"text": ". import re\n\ns = \"I want to eat fish and I want to buy a car. Therefore, I have to make money.\"\n\nre.split('\... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19118458/"
] |
74,526,532 | <p>I'm sorry if my Title seems kinda weird, English is not my first Language and I didn't know how to express myself correctly.</p>
<p>I have a list and I want to add a word every time after a particular word:
Example:</p>
<pre><code>list = ['add', 'add', 'ball', 'cup', 'add']
</code></pre>
<p>Expected result:</p>
<pre... | [
{
"answer_id": 74526566,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 2,
"selected": true,
"text": "lst = ['add', 'add', 'ball', 'cup', 'add']\noutput = []\nfor word in lst:\n output.append(word)\n if word == 'a... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5764318/"
] |
74,526,554 | <p>I have the following code snippet with me.</p>
<pre><code>public class SomeClass
{
private int[] items;
public unsafe T DoSomething<T>(delegate*<int[], T> abc)
{
return abc(items);
}
}
</code></pre>
<p>I want to pass <code>HowToDoSomething(int[] values)</code> to above the <code>D... | [
{
"answer_id": 74526657,
"author": "Rivo R.",
"author_id": 18123471,
"author_profile": "https://Stackoverflow.com/users/18123471",
"pm_score": -1,
"selected": false,
"text": "Func public T DoSomething<T>(Func<int[],T> abc)\n{\n return abc(items);\n}\n SomeClass sc = new SomeClass();\n... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4053100/"
] |
74,526,575 | <p>I couldn't find the solution.
How to get date in <code>"Tuesday 22.11.2022"</code> format.</p>
<p>this is how i did it</p>
<pre><code> const date = new Date();
const day = date.getDate();
const month = date.getMonth() + 1;
const year = date.getFullYear();
const today = day + '.' + month + '.' + yea... | [
{
"answer_id": 74526692,
"author": "WestMountain",
"author_id": 9331978,
"author_profile": "https://Stackoverflow.com/users/9331978",
"pm_score": -1,
"selected": false,
"text": "dateFns.format(new Date, \"DD.MM.YYYY dddd\")\n"
},
{
"answer_id": 74526781,
"author": "Paulo",
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18004537/"
] |
74,526,576 | <pre><code> if (test1 === 'hi' && test2 === 'bye' && test3 = 'joe' && test4 === 'sam') {
console.log("all 4 statements are true!!);
};
</code></pre>
<p>getting an r value error which im assuming is syntax. Could someone help me what would be the correct format/method to do this?... | [
{
"answer_id": 74526692,
"author": "WestMountain",
"author_id": 9331978,
"author_profile": "https://Stackoverflow.com/users/9331978",
"pm_score": -1,
"selected": false,
"text": "dateFns.format(new Date, \"DD.MM.YYYY dddd\")\n"
},
{
"answer_id": 74526781,
"author": "Paulo",
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19102374/"
] |
74,526,585 | <p>Learning command arguments in Java, trying to print only names in a string of names and ages.</p>
<p>So instead of Bill 32 Mary 42 Bob 29 Lisa 20</p>
<p>I should get Bill Mary Bob Lisa</p>
<pre><code>class CmdArgsNameAgePairs
{
public static void main(String[] args)
{
java CmdArgs Bill 32 Mary 42 B... | [
{
"answer_id": 74526635,
"author": "DevilsHnd",
"author_id": 4725875,
"author_profile": "https://Stackoverflow.com/users/4725875",
"pm_score": 1,
"selected": false,
"text": "int i = 0;\nwhile (i < args.length) {\n if (i % 2 == 0) {\n System.out.println(args[i]);\n }\n i++... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11981085/"
] |
74,526,609 | <p>Example URL: mywebsite.com/wp-admin/post.php?post=1234&action=edit</p>
<p>I have found hooks that fire when a post is created/edited/status changed, but nothing that works for just viewing a post.</p>
<p>I need to check some meta data and update it before the post is displayed to the user</p>
<p>I have tried sev... | [
{
"answer_id": 74526635,
"author": "DevilsHnd",
"author_id": 4725875,
"author_profile": "https://Stackoverflow.com/users/4725875",
"pm_score": 1,
"selected": false,
"text": "int i = 0;\nwhile (i < args.length) {\n if (i % 2 == 0) {\n System.out.println(args[i]);\n }\n i++... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14479332/"
] |
74,526,812 | <p>So, let's just say I have a field for items at a store. I have a field called price and a field called color. If I want to display the top values for each price, I can do that easily by searching for "<strong>top price</strong>". Suppose I want to filter and make a table by showing all of the top values... | [
{
"answer_id": 74535396,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "index=ndx sourcetype=srctp rating=\"bad\" color=\"blue\" price=*\n| top price by color rating\n"
}
] | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5848304/"
] |
74,526,831 | <p>I was a developing a flutter app when I suddenly came across an error that I simply can't solve. I have a few variables declared in between the two classes of a stateful widget, and when I use <code>setState()</code> to update their values from within the <code><state></code> class, the app lags massively, and... | [
{
"answer_id": 74535396,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "index=ndx sourcetype=srctp rating=\"bad\" color=\"blue\" price=*\n| top price by color rating\n"
}
] | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16727709/"
] |
74,526,841 | <p>I am trying to create a boxplot but only have two values per factor, which I want to use as a starting and ending point for the boxplot bars.</p>
<p>I have a data frame (df) that looks like this:</p>
<pre><code> ID **spp** **lrr** Est SE
1 25 species 1 -1.029... | [
{
"answer_id": 74527414,
"author": "neilfws",
"author_id": 89482,
"author_profile": "https://Stackoverflow.com/users/89482",
"pm_score": 0,
"selected": false,
"text": "geom_crossbar library(dplyr)\nlibrary(ggplot2)\nlibrary(scales)\n\ndf1 %>% \n group_by(spp) %>% \n mutate(upper = max(... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17187761/"
] |
74,526,849 | <p>I have a Blazor service which accepts any draggable object, boxed as <code>object</code>. It could be a dragged user, or a classroom, or a scheduled item or almost anything else I might dream up later.</p>
<p>When the draggable is dropped into any component which supports dropping, the component needs to check if i... | [
{
"answer_id": 74527414,
"author": "neilfws",
"author_id": 89482,
"author_profile": "https://Stackoverflow.com/users/89482",
"pm_score": 0,
"selected": false,
"text": "geom_crossbar library(dplyr)\nlibrary(ggplot2)\nlibrary(scales)\n\ndf1 %>% \n group_by(spp) %>% \n mutate(upper = max(... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3433178/"
] |
74,526,866 | <p><a href="https://i.stack.imgur.com/0rj83.png" rel="nofollow noreferrer">enter image description here</a>
<a href="https://i.stack.imgur.com/sFKiK.png" rel="nofollow noreferrer">enter image description here</a>
I think is same array type, but, Javascript doesn't import data to second type 'proj_name'.</p>
<p>I use ax... | [
{
"answer_id": 74527414,
"author": "neilfws",
"author_id": 89482,
"author_profile": "https://Stackoverflow.com/users/89482",
"pm_score": 0,
"selected": false,
"text": "geom_crossbar library(dplyr)\nlibrary(ggplot2)\nlibrary(scales)\n\ndf1 %>% \n group_by(spp) %>% \n mutate(upper = max(... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20032012/"
] |
74,526,881 | <p>The Stockfish chess engine needs to store, for its evaluation, both an endgame score and a middlegame score.</p>
<p>Instead of storing them separately, it packs them into one <code>int</code>. The middlegame score is stored in the lower 16 bits. The endgame score is stored in the higher 16 bits, as-is if the middleg... | [
{
"answer_id": 74526932,
"author": "Jeffrey",
"author_id": 4474230,
"author_profile": "https://Stackoverflow.com/users/4474230",
"pm_score": 2,
"selected": false,
"text": "23 31 230031 69 93 230031 * 3 690093"
},
{
"answer_id": 74527051,
"author": "Ranoiaetep",
"author_id... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7884305/"
] |
74,526,925 | <p>So I'm trying to plot a bunch of coordinates on the earth and track how many coordinates are in each country. I have plotted the map and coordinates fine, but when I try to use the intersection to count how many coordinates fall within each country (polygon) it results in error. I've tried using the st_make_valid fu... | [
{
"answer_id": 74528874,
"author": "Jindra Lacko",
"author_id": 7756889,
"author_profile": "https://Stackoverflow.com/users/7756889",
"pm_score": 4,
"selected": true,
"text": "{rnaturalearth} {maps} library(sf)\n\nrnaturalearth::ne_countries(scale = \"medium\", returnclass = \"sf\")|>\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20534438/"
] |
74,526,990 | <p>So, this bug has something to do with converting the player choice 1-9 to displaying it on the board with a X or O. It displays correctly it's just they can over loop each other buy just putting in the same input and I'm not quite sure how to fix this. I've tried moving the convert() around the play game() in the fo... | [
{
"answer_id": 74528909,
"author": "w o h",
"author_id": 12381721,
"author_profile": "https://Stackoverflow.com/users/12381721",
"pm_score": 1,
"selected": false,
"text": "player1 player2 \" \""
},
{
"answer_id": 74536589,
"author": "shractic",
"author_id": 20568176,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568176/"
] |
74,526,999 | <p>I want to make a dynamic array that stores a game board (chess) but the board is stored in a 2d array. how can I update an array by increasing the size without deleting the stored data?</p>
<pre><code>String[][] TablaInicial = new String[17][17];
List<List<String>> Prueba = new ArrayList<List<Strin... | [
{
"answer_id": 74528909,
"author": "w o h",
"author_id": 12381721,
"author_profile": "https://Stackoverflow.com/users/12381721",
"pm_score": 1,
"selected": false,
"text": "player1 player2 \" \""
},
{
"answer_id": 74536589,
"author": "shractic",
"author_id": 20568176,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74526999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568230/"
] |
74,527,010 | <p>I am new to programming and I am trying below code in Flutter:</p>
<pre><code>DateTime dt2 = DateTime.parse(strDateToCompare).toLocal();
</code></pre>
<p>where value of <code>strDateToCompare</code> is <strong>14 Nov 2022</strong></p>
<p>It gives me below error:</p>
<blockquote>
<p>FormatException: Invalid date form... | [
{
"answer_id": 74527072,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 3,
"selected": true,
"text": "DateTime.parse() \"2012-02-27\"\n\"2012-02-27 13:27:00\"\n\"2012-02-27 13:27:00.123456789z\"\n\"2012-02-27 13:27:00,... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4827817/"
] |
74,527,011 | <p>I'm using OpenMP to parallelize the loop, that is internally using AVX-512 with <a href="https://github.com/vectorclass" rel="nofollow noreferrer">Agner Fog's VCL Vector Class Library.</a></p>
<p>Here is the code:</p>
<pre><code>double HarmonicSeries(const unsigned long long int N) {
unsigned long long int i;
Ve... | [
{
"answer_id": 74527072,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 3,
"selected": true,
"text": "DateTime.parse() \"2012-02-27\"\n\"2012-02-27 13:27:00\"\n\"2012-02-27 13:27:00.123456789z\"\n\"2012-02-27 13:27:00,... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3082774/"
] |
74,527,018 | <p>so i have data frame as below</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: right;">A1</th>
<th style="text-align: right;">A2</th>
<th style="text-align: right;">A3</th>
<th style="text-align: right;">A4</th>
<th style="text-align: right;">A5</th>
<th style="text-ali... | [
{
"answer_id": 74527072,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 3,
"selected": true,
"text": "DateTime.parse() \"2012-02-27\"\n\"2012-02-27 13:27:00\"\n\"2012-02-27 13:27:00.123456789z\"\n\"2012-02-27 13:27:00,... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567944/"
] |
74,527,021 | <p>I have a table named <code>orders</code> in a SQL database that looks like this:</p>
<pre><code> user_id email segment destination revenue
1 joe@smith.com basic New York 500
1 joe@smith.com luxury London 750
1 joe@smith.co... | [
{
"answer_id": 74527126,
"author": "gbellmann",
"author_id": 3465108,
"author_profile": "https://Stackoverflow.com/users/3465108",
"pm_score": 3,
"selected": true,
"text": "SELECT\n DISTINCT(o.user_id),\n o.email\nFROM orders o\nWHERE\n (\n -- Clause 1\n (o.segment = 'luxury' ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5179643/"
] |
74,527,056 | <p>I want to return a chain of Promises into a single Promise. I want to know how acheive it.</p>
<pre><code>function xbox(){
let games = "https://api.rawg.io/api/games?key=f648fbbe7d024a9d9b021bbd24cea8b5"
let pages = []
let videogames = []
let play
for(let i = 1; i <= 5; i++){
... | [
{
"answer_id": 74527095,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "Promise.all return play\n .then(results => results.flat());\n function xbox(){\n let games = \"https:/... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15201746/"
] |
74,527,058 | <p>I have a <a href="https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv2D" rel="nofollow noreferrer"><code>tf.keras.layers.Conv2D</code></a> constructed like so:</p>
<pre class="lang-py prettyprint-override"><code>>>> conv2d_layer = tf.keras.layers.Conv2D(filters=128, kernel_size=(3, 3), strides=2... | [
{
"answer_id": 74527095,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "Promise.all return play\n .then(results => results.flat());\n function xbox(){\n let games = \"https:/... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11163122/"
] |
74,527,076 | <p>I'm looking for a way to draw a special shape like in the picture using Css3. Any idea or drawing way to draw that shape using Css3?</p>
<img src="https://i.stack.imgur.com/uK3R7.png" width="300">
<p>I have referenced several ways but it just draws into a normal triangle.</p>
<p><div class="snippet" data-lang="js" d... | [
{
"answer_id": 74527679,
"author": "Junaid Shaikh",
"author_id": 17033432,
"author_profile": "https://Stackoverflow.com/users/17033432",
"pm_score": 0,
"selected": false,
"text": "#shape{\n width: 100px;\n height: 100px;\n border-left: 0px solid transparent;\n border-top: 0px... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17443697/"
] |
74,527,084 | <p>I tried to install pyplot using 'pip install pyplot' in command prompt while it was installing by mistake i closed command prompt then again i am trying to install pyplot using the same command but it was not installing.Can anyone guide me how to install pyplot<a href="https://i.stack.imgur.com/gs9RZ.png" rel="nofol... | [
{
"answer_id": 74527649,
"author": "Dat Le",
"author_id": 20568538,
"author_profile": "https://Stackoverflow.com/users/20568538",
"pm_score": 0,
"selected": false,
"text": "from matplotlib import pyplot\n"
}
] | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20281849/"
] |
74,527,114 | <p>In python, we can use such code to fetch all pixels under mask:</p>
<pre><code>src_img = cv2.imread("xxx")
mask = src_img > 50
fetch = src_img[mask]
</code></pre>
<p>what we get is a ndarray including all pixels matching condition mask. How to implement the same function using C++opencv ?</p>
<p>I've fo... | [
{
"answer_id": 74527570,
"author": "stateMachine",
"author_id": 12728244,
"author_profile": "https://Stackoverflow.com/users/12728244",
"pm_score": 2,
"selected": false,
"text": "C++ std::vector // Read the input image:\nstd::string imageName = \"D://opencvImages//grayDog.png\";\ncv::Mat... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11090070/"
] |
74,527,120 | <p>I've initialized the variable I wanted, but after adding it's values through a switch case, I cannot return it. Is there any solutions?`</p>
<pre><code>
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print(&quo... | [
{
"answer_id": 74527270,
"author": "Tan Sang",
"author_id": 10297961,
"author_profile": "https://Stackoverflow.com/users/10297961",
"pm_score": 0,
"selected": false,
"text": "int hasil = 0; default default:\n hasil = 0;\n System.out.println(\"Operator tidak valid\");\n"
},
{
"a... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14210020/"
] |
74,527,131 | <p>I need to push 1 item to array and save it to mongo if that item is not existed in array.</p>
<p>Sample: I have a record with an array</p>
<pre><code>{
_id: ObjectId('xxxxx'),
userEmails: [
{
email: 'xxx@gmail.com,
addedAt: ISODate('xxx')
}
]
}
</code></pre>
<p>Current query:</p>
<pre><code... | [
{
"answer_id": 74535423,
"author": "Dhaval Italiya",
"author_id": 12600501,
"author_profile": "https://Stackoverflow.com/users/12600501",
"pm_score": 2,
"selected": true,
"text": "db.users.updateOne(\n{ _id: ObjectId('xxxxx'),\"userEmails.email\":{$ne: \"xxx@gmail.com\"} },\n{\n $push: ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10787160/"
] |
74,527,145 | <pre><code>System.out.println("Enter the Account no :");//in my main class
int accNo=sc.nextInt();
switch(n)
{
case 1 ->{
Account ac=nbank.searchAccount(accNo);//account is my other class
if(ac!=null)
{
System.out.pr... | [
{
"answer_id": 74527178,
"author": "xlm",
"author_id": 885922,
"author_profile": "https://Stackoverflow.com/users/885922",
"pm_score": 1,
"selected": false,
"text": "tr List withdraw getAccNo Trans List tr.get(0).getAccNo()\n Trans for (Trans tran : tr) {\n System.out.println(\"AccNo :\... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17282548/"
] |
74,527,151 | <pre><code>// splashscreen.h
class SplashScreen : public QMainWindow
{
Q_OBJECT
public:
explicit SplashScreen(QWidget *parent = nullptr);
~SplashScreen();
QTimer *mtimer;
public slots:
void update();
private:
Ui_SplashScreen *ui;
};
</code></pre>
<hr />
<pre><code>// app.h
#include "splashs... | [
{
"answer_id": 74529712,
"author": "Andrew",
"author_id": 10609288,
"author_profile": "https://Stackoverflow.com/users/10609288",
"pm_score": 0,
"selected": false,
"text": "QObject::connect(timer, &QTimer::timeout, this, &SplashScreen::update);\n"
},
{
"answer_id": 74534935,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19324589/"
] |
74,527,241 | <p>I am using Datadog to track user activity in my app. Now I need to instrument webviews. After <a href="https://docs.datadoghq.com/real_user_monitoring/android/?tab=kotlin#configuration" rel="nofollow noreferrer">initializing datadog's sdk </a>, its documentation says that I have to call the following code snippet:</... | [
{
"answer_id": 74529712,
"author": "Andrew",
"author_id": 10609288,
"author_profile": "https://Stackoverflow.com/users/10609288",
"pm_score": 0,
"selected": false,
"text": "QObject::connect(timer, &QTimer::timeout, this, &SplashScreen::update);\n"
},
{
"answer_id": 74534935,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12772017/"
] |
74,527,264 | <p>I have <code>product serializer</code> which return <code>category_offer_price</code> & <code>product_offer_price</code>,
before getting this response I want to compare both price and only return whichever is highest price.</p>
<p>#Serilaizer.py</p>
<pre><code>class ProductSerializer(ModelSerializer):
catego... | [
{
"answer_id": 74527415,
"author": "Niko",
"author_id": 7100120,
"author_profile": "https://Stackoverflow.com/users/7100120",
"pm_score": 3,
"selected": true,
"text": "from django.shortcuts import get_object_or_404\n\nclass ProductSerializer(ModelSerializer):\n category = CategorySeri... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16853253/"
] |
74,527,290 | <p>Hey can anyone help me here
I'm supposed to get a number count for each letter used in this string here using for loops and if statement.</p>
<p>quote= "I watched in awe as I saw her swim across the ocean"</p>
<p>The pseudocode given is this:</p>
<pre><code>for every letter in the alphabet list:
Create... | [
{
"answer_id": 74527415,
"author": "Niko",
"author_id": 7100120,
"author_profile": "https://Stackoverflow.com/users/7100120",
"pm_score": 3,
"selected": true,
"text": "from django.shortcuts import get_object_or_404\n\nclass ProductSerializer(ModelSerializer):\n category = CategorySeri... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568470/"
] |
74,527,301 | <p>In C (let's say C11 if we need to specific), is the following program well-defined? Will it always print <code>a=3 b=4</code> or could compiler optimizations affect the output?</p>
<p>(The real-world motivation is to provide a read-only public "view" of a struct that is only supposed to be modified by a pa... | [
{
"answer_id": 74527323,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 3,
"selected": true,
"text": "const struct obj_private *priv = mem;\nconst struct obj_private *pub = mem;\n"
},
{
"answer_id": 74566101,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4086593/"
] |
74,527,325 | <p>I have this data.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Code</th>
<th>Beg. date</th>
<th>End date</th>
<th>Class</th>
</tr>
</thead>
<tbody>
<tr>
<td>54</td>
<td>01/03/2021</td>
<td>10/10/2020</td>
<td>166</td>
</tr>
<tr>
<td>54</td>
<td>11/10/2021</td>
<td>31/12/9999</td>
<td>... | [
{
"answer_id": 74527323,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 3,
"selected": true,
"text": "const struct obj_private *priv = mem;\nconst struct obj_private *pub = mem;\n"
},
{
"answer_id": 74566101,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14727908/"
] |
74,527,327 | <p>I have code like the following:</p>
<pre class="lang-rust prettyprint-override"><code>enum Either<L, R> {
Left(L),
Right(R)
}
enum SomeMessageType {
// ...
}
fn do_something<T>() {
let data: Vec<Either<T, SomeMessageType>> = ...;
// ...
}
</code></pre>
<p>I want to be ... | [
{
"answer_id": 74529868,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 2,
"selected": true,
"text": "Left Right ; fn do_something() {\n use Either::*;\n let data = vec![Right(T::SomeVariant), Left(SomeMessageType::... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7876637/"
] |
74,527,344 | <p>I have a problem. I want to create a calculated column call ExpectedOutcome .</p>
<p>The value of column ExpectedOutcome for 1st row where No.Session = 1 is calculated by Score + 60.
From the second row, the value of ExpectedOutcome = previous ExpectedOutcome + Score.</p>
<p>The value of ExpectedOutcome is always in... | [
{
"answer_id": 74529868,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 2,
"selected": true,
"text": "Left Right ; fn do_something() {\n use Either::*;\n let data = vec![Right(T::SomeVariant), Left(SomeMessageType::... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568420/"
] |
74,527,369 | <br/>
Im having a small concern if we can access a value inside a value.
<p>Eg:<br/>
myDict = {1:"Hey", 2:"Bye,1,2,3,4"}</p>
<p>As in the example above..<br/>
How can I print/access the value 4 in myDict?? Is it possible with indexing??<br/>
Eg: 4 # Printing 4 from myDict
<br/><br/>
Thanks.</p>
| [
{
"answer_id": 74529868,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 2,
"selected": true,
"text": "Left Right ; fn do_something() {\n use Either::*;\n let data = vec![Right(T::SomeVariant), Left(SomeMessageType::... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18299392/"
] |
74,527,384 | <p>how to solved this issue? when im trying to install mongo compass
<a href="https://i.stack.imgur.com/5Lxl7.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>i dont know how to fix this issue</p>
| [
{
"answer_id": 74529868,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 2,
"selected": true,
"text": "Left Right ; fn do_something() {\n use Either::*;\n let data = vec![Right(T::SomeVariant), Left(SomeMessageType::... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568608/"
] |
74,527,393 | <p><br>I have the following layout for my report:<br>
<a href="https://i.stack.imgur.com/aQNiu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aQNiu.png" alt="enter image description here" /></a></p>
<p>where Cost is my dimension measure field calculated for each year at column level for different Pr... | [
{
"answer_id": 74529868,
"author": "cafce25",
"author_id": 442760,
"author_profile": "https://Stackoverflow.com/users/442760",
"pm_score": 2,
"selected": true,
"text": "Left Right ; fn do_something() {\n use Either::*;\n let data = vec![Right(T::SomeVariant), Left(SomeMessageType::... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9055800/"
] |
74,527,395 | <p>I have just started exploring Cypress and came across such a problem:</p>
<p><strong>Is it possible to select/ or set a value in a dropdown box</strong>?, when <strong>there is no select tag in the html code</strong></p>
<p>The data (options) are from a global variables in react.</p>
<p>For example lets take this si... | [
{
"answer_id": 74529597,
"author": "Alapan Das",
"author_id": 4571271,
"author_profile": "https://Stackoverflow.com/users/4571271",
"pm_score": 0,
"selected": false,
"text": "cy.get('selector').click //Expands the dropdown\ncy.contains('EUR').click() //selects EUR\n"
},
{
"answer... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19586543/"
] |
74,527,418 | <p>I'm trying to use <code>GREATEST()</code> in Snowflake, but whenever I have null values, I get <code>null</code> instead of the desired result:</p>
<pre class="lang-sql prettyprint-override"><code>select greatest(1,2,null);
-- null
</code></pre>
<p>This behavior has confused many, and it begins with the behavior of... | [
{
"answer_id": 74527419,
"author": "Felipe Hoffa",
"author_id": 132438,
"author_profile": "https://Stackoverflow.com/users/132438",
"pm_score": 2,
"selected": false,
"text": "greatest() create or replace function greatest2(x1 float, x2 float)\nreturns float\nas $$\n coalesce(greatest(... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/132438/"
] |
74,527,422 | <p>I would like to change the <code>top</code> property value of the <code>Positioned</code> widget according to screen orientation.</p>
<p>I didn't know how to do it.</p>
<p>Can anyone help?</p>
| [
{
"answer_id": 74527482,
"author": "Jungwon",
"author_id": 15134376,
"author_profile": "https://Stackoverflow.com/users/15134376",
"pm_score": 3,
"selected": true,
"text": "MediaQuery.of(context).orientation Positioned(\n top: MediaQuery.of(context).orientation == Orientation.portrait ?... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11878615/"
] |
74,527,424 | <p>sorry im really new to python</p>
<p>im trying to keep the cursor within a 100x100 box but it doesnt do that, im still able to move it within a t shape spanning the whole screen and not a box in the middle of it.
it seems like its just ignoring 1 of the variables</p>
<p>what this is supposed to do is simply detect i... | [
{
"answer_id": 74527482,
"author": "Jungwon",
"author_id": 15134376,
"author_profile": "https://Stackoverflow.com/users/15134376",
"pm_score": 3,
"selected": true,
"text": "MediaQuery.of(context).orientation Positioned(\n top: MediaQuery.of(context).orientation == Orientation.portrait ?... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568478/"
] |
74,527,429 | <p>having some issues with my SPL query. The search below is creating a table from AWS cloud trail logs, and is using a lookup file containing AD data. Each row of the table contains login data from AWS like last login and number of logins, Im trying to use the AD lookup to see if the users logging in are still active ... | [
{
"answer_id": 74535462,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "lookup | rename user_email AS email\n| lookup identity_ad email OUTPUTNEW bunit memberOf identity first last\n| where isnot... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11762522/"
] |
74,527,452 | <p>I'm trying to make a button that switchs the mode from light to dark. By default it's light mode, but for some reason, when I switch to dark mode, it works, but it won't switch back to light mode.</p>
<p>Here is the javascript code:</p>
<pre><code>const modeButton = document.getElementById('light-dark-btn');
modeBu... | [
{
"answer_id": 74535462,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "lookup | rename user_email AS email\n| lookup identity_ad email OUTPUTNEW bunit memberOf identity first last\n| where isnot... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20487730/"
] |
74,527,469 | <p>i want to replace string like :</p>
<p>CD7849O => CD18490</p>
<p>so if you find a char in the form of 7 and O, replace them with 1 and 0 (7 => 1, O => 0)</p>
<p>i tried with indexofchar but it's not work</p>
<pre><code>string result = "CD7849O";
string[] charToFind = { "0", "O"... | [
{
"answer_id": 74535462,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "lookup | rename user_email AS email\n| lookup identity_ad email OUTPUTNEW bunit memberOf identity first last\n| where isnot... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11070430/"
] |
74,527,506 | <p>I am trying to create a random set of 25 numbers, which are between 2 and 25, and sum up to 100 in python.</p>
<p><a href="https://stackoverflow.com/questions/70593981/create-a-list-of-n-random-numbers-with-max-and-min-value-and-total-sum">This Question</a> gives an answer, but it seems that the maximum number never... | [
{
"answer_id": 74535462,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 0,
"selected": false,
"text": "lookup | rename user_email AS email\n| lookup identity_ad email OUTPUTNEW bunit memberOf identity first last\n| where isnot... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20252795/"
] |
74,527,527 | <p>My problem is that I need to take an inputted integer and return the prime factorization of it. It needs to be in the form of:</p>
<pre class="lang-none prettyprint-override"><code>int * int * int * int
</code></pre>
<p>For example, the prime factorization of 180 would return:</p>
<pre class="lang-none prettyprint-o... | [
{
"answer_id": 74527674,
"author": "phatfingers",
"author_id": 1031887,
"author_profile": "https://Stackoverflow.com/users/1031887",
"pm_score": 2,
"selected": true,
"text": "n while (n % i == 0) {\n str += (str.equals(\"\") ? i : \" * \" + i);\n n /= i;\n}\n"
},
{
"answer_... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20146539/"
] |
74,527,557 | <p>I'm supposed to be outputting a report in a window. I created a method for the table and header, but when I run the program they're outputting to separate windows. I know I need to create another method to display the report, but I can't figure out what the right formals are.</p>
<p>Here's what I have and what it's ... | [
{
"answer_id": 74527674,
"author": "phatfingers",
"author_id": 1031887,
"author_profile": "https://Stackoverflow.com/users/1031887",
"pm_score": 2,
"selected": true,
"text": "n while (n % i == 0) {\n str += (str.equals(\"\") ? i : \" * \" + i);\n n /= i;\n}\n"
},
{
"answer_... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559901/"
] |
74,527,597 | <p>I'm automating a web page with selenium-java where there's a checkbox with tri-state. The HTML is this:</p>
<pre><code><input data-qa-anchor="field#includeDeletedPosts" class="self-center w-5 h-5" type="checkbox" name="includeDeletedPosts">
</code></pre>
<p>I want to cre... | [
{
"answer_id": 74536071,
"author": "BeToast",
"author_id": 15271076,
"author_profile": "https://Stackoverflow.com/users/15271076",
"pm_score": 2,
"selected": true,
"text": "JavascriptExecutor js = (JavascriptExecutor)getDriver();\nObject obj = js.executeScript(\"return document.getElemen... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8391555/"
] |
74,527,628 | <pre><code>import java.util.*;
class SeriesSum
{
int x,n,i,j,k,s=1;
double f=0.0;
void accept()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter the value of x and n");
x=sc.nextInt();
n=sc.nextInt();
}
void compute()
{
for(i=2;... | [
{
"answer_id": 74536071,
"author": "BeToast",
"author_id": 15271076,
"author_profile": "https://Stackoverflow.com/users/15271076",
"pm_score": 2,
"selected": true,
"text": "JavascriptExecutor js = (JavascriptExecutor)getDriver();\nObject obj = js.executeScript(\"return document.getElemen... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19886834/"
] |
74,527,667 | <p>Thanks! Those suggestions are great. Now how would I make it if the display is style="display:none" for each column to have each column not take up blank space and just disappear altogether? When I currently attempt to do it, it still shows the space being taken up.
I'm struggling to make this collapse ... | [
{
"answer_id": 74536071,
"author": "BeToast",
"author_id": 15271076,
"author_profile": "https://Stackoverflow.com/users/15271076",
"pm_score": 2,
"selected": true,
"text": "JavascriptExecutor js = (JavascriptExecutor)getDriver();\nObject obj = js.executeScript(\"return document.getElemen... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568203/"
] |
74,527,672 | <p>Not too sure why but I have run into an issue. Essentially, I have a button in one VC which opens an action sheet. Once a user chooses a picture from their library or takes a photo and chooses that, I wanted to navigate away from that VC, onto a new VC to display that picture chosen. However, I run into this issue a... | [
{
"answer_id": 74527739,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 0,
"selected": false,
"text": "postImage AddPostViewController AddPostViewController UIImage AddPostViewController AddPostViewController postI... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15620333/"
] |
74,527,676 | <p>I am new to coding generally, and have been working on a quiz program on HTML and CSS (data is from PostgreSQL, framework SpringBoot on Eclipse. PHP and JQuery not included in syllabus).</p>
<p>Here's my problem:</p>
<ol>
<li>Now I have a list of answers where the user will have to select from.</li>
<li>Was hoping t... | [
{
"answer_id": 74527739,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 0,
"selected": false,
"text": "postImage AddPostViewController AddPostViewController UIImage AddPostViewController AddPostViewController postI... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20518690/"
] |
74,527,683 | <p>Why can't you do this if you try to find out whether an int is between two numbers:</p>
<pre><code>if (16.5 < value < 17.5)
</code></pre>
<p>Instead of it, you'll have to do</p>
<pre><code>if (value > 16.5 && value < 17.5)
</code></pre>
<p>which seems like a bit of overhead.</p>
| [
{
"answer_id": 74527969,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 1,
"selected": false,
"text": "between(value, 1, 10);\n if ( a > b )\n if (16.5 < value < 17.5)\n if (16.5 < value > 17.5)\n if (16.5 > value < 17.... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19440771/"
] |
74,527,685 | <p>The objective of this code snippet was to create a 2D array of shape (10,10) with</p>
<p>array[0,0]=1;</p>
<p>array[0,9]=100; and</p>
<p>array[9,0]=50.</p>
<p>Complications arose when the interval between these elements had to be equal as shown in the expected output. Rows had to increment with equal intervals up-to... | [
{
"answer_id": 74527969,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 1,
"selected": false,
"text": "between(value, 1, 10);\n if ( a > b )\n if (16.5 < value < 17.5)\n if (16.5 < value > 17.5)\n if (16.5 > value < 17.... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506805/"
] |
74,527,702 | <p>I have access to Kibana version 7.3</p>
<p>From this GUI is there a way I can confirm which elasticsearch version it is on? I cannot assume that both components are running the same version.</p>
<p>See question above.</p>
| [
{
"answer_id": 74527969,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 1,
"selected": false,
"text": "between(value, 1, 10);\n if ( a > b )\n if (16.5 < value < 17.5)\n if (16.5 < value > 17.5)\n if (16.5 > value < 17.... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20029589/"
] |
74,527,723 | <p>Dears,</p>
<p>I need to find the Lowest number in the loop scanner. 0 to stop the program. The issue I phased is that every time the lowest will be 0. What is wrong with this code?</p>
<pre><code>import java.util.Scanner;
public class Loop_Scanner {
public static void main(String[] args) {
int x=1;
... | [
{
"answer_id": 74527969,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 1,
"selected": false,
"text": "between(value, 1, 10);\n if ( a > b )\n if (16.5 < value < 17.5)\n if (16.5 < value > 17.5)\n if (16.5 > value < 17.... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568787/"
] |
74,527,726 | <p>I have a derived class, <code>Wrapper</code>, that inherits from a template-defined base class. I'd like to configure <code>Wrapper</code> so that if the base class has constructor parameters, <code>Wrapper</code>'s constructor also includes the base class's constructor params so that it can forward them to the base... | [
{
"answer_id": 74527969,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 1,
"selected": false,
"text": "between(value, 1, 10);\n if ( a > b )\n if (16.5 < value < 17.5)\n if (16.5 < value > 17.5)\n if (16.5 > value < 17.... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/579132/"
] |
74,527,735 | <p>I am trying to set the theme for Emacs but I have been experiencing some errors. Currently my code is:</p>
<pre class="lang-lisp prettyprint-override"><code>;; theme
(defun set-theme-time ()
(let ((light 'modus-operandi)
(dark 'modus-vivendi))
(load-theme light t t)
(load-theme dark t t)
(run-a... | [
{
"answer_id": 74527969,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 1,
"selected": false,
"text": "between(value, 1, 10);\n if ( a > b )\n if (16.5 < value < 17.5)\n if (16.5 < value > 17.5)\n if (16.5 > value < 17.... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20568892/"
] |
74,527,737 | <p>The following image is the example that was given in my computer vision class. Now I cant understand why we are getting 2 unique values of f. I can understand if mxf and myf are different, but shouldn't the focal length 'f' be the same?</p>
<p><a href="https://i.stack.imgur.com/IYixk.png" rel="nofollow noreferrer"><... | [
{
"answer_id": 74527969,
"author": "rodpold",
"author_id": 2566770,
"author_profile": "https://Stackoverflow.com/users/2566770",
"pm_score": 1,
"selected": false,
"text": "between(value, 1, 10);\n if ( a > b )\n if (16.5 < value < 17.5)\n if (16.5 < value > 17.5)\n if (16.5 > value < 17.... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6768132/"
] |
74,527,764 | <p>i have created a antd modal and i want to change modal body color to red here is my code,had applied background color but it is not showing also i want to align image and modalName in a row using flex, i have intalled antd version 4.2, and i am using styled components. dont know whats wrong.please help,and thanks in... | [
{
"answer_id": 74527830,
"author": "Kamran Davar",
"author_id": 12510464,
"author_profile": "https://Stackoverflow.com/users/12510464",
"pm_score": 0,
"selected": false,
"text": "Wrapper return (\n <>\n <div className=\"head\">hello</div>\n <B... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19706661/"
] |
74,527,779 | <p>I am trying to validate a username field like this:</p>
<ol>
<li>6 alphabets mandatory</li>
<li>Might contain any number of numericals</li>
<li>Might contain any number of underscores</li>
</ol>
<p>For example: <strong>abcdef</strong>, <strong>abc9def</strong>, <strong>_testaa</strong>, <strong>__test_aa_</strong>, ... | [
{
"answer_id": 74527830,
"author": "Kamran Davar",
"author_id": 12510464,
"author_profile": "https://Stackoverflow.com/users/12510464",
"pm_score": 0,
"selected": false,
"text": "Wrapper return (\n <>\n <div className=\"head\">hello</div>\n <B... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10951873/"
] |
74,527,783 | <p>I'm finding it awfully hard to see how to simply cover a rectangular XAML element with repeating copies of a bitmap! I am using WinUI 3 with Windows App SDK. I would like to use the repeating image as a background element in my app.</p>
<p>It would seem to involve the composition API. Some tantalizing clues are give... | [
{
"answer_id": 74527830,
"author": "Kamran Davar",
"author_id": 12510464,
"author_profile": "https://Stackoverflow.com/users/12510464",
"pm_score": 0,
"selected": false,
"text": "Wrapper return (\n <>\n <div className=\"head\">hello</div>\n <B... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6090828/"
] |
74,527,788 | <p>I've made progress (I think) with getting delegate access scope working on my custom app for my store. However, I keep getting this error:</p>
<blockquote>
<p>Error: GraphQL Error (Code: 422):
{"response":{"errors":{"delegate_access_scope":["The access scope
can't be empty."]}... | [
{
"answer_id": 74527830,
"author": "Kamran Davar",
"author_id": 12510464,
"author_profile": "https://Stackoverflow.com/users/12510464",
"pm_score": 0,
"selected": false,
"text": "Wrapper return (\n <>\n <div className=\"head\">hello</div>\n <B... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1527700/"
] |
74,527,821 | <p>Using class Based (APIView) in Django rest framework for Getting and Patch (Updating) UserInfo data.</p>
<p><strong>views.py</strong></p>
<pre><code>class getUserInfo(APIView):
permission_classes = [permissions.IsAuthenticated]
def get(self, request, format=None):
user = request.user
userinf... | [
{
"answer_id": 74527830,
"author": "Kamran Davar",
"author_id": 12510464,
"author_profile": "https://Stackoverflow.com/users/12510464",
"pm_score": 0,
"selected": false,
"text": "Wrapper return (\n <>\n <div className=\"head\">hello</div>\n <B... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18388506/"
] |
74,527,847 | <p>I have a react application with a good amount of states. I've been looking around trying to find the best way to save the states to local storage. Honestly, none of the answers were helping so I decided to ask my own.</p>
<p>What's the best way to go about saving these states to local storage?</p>
<pre><code>functio... | [
{
"answer_id": 74528829,
"author": "kushagra-aa",
"author_id": 14001385,
"author_profile": "https://Stackoverflow.com/users/14001385",
"pm_score": 3,
"selected": true,
"text": "localStorage.setItem('thumb',thumb);\n JSON.stringify let anObject={\n \"thumb\":thumb,\n \"timestamp\":times... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18060222/"
] |
74,527,893 | <p>I have a List:</p>
<p><code>List<StudentBean> resultList</code></p>
<p>StudentBean has something like with getters and setters:</p>
<p><code>{ Integer StudentId, String StudentName, String Section}</code>.</p>
<p>I have a map with values: <code>Map<Integer, StudentBean> orginialStudentDetails</code></p>
... | [
{
"answer_id": 74527935,
"author": "Joxtacy",
"author_id": 8236993,
"author_profile": "https://Stackoverflow.com/users/8236993",
"pm_score": 2,
"selected": false,
"text": "StudentBean for (StudentBean studentBean : resultList) {\n originalStudentDetails.put(studentBean.getStudentId(),... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14871599/"
] |
74,527,919 | <p>I am trying to input an array using a scanner. That part is already done. Now, I am tasked to get the maximum and minimum numbers from my input. I was able to get the maximum but with the minimum, it is returning 0.</p>
<p>Is there a misplacement of syntax perhaps?</p>
<pre><code>import java.util.Scanner;
public cl... | [
{
"answer_id": 74528002,
"author": "lamsmallsmall",
"author_id": 13511160,
"author_profile": "https://Stackoverflow.com/users/13511160",
"pm_score": 0,
"selected": false,
"text": "else if (array[i]<min) if(i==0){\nmin = array[0];\nmax = array[0];\n}\n"
},
{
"answer_id": 74528071,... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20569062/"
] |
74,527,926 | <p>Here is my view(Ajax)</p>
<pre><code> $('#basicInfoForm').submit(function(e){
e.preventDefault();
let formData = new FormData(this);
$.ajax({
type: "POST",
url: &qu... | [
{
"answer_id": 74528002,
"author": "lamsmallsmall",
"author_id": 13511160,
"author_profile": "https://Stackoverflow.com/users/13511160",
"pm_score": 0,
"selected": false,
"text": "else if (array[i]<min) if(i==0){\nmin = array[0];\nmax = array[0];\n}\n"
},
{
"answer_id": 74528071,... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19485666/"
] |
74,527,928 | <p>I am already installed BERT, But I don't know how to get Non-contextual word embeddings.</p>
<p>For example:</p>
<pre><code>
input: 'Apple'
output: [1,2,23,2,13,...] #embedding of 'Apple'
</code></pre>
<p>How can i get these word embeddings?</p>
<p>Thank you.</p>
<p>I search some method, but no blogs have written ... | [
{
"answer_id": 74530625,
"author": "Jindřich",
"author_id": 5652313,
"author_profile": "https://Stackoverflow.com/users/5652313",
"pm_score": 1,
"selected": false,
"text": "model.embeddings.word_embeddings BertTokenizer"
},
{
"answer_id": 74534963,
"author": "edamame",
"a... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20569060/"
] |
74,527,953 | <p>So, I have a unix time as
endingTime= 1669060881
and then I do this to convert it into ISO format
this.edate = new Date(endingTime*1000).toISOString() ===> 2022-11-21T20:01:21.000Z</p>
<p>slicing it so that it can fir html local date input
this.edate = this.edate.slice(0, -8) ===> 2022-11-21T20:01</p>
<p>and... | [
{
"answer_id": 74530625,
"author": "Jindřich",
"author_id": 5652313,
"author_profile": "https://Stackoverflow.com/users/5652313",
"pm_score": 1,
"selected": false,
"text": "model.embeddings.word_embeddings BertTokenizer"
},
{
"answer_id": 74534963,
"author": "edamame",
"a... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13146189/"
] |
74,527,960 | <p>Is there a more easy way to get this path when mocking functions?</p>
<p>@mock.patch('folder1.folder2.file.class.get_some_information', side_effect=mocked_information)</p>
<p>I would like to have the path for the function get_some_information generated automatically. Thanks!</p>
| [
{
"answer_id": 74528078,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 0,
"selected": false,
"text": "get_some_information __module__ __qualname__ '.'.join(get_some_information.__module__, get_some_information.__qualna... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74527960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13734142/"
] |
74,528,005 | <p>I have a JSON I found that seems to fail to be able to remove an Array after indexing once. Here is the valid JSON below (according to jsonlint.com</p>
<p>Goal: Remove an outer array from what {was a valid JSON} on the outside.</p>
<p><strong>Steps to reproduce</strong></p>
<ol>
<li>validate JSON is valid</li>
<li>r... | [
{
"answer_id": 74528116,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 3,
"selected": true,
"text": ".rows[] zsh .rows[] jq jq '.rows[]' file.json\n"
},
{
"answer_id": 74533184,
"author": "0stone0",
"auth... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5569925/"
] |
74,528,012 | <p>Using the image-crop-picker I am selecting an image from gallery then setting it to state. I then have the option to crop the image and in the array/state I replace the old image with the new cropped one which I am able to do so successfully but the screen doesn't update with the cropped image until I refresh it.</p... | [
{
"answer_id": 74528116,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 3,
"selected": true,
"text": ".rows[] zsh .rows[] jq jq '.rows[]' file.json\n"
},
{
"answer_id": 74533184,
"author": "0stone0",
"auth... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16421620/"
] |
74,528,017 | <p>I'm trying to solve Codewars task and facing issue that looks strange to me.</p>
<p>Codewars task is to write function digital_root(n) that sums digits of n until the end result has only 1 digit in it.
Example: 942 --> 9 + 4 + 2 = 15 --> 1 + 5 = 6 (the function returns 6).</p>
<p>I wrote some bulky code wi... | [
{
"answer_id": 74528116,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 3,
"selected": true,
"text": ".rows[] zsh .rows[] jq jq '.rows[]' file.json\n"
},
{
"answer_id": 74533184,
"author": "0stone0",
"auth... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20567597/"
] |
74,528,026 | <p>If you select the "tv" option, it displays a div, and if you select the "cooker" options, it displays a different div. I want to make it so when one option is selected, the prior div elements have their display become "none."</p>
<p>I've tried making it so when a value is selected, it's... | [
{
"answer_id": 74528116,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 3,
"selected": true,
"text": ".rows[] zsh .rows[] jq jq '.rows[]' file.json\n"
},
{
"answer_id": 74533184,
"author": "0stone0",
"auth... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20134440/"
] |
74,528,041 | <p>I have a dataframe with column <code>df['EVENT_DTL']</code> that looks like this;</p>
<pre><code>1. 변사자 정보 : Kim_******-1****** 2. 발견일시 : 2013년05월18일 13:00 3. 발견장소 : 1) 수사기록 상 주소 주민등록상 주소 : 실거주지 주소 : 시도(발견)장소 주소 : 2) 실제 조사원이 입력한 주소주민등록상 주소 : 실거주지 주소 : 시도(발견)장소 주소 : 조치(사유 포함) : 4. 발견장소 코딩사유 : 자택 / 5. 방법/수단 : 목매달기6. ... | [
{
"answer_id": 74528116,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 3,
"selected": true,
"text": ".rows[] zsh .rows[] jq jq '.rows[]' file.json\n"
},
{
"answer_id": 74533184,
"author": "0stone0",
"auth... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20376341/"
] |
74,528,046 | <p>I have a recyclerView that loads songs from memory and when I scroll it lags,
This is my ViewBinding.</p>
<pre><code>override fun onBindViewHolder(holder: MyHolder, position: Int) {
holder.titleView.text = musicList[position].title
holder.albumName.text = musicList[position].artist
holder.dur... | [
{
"answer_id": 74528305,
"author": "Kushal Prajapati",
"author_id": 14070467,
"author_profile": "https://Stackoverflow.com/users/14070467",
"pm_score": 2,
"selected": false,
"text": " RequestOptions myOptions = new RequestOptions()\n .centerCrop() // or centerCrop\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19468261/"
] |
74,528,070 | <p><a href="https://i.stack.imgur.com/7o4ze.png" rel="nofollow noreferrer">i am getting the error "EmptyDataError No columns to parse from file" when i am reading the data from csv file to json file...</a></p>
<p>i want to insert the data from csv file to json file</p>
| [
{
"answer_id": 74528305,
"author": "Kushal Prajapati",
"author_id": 14070467,
"author_profile": "https://Stackoverflow.com/users/14070467",
"pm_score": 2,
"selected": false,
"text": " RequestOptions myOptions = new RequestOptions()\n .centerCrop() // or centerCrop\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20569138/"
] |
74,528,080 | <p>Facing some compilation errors when using the below example with a variable number of arguments & need some help to find some solution or some better approach.</p>
<p>I am trying to initialize the class variables based on input arguments supplied below criteria, like in the below example I am willing to initiali... | [
{
"answer_id": 74528305,
"author": "Kushal Prajapati",
"author_id": 14070467,
"author_profile": "https://Stackoverflow.com/users/14070467",
"pm_score": 2,
"selected": false,
"text": " RequestOptions myOptions = new RequestOptions()\n .centerCrop() // or centerCrop\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74528080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2621476/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.