qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,532,270 | <p>In this exercise, you'll use the for....of loop to iterate over an array and to iterate over an object's own properties.</p>
<p>Step 1. You are given an array of dairy products:</p>
<pre><code>var dairy = ['cheese', 'sour cream', 'milk', 'yogurt', 'ice cream', 'milkshake']
</code></pre>
<p>Create a function called l... | [
{
"answer_id": 74538872,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "import requests\nimport pandas as pd\nfrom bs4 import BeautifulSoup\n\ndata = []\nfor page in range(1, 3): #... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20571969/"
] |
74,532,299 | <p>i am trying to send some virtual keycodes to an application while it is out of focus. I get it to work without a problem except for releasing normal keys.</p>
<p>I have tried:</p>
<p><code>win32api.SendMessage(hwnd, win32con.WM_KEYUP, VK_CODE["a"])</code></p>
<p><code>win32api.PostMessage(hwnd, win32con.WM... | [
{
"answer_id": 74538872,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "import requests\nimport pandas as pd\nfrom bs4 import BeautifulSoup\n\ndata = []\nfor page in range(1, 3): #... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20571682/"
] |
74,532,302 | <p>I have a dataframe <code>df</code> which looks something like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>key</th>
<th>id</th>
</tr>
</thead>
<tbody>
<tr>
<td>x</td>
<td>0.6</td>
</tr>
<tr>
<td>x</td>
<td>0.5</td>
</tr>
<tr>
<td>x</td>
<td>0.43</td>
</tr>
<tr>
<td>x</td>
<td>0.... | [
{
"answer_id": 74532322,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "Series.duplicated key 0 DataFrame.loc df.loc[~df['key'].duplicated(keep='last'), 'id'] = 0\n\nprint (df)\n key i... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11022199/"
] |
74,532,304 | <p>I have the following variable for class label in my dataset:</p>
<pre class="lang-py prettyprint-override"><code>y = np.array([3, 3, 3, 2, 3, 1, 3, 2, 3, 3, 3, 2, 2, 3, 2])
</code></pre>
<p>To determine the number of each class, I do:</p>
<pre class="lang-py prettyprint-override"><code>np.unique(y, return_counts=Tr... | [
{
"answer_id": 74532424,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "zip out = list(zip(*np.unique(y, return_counts=True)))\n [(1, 1), (2, 5), (3, 9)] np.vstack(np.unique(y, return_coun... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17487457/"
] |
74,532,342 | <p>I do have one domino group (Access Control List only), lets call them <code>Main_Group</code>.
This group includes all employees, that I want to know on which other domino groups they are member of.</p>
<p>Members of <code>Main_Group</code>:</p>
<pre><code>- John Smith/ORGANIZATION
- Peter Smith/ORGANIZATION
- Jeff ... | [
{
"answer_id": 74576080,
"author": "Adam",
"author_id": 12571484,
"author_profile": "https://Stackoverflow.com/users/12571484",
"pm_score": 0,
"selected": false,
"text": "Group names.nsf visited getGroupsForUser getGroupsForUser Function getGroupsForUser(userName As String) As String\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9285015/"
] |
74,532,364 | <p>Hi i have two datasets which represent to different groups:</p>
<pre><code>student_details <- c("John", "Henrick", "Maria", "Lucas", "Ali")
student_class <- c("High School", "College", "Preschool", "High School", "co... | [
{
"answer_id": 74532994,
"author": "Flap",
"author_id": 20520733,
"author_profile": "https://Stackoverflow.com/users/20520733",
"pm_score": 2,
"selected": false,
"text": "rbindlist() data.table #convert uppercase letters in column names to lower case. \nnames(df2) <- tolower(names(df2))\... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19766411/"
] |
74,532,372 | <p>I was discussing with a colleague if there is a built-in (or clean) way to use Pathlib to traverse through an arbitrary Path to find a given parent folder, for example the root of your repository (which may differ per user that has a local copy of said repo). I simulated the desired behaviour below:</p>
<pre><code>f... | [
{
"answer_id": 74532549,
"author": "Chris",
"author_id": 354577,
"author_profile": "https://Stackoverflow.com/users/354577",
"pm_score": 2,
"selected": false,
"text": "path.parents def find_parent(path: Path, target_parent: str) -> Path | None:\n # `path.parents` does not include `pat... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4464267/"
] |
74,532,414 | <p>I've got a Xamarin.Forms Project containing an Android and an iOS Platform Project.</p>
<p>I've got my whole application working on Android and I am now struggling on the iOS part. I can't get my images to display on iOS.</p>
<p>I've followed the <a href="https://learn.microsoft.com/de-de/xamarin/ios/app-fundamental... | [
{
"answer_id": 74532549,
"author": "Chris",
"author_id": 354577,
"author_profile": "https://Stackoverflow.com/users/354577",
"pm_score": 2,
"selected": false,
"text": "path.parents def find_parent(path: Path, target_parent: str) -> Path | None:\n # `path.parents` does not include `pat... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16060704/"
] |
74,532,417 | <p>I've a MongoDB collection that contains records with a field called <strong>createdAt</strong>, I want to get the last createdAt in the previous month of a given date using mongoTemplate aggregation in a spring boot application.</p>
<p>example of a record:</p>
<pre class="lang-json prettyprint-override"><code>{
cr... | [
{
"answer_id": 74532549,
"author": "Chris",
"author_id": 354577,
"author_profile": "https://Stackoverflow.com/users/354577",
"pm_score": 2,
"selected": false,
"text": "path.parents def find_parent(path: Path, target_parent: str) -> Path | None:\n # `path.parents` does not include `pat... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18290052/"
] |
74,532,418 | <p>Per <a href="https://javascript.info/async-await" rel="nofollow noreferrer">javascript.info</a>, <code>await</code> "suspends the function execution until the promise settles, and then resumes it with the promise result." If this is the case, why do we sometimes need multiple <code>await</code> keywords wi... | [
{
"answer_id": 74532439,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 3,
"selected": true,
"text": "await json() fetch() body"
},
{
"answer_id": 74532477,
"author": "Marios",
"author_id": 20229075,
"au... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16511269/"
] |
74,532,432 | <h2>Problem definition</h2>
<p>Assume we have a React component <code>C</code> that accepts properties <code>Props</code>. <code>Props</code> have a field named <code>edges</code>. <code>Edges</code> are defined as a tuple of length 1-4 composed of string literals <code>top</code>, <code>bottom</code>, <code>left</code... | [
{
"answer_id": 74532598,
"author": "Tobias S.",
"author_id": 8613630,
"author_profile": "https://Stackoverflow.com/users/8613630",
"pm_score": 3,
"selected": true,
"text": "MockType HasDuplicate<T> false edges [...T] interface Props<T extends Edge[]> {\n edges: HasDuplicate<T> extends... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1721393/"
] |
74,532,441 | <p>Here's the code I got so far:</p>
<pre><code>x = 2
y = 3
print('hi' + str(x) + 'hello' + str(y))
</code></pre>
<p>Is there any simpler way to concatenate strings and ints? I would like some examples.</p>
| [
{
"answer_id": 74532466,
"author": "maxxel_",
"author_id": 17575465,
"author_profile": "https://Stackoverflow.com/users/17575465",
"pm_score": 1,
"selected": false,
"text": "x = 2\ny = 3\n\nprint(f'hi {x} hello {y}')\n"
},
{
"answer_id": 74532555,
"author": "user2094482",
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20398610/"
] |
74,532,465 | <p>Below specified is my data</p>
<pre><code>Id , Name , IsBillable
1 One 1
2 two 0
3. three 0
</code></pre>
<p>this will be the dropdown value below i'll share the html dropdown code</p>
<pre><code><mat-option *ngFor="let option of masterAppointmentTypes" [value]="option.id&q... | [
{
"answer_id": 74532466,
"author": "maxxel_",
"author_id": 17575465,
"author_profile": "https://Stackoverflow.com/users/17575465",
"pm_score": 1,
"selected": false,
"text": "x = 2\ny = 3\n\nprint(f'hi {x} hello {y}')\n"
},
{
"answer_id": 74532555,
"author": "user2094482",
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19652485/"
] |
74,532,473 | <p>I've certains amounts of item in list within a horizontal scrollbar. I want to load more item via a function when user reaches the end of scrollbar.
I've tried to implement it via (scroll)="onScroll()" but this function won't be called if scollbar can't be scollred further. So, how do I know about the end ... | [
{
"answer_id": 74532466,
"author": "maxxel_",
"author_id": 17575465,
"author_profile": "https://Stackoverflow.com/users/17575465",
"pm_score": 1,
"selected": false,
"text": "x = 2\ny = 3\n\nprint(f'hi {x} hello {y}')\n"
},
{
"answer_id": 74532555,
"author": "user2094482",
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572057/"
] |
74,532,474 | <h2>No secrets</h2>
<p>All the documentation I have seen so far states <a href="https://stackoverflow.com/questions/62700005/safe-storage-of-app-secrets-for-blazor-webassembly-app">there is no way you could possibly securely store a secret or sensitive data</a>.</p>
<h2>What are others doing?</h2>
<p>I was wondering ho... | [
{
"answer_id": 74532466,
"author": "maxxel_",
"author_id": 17575465,
"author_profile": "https://Stackoverflow.com/users/17575465",
"pm_score": 1,
"selected": false,
"text": "x = 2\ny = 3\n\nprint(f'hi {x} hello {y}')\n"
},
{
"answer_id": 74532555,
"author": "user2094482",
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18577622/"
] |
74,532,510 | <p>I have file <code>IP.txt</code>:</p>
<pre><code>192.168.69.100
192.168.69.141
</code></pre>
<p>I also have file <code>Ports.txt</code>:</p>
<pre><code>open port: 21 on IP: 192.168.69.100 with banner:
220 FTP server ready
open port: 22 on IP: 192.168.69.100 with banner:
SSH-OpenSSH
open port: 21 on IP: 192.168.69.141... | [
{
"answer_id": 74532466,
"author": "maxxel_",
"author_id": 17575465,
"author_profile": "https://Stackoverflow.com/users/17575465",
"pm_score": 1,
"selected": false,
"text": "x = 2\ny = 3\n\nprint(f'hi {x} hello {y}')\n"
},
{
"answer_id": 74532555,
"author": "user2094482",
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20460608/"
] |
74,532,536 | <p>I have a program that I run in two different pcs using the same version of Julia. I wouldn't like to put a specific snippet of the program because on the one hand is a little complicated and, on the other, I feel there must be something that depends on the machine rather than in my program itself.</p>
<p>So here are... | [
{
"answer_id": 74532850,
"author": "Kristoffer Carlsson",
"author_id": 6512648,
"author_profile": "https://Stackoverflow.com/users/6512648",
"pm_score": 2,
"selected": false,
"text": "--check-bounds=yes"
},
{
"answer_id": 74535127,
"author": "StefanKarpinski",
"author_id"... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2820579/"
] |
74,532,592 | <p>i have a Table with Name, Date, Number, gender.
below are the values.
i just need to export them to another file.
the headline with "Name, Date, Number, gernder.below are the values" needs to be in "A",every value which needs to be in "B"</p>
<p>for example:</p>
<p>Old sheet</p>
<div cl... | [
{
"answer_id": 74532850,
"author": "Kristoffer Carlsson",
"author_id": 6512648,
"author_profile": "https://Stackoverflow.com/users/6512648",
"pm_score": 2,
"selected": false,
"text": "--check-bounds=yes"
},
{
"answer_id": 74535127,
"author": "StefanKarpinski",
"author_id"... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20570518/"
] |
74,532,657 | <p>I have problems in counting with a dictionary the occurrences of letters in a list of words of different length for each index of letters. The list is ordered from longest to shortest word. Like so:</p>
<pre class="lang-py prettyprint-override"><code>main_list = ['elephant','mouse','tiger','dog']
</code></pre>
<p>Fo... | [
{
"answer_id": 74532850,
"author": "Kristoffer Carlsson",
"author_id": 6512648,
"author_profile": "https://Stackoverflow.com/users/6512648",
"pm_score": 2,
"selected": false,
"text": "--check-bounds=yes"
},
{
"answer_id": 74535127,
"author": "StefanKarpinski",
"author_id"... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494445/"
] |
74,532,675 | <pre class="lang-none prettyprint-override"><code>> root# ps -ef | grep [j]ava | awk '{print $2,$9}'
> 45134 -Dapex=APEC
> 45135 -Dapex=JAAA
> 45136 -Dapex=APEC
</code></pre>
<p>I need to put the first APEC of first as First PID, third line of AP... | [
{
"answer_id": 74532794,
"author": "RavinderSingh13",
"author_id": 5866580,
"author_profile": "https://Stackoverflow.com/users/5866580",
"pm_score": 2,
"selected": false,
"text": "awk awk ps -ef | grep [j]ava | \nawk '\n{\n val=$2 OFS $9\n match(val,/([0-9]+) -Dapex=APEC ([0-9]+) -Dape... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19145217/"
] |
74,532,678 | <p>I am working on a txt file which and in between the data that I need there are also information that I want to delete. For instance the txt file is built like this:</p>
<pre><code>|important|data|that|I|need|to|keep|
-------------------------------
---------------
----------------
info|I|dont|need|
----------------
... | [
{
"answer_id": 74532794,
"author": "RavinderSingh13",
"author_id": 5866580,
"author_profile": "https://Stackoverflow.com/users/5866580",
"pm_score": 2,
"selected": false,
"text": "awk awk ps -ef | grep [j]ava | \nawk '\n{\n val=$2 OFS $9\n match(val,/([0-9]+) -Dapex=APEC ([0-9]+) -Dape... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18939903/"
] |
74,532,685 | <p>This is my test collection</p>
<pre><code>[
{
"_id": "637cbf94b4741277c3b53c6c",
"text": "outter",
"username": "test1",
"address": [
{
"text": "inner",
"username": "test2&q... | [
{
"answer_id": 74532724,
"author": "nimrod serok",
"author_id": 18482310,
"author_profile": "https://Stackoverflow.com/users/18482310",
"pm_score": 3,
"selected": true,
"text": "t1 = await doc.find({}, {'address.text':1}).exec();\n"
},
{
"answer_id": 74533128,
"author": "Wout... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/256439/"
] |
74,532,688 | <p>I have a course project and I am not able to solve the following problem:</p>
<p>I need to create a linkedlist in which I can add a list of elements from a class called Person, and a list of elements from a class called Accounts using addAll()</p>
<pre><code>List<Person> persons= new LinkedList<Person>()... | [
{
"answer_id": 74532764,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 2,
"selected": true,
"text": "java.lang.Object public interface ElementOfBank class Person implements ElementOfBank {} List<ElementOfBank> eleme... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572123/"
] |
74,532,708 | <p><img src="https://i.stack.imgur.com/lcAZw.png" alt="enter image description here" /></p>
<p>I am using Plotly to plot a scatterplot of GWAS data and want to highlight a certain point a different colour to the rest of the data. I have tried multiple times but unable to find away around this in Plotly. Any advice woul... | [
{
"answer_id": 74532764,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 2,
"selected": true,
"text": "java.lang.Object public interface ElementOfBank class Person implements ElementOfBank {} List<ElementOfBank> eleme... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11331055/"
] |
74,532,717 | <p>I am trying to make pie chart as below which is working fine but I have issue with end path (which is orange in below image).</p>
<p><a href="https://i.stack.imgur.com/0l4dm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0l4dm.png" alt="enter image description here" /></a></p>
<p>What I want to d... | [
{
"answer_id": 74533129,
"author": "burnsi",
"author_id": 6950415,
"author_profile": "https://Stackoverflow.com/users/6950415",
"pm_score": 1,
"selected": false,
"text": "SwiftUI Path struct DonutElement: Shape{\n \n var width: CGFloat = 50\n var startAngle: Angle\n var endAn... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1066828/"
] |
74,532,737 | <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 prettyprint-override"><code>.wrapper {
display: flex;
flex-direction: column;
gap: 20px;
padding: 50px; }
.wide-container, .narrow-container {
fl... | [
{
"answer_id": 74532845,
"author": "KLTR",
"author_id": 5277707,
"author_profile": "https://Stackoverflow.com/users/5277707",
"pm_score": -1,
"selected": false,
"text": ".text {\n padding: 5px 2px;\n background-color: salmon;\n color: white; \n}\n"
},
{
"answer_id": 74532867,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10173593/"
] |
74,532,745 | <p>eg [:owes] instead of this i would like the amount they owe (row.amount)</p>
<p>couldnt come up with much</p>
| [
{
"answer_id": 74532845,
"author": "KLTR",
"author_id": 5277707,
"author_profile": "https://Stackoverflow.com/users/5277707",
"pm_score": -1,
"selected": false,
"text": ".text {\n padding: 5px 2px;\n background-color: salmon;\n color: white; \n}\n"
},
{
"answer_id": 74532867,
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20378640/"
] |
74,532,760 | <p>I've seen plenty of answers explaining how to override and add functionality to a back button press via user's interaction, but almost none of the answers explain how to programmatically trigger a back button press without any user input. Answers that do address it give somewhat deprecated code samples that don't re... | [
{
"answer_id": 74532813,
"author": "Dhruv Sakariya",
"author_id": 13387235,
"author_profile": "https://Stackoverflow.com/users/13387235",
"pm_score": 1,
"selected": false,
"text": "//simply put this code where you want to make back intent\nsuper.onBackPressed();\n"
},
{
"answer_i... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17709311/"
] |
74,532,767 | <p>I have a text file large with content format below, i want remove two first character 11, i try to search by dont know how to continue with my code. Looking for help. Thanks</p>
<p>file.txt</p>
<blockquote>
<p>11112345,67890,12345</p>
<p>115432,a123q,hs1230</p>
<p>11s1a123,qw321,98765321</p>
<p>342342,121sa,12123243... | [
{
"answer_id": 74532962,
"author": "Laurent H.",
"author_id": 5270581,
"author_profile": "https://Stackoverflow.com/users/5270581",
"pm_score": 4,
"selected": true,
"text": "with open('in.txt', 'r') as oldfile, open('out.txt', 'w') as newfile:\n for line in oldfile:\n newfile.w... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16608286/"
] |
74,532,801 | <p>I have a tapBar with tabs, these tabs are clickable and I want to add divider between tabs but I don't understand how to do this in Flutter!</p>
<p>This is my tabBar:</p>
<pre><code>TabBar(
indicatorPadding: EdgeInsets.symmetric(vertical: 10),
indicator: ShapeDecoration(
shape: RoundedRectangleBorder(
... | [
{
"answer_id": 74532930,
"author": "Abdullatif Eida",
"author_id": 20570798,
"author_profile": "https://Stackoverflow.com/users/20570798",
"pm_score": 0,
"selected": false,
"text": "Tab(\n child: Container(\n decoration: BoxDecoration(\n color: Colors.transparent,\n borde... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20478292/"
] |
74,532,805 | <p>I'm now learning C# and making a couple of challenges, i managed to pass easily most of them but sometimes there are things i don't understand (i'm a python dev basically)...</p>
<blockquote>
<p>Create a function that takes an integer and outputs an n x n square solely consisting of the integer n.</p>
</blockquote>
... | [
{
"answer_id": 74532930,
"author": "Abdullatif Eida",
"author_id": 20570798,
"author_profile": "https://Stackoverflow.com/users/20570798",
"pm_score": 0,
"selected": false,
"text": "Tab(\n child: Container(\n decoration: BoxDecoration(\n color: Colors.transparent,\n borde... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7495742/"
] |
74,532,841 | <p>I have two columns in an Excel spreadsheet that look like:-</p>
<pre><code>Key Values
f 1
f 2
u 3
g 4
g 5
h 6
h 7
j 8
j 9
k 10
k 11
k 12
</code></pre>
<p>I want to create apply formula which creates an average of first n numbers in ms excel.</p>
<p>I Try this:-</p>
<p>=AVERAGE(B:B,10)</p>
<p>... | [
{
"answer_id": 74532984,
"author": "Jos Woolley",
"author_id": 17007704,
"author_profile": "https://Stackoverflow.com/users/17007704",
"pm_score": 3,
"selected": true,
"text": "OFFSET INDIRECT =AVERAGE(B2:INDEX(B:B,n+1)) =AVERAGE(TAKE(B:B,n+1))"
}
] | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12030528/"
] |
74,532,926 | <p>I am having issues with Flutter web when I use await statement,</p>
<pre><code>void main() async {
//debugPaintSizeEnabled = true;
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
</code></pre>
<p>this will not display anything on the browser and throws and error:... | [
{
"answer_id": 74532984,
"author": "Jos Woolley",
"author_id": 17007704,
"author_profile": "https://Stackoverflow.com/users/17007704",
"pm_score": 3,
"selected": true,
"text": "OFFSET INDIRECT =AVERAGE(B2:INDEX(B:B,n+1)) =AVERAGE(TAKE(B:B,n+1))"
}
] | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20035186/"
] |
74,532,939 | <p>Guys i need help because i dont understand.</p>
<p><a href="https://i.stack.imgur.com/xYavX.png" rel="nofollow noreferrer">enter image description here</a></p>
<p><a href="https://i.stack.imgur.com/vuhaY.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I searched what the problem was but couldn... | [
{
"answer_id": 74533205,
"author": "Anandh Krishnan",
"author_id": 5197712,
"author_profile": "https://Stackoverflow.com/users/5197712",
"pm_score": 0,
"selected": false,
"text": "gradle.properties android.overridePathCheck=true\n"
}
] | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572389/"
] |
74,532,950 | <p>I am trying to find a way to change SQL server from using UTC time to Local time. This is because I need to be getting Local time when I pull data using ODATA via excel.</p>
<p>Is there a way to configure the SQL server from UTC to local time?</p>
| [
{
"answer_id": 74534008,
"author": "Dan Guzman",
"author_id": 3711162,
"author_profile": "https://Stackoverflow.com/users/3711162",
"pm_score": 1,
"selected": false,
"text": "datetime datetime2 smalldatetime AT TIME ZONE SELECT YourUTCDateTimeColumn AT TIME ZONE 'UTC' AT TIME ZONE 'Pacif... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20569442/"
] |
74,532,955 | <p>I'm trying to test a component that is using the useLocation react hook, but even though I mocked it, useLocation().pathname results in an error, as useLocation is undefined.</p>
<p>Another question I have is if I successfully mock useLocation() in this test file, will it also work for the rest? Is there a way to mo... | [
{
"answer_id": 74534008,
"author": "Dan Guzman",
"author_id": 3711162,
"author_profile": "https://Stackoverflow.com/users/3711162",
"pm_score": 1,
"selected": false,
"text": "datetime datetime2 smalldatetime AT TIME ZONE SELECT YourUTCDateTimeColumn AT TIME ZONE 'UTC' AT TIME ZONE 'Pacif... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1529259/"
] |
74,532,966 | <p>I have the following components up and running in a kubernetes cluster</p>
<ul>
<li>A GoLang Application writing data to a mongodb statefulset replicaset in namespace <code>app1</code></li>
<li>A mongodb replicaset (1 replica) running as a statefulset in the namespace <code>ng-mongo</code></li>
</ul>
<p>What I need ... | [
{
"answer_id": 74537726,
"author": "Devin Jeon",
"author_id": 20575260,
"author_profile": "https://Stackoverflow.com/users/20575260",
"pm_score": 0,
"selected": false,
"text": "app1 mongo-0 mongo-0 mongo-0 app1 mongo-0 mongo_uri mongodb://app1 mongo-0"
},
{
"answer_id": 74538332,... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7084115/"
] |
74,532,973 | <p>I have these 2 divs (<code>footer-txt</code> and <code>footer-img</code>), on the mobile it works perfectly because I want the text on top and the 2 images on the bottom, like side by side.</p>
<p>But when the screen gets wider, I want the 2 images side by side and also the text div. Like a row with the 2 images and... | [
{
"answer_id": 74533127,
"author": "GarfieldKlon",
"author_id": 1226705,
"author_profile": "https://Stackoverflow.com/users/1226705",
"pm_score": -1,
"selected": false,
"text": "#footer {\n background-color: #98AFFF;\n}\n\n.footer-txt {\n font-size: 14px;\n color: #464646;\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74532973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20231504/"
] |
74,533,026 | <p>I tried moving a file into a subfolder, and git sees that it has been just "renamed"... but also sees that <strong>its whole content got removed and then added.</strong></p>
<p>For some reason with some files I could move them without losing all of their lines' actual/correct/original <code>git blame</code... | [
{
"answer_id": 74638195,
"author": "Zhubei Federer",
"author_id": 10769406,
"author_profile": "https://Stackoverflow.com/users/10769406",
"pm_score": 0,
"selected": false,
"text": "git mv myfile.txt subfolder/myfile.txt\n git mv -r mydir subfolder/mydir\n git config --global core.symlink... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5359329/"
] |
74,533,041 | <p>I want to post data with ajax request but it said internal server. I tried adding meta data and X-CSRF-TOKEN but still not working. Please take a look at my code</p>
<p>Ajax Code:</p>
<pre><code>$("#firstForm").on("submit", (e)=>{
e.preventDefault()
let dataString = $(this).serialize()... | [
{
"answer_id": 74533619,
"author": "eraufi",
"author_id": 7549561,
"author_profile": "https://Stackoverflow.com/users/7549561",
"pm_score": 1,
"selected": false,
"text": "<form class=\"mt-5 text-start\" id=\"firstForm\" method=\"post\">\n@csrf\n <label class=\"text-whi... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20110311/"
] |
74,533,047 | <p>I have the following code</p>
<pre><code>mydict = {
"key": {
"k1": "v1",
"k2": "v2",
}
}
for k, (v1, v2) in mydict.items():
</code></pre>
<p><code>v1</code> and <code>v2</code> actaully equals to <code>k1</code> and <code>k2</code>, is there a... | [
{
"answer_id": 74533253,
"author": "Rajesh Kanna",
"author_id": 15656258,
"author_profile": "https://Stackoverflow.com/users/15656258",
"pm_score": 1,
"selected": false,
"text": "for k, (v1, v2) in mydict.items():\n print(\"Access the values for the key:\", k, \"--->\", mydict[k][v1],... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16597971/"
] |
74,533,055 | <p>It seems that eloquent uses a single query for "with" regardless of how many ids there are</p>
<pre><code>Book::with('author')->get();
</code></pre>
<p>This would trigger those two queries:</p>
<pre><code>SELECT * FROM books;
SELECT * FROM authors WHERE id IN (...);
</code></pre>
<p>The second query may... | [
{
"answer_id": 74533253,
"author": "Rajesh Kanna",
"author_id": 15656258,
"author_profile": "https://Stackoverflow.com/users/15656258",
"pm_score": 1,
"selected": false,
"text": "for k, (v1, v2) in mydict.items():\n print(\"Access the values for the key:\", k, \"--->\", mydict[k][v1],... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5661749/"
] |
74,533,075 | <p>I am very new for Selenium WebDriver.</p>
<p>I have list of URL on the array and want to open the pages ( driver.get("url")) one by one. Here is an example:</p>
<pre><code>urls.forEach( (url) => {
driver.get(url); //=> want to wait here until done.
driver.getTitle(); //=> Here I want to... | [
{
"answer_id": 74533374,
"author": "Alex Karamfilov",
"author_id": 7031148,
"author_profile": "https://Stackoverflow.com/users/7031148",
"pm_score": 1,
"selected": false,
"text": "const {Builder} = require('selenium-webdriver');\nconst chrome = require('selenium-webdriver/chrome');\n\n(a... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/987119/"
] |
74,533,121 | <p>i have made a 2D array in c#. I want have a method to fill in some numbers and a method to print it. But this doesnt work. Since it is for school. The static void main cant be changed. Can anyone help me? the if statement is true and will say invalid number of arguments here is some code:</p>
<pre><code>static void ... | [
{
"answer_id": 74533478,
"author": "Peter - Reinstate Monica",
"author_id": 3150802,
"author_profile": "https://Stackoverflow.com/users/3150802",
"pm_score": 1,
"selected": false,
"text": "Main(string[] args) args myprog myprog 1 2 3 args Properties Main int Main Console.Error.WriteLine(... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572510/"
] |
74,533,134 | <p>I have a data frame like this:</p>
<pre><code>Q1 <- c("A",NA,"A",NA,NA,"C","D","A","B", NA)#the right answer is A
Q2 <- c("D",NA,"D","C",NA,NA,"A","A","A","A")#the right answer is D... | [
{
"answer_id": 74533478,
"author": "Peter - Reinstate Monica",
"author_id": 3150802,
"author_profile": "https://Stackoverflow.com/users/3150802",
"pm_score": 1,
"selected": false,
"text": "Main(string[] args) args myprog myprog 1 2 3 args Properties Main int Main Console.Error.WriteLine(... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19838934/"
] |
74,533,136 | <p>So I am going through logs and I want to find IPs that have only logged in after a certain date, but do not show up at all before. I am not sure how to do this in Splunk but I know it is possible. Let's say that the date is 10/1/2022 and the field is IP.</p>
| [
{
"answer_id": 74535545,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 1,
"selected": false,
"text": "index=ndx sourcetype=srctp ip=* \n| stats min(_time) as early by ip\n| where early>strptime(\"10/01/2022\",\"%m/%d/%Y\")\n"... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5848304/"
] |
74,533,161 | <p>I have several list objects, each containing 31 dataframes, which I have names 'file1980 through to 'file2010'. These were made by splitting the original (11315 rows) data frame into 31 equal sized (365 rows) data frames using the following:</p>
<pre><code>n <- 31
dataList <- split(MainData, factor(sort(ran... | [
{
"answer_id": 74533273,
"author": "Julian",
"author_id": 14137004,
"author_profile": "https://Stackoverflow.com/users/14137004",
"pm_score": 0,
"selected": false,
"text": "dataList <- list(iris, iris, iris) \nnames(dataList) <- paste0(\"file\",1980:1982)\n \npurrr::imap(dataList, ~.x |... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17438953/"
] |
74,533,169 | <p>I have a pre-defined invited guest list. I ask a user for their name and check if the name is in the list. If it is, we simply print welcome. If not, we print the statement in the else condition. After that I want to add looping of name.</p>
<p>What should I add in this? The program should work repeatedly when run o... | [
{
"answer_id": 74533262,
"author": "Achille G",
"author_id": 10687907,
"author_profile": "https://Stackoverflow.com/users/10687907",
"pm_score": 1,
"selected": false,
"text": "guest_list = ['abhishek olkha' , 'monika' , 'chanchal' , 'daisy' , 'mayank']\n#infinite loop\nwhile True:\n n... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20070011/"
] |
74,533,182 | <p>I am trying to create a one dimensional vector which contains references to the elements of a 2d dimensional vector. This is because I later want to iteratively sort the elements of the grid and then perform some operations on the data.</p>
<p>So far I have tried something like the following</p>
<pre class="lang-rus... | [
{
"answer_id": 74533262,
"author": "Achille G",
"author_id": 10687907,
"author_profile": "https://Stackoverflow.com/users/10687907",
"pm_score": 1,
"selected": false,
"text": "guest_list = ['abhishek olkha' , 'monika' , 'chanchal' , 'daisy' , 'mayank']\n#infinite loop\nwhile True:\n n... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20390007/"
] |
74,533,185 | <p>I have a dashboard very similar to this one-</p>
<pre><code>import datetime
import dash
from dash import dcc, html
import plotly
from dash.dependencies import Input, Output
# pip install pyorbital
from pyorbital.orbital import Orbital
satellite = Orbital('TERRA')
external_stylesheets = ['https://codepen.io/chriddy... | [
{
"answer_id": 74533262,
"author": "Achille G",
"author_id": 10687907,
"author_profile": "https://Stackoverflow.com/users/10687907",
"pm_score": 1,
"selected": false,
"text": "guest_list = ['abhishek olkha' , 'monika' , 'chanchal' , 'daisy' , 'mayank']\n#infinite loop\nwhile True:\n n... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11117255/"
] |
74,533,195 | <p>here is my dummy data <a href="https://i.stack.imgur.com/R9tM7.png" rel="nofollow noreferrer">df</a></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>parent</th>
<th>children</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>b</td>
</tr>
<tr>
<td>a</td>
<td>c</td>
</tr>
<tr>
<td>a</td>
<td>... | [
{
"answer_id": 74533262,
"author": "Achille G",
"author_id": 10687907,
"author_profile": "https://Stackoverflow.com/users/10687907",
"pm_score": 1,
"selected": false,
"text": "guest_list = ['abhishek olkha' , 'monika' , 'chanchal' , 'daisy' , 'mayank']\n#infinite loop\nwhile True:\n n... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19593917/"
] |
74,533,218 | <p>I have a dataframe as below</p>
<pre><code>year district
2017 arrah
2017 buxar
2017 rohtas
2018 rohtas
2018 arwal
2018 seohar
2019 nawda
2019 buxar
2019 jamui
</code></pre>
<p>I want to subset data in a way that repeated district in 2018 or 2019 should not appear in the subset as shown below</p>
<pre><code>year dist... | [
{
"answer_id": 74533339,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nquux %>%\n group_by(district) %>%\n slice_min(year) %>%\n ungroup()\n# # A tib... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6757815/"
] |
74,533,221 | <p>I'm trying to make an add to cart function on products that are on cards which are loaded dynamically. I have buttons of class add-cart. I am trying to append the products to a UL on click, but testing my code with a simple alert. Here's my HTML:</p>
<pre><code>function loadCard(id, name, imgSrc, price) {
var ... | [
{
"answer_id": 74533339,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nquux %>%\n group_by(district) %>%\n slice_min(year) %>%\n ungroup()\n# # A tib... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572457/"
] |
74,533,263 | <p>Im trying to add hours to midnight of today eg: like 27 hours</p>
<p>I have tried various methods from the internet but am getting the trunc of the dated expected. eg 23-nov-2022 not 23-nov-2022 03:00. when i run it outside my pl/sql procedure/block i get the desired output</p>
<p>the select:</p>
<p>select to_cha... | [
{
"answer_id": 74533339,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nquux %>%\n group_by(district) %>%\n slice_min(year) %>%\n ungroup()\n# # A tib... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/828067/"
] |
74,533,298 | <p>I have an array</p>
<pre><code>array = (Testcase_5_Input_Packets Testcase_3_Input_Packets
Testcase_1_Input_Packets Testcase_4_Input_Packets Testcase_2_Input_Packets)
</code></pre>
<p>i want to sort its elements and save its sorted contents in an array to be like:</p>
<pre><code>array = Testcase_1_Input_Packets
... | [
{
"answer_id": 74534002,
"author": "M. Nejat Aydin",
"author_id": 13809001,
"author_profile": "https://Stackoverflow.com/users/13809001",
"pm_score": 2,
"selected": false,
"text": "readarray -t sorted_array < <(printf '%s\\n' \"${array[@]}\" | sort)\n"
},
{
"answer_id": 74534221,... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7974136/"
] |
74,533,345 | <p>When i run this query:</p>
<pre><code>db.friendRequests.aggregate([
$lookup: {
from: "users",
localField: "author",
foreignField: "_id",
pipeline: [
{
$match: {
$expr: {
friend_id... | [
{
"answer_id": 74533400,
"author": "nimrod serok",
"author_id": 18482310,
"author_profile": "https://Stackoverflow.com/users/18482310",
"pm_score": 0,
"selected": false,
"text": "$lookup localField foreignField pipeline let"
},
{
"answer_id": 74534041,
"author": "user20042973... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20150565/"
] |
74,533,357 | <p>I have a EventHub trigger function app using Elastic Premium tier and I'm getting a bottleneck on the EventHub side because the function doesn't scale more than 20 instances(Maximum of Minimum Instances Always Ready) to process messages, even reaching a high CPU percentage.</p>
<p>Is there any way to "force&quo... | [
{
"answer_id": 74533400,
"author": "nimrod serok",
"author_id": 18482310,
"author_profile": "https://Stackoverflow.com/users/18482310",
"pm_score": 0,
"selected": false,
"text": "$lookup localField foreignField pipeline let"
},
{
"answer_id": 74534041,
"author": "user20042973... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9434572/"
] |
74,533,364 | <p>I want to program a game where the user has 10 days. I have an int main and a LOT of int functions. The user can visit a lot of functions everytime easily and the functions represent the locations in the game. What I want to do is for the day to increase by 1 everytime I leave a location. lets say that my first loca... | [
{
"answer_id": 74533400,
"author": "nimrod serok",
"author_id": 18482310,
"author_profile": "https://Stackoverflow.com/users/18482310",
"pm_score": 0,
"selected": false,
"text": "$lookup localField foreignField pipeline let"
},
{
"answer_id": 74534041,
"author": "user20042973... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20117789/"
] |
74,533,385 | <p>I am trying to filter my dataframe based on IQR for a few selected features. The code I use is the following:</p>
<pre><code>import pandas as pd
import numpy as np
# Load data
df = pd.read_csv("dataframe.csv")
features = df.loc[:, ('col1, col2, col3, col4, col5')]
print("Old Shape: ", df.shape... | [
{
"answer_id": 74533547,
"author": "Chris",
"author_id": 14408656,
"author_profile": "https://Stackoverflow.com/users/14408656",
"pm_score": 1,
"selected": false,
"text": "try:\n # Your code\nexcept KeyError:\n # Do what you want to do in case a KeyError occurs e.g. log something o... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19969414/"
] |
74,533,407 | <p>I am using modal to answer if the user want to delete some data. I need his answer to continue the function and delete or not depending on what was chosen.
Here is my code:
I am using an imagem to call the function:</p>
<pre><code><img src={deletes} width="25" height="25" alt="Edit" ... | [
{
"answer_id": 74533547,
"author": "Chris",
"author_id": 14408656,
"author_profile": "https://Stackoverflow.com/users/14408656",
"pm_score": 1,
"selected": false,
"text": "try:\n # Your code\nexcept KeyError:\n # Do what you want to do in case a KeyError occurs e.g. log something o... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520826/"
] |
74,533,434 | <pre><code>phoneError(): string {
return this.userForm.get('phonenumber').hasError('required')
? $localize`:|Validation message: Only number`
: this.userForm.get('phonenumber').hasError('minlength') ||
this.userForm.get('phonenumber').hasError('maxLength')
? $localize`:|Validation message... | [
{
"answer_id": 74533547,
"author": "Chris",
"author_id": 14408656,
"author_profile": "https://Stackoverflow.com/users/14408656",
"pm_score": 1,
"selected": false,
"text": "try:\n # Your code\nexcept KeyError:\n # Do what you want to do in case a KeyError occurs e.g. log something o... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15515293/"
] |
74,533,447 | <p>This is an example scenario and we wanted to understand if it would be possible to recover it. And also understand better about the schema.</p>
<p>In a hypothetical scenario of just 1 node, Cassandra 3.11. I have 1 keyspace and 1 table.</p>
<pre><code>root@dd85fa9a3c41:/# cqlsh -k cycling -e "describe tables;&q... | [
{
"answer_id": 74536831,
"author": "Jeremy",
"author_id": 6493269,
"author_profile": "https://Stackoverflow.com/users/6493269",
"pm_score": 1,
"selected": false,
"text": "nodetool snapshot schema.cql"
},
{
"answer_id": 74554235,
"author": "Erick Ramirez",
"author_id": 426... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572046/"
] |
74,533,457 | <p>for exmaple if the path in the string textBoxRadarPath.txt is D:\test\test1\test2
i want to get only the part D:\test</p>
<p>using root is not what i needed root give me D:\ but i want to first path level.</p>
<pre><code>Directory.CreateDirectory(Path.GetPathRoot(textBoxPath.Text) + "\\" + urlsListFolder);... | [
{
"answer_id": 74536831,
"author": "Jeremy",
"author_id": 6493269,
"author_profile": "https://Stackoverflow.com/users/6493269",
"pm_score": 1,
"selected": false,
"text": "nodetool snapshot schema.cql"
},
{
"answer_id": 74554235,
"author": "Erick Ramirez",
"author_id": 426... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9890333/"
] |
74,533,481 | <p>I'm currently trying to extract information from lots of PDF forms such as this:</p>
<p><a href="https://i.stack.imgur.com/lEsG9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lEsG9.jpg" alt="enter image description here" /></a></p>
<p>The text 'female' should be extracted here. So contrary to my... | [
{
"answer_id": 74536831,
"author": "Jeremy",
"author_id": 6493269,
"author_profile": "https://Stackoverflow.com/users/6493269",
"pm_score": 1,
"selected": false,
"text": "nodetool snapshot schema.cql"
},
{
"answer_id": 74554235,
"author": "Erick Ramirez",
"author_id": 426... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16377721/"
] |
74,533,538 | <p>I am try to do autocomplete using <a href="https://stackblitz.com/edit/angular-ypmnoj-whmsis?file=src%2Fapp%2Fautocomplete-filter-example.ts,src%2Fapp%2Fautocomplete-filter-example.html" rel="nofollow noreferrer">this </a>code.</p>
<p>Now, the issue is I receiving option as <code>[object objecct]</code>, I understoo... | [
{
"answer_id": 74536831,
"author": "Jeremy",
"author_id": 6493269,
"author_profile": "https://Stackoverflow.com/users/6493269",
"pm_score": 1,
"selected": false,
"text": "nodetool snapshot schema.cql"
},
{
"answer_id": 74554235,
"author": "Erick Ramirez",
"author_id": 426... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20412540/"
] |
74,533,544 | <p>Situation:
I have Model have a relation 1-1, sample:</p>
<pre><code>class User(models.Model):
user_namme = models.CharField(max_length=40)
type = models.CharField(max_length=255)
created_at = models.DatetimeField()
...
class Book(models.Model):
user = models.OneToOneField(User, on_delete=models.... | [
{
"answer_id": 74544214,
"author": "Naser Fazal khan",
"author_id": 19313399,
"author_profile": "https://Stackoverflow.com/users/19313399",
"pm_score": 3,
"selected": false,
"text": "if Variable.exists():\n\n Variable.delete()\n"
},
{
"answer_id": 74557618,
"author": "Thàn... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15654520/"
] |
74,533,549 | <p>I'm trying to implement an <code>Array</code>-like linked list (same methods). I have the following two classes:</p>
<pre><code>class Node {
constructor(value, next_node=null, prev_node=null) {
this.value = value;
this.next_node = next_node;
this.prev_node = prev_node;
}
}
class List {
constructor... | [
{
"answer_id": 74544214,
"author": "Naser Fazal khan",
"author_id": 19313399,
"author_profile": "https://Stackoverflow.com/users/19313399",
"pm_score": 3,
"selected": false,
"text": "if Variable.exists():\n\n Variable.delete()\n"
},
{
"answer_id": 74557618,
"author": "Thàn... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9808098/"
] |
74,533,558 | <p>I have a ListView but when I call it only the get_context_data method works (the news and category model, not the product) when I try to display the information of the models in the templates.</p>
<p>view:</p>
<pre><code>class HomeView(ListView):
model = Product
context_object_name='products'
template_na... | [
{
"answer_id": 74533595,
"author": "neverwalkaloner",
"author_id": 641249,
"author_profile": "https://Stackoverflow.com/users/641249",
"pm_score": 2,
"selected": true,
"text": "def get_context_data(self, **kwargs):\n context = super().get_context_data(**kwargs)\n categories = Categ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19881162/"
] |
74,533,565 | <p>I want to calculate all values in the column <code>C</code> and place it at the bottom on the same Column C as total sum.</p>
<p>I'm generating excel with data from database - some orders and their amount. Want to calculate the total amount.</p>
<p>My script is</p>
<pre><code>$excel = new PHPExcel();
$excel->... | [
{
"answer_id": 74534229,
"author": "Juan",
"author_id": 6510866,
"author_profile": "https://Stackoverflow.com/users/6510866",
"pm_score": 2,
"selected": false,
"text": "<?\n$excel = new PHPExcel(); \n$excel->setActiveSheetIndex(0); \n \n$i = 1;\n$generalSum = 0;\n\n$excel->getActiv... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20263317/"
] |
74,533,579 | <p>I want to 'group by' beers so that they are grouped together, with the respect aggregate rating and tasters (people who review the beers) listed in separate columns.</p>
<p>Here is my code:</p>
<pre><code>create or replace view tasters_avg_ratings1
as
select a.taster as taster, a.beer as beer, round(avg(a.rating),1)... | [
{
"answer_id": 74533885,
"author": "Ali Ibrahim",
"author_id": 19427487,
"author_profile": "https://Stackoverflow.com/users/19427487",
"pm_score": 1,
"selected": false,
"text": "GROUP BY a.beers create or replace view tasters_avg_ratings1\nas\nselect a.taster as taster, a.beer as beer, ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16791848/"
] |
74,533,587 | <p>i'm doing a compareTo() method for a string the way i was taught but it's giving me an error, it seems that the way i formulated it similar to how you would usually do for a number doesn't go well with a string.
Class Car(implements the interface: Comparable<> )
- Attributes:
o Unique number plate (final) : St... | [
{
"answer_id": 74533648,
"author": "Elliott Frisch",
"author_id": 2970947,
"author_profile": "https://Stackoverflow.com/users/2970947",
"pm_score": 2,
"selected": false,
"text": "UNP String > < String compareTo String public int compareTo(RentalCars rc){\n return UNP.compareTo(rc.UNP);... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15566755/"
] |
74,533,589 | <p>If I have this collection</p>
<pre><code>[
{
"_id": "637cbf94b4741277c3b53c6c",
"text": "outter",
"username": "test1",
"address": [
{
"text": "inner",
"username": "test2&qu... | [
{
"answer_id": 74533648,
"author": "Elliott Frisch",
"author_id": 2970947,
"author_profile": "https://Stackoverflow.com/users/2970947",
"pm_score": 2,
"selected": false,
"text": "UNP String > < String compareTo String public int compareTo(RentalCars rc){\n return UNP.compareTo(rc.UNP);... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/256439/"
] |
74,533,590 | <p>I have a macOS electron app that is based on this electron-forge Webpack + Typescript <a href="https://www.electronforge.io/templates/typescript-+-webpack-template" rel="nofollow noreferrer">boilerplate</a>, integrated with React, as documented <a href="https://www.electronforge.io/guides/framework-integration/react... | [
{
"answer_id": 74603180,
"author": "keymap",
"author_id": 1609474,
"author_profile": "https://Stackoverflow.com/users/1609474",
"pm_score": 1,
"selected": false,
"text": "packagerConfig.extraResource extraResource app.isPackaged process.resourcesPath dependencies node_modules"
},
{
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10223524/"
] |
74,533,645 | <p>I need convert the date in NiFi:</p>
<p>2022-11-22 00:00:00</p>
<p>To:</p>
<p>2022-11-22T00:00:00.000Z (ISO 8601)</p>
<p>can someone help me convert this date?</p>
| [
{
"answer_id": 74603180,
"author": "keymap",
"author_id": 1609474,
"author_profile": "https://Stackoverflow.com/users/1609474",
"pm_score": 1,
"selected": false,
"text": "packagerConfig.extraResource extraResource app.isPackaged process.resourcesPath dependencies node_modules"
},
{
... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18716709/"
] |
74,533,664 | <p>I am attempting to limit my dataframe to the days of each month between the 20th and the 25th . I got a big dataset with many dates ranging over many years. It looks something like this:</p>
<pre><code>Event Date
Football 20.12.2016
Work 15.10.2019
Holiday 30.11.2018
Running 24... | [
{
"answer_id": 74533757,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 0,
"selected": false,
"text": "Date # base R\nsubset(quux, between(as.integer(sub(\"\\\\..*\", \"\", Date)), 20, 25))\n# E... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18705501/"
] |
74,533,678 | <p>Is it possible to create an a curved element like this with border radius ruler if so what is it? <a href="https://i.stack.imgur.com/RJk7s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RJk7s.png" alt="enter image description here" /></a></p>
<p><div class="snippet" data-lang="js" data-hide="fals... | [
{
"answer_id": 74534708,
"author": "Romualds Cirsis",
"author_id": 1031255,
"author_profile": "https://Stackoverflow.com/users/1031255",
"pm_score": 1,
"selected": false,
"text": ".box {\n height: 200px;\n overflow:hidden;\n background-color: #FF7C07;\n position:relative;\n ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18893404/"
] |
74,533,740 | <p>I'm trying to figure out how to make sure that the consecutive values are not the same in a list. Expected output: [1, 2, 3]
<strong>Actual output</strong>: [1, 1, 3, 3]</p>
<p>I also tried using <code>next()</code> but that gave me "list object is not an iterator"</p>
<p>What is best practices here and wh... | [
{
"answer_id": 74533880,
"author": "Guy",
"author_id": 5168011,
"author_profile": "https://Stackoverflow.com/users/5168011",
"pm_score": 3,
"selected": true,
"text": "def unique_in_order(iterable):\n lst = [iterable[0]]\n for x in range(len(iterable) - 1):\n if iterable[x] !... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18714330/"
] |
74,533,763 | <p>After so many tries I still can't figure out how to do the following.</p>
<p>The situation is as follows:</p>
<p>I have a Catalogue that contains hardware that is stored in a Sheet called "Catalogus_Hardware", all the hardware is located in column A.
I want that hardware to show up in my ComboBox called Co... | [
{
"answer_id": 74533880,
"author": "Guy",
"author_id": 5168011,
"author_profile": "https://Stackoverflow.com/users/5168011",
"pm_score": 3,
"selected": true,
"text": "def unique_in_order(iterable):\n lst = [iterable[0]]\n for x in range(len(iterable) - 1):\n if iterable[x] !... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572889/"
] |
74,533,775 | <p>I am having trouble finding good resources for what best practices would be for Flutter development, specifically for form handling.</p>
<p>Everything I find on form submissions is fairly clear, but the problem is they all have the validation logic and submission logic directly in the form widget. I don't like this ... | [
{
"answer_id": 74533880,
"author": "Guy",
"author_id": 5168011,
"author_profile": "https://Stackoverflow.com/users/5168011",
"pm_score": 3,
"selected": true,
"text": "def unique_in_order(iterable):\n lst = [iterable[0]]\n for x in range(len(iterable) - 1):\n if iterable[x] !... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7304712/"
] |
74,533,777 | <p>Im currently trying to write a "controller" File with a macro, that opens other files and just calls 3 Macros in each file.
All these files have the same structure.
My Problem is that I can't see the VBA structure, but I do know the Macronames as they are shown to me.
But everytime I try to call these macr... | [
{
"answer_id": 74534352,
"author": "Guillaume BEDOYA",
"author_id": 20522241,
"author_profile": "https://Stackoverflow.com/users/20522241",
"pm_score": 1,
"selected": false,
"text": "Public Sub macro1()\n MsgBox \"macro1 launched from \" & ThisWorkbook.Name\nEnd Sub\n\nPublic Sub macr... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16797867/"
] |
74,533,783 | <p>This is my app code:</p>
<pre><code>library(shiny)
library(tidyverse)
source('module.R')
ui <- fluidPage(
tabpanel_UI("mod1")
)
server <- function(input, output, session) {
tabpanel_Server("mod1")
}
shinyApp(ui, server)
</code></pre>
<p>This is my module file: 'module.R'</p... | [
{
"answer_id": 74534673,
"author": "Stéphane Laurent",
"author_id": 1100107,
"author_profile": "https://Stackoverflow.com/users/1100107",
"pm_score": 3,
"selected": true,
"text": "tabpanel_function <- function(id, x, n){ \n ns <- NS(id) \n tabPanel(paste0(\"Panel\", x), ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20359538/"
] |
74,533,804 | <p>I have an application which some web pages are out of the window and need to scroll right to see the full content.When I scroll right to see the full content,I find the <code>h1</code> element width is not equal to the full window size which is according to the content of <code>p</code> element.How to adjust <code>h... | [
{
"answer_id": 74533921,
"author": "Cédric",
"author_id": 17684809,
"author_profile": "https://Stackoverflow.com/users/17684809",
"pm_score": 0,
"selected": false,
"text": "width: fit-content; body {\n width: fit-content;\n}\n\nh1 {\n white-space: nowrap;\n font-size: 12pt;\n color: ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12652914/"
] |
74,533,869 | <p>I take 20% above and below the base-case value for each of a set of parameters I have as follows:</p>
<p>`d_e</p>
<p>Minimum_d_e <- d_e - 0.20<em>d_e
Maximum_d_e <- d_e + 0.20</em>d_e`</p>
<p>Once I have the maximum and minimum values (20% either side of the base-case value) I then create a min parameter value... | [
{
"answer_id": 74533921,
"author": "Cédric",
"author_id": 17684809,
"author_profile": "https://Stackoverflow.com/users/17684809",
"pm_score": 0,
"selected": false,
"text": "width: fit-content; body {\n width: fit-content;\n}\n\nh1 {\n white-space: nowrap;\n font-size: 12pt;\n color: ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16978411/"
] |
74,533,905 | <p>I have data that looks like this:</p>
<pre><code>library(dplyr)
Data <- tibble(
ID = c("Code001", "Code001","Code001","Code002","Code002","Code002","Code002","Code002","Code003","Code003"... | [
{
"answer_id": 74533921,
"author": "Cédric",
"author_id": 17684809,
"author_profile": "https://Stackoverflow.com/users/17684809",
"pm_score": 0,
"selected": false,
"text": "width: fit-content; body {\n width: fit-content;\n}\n\nh1 {\n white-space: nowrap;\n font-size: 12pt;\n color: ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1968484/"
] |
74,533,934 | <p>Trying to detect if user input is a special character, Have Tried a couple different things but cant get the code to run correctly keeps outputting user character is a capital letter.</p>
<pre><code>let user_character = prompt("Enter either a Capital Letter, Lowercase Letter, or a Number.");
//Checks i... | [
{
"answer_id": 74533921,
"author": "Cédric",
"author_id": 17684809,
"author_profile": "https://Stackoverflow.com/users/17684809",
"pm_score": 0,
"selected": false,
"text": "width: fit-content; body {\n width: fit-content;\n}\n\nh1 {\n white-space: nowrap;\n font-size: 12pt;\n color: ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20477742/"
] |
74,533,939 | <p>Let I have the following np.array:</p>
<pre><code>>>>a=np.array([20, 10,5,10,5,10])
>>>array([20, 10, 5, 10, 5, 10])
</code></pre>
<p>Now, I want to replace 20 and 10 by 1 and 5 by 0.</p>
<p>Is there a function that can do that in one step?</p>
<p>Here is what I have tried:</p>
<pre><code>>>... | [
{
"answer_id": 74533921,
"author": "Cédric",
"author_id": 17684809,
"author_profile": "https://Stackoverflow.com/users/17684809",
"pm_score": 0,
"selected": false,
"text": "width: fit-content; body {\n width: fit-content;\n}\n\nh1 {\n white-space: nowrap;\n font-size: 12pt;\n color: ... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539038/"
] |
74,533,942 | <p>So I am doing a sample exam question in preparation for my stats exam and I have hit a dead end.</p>
<p>The question is asking:</p>
<blockquote>
<p>If you roll two 6-sided fair dice until you get all possible outcomes (i.e. all sums 2-12 have occurred at least once). Estimate the expected number of dice rolls needed... | [
{
"answer_id": 74534476,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 2,
"selected": false,
"text": "sample(6, 10, TRUE)\n replicate replicate(2, sample(6, 10, TRUE))\n#> [,1] [,2]\n#> [1,] 1 1\n#... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20573120/"
] |
74,533,944 | <p>There is <a href="https://capitalizemytitle.com/zufallswort-generator/" rel="nofollow noreferrer">the page</a> where a random word generated. That word is in <code>span</code> element which seems to be inserted by JavaScript. I wasn't able to find a link that provides the word from the server.
So I'm questioning wha... | [
{
"answer_id": 74534476,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 2,
"selected": false,
"text": "sample(6, 10, TRUE)\n replicate replicate(2, sample(6, 10, TRUE))\n#> [,1] [,2]\n#> [1,] 1 1\n#... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19195923/"
] |
74,533,945 | <p>I'm new to python and trying to make a calculator. The actual calculator part works but I can't figure out how to make it so that when the user puts in something that is not "+, -, *, or /" it prints a sentence then closes.</p>
<p>This is my code and the output</p>
<p>(<a href="https://i.stack.imgur.com/EY... | [
{
"answer_id": 74534476,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 2,
"selected": false,
"text": "sample(6, 10, TRUE)\n replicate replicate(2, sample(6, 10, TRUE))\n#> [,1] [,2]\n#> [1,] 1 1\n#... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20470296/"
] |
74,533,977 | <p>I am trying to give a service principal SELECT access on my Azure Synapse SQL data.</p>
<pre><code>CREATE USER [MY_SERVICE_PRINCIPAL] FROM EXTERNAL PROVIDER WITH DEFAFULT_SCHEMA=[dbo]
GO
GRANT SELECT ON DATABASE :: MyDB TO [MY_SERVICE_PRINCIPAL];
</code></pre>
<p>This works fine, but it requires me logging into the ... | [
{
"answer_id": 74569646,
"author": "tanikellav",
"author_id": 20000817,
"author_profile": "https://Stackoverflow.com/users/20000817",
"pm_score": 1,
"selected": false,
"text": "[CmdletBinding()]\n\nparam (\n\n [Parameter(Mandatory=$true)]\n\n [string]$ResourceGroupName =\"rg_Resource... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74533977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6241997/"
] |
74,534,000 | <p>I am trying to figure out how to define a Variable which is a member of a class in C++, Outside of the normal class body. It may be inside of a Function, or outside of the class. Is this possible. What I need is that the variable should be a member of the class such that if I call Nodesecond.birthdate, it returns th... | [
{
"answer_id": 74534176,
"author": "273K",
"author_id": 6752050,
"author_profile": "https://Stackoverflow.com/users/6752050",
"pm_score": 3,
"selected": true,
"text": "#include <iostream>\n#include <unordered_map>\nusing namespace std;\n\nstruct Nodesecond {\npublic:\n int Age;\n s... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17895488/"
] |
74,534,018 | <p>I am trying to migrate an existing command-line app to Spring boot and i have a weird problem.</p>
<p>The app works, but it seems to be very slow when started with
<code>mvn spring-boot:run</code></p>
<p>It is not the app startup that is slow. There is a method which should fetch around 1.8 Mio records from the DB a... | [
{
"answer_id": 74535609,
"author": "Georgi",
"author_id": 219191,
"author_profile": "https://Stackoverflow.com/users/219191",
"pm_score": 1,
"selected": false,
"text": "<plugin>\n <groupId>org.springframework.boot</groupId>\n <artifactId>spring-boot-maven-plugin</artifactId>\n <... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/219191/"
] |
74,534,026 | <p>This is my keylogger code:</p>
<pre><code>import pynput
from pynput.keyboard import Key, Listener
from datetime import datetime, timedelta, time
import time
start = time.time()
now=datetime.now()
dt=now.strftime('%d%m%Y-%H%M%S')
keys=[]
def on_press(key):
keys.append(key)
write_file(keys)
try:
... | [
{
"answer_id": 74537137,
"author": "user3435121",
"author_id": 3435121,
"author_profile": "https://Stackoverflow.com/users/3435121",
"pm_score": 0,
"selected": false,
"text": "import pynput\nfrom pynput.keyboard import Key, Listener\nfrom datetime import datetime, timedelta, time\nimport... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12978231/"
] |
74,534,076 | <p>I wanted to find out if it is significantly slower to iterate over the first two dimensions of an array in comparison to doing the operations columnwise. To my surprise if found out that its actually faster to do the operations elementwise. Can someone explain?</p>
<p>Here is the code:</p>
<pre><code>def row_by_row(... | [
{
"answer_id": 74537137,
"author": "user3435121",
"author_id": 3435121,
"author_profile": "https://Stackoverflow.com/users/3435121",
"pm_score": 0,
"selected": false,
"text": "import pynput\nfrom pynput.keyboard import Key, Listener\nfrom datetime import datetime, timedelta, time\nimport... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14327827/"
] |
74,534,091 | <p>I need to make a call when I click on the button, or open mail in order to send a message, we usually use the a tag with the necessary <code>mail:</code> or <code>tel:</code> attributes for these purposes, but is it possible to do this using <code>Linking.openURL</code> like this?</p>
<pre><code>onPress={() => Li... | [
{
"answer_id": 74534172,
"author": "P-A",
"author_id": 9720524,
"author_profile": "https://Stackoverflow.com/users/9720524",
"pm_score": 3,
"selected": true,
"text": "const subject = \"Mail Subject\";\nconst message = \"Message Body\";\nLinking.openURL(`mailto:support@domain.com?subject=... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15464003/"
] |
74,534,092 | <p>I have a myJson.json that look like this:</p>
<pre><code>{
"FirewallGroupsToEnable": [
"Remote Event Log Management",
"Windows Remote Management",
"Performance Logs and Alerts",
"File and Printer Sharing",
"Windows Management Instrumentatio... | [
{
"answer_id": 74543675,
"author": "Suki Ji-MSFT",
"author_id": 18349158,
"author_profile": "https://Stackoverflow.com/users/18349158",
"pm_score": 1,
"selected": false,
"text": "- task: PowerShell@2\n inputs:\n targetType: 'inline'\n script: |\n $Configs= Get-Content -Path $... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17460932/"
] |
74,534,094 | <p>Im trying to change a string in a list called <code>lista</code> composed by n times <code>|_|</code>, in a function I'm trying to change one specific place of the list with "X" but nothing is working</p>
<pre><code>lista=["|_|","|_|","|_|","|_|","|_|",&quo... | [
{
"answer_id": 74543675,
"author": "Suki Ji-MSFT",
"author_id": 18349158,
"author_profile": "https://Stackoverflow.com/users/18349158",
"pm_score": 1,
"selected": false,
"text": "- task: PowerShell@2\n inputs:\n targetType: 'inline'\n script: |\n $Configs= Get-Content -Path $... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20235048/"
] |
74,534,137 | <p>I just finished creating a NextJs project and i ran <code>npm run dev</code> to start the project; but instead the terminal displays <a href="https://i.stack.imgur.com/VTgSc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VTgSc.png" alt="enter image description here" /></a>
I'm currently not sure ... | [
{
"answer_id": 74543675,
"author": "Suki Ji-MSFT",
"author_id": 18349158,
"author_profile": "https://Stackoverflow.com/users/18349158",
"pm_score": 1,
"selected": false,
"text": "- task: PowerShell@2\n inputs:\n targetType: 'inline'\n script: |\n $Configs= Get-Content -Path $... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8384358/"
] |
74,534,165 | <p>I'm really new to Haskell so your help would be much appreciated!</p>
<p>As a small training task I created this function in Haskell and tried to run it:</p>
<pre><code>data S = S NP VP
data N = Linguist | Chemist | Anglist | N ADJ N
data NP = NP DET N
data ADJ = Curious | Smart
data DET = The | Some | Every
data V... | [
{
"answer_id": 74534365,
"author": "Li-yao Xia",
"author_id": 6863749,
"author_profile": "https://Stackoverflow.com/users/6863749",
"pm_score": 2,
"selected": false,
"text": "data S = S NP VP deriving Show\ndata N = Linguist | Chemist | Anglist | N ADJ N deriving Show\ndata NP = NP DET N... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20573133/"
] |
74,534,186 | <p>I am learning Docker. I have practiced a lot, including testing commands from the official Postgres page on dockerhub.</p>
<p>I ran this command:</p>
<pre><code>docker run -it --rm --network some-network postgres psql -h some-postgres -U postgres
</code></pre>
<p>Could someone give a complete and concrete example t... | [
{
"answer_id": 74534365,
"author": "Li-yao Xia",
"author_id": 6863749,
"author_profile": "https://Stackoverflow.com/users/6863749",
"pm_score": 2,
"selected": false,
"text": "data S = S NP VP deriving Show\ndata N = Linguist | Chemist | Anglist | N ADJ N deriving Show\ndata NP = NP DET N... | 2022/11/22 | [
"https://Stackoverflow.com/questions/74534186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18786837/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.