qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,340,785 | <p>Does anyone could tell me how to reorder the matrix:</p>
<pre><code>[[1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
[11, 12, 13, 14, 15]]
</code></pre>
<p>To:</p>
<pre><code>[[15, 10, 5],
[14, 9, 4],
[13, 8, 3],
[12, 7, 2],
[11, 6, 1]]
</code></pre>
| [
{
"answer_id": 74340807,
"author": "Ann Zen",
"author_id": 13552470,
"author_profile": "https://Stackoverflow.com/users/13552470",
"pm_score": 0,
"selected": false,
"text": "zip() m = [[1, 2, 3, 4, 5],\n [6, 7, 8, 9, 10],\n [11, 12, 13, 14, 15]]\n\nprint([list(i)[::-1] for i in z... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10237270/"
] |
74,340,788 | <p>Blazor's <code>NavLink</code> component detects whether the link refers to the current page, and sets the <code>active</code> class.</p>
<p>It is customary to also set the <code>aria-current="page"</code> attribute, when it is part of a menu.</p>
<p>Can the component do that somehow? Or could I wrap it in ... | [
{
"answer_id": 74341026,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 0,
"selected": false,
"text": "aria-current=\"@(route == nav route) ? \"page\" : \"\" \")\n"
},
{
"answer_id": 74341289,
"author": "lonix",... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9971404/"
] |
74,340,809 | <pre><code>create table Attributes
(
id int,
AttributeName nvarchar(255),
AttributeValue nvarchar(255)
)
insert into Attributes
values
(1, 'BuiltNo', '001')
,(1, 'ManagerName', 'x')
,(1, 'PlantAddress', 'NY')
,(2, 'BuiltNo', '002')
,(2, 'ManagerName', 'y')
,(2, 'PlantAddress', 'NSW')
,(3, 'BuiltNo', '00... | [
{
"answer_id": 74340910,
"author": "John Cappelletti",
"author_id": 1570000,
"author_profile": "https://Stackoverflow.com/users/1570000",
"pm_score": 0,
"selected": false,
"text": "Declare @I int = 1\nDeclare @J varchar(max) = '{\"BuiltNo\":\"*001\",\"ManagerName\":\"*UpdatedValue\" }'\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1225616/"
] |
74,340,845 | <p>I'm creating a chrome extension (not for new tab) and want to auto play a muted video every time the user goes to a specific website.</p>
<p>I attempted to try it out in <a href="https://codepen.io/i-empty/pen/qBKaMRd" rel="nofollow noreferrer">CodePen</a> and it's still not playing the video.</p>
<pre><code>// Vide... | [
{
"answer_id": 74340900,
"author": "Gonzalo Cugiani",
"author_id": 20149906,
"author_profile": "https://Stackoverflow.com/users/20149906",
"pm_score": 1,
"selected": false,
"text": "play() const videoElem = document.querySelector(\"#video\");\nconst playButton = document.querySelector(\"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435771/"
] |
74,340,857 | <p>I am relatively new to javascript and am trying to get the last line of text in a a textarea on a key press. Is this possible? My code is below.</p>
<pre class="lang-js prettyprint-override"><code>
const textarea = document.getElementById('textarea');
textarea.addEventListener("keydown", (event) => {
... | [
{
"answer_id": 74340900,
"author": "Gonzalo Cugiani",
"author_id": 20149906,
"author_profile": "https://Stackoverflow.com/users/20149906",
"pm_score": 1,
"selected": false,
"text": "play() const videoElem = document.querySelector(\"#video\");\nconst playButton = document.querySelector(\"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20140332/"
] |
74,340,907 | <p>I've Asset Codes which I'm converting into BASE64 like this:</p>
<pre><code>private string GenerateBarcode(string BarCode)
{
string generatebarcode = BarCode;
GeneratedBarcode barcode = BarcodeWriter.CreateBarcode(generatebarcode, BarcodeWriterEncoding.Code128);
barcode.ResizeTo(400, 120);
barcode.... | [
{
"answer_id": 74340900,
"author": "Gonzalo Cugiani",
"author_id": 20149906,
"author_profile": "https://Stackoverflow.com/users/20149906",
"pm_score": 1,
"selected": false,
"text": "play() const videoElem = document.querySelector(\"#video\");\nconst playButton = document.querySelector(\"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8874788/"
] |
74,340,913 | <p>I am working on a project with a React front-end and a Laravel back-end. I am trying to set up my authentication system. I am utilizing SPA authentication using Sanctum. I am successfully utilizing the sanctum/csrf-cookie route, where the XSRF-Token cookie is given. When I then try to follow that up with a login, I ... | [
{
"answer_id": 74340900,
"author": "Gonzalo Cugiani",
"author_id": 20149906,
"author_profile": "https://Stackoverflow.com/users/20149906",
"pm_score": 1,
"selected": false,
"text": "play() const videoElem = document.querySelector(\"#video\");\nconst playButton = document.querySelector(\"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16895460/"
] |
74,340,917 | <p>I keep getting a compilation error if I use an array passed as parameter to a method on std::begin or std::end such as this:</p>
<pre><code>#include <iostream>
#include <algorithm>
using namespace std;
class Test
{
public:
static bool exists(int ints[], int size, int k)
{
if (std::find(... | [
{
"answer_id": 74340975,
"author": "guivi",
"author_id": 1856251,
"author_profile": "https://Stackoverflow.com/users/1856251",
"pm_score": 0,
"selected": false,
"text": "#include <iostream>\n#include <vector>\nbool exists(int x[], const int size, const int k)\n{\n std::vector<int> v(... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2235055/"
] |
74,340,957 | <p>I'm trying to get the cassandra schema version into variable from output of nodetool command.</p>
<p>Here are some of the output of nodetool commands:</p>
<pre><code>Cluster Information:
Name: Test Cluster
Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch
Partitioner: org.apache.cassandra.dht.Mu... | [
{
"answer_id": 74341111,
"author": "Dr Claw",
"author_id": 12962618,
"author_profile": "https://Stackoverflow.com/users/12962618",
"pm_score": 0,
"selected": false,
"text": "version=$(awk '/Schema versions:/ {\n getline\n gsub(/:/,\"\")\n if ($1 == \"UNREACHABLE\") {\n print $2\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12189187/"
] |
74,340,962 | <p>I have a widget in my settings screen something like this:</p>
<pre><code>Widget autoplay()
{
return ChangeNotifierProvider<AutoplayToggle>(
create: (context) => AutoplayToggle(),
child: Consumer<AutoplayToggle>(
builder: (context, provider, child) {... | [
{
"answer_id": 74341111,
"author": "Dr Claw",
"author_id": 12962618,
"author_profile": "https://Stackoverflow.com/users/12962618",
"pm_score": 0,
"selected": false,
"text": "version=$(awk '/Schema versions:/ {\n getline\n gsub(/:/,\"\")\n if ($1 == \"UNREACHABLE\") {\n print $2\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20026121/"
] |
74,340,992 | <p>Currently developing a REST API, with a suite of endpoint functions which update the "state" of a particular resource.</p>
<p>I am using POST to create the initial resource and then updating the state using PUT - Is PUT the correct method to be using?</p>
<p>The state updates are being logged in a journal,... | [
{
"answer_id": 74341134,
"author": "Evert",
"author_id": 80911,
"author_profile": "https://Stackoverflow.com/users/80911",
"pm_score": 1,
"selected": false,
"text": "PUT PUT PUT 200 OK"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/913298/"
] |
74,340,996 | <p>I am trying to migrate my map here over to using getx state management. How do I convert the setstate() portion? I want to use a stateless widget. I have a separate view and controller.</p>
<p>This my MapPage code here. It is still a stateful widget as I could not figure out how to address the setstate portion in my... | [
{
"answer_id": 74341134,
"author": "Evert",
"author_id": 80911,
"author_profile": "https://Stackoverflow.com/users/80911",
"pm_score": 1,
"selected": false,
"text": "PUT PUT PUT 200 OK"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2156469/"
] |
74,341,024 | <pre><code># Program to display the Fibonacci sequence up to n-th term
nterms = int(input("How many Fibonacci numbers would you like to generate? "))
# first two terms
n1, n2 = 1, 1
count = 0
# check if the number of terms is valid
if nterms == 0:
print(f'The first 0 Fibonacci numbers are [].')
elif nte... | [
{
"answer_id": 74341134,
"author": "Evert",
"author_id": 80911,
"author_profile": "https://Stackoverflow.com/users/80911",
"pm_score": 1,
"selected": false,
"text": "PUT PUT PUT 200 OK"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20429919/"
] |
74,341,033 | <p>I have an excel file with one row and 11000 columns. It's a 1x11000 matrix. I want to convert it to rows with 17 columns (n x 17 matrices). What should I do?
Thanks in advance.</p>
<p>As of yet, I haven't found a solution.</p>
| [
{
"answer_id": 74348871,
"author": "VBasic2008",
"author_id": 9814069,
"author_profile": "https://Stackoverflow.com/users/9814069",
"pm_score": 1,
"selected": false,
"text": "Sub SingleRowToRows()\n \n Const SOURCE_WORKSHEET_NAME As String = \"Sheet1\"\n Const SOURCE_FIRST_CELL_... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435870/"
] |
74,341,077 | <p>I want to access my server from an other instance, which is also within the same VPC, but my security group configuration does not allow me to do so.</p>
<p>My security inbound rule as follows</p>
<pre><code>Port range | Protocol | Source
22 | TCP | 10.0.0.0/8
</code></pre>
<ul>
<li>telnet private-ip ... | [
{
"answer_id": 74341087,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "0.0.0.0/0"
},
{
"answer_id": 74341329,
"author": "John Rotenstein",
"author_id": 174777,
"author_pr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15500282/"
] |
74,341,091 | <p>I have the next <code>TabView</code>:</p>
<pre><code>TabView(selection: self.$viewModel.selection) {
StoriesView()
.tabItem {
Label("Stories", systemImage: "play.square") // I need a yellow icon here
}
.tag("stories")
MessengerView()
.... | [
{
"answer_id": 74341087,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "0.0.0.0/0"
},
{
"answer_id": 74341329,
"author": "John Rotenstein",
"author_id": 174777,
"author_pr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3253896/"
] |
74,341,093 | <p>I have a VideoPlayer component with crop functionality that's not working well after migration to functional over class component.</p>
<p>The VideoPlayer has a isVideoPlaying state (useState).
It also contains a function toggleOrChangeIsVideoPlaying:</p>
<pre><code>const togglePlayPauseVideo = (toPlay) => {
if ... | [
{
"answer_id": 74341087,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "0.0.0.0/0"
},
{
"answer_id": 74341329,
"author": "John Rotenstein",
"author_id": 174777,
"author_pr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6137045/"
] |
74,341,112 | <p>How do i make sure that when ever the user enter a number less than 0 or more than 300 it asks them to try again. I have trouble with the code. My code works on the first score but the rest it keeps accepting values greater than 300 and less than 0. How would i be able to fix this issue without changing a big part o... | [
{
"answer_id": 74341087,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "0.0.0.0/0"
},
{
"answer_id": 74341329,
"author": "John Rotenstein",
"author_id": 174777,
"author_pr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20353478/"
] |
74,341,130 | <p>I need a JavaScript function that allows to select only two divs out of several and insert them respectively into others. My code has 15 .item and 4 .item2. I'm developing an app that generates essay templates. The .item are keyword arguments that need to be included in a predicate structure (class .item2, which has... | [
{
"answer_id": 74341087,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 2,
"selected": false,
"text": "0.0.0.0/0"
},
{
"answer_id": 74341329,
"author": "John Rotenstein",
"author_id": 174777,
"author_pr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434402/"
] |
74,341,139 | <p>I have an image that I read in with <code>tifffile.imread</code> and it is turned into a 3D matrix, with the first dimension representing the Y coordinate, the second the X and the third the channel of the image (these images are not RGB and so there can be an arbitrary number of channels).</p>
<p>Each of these imag... | [
{
"answer_id": 74341746,
"author": "Raibek",
"author_id": 11040577,
"author_profile": "https://Stackoverflow.com/users/11040577",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport numpy.ma as ma\nimport pandas as pd\n\nsample = imread(input_img)\nlabel_mask = np.load(... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13642459/"
] |
74,341,189 | <p>I have example python project with multiple files:</p>
<p>src/common.py:</p>
<pre><code>def toint(x):
return int(x)
</code></pre>
<p>src/foo1.py:</p>
<pre><code>import common
def add(a,b):
return common.toint(a) + common.toint(b)
</code></pre>
<p>src/foo2.py:</p>
<pre><code>import common
def sub(a,b):
... | [
{
"answer_id": 74341746,
"author": "Raibek",
"author_id": 11040577,
"author_profile": "https://Stackoverflow.com/users/11040577",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport numpy.ma as ma\nimport pandas as pd\n\nsample = imread(input_img)\nlabel_mask = np.load(... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11114361/"
] |
74,341,190 | <p>Sincerelly, I read a lot of times about this commands and I don't understand what the real objectives. I'm reading pedestal documentation and I saw a lot of this command <code>-></code> and <code>->></code> and I read in nubank's github public repository somethings as <code>^:private</code>, <code>s/def</co... | [
{
"answer_id": 74341865,
"author": "Juraj Martinka",
"author_id": 1184752,
"author_profile": "https://Stackoverflow.com/users/1184752",
"pm_score": 4,
"selected": true,
"text": "-> ->> s/def s clojure.spec.alpha s/def clojure.spec.alpha/defn ^:private"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8033592/"
] |
74,341,209 | <p>In Python, many statements can cause errors, but I would like to know what are the simplest statements that can cause an Error <strong>except</strong> for <code>NameError</code> and <code>SyntaxError</code> and their subclasses such as <code>IdentationError</code></p>
<p>Using the interactive Python shell, I have tr... | [
{
"answer_id": 74341217,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 2,
"selected": true,
"text": "ZeroDivisionError 1/0\n NameError SyntaxError"
},
{
"answer_id": 74341248,
"author": "Code-Apprentic... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15037829/"
] |
74,341,211 | <p>When I'm working on a website, I check the changes on my browser (Google Chrome), and since usually the browser doesn't register the changes I make into the CSS file, I usually just work into an incognito window to avoid the hassle of deleting the cache manually. The downside is that I have to close it and open it o... | [
{
"answer_id": 74341275,
"author": "Dave Pritlove",
"author_id": 2005666,
"author_profile": "https://Stackoverflow.com/users/2005666",
"pm_score": 2,
"selected": false,
"text": "css link html <link rel=\"stylesheet\" href=\"path/to/styles.css?v1\"> \n styles.css href html"
},
{
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19041084/"
] |
74,341,214 | <p>I need to write a script that finds all of the capitalized words (not words in all caps, just the initial letter) in a text file and presents them in alphabetical order.</p>
<p>I tried to use a regex like this:</p>
<pre><code>re.findall(r'\b[A-Z][a-z]*\b', line)
</code></pre>
<p>but my function returns this output:<... | [
{
"answer_id": 74341260,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 3,
"selected": false,
"text": "+ * re.findall(r'\\b[A-Z][a-z]+\\b', line)\n * + +"
},
{
"answer_id": 74341357,
"author": "ti7",
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436093/"
] |
74,341,221 | <p>I am trying to use Pybind11 in a Cmake project. I'm using Cmake 3.23.0-rc2.</p>
<p>To include it, I can do the following:</p>
<p><code>find_package(pybind11 REQUIRED)</code></p>
<p>However, this does not work on my machine. So, I attempted to give find_package a hint as per the user guide:</p>
<pre><code>SET(pybind1... | [
{
"answer_id": 74341260,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 3,
"selected": false,
"text": "+ * re.findall(r'\\b[A-Z][a-z]+\\b', line)\n * + +"
},
{
"answer_id": 74341357,
"author": "ti7",
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5403466/"
] |
74,341,251 | <p>I would like to change and replace some values under some conditions.</p>
<p>My csv looks like:</p>
<pre><code> Date
0 2022-11-05
1 2022-11-06
2 2022-11-08
3 2022-11-09
</code></pre>
<p>I want the date +2 if it is Saturday and +1 if it is Sunday, and replace the value in the original csv.</p>
<pre><code>df = p... | [
{
"answer_id": 74341260,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 3,
"selected": false,
"text": "+ * re.findall(r'\\b[A-Z][a-z]+\\b', line)\n * + +"
},
{
"answer_id": 74341357,
"author": "ti7",
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20377483/"
] |
74,341,259 | <p>I am testing a URL in flutter, but keep getting an error:</p>
<blockquote>
<p>Error: The argument type 'String' can't be assigned to the parameter type 'int'.
final loginUri = Uri.parse(Config.apiURL, Config.loginAPI);
^</p>
</blockquote>
<pre><code>class Config {
static const String appName = "appName";... | [
{
"answer_id": 74342361,
"author": "My Car",
"author_id": 16124033,
"author_profile": "https://Stackoverflow.com/users/16124033",
"pm_score": 0,
"selected": false,
"text": "class Config {\n static const String appName = \"appName\";\n static const String apiURL = http://127.0.0.1:8000/... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14574691/"
] |
74,341,308 | <p>I was trying to make a <em>single</em> function that takes in a container and implicitly have it convert to a <code>boost::iterator_range</code> as I thought that was it's purpose, but it seems that I'm missing something.</p>
<p>Here's an example of what I was thinking:</p>
<pre class="lang-cpp prettyprint-override"... | [
{
"answer_id": 74341502,
"author": "azhen7",
"author_id": 20341797,
"author_profile": "https://Stackoverflow.com/users/20341797",
"pm_score": 0,
"selected": false,
"text": "#include <iterator>\n\ntemplate<typename IT>\nvoid fn_x(boost::iterator_range<IT>) {\n}\n\ntemplate<typename Range>... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1366368/"
] |
74,341,341 | <p>I have an array of objects like below, where I want to calculate the sum of <code>job_security, skill_development</code> and <code>company_culture</code> these fields.</p>
<pre><code>reviews = [
{
id: 1,
job_security: '2.0',
skill_development: '3.0',
company_culture: '4.0',
is_anonymo... | [
{
"answer_id": 74341391,
"author": "HappyDev",
"author_id": 16775611,
"author_profile": "https://Stackoverflow.com/users/16775611",
"pm_score": 0,
"selected": false,
"text": "const reviews = [\n {\n id: 1,\n job_security: '2.0',\n skill_development: '3.0',\n company_... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12202749/"
] |
74,341,368 | <p>I'm trying to find the index range (start index and end index, spaces are omitted, and with indexing starting at 1 for human readability.) of each word in a string. What I thought was the best approach was doing a list of lists where each nested list contains the word and a list of the start and end index. From a sa... | [
{
"answer_id": 74341403,
"author": "j1-lee",
"author_id": 11450820,
"author_profile": "https://Stackoverflow.com/users/11450820",
"pm_score": 2,
"selected": true,
"text": "re start end import re\nfrom collections import defaultdict\n\ntext = \"i have a list of lists that contain a word a... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12157205/"
] |
74,341,383 | <p>I found this method:</p>
<pre><code>public override void OnActionExecuting(HttpActionContext actionContext)
{
var body = Task.Run(async()
=> await actionContext.Request.Content.ReadAsStringAsync()
.ConfigureAwait(false)).Result;
//rest of code omitted for brevity.
}
</code></pre>
<p>I'm trying... | [
{
"answer_id": 74341487,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 2,
"selected": false,
"text": "ConfigureAwait(false) .Result .Wait() ConfigureAwait(false) Task.Run() Task.Run() Task.Run() .Result .Wait() ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2063755/"
] |
74,341,390 | <pre><code>def get_beverage_type(a_enabled: bool, b_enabled: bool) -> str:
"""
Returns the beverage type defined by the switches.
"""
if a_enabled == "y" == True and b_enabled == "n" == False:
return "Juice, Orange"
elif a_enable... | [
{
"answer_id": 74341487,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 2,
"selected": false,
"text": "ConfigureAwait(false) .Result .Wait() ConfigureAwait(false) Task.Run() Task.Run() Task.Run() .Result .Wait() ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436221/"
] |
74,341,400 | <p>Can't select or input in the text area with custom animated background</p>
<p>I'm trying to create a login page, where the user enters his User name and password in dedicated text areas. To make a good design I've added custom background animation. However, I couldn't input or click text within the background animat... | [
{
"answer_id": 74341576,
"author": "KnightTheLion",
"author_id": 20432259,
"author_profile": "https://Stackoverflow.com/users/20432259",
"pm_score": 1,
"selected": false,
"text": "<input id=\"userName\" type=\"text\" placeholder=\"Enter user name\">\n<input id=\"password\" type=\"passwor... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16459979/"
] |
74,341,447 | <p>I have two of my activities (same app) opened in multiwindow / split-screen. Now I want that when a user taps on a button on Screen-1, I want to open an activity in Screen-2.</p>
<p>I have read Android's document and I think I am doing it right, but it is not working. It still opens the new activity in Screen-1. Her... | [
{
"answer_id": 74341576,
"author": "KnightTheLion",
"author_id": 20432259,
"author_profile": "https://Stackoverflow.com/users/20432259",
"pm_score": 1,
"selected": false,
"text": "<input id=\"userName\" type=\"text\" placeholder=\"Enter user name\">\n<input id=\"password\" type=\"passwor... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1397821/"
] |
74,341,464 | <p>Is it possible to produce a million records a second via kafka? How many servers should it take? Currently i am sending 7000 messages a second from a kafka producer and struggling to exceed this</p>
<p>I've noticed several sources say kafka can send millions of messages a second</p>
<p>I've created a job that uses @... | [
{
"answer_id": 74341576,
"author": "KnightTheLion",
"author_id": 20432259,
"author_profile": "https://Stackoverflow.com/users/20432259",
"pm_score": 1,
"selected": false,
"text": "<input id=\"userName\" type=\"text\" placeholder=\"Enter user name\">\n<input id=\"password\" type=\"passwor... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12253240/"
] |
74,341,471 | <p>This question is come from <a href="https://stackoverflow.com/questions/74334249/how-to-sum-an-array-for-each-id-and-create-new-array-in-react">how-to-sum-an-array-for-each-id-and-create-new-array-in-react</a>,OP needs to sum data by id</p>
<pre><code>const data = [{"id": "One", "number"... | [
{
"answer_id": 74341651,
"author": "Norguard",
"author_id": 1001831,
"author_profile": "https://Stackoverflow.com/users/1001831",
"pm_score": 3,
"selected": true,
"text": "data data let result2 = data let result3 = data.reduce(...);\nconsole.log(result3);\n\nlet result2 = data.reduce(...... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3176419/"
] |
74,341,479 | <p>I have an app where users can login / sign out and the functionality stopped working recently when I added a new SceneDelegate view and moved over the code from the AppDelegate. I'm not sure why it is not working but I suspect it has to do with using the shared delegate in my signOut function.</p>
<p>Something stran... | [
{
"answer_id": 74341651,
"author": "Norguard",
"author_id": 1001831,
"author_profile": "https://Stackoverflow.com/users/1001831",
"pm_score": 3,
"selected": true,
"text": "data data let result2 = data let result3 = data.reduce(...);\nconsole.log(result3);\n\nlet result2 = data.reduce(...... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20126173/"
] |
74,341,489 | <p>I see this term a lot, 'symbol', and after searching on google I still can't find a definition that makes sense to me.</p>
<p>For example in the manual of <code>ar</code> command on Linux, it's said :</p>
<blockquote>
<p>ar creates an index to the symbols defined in relocatable object modules in the archive when you... | [
{
"answer_id": 74341651,
"author": "Norguard",
"author_id": 1001831,
"author_profile": "https://Stackoverflow.com/users/1001831",
"pm_score": 3,
"selected": true,
"text": "data data let result2 = data let result3 = data.reduce(...);\nconsole.log(result3);\n\nlet result2 = data.reduce(...... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20250022/"
] |
74,341,522 | <p>I have installed RabbitMQ 3.11.2 and Erlang version 25.1.1 on Windows 10 machine.</p>
<p>I am very new to RabbitMQ, and I am unable to launch RabbitMQ management portal. I enabled the RabbitMQ management plugin as well.</p>
<p>Searched the internet with all sorts of suggestions on Stack Overflow, Google Groups, and ... | [
{
"answer_id": 74341651,
"author": "Norguard",
"author_id": 1001831,
"author_profile": "https://Stackoverflow.com/users/1001831",
"pm_score": 3,
"selected": true,
"text": "data data let result2 = data let result3 = data.reduce(...);\nconsole.log(result3);\n\nlet result2 = data.reduce(...... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436325/"
] |
74,341,529 | <p>HTML:</p>
<pre><code><div class="card">
<div class="card-back bi bi-bicycle">
</code></pre>
<p>CSS:</p>
<pre><code>.card-back {
transform: rotateY(270deg) translateZ(10px);
}
.flipped {
transform: rotateY(180deg) translateZ(0);
}
</code></pre>
<p>Above are my existing code stru... | [
{
"answer_id": 74341591,
"author": "Jesper Martinez",
"author_id": 12494707,
"author_profile": "https://Stackoverflow.com/users/12494707",
"pm_score": 1,
"selected": false,
"text": "$(document).on(\"click\", \"div.card-back\" , function() {\n $(this).addClass(\"flipped\");\n});\n"
}... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436368/"
] |
74,341,555 | <p>I am using Bootstrap 5 and have a <code><div></code> that is wrapped in an <code><a></code>. It contains a title, a thumbnail image, and some description text. In other words, the entire block of content is a link.</p>
<p>I have been able to override most of Bootstrap's CSS, but when it comes to this lin... | [
{
"answer_id": 74342377,
"author": "Saad1430",
"author_id": 19199222,
"author_profile": "https://Stackoverflow.com/users/19199222",
"pm_score": 0,
"selected": false,
"text": "text-decoration:none; <a> <!doctype html>\n <html lang=\"en\">\n <head>\n <meta charset=... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2454914/"
] |
74,341,562 | <p>I have a searchable dropdown box, from the package dropdown_search 5.0.3, where the choices in the dropdown box are titles mapped from a list I have created. When an option in the dropdown box is selected, I want to print the title and the corresponding 'amount' value of the option (from the list). However, I am hav... | [
{
"answer_id": 74342377,
"author": "Saad1430",
"author_id": 19199222,
"author_profile": "https://Stackoverflow.com/users/19199222",
"pm_score": 0,
"selected": false,
"text": "text-decoration:none; <a> <!doctype html>\n <html lang=\"en\">\n <head>\n <meta charset=... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20367123/"
] |
74,341,567 | <p><a href="https://i.stack.imgur.com/UXlMk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UXlMk.png" alt="enter image description here" /></a>
<a href="https://i.stack.imgur.com/C74vQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C74vQ.png" alt="enter image description here" />... | [
{
"answer_id": 74341920,
"author": "Visual Studio",
"author_id": 10470363,
"author_profile": "https://Stackoverflow.com/users/10470363",
"pm_score": 1,
"selected": false,
"text": "string Insert t = t.text.Insert(0, tmp + \"//n\");\n"
},
{
"answer_id": 74342728,
"author": "Mil... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436344/"
] |
74,341,595 | <p>I'm currently trying to automate a game called Lyrics Training (<a href="https://www.lyricstraining.com/" rel="nofollow noreferrer">https://www.lyricstraining.com/</a>) and I am able to get the words that are from the button through some other code but I am currently struggling with clicking the "button" b... | [
{
"answer_id": 74383083,
"author": "Static Spaghetti 13",
"author_id": 20455439,
"author_profile": "https://Stackoverflow.com/users/20455439",
"pm_score": 1,
"selected": false,
"text": "div.addEventListener(\"click\", somefunction);\n//or\nbtn.addEventListener(\"click\", somefunction);\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15034171/"
] |
74,341,604 | <h3>Motivation:</h3>
<p>Hybrid syntax</p>
<pre class="lang-xml prettyprint-override"><code><Label FontSize="50">Hello</Label>
</code></pre>
<p>can be converted into pure attribute syntax,</p>
<pre class="lang-xml prettyprint-override"><code><Label Text="Hello" FontSize="50"/... | [
{
"answer_id": 74383083,
"author": "Static Spaghetti 13",
"author_id": 20455439,
"author_profile": "https://Stackoverflow.com/users/20455439",
"pm_score": 1,
"selected": false,
"text": "div.addEventListener(\"click\", somefunction);\n//or\nbtn.addEventListener(\"click\", somefunction);\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/835073/"
] |
74,341,607 | <p>With a dataframe</p>
<pre class="lang-py prettyprint-override"><code>df = pd.DataFrame([['a', 3], ['a', 5], ['a', 2], ['a', 6], ['a', 7], ['a', 1], ['a', 9], ['b', 7], ['b', 8], ['b', 11], ['b', 9], ['b', 10], ['b', 6]], columns = ['k', 'v'])
</code></pre>
<p>I want to compute the row difference on column <code>v</c... | [
{
"answer_id": 74341756,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 0,
"selected": false,
"text": "groupby diff fillna g = df.groupby('k')['v']\ng.diff(3).fillna(g.diff(2).fillna(g.diff(1)))\n"
},
{
"ans... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1021602/"
] |
74,341,610 | <p>I have the following list</p>
<pre><code>import numpy as np
Y = [np.array([[1, 4, 7],
[2, 5, 8]]),
np.array([[10, 14, 18],
[11, 15, 19],
[12, 16, 20],
[13, 17, 21]]),
np.array([[22, 26, 31],
[24, 28, 33],
[26, 30, 35]])]
</code></pre>
<p>I want to loop through and pr... | [
{
"answer_id": 74342191,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\ndf = pd.concat(map(pd.DataFrame, Y), keys=range(len(Y)))\n\ndf.loc[(0,), 0]\n 0 1\n1 2\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20383481/"
] |
74,341,617 | <p>Cognos 11.1.7
Need help with syntax on a macro prompt so the default can be to select all members</p>
<p>Here is a simple example that works</p>
<pre><code>set([Generic].[Groups].[Location].[Location] -> ?Location?)
</code></pre>
<p>If I wanted to hard code a value I could use this as a slicer</p>
<pre><code>[Gen... | [
{
"answer_id": 74342191,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\ndf = pd.concat(map(pd.DataFrame, Y), keys=range(len(Y)))\n\ndf.loc[(0,), 0]\n 0 1\n1 2\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10630629/"
] |
74,341,618 | <p>I'm using Oracle and SQL Developer. I have downloaded HR schema and need to do some queries with it. Now I'm working with table <code>Employees</code>. As an user I need to see the list of employees with lowest salary in each department. I need to provide different solutions by means of plain SQL and one of analytic... | [
{
"answer_id": 74342191,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\ndf = pd.concat(map(pd.DataFrame, Y), keys=range(len(Y)))\n\ndf.loc[(0,), 0]\n 0 1\n1 2\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18744508/"
] |
74,341,621 | <p>I have two df,</p>
<p>dataset2:</p>
<pre><code> 0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ... c11 c12 c13 c14 c15 c16 c17 c18 c19 c20
0 s1 5 4 4 5 4 4 4 4 4 ... 4 4 3 3 4 3 4 4 3 3
1 s2 3 4 3 4 4 5 3 5 3 ... 5 3 3 2 3 3 3 5 5 1
2 s3 4 ... | [
{
"answer_id": 74341852,
"author": "d_frEak",
"author_id": 12883179,
"author_profile": "https://Stackoverflow.com/users/12883179",
"pm_score": 0,
"selected": false,
"text": "df_combinec.columns=dataset2.columns concat"
},
{
"answer_id": 74341919,
"author": "Azhar Khan",
"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18737194/"
] |
74,341,632 | <p>I have a module that redirects console outputs to the Tkinter window, which I found here on StackOverflow. It works perfectly, however, I realized I also need to save the console output to a file. But everything I tried either doesn't work, breaks the module, or nothing happens.</p>
<p>EDIT: I need to modify the fol... | [
{
"answer_id": 74341852,
"author": "d_frEak",
"author_id": 12883179,
"author_profile": "https://Stackoverflow.com/users/12883179",
"pm_score": 0,
"selected": false,
"text": "df_combinec.columns=dataset2.columns concat"
},
{
"answer_id": 74341919,
"author": "Azhar Khan",
"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11944578/"
] |
74,341,649 | <p>Looking to convert this powershell code into python:</p>
<pre><code>$secretArgs = @{
fileName = "test.pem"
fileAttachment = [IO.File]::ReadAllBytes("C:\brian\13568-test.txt")
} | ConvertTo-Json
</code></pre>
<p>*Update:
I am trying this code to get a similar result:</p>
<pre><code>import ... | [
{
"answer_id": 74341852,
"author": "d_frEak",
"author_id": 12883179,
"author_profile": "https://Stackoverflow.com/users/12883179",
"pm_score": 0,
"selected": false,
"text": "df_combinec.columns=dataset2.columns concat"
},
{
"answer_id": 74341919,
"author": "Azhar Khan",
"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2308467/"
] |
74,341,703 | <blockquote>
<p>Hello guys can anyone help me here, I've tried using display flex.
However, the 6th box is overlapping I want my 6-10 Box stay on the 2nd
row and if I add the 11th box it should start on the 3rd row can
anyone help me with how can I accomplish it? Currently, it's working
however my style is overlapping.... | [
{
"answer_id": 74341852,
"author": "d_frEak",
"author_id": 12883179,
"author_profile": "https://Stackoverflow.com/users/12883179",
"pm_score": 0,
"selected": false,
"text": "df_combinec.columns=dataset2.columns concat"
},
{
"answer_id": 74341919,
"author": "Azhar Khan",
"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16170674/"
] |
74,341,704 | <p>I'm trying to create an Excel spreadsheet and populate it with data from Word, but I can't get VBA to follow through. It launches Excel, but then it errors out.</p>
<p>If I try early binding, such as with this code from the Microsoft Documentation, I get a Run-time error '13': Type mismatch on the <code>Set xlApp</c... | [
{
"answer_id": 74346731,
"author": "Eugene Astafiev",
"author_id": 1603351,
"author_profile": "https://Stackoverflow.com/users/1603351",
"pm_score": -1,
"selected": false,
"text": "CreateObject Set xlApp = CreateObject(\"Excel.Application\")\n New Application Set xlApp = new Excel.Applic... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436291/"
] |
74,341,751 | <p>I am trying to get nested field's values from json which is returned by function <code>apex_web_service.make_rest_request</code>.</p>
<pre><code>DECLARE
v_address_json clob;
v_address_response clob;
l_object_address json_object_t;
BEGIN
SELECT
json_object ('Addresses' value json_object(
'... | [
{
"answer_id": 74346731,
"author": "Eugene Astafiev",
"author_id": 1603351,
"author_profile": "https://Stackoverflow.com/users/1603351",
"pm_score": -1,
"selected": false,
"text": "CreateObject Set xlApp = CreateObject(\"Excel.Application\")\n New Application Set xlApp = new Excel.Applic... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3531157/"
] |
74,341,767 | <p>I'm using the following versions:</p>
<ul>
<li>"@apollo/gateway": "^2.1.3"</li>
<li>"@apollo/server": "^4.0.0"</li>
<li>"graphql": "^16.6.0"</li>
</ul>
<p>I can't get a handle on the <code>req</code> object to extract the headers and forward them. The <code... | [
{
"answer_id": 74353302,
"author": "Dudo",
"author_id": 1639575,
"author_profile": "https://Stackoverflow.com/users/1639575",
"pm_score": 0,
"selected": false,
"text": "app.use(\n graphqlRoute,\n cors(),\n bodyParser.json(),\n expressMiddleware(server, {\n context: async ({ req })... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1639575/"
] |
74,341,769 | <p><code>docker ps</code></p>
<p>Displays all the running containers<br><br>
I want to display the total number of running containers<br><br>
The command,<br></p>
<p><code>docker ps | wc -l</code></p>
<p>displays the line count but also counts headers as lines.</p>
<p>How do I exclude headers?
Also, is there another wa... | [
{
"answer_id": 74341862,
"author": "atline",
"author_id": 6394722,
"author_profile": "https://Stackoverflow.com/users/6394722",
"pm_score": 3,
"selected": true,
"text": "docker info Server:\nContainers: 116\n Running: 3\n Paused: 0\n Stopped: 113\n $ docker info --format '{{json .Contain... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18340568/"
] |
74,341,796 | <p>I am new to Kubernetes, I am creating POD on run time to push data and after pushing and collecting data I am deleting POD.</p>
<p>For the processing of files I have connected SSD. and assigned its path as <strong>hostPath: /my-drive/example</strong> while creating POD. Now when i run my POD i can see the files in d... | [
{
"answer_id": 74341897,
"author": "Sahan Gunathilaka",
"author_id": 10031128,
"author_profile": "https://Stackoverflow.com/users/10031128",
"pm_score": 1,
"selected": false,
"text": "lifecycle preStop Exec lifecycle:\n preStop:\n exec:\n command:\n - \"sh\"\n - \"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15830657/"
] |
74,341,833 | <p>I am coming back from <code>NumPy</code> to <code>MATLAB</code> and don't quite have the hang of the broadcasting here.
Can someone explain to me why the first one fails and the second (more explicit works)?
After my understanding, <code>x0</code> and <code>x1</code> are both <code>1x2</code> arrays and it should be... | [
{
"answer_id": 74341897,
"author": "Sahan Gunathilaka",
"author_id": 10031128,
"author_profile": "https://Stackoverflow.com/users/10031128",
"pm_score": 1,
"selected": false,
"text": "lifecycle preStop Exec lifecycle:\n preStop:\n exec:\n command:\n - \"sh\"\n - \"... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7570817/"
] |
74,341,848 | <p>I have a JSON file that has movie data in it. I want to create a dictionary that has the movie title as the key and a count of how many actors are in that movie as the value. An example from the JSON file is below:</p>
<pre><code> {
"title": "Marie Antoinette",
"year"... | [
{
"answer_id": 74343564,
"author": "Will",
"author_id": 12829151,
"author_profile": "https://Stackoverflow.com/users/12829151",
"pm_score": -1,
"selected": false,
"text": "def actor_count(json_data):\n newD = dict()\n with open(\"movies_db.json\", 'r') as file:\n data = json... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10289804/"
] |
74,341,855 | <p>I'm trying to think of a way to make functions that determine the winner of an election by most votes, as well as a function that determines a winner-takes-all rule.</p>
<p>My code is as follows:</p>
<pre><code>_base_dict = {}
def add_state(name: str, votes: dict[str, int]) -> None:
global _base_dict
... | [
{
"answer_id": 74343564,
"author": "Will",
"author_id": 12829151,
"author_profile": "https://Stackoverflow.com/users/12829151",
"pm_score": -1,
"selected": false,
"text": "def actor_count(json_data):\n newD = dict()\n with open(\"movies_db.json\", 'r') as file:\n data = json... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20322128/"
] |
74,341,861 | <p>Now I'm using WSL 2 and Docker Desktop on Windows 10.</p>
<p>I created an YAML script to create an ingress for my microservices like below.</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-srv
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: post... | [
{
"answer_id": 74350507,
"author": "Daniel Morales",
"author_id": 18616389,
"author_profile": "https://Stackoverflow.com/users/18616389",
"pm_score": 0,
"selected": false,
"text": "docker system prune kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18616389/"
] |
74,341,887 | <p>I am trying to get a hold over understanding Applicative functors currently. And my understanding is falling short somewhere but I cannot pinpoint where.
Source from where I am trying to build an understanding <a href="https://www.cis.upenn.edu/%7Ecis1940/spring13/lectures.html" rel="nofollow noreferrer">CIS 194 UPe... | [
{
"answer_id": 74344578,
"author": "amalloy",
"author_id": 625403,
"author_profile": "https://Stackoverflow.com/users/625403",
"pm_score": 2,
"selected": false,
"text": "liftA2 liftA3 liftA2 liftA3 liftA2 :: Applicative f => (a -> b -> c) \n -> f a -> f b -> f c\nl... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9268887/"
] |
74,341,905 | <p>For this project I am working on, I have a list of strings of equal length (so the length may vary), and I only want the strings whose substrings can be found in a string that I have specified.</p>
<p>Will elaborate further, but the following is the expected result.</p>
<pre><code># list of strings
["aa", ... | [
{
"answer_id": 74341966,
"author": "Lokeshwar G",
"author_id": 12588118,
"author_profile": "https://Stackoverflow.com/users/12588118",
"pm_score": 0,
"selected": false,
"text": "['aa', 'ab', 'ac', 'bd', 'db', 'cb']\n list_of_strings = [\"aa\", \"ct\", \"ab\", \"ac\", \"bd\", \"ra\", \"db... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15748497/"
] |
74,341,942 | <p>I'm setting up ui for my Lazy column and I'm getting data from api</p>
<pre><code>@Preview
@Composable
fun MatchesRow(data: Data ) {
Card(
modifier = Modifier
.height(180.dp),
backgroundColor = MaterialTheme.colors.background
) {
}}
</code></pre>
<p>i get erros because my... | [
{
"answer_id": 74342186,
"author": "Vahid Garousi",
"author_id": 5909910,
"author_profile": "https://Stackoverflow.com/users/5909910",
"pm_score": 1,
"selected": false,
"text": "@Composable\nfun MatchesRow(data: Data ) {\n Card(\n modifier = Modifier\n .height(180.dp... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19868078/"
] |
74,341,964 | <p>I'm trying to generate a list of random numbers. I thought this would be a good time to use list comprehension to shorten the code. The only problem is that now I have this unused "i" variable. Is there a way to write it without needing that variable, or should I not worry about it too much?</p>
<pre><code... | [
{
"answer_id": 74341983,
"author": "CutePoison",
"author_id": 6224975,
"author_profile": "https://Stackoverflow.com/users/6224975",
"pm_score": 2,
"selected": false,
"text": "_ int_list = [random.randrange(0, 50) for _ in range(10)]\n def print_hello():\n print(\"Hello\")\n\nfor _ in r... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20206433/"
] |
74,341,976 | <p>The following config (filterChain) works fine in SpringBoot-2.7.5, but after I tried to test it in SpringBoot-3.0.0-RC1, it is not working and shows the following message, anything I need to change if want to migrate to Spring-Boot-3.0.0. Thanks.</p>
<blockquote>
<p>{
"timestamp": 1667794247614,
"stat... | [
{
"answer_id": 74341983,
"author": "CutePoison",
"author_id": 6224975,
"author_profile": "https://Stackoverflow.com/users/6224975",
"pm_score": 2,
"selected": false,
"text": "_ int_list = [random.randrange(0, 50) for _ in range(10)]\n def print_hello():\n print(\"Hello\")\n\nfor _ in r... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74341976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3156889/"
] |
74,342,021 | <p>I have application developed using Apache Cordova, within that application I am using " inappbrowser ". Now the requirement is to open Camera from the inappbrowser, I'm not able to figure out how to achieve this.</p>
<p>For developing this application I am using JQuery, bootstrap.js.</p>
<p>Now i'm using n... | [
{
"answer_id": 74341983,
"author": "CutePoison",
"author_id": 6224975,
"author_profile": "https://Stackoverflow.com/users/6224975",
"pm_score": 2,
"selected": false,
"text": "_ int_list = [random.randrange(0, 50) for _ in range(10)]\n def print_hello():\n print(\"Hello\")\n\nfor _ in r... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20157381/"
] |
74,342,024 | <p>Kindly look at this this here you can see here is mentioned (8 left) i want to replace (left with places left) means in simple i want to show 8 places left…</p>
<p><a href="https://digitalrise.website/product/kayak-lisbon/?date=2022-11-07" rel="nofollow noreferrer">https://digitalrise.website/product/kayak-lisbon/?d... | [
{
"answer_id": 74341983,
"author": "CutePoison",
"author_id": 6224975,
"author_profile": "https://Stackoverflow.com/users/6224975",
"pm_score": 2,
"selected": false,
"text": "_ int_list = [random.randrange(0, 50) for _ in range(10)]\n def print_hello():\n print(\"Hello\")\n\nfor _ in r... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18643660/"
] |
74,342,025 | <p>The output of the db.name.aggregate() function gives output:</p>
<pre class="lang-json prettyprint-override"><code>[{}, {"abc": "zyx"}, {}, "opk": "tyr"]
</code></pre>
<p>Actual output desired :</p>
<pre class="lang-json prettyprint-override"><code>[{"abc": "zyx... | [
{
"answer_id": 74341983,
"author": "CutePoison",
"author_id": 6224975,
"author_profile": "https://Stackoverflow.com/users/6224975",
"pm_score": 2,
"selected": false,
"text": "_ int_list = [random.randrange(0, 50) for _ in range(10)]\n def print_hello():\n print(\"Hello\")\n\nfor _ in r... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6775283/"
] |
74,342,038 | <p>I have problem when I use bloc.</p>
<pre><code>/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6.0.4/lib/src/provider.dart:343:7: Error: 'sthrow' isn't a type.
sthrow ProviderNotFoundException(T, context.widget.runtimeType);
^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6... | [
{
"answer_id": 74342060,
"author": "MrShakila",
"author_id": 19292778,
"author_profile": "https://Stackoverflow.com/users/19292778",
"pm_score": 0,
"selected": false,
"text": "sthrow ProviderNotFoundException(T, context.widget.runtimeType);\n throw ProviderNotFoundException(T, context.wi... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436809/"
] |
74,342,065 | <p>The keyboard is cutting off part of the input field</p>
<p>I am using a TextFormField</p>
<p><a href="https://i.stack.imgur.com/KHWuP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KHWuP.png" alt="keyboard cutting off part of input field" /></a></p>
<p>is there anyway to push the screen up?</p>
| [
{
"answer_id": 74342060,
"author": "MrShakila",
"author_id": 19292778,
"author_profile": "https://Stackoverflow.com/users/19292778",
"pm_score": 0,
"selected": false,
"text": "sthrow ProviderNotFoundException(T, context.widget.runtimeType);\n throw ProviderNotFoundException(T, context.wi... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17281101/"
] |
74,342,102 | <p>I have a dataframe like below</p>
<pre><code>df = pd.DataFrame({'subject_id':[1,1,1,1,1,1,1,2,2,2,2,2],
'time_1' :['2017-04-03 12:35:00','2017-04-03 12:50:00','2018-04-05 12:59:00','2018-05-04 13:14:00','2017-05-05 13:37:00','2018-07-06 13:39:00','2018-07-08 11:30:00','2017-04-08 16:00:00','2019-0... | [
{
"answer_id": 74342060,
"author": "MrShakila",
"author_id": 19292778,
"author_profile": "https://Stackoverflow.com/users/19292778",
"pm_score": 0,
"selected": false,
"text": "sthrow ProviderNotFoundException(T, context.widget.runtimeType);\n throw ProviderNotFoundException(T, context.wi... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10829044/"
] |
74,342,105 | <p>I have a dataframe</p>
<pre><code>df =pd. DataFrame({'A' : ['foo', 'bar', 'foo', 'bar', 'foo', 'bar', 'foo', 'foo'],
'B' : ['one', 'one', 'two', 'two', 'three', 'three', 'four', 'five'],
'C' : [2,3,4,9,12,12,17,13]})
</code></pre>
<p>I would like to add a new column New, equal to... | [
{
"answer_id": 74342060,
"author": "MrShakila",
"author_id": 19292778,
"author_profile": "https://Stackoverflow.com/users/19292778",
"pm_score": 0,
"selected": false,
"text": "sthrow ProviderNotFoundException(T, context.widget.runtimeType);\n throw ProviderNotFoundException(T, context.wi... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20113479/"
] |
74,342,130 | <p>I am getting the below error, please check the image.</p>
<p><a href="https://i.stack.imgur.com/XjuGT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XjuGT.png" alt="enter image description here" /></a></p>
| [
{
"answer_id": 74342060,
"author": "MrShakila",
"author_id": 19292778,
"author_profile": "https://Stackoverflow.com/users/19292778",
"pm_score": 0,
"selected": false,
"text": "sthrow ProviderNotFoundException(T, context.widget.runtimeType);\n throw ProviderNotFoundException(T, context.wi... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10922432/"
] |
74,342,135 | <p>can anyone help me how to convert this into loops :) hi newbie here in javaScript:) the output of this is a input form, i want all the value that typed into the form to be appear instantly by using keyup event thanks in advance :)</p>
<pre><code>let textarea = document.querySelectorAll('span')
let bns = document.qu... | [
{
"answer_id": 74342157,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 0,
"selected": false,
"text": "const elements = [bns, id, img, lg];\nconst selectors = [\".t0\", \".t1\", \".t2\", \".t3\"].map((s) => document.quer... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436713/"
] |
74,342,144 | <p>I am very new to coding. I am having issue solving this following:
taking a data block ex:</p>
<pre><code>1963;john, doe;Williwanka,tp;jane;4200;1300;19.63;-42
</code></pre>
<p>and covert into something like</p>
<pre><code>1963,"john, doe","Williwanka,tp",jane,4200,1300,19.63,-42
</code></pre>
<p... | [
{
"answer_id": 74342175,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const text = \"1963;john, doe;Williwanka,tp;jane;4200;1300;19.63;-42\";\n\nconst parts = text.split(\";\");\n\nconst ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436703/"
] |
74,342,180 | <p>I am reading json file from adls then write it back to ADLS by changing extension to .csv but some random filename is creating in ADLS (writing script in azure synapse)</p>
<p>One _success file and
part-000-***.csv like this some random file name is generating</p>
<p>I want my file name is to be save
ex: sfmc.json i... | [
{
"answer_id": 74342175,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const text = \"1963;john, doe;Williwanka,tp;jane;4200;1300;19.63;-42\";\n\nconst parts = text.split(\";\");\n\nconst ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20376563/"
] |
74,342,196 | <p>I am new to Gatling and Scala , I am trying to run the Gatling test example specified in the beginning parts of this video: <a href="https://www.youtube.com/watch?v=To7LJiK87Us" rel="nofollow noreferrer">https://www.youtube.com/watch?v=To7LJiK87Us</a>, but using Gradle wrapper.
I created a gradle project in IntelliJ... | [
{
"answer_id": 74342175,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const text = \"1963;john, doe;Williwanka,tp;jane;4200;1300;19.63;-42\";\n\nconst parts = text.split(\";\");\n\nconst ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8513968/"
] |
74,342,249 | <p>I have encountered several problems relating to the arrow function and, after a simple google search or two, I fixed them.</p>
<p>Then I encountered this:</p>
<pre><code>this.projectiles = this.projectiles.filter(projectile =>projectile.markedForDeletion);
</code></pre>
<p>I got an error saying that "'a... | [
{
"answer_id": 74342175,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const text = \"1963;john, doe;Williwanka,tp;jane;4200;1300;19.63;-42\";\n\nconst parts = text.split(\";\");\n\nconst ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20436848/"
] |
74,342,252 | <p>what is a significance of "Users and groups" under EA?</p>
<ol>
<li><p>adding a person will give same access to person as that EA?</p>
</li>
<li><p>adding a SP will do what? added SP will not have same access as EA?</p>
</li>
</ol>
<p><a href="https://i.stack.imgur.com/sMVrg.png" rel="nofollow noreferrer">... | [
{
"answer_id": 74342175,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 1,
"selected": false,
"text": "const text = \"1963;john, doe;Williwanka,tp;jane;4200;1300;19.63;-42\";\n\nconst parts = text.split(\";\");\n\nconst ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10238261/"
] |
74,342,264 | <p>I have this table which has 2 columns to form the composite key. I am using EF Core. So this is my model</p>
<pre><code>public class MyModel
{
[Key]
[Column(Order = 0)]
[StringLength(255)]
public string column1 { get; set; }
[Key]
[Column(Order = 1)]
[StringLength(255)]
public string... | [
{
"answer_id": 74342758,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 0,
"selected": false,
"text": "[Key] OnModelCreating builder.Entity<MyModel>().HasKey(nameof(MyModel.Column1), nameof(MyModel.Column2));"
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4971859/"
] |
74,342,265 | <p>I'm working on project where I have an an accordion with checkboxes. When the checkboxes have a value of true they go to my <code>trueItems</code> array. I have an array <code>filter</code> that I need to register the change of value to true when the button with <code>handleSubmit</code> is clicked. The issue that I... | [
{
"answer_id": 74342758,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 0,
"selected": false,
"text": "[Key] OnModelCreating builder.Entity<MyModel>().HasKey(nameof(MyModel.Column1), nameof(MyModel.Column2));"
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11486899/"
] |
74,342,278 | <p>I am trying build frontend app using <code>npm run build</code> using jenkins.But getting below error. Could you let me know, how to fix below error?</p>
<pre><code>Creating an optimized production build...
Failed to compile.
./node_modules/xlsx/jszip.js 7855:112
Module parse failed: Unexpected token (7855:112)
Fil... | [
{
"answer_id": 74342758,
"author": "José Ramírez",
"author_id": 13886104,
"author_profile": "https://Stackoverflow.com/users/13886104",
"pm_score": 0,
"selected": false,
"text": "[Key] OnModelCreating builder.Entity<MyModel>().HasKey(nameof(MyModel.Column1), nameof(MyModel.Column2));"
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8283800/"
] |
74,342,281 | <p>How to execute javascript code like <code>JSON.parse()</code> in the angular html template itself instead of making a method and calling the method in the angular html template file</p>
<p>I tried below ways:</p>
<p><code><p [innerHTML]="JSON.parse(['\\u2013'])[0]"></p></code></p>
<p><code><... | [
{
"answer_id": 74342485,
"author": "Suhail Akhtar",
"author_id": 6613333,
"author_profile": "https://Stackoverflow.com/users/6613333",
"pm_score": 0,
"selected": false,
"text": "parseJson(data) {\n return JSON.parse(data);\n}\n <p>{{parseJson(['\\\\u2013'])[0]}}</p>\n"
},
{
"ans... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8593983/"
] |
74,342,360 | <p>I have been trying to write a program in C but I don't know if it's correct because my <code>for</code> loop at the start ends after only 3 loops when it should end after 10. If someone could tell me where the issue is, I would appreciate it. Here is the program.</p>
<pre><code>#include <stdio.h>
#define size... | [
{
"answer_id": 74342416,
"author": "Rajarshi Bandopadhyay",
"author_id": 9548172,
"author_profile": "https://Stackoverflow.com/users/9548172",
"pm_score": 0,
"selected": false,
"text": "for(i = 0; i < size; i++) {\n ...\n}\n i = 0 i < size i size #include <stdio.h>\n\nint main() {\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18291360/"
] |
74,342,444 | <p>Writing a Django app which has a post table that has a recursive relationship to itself. This means that post CAN have a parent post (allows for replies). I want to ensure that a post can have a null for the parent post attribute - this would denote the "root" post. However, when I implement the views, mod... | [
{
"answer_id": 74342495,
"author": "Manoj Tolagekar",
"author_id": 17808039,
"author_profile": "https://Stackoverflow.com/users/17808039",
"pm_score": 1,
"selected": false,
"text": "fields = ('id', 'title', 'body', 'author', 'time_stamp')\n fields = ['id', 'title', 'body', 'author', 'tim... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19456156/"
] |
74,342,476 | <p>My team was in trouble in push alarm with FCM token in flutter (especially ios),<br />
So we decided to push alarm to each user with topics.</p>
<p>I know that "One app instance can be subscribed to no more than 2000 topics." in
<a href="https://firebase.google.com/docs/cloud-messaging/android/topic-messag... | [
{
"answer_id": 74342495,
"author": "Manoj Tolagekar",
"author_id": 17808039,
"author_profile": "https://Stackoverflow.com/users/17808039",
"pm_score": 1,
"selected": false,
"text": "fields = ('id', 'title', 'body', 'author', 'time_stamp')\n fields = ['id', 'title', 'body', 'author', 'tim... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20437172/"
] |
74,342,503 | <p>I have a table with given values</p>
<pre><code>| id | level | value |
| --- | ------ | ----- |
| 1 | 30000 | 0.05 |
| 2 | 100000 | 0.06 |
| 3 | 120000 | 0.07 |
</code></pre>
<p>I want to create an postgres sql query to get a sum in the following logic. I will be providing a value (level) as as parameter... | [
{
"answer_id": 74342664,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 2,
"selected": false,
"text": "LEAD SELECT SUM((nextLevel-level)*value) AS res\nFROM\n(\n SELECT *,\n LEAD(LEVEL, 1, 170000) OVER (ORDER BY id)... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14403738/"
] |
74,342,504 | <p>I have a library that I use in my application. In my library, I need to get a resource ( a bks file). I don't have a main activity in my library. How do I get a resource without an activity. Here is the code I have.</p>
<pre><code>public class PostRequest {
Context context;
MyApplication application;
publi... | [
{
"answer_id": 74342664,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 2,
"selected": false,
"text": "LEAD SELECT SUM((nextLevel-level)*value) AS res\nFROM\n(\n SELECT *,\n LEAD(LEVEL, 1, 170000) OVER (ORDER BY id)... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6780883/"
] |
74,342,543 | <p>I am mapping through an array like this</p>
<pre><code>const isFocused = useIsFocused();
async function getProfile() {
const [labels, setLabels] = useState([])
...
array.map(x => {
handleChange(x.date)
})
...
}
useEffect(() => {
isFocused && getProfile()
}, [isFocused... | [
{
"answer_id": 74342664,
"author": "ahmed",
"author_id": 12705912,
"author_profile": "https://Stackoverflow.com/users/12705912",
"pm_score": 2,
"selected": false,
"text": "LEAD SELECT SUM((nextLevel-level)*value) AS res\nFROM\n(\n SELECT *,\n LEAD(LEVEL, 1, 170000) OVER (ORDER BY id)... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19545651/"
] |
74,342,550 | <p>I have several images that are 50x50, fit into a row of 6 columns (ie, 6 images to a row). However, on rendering each image is seemingly on its own individual row, so it looks like the images are stacked on top of another, instead of on a single row.</p>
<p>The code is simple:</p>
<pre><code><div class="cont... | [
{
"answer_id": 74342831,
"author": "Eric Kong",
"author_id": 15723533,
"author_profile": "https://Stackoverflow.com/users/15723533",
"pm_score": 0,
"selected": false,
"text": "<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css\" integr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8152261/"
] |
74,342,555 | <p>So when inputting my third elif variable in my main function, my other functions don't work. My question, is what's stopping it. Lines 123, 124, 125, keep receiving the "UnboundLocalError: totalcost referenced before assignement"</p>
<p>`</p>
<pre><code>def welcome():
print("Hello and Welcome Supe... | [
{
"answer_id": 74342831,
"author": "Eric Kong",
"author_id": 15723533,
"author_profile": "https://Stackoverflow.com/users/15723533",
"pm_score": 0,
"selected": false,
"text": "<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css\" integr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20287939/"
] |
74,342,585 | <p>The problem here is when I'm returning from my support fragment to home fragment back every time my items in the recycle viewer got doubled. Each time i am shifting fragment to fragment my recycle viewer item in the homefragment got doubled. But when, I reopen the app its all got corrected but when i click on anothe... | [
{
"answer_id": 74342831,
"author": "Eric Kong",
"author_id": 15723533,
"author_profile": "https://Stackoverflow.com/users/15723533",
"pm_score": 0,
"selected": false,
"text": "<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css\" integr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20437146/"
] |
74,342,586 | <pre><code>$('.flip-button').each(function() {
$(this).click(function() {
$(this).closest('.flip-card-inners').toggleClass('flip-card-active')
})
})
</code></pre>
<p>I wasn't able to translate this in vanilla js because I encountered several problems with get element by class</p>
| [
{
"answer_id": 74342831,
"author": "Eric Kong",
"author_id": 15723533,
"author_profile": "https://Stackoverflow.com/users/15723533",
"pm_score": 0,
"selected": false,
"text": "<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css\" integr... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20437284/"
] |
74,342,624 | <p>It worked on .NET 6, but now when I migrated my .net maui project to .net 7 the problem starts occurring: I have MediaPicker placed to one xaml page of my project in order to capture a picture and store it at the app data directory. I can run Android emulator and get permission for camera, but it stopped working for... | [
{
"answer_id": 74343160,
"author": "Liyun Zhang - MSFT",
"author_id": 17455524,
"author_profile": "https://Stackoverflow.com/users/17455524",
"pm_score": 1,
"selected": false,
"text": " <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>\n <ItemGroup>\n <Pack... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/738999/"
] |
74,342,636 | <p>I updated my flutter version to the latest one and since I observed the app can't get the firebase token and it returns an error <code>[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: The method 'getToken' was called on null.</code>. I am trying to get the token with the bel... | [
{
"answer_id": 74343160,
"author": "Liyun Zhang - MSFT",
"author_id": 17455524,
"author_profile": "https://Stackoverflow.com/users/17455524",
"pm_score": 1,
"selected": false,
"text": " <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>\n <ItemGroup>\n <Pack... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20230706/"
] |
74,342,657 | <p>I am getting the above error in my TypeScript code. I am attaching the codes of 2 files along with the error message. Please look into it.</p>
<p>This is the "NewPostForm.tsx" file in which error is occuring.</p>
<pre><code>import React, { useState } from 'react';
import {AlertIcon, Flex, Icon, Alert, Text... | [
{
"answer_id": 74342727,
"author": "Anis",
"author_id": 6316804,
"author_profile": "https://Stackoverflow.com/users/6316804",
"pm_score": 2,
"selected": true,
"text": " return {\n selectedFile,\n setSelectedFile,\n onSelectFile,\n };\n"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16423451/"
] |
74,342,697 | <p><code>while [List]: </code> vs <code>while [List] is True</code>? What is the different?</p>
<p>For example I am doing this problem (heap and priority queues) <a href="https://leetcode.com/problems/find-k-pairs-with-smallest-sums/" rel="nofollow noreferrer">https://leetcode.com/problems/find-k-pairs-with-smallest-s... | [
{
"answer_id": 74342804,
"author": "Dmitriy Neledva",
"author_id": 16786350,
"author_profile": "https://Stackoverflow.com/users/16786350",
"pm_score": 0,
"selected": false,
"text": "True False 0 False '0' '' False [] False [] False ['something'] True if [list] while [list] if [this list ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74342697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10824975/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.