qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,344,819 | <p>How do I set a variable to None or null when the file doesn't exist
for example:</p>
<pre><code>lastModified = os.path.getmtime("/xyz.csv") if os.path.getmtime("/xyz.csv") is not None else null
</code></pre>
<p>So I would like <code>lastModified</code> variable to be the time the file was last mo... | [
{
"answer_id": 74344906,
"author": "bwilk315",
"author_id": 20438342,
"author_profile": "https://Stackoverflow.com/users/20438342",
"pm_score": 4,
"selected": true,
"text": "from os.path import getmtime, exists\n\nfile_path = './file.txt'\nlast_mod = getmtime(file_path) if exists(file_pa... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19399320/"
] |
74,344,825 | <p>I really need some help with a homework problem I have been given. I don't want answers to the question, but I would like some help with knowing what methods to use.</p>
<p>My problem is:</p>
<p>The product owner on your development team believes they've seen a pattern as to which customers purchase the most socks. ... | [
{
"answer_id": 74345017,
"author": "Lain",
"author_id": 4728913,
"author_profile": "https://Stackoverflow.com/users/4728913",
"pm_score": 1,
"selected": false,
"text": "true false //REM: name starts with a 'C' (upper or lowercase)\nconsole.log(\n [\n {\n name: 'Sam',\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20438904/"
] |
74,344,827 | <p>I have an application which requieres tls-client-authentication for all its routes except for one path, lets call it "/some-path".</p>
<p>Now I tried to setup two routes with the same host like:</p>
<pre><code>apiVersion: route.openshift.io/v1
kind: Route
name: route-path
spec:
host: example.com
path: ... | [
{
"answer_id": 74345017,
"author": "Lain",
"author_id": 4728913,
"author_profile": "https://Stackoverflow.com/users/4728913",
"pm_score": 1,
"selected": false,
"text": "true false //REM: name starts with a 'C' (upper or lowercase)\nconsole.log(\n [\n {\n name: 'Sam',\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7435186/"
] |
74,344,829 | <p>I have two CSV files<br />
csv1:</p>
<pre><code>header
a
b
c
</code></pre>
<p>csv2:\</p>
<pre><code>header
e
f
g
</code></pre>
<p>I want to merge these two files to another CSV in alternate rows like<br />
output.csv:</p>
<pre><code>header
a
e
b
f
c
g
</code></pre>
<p>Can this be done? Thanks in advance</p>
| [
{
"answer_id": 74344935,
"author": "Achille G",
"author_id": 10687907,
"author_profile": "https://Stackoverflow.com/users/10687907",
"pm_score": 1,
"selected": true,
"text": "import pandas as pd\nfrom itertools import chain, zip_longest\n\nx = pd.DataFrame()\nx[\"header\"] = [1, 3, 5, 7]... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10726514/"
] |
74,344,838 | <pre><code>def get_users():
url = "https://blablabla/api/users"
headers = {"Authorization": accessToken, "Content-Type": "application/json", "Accept": "application/json"}
r = requests.get(url, headers=headers)
r_dict = r.json()
return r_dic... | [
{
"answer_id": 74344952,
"author": "treuss",
"author_id": 19838568,
"author_profile": "https://Stackoverflow.com/users/19838568",
"pm_score": 1,
"selected": false,
"text": "dict.get None created = item.get(\"created\", \"2020-01-01 00:00:00.000 +0000 UTC\")\n"
},
{
"answer_id": 7... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20339924/"
] |
74,344,888 | <p>so i've been working on problem and i found the solution but I would like please someone to explain me further why this works actually</p>
<pre><code>const game = {
team1: 'Bayern Munich',
team2: 'Borrussia Dortmund',
score: '4:0',
scored: ['Lewandowski', 'Gnarby', 'Lewandowski', 'Hummels'],
date... | [
{
"answer_id": 74344952,
"author": "treuss",
"author_id": 19838568,
"author_profile": "https://Stackoverflow.com/users/19838568",
"pm_score": 1,
"selected": false,
"text": "dict.get None created = item.get(\"created\", \"2020-01-01 00:00:00.000 +0000 UTC\")\n"
},
{
"answer_id": 7... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16703892/"
] |
74,344,911 | <p>I have a nested object that looks like:</p>
<pre><code>public record Options
{
public BatterySettings BatterySettings { get; init; } = new();
public LogSettings LogSettings { get; init; } = new();
}
public record LogSettings
{
public string SourceName { get; init; } = "Default";
}
public rec... | [
{
"answer_id": 74344952,
"author": "treuss",
"author_id": 19838568,
"author_profile": "https://Stackoverflow.com/users/19838568",
"pm_score": 1,
"selected": false,
"text": "dict.get None created = item.get(\"created\", \"2020-01-01 00:00:00.000 +0000 UTC\")\n"
},
{
"answer_id": 7... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7096815/"
] |
74,344,912 | <p>I have been trying to wrap my head around this problem which probably has a very easy solution.
I am running a bioinformatics workflow where I have one file as input and I want to run a program on it. However I want that program to be run with multiple parameters. Let me explain.</p>
<p>I have <code>file.fastq</code... | [
{
"answer_id": 74345029,
"author": "SultanOrazbayev",
"author_id": 10693596,
"author_profile": "https://Stackoverflow.com/users/10693596",
"pm_score": 2,
"selected": true,
"text": "params E = [0.1, 0.5]\nTRIM = [5, 0]\n\n\nrule all\n input: expand(\"../outputs/trim{TRIM}_error{E}/trim... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17523613/"
] |
74,344,955 | <p>I'm doing an API from a existing database (which means it's not an option to change de DB schema) with Django and rest_framework. I have 2 tables, Foos and Bars.</p>
<pre><code>foo_id
1
2
</code></pre>
<pre><code>bar_id | foo_id (FK)
1 |1
2 |2
</code></pre>
<p>Bars model:
<code>foo = models.ForeignKey('Foo... | [
{
"answer_id": 74345172,
"author": "mbofos01",
"author_id": 17790231,
"author_profile": "https://Stackoverflow.com/users/17790231",
"pm_score": 0,
"selected": false,
"text": "models.ForeignKey(\n Foos,\n on_delete=models.CASCADE,\n to_field='id'\n)\n"
},
{
"answer_id": 7... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19504779/"
] |
74,344,993 | <p>I am trying to check if the value entered in the text box matches the content of the combobox or not.
But the condition is not met with me.</p>
<pre><code>string Dnaam = tbAnimal.Text;
for (int i = 0; i < cmbAnimals.Items.Count; i++)
{
if (Dnaam == (cmbAnimals.Items.GetItemAt(i).ToString()))
{
Me... | [
{
"answer_id": 74345172,
"author": "mbofos01",
"author_id": 17790231,
"author_profile": "https://Stackoverflow.com/users/17790231",
"pm_score": 0,
"selected": false,
"text": "models.ForeignKey(\n Foos,\n on_delete=models.CASCADE,\n to_field='id'\n)\n"
},
{
"answer_id": 7... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20337469/"
] |
74,344,996 | <p>In an Angular 11 app, I have a simle service that mekes a <code>get</code> request and reads a JSON.</p>
<p>The service:</p>
<pre><code>import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Promo } from '../models/promo';
@Injectable({
providedIn: 'root'
})
expo... | [
{
"answer_id": 74345167,
"author": "Octavian Mărculescu",
"author_id": 1440005,
"author_profile": "https://Stackoverflow.com/users/1440005",
"pm_score": 1,
"selected": false,
"text": "isPromoProduct ngOnChanges @Input ChangeDetectorRef constructor(private cdr: ChangeDetectorRef) {}\n\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74344996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4512005/"
] |
74,345,019 | <p>I have this program with me. Where I am trying to concatenate a user input to a command, inorder to execute it in a wsl environment.</p>
<pre><code>#include<stdio.h>
#include<stdlib.h>
int main(){
char cmd[100];
char usr_in[50];
fgets(usr_in, sizeof(usr_in), stdin);
cmd = snprintf(cmd, ... | [
{
"answer_id": 74345167,
"author": "Octavian Mărculescu",
"author_id": 1440005,
"author_profile": "https://Stackoverflow.com/users/1440005",
"pm_score": 1,
"selected": false,
"text": "isPromoProduct ngOnChanges @Input ChangeDetectorRef constructor(private cdr: ChangeDetectorRef) {}\n\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17872702/"
] |
74,345,036 | <p>I have parallel API calls. How to continue getting data from one of them if second one failed?</p>
<pre><code>forkJoin([a,b])
.subscribe({
next: ((data) => {
const [first, second] = data;
})
</code></pre>
| [
{
"answer_id": 74345177,
"author": "Meddah Abdallah",
"author_id": 8208547,
"author_profile": "https://Stackoverflow.com/users/8208547",
"pm_score": 3,
"selected": true,
"text": "combineLatest([\n obs1$.pipe(catchError(() => of(null)),\n obs2$.pipe(catchError(() => of(null)),\n]).subsc... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10263768/"
] |
74,345,084 | <p><a href="https://i.stack.imgur.com/nEjBo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nEjBo.png" alt="enter image description here" /></a></p>
<p>How do I create a column in my dataframe called 'Yes Or No', where a '1' is input into each row where the "Date" column is between 01/01/20... | [
{
"answer_id": 74345136,
"author": "Bushmaster",
"author_id": 15415267,
"author_profile": "https://Stackoverflow.com/users/15415267",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\ndf['Date']=pd.to_datetime(df['Date'])\ndf['yes_or_no']=np.where((df['Date'] >= '01/01/2022'... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10094736/"
] |
74,345,088 | <p>I am getting an unexpected ItemGroup entry for each rename.</p>
<p>If I start with interface <code>public interface IDoStuff</code> and rename it to <code>IDoStuffRename</code> I get this in my csproj on save:</p>
<pre><code><ItemGroup>
<NativeLibs Remove="IDoStuffRename.cs" />
</ItemGrou... | [
{
"answer_id": 74345136,
"author": "Bushmaster",
"author_id": 15415267,
"author_profile": "https://Stackoverflow.com/users/15415267",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\ndf['Date']=pd.to_datetime(df['Date'])\ndf['yes_or_no']=np.where((df['Date'] >= '01/01/2022'... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5159468/"
] |
74,345,109 | <p>I need to extract the string between <code>CAKE_FROSTING("</code> and <code>",</code>. If the string extends over multiple lines, the quotation marks and newline at the line changes must be removed. I have a command (thanks stackoverflow) that does something in that direction, but not exactly. How can I fi... | [
{
"answer_id": 74345730,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -En ':a;N;s/.*CAKE_FROSTING\\(\\n?\\s\"([^\"]*[^\\n,]*)[\"].*\\n\"([[:alpha:] ]+)?.*/\\1 \\2/p;ba' input_... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19017877/"
] |
74,345,131 | <p>My App.js file code</p>
<pre><code>import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import {NavigationContainer} from '@react-navigation/native'
import {createNativeStackNavigator} from '@react-navigation/native-stack'
import HomeScreen from './components/HomeScreen... | [
{
"answer_id": 74345730,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -En ':a;N;s/.*CAKE_FROSTING\\(\\n?\\s\"([^\"]*[^\\n,]*)[\"].*\\n\"([[:alpha:] ]+)?.*/\\1 \\2/p;ba' input_... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3305642/"
] |
74,345,170 | <p>I have a table, it has these columns:</p>
<pre><code> id | tx_hash | tx_status | created_at
----------+---------+-----------+---------------------------
15000000 | 0x0011 | 0 | 2021-07-30 06:42:00.267694
15000001 | 0x0011 | 0 | 2021-07-30 06:42:00.267694
15000002 | 0x0011 | 0 | 20... | [
{
"answer_id": 74351078,
"author": "SQLpro",
"author_id": 12659872,
"author_profile": "https://Stackoverflow.com/users/12659872",
"pm_score": 0,
"selected": false,
"text": "CREATE INDEX X \n ON pool_transaction_entries (tx_status, id) \n INCLUDE (tx_hash, created_at);\n"
},
{
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445908/"
] |
74,345,176 | <p>I wanted to execute a simple Instruction from the click event of the button but it indicates a lot of errors to me and I cannot understand the problem. I have tried to do as explained in the React site guide but it's not good anyway. Here is the code.
Could you help me? Is the syntax actually wrong?</p>
<p>The error... | [
{
"answer_id": 74345267,
"author": "T.J. Crowder",
"author_id": 157247,
"author_profile": "https://Stackoverflow.com/users/157247",
"pm_score": 2,
"selected": false,
"text": "click App const click = ___ { => const { useState } = React;\n\n/*export*/ const App = () => { // <== Need full f... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439107/"
] |
74,345,187 | <p>How can I disable the developer tools for a Maui WebView control ? With Xamarin WebView2 it is quite easy with CoreWebView2.Settings.AreDevToolsEnabled.</p>
<p>In fact, I believe at least on Windows, the Maui WebView is based on CoreWebView2. Is there a way to access the CoreWebView2.Settings directly ?</p>
<p>Th... | [
{
"answer_id": 74354933,
"author": "Liyun Zhang - MSFT",
"author_id": 17455524,
"author_profile": "https://Stackoverflow.com/users/17455524",
"pm_score": 1,
"selected": false,
"text": "WebView WebView2 <WebView x:Name=\"webview\" .../>\n #if WINDOWS\n (webview.Handler.PlatformView as M... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7324528/"
] |
74,345,214 | <p>I'm trying to add some div containers to an html file. I figure there are two sets of logic.<br />
<strong>First</strong> is to look for a string at position X, then insert <code><div ...></code> at the end of the line. I have this working.<br />
<strong>Second</strong> set of logic is to look for string at po... | [
{
"answer_id": 74354933,
"author": "Liyun Zhang - MSFT",
"author_id": 17455524,
"author_profile": "https://Stackoverflow.com/users/17455524",
"pm_score": 1,
"selected": false,
"text": "WebView WebView2 <WebView x:Name=\"webview\" .../>\n #if WINDOWS\n (webview.Handler.PlatformView as M... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6071696/"
] |
74,345,227 | <p>I updated MVC3 to MVC4, since then I get lots of problems when I try to upload new version on iis servers
<a href="https://i.stack.imgur.com/FDugx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FDugx.png" alt="this is what I get on server when I run it locally" /></a></p>
<p>if for example I will... | [
{
"answer_id": 74354933,
"author": "Liyun Zhang - MSFT",
"author_id": 17455524,
"author_profile": "https://Stackoverflow.com/users/17455524",
"pm_score": 1,
"selected": false,
"text": "WebView WebView2 <WebView x:Name=\"webview\" .../>\n #if WINDOWS\n (webview.Handler.PlatformView as M... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20438983/"
] |
74,345,242 | <p>I'm trying to calculate the total price of my cart. It works when I only select the same product but when I chose another product it just multiplies the number of clicks to the total price. How can I rewrite this so it doesn't multiply the amount of clicks?
GIF of my problem: <a href="https://gyazo.com/c273f1d8a3caa... | [
{
"answer_id": 74345690,
"author": "Skip",
"author_id": 13149335,
"author_profile": "https://Stackoverflow.com/users/13149335",
"pm_score": 3,
"selected": true,
"text": "totalSum() sum let sum = 0 Object.keys(localStorage).forEach(function (key) { function totalSum() {\n cartPrice = doc... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20240192/"
] |
74,345,261 | <p>How to count how many times even numbers in row?
For example: 3, 6, 8, 1, 4, 7, 3, 7, 4, 2 (should be '2' = two times even numbers in row - 6,8 and 4,2.</p>
<pre><code>s = [3, 6, 8, 1, 4, 7, 3, 7, 4, 2]
print(len([i for i in s if i % 2 == 0]))
</code></pre>
<p>This one gives how many times (5) even numbers in genera... | [
{
"answer_id": 74345348,
"author": "assume_irrational_is_rational",
"author_id": 11622508,
"author_profile": "https://Stackoverflow.com/users/11622508",
"pm_score": -1,
"selected": false,
"text": "itertools.groupby from itertools import groupby\ns = [3, 6, 8, 1, 4, 7, 3, 7, 4, 2]\nlen(li... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20280838/"
] |
74,345,265 | <p>When I include an external library using Qt Creator, it adds something like the following to my <code>.pro</code> file:</p>
<pre><code>win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build-mylibrary-Desktop_Qt_5_15_1_MSVC2019_64bit-Release/mylibrary/release/ -lmylibrary
else:win32:CONFIG(debug, debug|... | [
{
"answer_id": 74345348,
"author": "assume_irrational_is_rational",
"author_id": 11622508,
"author_profile": "https://Stackoverflow.com/users/11622508",
"pm_score": -1,
"selected": false,
"text": "itertools.groupby from itertools import groupby\ns = [3, 6, 8, 1, 4, 7, 3, 7, 4, 2]\nlen(li... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1447002/"
] |
74,345,298 | <p>I've tried so many different solutions, but cannot find the one that would work. I have an array of anecdotes and an array of votes that coincide with each anecdote. I can display the selected matching anecdote and vote, but have been unable to increase by 1 the selected/displayed vote for its respective anecdote. H... | [
{
"answer_id": 74345574,
"author": "ncpa0cpl",
"author_id": 8907391,
"author_profile": "https://Stackoverflow.com/users/8907391",
"pm_score": 0,
"selected": false,
"text": "setVotes setVotes const voteClick = (selected) => {\n const newVotesDict = {...votes};\n newVotesDict[selected] +... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439240/"
] |
74,345,301 | <p>How to get Element ID in schedules with c# and revit API? similar to this video with Dynamo - <a href="https://youtu.be/U-tVoCYilxo" rel="nofollow noreferrer">https://youtu.be/U-tVoCYilxo</a> - but with c# and revit api.</p>
<p>When I execute my code, the third column doesn't appear and I get only two columns with ... | [
{
"answer_id": 74345574,
"author": "ncpa0cpl",
"author_id": 8907391,
"author_profile": "https://Stackoverflow.com/users/8907391",
"pm_score": 0,
"selected": false,
"text": "setVotes setVotes const voteClick = (selected) => {\n const newVotesDict = {...votes};\n newVotesDict[selected] +... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439266/"
] |
74,345,328 | <p>We are seeing the NPE in the LinuxNetworkParams.getDomainName call in oshi version 6.1.6. Although I am not able to see any reason for this. Can anyone help me when with the reasons why this can throw NPE?</p>
<pre><code>Caused by: java.lang.NullPointerException
at oshi.software.os.linux.LinuxNetworkParams.getDomain... | [
{
"answer_id": 74345574,
"author": "ncpa0cpl",
"author_id": 8907391,
"author_profile": "https://Stackoverflow.com/users/8907391",
"pm_score": 0,
"selected": false,
"text": "setVotes setVotes const voteClick = (selected) => {\n const newVotesDict = {...votes};\n newVotesDict[selected] +... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6552317/"
] |
74,345,359 | <p>What is current Toolversion for MS Build ToolVerions for VS2022 and what would be Framework version for .NetFramework. what is the version i can see in CsProj in project</p>
<p>Visual Studio 2022 ToolVersion in Csproj for .NetFrameWork</p>
| [
{
"answer_id": 74345574,
"author": "ncpa0cpl",
"author_id": 8907391,
"author_profile": "https://Stackoverflow.com/users/8907391",
"pm_score": 0,
"selected": false,
"text": "setVotes setVotes const voteClick = (selected) => {\n const newVotesDict = {...votes};\n newVotesDict[selected] +... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15914005/"
] |
74,345,371 | <p>I start to use the R package <a href="https://klmr.me/box/index.html" rel="nofollow noreferrer">box</a>, but struggle during development of nested dependencies.</p>
<h2>Setup</h2>
<p>Usually I develop a first function <code>helper.R</code>:</p>
<pre><code># helper.R
helper <- function(i) {
return(paste("he... | [
{
"answer_id": 74358076,
"author": "Daniel M Bader",
"author_id": 19135561,
"author_profile": "https://Stackoverflow.com/users/19135561",
"pm_score": 0,
"selected": false,
"text": "box::use() search() ls() r$> search()\n [1] \".GlobalEnv\" \"mod:./helper\" \"tools:vscode\" ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19135561/"
] |
74,345,442 | <p><strong>This is my code</strong></p>
<pre><code>from tkinter import *
import random
import time
def create_circles():
for i in range(10):
x0 = random.randint(50, 550)
y0 = random.randint(50, 550)
i=40
colors = ["red", "blue", "purple", "gree... | [
{
"answer_id": 74358076,
"author": "Daniel M Bader",
"author_id": 19135561,
"author_profile": "https://Stackoverflow.com/users/19135561",
"pm_score": 0,
"selected": false,
"text": "box::use() search() ls() r$> search()\n [1] \".GlobalEnv\" \"mod:./helper\" \"tools:vscode\" ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20438474/"
] |
74,345,451 | <p>I am having some issues with the textfield not moving up with the view.</p>
<p>I am using a textfield with Vertical axis (iOS 16) to create the multiline. This works correctly and stays above the keyboard as expected when it is not embedded in a scrollview. But as soon as the textfield is embedded in the scrollview ... | [
{
"answer_id": 74393272,
"author": "Allan Garcia",
"author_id": 1636456,
"author_profile": "https://Stackoverflow.com/users/1636456",
"pm_score": 1,
"selected": false,
"text": "import SwiftUI\n\nstruct ContentView: View {\n \n @State private var text = \"Lorem ipsum dolor sit amet.... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11388224/"
] |
74,345,464 | <p>I don't have any errors, nor on client or server. To give you more context I'm creating a login form, I'm trying to prevent the user from authenticate himself if the text he typed on the input fields are corrects. If it's not correct, the user should not be redirected to the route (which has the name "authentic... | [
{
"answer_id": 74393272,
"author": "Allan Garcia",
"author_id": 1636456,
"author_profile": "https://Stackoverflow.com/users/1636456",
"pm_score": 1,
"selected": false,
"text": "import SwiftUI\n\nstruct ContentView: View {\n \n @State private var text = \"Lorem ipsum dolor sit amet.... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19233399/"
] |
74,345,465 | <p>I want to do a date comparison to check whether is the Before Period is bigger than After Periode
So far it has been working properly until the date range is a bit tricky</p>
<p>For example
The value is from a dropdownlist item
Before period is 21-10-2022
After period is 04-11-2022</p>
<p>It will trigger the error m... | [
{
"answer_id": 74345637,
"author": "Tim Schmelter",
"author_id": 284240,
"author_profile": "https://Stackoverflow.com/users/284240",
"pm_score": 1,
"selected": true,
"text": "DateTime.Parse Dim selectedValue1 = \"21-10-2022\"\nDim selectedValue2 = \"04-11-2022\"\nDim beforePeriod = Date.... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11188485/"
] |
74,345,509 | <h3>Description</h3>
<p>I have list of bigquery tables to be created using terraform but I need only the partition for specific tables.</p>
<p>Here is the ex.</p>
<pre><code>locals {
path = "../../../../../../../../db"
gcp_bq_tables = [
"my_table1",
"my_table1_daily&quo... | [
{
"answer_id": 74345637,
"author": "Tim Schmelter",
"author_id": 284240,
"author_profile": "https://Stackoverflow.com/users/284240",
"pm_score": 1,
"selected": true,
"text": "DateTime.Parse Dim selectedValue1 = \"21-10-2022\"\nDim selectedValue2 = \"04-11-2022\"\nDim beforePeriod = Date.... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17759607/"
] |
74,345,575 | <p>I have two dataframes</p>
<p>df1</p>
<pre><code> Date RPM
0 0 0
1 1 0
2 2 0
3 3 0
4 4 0
5 5 0
6 6 0
7 7 0
</code></pre>
<p>and df2</p>
<pre><code> Date RPM
0 0 0
1 2 2
2 4 4
3 6 6
</code></pre>
<p>I want to replace the RPM in df1 with the RPM in df2 where t... | [
{
"answer_id": 74345597,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": true,
"text": "Series.map Series df2 Series.fillna df1['RPM'] = df1['Date'].map(df2.set_index('Date')['RPM']).fillna(df1['RPM'])\n"
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439426/"
] |
74,345,579 | <p>I currently receive the following JSON body</p>
<pre class="lang-json prettyprint-override"><code>{
"productId": "90000011",
"offerId": "String",
"format": "String",
"sellerId": "String",
"sellerName": "... | [
{
"answer_id": 74345988,
"author": "Michael Gantman",
"author_id": 5802417,
"author_profile": "https://Stackoverflow.com/users/5802417",
"pm_score": 0,
"selected": false,
"text": "JsonUtils try {\n Map<String, Object> map = JsonUtils.readObjectFromJsonString(jsonStr, Map.class... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4614788/"
] |
74,345,596 | <p>I'm having hard time understanding OIDC that I'm asking here.</p>
<hr />
<h2><strong>[Current Understanding]</strong></h2>
<p><strong>ID Token (Based on JWT)</strong></p>
<p>[REQUIRED]</p>
<ul>
<li>iss (Issuer) : OPurl</li>
<li>sub (Subject Identifier) : unique identifier</li>
<li>aud (Audience) : Unique Client ID w... | [
{
"answer_id": 74345988,
"author": "Michael Gantman",
"author_id": 5802417,
"author_profile": "https://Stackoverflow.com/users/5802417",
"pm_score": 0,
"selected": false,
"text": "JsonUtils try {\n Map<String, Object> map = JsonUtils.readObjectFromJsonString(jsonStr, Map.class... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12198033/"
] |
74,345,614 | <p>How to create merge statment that insert into table from onther select statment</p>
<p>my example is :</p>
<pre><code> MERGE INTO employees t
USING (SELECT :dept_id as dept_id FROM dual ) d
ON (t.dept_id = d.dept_id )
WHEN NOT MATCHED THEN
INSERT INTO employees (
ename... | [
{
"answer_id": 74345988,
"author": "Michael Gantman",
"author_id": 5802417,
"author_profile": "https://Stackoverflow.com/users/5802417",
"pm_score": 0,
"selected": false,
"text": "JsonUtils try {\n Map<String, Object> map = JsonUtils.readObjectFromJsonString(jsonStr, Map.class... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17370829/"
] |
74,345,616 | <p>is there any solution to apply tint colour as a gradient in swift</p>
<p>my button has a simple white icon I want to change it to a gradient colour</p>
| [
{
"answer_id": 74358149,
"author": "Er.hiren",
"author_id": 15075298,
"author_profile": "https://Stackoverflow.com/users/15075298",
"pm_score": 0,
"selected": false,
"text": "class gradiunTitle : UIButton {\n\n override init(frame: CGRect) {\n super.init(frame: frame)\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12748393/"
] |
74,345,628 | <p>I am working on a recursive function that looks for the first odd number in a list. It works as expected.</p>
<p>But when there is NO odd number in a list, it returns an error. Id like to control this error with some sort of message that says "no odd values found".</p>
<h2>Single Test Recursion Function</h... | [
{
"answer_id": 74346497,
"author": "ignis volens",
"author_id": 17026934,
"author_profile": "https://Stackoverflow.com/users/17026934",
"pm_score": 3,
"selected": true,
"text": "(defun search-list-for (l ...)\n (cond ((null l)\n ...)\n (<(first l) is what we're after>\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16237416/"
] |
74,345,657 | <p>is there a way in python to tell the interpretes a bunch of statements should all be executed on the same object/namespace?</p>
<p>In some other languages you have constructs like</p>
<pre><code>using myObject{
.a = 1;
.b = 2;
.c = 3;
}
</code></pre>
<p>as shorthand notation for</p>
<pre><code>myObject.a... | [
{
"answer_id": 74346497,
"author": "ignis volens",
"author_id": 17026934,
"author_profile": "https://Stackoverflow.com/users/17026934",
"pm_score": 3,
"selected": true,
"text": "(defun search-list-for (l ...)\n (cond ((null l)\n ...)\n (<(first l) is what we're after>\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11190464/"
] |
74,345,673 | <p>I am trying to write assert command for a Fortran program, but the whole thing is driving me nuts. Allow me to show you what have up to now:</p>
<p>File: Assert.h:</p>
<pre><code>#define Assert(X) call Handle_Assert(.not.(X), #X, __FILE__, __LINE__)
</code></pre>
<p>File: Check_Assert.F90:</p>
<pre><code>#include &... | [
{
"answer_id": 74345960,
"author": "gnikit",
"author_id": 5648064,
"author_profile": "https://Stackoverflow.com/users/5648064",
"pm_score": 2,
"selected": false,
"text": "#X module Assert_Mod\n\ncontains\n \n subroutine Handle_Assert(fail, file, line)\n logical, intent(in) ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8178020/"
] |
74,345,727 | <p>I want to have a sas dataset with 1 decimal of some variables, so my code is the following</p>
<pre><code>data a;
set a;
dif=put(t0d,4.1);
drop t0d;
run;
</code></pre>
<p>Although in some cases with the dif variable I don't have this format. For example I have</p>
<pre><code>dif
-1.0
-9
15.0
2
3.0
5.... | [
{
"answer_id": 74346772,
"author": "Negdo",
"author_id": 19646183,
"author_profile": "https://Stackoverflow.com/users/19646183",
"pm_score": 0,
"selected": false,
"text": "DATA have;\ninput x $; \ndatalines;\n8722\n-93.2\n-0.1122\n15.116\n5\n1.5\n;\nrun;\n\ndata want;\n set have;\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20238328/"
] |
74,345,757 | <p>I have a data frame with duplicated rows having one continuous variable column and 2-factor columns (0,1). The goal is to find the duplicated rows and identify them as replicates in a new column.</p>
<p>Here is the structure of the data frame</p>
<pre><code> cont.var fact1 fact2
1 1.0 1 0
2 1.0 ... | [
{
"answer_id": 74345783,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 2,
"selected": false,
"text": "data.table::rleid library(dplyr)\ndf %>% \n mutate(rleid = data.table::rleid(cont.var, fact1, fact2))\n\n cont.var ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8791858/"
] |
74,345,770 | <p>I am trying to take values from a DB table where It has keys as enabled and values as true, false and empty, I want to take only True values from enabled keys and other keys and rows related to it.</p>
<p>Table</p>
<pre><code> id name enabled dept
1 abd TRUE cs
2 cdew FALSE ds
... | [
{
"answer_id": 74351849,
"author": "Lee Hannigan",
"author_id": 7909676,
"author_profile": "https://Stackoverflow.com/users/7909676",
"pm_score": 1,
"selected": false,
"text": "enabled enabled Scan id(pk) enabled(sk) name dept\n 1 TRUE abd cs\n 4 TRUE asd ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11867978/"
] |
74,345,819 | <p>I have a POST table and a TAG table, I explain the POST table contains following fields : id , title , content , tags_ids which mean that the field tags_ids can contani multiple tags , for example the POST whose ID = 1, has following tags : tag_1, tag_2 tag_5 separated with ;</p>
<p>POST TABLE</p>
<pre><code> id ... | [
{
"answer_id": 74351849,
"author": "Lee Hannigan",
"author_id": 7909676,
"author_profile": "https://Stackoverflow.com/users/7909676",
"pm_score": 1,
"selected": false,
"text": "enabled enabled Scan id(pk) enabled(sk) name dept\n 1 TRUE abd cs\n 4 TRUE asd ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19974817/"
] |
74,345,840 | <p>I am trying to push my data into SQL but it keeps telling me that one of my columns is an invalid data type float.</p>
<pre><code>sqlalchemy.exc.ProgrammingError: (pyodbc.ProgrammingError) ('42000', '[42000] [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]The incoming tabular data stream (TDS) remote procedure... | [
{
"answer_id": 74351849,
"author": "Lee Hannigan",
"author_id": 7909676,
"author_profile": "https://Stackoverflow.com/users/7909676",
"pm_score": 1,
"selected": false,
"text": "enabled enabled Scan id(pk) enabled(sk) name dept\n 1 TRUE abd cs\n 4 TRUE asd ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18245053/"
] |
74,345,850 | <p>In this problem, I'm given an array(list) <code>strarr</code> of strings and an integer k. My task is to return the first longest string consisting of k consecutive strings taken in the array. My code passed all the sample tests from CodeWars but can't seem to pass the random tests.</p>
<p><a href="https://www.codew... | [
{
"answer_id": 74346471,
"author": "bwilk315",
"author_id": 20438342,
"author_profile": "https://Stackoverflow.com/users/20438342",
"pm_score": 1,
"selected": false,
"text": "if k == 1:\n while(p <= 1):\n b.append(strarr[j:i])\n j += 1\n i += 1\n p += 1\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16579484/"
] |
74,345,864 | <p><a href="https://i.stack.imgur.com/zOxjt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zOxjt.png" alt="enter image description here" /></a></p>
<p>I need to add buttons and icons like this.</p>
<pre><code>I need to add multiple icons and button in List
import 'package:flutter/material.dart';
im... | [
{
"answer_id": 74346471,
"author": "bwilk315",
"author_id": 20438342,
"author_profile": "https://Stackoverflow.com/users/20438342",
"pm_score": 1,
"selected": false,
"text": "if k == 1:\n while(p <= 1):\n b.append(strarr[j:i])\n j += 1\n i += 1\n p += 1\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20407300/"
] |
74,345,871 | <p>I already have a css hover where when hovering over someones name, a card to the side appears with more information about that user.</p>
<p>Is it possible to have another hover on top of the first hover? So another card appears with even more information.</p>
<p>Name (hover on name) > d.o.b, address , etc (hover ... | [
{
"answer_id": 74346471,
"author": "bwilk315",
"author_id": 20438342,
"author_profile": "https://Stackoverflow.com/users/20438342",
"pm_score": 1,
"selected": false,
"text": "if k == 1:\n while(p <= 1):\n b.append(strarr[j:i])\n j += 1\n i += 1\n p += 1\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439616/"
] |
74,345,907 | <p>I have a dataframe with the sentences column and a column with a word present in the sentences.I want to string match the word to the word in the sentences column and create a data frame by splitting the sentences into two different sentences and placing them into separate columns as mentioned below.</p>
<p>I have d... | [
{
"answer_id": 74346471,
"author": "bwilk315",
"author_id": 20438342,
"author_profile": "https://Stackoverflow.com/users/20438342",
"pm_score": 1,
"selected": false,
"text": "if k == 1:\n while(p <= 1):\n b.append(strarr[j:i])\n j += 1\n i += 1\n p += 1\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15444339/"
] |
74,345,934 | <p>I have an array like this:</p>
<pre><code>$datas = array(54,12,61,98,88,
92,45,22,13,36);
</code></pre>
<p>I want to write a loop which can deduct values of an array like below and show it with echo:</p>
<pre><code>$datas[5]-$datas[0] for this line the result will be 92-54 "38"
$datas[6]-... | [
{
"answer_id": 74346073,
"author": "trckster",
"author_id": 8896838,
"author_profile": "https://Stackoverflow.com/users/8896838",
"pm_score": 2,
"selected": false,
"text": "<?php\n\n$data = [\n 54, 12, 61, 98, 88,\n 92, 45, 22, 13, 36\n];\n\n$offset = 5;\n\nfor ($i = 0; $i + $offse... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19844731/"
] |
74,345,948 | <p>I have a list of order items with the given structure :</p>
<pre><code>OrderItem { Id = 1, Name = "First Item", Quantity = 2 }
OrderItem { Id = 2, Name = "Second Item", Quantity = 2 }
OrderItem { Id = 3, Name = "Third Item", Quantity = 1 }
</code></pre>
<p>I want to flatten it to the fo... | [
{
"answer_id": 74346070,
"author": "Svyatoslav Danyliv",
"author_id": 10646316,
"author_profile": "https://Stackoverflow.com/users/10646316",
"pm_score": 3,
"selected": true,
"text": "Enumerable.Range var dbItems = orderItems\n .OrderBy(oi => oi.Id) // ensure correct order\n .Selec... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13352466/"
] |
74,345,962 | <p>I want to get the <strong>number of results of a query</strong> in Spring Data Jpa, using a <strong>non-native</strong> <code>@Query</code> method. It consists of a basic group by plus a having clause.</p>
<p>My plain query looks like this (analogous example):</p>
<pre><code>select count(*) from (
select 1 from ... | [
{
"answer_id": 74500284,
"author": "Pierre Demeestere",
"author_id": 19868455,
"author_profile": "https://Stackoverflow.com/users/19868455",
"pm_score": 0,
"selected": false,
"text": "Query q = em.createQuery(\n \"select 1 from table t where field_a = 1 \" +\n \"group by t.... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3214777/"
] |
74,345,965 | <p>In a Laravel project I have to store some data in json. For phpUnit tests I use a factory with faker. I try to fake a json structure for the tests, but it always fail on validation. Is there any proper way to create a json in factory that passes the validation for json?</p>
<p>I tried a simple json array, and the js... | [
{
"answer_id": 74346854,
"author": "Flame",
"author_id": 1346367,
"author_profile": "https://Stackoverflow.com/users/1346367",
"pm_score": 0,
"selected": false,
"text": "array SomeModel extends Model\n{\n protected $casts = [\n 'settings' => 'array',\n ];\n}\n"
},
{
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11071718/"
] |
74,345,992 | <p>In prisma, I want to check if the data for specific user's exists, if so, pass, if data not exists, process and add the data. How can I do this?</p>
<pre><code> const users = await prisma.user.findUnique({
where: {
email: session.user.email
},
wallet: {
contains: &... | [
{
"answer_id": 74354971,
"author": "Hoàng Huy Khánh",
"author_id": 9711476,
"author_profile": "https://Stackoverflow.com/users/9711476",
"pm_score": 0,
"selected": false,
"text": " const user = await prisma.users.findFirst({\n where: {\n email: session.user.email,\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74345992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6894661/"
] |
74,346,000 | <p>I specalized <code>QApplication</code> as <code>MyApplication</code> taking an <code>int</code> parameter for construction.</p>
<pre><code>class MyApplication : public QApplication
{
public:
Foo( int argc, char **argv ) : QApplication( argc, argv )
{
...
}
};
</code></pre>
<p>This class is again ... | [
{
"answer_id": 74346113,
"author": "Sam Varshavchik",
"author_id": 3943312,
"author_profile": "https://Stackoverflow.com/users/3943312",
"pm_score": 3,
"selected": false,
"text": "MyApplication( int &argc, char **argv, int ignore ) : QApplication( argc, argv )\n 0"
},
{
"answer_i... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3336423/"
] |
74,346,041 | <p>First time when web application loads, <code>app.component</code> is getting called and <code>navigationbar #1</code> showing up. Now when user login I want to load <code>navigationbar #2</code> from <code>app.component</code> (or let <code>app.component</code> UI know that user has logged in) so that <code>ng-templ... | [
{
"answer_id": 74346113,
"author": "Sam Varshavchik",
"author_id": 3943312,
"author_profile": "https://Stackoverflow.com/users/3943312",
"pm_score": 3,
"selected": false,
"text": "MyApplication( int &argc, char **argv, int ignore ) : QApplication( argc, argv )\n 0"
},
{
"answer_i... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8977696/"
] |
74,346,060 | <p>I'm working on a PowerShell script to assign users office 365 license based on group (security group). So, i have created app registration and assigned the required API permissions.</p>
<p>When I try to run my script, i get the error below</p>
<pre><code>Invoke-RestMethod : The remote server returned an error: (400)... | [
{
"answer_id": 74346375,
"author": "user2250152",
"author_id": 2250152,
"author_profile": "https://Stackoverflow.com/users/2250152",
"pm_score": 2,
"selected": true,
"text": "addLicenses Group.ReadWrite.All Directory.ReadWrite.All {\n \"addLicenses\": [\n {\n \"skuId\": \"cbdc14... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16997421/"
] |
74,346,078 | <h1>Problem</h1>
<p>I have a list of around ~1000 <a href="https://en.wikipedia.org/wiki/Honorific" rel="nofollow noreferrer">honorifics</a>, see below for a sample.</p>
<p>Given an input string of a name, for example <code>"her majesty queen elizabeth windsor"</code>, the function should return <code>"e... | [
{
"answer_id": 74346375,
"author": "user2250152",
"author_id": 2250152,
"author_profile": "https://Stackoverflow.com/users/2250152",
"pm_score": 2,
"selected": true,
"text": "addLicenses Group.ReadWrite.All Directory.ReadWrite.All {\n \"addLicenses\": [\n {\n \"skuId\": \"cbdc14... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2205969/"
] |
74,346,094 | <p>I am trying to create a basic calculator where I have a string for inputs..</p>
<p>like user has inputed 79+93-27,</p>
<p>Here I want to set black colour for digits and red for operators...</p>
<p>this is my code to explain what I want</p>
<p>this is a part of my code , and I don't want to change any kind of variabl... | [
{
"answer_id": 74346285,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "RegExp RichText class MyApp extends StatelessWidget {\n MyApp({Key? key}) : super(key: key);\n\n String input... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18817235/"
] |
74,346,173 | <p>I am trying to create a POST endpoint which receives a ClassB. This class is a subtype of an abstract class ClassA, and there is another ClassC which is a subclass from ClassA.
This is like that, because ClassB has a collection of ClassA, so ClassB can contain multiple ClassB or ClassC.</p>
<p>The problem is that I ... | [
{
"answer_id": 74346285,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "RegExp RichText class MyApp extends StatelessWidget {\n MyApp({Key? key}) : super(key: key);\n\n String input... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4930717/"
] |
74,346,177 | <p>I'm building a react-electron app. I created a custom window header but I can't access app.quit() & a.*() in my project.</p>
<p>app.js(react):</p>
<pre><code>i tried both type :
</code></pre>
<p>1.import electron from "electron";
2.const electron = require('electron')</p>
<pre><code>
<div onClick={... | [
{
"answer_id": 74346285,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "RegExp RichText class MyApp extends StatelessWidget {\n MyApp({Key? key}) : super(key: key);\n\n String input... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439588/"
] |
74,346,190 | <p>The command I'm inputting into pmc is
<code>Scaffold-DbContext "DataSource=C:\SQLite\Databases\Ticket0.db3" Microsoft.EntityFrameworkCore.Sqlite -OutputDir C:\WPFTutorials\TicketEF\TicketEF\DB -context TicketContext -force</code>
I've checked and double checked the data source, but it only generates a gene... | [
{
"answer_id": 74346285,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "RegExp RichText class MyApp extends StatelessWidget {\n MyApp({Key? key}) : super(key: key);\n\n String input... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20284242/"
] |
74,346,199 | <p>I want to create a GUI, without Tkinter or any other library (preferably in Windows and CPython).</p>
<p>Basically, if you go into the files of Python and its libraries, you can find the functions of the libraries. An example is the <code>randint</code> function of the <code>random</code> library:</p>
<pre><code>def... | [
{
"answer_id": 74346285,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "RegExp RichText class MyApp extends StatelessWidget {\n MyApp({Key? key}) : super(key: key);\n\n String input... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16096769/"
] |
74,346,206 | <p>When trying to run my react native app on android, I get this error:</p>
<p>FAILURE: Build failed with an exception.</p>
<p>What went wrong:
Execution failed for task ':@react-native-firebase_app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.</p>
<p>Build failed error
<a h... | [
{
"answer_id": 74346417,
"author": "Shivam",
"author_id": 8709100,
"author_profile": "https://Stackoverflow.com/users/8709100",
"pm_score": 4,
"selected": true,
"text": "android/build.gradle def REACT_NATIVE_VERSION = new File(['node', '--print',\"JSON.parse(require('fs').readFileSync(re... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15528101/"
] |
74,346,214 | <p>I want to persist value after user leaves page, also I would like to persist selected values, so I found out shared prefernces and I save it locally, but when I left page and return it remains unselected.</p>
<p>So I decided to convert my multipleSelected list to String, because sharedprefernces can't save list of i... | [
{
"answer_id": 74346417,
"author": "Shivam",
"author_id": 8709100,
"author_profile": "https://Stackoverflow.com/users/8709100",
"pm_score": 4,
"selected": true,
"text": "android/build.gradle def REACT_NATIVE_VERSION = new File(['node', '--print',\"JSON.parse(require('fs').readFileSync(re... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16357470/"
] |
74,346,237 | <p>I am currently struggling to get a function working with a button that has an onclick event to toggle a class. Please can you review the code and help me understand why it is needing two clicks and how to fix it.</p>
<pre class="lang-js prettyprint-override"><code>function dropdownbuttonclick(element) {
let coll =... | [
{
"answer_id": 74346341,
"author": "Rory McCrossan",
"author_id": 519413,
"author_profile": "https://Stackoverflow.com/users/519413",
"pm_score": 1,
"selected": true,
"text": "this window onclick jQuery($ => {\n $(document).on('click', '.dropdown', e => {\n const $dd = $(e.currentTar... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439903/"
] |
74,346,248 | <p>I wanted to change my array of object to different format</p>
<p>I have below output,</p>
<pre><code>let result = [
{
"team_details_id": 1,
"team_name": "Avengers",
"team_description": null,
"date_created": "2022-11-03T09:31:... | [
{
"answer_id": 74346341,
"author": "Rory McCrossan",
"author_id": 519413,
"author_profile": "https://Stackoverflow.com/users/519413",
"pm_score": 1,
"selected": true,
"text": "this window onclick jQuery($ => {\n $(document).on('click', '.dropdown', e => {\n const $dd = $(e.currentTar... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439375/"
] |
74,346,255 | <p>When trying static data the slider works fine but when I get my data from an API the design breaks down into a list and the slider stops working.
The slider implementation is as follows:</p>
<p>js</p>
<pre><code> $(".feedback-slider").bxSlider({
slideWidth: 177,
minSlides: 1,
maxSli... | [
{
"answer_id": 74346360,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 1,
"selected": false,
"text": "feedback-slider useEffect refs li li"
},
{
"answer_id": 74347671,
"author": "Nicolas Goudry",
"author... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20290198/"
] |
74,346,276 | <p>I have a textfield and i want to ensure the data or entry is not more than the intended value.example "the value to be entered should not be more than $4000".</p>
<p>i did some research but i still have been able to solve the problem.</p>
<p>`</p>
<pre><code>TextFormField(
... | [
{
"answer_id": 74346360,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 1,
"selected": false,
"text": "feedback-slider useEffect refs li li"
},
{
"answer_id": 74347671,
"author": "Nicolas Goudry",
"author... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6143170/"
] |
74,346,287 | <p>I currently running a code generating a heatmap with a list of specific genes for different cell type. Each gene is classified in a specified category (A, B, C, etc). In my heatmap function (pheatmap package), I can put "breaks" with a vector of number specifying the row where the break has to be made.</p>... | [
{
"answer_id": 74346360,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 1,
"selected": false,
"text": "feedback-slider useEffect refs li li"
},
{
"answer_id": 74347671,
"author": "Nicolas Goudry",
"author... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14529546/"
] |
74,346,290 | <p>So I encountered this weird issue that is self explanatory in this photo:<a href="https://i.stack.imgur.com/WZfOa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WZfOa.png" alt="C++ program" /></a></p>
<p>In the first 8 lines, I used a variable called <code>classwidth</code> to add increments to l... | [
{
"answer_id": 74346517,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": false,
"text": "double start = 18.75, end = 32.17;\nfor (int n = 0; n < k; ++n)\n{\n l = start + (end-start)*n/k;\n cou... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8371638/"
] |
74,346,292 | <p>I made three conditional selections on my dataframe. So lets say:</p>
<pre><code>final_df[(final_df['acceptance_advice'] == 'standard') & (final_df['acceptance'] == 'ok')]
final_df[(final_df['acceptance_advice'] == 'not accepted') & (final_df['acceptance'] == 'ok')]
final_df[(final_df['acceptance_advice'] ==... | [
{
"answer_id": 74346517,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": false,
"text": "double start = 18.75, end = 32.17;\nfor (int n = 0; n < k; ++n)\n{\n l = start + (end-start)*n/k;\n cou... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439899/"
] |
74,346,350 | <p>I have a table such as follows:</p>
<pre><code>CREATE TABLE Associations (
obj_id int unsigned NOT NULL,
attr_id int unsigned NOT NULL,
assignment Double NOT NULL
PRIMARY KEY (`obj_id`, `attr_id`),
);
</code></pre>
<p>Now the insertion order for the rows is/will be random. Would such a definition lead to fra... | [
{
"answer_id": 74346517,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": false,
"text": "double start = 18.75, end = 32.17;\nfor (int n = 0; n < k; ++n)\n{\n l = start + (end-start)*n/k;\n cou... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9055634/"
] |
74,346,364 | <p>I'm trying to capture ID scan using MicroBlink BlinkID library
I need to get both:</p>
<ol>
<li>processed , cropped unskewed image from front and back of the ID</li>
<li>unprocessed raw UIImage of which front picture was processed out.</li>
</ol>
<p><code>returnFullDocumentImage</code> and <code>encodeFullDocumentIm... | [
{
"answer_id": 74346517,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": false,
"text": "double start = 18.75, end = 32.17;\nfor (int n = 0; n < k; ++n)\n{\n l = start + (end-start)*n/k;\n cou... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/399021/"
] |
74,346,383 | <p><strong>TemplateSyntaxError at /challeges/1</strong></p>
<p>Could not parse the remainder: ':' from '1:'</p>
<p>This is my <strong>challege.html</strong></p>
<pre><code>{% if month == 1: %}
<h1>This is {{ text }}</h1>
{% else: %}
<p>This is {{ text }}</p>
{% endif %}
</code></pre>
<p>This is ... | [
{
"answer_id": 74346438,
"author": "TrueGopnik",
"author_id": 16494437,
"author_profile": "https://Stackoverflow.com/users/16494437",
"pm_score": 2,
"selected": true,
"text": "{% if month == 1 %}\n <h1>This is {{ text }}</h1>\n{% else %}\n <p>This is {{ text }}</p>\n{% endif %}\n"
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16527878/"
] |
74,346,397 | <p>I want to extract one key out of my dictionary where the value is >= 0.05. My dictionary looks like this</p>
<pre><code>{'Bed_to_Toilet': 0.5645161290322581,
'Sleep': 0.016129032258064516,
'Morning_Meds': 0.03225806451612903,
'Watch_TV': 0.0,
'Kitchen_Activity': 0.04838709677419355,
'Chores': 0.0,
'Leave_Ho... | [
{
"answer_id": 74346601,
"author": "Thomas Kimber",
"author_id": 4137061,
"author_profile": "https://Stackoverflow.com/users/4137061",
"pm_score": 2,
"selected": true,
"text": "candidate_list = [k for k,v in startActModel.items() if v >= 0.05]\n random.choice mykey = random.choice(candid... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20071282/"
] |
74,346,402 | <p>Example: Below is the string(sentence) in field and I want to extract the specific data from the below patterns using select query in different fields:</p>
<p>i )</p>
<p>Input :
/a03/infor/current/server/infa_sh/ScriptFil/infa_common/adap_main <strong>'FI_RE_PRJ' 'wf_RE_ACC_TIE_HIS_MNT_EN_AM'</strong></p>
<p>Output ... | [
{
"answer_id": 74346601,
"author": "Thomas Kimber",
"author_id": 4137061,
"author_profile": "https://Stackoverflow.com/users/4137061",
"pm_score": 2,
"selected": true,
"text": "candidate_list = [k for k,v in startActModel.items() if v >= 0.05]\n random.choice mykey = random.choice(candid... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11591428/"
] |
74,346,432 | <pre class="lang-py prettyprint-override"><code>players_list = [a,b,c,d,e]
scores_list = [1,2,3,4,5]
</code></pre>
<p>I want the output to be like:</p>
<pre><code>"-a_____________1-"
"-b_____________2-"
"-c_____________3_"
</code></pre>
<p>and so on</p>
<p>I have tried using a nested lo... | [
{
"answer_id": 74346544,
"author": "Roland",
"author_id": 20440021,
"author_profile": "https://Stackoverflow.com/users/20440021",
"pm_score": 1,
"selected": false,
"text": "players_list = ['a','b','c','d','e']\nscores_list = [1,2,3,4,5]\nfor p, s in zip(players_list, scores_list):\n p... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18392111/"
] |
74,346,440 | <p>I have got some data from a website. But it has a problem. It has only one column, which contains all the data, which should be in different columns. And it also has implicit missing values. The original data is like</p>
<pre><code>structure(list(original_data = c("Title1", "Authors1", "Refe... | [
{
"answer_id": 74346577,
"author": "Anoushiravan R",
"author_id": 14314520,
"author_profile": "https://Stackoverflow.com/users/14314520",
"pm_score": 1,
"selected": false,
"text": "Abstract_data df %>%\n mutate(title = gsub('^([A-Z][a-z]+)(\\\\d+)(.*)', '\\\\1_data', original_data), \n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12806202/"
] |
74,346,450 | <p>Are the following two any different?</p>
<ol>
<li><p>Using <code>@Environment(\.managedObjectContext) private var moc</code></p>
</li>
<li><p>Calling <code>PersistentController.shared.container.viewContext</code> when the <code>PersistentController.shared</code> is a <code>static let</code> instance, i.e. <code>stat... | [
{
"answer_id": 74346577,
"author": "Anoushiravan R",
"author_id": 14314520,
"author_profile": "https://Stackoverflow.com/users/14314520",
"pm_score": 1,
"selected": false,
"text": "Abstract_data df %>%\n mutate(title = gsub('^([A-Z][a-z]+)(\\\\d+)(.*)', '\\\\1_data', original_data), \n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13286319/"
] |
74,346,457 | <p><a href="https://i.stack.imgur.com/9QBa9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9QBa9.png" alt="enter image description here" /></a></p>
<p>I wanted to get the value in column A which does not have a certain value on column B. For example, in this picture, given the set in column B when g... | [
{
"answer_id": 74346652,
"author": "Tom Sharpe",
"author_id": 3894917,
"author_profile": "https://Stackoverflow.com/users/3894917",
"pm_score": 3,
"selected": true,
"text": "=UNIQUE(FILTER(A1:A20,(COUNTIFS(A1:A20,A1:A20,B1:B20,4)=0)*(A1:A20<>\"\")))\n =UNIQUE(FILTER(A1:A20,(COUNTIFS(A1:A... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3959685/"
] |
74,346,459 | <p>I want to position my element according to top and not according to margin-top but the default is top = 0 and I try to change and fail only using br</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css ... | [
{
"answer_id": 74346813,
"author": "JKD",
"author_id": 14152908,
"author_profile": "https://Stackoverflow.com/users/14152908",
"pm_score": 0,
"selected": false,
"text": ".h1 {\n position: fixed; \n width: 100%;\n margin-top:100px;\n}\n top"
},
{
"answer_id": 74347037,... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19877456/"
] |
74,346,465 | <p>I have a list of 42 tasks. I represent that those tasks are complete with a date (date completed). I want to calculate the percentage of tasks completed in row 45, but the percetage of tasks complete keep getting mixed up witht he dates. The date is just when the task was completed, and I want to know the percent of... | [
{
"answer_id": 74346813,
"author": "JKD",
"author_id": 14152908,
"author_profile": "https://Stackoverflow.com/users/14152908",
"pm_score": 0,
"selected": false,
"text": ".h1 {\n position: fixed; \n width: 100%;\n margin-top:100px;\n}\n top"
},
{
"answer_id": 74347037,... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20439032/"
] |
74,346,554 | <p>I run Memgraph on Kubernetes using the sample service+deployment found in the memgraph/bolt-proxy repo. Unfortunately, that config doesn’t include a persistent volume claim. I'd like to keep Memgraph’s log and snapshots persistent in Kubernetes. How can I do that?</p>
| [
{
"answer_id": 74346555,
"author": "KWriter",
"author_id": 18781306,
"author_profile": "https://Stackoverflow.com/users/18781306",
"pm_score": 0,
"selected": false,
"text": "PersistentVolumeClaim StatefulSet lib log config"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18781306/"
] |
74,346,559 | <p>im trying to join data together using the join function on SQL and every time i run my query it shows error and the error says according to the data im using right now, it says 'bikeshare_trips' is not qualified with the dataset (e.g data table )</p>
<p>i checked for the data in the dataset and its there so i dont r... | [
{
"answer_id": 74346555,
"author": "KWriter",
"author_id": 18781306,
"author_profile": "https://Stackoverflow.com/users/18781306",
"pm_score": 0,
"selected": false,
"text": "PersistentVolumeClaim StatefulSet lib log config"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20318123/"
] |
74,346,571 | <p><a href="https://i.stack.imgur.com/fE3kD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fE3kD.png" alt="enter image description here" /></a></p>
<p>How do I get the About Me and Education sections to the right side of the web</p>
<p>Here is pencode link: <a href="https://codepen.io/Weng-Hong-the-... | [
{
"answer_id": 74346650,
"author": "HmBloqued",
"author_id": 17183809,
"author_profile": "https://Stackoverflow.com/users/17183809",
"pm_score": 0,
"selected": false,
"text": "position : fixed;\nright : 0;\n position : absolute;\nright : 0;\n"
},
{
"answer_id": 74346657,
"aut... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440005/"
] |
74,346,596 | <p>New with C++ but been coding a lot of ObjC back in the day. So i thought i was smart trying to solve a cross reference issue with the old delegate pattern used widely in ObjC but only managed to move the issue it to another file .</p>
<p>Im trying to reach the invoker of the file by passing it as a reference, confor... | [
{
"answer_id": 74346650,
"author": "HmBloqued",
"author_id": 17183809,
"author_profile": "https://Stackoverflow.com/users/17183809",
"pm_score": 0,
"selected": false,
"text": "position : fixed;\nright : 0;\n position : absolute;\nright : 0;\n"
},
{
"answer_id": 74346657,
"aut... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/175053/"
] |
74,346,612 | <p>I am working on Cypress API and trying to get response but the problem I am facing is that I need to wait for some time for the next request until I get the response from previous one. For example, until "activated: true" and "fileType not inprogress".</p>
<pre class="lang-js prettyprint-override... | [
{
"answer_id": 74351922,
"author": "Fody",
"author_id": 16997707,
"author_profile": "https://Stackoverflow.com/users/16997707",
"pm_score": 2,
"selected": false,
"text": "function req(attempts = 0) {\n\n if (attempts === 100) {\n throw new Error('Too many attempts')\n }\n\n cy.requ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12024752/"
] |
74,346,672 | <p>I will like to delete all empty row in a column</p>
<p>prices_dataframe[prices_dataframe['postcode'].isnull()]</p>
<p>This only seems to be showing me the empty rows not deleting it.</p>
| [
{
"answer_id": 74351922,
"author": "Fody",
"author_id": 16997707,
"author_profile": "https://Stackoverflow.com/users/16997707",
"pm_score": 2,
"selected": false,
"text": "function req(attempts = 0) {\n\n if (attempts === 100) {\n throw new Error('Too many attempts')\n }\n\n cy.requ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18815892/"
] |
74,346,678 | <p>It is possible substitute a word in a column that contains specific characters?
I would like to change the character "osa" in the set. What can I do?</p>
<pre><code>iris
iris$Species <- gsub(contains("osa"), "set", iris$Species, fixed = TRUE)
</code></pre>
| [
{
"answer_id": 74346737,
"author": "M.Viking",
"author_id": 10276092,
"author_profile": "https://Stackoverflow.com/users/10276092",
"pm_score": 2,
"selected": false,
"text": ".* table(gsub(\".*osa.*\", \"set\", iris$Species))\n#\n# set versicolor virginica \n# 50 50... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16204721/"
] |
74,346,684 | <p>I have a dictionary which has peoples' first names as keys. Each name has a capitalised first letter (James, Ben, John, etc).</p>
<p>I use list comprehension to check if any keys are in a string:</p>
<pre><code>[val for key, val in name_dict.items() if key in new_message]
</code></pre>
<p>The issue is that sometimes... | [
{
"answer_id": 74346739,
"author": "Guy",
"author_id": 5168011,
"author_profile": "https://Stackoverflow.com/users/5168011",
"pm_score": 2,
"selected": false,
"text": "title() new_message new_message = 'James, ben, JOHN'\nprint(new_message.title()) # James, Ben, John\n"
},
{
"ans... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16027663/"
] |
74,346,686 | <p>how to make a model have a mandatory field in the database but ignore it in swagger? I already used [JSONIGNORE] but it is still mandatory in swagger.</p>
| [
{
"answer_id": 74346739,
"author": "Guy",
"author_id": 5168011,
"author_profile": "https://Stackoverflow.com/users/5168011",
"pm_score": 2,
"selected": false,
"text": "title() new_message new_message = 'James, ben, JOHN'\nprint(new_message.title()) # James, Ben, John\n"
},
{
"ans... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20146067/"
] |
74,346,698 | <p>On a unix system I have a file and I need to remove all lines that would match <code>Package: <PKG_NAME></code> until an empty line is found. Here is an example, I would need to remove <code>terminfo</code> information:</p>
<pre><code>...
Package: kmod-usb-storage
Version: 5.4.218-1
Depends: kernel (= 5.4.218-... | [
{
"answer_id": 74346769,
"author": "William Pursell",
"author_id": 140750,
"author_profile": "https://Stackoverflow.com/users/140750",
"pm_score": 3,
"selected": true,
"text": " awk '!/terminfo/' RS= ORS='\\n\\n' \n awk terminfo awk '!/^Package: terminfo/' RS= ORS='\\n\\n'\n"
},
{
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14984008/"
] |
74,346,705 | <p>I'm having data like</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>columnname</th>
<th>value</th>
<th>table</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>1</td>
<td>X</td>
</tr>
<tr>
<td>b</td>
<td>2</td>
<td>X</td>
</tr>
<tr>
<td>a</td>
<td>3</td>
<td>X</td>
</tr>
<tr>
<td>b</td>
<t... | [
{
"answer_id": 74346769,
"author": "William Pursell",
"author_id": 140750,
"author_profile": "https://Stackoverflow.com/users/140750",
"pm_score": 3,
"selected": true,
"text": " awk '!/terminfo/' RS= ORS='\\n\\n' \n awk terminfo awk '!/^Package: terminfo/' RS= ORS='\\n\\n'\n"
},
{
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4575271/"
] |
74,346,786 | <p>I have a complete application and I'm using a custom font.</p>
<p>Is there a way to use two font families one for Text and one for numbers only?</p>
<p>Bearing in mind that the texts and numbers from API and they are mixed.</p>
| [
{
"answer_id": 74347509,
"author": "Ivo",
"author_id": 1514861,
"author_profile": "https://Stackoverflow.com/users/1514861",
"pm_score": 3,
"selected": true,
"text": "GoogleFonts import 'package:flutter/material.dart';\nimport 'package:google_fonts/google_fonts.dart';\n\nvoid main() => r... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17733339/"
] |
74,346,793 | <p>I want to store two values in an object: <code>today</code>, <code>todayInOneYear</code>. I use a function to calculate the +1 year.</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-overri... | [
{
"answer_id": 74346840,
"author": "0stone0",
"author_id": 5625547,
"author_profile": "https://Stackoverflow.com/users/5625547",
"pm_score": 3,
"selected": true,
"text": "obj = {}\ntoday = new Date();\n\nobj = {\n today: today,\n oneYear: addOneYear(today)\n}\nconsole.log(obj)\n\nfunct... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14807111/"
] |
74,346,808 | <p>noob here.</p>
<p>I have a dataframe that looks like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>start</th>
<th>end</th>
<th>start_year</th>
</tr>
</thead>
<tbody>
<tr>
<td>NaT</td>
<td>NaT</td>
<td>2020</td>
</tr>
<tr>
<td>NaT</td>
<td>NaT</td>
<td>2021</td>
</tr>
</tbody>
</t... | [
{
"answer_id": 74346840,
"author": "0stone0",
"author_id": 5625547,
"author_profile": "https://Stackoverflow.com/users/5625547",
"pm_score": 3,
"selected": true,
"text": "obj = {}\ntoday = new Date();\n\nobj = {\n today: today,\n oneYear: addOneYear(today)\n}\nconsole.log(obj)\n\nfunct... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440058/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.