qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,463,918 | <p>I'm fairly new to React. Here I've made a small form component for a project (with a bit of tailwind included). Above the form proper is a hidden alert box that will show on submission (green for success and red for fail). The handler that I have attached to the form shows the correct alert, however it takes two cli... | [
{
"answer_id": 74464523,
"author": "Sushanth --",
"author_id": 941272,
"author_profile": "https://Stackoverflow.com/users/941272",
"pm_score": 2,
"selected": true,
"text": "setState useEffect function ContactInsert() {\n const [isError, setIsError] = useState(false);\n const [name, set... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11214003/"
] |
74,463,937 | <p>I am trying to get data for the month 5 before the current one. I have tried</p>
<pre><code>MONTH(GETDATE()) - MonthNum ='5'
</code></pre>
<p>Where <code>monthnum</code> has been parsed from the date in a previous CTE.</p>
<p>This works for the 6th month and beyond but doesn't for earlier months.</p>
<p>The end goal... | [
{
"answer_id": 74464407,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 2,
"selected": true,
"text": "DECLARE @month = MONTH(DATEADD(month,-5,GETDATE())); \n\nSELECT t.* \nFROM table as t \nWHERE MONTH(t.transaction_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12507364/"
] |
74,463,958 | <p>I am trying to setup peer to peer networking and am trying to understand how this works.</p>
<p>Normally in Client to Server connection, I will connect to the server IP and port. Behind the scenes, it will create a client socket bound to a local port at the local ip, and the packet is sent to the router. The router ... | [
{
"answer_id": 74464407,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 2,
"selected": true,
"text": "DECLARE @month = MONTH(DATEADD(month,-5,GETDATE())); \n\nSELECT t.* \nFROM table as t \nWHERE MONTH(t.transaction_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20132669/"
] |
74,463,967 | <p>I'm trying to implement push notifications with Firebase Cloud Messaging on an iOS application.</p>
<p>My applications uses the SwiftUI life cycle.</p>
<p>I followed the official documentation from Firebase <a href="https://firebase.google.com/docs/cloud-messaging/ios/client" rel="nofollow noreferrer">documentation... | [
{
"answer_id": 74464407,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 2,
"selected": true,
"text": "DECLARE @month = MONTH(DATEADD(month,-5,GETDATE())); \n\nSELECT t.* \nFROM table as t \nWHERE MONTH(t.transaction_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12479599/"
] |
74,463,992 | <p>I am trying to use variables created in one file and still use them in another file without having to run all of the code from the first file.</p>
<p>Would I be better off saving the variables to a text file and calling the text file in my second python file?</p>
<p>Ex.
File #1</p>
<pre><code>name = input('What is y... | [
{
"answer_id": 74464407,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 2,
"selected": true,
"text": "DECLARE @month = MONTH(DATEADD(month,-5,GETDATE())); \n\nSELECT t.* \nFROM table as t \nWHERE MONTH(t.transaction_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20353896/"
] |
74,464,008 | <p>I have a user table like this,</p>
<pre><code> USERID Week_Number Year
0 fb 5.0 2021
1 twitter 1.0 2021
2 twitter 2.0 2021
3 twitter 3.0 2021
4 twitter 1.0 2022
5 twitter 2.0 2022
6 twitter 3.0 2022
7 twitter 15.0 2022
8... | [
{
"answer_id": 74464356,
"author": "sophocles",
"author_id": 9167382,
"author_profile": "https://Stackoverflow.com/users/9167382",
"pm_score": 0,
"selected": false,
"text": "data.sort_values(by=['USERID','Year','Week_Number'],ascending=True,inplace=True)\n\ndata.assign(\n grouped_incr... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11816060/"
] |
74,464,013 | <p>Let's say I got a list like this:</p>
<p><code>L = [600, 200, 100, 80, 20]</code></p>
<p>What is the most efficient way to calculate the cumulative sum starting from the next element for every element in the list.</p>
<p>The output of should thus be:</p>
<pre><code> x_1 = 400 (200 + 100 + 80 + 20)
x_2 = 200 (100 + ... | [
{
"answer_id": 74464180,
"author": "Daniel",
"author_id": 11952668,
"author_profile": "https://Stackoverflow.com/users/11952668",
"pm_score": 2,
"selected": true,
"text": " l = [600, 200, 100, 80, 20]\n res = [sum(l[i:]) for i in range(1, len(l))]\n print(res)\n [400, 200, 100, ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12292254/"
] |
74,464,021 | <p>I have a problem returning dynamic array pointer with function parameter. I get segfault</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
void createArray(int *ptr, int n)
{
ptr = malloc(n * sizeof(int));
for(int i = 1; i <= n; ++i)
{
*(ptr + (i - 1)) = i*i;
}
}
int main... | [
{
"answer_id": 74465460,
"author": "Peter Irich",
"author_id": 20275388,
"author_profile": "https://Stackoverflow.com/users/20275388",
"pm_score": 1,
"selected": false,
"text": "#include <stdio.h>\n#include <stdlib.h>\n\nvoid createArray(int *ptr, int n){\n int i;\n for(i = 1; i <= n;... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12652243/"
] |
74,464,037 | <p>I have an API that saves an the image to S3 bucket and returns the S3 URL but the saving part of the PIL image is slow. Here is a snippet of code:</p>
<pre><code>from PIL import Image
import io
import boto3
BUCKET = ''
s3 = boto3.resource('s3')
def convert_fn(args):
pil_image = Image.open(args['path']).convert('... | [
{
"answer_id": 74466930,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 2,
"selected": false,
"text": ".tga .bmp .png"
},
{
"answer_id": 74468352,
"author": "Diego Rodea",
"author_id": 19583119,
"autho... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19583119/"
] |
74,464,058 | <p>I am new at Selenium and came up with an issue - how to take and save screenshot into the specific folder. I am using Selenium+C#+NUnit bond.</p>
<p>Have read many information on this but most of them is on - how to capture screenshot and add it to html file. But this is not what I need.</p>
<p>I need the screenshot... | [
{
"answer_id": 74466930,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 2,
"selected": false,
"text": ".tga .bmp .png"
},
{
"answer_id": 74468352,
"author": "Diego Rodea",
"author_id": 19583119,
"autho... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19956328/"
] |
74,464,113 | <p>I want to prevent data being written using a constraint, but the constraints are complicated.</p>
<p>I have 3 columns: A B C</p>
<p>A record is duplicate if A & B match an existing record, and if A & C match an existing record, but it's valid for B & C to match an existing record, unless A=2.</p>
<p... | [
{
"answer_id": 74464349,
"author": "Joe Derham",
"author_id": 7180277,
"author_profile": "https://Stackoverflow.com/users/7180277",
"pm_score": -1,
"selected": false,
"text": "-- Assuming A and B do not permit NULLs\n; WITH cteAB AS (\n SELECT DISTINCT a,b FROM YourTable\n)\n, cteBC A... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/759558/"
] |
74,464,155 | <p><code>SELECT NEW Map (PRODUCT_CATEGORY, COUNT(PRODUCT_CATEGORY) AS COUNTER) from Product WHERE USER_ID = (SELECT USER_ID FROM USERS WHERE USERNAME='burak123' </code></p>
<p>Hi everyone,
As hibernates document says here: <a href="https://docs.jboss.org/hibernate/orm/3.3/reference/en/html/queryhql.html#queryhql-select... | [
{
"answer_id": 74491086,
"author": "Marc Bannout",
"author_id": 13695861,
"author_profile": "https://Stackoverflow.com/users/13695861",
"pm_score": 0,
"selected": false,
"text": "nativeQuery = true"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19728398/"
] |
74,464,183 | <p>I have an array of objects, and I need to generate other based on it.</p>
<p>But, if the new arrays don't have the property, I need to generate a default value based on first array.</p>
<pre><code> const dailyLabels = [
"01/11",
"02/11",
"03/11",
"04/11"
]
... | [
{
"answer_id": 74464371,
"author": "lemek",
"author_id": 4860179,
"author_profile": "https://Stackoverflow.com/users/4860179",
"pm_score": 0,
"selected": false,
"text": "const dailyLabes = [ \"01/11\", \"02/11\", \"03/11\", \"04/11\" ]\n\nconst dailyCurr = [ { mov_date: \"2022-11-03T14:... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14790033/"
] |
74,464,200 | <p>I am just learning nestjs for about a day and I came across this strange bug, probably has something to do with me not understanding what Im doing and rushing the project so please bear with me. My main issue is that while using JWT authentication, JSON coming from body is "username" and I can't change it.... | [
{
"answer_id": 74464371,
"author": "lemek",
"author_id": 4860179,
"author_profile": "https://Stackoverflow.com/users/4860179",
"pm_score": 0,
"selected": false,
"text": "const dailyLabes = [ \"01/11\", \"02/11\", \"03/11\", \"04/11\" ]\n\nconst dailyCurr = [ { mov_date: \"2022-11-03T14:... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19159834/"
] |
74,464,204 | <p>I use a microscope taking images of particles. I get data out in an xml-file that contain information( see extract of a file) and I wonder if the entry pixel can be used to get the picture that has been taken of the particle. I'm confused if it is pixel data, because some entries also have letters. If it is possible... | [
{
"answer_id": 74468987,
"author": "ardget",
"author_id": 12793185,
"author_profile": "https://Stackoverflow.com/users/12793185",
"pm_score": 1,
"selected": false,
"text": "0E 00 -> 0x000e = 14 x0\n00 00 -> 0x0000 = 0 y0\n01 00 -> 0x0001 = 1 x1 \n09 00 -> 0x0009 = 9 y1\n:\n pi... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522107/"
] |
74,464,214 | <p>I have 4 branches.
main, release, master, preview.</p>
<p>Preview is used for doing experiments. I want to clean the preview branch and sync it with release branch.</p>
<p>If I just merge release branch into preview, I still have the old experiment code. I am not sure how to go about it</p>
| [
{
"answer_id": 74464281,
"author": "eftshift0",
"author_id": 2437508,
"author_profile": "https://Stackoverflow.com/users/2437508",
"pm_score": 3,
"selected": true,
"text": "git checkout preview\ngit merge --no-commit release\n# let's get the contents of files just like in release:\ngit r... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303723/"
] |
74,464,216 | <p>Suppose I have a list with nested lists such of strings such as:</p>
<pre><code>items = ['Hello', ['Ben', 'Chris', 'Linda'], '! The things you can buy today are', ['Apples', 'Oranges']]
</code></pre>
<p>I want a list of strings that combine and flatten the nested lists into all possibilities such that the result is:... | [
{
"answer_id": 74464537,
"author": "Jay",
"author_id": 8677071,
"author_profile": "https://Stackoverflow.com/users/8677071",
"pm_score": 3,
"selected": true,
"text": "itertools.product() >>> items = [['Hello'], ['Ben', 'Chris', 'Linda']]\n>>> list(itertools.product(*items))\n[('Hello', '... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7237305/"
] |
74,464,230 | <p>I have a table, and I have a list of indexes.</p>
<p>Lets say the table is</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
<th>Column B</th>
<th>Column C</th>
<th>Column D</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Cell 2</... | [
{
"answer_id": 74464477,
"author": "horseyride",
"author_id": 9264230,
"author_profile": "https://Stackoverflow.com/users/9264230",
"pm_score": 3,
"selected": true,
"text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\nMyList={1,2},\nx = Table.RemoveColumns(Source,L... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8951502/"
] |
74,464,231 | <p>I'm trying to merge one column values from <code>df2</code> to <code>df1</code>. <code>df1.merge(df2, how='outer')</code> seems to be what I needed but result is not what I wanted because of duplicate. Using 'on' introduces <code>_x</code> and <code>_y</code> which I don't want either.</p>
<p>In below Example: <code... | [
{
"answer_id": 74464477,
"author": "horseyride",
"author_id": 9264230,
"author_profile": "https://Stackoverflow.com/users/9264230",
"pm_score": 3,
"selected": true,
"text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\nMyList={1,2},\nx = Table.RemoveColumns(Source,L... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13923735/"
] |
74,464,255 | <p>SO I'm trying to install Moodle using Ubuntu and I followed the instructions from <a href="https://www.linode.com/docs/guides/how-to-install-moodle-on-ubuntu-server-2004/" rel="nofollow noreferrer">https://www.linode.com/docs/guides/how-to-install-moodle-on-ubuntu-server-2004/</a> , but when I type localhost/moodle ... | [
{
"answer_id": 74464477,
"author": "horseyride",
"author_id": 9264230,
"author_profile": "https://Stackoverflow.com/users/9264230",
"pm_score": 3,
"selected": true,
"text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\nMyList={1,2},\nx = Table.RemoveColumns(Source,L... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,464,270 | <p>I was tasked with removing unnecessary tags from computer-generated HTML that had a lot of useless tags (I only wanted to keep color/strong/em information). I came along something similar to this HTML:</p>
<pre class="lang-html prettyprint-override"><code><b>
<span style="FONT: 20pt &quot;Arial&a... | [
{
"answer_id": 74464994,
"author": "Mark Schultheiss",
"author_id": 125981,
"author_profile": "https://Stackoverflow.com/users/125981",
"pm_score": 0,
"selected": false,
"text": "sans-serif pt .container {\n font-weight: normal;\n margin: 1em;\n}\n\n.container .fonty {\n font-size: 20... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5754961/"
] |
74,464,287 | <p>When opening my component, I want to get Assets from a Media Folder (which works fine) and then passing it through to another component. The Problem is that when first launching the app, the "listOfAssets" state is empty and when refreshing it, it stores all necessary Assets.</p>
<p>How can I achieve that ... | [
{
"answer_id": 74464994,
"author": "Mark Schultheiss",
"author_id": 125981,
"author_profile": "https://Stackoverflow.com/users/125981",
"pm_score": 0,
"selected": false,
"text": "sans-serif pt .container {\n font-weight: normal;\n margin: 1em;\n}\n\n.container .fonty {\n font-size: 20... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11325009/"
] |
74,464,290 | <p>I have a text file called test.txt with the words "cat dog frog" in it. I need to split it so each word appears on a new line. Can someone help me please?</p>
<pre><code>def get_tokens_from_file(test):
with open("test.txt") as f:
</code></pre>
| [
{
"answer_id": 74464994,
"author": "Mark Schultheiss",
"author_id": 125981,
"author_profile": "https://Stackoverflow.com/users/125981",
"pm_score": 0,
"selected": false,
"text": "sans-serif pt .container {\n font-weight: normal;\n margin: 1em;\n}\n\n.container .fonty {\n font-size: 20... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20412028/"
] |
74,464,292 | <p>I found this neat little code for sleeping in TypeScript and JavaScript on Stack Overflow:</p>
<pre><code>async function sleep(ms : number) {
return new Promise<void>(resolve => setTimeout(resolve, ms));
}
</code></pre>
<p>I use it like this:</p>
<pre><code>while(true) {
updateBackground();
await slee... | [
{
"answer_id": 74464411,
"author": "Mr. Polywhirl",
"author_id": 1762224,
"author_profile": "https://Stackoverflow.com/users/1762224",
"pm_score": 3,
"selected": true,
"text": "while const sleep = async (ms) =>\n new Promise(resolve => setTimeout(resolve, ms));\n\nconst printTime = () =... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1738290/"
] |
74,464,304 | <pre><code> @override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Title Text'),
),
body: SafeArea(
child: Stack(children: [
Column(
children: const [
Text('short content'),
],
),
... | [
{
"answer_id": 74464535,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 1,
"selected": false,
"text": "Stack SizedBox SizedBox(\n width: double.infinity,\n child: Stack(\n clipBehavior: Clip... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1389917/"
] |
74,464,310 | <p>I need to parse out the "permission" substring from group names, however I have two patterns this group names follow:</p>
<pre class="lang-none prettyprint-override"><code>gcp-edp-platform-dgov-nonprod-oneil-(permission)
gcp-edp-platform-dgov-prod-atp-(permission).groups
</code></pre>
<p>Either the group n... | [
{
"answer_id": 74464695,
"author": "Bohemian",
"author_id": 256196,
"author_profile": "https://Stackoverflow.com/users/256196",
"pm_score": 0,
"selected": false,
"text": "(?<=-)[^-.]+(?!.*-)\n"
},
{
"answer_id": 74523675,
"author": "Wiktor Stribiżew",
"author_id": 3832970... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17928364/"
] |
74,464,351 | <p>I am new to integer optimization. I am trying to solve the following large (although not that large) binary linear optimization problem:</p>
<p>max_{x} x_1+x_2+...+x_n</p>
<p>subject to: A*x <= b ; x_i is binary for all i=1,...,n</p>
<p>As you can see,</p>
<p>. the control variable is a vector x of lengh, say, n=... | [
{
"answer_id": 74465150,
"author": "watchdogs132",
"author_id": 18823783,
"author_profile": "https://Stackoverflow.com/users/18823783",
"pm_score": 0,
"selected": false,
"text": "solver->SetSolverSpecificParametersAsString(\"PoolSearchMode=2\"); // or-tools [Gurobi]\n"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519407/"
] |
74,464,396 | <p>Let's suppose a file with following content named file.txt is used as a source.</p>
<pre><code>12345
ABC-12
XCD-13
BCD-12345
Some text on this line
*+-%&
</code></pre>
<p>What I am looking for with sed would be to get only ABC-12 line and remove hyphen so the desired output would be <code>ABC12</code></p>
<p>So ... | [
{
"answer_id": 74464573,
"author": "anubhava",
"author_id": 548225,
"author_profile": "https://Stackoverflow.com/users/548225",
"pm_score": 2,
"selected": true,
"text": "ABC sed sed '/^ABC-[0-9][0-9]$/!d; s/-//' file\n\nABC12\n /^ABC-[0-9][0-9]$/!d ABC !d s/-//p - ABC- sed -nE 's/.*(ABC)... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12041338/"
] |
74,464,415 | <p>Okay so my current code works, but I have a feeling it's incredibly inefficient. Essentially, I need to evaluate if a String contains the letters of a String that is shorter or the same length as the first one. (Imagine trying to use the letters that exist in Word A to spell a new word Word B. Word B can be shorter ... | [
{
"answer_id": 74464858,
"author": "Larme",
"author_id": 1801544,
"author_profile": "https://Stackoverflow.com/users/1801544",
"pm_score": 0,
"selected": false,
"text": "[Character: (Int, Int)] var counter: [Character: (Int, Int)] = [:]\ncounter = str1.reduce(counter) {\n var values =... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17527370/"
] |
74,464,450 | <p>I am already using Prisma as an ORM for a Postgres DB. I need to run a simple raw query on a SQL Server DB. I do not need to use any of the ORM features like the Prisma schema, migrations, etc. Is it possible to do with Prisma? I am trying to minimize dependencies.</p>
| [
{
"answer_id": 74464858,
"author": "Larme",
"author_id": 1801544,
"author_profile": "https://Stackoverflow.com/users/1801544",
"pm_score": 0,
"selected": false,
"text": "[Character: (Int, Int)] var counter: [Character: (Int, Int)] = [:]\ncounter = str1.reduce(counter) {\n var values =... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12636797/"
] |
74,464,464 | <p>I want to link to specific part of the page, which is divided in 2 columns, but whenever I click on the anchor link it scrolls the whole page and also the column with content.</p>
<p>Here's an example of my layout: <a href="https://codepen.io/Xoouu/pen/KKeXMxr?editors=1100" rel="nofollow noreferrer">CodePen</a></p>
... | [
{
"answer_id": 74464681,
"author": "McRaZick",
"author_id": 10930787,
"author_profile": "https://Stackoverflow.com/users/10930787",
"pm_score": 2,
"selected": true,
"text": "body {\n overflow: hidden;\n margin: 0;\n height: 100%;\n}\n body {\n overflow: hidden;\n margin: 0;\n heigh... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19335865/"
] |
74,464,469 | <p>I just need to click the load more button once to reveal a bunch more information so that I can scrape more HTML than what is loaded.</p>
<p>The following "should" go to <code>github.com/topics</code> and find the one and only button element and click it one time.</p>
<pre><code>from selenium import webdri... | [
{
"answer_id": 74464681,
"author": "McRaZick",
"author_id": 10930787,
"author_profile": "https://Stackoverflow.com/users/10930787",
"pm_score": 2,
"selected": true,
"text": "body {\n overflow: hidden;\n margin: 0;\n height: 100%;\n}\n body {\n overflow: hidden;\n margin: 0;\n heigh... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522191/"
] |
74,464,471 | <p>I got most of the code down but I am having issues getting the string to space back out after making the first letter of each word uppercase</p>
<p>here's what I have so far:</p>
<p>message = input('Write a short message.')</p>
<p>new_message = message.split()</p>
<p>glue = ""</p>
<p>for item in new_messag... | [
{
"answer_id": 74464499,
"author": "Hamall",
"author_id": 9025143,
"author_profile": "https://Stackoverflow.com/users/9025143",
"pm_score": 1,
"selected": false,
"text": "message.capitalize()\n"
},
{
"answer_id": 74464684,
"author": "Iulian St",
"author_id": 19333216,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473614/"
] |
74,464,475 | <p>I have done KMeans clusters and now I need to analyse each individual cluster. For example look at cluster 1 and see what clients are on it and make conclusions.</p>
<pre><code>dfRFM['idcluster'] = num_cluster
dfRFM.head()
idcliente Recencia Frecuencia Monetario idcluster
1 3 251 ... | [
{
"answer_id": 74464499,
"author": "Hamall",
"author_id": 9025143,
"author_profile": "https://Stackoverflow.com/users/9025143",
"pm_score": 1,
"selected": false,
"text": "message.capitalize()\n"
},
{
"answer_id": 74464684,
"author": "Iulian St",
"author_id": 19333216,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13377260/"
] |
74,464,481 | <p>Assuming I have the following two objects</p>
<pre><code>foo = {
a: 10
b: 'hello'
c: 'world'
}
bar = {
a:5
b: null
c: null
d: "This is not in foo"
}
</code></pre>
<p>I would like to have an operation which would do the equivalent of below operation but without having to specify it for each m... | [
{
"answer_id": 74464499,
"author": "Hamall",
"author_id": 9025143,
"author_profile": "https://Stackoverflow.com/users/9025143",
"pm_score": 1,
"selected": false,
"text": "message.capitalize()\n"
},
{
"answer_id": 74464684,
"author": "Iulian St",
"author_id": 19333216,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4923949/"
] |
74,464,503 | <p>I have quaternion values <em>q</em> available.</p>
<p>These are correct, because they align the object correctly in the ROS RVIZ tool.</p>
<p>I now want to get a heading value from these values.</p>
<p>My idea was to calculate the Yaw value first and then do a Radian to Degree conversion to get the heading.
However,... | [
{
"answer_id": 74464861,
"author": "jonasmike",
"author_id": 4385834,
"author_profile": "https://Stackoverflow.com/users/4385834",
"pm_score": 1,
"selected": false,
"text": "siny = +2.0 * (q.w * q.z + q.y * q.x);\ncosy = +1.0 - 2.0 * (q.x * q.x + q.z * q.z);\nheading = atan2(siny, cosy);... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9093743/"
] |
74,464,541 | <p>I made a minimal example to describe my problem using the concept of player using items in a game (which makes my problem easier to understand).</p>
<p>My problematic is the following. Let's say I have to store items and the player holding them in my database.</p>
<p><a href="https://i.stack.imgur.com/B8Drl.png" rel... | [
{
"answer_id": 74464755,
"author": "Progman",
"author_id": 286934,
"author_profile": "https://Stackoverflow.com/users/286934",
"pm_score": 0,
"selected": false,
"text": "isFavorite Item NULL ENUM UNIQUE playerId isFavorite item playerId isFavorite CREATE TABLE items(\n id INT AUTO_INC... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15651162/"
] |
74,464,565 | <p>I have the following dataframe (constructed as below):</p>
<pre><code>import pandas as pd
df = pd.DataFrame(data=None,columns=pd.MultiIndex.from_product([['Apple','Banana','Orange'],['Data1','Data2','Data3']]),index=[1])
df.loc[:,:] = [1,2,3,4,5,6,7,8,9]
>>> Apple Banana ... | [
{
"answer_id": 74465485,
"author": "MDR",
"author_id": 9192284,
"author_profile": "https://Stackoverflow.com/users/9192284",
"pm_score": 2,
"selected": true,
"text": "import pandas as pd\n\ndf = pd.DataFrame(data=None,columns=pd.MultiIndex.from_product([['Apple','Banana','Orange'],['Data... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9230013/"
] |
74,464,594 | <p>this error is in udemy maximilian schwarzmuller's flutter course error.
this is the code: I have provided the string value still I getting nonnull string provided to text widget error in ('tx.title'),</p>
<pre><code>import 'package:flutter/material.dart';
import './transaction.dart';
void main() => runApp(MyWidg... | [
{
"answer_id": 74465485,
"author": "MDR",
"author_id": 9192284,
"author_profile": "https://Stackoverflow.com/users/9192284",
"pm_score": 2,
"selected": true,
"text": "import pandas as pd\n\ndf = pd.DataFrame(data=None,columns=pd.MultiIndex.from_product([['Apple','Banana','Orange'],['Data... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17720978/"
] |
74,464,598 | <p>A JDK 19 ShutdownOnFailure scope also allows for explicit cancelation of all tasks using the shutdown method.
How can I know if the scope has been shutdown?
The API includes an isShutdown method but it is private.</p>
<p>Here is some (incomplete) code just to illustrate a possible use, where a scope is canceled some... | [
{
"answer_id": 74547554,
"author": "Michael Easter",
"author_id": 12704,
"author_profile": "https://Stackoverflow.com/users/12704",
"pm_score": 1,
"selected": false,
"text": "var result = \"error\";\n\ntry (var scope = new StructuredTaskScope.ShutdownOnFailure()) {\n var numOrders = ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/889742/"
] |
74,464,611 | <p>I am planning to move some elements from a list to the target container(say vector) for further processing. Is it safe to use <code>move_iterator</code> for moving to target And <code>erase</code> the <em>moved section</em> of the source container?</p>
<pre><code>#include<list>
#include<vector>
#include&... | [
{
"answer_id": 74547554,
"author": "Michael Easter",
"author_id": 12704,
"author_profile": "https://Stackoverflow.com/users/12704",
"pm_score": 1,
"selected": false,
"text": "var result = \"error\";\n\ntry (var scope = new StructuredTaskScope.ShutdownOnFailure()) {\n var numOrders = ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/805896/"
] |
74,464,617 | <p>Can someone help me with my code and let me know what's wrong in it?</p>
<pre><code>def count_primes(nums):
count = 0
for num in range(2,nums+1):
if num%2!=0 or num%3!=0 or num%5!=0:
count+=1
return count
</code></pre>
| [
{
"answer_id": 74547554,
"author": "Michael Easter",
"author_id": 12704,
"author_profile": "https://Stackoverflow.com/users/12704",
"pm_score": 1,
"selected": false,
"text": "var result = \"error\";\n\ntry (var scope = new StructuredTaskScope.ShutdownOnFailure()) {\n var numOrders = ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16761890/"
] |
74,464,621 | <p>In snowflake, I have a table <code>"dbtest"."schematest"."testtable"</code> created by role Accountadmin.</p>
<p>Now i want to alter a column in this table using another role <code>roletest</code>;</p>
<p>I have given all access till table leve to roletest</p>
<pre><code># using account... | [
{
"answer_id": 74547554,
"author": "Michael Easter",
"author_id": 12704,
"author_profile": "https://Stackoverflow.com/users/12704",
"pm_score": 1,
"selected": false,
"text": "var result = \"error\";\n\ntry (var scope = new StructuredTaskScope.ShutdownOnFailure()) {\n var numOrders = ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2897115/"
] |
74,464,639 | <p>I have a function that for a given camelCase object returns the same object in snake_case</p>
<pre><code>// Let's imagine these are the types
interface CamelData {
exempleId: number
myData:string
}
interface SnakeData {
exemple_id: number
my_data: string
}
export const camelToSnake = (
camelData: Par... | [
{
"answer_id": 74465000,
"author": "Dimava",
"author_id": 5734961,
"author_profile": "https://Stackoverflow.com/users/5734961",
"pm_score": 1,
"selected": false,
"text": "export function camelToSnake (camelData: CamelData): SnakeData;\nexport function camelToSnake (camelData: Partial<Cam... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19103670/"
] |
74,464,646 | <p>I have some XML content in a single field; I want to split each xml field in multiple rows.</p>
<p>The XML is something like that:</p>
<pre><code><env>
<id>id1<\id>
<DailyProperties>
<date>01/01/2022<\date>
<value>1<\value>
<\DailyPropert... | [
{
"answer_id": 74465399,
"author": "Yitzhak Khabinsky",
"author_id": 1932311,
"author_profile": "https://Stackoverflow.com/users/1932311",
"pm_score": 3,
"selected": true,
"text": "DECLARE @tbl TABLE (id INT IDENTITY PRIMARY KEY, xmldata XML);\nINSERT INTO @tbl (xmldata) VALUES\n(N'<env>... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4949261/"
] |
74,464,690 | <p>This is an example of a bigger dataframe. Imagine I have a dataframe like this:</p>
<pre><code>import pandas as pd
df = pd.DataFrame({"ID":["4SSS50FX","2TT1897FA"],
"VALUE":[13, 56]})
df
Out[2]:
ID VALUE
0 4SSS50FX 13
1 2TT1897FA 56
... | [
{
"answer_id": 74465399,
"author": "Yitzhak Khabinsky",
"author_id": 1932311,
"author_profile": "https://Stackoverflow.com/users/1932311",
"pm_score": 3,
"selected": true,
"text": "DECLARE @tbl TABLE (id INT IDENTITY PRIMARY KEY, xmldata XML);\nINSERT INTO @tbl (xmldata) VALUES\n(N'<env>... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11001493/"
] |
74,464,715 | <p>I've come across this problem before, say with Categories or Tags.
You have multiple tags that can be children of each other:</p>
<pre><code>{ id: 1, name: 'Sports', parent_id: null }
{ id: 2, name: 'Fruits', parent_id: null }
{ id: 3, name: 'Citrus', parent_id: 2 }
{ id: 4, name: 'Orange', parent_id: 3 }
{ id: 5, n... | [
{
"answer_id": 74466298,
"author": "Asraf",
"author_id": 20361860,
"author_profile": "https://Stackoverflow.com/users/20361860",
"pm_score": 0,
"selected": false,
"text": "O(n) n categories O(n*d) d O(n*d) getParent() O(n*α) α O(n) getParent() Fruits -> Citrius -> Orange Citrius Fruits O... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/213371/"
] |
74,464,732 | <p>I have a table where one column has repeating values that I need to group. I then want to see if all of the cells within a different column, but within the same grouping match, or more specifically if they don't match.</p>
<p><a href="https://i.stack.imgur.com/5i25E.png" rel="nofollow noreferrer"><img src="https://i... | [
{
"answer_id": 74466298,
"author": "Asraf",
"author_id": 20361860,
"author_profile": "https://Stackoverflow.com/users/20361860",
"pm_score": 0,
"selected": false,
"text": "O(n) n categories O(n*d) d O(n*d) getParent() O(n*α) α O(n) getParent() Fruits -> Citrius -> Orange Citrius Fruits O... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5248324/"
] |
74,464,758 | <p>`</p>
<pre><code>switch(selectedOption){
case 'B':
printf("Please enter the first number\n");
if (scanf("%f", &firstNumber) == 1){
printf("Is a valid number\n");
}
else{
printf("Is not a valid number\n");
}
}
</code></pre>
<p>`</p>
<p>I ... | [
{
"answer_id": 74466298,
"author": "Asraf",
"author_id": 20361860,
"author_profile": "https://Stackoverflow.com/users/20361860",
"pm_score": 0,
"selected": false,
"text": "O(n) n categories O(n*d) d O(n*d) getParent() O(n*α) α O(n) getParent() Fruits -> Citrius -> Orange Citrius Fruits O... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13244489/"
] |
74,464,772 | <p>I'm trying to style the border bottom color of my mat-paginator when a option is selected, which has a default purple color. Anyone got a solution?</p>
<p><a href="https://i.stack.imgur.com/aPNAu.png" rel="nofollow noreferrer">Mat-paginator purple border</a></p>
<p>I tried looking for class that style the border on ... | [
{
"answer_id": 74465037,
"author": "Mr. Stash",
"author_id": 13625800,
"author_profile": "https://Stackoverflow.com/users/13625800",
"pm_score": 1,
"selected": false,
"text": "::ng-deep .mat-form-field.mat-focused .mat-form-field-ripple{\n background-color: red;\n}\n"
},
{
"answ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19729470/"
] |
74,464,780 | <p>I want to get data out of youtube's "heat-map" feature, which is present in videos with certain features. <a href="https://www.youtube.com/watch?v=09wcDevb1q4" rel="nofollow noreferrer">This</a> is an example. I want to retrieve this data somehow yet Youtube API's don't provide it and, <a href="https://sta... | [
{
"answer_id": 74465259,
"author": "Fazlul",
"author_id": 12848411,
"author_profile": "https://Stackoverflow.com/users/12848411",
"pm_score": 2,
"selected": true,
"text": "d path from selenium import webdriver\nimport time\nfrom bs4 import BeautifulSoup\nfrom selenium.webdriver.chrome.se... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9329155/"
] |
74,464,781 | <p>So I'm having problem converting my date to this format:</p>
<pre><code>DD/MM/YYYY HH:MM:ss
</code></pre>
<p>my front end is retrieving the date from the date stored in the database but somehow when I convert it it's changing the hours. The date is:</p>
<pre><code>2022-11-16T15:00:00.000Z
</code></pre>
<p>And I hav... | [
{
"answer_id": 74465259,
"author": "Fazlul",
"author_id": 12848411,
"author_profile": "https://Stackoverflow.com/users/12848411",
"pm_score": 2,
"selected": true,
"text": "d path from selenium import webdriver\nimport time\nfrom bs4 import BeautifulSoup\nfrom selenium.webdriver.chrome.se... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18545081/"
] |
74,464,813 | <p>Quickly, my need: create a Spark dataframe from a more or less complex query in T-SQL (SQL Server) and/or from the output of a SQL Server stored procedure.</p>
<p>As far I understand, Spark does not allow to execute queries in the dialect of the underlying data source. Yes, there is <a href="https://stackoverflow.co... | [
{
"answer_id": 74466271,
"author": "CRAFTY DBA",
"author_id": 2577687,
"author_profile": "https://Stackoverflow.com/users/2577687",
"pm_score": 1,
"selected": false,
"text": "#\n# Set connection properties\n#\n\nserver_name = \"jdbc:sqlserver://svr4tips2030.database.windows.net\"\ndatab... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4596414/"
] |
74,464,816 | <p>I'm new in Blazor and I'm a little bit confused about warnings and nullable. If I declare a varible like this: <code>List<Course> result = new List<Course>();</code>
I get a warning in here: <code>result = await ClientHttp.GetFromJsonAsync<List<Course>>("api/GetCourses");</code></p>... | [
{
"answer_id": 74466519,
"author": "Henk",
"author_id": 60761,
"author_profile": "https://Stackoverflow.com/users/60761",
"pm_score": 2,
"selected": false,
"text": "result ? //List<Course>? result = new List<Course>();\n List<Course> result = new List<Course>();\n ! //result = await Cli... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5667921/"
] |
74,464,826 | <p>When I make a request from <strong>Postman</strong>, I get an error, but when I make a Post request from a <strong>React page</strong>, I get an error.
I <strong>am not</strong> using <strong>Spring Security</strong>.</p>
<pre><code>Access to XMLHttpRequest at 'http://localhost:8080/api/createData' from origin 'http... | [
{
"answer_id": 74466519,
"author": "Henk",
"author_id": 60761,
"author_profile": "https://Stackoverflow.com/users/60761",
"pm_score": 2,
"selected": false,
"text": "result ? //List<Course>? result = new List<Course>();\n List<Course> result = new List<Course>();\n ! //result = await Cli... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14686302/"
] |
74,464,839 | <p>I have a class called Sound from the framework SwiftySound and a subclass called SoundWrapper which makes it hashable. Now I am adding a string property "imageName" to the subclass so that I can add an image to every sound. Therefore, I am required to write an initializer for the superclass using super.ini... | [
{
"answer_id": 74465015,
"author": "Caleb Bolton",
"author_id": 7098384,
"author_profile": "https://Stackoverflow.com/users/7098384",
"pm_score": 0,
"selected": false,
"text": "url SoundWrapper url Sound private static func url(for file: String, fileExtension: String? = nil) -> URL? Soun... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7876521/"
] |
74,464,847 | <p>I am trying to make a music quiz where the bot plays a song and asks the question "What is the name of this song?", the user then is given a 30 second time period where it can enter the songs name or else it will say no one got the answer right in time. Now when I try executing this command and give the ri... | [
{
"answer_id": 74466137,
"author": "Crytek1012",
"author_id": 16825118,
"author_profile": "https://Stackoverflow.com/users/16825118",
"pm_score": 0,
"selected": false,
"text": "item.title item.title const filter = m => m.content.toLowerCase() === item.title.toLowerCase();\n const filter ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19617459/"
] |
74,464,877 | <p>I'm making a Flutter application and I'm trying to get the user's data in the app.</p>
<p>So basically, the user registers with his info (name, email, password), and this data is displayed in a <code>ProfilePage</code> when he's logged in.</p>
<p>According to Firestore documentation, I'm supposed to use a <code>Stre... | [
{
"answer_id": 74466137,
"author": "Crytek1012",
"author_id": 16825118,
"author_profile": "https://Stackoverflow.com/users/16825118",
"pm_score": 0,
"selected": false,
"text": "item.title item.title const filter = m => m.content.toLowerCase() === item.title.toLowerCase();\n const filter ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19573944/"
] |
74,464,890 | <p>Stateless lambdas can be converted to function pointers, e.g. this is valid,</p>
<pre class="lang-cpp prettyprint-override"><code>using Fun = bool(*)(int, int);
constexpr auto less = [](int a, int b){ return a < b; };
Fun f{less};
</code></pre>
<p>but objects like <code>std::less<int>{}</code> can't.</p>
<p... | [
{
"answer_id": 74465933,
"author": "Marshall Clow",
"author_id": 992490,
"author_profile": "https://Stackoverflow.com/users/992490",
"pm_score": 0,
"selected": false,
"text": "std::less<int> operator() int bool bool (*)(const std::less<int> *, const int &, const int &) bool (std::less<in... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5825294/"
] |
74,464,896 | <p>I am doing sort of a code migration from Python to Teradata:</p>
<p>The python code is this:</p>
<p><code>max = min(datetime.today(), date + timedelta(days=90))</code></p>
<p>where date variable holds a date.</p>
<p>However, in Teradata, I know this min function won't work the same way. And, I have to get the 'date'... | [
{
"answer_id": 74465138,
"author": "access_granted",
"author_id": 5812981,
"author_profile": "https://Stackoverflow.com/users/5812981",
"pm_score": 1,
"selected": false,
"text": "SELECT LEAST(13, 6); \nSELECT LEAST( to_char(date1,'YYYYMMDD'), to_char(date2,'YYYYMMDD') ) ...\n"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5633396/"
] |
74,464,918 | <p>I am currently making an <code>if</code> statement, but in that if statement I need to add string character, so based on what you say it either takes away 4 or not.</p>
<pre><code>public static void yesornodisability()
{
String disabled;
Scanner scanner = new Scanner(System.in);
System.out.println("... | [
{
"answer_id": 74465138,
"author": "access_granted",
"author_id": 5812981,
"author_profile": "https://Stackoverflow.com/users/5812981",
"pm_score": 1,
"selected": false,
"text": "SELECT LEAST(13, 6); \nSELECT LEAST( to_char(date1,'YYYYMMDD'), to_char(date2,'YYYYMMDD') ) ...\n"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20372133/"
] |
74,464,928 | <p>I want to sort an array of posts by createdAt dates, now the posts are sorting by first the oldest one then the new one, but I want to be sorted the opposite way! already tried <code>.sort((a, b) => b.createdAt - a.createdAt)</code> but didn't work, I'm not sure if it's the way to implement it. The post data is s... | [
{
"answer_id": 74465138,
"author": "access_granted",
"author_id": 5812981,
"author_profile": "https://Stackoverflow.com/users/5812981",
"pm_score": 1,
"selected": false,
"text": "SELECT LEAST(13, 6); \nSELECT LEAST( to_char(date1,'YYYYMMDD'), to_char(date2,'YYYYMMDD') ) ...\n"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17342280/"
] |
74,464,932 | <p><strong>Input js Array</strong></p>
<pre><code>var foo =
[ { name: 'John', age: '30', car: 'yellow' }
, { name: 'shayam', age: '13', car: 'blue' }
, { name: 'ram', age: '23', car: 'red' }
];
</code></pre>
<pre><code>function poo(keyName, value)
{
// Change all the value of JSON array accord... | [
{
"answer_id": 74465138,
"author": "access_granted",
"author_id": 5812981,
"author_profile": "https://Stackoverflow.com/users/5812981",
"pm_score": 1,
"selected": false,
"text": "SELECT LEAST(13, 6); \nSELECT LEAST( to_char(date1,'YYYYMMDD'), to_char(date2,'YYYYMMDD') ) ...\n"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9971923/"
] |
74,464,935 | <p>My Laravel links keep breaking each time I restart my local server</p>
<p>So, I am using Laravel 9 and my links keep breaking each time I reload the page or when I restart the server
For example</p>
<p>127.0.0.1:8000/cars/1/edit</p>
<p>will become <code>127.0.0.1:8000/cars/cars/1/edit</code> next time I click it.</p... | [
{
"answer_id": 74464993,
"author": "Pouria Jahedi",
"author_id": 8509638,
"author_profile": "https://Stackoverflow.com/users/8509638",
"pm_score": 1,
"selected": false,
"text": "\n<a href='{{ url(\"cars/\".$car['id'].\"/edit\") }}'> edit </a>\n\n"
},
{
"answer_id": 74465047,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15770919/"
] |
74,464,939 | <p>What is the DBClients recommended way to work with a large number of rows?</p>
<p>I am currently using the <a href="https://helidon.io/docs/latest/apidocs/io.helidon.dbclient/io/helidon/dbclient/DbStatement.html#execute()" rel="nofollow noreferrer">execute()</a> API on <a href="https://helidon.io/docs/latest/apidocs... | [
{
"answer_id": 74470741,
"author": "Ashwin Prabhu",
"author_id": 177784,
"author_profile": "https://Stackoverflow.com/users/177784",
"pm_score": 3,
"selected": true,
"text": "dbClient.execute(\n dbExecute -> dbExecute.createQuery(sql).execute()\n).map(dbRow -> <doSomething>)\n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/177784/"
] |
74,464,989 | <p>I have to add every number with one behind it in the list using loops or functions</p>
<p>example text;</p>
<pre><code>list[1,2,3] => (1+3)+(2+1)+(3+2)
</code></pre>
<p>output = 12</p>
<p>example code;</p>
<pre><code>myList = [1,2,3]
x = myList [0] + myList [2]
x = x + (myList [1]+myList [0])
x = x + (myList [2]... | [
{
"answer_id": 74465054,
"author": "Jay",
"author_id": 8677071,
"author_profile": "https://Stackoverflow.com/users/8677071",
"pm_score": 1,
"selected": false,
"text": "list[-1] myList = [1,2,3]\ntotal = 0\nfor i, num in enumerate(myList):\n print(num, myList[i-1])\n total += num + ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74464989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18745426/"
] |
74,465,004 | <p>I'm working with data from my Spotify account and I've created a dataframe that contains all the minutes in the day and the total playtime during that minute for the last 5 years. The dataframe is this (by the way, I wonder if there is any way to work with time without having to select a specific date):</p>
<pre><co... | [
{
"answer_id": 74465054,
"author": "Jay",
"author_id": 8677071,
"author_profile": "https://Stackoverflow.com/users/8677071",
"pm_score": 1,
"selected": false,
"text": "list[-1] myList = [1,2,3]\ntotal = 0\nfor i, num in enumerate(myList):\n print(num, myList[i-1])\n total += num + ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13268177/"
] |
74,465,018 | <p>I need to convert the value in the column 'value' to a list format.
The dataframe df:</p>
<pre><code> emp_no value
0 390 10.0
1 395 20.0
2 397 30.0
3 522 40.0
4 525 40.0
</code></pre>
<p>Output should be:</p>
<pre><code> emp_no value
0 390 [5,10.0]
1 395 [5,20.0]
2 ... | [
{
"answer_id": 74465054,
"author": "Jay",
"author_id": 8677071,
"author_profile": "https://Stackoverflow.com/users/8677071",
"pm_score": 1,
"selected": false,
"text": "list[-1] myList = [1,2,3]\ntotal = 0\nfor i, num in enumerate(myList):\n print(num, myList[i-1])\n total += num + ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20418639/"
] |
74,465,042 | <p>I know how to name variables in classes but how does it relate to functions? I've noticed that some devs use final keywords for variables that never change in functions, but the others use var even in functions.</p>
<p>Which of the following examples is recommended in terms of clean code and speed?</p>
<pre class="l... | [
{
"answer_id": 74465114,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 0,
"selected": false,
"text": "dart pub add lints #analysis_options.yaml\ninclude: package:lints/recommended.yaml\n dart pub add zekfad_lints... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16846281/"
] |
74,465,057 | <p>I'm scraping <a href="https://www.helpmycash.com/hipotecas/hipotecas-interes-fijo/" rel="nofollow noreferrer">this site</a>, specifically the content of the tables inside the <code>div</code> tags with <code>class</code> containing <code>'ranking-data'</code>. So for the first <code>td</code> that would be:
<code>//... | [
{
"answer_id": 74465114,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 0,
"selected": false,
"text": "dart pub add lints #analysis_options.yaml\ninclude: package:lints/recommended.yaml\n dart pub add zekfad_lints... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683259/"
] |
74,465,060 | <p>I have 2 tables. <strong>Table 1</strong> is the main table but the name's are messy. I would like to use <strong>Table 2</strong> to map in the Name_Simplified. I have tried xlookup with wildcards but I don't know how to apply it in reverse for this.</p>
<p>Any help greatly appreciated!</p>
<p><strong>TABLE 1</stro... | [
{
"answer_id": 74465114,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 0,
"selected": false,
"text": "dart pub add lints #analysis_options.yaml\ninclude: package:lints/recommended.yaml\n dart pub add zekfad_lints... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12954974/"
] |
74,465,101 | <p>If I type any Nodejs command in Vscode Terminal there comes the error</p>
<blockquote>
<p>The term "nodemon" was not recognized as the name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if the path is correct (if included),
and repeat the process.</p>
</block... | [
{
"answer_id": 74465114,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 0,
"selected": false,
"text": "dart pub add lints #analysis_options.yaml\ninclude: package:lints/recommended.yaml\n dart pub add zekfad_lints... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20469384/"
] |
74,465,139 | <p>Hey I'm trying to change the font of everything in this code block and I'm not sure how this is what is given</p>
<pre><code><div>
<iframe
id="waitlist_iframe"
title="waitlist"
frameborder="0"
margin... | [
{
"answer_id": 74465114,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 0,
"selected": false,
"text": "dart pub add lints #analysis_options.yaml\ninclude: package:lints/recommended.yaml\n dart pub add zekfad_lints... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14389743/"
] |
74,465,147 | <p>I wanto to create a crossword puzzles's solver with Lua. I'm not used to this language tho and my english is poor, sorry for that.</p>
<p>I have to iterate multiples times the same table of tables checking if the given word is present or not and, if present, replace every char of that word in the table with a "... | [
{
"answer_id": 74465114,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 0,
"selected": false,
"text": "dart pub add lints #analysis_options.yaml\ninclude: package:lints/recommended.yaml\n dart pub add zekfad_lints... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522339/"
] |
74,465,173 | <p>I googled and I found out the solution for Python and SQL but not for R coding.</p>
<p>I attach an example of a dataframe called df1 in order to be easy to understand.</p>
<pre><code>Genus Species Genusspecie
Escherichia coli Escherichia coli
Campylobacter NA NA
Shigella son... | [
{
"answer_id": 74465114,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 0,
"selected": false,
"text": "dart pub add lints #analysis_options.yaml\ninclude: package:lints/recommended.yaml\n dart pub add zekfad_lints... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522749/"
] |
74,465,180 | <p>I'd like to know if <a href="https://www.php.net/manual/en/function.fstat" rel="nofollow noreferrer">fstat()</a> is cached.</p>
<p>Documentation says nothing about it.</p>
<p>(PHP 8.1.12)</p>
<p><strong>EDIT:</strong></p>
<p>I made a LOT of tests, I have now an accurate answer for that.</p>
<p><strong>Introduction:<... | [
{
"answer_id": 74465875,
"author": "Chris Haas",
"author_id": 231316,
"author_profile": "https://Stackoverflow.com/users/231316",
"pm_score": 1,
"selected": false,
"text": "$filename = __DIR__.'/test.txt';\n\n@unlink($filename);\ntouch($filename);\necho 'STAT - Size before write: '.stat(... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18302645/"
] |
74,465,232 | <p>I have this huge check in Form values of Angular Application and I need to refactor.</p>
<pre><code>((this.dropdownSearchForm.get('name').value === undefined || this.dropdownSearchForm.get('name').value === null || this.dropdownSearchForm.get('name').value.length === 0) &&
(this.dropdownSearchForm.get('s... | [
{
"answer_id": 74465875,
"author": "Chris Haas",
"author_id": 231316,
"author_profile": "https://Stackoverflow.com/users/231316",
"pm_score": 1,
"selected": false,
"text": "$filename = __DIR__.'/test.txt';\n\n@unlink($filename);\ntouch($filename);\necho 'STAT - Size before write: '.stat(... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19584581/"
] |
74,465,242 | <p>I have a json fragment like below. I want to return the value of the name key together with the value of the version key if the version key has a value. The expected output is "name": "value" , "version" : "value"</p>
<p>It is better to have a solution with grep or jq.</p>
<pr... | [
{
"answer_id": 74465340,
"author": "pmf",
"author_id": 2158479,
"author_profile": "https://Stackoverflow.com/users/2158479",
"pm_score": 1,
"selected": false,
"text": "// empty jq -r '.[] | \"\\(.name) \\(.version // empty)\"'\n Polymer 3.5.0\nHammer.js 2.0.2\n"
},
{
"answer_id":... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522711/"
] |
74,465,247 | <p>I want to <code>split()</code> a string on both newlines <em><strong>and</strong></em> space characters:</p>
<pre><code>#!/usr/bin/perl
use warnings;
use strict;
my $str = "aa bb cc\ndd ee ff";
my @arr = split(/\s\n/, $str); # Split on ' ' and '\n'
print join("\n", @arr); # Print ... | [
{
"answer_id": 74465343,
"author": "toolic",
"author_id": 197758,
"author_profile": "https://Stackoverflow.com/users/197758",
"pm_score": 4,
"selected": true,
"text": "aa bb cc\\ndd ee ff \\s\\n \\n my @arr = split(/\\s\\n/, $str);\n my @arr = split(/\\s/, $str);\n use warnings;\nuse str... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4040743/"
] |
74,465,250 | <p>I would like to see the name of files modified in my git history, but not including one commit.</p>
<p>When I use the command: <code>git log --oneline</code>, git returns these commits:</p>
<p><a href="https://i.stack.imgur.com/ZPJkg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZPJkg.png" alt="... | [
{
"answer_id": 74465343,
"author": "toolic",
"author_id": 197758,
"author_profile": "https://Stackoverflow.com/users/197758",
"pm_score": 4,
"selected": true,
"text": "aa bb cc\\ndd ee ff \\s\\n \\n my @arr = split(/\\s\\n/, $str);\n my @arr = split(/\\s/, $str);\n use warnings;\nuse str... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8173813/"
] |
74,465,296 | <p>I've no idea what I'm doing wrong in the following line of code and it's driving me nuts!
As you'll probably know from the code, I only want the <em><strong>if block</strong></em> to run if it's before 5.15pm.</p>
<pre><code>if time(datetime.now().hour,datetime.now().minute) < time(17, 15):
</code></pre>
<p>I've ... | [
{
"answer_id": 74465342,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "from datetime import time from datetime import datetime, time\n\nnow = datetime.now()\n\nif time(now.hour, n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6512922/"
] |
74,465,300 | <p>As I mentioned in the title I have a problem properly embedding my animation in my <strong>Django</strong> project.</p>
<p>At some point, I decided to update the logo used by my web page built-in <strong>Django</strong>.
Having small experience with <strong>JavaScript</strong> I was looking for approaches that fit m... | [
{
"answer_id": 74465342,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "from datetime import time from datetime import datetime, time\n\nnow = datetime.now()\n\nif time(now.hour, n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15372196/"
] |
74,465,307 | <p>For a project in C i need to work on a table that contains x differents 2 dimensionnals tables. However, i don't know how to create one, and how to call only one value [i,j] of one table into my general table [x,y] --> x and y are the coordinates of a table.
<a href="https://i.stack.imgur.com/7jEOB.png" rel="nofo... | [
{
"answer_id": 74465342,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "from datetime import time from datetime import datetime, time\n\nnow = datetime.now()\n\nif time(now.hour, n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522799/"
] |
74,465,310 | <p>When I execute the following query, the name of any product appears, but not the product with the lowest price:</p>
<pre><code>SELECT MIN(Price), ProductName
FROM Products;
</code></pre>
<p>How could I see <em><strong>the name of the product with the lowest price?</strong></em></p>
<p>Thanks in advance!</p>
| [
{
"answer_id": 74465364,
"author": "HamidYari",
"author_id": 3807023,
"author_profile": "https://Stackoverflow.com/users/3807023",
"pm_score": -1,
"selected": false,
"text": "SELECT 'productName' \nFROM Products \nORDER BY Price LIMIT 1\n"
},
{
"answer_id": 74465372,
"author"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2280381/"
] |
74,465,311 | <p><strong>I</strong> have a laravel blade view/page that I'd like to update without refreshing the page.</p>
<p>The blade.php code is working fine and retrieving data from a MySQL database - but the ajax/javascript isn't.</p>
<p>Apparently my AJAX calls are not even returning JSON but an object.</p>
<p>I come from a b... | [
{
"answer_id": 74465364,
"author": "HamidYari",
"author_id": 3807023,
"author_profile": "https://Stackoverflow.com/users/3807023",
"pm_score": -1,
"selected": false,
"text": "SELECT 'productName' \nFROM Products \nORDER BY Price LIMIT 1\n"
},
{
"answer_id": 74465372,
"author"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522722/"
] |
74,465,337 | <p>After creating a web app config in firebase using the c# library, I wanted to get the configuration file, but I am getting error :- Google.GoogleApiException: Parameter validation failed for "parent" : The value did not match the regular expression ^projects/[^/]+$ ..... as shown below , how do I fix this ... | [
{
"answer_id": 74465731,
"author": "Philip P.",
"author_id": 2486874,
"author_profile": "https://Stackoverflow.com/users/2486874",
"pm_score": 1,
"selected": false,
"text": "return _firebaseManagementService.Projects.WebApps.GetConfig(\"projects/-/webApps/\" + listWeb.Apps[0].AppId + \"/... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20410799/"
] |
74,465,341 | <p>I want to filter a dataframe column (col_A) and append the output to existing lists. The filters to apply to col_A are included in a vector col_A_filters.</p>
<p>My question is how to create a function for this with R.</p>
<p>Example:</p>
<pre><code>Df <- data.frame(
col_A = c("abc","def"),
... | [
{
"answer_id": 74465549,
"author": "Rui Barradas",
"author_id": 8245406,
"author_profile": "https://Stackoverflow.com/users/8245406",
"pm_score": 2,
"selected": false,
"text": "mget append Df <- data.frame(\n col_A = c(\"abc\",\"def\"),\n col_B = c(123,456)\n)\n\n# existing lists:\nabc... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12617528/"
] |
74,465,409 | <p>Ok I am building a small app to learn some Speech Recognition in Kotlin. The issue I am experiencing is that my EditText is not posting what is being said. It returns a null value. So when I access the <code>text.text = result?.get(0).tostring()</code> it says it has to an Editable!.</p>
<p>I then changed it to <cod... | [
{
"answer_id": 74465549,
"author": "Rui Barradas",
"author_id": 8245406,
"author_profile": "https://Stackoverflow.com/users/8245406",
"pm_score": 2,
"selected": false,
"text": "mget append Df <- data.frame(\n col_A = c(\"abc\",\"def\"),\n col_B = c(123,456)\n)\n\n# existing lists:\nabc... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14809236/"
] |
74,465,418 | <p>I need to create a Trigger in oracle. Trigger has to check if the number of employees in department is between 1 and 10. I'm wondering about this for 2 days and still I can not find a solution.</p>
<p>I wrote something like this, but I got an error: "ORA-04091: table is mutating"</p>
<pre><code>CREATE OR R... | [
{
"answer_id": 74465793,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 0,
"selected": false,
"text": "CREATE OR REPLACE TRIGGER deptEmp\nBEFORE INSERT OR UPDATE OR DELETE ON emp\nDECLARE\n emp_counts_min INT;\n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12096346/"
] |
74,465,420 | <p>(obs: <em>the <em><strong>ids</strong> are not pk they are unique keys, the pks are a government "id" called <strong>cpf</strong></em></em>);</p>
<p>I want to create a function that reads the <strong>id</strong> in <em>table1 [person]</em> of a person and then insert this <em>[person].<strong>id</strong></... | [
{
"answer_id": 74465621,
"author": "yellow_melro",
"author_id": 20333201,
"author_profile": "https://Stackoverflow.com/users/20333201",
"pm_score": 0,
"selected": false,
"text": "CREATE OR REPLACE FUNCTION schema.migrated_id() RETURNS TRIGGER AS $$\nBEGIN\n\n UPDATE schema.went_to\n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20333201/"
] |
74,465,426 | <p>I am creating countdown for the "coming soon page", but it doesn't works, it always says 00:00:00:00
Can you help me please.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-over... | [
{
"answer_id": 74465621,
"author": "yellow_melro",
"author_id": 20333201,
"author_profile": "https://Stackoverflow.com/users/20333201",
"pm_score": 0,
"selected": false,
"text": "CREATE OR REPLACE FUNCTION schema.migrated_id() RETURNS TRIGGER AS $$\nBEGIN\n\n UPDATE schema.went_to\n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6652796/"
] |
74,465,430 | <p>I am trying to code the summation of the following series:</p>
<p><a href="https://i.stack.imgur.com/fpJD3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fpJD3.png" alt="enter image description here" /></a></p>
<p>I can't figure out how to alternate the sign from "-" to "+" to... | [
{
"answer_id": 74465495,
"author": "abelenky",
"author_id": 34824,
"author_profile": "https://Stackoverflow.com/users/34824",
"pm_score": 3,
"selected": true,
"text": "int coeff = +1;\n sum += coeff * num/den;\ncoeff *= -1; // Toggles -1 to +1 and back to -1 each loop.\n coeff +1 * -1 -... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20292136/"
] |
74,465,451 | <p>so I am currently learning Dart (Flutter) and I have come to something I can't really understand. So I'm hoping that someone will be able to point out the obvious thing here :)</p>
<p>If I write my code like this:</p>
<pre><code>class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget ... | [
{
"answer_id": 74465503,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 0,
"selected": false,
"text": "questions key value String list dynamic Object list Object dynamic answers List<String>"
},
{
"answer_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4478466/"
] |
74,465,455 | <p>I have the following <code>Spring</code> component that I am trying to unit test:</p>
<pre><code>@Component
public class OrderService {
private final DatabaseConnection dbConnection;
private final String collectionName;
@Autowired
public OrderService(
DatabaseConnection dbConnection,
... | [
{
"answer_id": 74465668,
"author": "chrylis -cautiouslyoptimistic-",
"author_id": 1189885,
"author_profile": "https://Stackoverflow.com/users/1189885",
"pm_score": 0,
"selected": false,
"text": "@ConfigurationProperties new setCollections(testDatabaseCollectionConfig)"
},
{
"answ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12268910/"
] |
74,465,477 | <p>I am new to this data science world and trying to understand some basic pandas examples.
I have a pandas data frame that I would like to create a new column and add some conditional values as below:
It will include <code>yes</code> at every 2 seconds. Otherwise include <code>no</code>. Here is an example:
This is my... | [
{
"answer_id": 74465668,
"author": "chrylis -cautiouslyoptimistic-",
"author_id": 1189885,
"author_profile": "https://Stackoverflow.com/users/1189885",
"pm_score": 0,
"selected": false,
"text": "@ConfigurationProperties new setCollections(testDatabaseCollectionConfig)"
},
{
"answ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3450163/"
] |
74,465,480 | <p>Using <code>SlideToggle</code> of Skeleton, I am creating a toggle switch like this.</p>
<pre class="lang-html prettyprint-override"><code><script lang="ts">
import { SlideToggle } from '@brainandbones/skeleton';
let is_checked: boolean = false;
</script>
<div class="page-conta... | [
{
"answer_id": 74465647,
"author": "siraj",
"author_id": 9357440,
"author_profile": "https://Stackoverflow.com/users/9357440",
"pm_score": 2,
"selected": true,
"text": "<script lang=\"ts\">\n import { SlideToggle } from '@brainandbones/skeleton';\n\n let handleOnChange = (e) => {\n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12570573/"
] |
74,465,521 | <p>I have three arrays of numbers:</p>
<pre><code>const arr1 = [1, 2, 3, 4, 5, 6];
const arr2 = [10, 20];
const arr3 = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000];
</code></pre>
<p>i want to join them in a way where every time 'n' numbers are added (n starts with 1..2..3..and so on)
at first - one of each arra... | [
{
"answer_id": 74465571,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 2,
"selected": false,
"text": "const arr1 = [1, 2, 3, 4, 5, 6];\nconst arr2 = [10, 20];\nconst arr3 = [100, 200, 300, 400, 500, 600, 700,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17750799/"
] |
74,465,543 | <p>I'm trying to add some text in the bootstrap modal footer, however the output looks like 2 divs side by side which I don't want. Below is the code :</p>
<pre><code><div class="modal fade" id="itiModal" role="dialog">
<div class="modal-dialog">
<div c... | [
{
"answer_id": 74465571,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 2,
"selected": false,
"text": "const arr1 = [1, 2, 3, 4, 5, 6];\nconst arr2 = [10, 20];\nconst arr3 = [100, 200, 300, 400, 500, 600, 700,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/688720/"
] |
74,465,595 | <p><strong>Short Explanation</strong>
I just want to get the data from the textboxes and send them to the server. In jquery I would just list out all my textboxes and get the value and form the json and send it to the server</p>
<p>Please see example code
<a href="https://codesandbox.io/s/xenodochial-euclid-3bl7tc" rel... | [
{
"answer_id": 74465571,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": 2,
"selected": false,
"text": "const arr1 = [1, 2, 3, 4, 5, 6];\nconst arr2 = [10, 20];\nconst arr3 = [100, 200, 300, 400, 500, 600, 700,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/237109/"
] |
74,465,641 | <p>everyone!
Here's the problem , I have this dataset and I need to add a column with the frequency of each pet, I don't want a new dataframe with the statistics. See, dog and cat appears 6 time each, I need a column with value of 6 beside each dog and cat. Then I'll be able to make relational studies, which is why cre... | [
{
"answer_id": 74465679,
"author": "TarJae",
"author_id": 13321647,
"author_profile": "https://Stackoverflow.com/users/13321647",
"pm_score": 4,
"selected": true,
"text": "add_count dplyr name library(dplyr)\n\ndf %>% \n add_count(answer, name = \"freq\")\n id answer freq\n1 1 c... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74465641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19613162/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.