qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,635,857 | <p>I have a mutable structure in Julia</p>
<pre><code>@with_kw mutable struct Param
x::Float64 = 0.1
y::Float64 = 1/x
end
</code></pre>
<p>Now I want to change x to 0.2, so I set
<code>para = Param()</code> and <code>para.x = 0.2</code>. However, <code>para.y</code> does not change. But what I want is to change y autom... | [
{
"answer_id": 74636489,
"author": "vchuravy",
"author_id": 1237861,
"author_profile": "https://Stackoverflow.com/users/1237861",
"pm_score": 1,
"selected": false,
"text": "y y(p::Param) = 1/p.x\n"
},
{
"answer_id": 74656926,
"author": "Shayan",
"author_id": 11747148,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16844272/"
] |
74,635,865 | <p>Live server do not load @media from css file with link tag.</p>
<p><a href="https://i.stack.imgur.com/1DqAP.png" rel="nofollow noreferrer">LINK</a></p>
<pre><code><head>
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link rel="stylesheet... | [
{
"answer_id": 74636489,
"author": "vchuravy",
"author_id": 1237861,
"author_profile": "https://Stackoverflow.com/users/1237861",
"pm_score": 1,
"selected": false,
"text": "y y(p::Param) = 1/p.x\n"
},
{
"answer_id": 74656926,
"author": "Shayan",
"author_id": 11747148,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16119399/"
] |
74,635,878 | <p>For example:</p>
<p><code>class DogOwners(object): def get_this_animal(id, dog_name): return Dog(id=id, name=dog_name)</code></p>
<p>Would this return a new object or the existing one associated to the *args of get_this_animal()?</p>
<p>It returns the data I want but I can't tell if now I have two dogs with the same... | [
{
"answer_id": 74636489,
"author": "vchuravy",
"author_id": 1237861,
"author_profile": "https://Stackoverflow.com/users/1237861",
"pm_score": 1,
"selected": false,
"text": "y y(p::Param) = 1/p.x\n"
},
{
"answer_id": 74656926,
"author": "Shayan",
"author_id": 11747148,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20651050/"
] |
74,635,903 | <p>I have the following code:</p>
<pre><code> $SchoolFolder = "C:\Users\MyUser\Desktop\School Folder\$StudentName\$Month. $MonthWrite\$Day. $DayWrite"
$MP4Lenght = (Get-ChildItem -Path $RenderFolder).Length -ne "0"
$MP4existsToCopy = Test-Path -Path "$RenderFolder\*.mp4&q... | [
{
"answer_id": 74637440,
"author": "postanote",
"author_id": 9132707,
"author_profile": "https://Stackoverflow.com/users/9132707",
"pm_score": 1,
"selected": false,
"text": "-verbose Move-Item -Destination (new-item -type directory -force ($SchoolFolder + $newSub)) -force -ea 0 -Verbose\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19538465/"
] |
74,635,930 | <p>If I have 4 booleans e.g</p>
<p><code>if ((a(x) == True) and (b(x) == True) and (c(x) == True) and (d(x) == True)</code></p>
<p>then I want to do something different for each combination including when only 3 of them are true (including which ones), 2..., then only each 1... etc...</p>
<p>Is there a quicker way than... | [
{
"answer_id": 74635988,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 0,
"selected": false,
"text": "numTrue = (a(x) == True) + (b(x) == True) + (c(x) == True) + (d(x) == True)\nif numTrue==4:\n # foo\nelif numTru... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594886/"
] |
74,635,931 | <p>I am trying to convert simple DynamoDB Object string:</p>
<pre class="lang-json prettyprint-override"><code>{
"Item": {
"Id": {
"S": "db31"
},
"CreateTime": {
"N": "1647882237618915000"
}
}
</code></pre>
<p>to either ... | [
{
"answer_id": 74636273,
"author": "Brian Pursley",
"author_id": 5074828,
"author_profile": "https://Stackoverflow.com/users/5074828",
"pm_score": 1,
"selected": false,
"text": "json.Unmarshal package main\n\nimport (\n \"encoding/json\"\n \"fmt\"\n \"os\"\n)\n\ntype Record stru... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3981486/"
] |
74,635,967 | <p>I having quite a trouble changing the colors of some icons inside a menu. They have two different colors, so i'm passing different classes to them... But (as always) it won't obbey...</p>
<p>My menuItemsSet function:</p>
<pre><code>loadMenuItems(){
this.menuItems = [
{ label: 'Whatsapp', icon: 'pi pi-whats... | [
{
"answer_id": 74636273,
"author": "Brian Pursley",
"author_id": 5074828,
"author_profile": "https://Stackoverflow.com/users/5074828",
"pm_score": 1,
"selected": false,
"text": "json.Unmarshal package main\n\nimport (\n \"encoding/json\"\n \"fmt\"\n \"os\"\n)\n\ntype Record stru... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13536950/"
] |
74,635,970 | <p>I have a simple code that:</p>
<p>Read a trajectory file that can be seen as a list of 2D arrays (list of positions in space) stored in Y</p>
<p>I then want to compute for each pair (scipy.pdist style) the RMSD</p>
<p>My code works fine:</p>
<pre><code>trajectory = read("test.lammpstrj", index="::&quo... | [
{
"answer_id": 74637773,
"author": "Mercury",
"author_id": 10229754,
"author_profile": "https://Stackoverflow.com/users/10229754",
"pm_score": 4,
"selected": true,
"text": "snapshot.get_positions() (p, q) Y (m, p, q) m m m=1000 import numpy as np\n\n# dummy inputs\nm = 1000\np, q = 4, 5\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5623007/"
] |
74,635,979 | <p>I'm having trouble putting background image on MS Outlook. I already searched on Google and found out that you can put background on Outlook via VML.</p>
<p>The first background <code>fruit-bg.jpg</code> is working, but when I put the nested background <code>yellow-bg.png</code> its not appearing. And also the whole... | [
{
"answer_id": 74637773,
"author": "Mercury",
"author_id": 10229754,
"author_profile": "https://Stackoverflow.com/users/10229754",
"pm_score": 4,
"selected": true,
"text": "snapshot.get_positions() (p, q) Y (m, p, q) m m m=1000 import numpy as np\n\n# dummy inputs\nm = 1000\np, q = 4, 5\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1191749/"
] |
74,635,981 | <p>i try to design a table in cassandra, but im getting a lot of large partition messages.
Any ideas how i could improve this "design" to prevent overloading and still can use a query like this:</p>
<pre><code>select * from analytics where domain='test' and tld='com'
</code></pre>
<pre><code>CREATE TABLE ana... | [
{
"answer_id": 74651376,
"author": "Erick Ramirez",
"author_id": 4269535,
"author_profile": "https://Stackoverflow.com/users/4269535",
"pm_score": 1,
"selected": false,
"text": "sub.domainsr.us su CREATE TABLE subdomains_by_domain_tld_prefix (\n domain text,\n tld text,\n prefix... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17149861/"
] |
74,635,994 | <p>Trying to learn about the built-in <a href="https://docs.python.org/3/library/multiprocessing.html" rel="nofollow noreferrer"><code>multiprocessing</code></a> and <a href="https://pytorch.org/docs/stable/multiprocessing.html" rel="nofollow noreferrer">Pytorch's <code>multiprocessing</code></a> packages, I have obser... | [
{
"answer_id": 74636147,
"author": "J_H",
"author_id": 8431111,
"author_profile": "https://Stackoverflow.com/users/8431111",
"pm_score": 2,
"selected": false,
"text": "d d d multiprocessing d d d"
},
{
"answer_id": 74638164,
"author": "Ahmed AEK",
"author_id": 15649230,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17867420/"
] |
74,636,003 | <p>I have the following FastAPI application:</p>
<pre class="lang-py prettyprint-override"><code>from fastapi import FastAPI
import socket
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello World"}
@app.get("/healthcheck")
def health_check():
r... | [
{
"answer_id": 74636147,
"author": "J_H",
"author_id": 8431111,
"author_profile": "https://Stackoverflow.com/users/8431111",
"pm_score": 2,
"selected": false,
"text": "d d d multiprocessing d d d"
},
{
"answer_id": 74638164,
"author": "Ahmed AEK",
"author_id": 15649230,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18615570/"
] |
74,636,013 | <p>I'm trying to solve a question where your code is supposed to determine if a given number is a palindrome or not, and I don't understand why it isn't working.</p>
<p>(You can skip this and just read the code if you want) The idea was that I create a string with the value of the integer, and create a for loop using t... | [
{
"answer_id": 74636041,
"author": "access violation",
"author_id": 19322069,
"author_profile": "https://Stackoverflow.com/users/19322069",
"pm_score": 1,
"selected": false,
"text": " for(int i = 0; i < count; i++){\n palindrome += x % 10;\n }\n x x palindrome s x"
},
{
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14827134/"
] |
74,636,046 | <p>I am trying to launch a new process as <code>NT AUTHORITY\Network Service</code> from a process that is running as <code>NT AUTHORITY\System</code>.</p>
<p>I have looked at other questions, such as the following, which does not provide a working example: <a href="https://stackoverflow.com/questions/5629383/">CreateP... | [
{
"answer_id": 74636041,
"author": "access violation",
"author_id": 19322069,
"author_profile": "https://Stackoverflow.com/users/19322069",
"pm_score": 1,
"selected": false,
"text": " for(int i = 0; i < count; i++){\n palindrome += x % 10;\n }\n x x palindrome s x"
},
{
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147613/"
] |
74,636,058 | <p>Recently, I ran into a problem where I got a warning for updating UI on background task.</p>
<pre><code>func didInit() async {
listOfTodo = await interactor.getTodos()
}
</code></pre>
<p>I tried to wrap the function body inside DispatchQue.main.async {}, but I got an error.</p>
<p>I then found a solution which I... | [
{
"answer_id": 74636305,
"author": "Rob Napier",
"author_id": 97337,
"author_profile": "https://Stackoverflow.com/users/97337",
"pm_score": 2,
"selected": false,
"text": "interactor.getTodos() @MainActor didInit @MainActor MainActor.run {...}"
},
{
"answer_id": 74637330,
"aut... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16731401/"
] |
74,636,064 | <p>I have data stored in Firestore and i would like to get data from a collection, filter it and publish it in HTML template.</p>
<p>I am using Django as the framework.</p>
<p><strong>VIEWS.py</strong></p>
<pre><code>from django.shortcuts import render
import pyrebase
from firebase_admin import firestore
import datetim... | [
{
"answer_id": 74636305,
"author": "Rob Napier",
"author_id": 97337,
"author_profile": "https://Stackoverflow.com/users/97337",
"pm_score": 2,
"selected": false,
"text": "interactor.getTodos() @MainActor didInit @MainActor MainActor.run {...}"
},
{
"answer_id": 74637330,
"aut... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19124338/"
] |
74,636,071 | <p>I have a lot of cronjobs I need to set on Kubernetes.
I want a file to manage them all and set them to Kubernetes on deployment. I wish that if I remove a cron from that file it will be removed from Kubernetes too.
Basically, I want to handle the corns like I'm handling them today on the machine (from a cron file th... | [
{
"answer_id": 74636305,
"author": "Rob Napier",
"author_id": 97337,
"author_profile": "https://Stackoverflow.com/users/97337",
"pm_score": 2,
"selected": false,
"text": "interactor.getTodos() @MainActor didInit @MainActor MainActor.run {...}"
},
{
"answer_id": 74637330,
"aut... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4752738/"
] |
74,636,075 | <p>The second function will take the array as a parameter
How would you send the inner function as a parameter?</p>
<pre><code>const score = [98, 76, 94, 82, 70, 95, 45, 90]
const determinePass = function (threshold) {
return function (array) {
return array.map(function (value) {
return value &g... | [
{
"answer_id": 74636116,
"author": "Leo Ward",
"author_id": 20421592,
"author_profile": "https://Stackoverflow.com/users/20421592",
"pm_score": 0,
"selected": false,
"text": "const score = [98, 76, 94, 82, 70, 95, 45, 90]\n \nfunction determinePass(threshold, array){\n return array... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16069370/"
] |
74,636,118 | <p>I have been searching the stackoverflow community on how to approach the situation below.
There is a table called APPOINTMENTS which two or more APPOINTMENTS may be LINKED to each other. For instance:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>START</th>
<th>END</th>
</t... | [
{
"answer_id": 74636116,
"author": "Leo Ward",
"author_id": 20421592,
"author_profile": "https://Stackoverflow.com/users/20421592",
"pm_score": 0,
"selected": false,
"text": "const score = [98, 76, 94, 82, 70, 95, 45, 90]\n \nfunction determinePass(threshold, array){\n return array... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6918661/"
] |
74,636,159 | <p>I am trying to increment the ID value useing the useState hook,but its not incrementing .I have to call the fct two times for the id to be incremented.I was able to see that by console log the object before and after the usestate but i found the result the same</p>
<pre class="lang-js prettyprint-override"><code>fu... | [
{
"answer_id": 74636316,
"author": "Paulo Fernando",
"author_id": 19223586,
"author_profile": "https://Stackoverflow.com/users/19223586",
"pm_score": 0,
"selected": false,
"text": "function addToList(e) {\n e.preventDefault();\n if (noteList.length === 0) {\n const newNote = {... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20651196/"
] |
74,636,177 | <p>If a table has a clustered index and a secondary index, the leaf nodes in secondary index contain the attribute value of the clustered index. But what if a table only has non-clustered index? How can a non-clustered index retrieve data without a clustered index?</p>
<pre class="lang-sql prettyprint-override"><code>c... | [
{
"answer_id": 74636316,
"author": "Paulo Fernando",
"author_id": 19223586,
"author_profile": "https://Stackoverflow.com/users/19223586",
"pm_score": 0,
"selected": false,
"text": "function addToList(e) {\n e.preventDefault();\n if (noteList.length === 0) {\n const newNote = {... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12639005/"
] |
74,636,203 | <p>I have a dataframe similar to this:</p>
<pre><code>import pandas as pd
id = [1001, 1002, 1003]
a = [156, 224, 67]
b = [131, 203, 61]
c = [97, 165, 54]
d = [68, 122, 50]
value = [71, 180, 66]
df = pd.DataFrame({'id':id, 'a':a, 'b':b, 'c':c, 'd':d, 'value':value})
</code></pre>
<div cl... | [
{
"answer_id": 74636293,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 3,
"selected": true,
"text": "df.apply(lambda x: x[x < x[-1]].max(), axis=1)\n 0 68\n1 165\n2 61\ndtype: int64\n df[['nxt_low', 'nxt... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10930703/"
] |
74,636,222 | <pre><code>list = [4, 7, 11, 15]
</code></pre>
<p>I'm trying to create a function to loop through list items, and find the difference between list[1] and list[0], and then list[2] and list[1], and then list[3] and list[2]... and so on for the entirety of the list. I am thinking of using a for loop but there might be a... | [
{
"answer_id": 74636282,
"author": "Alex Rintt",
"author_id": 11793117,
"author_profile": "https://Stackoverflow.com/users/11793117",
"pm_score": 0,
"selected": false,
"text": "def diff(source):\n return [source[i] - source[i - 1] for i in range(1, len(source))]\n\nprint(diff([4, 7, 11,... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20649302/"
] |
74,636,232 | <p>What is the greatest factorial we can calculate using an int in Java 19?</p>
<p>I have found the calculation is correct up to <em>Factorial(12)</em> using an int to stock the result.</p>
<p>Here is the recursive code I use:</p>
<pre><code>public static int Factorial(int n) {
if (n >= 13) {
System.out.... | [
{
"answer_id": 74637997,
"author": "Spektre",
"author_id": 2521214,
"author_profile": "https://Stackoverflow.com/users/2521214",
"pm_score": 1,
"selected": false,
"text": "int 2^31 = 2147483648\n2^63 = 9223372036854775808\n [ 0.001 ms ] 1! = 1\n[ 0.000 ms ] 2! = 2\n[ 0.000 ms ] 3! = 6\n[... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16974223/"
] |
74,636,266 | <p>The controller code is:</p>
<pre><code>public async Task<ActionResult<IEnumerable<OutputString>>> Getoutput(AccountByCustomer input)
{
string StoredProc = "exec dbo.Get_ACCOUNT_Data_To_API " +
"@CustomerNumber = '" + input.CustomerNumber + "'" + ",... | [
{
"answer_id": 74637997,
"author": "Spektre",
"author_id": 2521214,
"author_profile": "https://Stackoverflow.com/users/2521214",
"pm_score": 1,
"selected": false,
"text": "int 2^31 = 2147483648\n2^63 = 9223372036854775808\n [ 0.001 ms ] 1! = 1\n[ 0.000 ms ] 2! = 2\n[ 0.000 ms ] 3! = 6\n[... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2660603/"
] |
74,636,276 | <p>I'm trying to post a request to this API. Here is my code:</p>
<pre><code>import requests
accesstoken = "74e41f9c-8ae6-4ebd-9568-f0c92e83bb54"
authnn = "4ef2db2b-70ea-11ed-9f86-063d0d6fdfb5"
def sender(number):
smstext = "hello test now#"
headers = {'User-Agent': 'Mozilla/5.0 ... | [
{
"answer_id": 74636327,
"author": "mzm",
"author_id": 20564950,
"author_profile": "https://Stackoverflow.com/users/20564950",
"pm_score": -1,
"selected": false,
"text": " json_data = {\n 'content': smstext,\n 'contentType': 'TEXT',\n 'from': '+447860002234',\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20651480/"
] |
74,636,322 | <p>I am trying to install pandas datareader, but I am hit with this error:</p>
<pre><code>Collecting pandas-datareader
Using cached pandas_datareader-0.10.0-py3-none-any.whl (109 kB)
Collecting lxml
Using cached lxml-4.9.1.tar.gz (3.4 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: panda... | [
{
"answer_id": 74636327,
"author": "mzm",
"author_id": 20564950,
"author_profile": "https://Stackoverflow.com/users/20564950",
"pm_score": -1,
"selected": false,
"text": " json_data = {\n 'content': smstext,\n 'contentType': 'TEXT',\n 'from': '+447860002234',\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16534139/"
] |
74,636,367 | <p>I'm trying to calculate the average in this sample; This example <strong>is working</strong> (but only when I select a specific ID, rather than the avg for every ID limited to 20 entries) but I'm having a hard time remembering how to calculate this for every <strong>id</strong> within the database, rather than the d... | [
{
"answer_id": 74636327,
"author": "mzm",
"author_id": 20564950,
"author_profile": "https://Stackoverflow.com/users/20564950",
"pm_score": -1,
"selected": false,
"text": " json_data = {\n 'content': smstext,\n 'contentType': 'TEXT',\n 'from': '+447860002234',\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3238707/"
] |
74,636,369 | <p>I am working with sorting a table in r and i am running into issues.</p>
<p>I have data similar to this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Sample.ID</th>
<th>SNP1</th>
<th>SNP2</th>
<th>SNP3</th>
<th>SNP4</th>
<th>SNP5</th>
</tr>
</thead>
<tbody>
<tr>
<td>39</td>
<td>GG</td>... | [
{
"answer_id": 74636417,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 2,
"selected": false,
"text": "NA NA NA aggregate(quux, quux[\"Sample.ID\"], FUN = function(z) unique(na.omit(z)[1]))\n# Grou... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19745098/"
] |
74,636,393 | <p>On a call to fib(10), how many times is fib(4) computed?
I can't seem to figure this out, could anyone help?</p>
<pre><code>def fib ( n ):
if n < 3:
return 1
else:
return fib(n-1) + fib(n-2)
</code></pre>
<p>Trying to figure out how many times fib(4) is computed.</p>
| [
{
"answer_id": 74636455,
"author": "Jason Lee",
"author_id": 15876496,
"author_profile": "https://Stackoverflow.com/users/15876496",
"pm_score": 1,
"selected": false,
"text": "T(n) = the times fib(n) call fib(4) T(4)=1, T(5)=1\n\nT(n) = T(n-1)+T(n-2)\n T(6) = T(5) + T(4) = 2\nT(7) = T(6)... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17214961/"
] |
74,636,407 | <p>I want to add <code>ɨ</code> on the right side of <code>tʂ</code>, <code>tʂ</code>, <code>ʂ</code>, <code>ʐ</code>, <code>ts</code>, <code>ts'</code>, and <code>s</code> when they appear in isolation (when they are not touching other IPA characters). Note that there's a number after each of them, and the lines are s... | [
{
"answer_id": 74636475,
"author": "dc-ddfe",
"author_id": 18709498,
"author_profile": "https://Stackoverflow.com/users/18709498",
"pm_score": 1,
"selected": false,
"text": "const input = `/ʊɔ3 yɛn2 tʂ2 tʂɑʊ3/\n/ʊɔ3 mən5 tɕ'ʂ2 tʂɑʊ3/\n/pu2 ʂ4 tʂə4 kə4/\n/ʂ1/`\n\nconst output = input.repl... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/122536/"
] |
74,636,410 | <p>I would like to send a dm to a user just by using their user id that I copied from their profile.</p>
<p>This is the code that I made, but it didn't work.</p>
<pre><code>@client.command()
async def dm(userID, *, message):
user = client.get_user(userID)
await user.send(message)
</code></pre>
<p>This is the er... | [
{
"answer_id": 74636475,
"author": "dc-ddfe",
"author_id": 18709498,
"author_profile": "https://Stackoverflow.com/users/18709498",
"pm_score": 1,
"selected": false,
"text": "const input = `/ʊɔ3 yɛn2 tʂ2 tʂɑʊ3/\n/ʊɔ3 mən5 tɕ'ʂ2 tʂɑʊ3/\n/pu2 ʂ4 tʂə4 kə4/\n/ʂ1/`\n\nconst output = input.repl... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19282100/"
] |
74,636,413 | <p>I'm trying to store all the <code>likedUserIds</code>s and <code>dislikedUserIds</code>s in local storage but for some reason, it's not even hitting the <code>if()</code> statement. The <code>likedPhotoUserId</code> function parameter indeed has a value, so why's it not hitting the first <code>if()</code>?</p>
<p>A... | [
{
"answer_id": 74636475,
"author": "dc-ddfe",
"author_id": 18709498,
"author_profile": "https://Stackoverflow.com/users/18709498",
"pm_score": 1,
"selected": false,
"text": "const input = `/ʊɔ3 yɛn2 tʂ2 tʂɑʊ3/\n/ʊɔ3 mən5 tɕ'ʂ2 tʂɑʊ3/\n/pu2 ʂ4 tʂə4 kə4/\n/ʂ1/`\n\nconst output = input.repl... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9903235/"
] |
74,636,418 | <p>I am learning Unity by building a simple card game.</p>
<p>I trying to display one card at the time using random function on the game object array.</p>
<p>I am using UI image component with sprite assets assigned to it while calling DealMyNewCard function on the button component.</p>
<p>I am expecting to see one car... | [
{
"answer_id": 74636511,
"author": "Willard Peng",
"author_id": 10259001,
"author_profile": "https://Stackoverflow.com/users/10259001",
"pm_score": 0,
"selected": false,
"text": "public void DealMyNewCard()\n{\n\n cardGenerate = Random.Range(2, 6);\n HideAllCards();\n dealtCard[car... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6802953/"
] |
74,636,426 | <p>I want to keep the first 2 elements in a Vec, and release unused memory, here is my code:</p>
<pre><code>let data: Vec<usize> = vec![1,2,3,4,5,6];//produced by another function
data.truncate(2);
data.shrink_to_fit();
</code></pre>
<p>I wonder is there an easier way to do this task?</p>
| [
{
"answer_id": 74636447,
"author": "tymtam",
"author_id": 581076,
"author_profile": "https://Stackoverflow.com/users/581076",
"pm_score": 0,
"selected": false,
"text": "let v = vec![v[0], v[1]];\n vec![&v[0], &v[1]] push insert push insert len()==capacity() Vec"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1805497/"
] |
74,636,441 | <p>I have implemented a Transformer encoder in keras using the template provided by Francois Chollet <a href="https://github.com/fchollet/deep-learning-with-python-notebooks/blob/master/chapter11_part03_transformer.ipynb" rel="nofollow noreferrer">here</a>. After I train the model I save it using <code>model.save</code... | [
{
"answer_id": 74637625,
"author": "Jirayu Kaewprateep",
"author_id": 7848579,
"author_profile": "https://Stackoverflow.com/users/7848579",
"pm_score": -1,
"selected": false,
"text": "import tensorflow as tf\n\nclass MyDenseLayer(tf.keras.layers.Layer):\n def __init__(self, num_output... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6286540/"
] |
74,636,539 | <p>My son is learning Python. He's only ten and just starting out and he's gotten stuck. He has a syntax error - can anyone help please? It's on line 18.</p>
<p>The error displayed is as follows:</p>
<p>File "main.py", line 23
elif player_choice == "2":
^
SyntaxError: invalid syntax
</p>
<p>Please ... | [
{
"answer_id": 74636575,
"author": "John Gordon",
"author_id": 494134,
"author_profile": "https://Stackoverflow.com/users/494134",
"pm_score": 1,
"selected": false,
"text": "if player_choice == \"1\":\n print(\"The chest contains billions of dollars but the money seems to\")\nprint(\"be... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20651769/"
] |
74,636,557 | <p>Given a 2D array I am looking for an elegant and performant way to divide up a 1D array of <code>words</code> given a start index and end index.</p>
<pre><code>// pass this in as an arg
var trim = [
[3, 4], // remove two words at index 3 and 4
[9, 10] // remove two words at index 9 and 10
]; // use this to refor... | [
{
"answer_id": 74636637,
"author": "danh",
"author_id": 294949,
"author_profile": "https://Stackoverflow.com/users/294949",
"pm_score": 0,
"selected": false,
"text": "const arrayWithoutIndexes = (array, indexes) => {\n return array.filter((el, i) => !indexes.includes(i));\n};\n\nvar wor... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1971279/"
] |
74,636,571 | <p>I am connecting to my backend login service using Angular. But I can't set the popup message when the username or password is wrong. In case of any mistake, I want to show the detail message from the API on my page in the login process, but it does not show anything.</p>
<p>login.component.ts</p>
<pre><code>import {... | [
{
"answer_id": 74636637,
"author": "danh",
"author_id": 294949,
"author_profile": "https://Stackoverflow.com/users/294949",
"pm_score": 0,
"selected": false,
"text": "const arrayWithoutIndexes = (array, indexes) => {\n return array.filter((el, i) => !indexes.includes(i));\n};\n\nvar wor... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15015277/"
] |
74,636,590 | <p>I am using matplotlib and cartopy to draw lines overlaid on maps in python. As of right now, I am just identifying the lat/lon of two points and plotting a line between them. Since I am taking cross sections across these lines, I would like to find a way to make the line the same length (say 300km long) no matter wh... | [
{
"answer_id": 74637683,
"author": "Michael Delgado",
"author_id": 3888719,
"author_profile": "https://Stackoverflow.com/users/3888719",
"pm_score": 0,
"selected": false,
"text": "import cartopy.crs as ccrs\nimport geopandas as gpd\n\npoint = gpd.GeoDataFrame(\n geometry=gpd.points_fr... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17990324/"
] |
74,636,602 | <p>Im new in cypress, trying to login to my practice web, but I got problem with this gtag. The actual testing with cypress is done (user success login) but there is one error that keeps make this testing failed, does anyone can help me?. this my pic and my cypress code and my config</p>
<p>This is my error pic</p>
<p>... | [
{
"answer_id": 74637093,
"author": "Kitty.Flanagan",
"author_id": 20652454,
"author_profile": "https://Stackoverflow.com/users/20652454",
"pm_score": 2,
"selected": true,
"text": "Cypress.on('uncaught:exception', (err, runnable) => {\n return false;\n})\n"
},
{
"answer_id": 7464... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20651808/"
] |
74,636,623 | <p>I am getting a table from database and creating it as an html table to send automated mail..the table has date modified section and another column which has only date and not t..but while it is getting converted to html table the date column shows date along with time.
My html table structure:
Other dynamic function... | [
{
"answer_id": 74642710,
"author": "Vic F",
"author_id": 4054386,
"author_profile": "https://Stackoverflow.com/users/4054386",
"pm_score": 2,
"selected": false,
"text": "DateTime ToString() var dateOnly = DateTime.Now.ToString(\"yyyy-MM-dd\"); DateOnly DateOnly dateOnly = DateOnly.FromDa... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20152482/"
] |
74,636,630 | <pre><code>library(data.table)
library(dplyr)
A <-data.frame(V1=c("Amy", 1:6), V2=c("Grade", 1:6), V3=c("level", LETTERS[1:6]))
B <-data.frame(V1=c("Mike", 1:6), V2=c("Grade", 1:6), V3=c("level", LETTERS[1:6]))
C <-data.frame(V1=c("Kevin", ... | [
{
"answer_id": 74642710,
"author": "Vic F",
"author_id": 4054386,
"author_profile": "https://Stackoverflow.com/users/4054386",
"pm_score": 2,
"selected": false,
"text": "DateTime ToString() var dateOnly = DateTime.Now.ToString(\"yyyy-MM-dd\"); DateOnly DateOnly dateOnly = DateOnly.FromDa... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20137369/"
] |
74,636,639 | <p>I got strings like</p>
<p><code>String1=277473—-2627272———-273-3838383-/./--asdfg-----123:12:2---</code></p>
<p>I cant take length of function because I have multiple strings with different lenghts.</p>
<p>I wanted to use split function to take them as a variable but I need this format</p>
<p><code>String1=277473-26... | [
{
"answer_id": 74642710,
"author": "Vic F",
"author_id": 4054386,
"author_profile": "https://Stackoverflow.com/users/4054386",
"pm_score": 2,
"selected": false,
"text": "DateTime ToString() var dateOnly = DateTime.Now.ToString(\"yyyy-MM-dd\"); DateOnly DateOnly dateOnly = DateOnly.FromDa... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17241290/"
] |
74,636,644 | <p>I have these directories:</p>
<pre><code>└── MY_FOLDER
├── MY_PROJECT
│ └── settings.py
│
├── MY_APP
├── STATIC
│ └── style.css
├── MEDIA
└── manage.py
</code></pre>
<p>In the settings.py I've indicated:</p>
<pre><code>BASE_DIR = Path(__file__).resolve().parent.parent
STATIC... | [
{
"answer_id": 74642710,
"author": "Vic F",
"author_id": 4054386,
"author_profile": "https://Stackoverflow.com/users/4054386",
"pm_score": 2,
"selected": false,
"text": "DateTime ToString() var dateOnly = DateTime.Now.ToString(\"yyyy-MM-dd\"); DateOnly DateOnly dateOnly = DateOnly.FromDa... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19317701/"
] |
74,636,649 | <p>I am using the python webbrowser module to try and open a html file. I added a short thing to get code from a website to view, allowing me to store a web-page incase I ever need to view it without wifi, for instance a news article or something else.</p>
<p>The code itself is fairly short so far, so here it is:</p>
<... | [
{
"answer_id": 74642710,
"author": "Vic F",
"author_id": 4054386,
"author_profile": "https://Stackoverflow.com/users/4054386",
"pm_score": 2,
"selected": false,
"text": "DateTime ToString() var dateOnly = DateTime.Now.ToString(\"yyyy-MM-dd\"); DateOnly DateOnly dateOnly = DateOnly.FromDa... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19104306/"
] |
74,636,711 | <pre><code>cm = int(input("Write height in Centimeters:"))
inches = 0.394*cm
feet = 0.0328*cm
print(("The length in inches",round(inches,2))).round(inches,2)
print(("The length in feet",round(feet,2))).round(feet,2)
</code></pre>
<p>this is the code</p>
<p>this code should convert cm in f... | [
{
"answer_id": 74636738,
"author": "Sabir",
"author_id": 16954011,
"author_profile": "https://Stackoverflow.com/users/16954011",
"pm_score": 0,
"selected": false,
"text": "cm = int(input(\"Write height in Centimeters:\"))\ninches = 0.394*cm\nfeet = 0.0328*cm\nprint((\"The length in inche... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652006/"
] |
74,636,742 | <p>I'm working on a small game. The point of the game is, you get random numbers, and you need to click those numbers in order from 1 through 25.</p>
<p>Basically i want to make sure that i can only click on no. 2 if not 1 was clicked and i can't click on another other box. Once no. 1 and 2 have been clicked, i can onl... | [
{
"answer_id": 74636999,
"author": "NAZIR HUSSAIN",
"author_id": 20587701,
"author_profile": "https://Stackoverflow.com/users/20587701",
"pm_score": 0,
"selected": false,
"text": " squares[i].addEventListener('click', function() { \n console.log(clickedSquares)\n if(clickedSquares... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18992987/"
] |
74,636,744 | <p>I am a very early beginner to coding. I downloaded VS Code so that I could, you know, have somewhere to code in Java. However, I keep getting these two errors telling me these two extensions that I already have installed on VS Code are not working <a href="https://i.stack.imgur.com/eotJ1.png" rel="nofollow noreferre... | [
{
"answer_id": 74636999,
"author": "NAZIR HUSSAIN",
"author_id": 20587701,
"author_profile": "https://Stackoverflow.com/users/20587701",
"pm_score": 0,
"selected": false,
"text": " squares[i].addEventListener('click', function() { \n console.log(clickedSquares)\n if(clickedSquares... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652011/"
] |
74,636,829 | <p>I'm looking for a way to replace all words not wrapped in a span tag to (space).
I've tried various ways, but so far not getting what I want.</p>
<p>The code that I wrote below is quite effective, but there are still many shortcomings.
For example if the lyrics are capitalized, they will not be converted to spaces.<... | [
{
"answer_id": 74636961,
"author": "DCodeMania",
"author_id": 8546303,
"author_profile": "https://Stackoverflow.com/users/8546303",
"pm_score": -1,
"selected": false,
"text": "const chord = document.querySelector('.chord');\nconst span = chord.querySelectorAll('span');\nconst spanText = ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20558795/"
] |
74,636,853 | <p>I am not able to show the report to the management team in proper format. if you guys have any standared format or global format then please suggest me.</p>
| [
{
"answer_id": 74636961,
"author": "DCodeMania",
"author_id": 8546303,
"author_profile": "https://Stackoverflow.com/users/8546303",
"pm_score": -1,
"selected": false,
"text": "const chord = document.querySelector('.chord');\nconst span = chord.querySelectorAll('span');\nconst spanText = ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652161/"
] |
74,636,865 | <p>I'm stumped as to why my solution for the Recursive Digit Sum question on HackerRank is being rejected.</p>
<h1>Background</h1>
<p><strong>The question:</strong></p>
<p>For an input of string n and integer k, the number h is created by concatenating n "k" times. Find the "super digit" of h by rec... | [
{
"answer_id": 74637139,
"author": "scr",
"author_id": 18781246,
"author_profile": "https://Stackoverflow.com/users/18781246",
"pm_score": 1,
"selected": false,
"text": "str int str >>> \"10\"*\"2\"\nTraceback (most recent call last):\n File \"<stdin>\", line 1, in <module>\nTypeError: ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10719083/"
] |
74,636,869 | <p>I have the following list of dicts:</p>
<pre><code>lst = [{'a':1, 'b':2, 'c':3}, {'a':1, 'b':2, 'd':3}, {'a':1, 'c':2, 'k':3}, {'d':1, 'k':2, 'l':3}]
</code></pre>
<p>I want to filter the list of dicts (in my case it's a list of thousands or even more dicts, with different keys with some overlap) to be a list contai... | [
{
"answer_id": 74636892,
"author": "wim",
"author_id": 674039,
"author_profile": "https://Stackoverflow.com/users/674039",
"pm_score": 2,
"selected": false,
"text": "<= >>> keys = set(\"ab\")\n>>> [{k: d[k] for k in keys} for d in lst if keys <= d.keys()]\n[{'a': 1, 'b': 2}, {'a': 1, 'b'... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030099/"
] |
74,636,899 | <p>Apologize for title. Having trouble explaining this.</p>
<p>I am running into an issue, and I am not sure what the best approach is here. Please see table picture. In this data set I need to find the date prd1 date in the prd2 column. If found, I need to then look at the dense_rnk column minus 1 and grab the value i... | [
{
"answer_id": 74636892,
"author": "wim",
"author_id": 674039,
"author_profile": "https://Stackoverflow.com/users/674039",
"pm_score": 2,
"selected": false,
"text": "<= >>> keys = set(\"ab\")\n>>> [{k: d[k] for k in keys} for d in lst if keys <= d.keys()]\n[{'a': 1, 'b': 2}, {'a': 1, 'b'... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16669577/"
] |
74,636,955 | <p>I need a python program for converting an input sentence into Pig Latin which has 2 rules:</p>
<ol>
<li>If a word begins with a consonant all consonants before the first vowel are moved to the end of the word and the letters "ay" are then added to the end. e.g. "coin" becomes "oincay" a... | [
{
"answer_id": 74636892,
"author": "wim",
"author_id": 674039,
"author_profile": "https://Stackoverflow.com/users/674039",
"pm_score": 2,
"selected": false,
"text": "<= >>> keys = set(\"ab\")\n>>> [{k: d[k] for k in keys} for d in lst if keys <= d.keys()]\n[{'a': 1, 'b': 2}, {'a': 1, 'b'... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652287/"
] |
74,636,957 | <p>Here is my function call using the std::thread library.</p>
<pre><code>threads.push_back(std::thread(&polynomial::multiply, this, std::cref(chunck[i]), std::cref(poly), std::ref(result_vector[i].poly)));
</code></pre>
<p>This is my function declarations:</p>
<pre><code>void polynomial::multiply(const std::unorde... | [
{
"answer_id": 74637001,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 1,
"selected": false,
"text": "_Args = {const polynomial*, ...\n const void polynomial::multiply(const std::unordered_map<power, coeff> &vector_curren... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19586504/"
] |
74,636,990 | <p>I have a column in a dataframe holding subjects:</p>
<pre><code>sub <- c("A", "A", "B", "C", "C", "C", "D", "E", "F", "F")
subjects <- data.frame(sub)
</code></pre>
<p>I have another data frame containing column... | [
{
"answer_id": 74637064,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 1,
"selected": false,
"text": "newsubjects library(tidyverse)\nsubjects %>%\n left_join(newsubjects %>% \n pivot_longer(everything()... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74636990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7093643/"
] |
74,637,006 | <p>I have two tables, user:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>full_name</th>
<th>is_admin</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>jane</td>
<td>0</td>
</tr>
<tr>
<td>2</td>
<td>Helio</td>
<td>0</td>
</tr>
<tr>
<td>3</td>
<td>fran</td>
<td>0</td>
</tr>
<tr>
... | [
{
"answer_id": 74637064,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 1,
"selected": false,
"text": "newsubjects library(tidyverse)\nsubjects %>%\n left_join(newsubjects %>% \n pivot_longer(everything()... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12321753/"
] |
74,637,025 | <p>Student ID, Assignment, <strong>Score</strong><br />
123456, Zany Text, 100 <br />
123456, Magic 9 Ball, 60<br />
123456, Nim Grab, 80<br />
123456, Dungeon Crawl, 78<br />
123456, Ultimate TODO List, 90<br />
654321, Zany Text, 48</p>
<p>This is the content of the .txt file, I need to iterate through this text and ... | [
{
"answer_id": 74637302,
"author": "Jack Reilly",
"author_id": 6741576,
"author_profile": "https://Stackoverflow.com/users/6741576",
"pm_score": 0,
"selected": false,
"text": "tup.append .readline() strip for item in list: \ninfile=open(\"scores.txt\", \"r\")\ntable = []\ntable.append(in... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20414189/"
] |
74,637,087 | <p>I'm working with a subscription that has a few different deployed environments (dev, test, staging, etc.). Each environment has its own storage account, containing an associated Terraform state file. These environments get deployed via Azure DevOps Pipelines.</p>
<p>It's easy enough to get at the .tfstate files that... | [
{
"answer_id": 74650505,
"author": "Bowman Zhu-MSFT",
"author_id": 6261890,
"author_profile": "https://Stackoverflow.com/users/6261890",
"pm_score": 0,
"selected": false,
"text": "AzurePowerShell - task: AzurePowerShell@5\n inputs:\n azureSubscription: 'testbowman_in_AAD' #This servi... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20642679/"
] |
74,637,105 | <p>i am a beginner in C++ and my question is:
why my vector in a class is empty when i try to access that vector elements in another class after i added elements to that vector?</p>
<p>i have a class for example <strong>class1</strong> and this class has a vector of type string and a member function which adds element... | [
{
"answer_id": 74650505,
"author": "Bowman Zhu-MSFT",
"author_id": 6261890,
"author_profile": "https://Stackoverflow.com/users/6261890",
"pm_score": 0,
"selected": false,
"text": "AzurePowerShell - task: AzurePowerShell@5\n inputs:\n azureSubscription: 'testbowman_in_AAD' #This servi... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652291/"
] |
74,637,111 | <p>I have two flatLists nested inside of a scrollView so I am able to scroll my entire page. However, I know that you are not supposed to nest flatLists in scrollViews for multiple reasons.</p>
<p><strong>How can I render two flatLists while still being able to scroll throughout the entire page?</strong> The GIF at the... | [
{
"answer_id": 74637632,
"author": "Peter Tam",
"author_id": 20002061,
"author_profile": "https://Stackoverflow.com/users/20002061",
"pm_score": 2,
"selected": true,
"text": "ListHeaderComponent <FlatList\n data={newData}\n renderItem={renderItem}\n onEndReached={fetchMoreBars}\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12915212/"
] |
74,637,121 | <p>Im currently having issues with my first bloc made from 0, it supposed to throw an error once a number reaches a certain number, but i noticed through testing that the event is not receiving any data at all, i have no idea what im doing wrong.</p>
<p>I can confirm that the event is being triggered, on changed the te... | [
{
"answer_id": 74637632,
"author": "Peter Tam",
"author_id": 20002061,
"author_profile": "https://Stackoverflow.com/users/20002061",
"pm_score": 2,
"selected": true,
"text": "ListHeaderComponent <FlatList\n data={newData}\n renderItem={renderItem}\n onEndReached={fetchMoreBars}\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19702304/"
] |
74,637,131 | <p>I can set dates, times, and type whatever ask I won't successfully and reminders. I do not have receive any error, but I don't have receive any notification, when the task is set. These are my code snippet below:</p>
<pre><code></code></pre>
<p>this is my set alarm class:</p>
<pre><code></code></pre>
<blockquote>
<p... | [
{
"answer_id": 74637320,
"author": "Sadegh.t",
"author_id": 6166210,
"author_profile": "https://Stackoverflow.com/users/6166210",
"pm_score": 0,
"selected": false,
"text": "alarmManager.set alarmManager.setAlarmClock()"
},
{
"answer_id": 74639099,
"author": "Vishal Shah",
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20023087/"
] |
74,637,152 | <p>I have 2 tables: dish and rating. Dish:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>pizza</td>
</tr>
<tr>
<td>2</td>
<td>wok</td>
</tr>
<tr>
<td>3</td>
<td>sushi</td>
</tr>
</tbody>
</table>
</div>
<p>Rating:</p>
<div c... | [
{
"answer_id": 74637320,
"author": "Sadegh.t",
"author_id": 6166210,
"author_profile": "https://Stackoverflow.com/users/6166210",
"pm_score": 0,
"selected": false,
"text": "alarmManager.set alarmManager.setAlarmClock()"
},
{
"answer_id": 74639099,
"author": "Vishal Shah",
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20648314/"
] |
74,637,159 | <p>I have a program that uses a large amount of stack. I use Linux, and so have already set the stack size limit via <code>ulimit -s 1048576</code>.</p>
<p>Running <code>cargo test -- --test-threads 1</code> works as expected, but when I use more than one thread, e.g. <code>cargo test -- --test-threads 2</code>, I get ... | [
{
"answer_id": 74637444,
"author": "Ana",
"author_id": 1002430,
"author_profile": "https://Stackoverflow.com/users/1002430",
"pm_score": 2,
"selected": false,
"text": "RUST_MIN_STACK RUST_MIN_STACK=104857600 cargo test"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1002430/"
] |
74,637,179 | <p>I have tried to use media queries and display: none in my CSS, but it does not hide the text on a smaller screen. Please help</p>
<p>HTML code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prett... | [
{
"answer_id": 74637307,
"author": "Kairav Thakar",
"author_id": 20447312,
"author_profile": "https://Stackoverflow.com/users/20447312",
"pm_score": 2,
"selected": false,
"text": "@media screen and (max-width: 600px) {\n header h1 {\n display: none;\n }\n} <header class=\"word\">\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555751/"
] |
74,637,192 | <p>I am looking for an API that lists all the startup applications in Windows, and can return whether each application is enabled or disabled at startup and it's level of impact.</p>
<p>These settings and the startup apps referred to are found in Settings->Apps->Startup.</p>
<p>I have found PowerShell and command... | [
{
"answer_id": 74637586,
"author": "ufosnowcat",
"author_id": 1728208,
"author_profile": "https://Stackoverflow.com/users/1728208",
"pm_score": -1,
"selected": false,
"text": "using(PowerShell ps = PowerShell.Create())\n{\n ps.AddCommand(\"the command\")\n .AddParameter(\"parname... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8436436/"
] |
74,637,231 | <p>I'm trying to write a function that will take a set of arguments from the rows of a 2d array and use them in conjunction with all the elements of a longer 1d array:</p>
<pre><code>x = np.linspace(-10,10,100)
abc = np.array([[1,2,1],
[1,3,5],
[12.5,-6.4,-1.25],
[4,2,1]])
def quadratic(a, b, c, x):... | [
{
"answer_id": 74637586,
"author": "ufosnowcat",
"author_id": 1728208,
"author_profile": "https://Stackoverflow.com/users/1728208",
"pm_score": -1,
"selected": false,
"text": "using(PowerShell ps = PowerShell.Create())\n{\n ps.AddCommand(\"the command\")\n .AddParameter(\"parname... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20029037/"
] |
74,637,232 | <p>I am creating a matchmaking function where 2 players with the same weight will be paired.</p>
<p>It is currently working now based on the same weight. Now, I added another condition where players have their own level. My first condition is based on the same weight. This is working. My 2nd condition is about "CL... | [
{
"answer_id": 74637586,
"author": "ufosnowcat",
"author_id": 1728208,
"author_profile": "https://Stackoverflow.com/users/1728208",
"pm_score": -1,
"selected": false,
"text": "using(PowerShell ps = PowerShell.Create())\n{\n ps.AddCommand(\"the command\")\n .AddParameter(\"parname... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14793352/"
] |
74,637,241 | <p>I'm trying to set up an elasticsearch index with an array of objects. I tried the following mapping:</p>
<pre><code>{
"mappings": {
"date_detection": false,
"properties": {
"resource": {
"type": "object",
"properties&quo... | [
{
"answer_id": 74638540,
"author": "ESCoder",
"author_id": 10348758,
"author_profile": "https://Stackoverflow.com/users/10348758",
"pm_score": 2,
"selected": false,
"text": "properties {\n \"mappings\": {\n \"properties\": { // note thi... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1330810/"
] |
74,637,254 | <p>I have copy pasted data from an Excel file into Google Sheet.
One of the columns has date formatted as - 11-07-2022.
<a href="https://i.stack.imgur.com/FKlHv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FKlHv.png" alt="enter image description here" /></a></p>
<p>Google Sheets is reading it as 1... | [
{
"answer_id": 74638952,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=ARRAYFORMULA(IFERROR(REGEXREPLACE(TO_TEXT(A2:A), \n \"(\\d+)/(\\d+)/(\\d{2,4})\", \"$2/$1/$3\")*1, A2:A)*1)\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13170475/"
] |
74,637,278 | <p>I am testing react functional component where i need to click a button before button click it is using some state which is false i want to make true so that my test case will pass.please help</p>
| [
{
"answer_id": 74638952,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=ARRAYFORMULA(IFERROR(REGEXREPLACE(TO_TEXT(A2:A), \n \"(\\d+)/(\\d+)/(\\d{2,4})\", \"$2/$1/$3\")*1, A2:A)*1)\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10524249/"
] |
74,637,284 | <p>I had a dataset like with four columns</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">quarter</th>
<th style="text-align: left;">Year</th>
<th style="text-align: left;">Product</th>
<th style="text-align: left;">state</th>
</tr>
</thead>
<tbody>
<tr>
<td style=... | [
{
"answer_id": 74638952,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=ARRAYFORMULA(IFERROR(REGEXREPLACE(TO_TEXT(A2:A), \n \"(\\d+)/(\\d+)/(\\d{2,4})\", \"$2/$1/$3\")*1, A2:A)*1)\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8747361/"
] |
74,637,312 | <p>Not sure if it something im doing wrong or a bug or a change in .net7 razor pages.</p>
<p>when navigation to a page with a route. the page loads fine and has the route values in the url but does not populate the variables with the values.</p>
<p>my page directive is
@page "/flights/{SourceIATA?}/{DestinationIAT... | [
{
"answer_id": 74638952,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=ARRAYFORMULA(IFERROR(REGEXREPLACE(TO_TEXT(A2:A), \n \"(\\d+)/(\\d+)/(\\d{2,4})\", \"$2/$1/$3\")*1, A2:A)*1)\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9666854/"
] |
74,637,349 | <p>Please help me how to stop the hover effect. I want a Javascript or Jquery code to stop hover after clicking the values and the list of value will stay. And for the "x" button(close), it will close list of value and reset back to hover.
Thanks in advance.</p>
<p>CSS:
<div class="snippet" data-lang="js" dat... | [
{
"answer_id": 74638952,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=ARRAYFORMULA(IFERROR(REGEXREPLACE(TO_TEXT(A2:A), \n \"(\\d+)/(\\d+)/(\\d{2,4})\", \"$2/$1/$3\")*1, A2:A)*1)\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19312269/"
] |
74,637,359 | <p>here is the example image of i need</p>
<p><a href="https://i.stack.imgur.com/fRBe5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fRBe5.jpg" alt="Example Image" /></a></p>
<p>and here is the code i tried</p>
<pre><code>Padding(
padding: const EdgeInsets.only(right: 30, left: 30, bottom: 20... | [
{
"answer_id": 74637472,
"author": "Ravindra S. Patil",
"author_id": 13997210,
"author_profile": "https://Stackoverflow.com/users/13997210",
"pm_score": 3,
"selected": true,
"text": "Padding(\n padding: const EdgeInsets.only(right: 30, left: 30, bottom: 20),\n child: Container(\n de... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652703/"
] |
74,637,367 | <p>So, the method is supposed to go into the array, choose the positive numbers, and then store those even numbers in a different array.</p>
<p>I have tried debugging checks, tried switching values in the if statement, but nothing has worked. I am still new to dealing with arrays, so I apologize if this has a really si... | [
{
"answer_id": 74637472,
"author": "Ravindra S. Patil",
"author_id": 13997210,
"author_profile": "https://Stackoverflow.com/users/13997210",
"pm_score": 3,
"selected": true,
"text": "Padding(\n padding: const EdgeInsets.only(right: 30, left: 30, bottom: 20),\n child: Container(\n de... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20443194/"
] |
74,637,386 | <p>I have a parent component and a child component, and I want to pass a src attribute to the child component via defineProps to make it display the image.</p>
<p>Below is my parent component code:</p>
<pre><code><script setup>
import item from "./item.vue";
const items=[
{
id:0,
img:'../asset... | [
{
"answer_id": 74637472,
"author": "Ravindra S. Patil",
"author_id": 13997210,
"author_profile": "https://Stackoverflow.com/users/13997210",
"pm_score": 3,
"selected": true,
"text": "Padding(\n padding: const EdgeInsets.only(right: 30, left: 30, bottom: 20),\n child: Container(\n de... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20485257/"
] |
74,637,393 | <p>I have a Mailchimp sign-up form with an <code><input></code> element that has placeholder text. On Chrome, Firefox, and Microsoft Edge it displays fine but on Safari (desktop and mobile) the placeholder text does not show. It is blank. Code below:</p>
<pre><code><input type="email" placeholder=&qu... | [
{
"answer_id": 74637472,
"author": "Ravindra S. Patil",
"author_id": 13997210,
"author_profile": "https://Stackoverflow.com/users/13997210",
"pm_score": 3,
"selected": true,
"text": "Padding(\n padding: const EdgeInsets.only(right: 30, left: 30, bottom: 20),\n child: Container(\n de... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13996581/"
] |
74,637,401 | <p>I'm trying to figure out how I can trigger two functions within an onSubmit event handler inside a form element in React. I've been googling for answers, but they either have () after the functions (which returns an error), only one function works, or neither of two works.</p>
<p>Here are my functional components</... | [
{
"answer_id": 74638152,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 1,
"selected": false,
"text": "<form \n className=\"restaurant\" \n onSubmit={(values) => {\n handleSubmit(values)\n handleSubmitVisit(val... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19583401/"
] |
74,637,403 | <p><strong>dbo.table1</strong></p>
<pre><code>DataID MemberID
2 1001
3 1001
</code></pre>
<p><strong>dbo.table2</strong></p>
<pre><code>PointsID MemberID PartnerPoints
1 1001 100
2 1001 100
</code></pre>
<p><strong>dbo.table3</strong></p>
<pre><code>DataID table3ID PointsID Pa... | [
{
"answer_id": 74638421,
"author": "ufosnowcat",
"author_id": 1728208,
"author_profile": "https://Stackoverflow.com/users/1728208",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO [dbo].[Table3]\n(\n DataID\n PointsID\n PartnerPoints,\n)\nSELECT\n DataID\n PointsID\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17334611/"
] |
74,637,414 | <p>What Mistake do we do while coding a loop for printing float values in C/C++ language?
How can we print decimal values such as 1.0,1.2,1.3,1.4...(till where we need them) using a loop?
What if, I don't want to increment the value of a variable with 1 digit, rather I want incrementation in decimals.</p>
<p>I didn't g... | [
{
"answer_id": 74637588,
"author": "EPIC PJM",
"author_id": 20652697,
"author_profile": "https://Stackoverflow.com/users/20652697",
"pm_score": -1,
"selected": false,
"text": "#include <stdio.h>\n#include <conio.h>\nvoid main()\n{\n float i;\n clrscr();\n for(i=1.2;i<=3.5;i+=0.1){\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652697/"
] |
74,637,434 | <p>It's a simple college problem. I have to get the result using the BMI calc</p>
<p>My code below:</p>
<pre><code>(write-line "BMI CALC")
(defun calc nil
(prog (w h) ; define p e h as local variables init with nil
(print "Weight: ")
(setq w (read))
(print "Height: ")
... | [
{
"answer_id": 74637827,
"author": "Martin Půda",
"author_id": 13590263,
"author_profile": "https://Stackoverflow.com/users/13590263",
"pm_score": 2,
"selected": false,
"text": "calc (setq bmi calc) let (my-bmi) (defun calc ()\n (prog (w h)\n (print \"Weight: \")\n (setq w (read *... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17100588/"
] |
74,637,457 | <p>Recently I stumbled upon the <code>Promise.then</code> example on MDN just before this article <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#nesting" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#nesting</a></p>
<p>The e... | [
{
"answer_id": 74637827,
"author": "Martin Půda",
"author_id": 13590263,
"author_profile": "https://Stackoverflow.com/users/13590263",
"pm_score": 2,
"selected": false,
"text": "calc (setq bmi calc) let (my-bmi) (defun calc ()\n (prog (w h)\n (print \"Weight: \")\n (setq w (read *... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3429430/"
] |
74,637,464 | <p>I am getting an object from parent component and setting to state. In child component I am updating the state, but the parent reference object values also changing instead of only state changes.</p>
<p><strong>Parent Component has a huge object,</strong></p>
<pre><code>obj = {
values: {
per1: { name: "rsk&q... | [
{
"answer_id": 74638012,
"author": "Tejashree Surve",
"author_id": 15197074,
"author_profile": "https://Stackoverflow.com/users/15197074",
"pm_score": 0,
"selected": false,
"text": " const [inp, setInp] = useState(Object.assign({}, obj.values));\n"
},
{
"answer_id": 74638462,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8889546/"
] |
74,637,478 | <p>This should be simple but I can't get ride of this null pointer warning. What can you do?
<a href="https://i.stack.imgur.com/jg0yp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jg0yp.png" alt="enter image description here" /></a></p>
<pre><code>private static List<OrderHeader> orderHeaders... | [
{
"answer_id": 74637590,
"author": "Nate1zn",
"author_id": 18154499,
"author_profile": "https://Stackoverflow.com/users/18154499",
"pm_score": 0,
"selected": false,
"text": "<Nullable>enable</Nullable>\n"
},
{
"answer_id": 74637672,
"author": "Carlos",
"author_id": 104139... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1500778/"
] |
74,637,498 | <p>I have the below JSON string with multiple JSON objects. I would like to extract just the id and name from each object and print it.</p>
<pre class="lang-json prettyprint-override"><code>{
"users": [
{
"id": "1",
"name": "John Wick",
"loc... | [
{
"answer_id": 74637890,
"author": "TheAnalogyGuy",
"author_id": 6317990,
"author_profile": "https://Stackoverflow.com/users/6317990",
"pm_score": 1,
"selected": false,
"text": "man jq\n jq -r '.users[] | [.id , .name] | @csv' sample.json\n $ jq -r '.users[] | [.id , .name] | @csv' sampl... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5955680/"
] |
74,637,501 | <p>I am trying to Manipulate the Text with id 'varname' (Spartans) with the value inputted in the form saved as a variable 'input'</p>
<pre><code><div class="middle">
<h2 class="greet" id="demo">Welcome Back,&nbsp; <span id="varname">Spartan</span>... | [
{
"answer_id": 74637564,
"author": "Natrium",
"author_id": 59119,
"author_profile": "https://Stackoverflow.com/users/59119",
"pm_score": 3,
"selected": true,
"text": "<input type=\"button\"> <input type=\"submit\">"
},
{
"answer_id": 74649070,
"author": "Nagonus Lrak",
"a... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18018970/"
] |
74,637,514 | <p>I have 3 <code>Vec<T></code> structs that shared the same function:</p>
<pre><code>Vec<RawTransaction>
Vec<RawCashTransaction>
Vec<RawAdjustmentTransaction>
</code></pre>
<p>All three shared the same <code>VerifyableRaw</code> traits and the <code>verify()</code> function. I use the <code>ver... | [
{
"answer_id": 74637824,
"author": "Maxim Gritsenko",
"author_id": 4997879,
"author_profile": "https://Stackoverflow.com/users/4997879",
"pm_score": 1,
"selected": false,
"text": "pub trait VerifyableRaw {\n fn date(&self) -> Option<NativeDate>;\n fn credit(&self) -> &str;\n fn ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1608979/"
] |
74,637,528 | <p>There are many persons working on the same git repo. I'd like to list each person's last commit time. Like:</p>
<pre><code>Alice Nov 22
Bob Nov 21
Charlie Nov 29
</code></pre>
<p>...</p>
<p>I know that I can get a specific person's last commit using:</p>
<pre><code>git log --author="bob" -1
</code></pre>... | [
{
"answer_id": 74637591,
"author": "Zhubei Federer",
"author_id": 10769406,
"author_profile": "https://Stackoverflow.com/users/10769406",
"pm_score": 0,
"selected": false,
"text": "$ git log --format=\"%aN\" | sort | uniq\n $ git log --format=\"%aN %ad\" --date=short | grep \"^<USERNAME>... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2185472/"
] |
74,637,548 | <p>I am trying to calculate a percentage of landmass occupied by a country from the total landmass.I am taking two arguments as string and float in a function and returning String along with the calculated percentage in it. For example the <strong>Input =area_of_country("Russia", 17098242)</strong> and <stron... | [
{
"answer_id": 74637570,
"author": "ilyasbbu",
"author_id": 16475089,
"author_profile": "https://Stackoverflow.com/users/16475089",
"pm_score": 1,
"selected": false,
"text": "return str(st) + \"is\" + str(percentage) + \"of total world mass!\"\n"
},
{
"answer_id": 74637601,
"... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502753/"
] |
74,637,565 | <p>I defined a tuples in a for loop like this (From <a href="https://leetcode.com/problems/determine-if-string-halves-are-alike/description/" rel="nofollow noreferrer">Leetcode 1704</a>)</p>
<pre><code>for (var tuple = (i : 0, j : s.Length / 2); tuple.i < s.Length / 2 && tuple.j < s.Length; tuple.i++, tup... | [
{
"answer_id": 74637626,
"author": "SNBS",
"author_id": 20426120,
"author_profile": "https://Stackoverflow.com/users/20426120",
"pm_score": 0,
"selected": false,
"text": "string int Tuple<int, string> tuple = Tuple.Create<int, string>(0, \"a string\"); // Generic parameters are types of ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16571732/"
] |
74,637,635 | <p>i am trying to create a video player ,So I am trying to add the videos to the list
Storage permission is required to fetch the videos, so I took the permission with the below code.
But playstore was reject My app for this <strong>MANAGE EXTERNAL STORAGE</strong> permission.
But without this permission, I can't get s... | [
{
"answer_id": 74637626,
"author": "SNBS",
"author_id": 20426120,
"author_profile": "https://Stackoverflow.com/users/20426120",
"pm_score": 0,
"selected": false,
"text": "string int Tuple<int, string> tuple = Tuple.Create<int, string>(0, \"a string\"); // Generic parameters are types of ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20317930/"
] |
74,637,639 | <p>I have a spreadsheet with 100+ entries. One column consists of IDs. I need to combine these into a single string with each ID separated by a comma, eg:</p>
<h2>| ID |</h2>
<p>|123|
|567|
|890|</p>
<p>Becomes one cell with the value</p>
<pre><code>123,567,980
</code></pre>
<p>I know I can <code>concat</code> each cel... | [
{
"answer_id": 74637626,
"author": "SNBS",
"author_id": 20426120,
"author_profile": "https://Stackoverflow.com/users/20426120",
"pm_score": 0,
"selected": false,
"text": "string int Tuple<int, string> tuple = Tuple.Create<int, string>(0, \"a string\"); // Generic parameters are types of ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1433268/"
] |
74,637,645 | <p>I'm working on a alumni portal where I need to display the committee member details. I need to print like 4 members in a line and next 4 in the next line. Any solution would be helpful.
<a href="https://i.stack.imgur.com/7jNiM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7jNiM.png" alt="enter i... | [
{
"answer_id": 74637740,
"author": "Danz",
"author_id": 19681705,
"author_profile": "https://Stackoverflow.com/users/19681705",
"pm_score": 1,
"selected": true,
"text": "<div class=\"row\">\n @foreach ($members as $member)\n <div class=\"col-md-3\">\n <div class=\"img-box\">\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19784195/"
] |
74,637,660 | <p>I have 2 tables.</p>
<p>table1:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>item</th>
<th>end time</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2022-11-23 08:12:00</td>
</tr>
<tr>
<td>1</td>
<td>2022-11-23 09:12:00</td>
</tr>
<tr>
<td>2</td>
<td>2022-11-22 13:12:00</td>
</tr>
<tr>... | [
{
"answer_id": 74637740,
"author": "Danz",
"author_id": 19681705,
"author_profile": "https://Stackoverflow.com/users/19681705",
"pm_score": 1,
"selected": true,
"text": "<div class=\"row\">\n @foreach ($members as $member)\n <div class=\"col-md-3\">\n <div class=\"img-box\">\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653002/"
] |
74,637,692 | <p>Rahul was learning about numbers in list. He came across one word ground of a number.</p>
<p>A ground of a number is defined as the number which is just smaller or equal to the number given to you.Hence he started solving some assignments related to it. He got struck in some questions. Your task is to help him.</p>
... | [
{
"answer_id": 74637740,
"author": "Danz",
"author_id": 19681705,
"author_profile": "https://Stackoverflow.com/users/19681705",
"pm_score": 1,
"selected": true,
"text": "<div class=\"row\">\n @foreach ($members as $member)\n <div class=\"col-md-3\">\n <div class=\"img-box\">\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20214346/"
] |
74,637,704 | <p><a href="https://i.stack.imgur.com/iLg0o.jpg" rel="nofollow noreferrer">Confusion matrix</a>
we know that the precision formula is tp/(tp+fp) and the recall formula is tp/(tp+fn) my doubt is how to get tp, fp, fn values from the confusion matrix and what is predicted on the y-axis side and what is true on x-axis sid... | [
{
"answer_id": 74637740,
"author": "Danz",
"author_id": 19681705,
"author_profile": "https://Stackoverflow.com/users/19681705",
"pm_score": 1,
"selected": true,
"text": "<div class=\"row\">\n @foreach ($members as $member)\n <div class=\"col-md-3\">\n <div class=\"img-box\">\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20222824/"
] |
74,637,705 | <p>I have a bit of a situation on the main branch in my repository.</p>
<p>A developer mistakingly pushed a PR from our develop branch directly into main and pushed to remote. We've applied policies so that this cannot happen again.</p>
<p>After this, we reversed this PR by utilising the 'Revert PR' feature in Azure De... | [
{
"answer_id": 74641957,
"author": "Jay",
"author_id": 4068476,
"author_profile": "https://Stackoverflow.com/users/4068476",
"pm_score": 0,
"selected": false,
"text": "dev main main main dev dev git revert <commit Y> -m 1 main dev dev dev main"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1248716/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.