qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,446,016 | <p>While building flutter app, I am getting this error.</p>
<pre><code>One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to C:\flutter\projects\my_app\android\app\build.gradle:
android {
compileSdkVersion 33
...
}
</code></pre>
<p>However, in my build.gradle I have :</... | [
{
"answer_id": 74446579,
"author": "Robert Sandberg",
"author_id": 13263384,
"author_profile": "https://Stackoverflow.com/users/13263384",
"pm_score": 2,
"selected": true,
"text": "<flutter-installation>\\packages\\flutter_tools\\gradle\\flutter.gradle\n local.properties flutter.compileS... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9906708/"
] |
74,446,025 | <pre><code>import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
def GaussFit():
xdata_raw = [0,24,22,20,18,16,14,12,10,8,6,4,2,-24,-22,-20,-18,-16,-14,-12,-10,-8,-6,-4,-2]
ydata_raw =[0.398,0.061,0.066,0.076,0.095,0.115,0.148,0.183,0.211,0.270,0.330,0.361,0.391,0.061,0.066,0... | [
{
"answer_id": 74446579,
"author": "Robert Sandberg",
"author_id": 13263384,
"author_profile": "https://Stackoverflow.com/users/13263384",
"pm_score": 2,
"selected": true,
"text": "<flutter-installation>\\packages\\flutter_tools\\gradle\\flutter.gradle\n local.properties flutter.compileS... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510345/"
] |
74,446,048 | <p>I'm doing automation using WDIO and want to upload a file but the input element is disabled. The style element of the input selector has :</p>
<p><a href="https://i.stack.imgur.com/A4pmB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A4pmB.png" alt="enter image description here" /></a></p>
<p>Whe... | [
{
"answer_id": 74446579,
"author": "Robert Sandberg",
"author_id": 13263384,
"author_profile": "https://Stackoverflow.com/users/13263384",
"pm_score": 2,
"selected": true,
"text": "<flutter-installation>\\packages\\flutter_tools\\gradle\\flutter.gradle\n local.properties flutter.compileS... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17330468/"
] |
74,446,067 | <p>I want to rotate a sprite in C and SDL2, with a set center of rotation, and without scaling or anti-aliasing.</p>
<p>My game resolution is 320x240, and the display is scaled up when I set the game to full screen, because I'm using <a href="https://wiki.libsdl.org/SDL_RenderSetLogicalSize" rel="nofollow noreferrer"><... | [
{
"answer_id": 74451910,
"author": "Durza42",
"author_id": 19111973,
"author_profile": "https://Stackoverflow.com/users/19111973",
"pm_score": 1,
"selected": false,
"text": "SDL_Texture // Set 'your_texture' as target\nSDL_SetRenderTarget(your_renderer, your_texture);\n\n // We ar... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510259/"
] |
74,446,081 | <p>my code:</p>
<pre><code>userlog = input("What is your username?")
passlog = input("What is your password?")
for fileread in open("accounts.txt", "r").readlines():
file = fileread.split()
if userlog == file[0] and passlog == file[1]:
print("Succesfully logg... | [
{
"answer_id": 74451910,
"author": "Durza42",
"author_id": 19111973,
"author_profile": "https://Stackoverflow.com/users/19111973",
"pm_score": 1,
"selected": false,
"text": "SDL_Texture // Set 'your_texture' as target\nSDL_SetRenderTarget(your_renderer, your_texture);\n\n // We ar... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510263/"
] |
74,446,085 | <p>Created an index tr_logintracker in elasticsearch using the below. We are using Elasticsearch version 7.17
We even tried with data type of Integer in place of index</p>
<pre class="lang-json prettyprint-override"><code>{
"mappings": {
"properties": {
"logintime": {
&... | [
{
"answer_id": 74446297,
"author": "Paulo",
"author_id": 4534923,
"author_profile": "https://Stackoverflow.com/users/4534923",
"pm_score": 1,
"selected": false,
"text": "driverid data.driverid driverid data.driverid: 21 driverid {\n \"query\": {\n \"bool\": {\n \"must\": [\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510354/"
] |
74,446,092 | <p>NOTE: Using <code>PyAutoGui</code> library</p>
<p>I am trying to make python click on each icon on screen in order, I have gotten it to successfully print each item on screen with it's <code>box</code> values of <em>left</em> and <em>top</em> in place of X and Y coordinates. But I can't figure out how to get left/to... | [
{
"answer_id": 74484365,
"author": "Gianpi",
"author_id": 20525800,
"author_profile": "https://Stackoverflow.com/users/20525800",
"pm_score": 1,
"selected": false,
"text": "Box(left=124, top=699, width=14, height=14) for x, y, _, _ in coordinates: for x, y, w, h in coordinates for x, y i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13032383/"
] |
74,446,115 | <p>Building a simple ToDo app in React/NodeJS/Express with MySQL. Users join a group ("family" in the code), then tasks are viewable filtered by familyId. To create a task, I first have a query that finds the user's familyId from the Users table, then I want to include that familyId value in the subsequent IN... | [
{
"answer_id": 74484365,
"author": "Gianpi",
"author_id": 20525800,
"author_profile": "https://Stackoverflow.com/users/20525800",
"pm_score": 1,
"selected": false,
"text": "Box(left=124, top=699, width=14, height=14) for x, y, _, _ in coordinates: for x, y, w, h in coordinates for x, y i... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14496639/"
] |
74,446,117 | <p>I have this type:</p>
<pre><code>type RouteList = 'admin/dashboard' | 'admin/users' | 'admin/roles';
</code></pre>
<p>How can I create this type above from this array dynamically?</p>
<pre><code>const routeList = ['admin/dashboard','admin/users','admin/roles'];
</code></pre>
| [
{
"answer_id": 74446300,
"author": "Moein Moeinnia",
"author_id": 18318552,
"author_profile": "https://Stackoverflow.com/users/18318552",
"pm_score": 3,
"selected": true,
"text": "const routeList = ['admin/dashboard','admin/users','admin/roles'] as const;\n\ntype RouteList = typeof route... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2766013/"
] |
74,446,150 | <p>I got the following graph for each job title with salary in box plot:
<a href="https://i.stack.imgur.com/Tr7kG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Tr7kG.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/Afd2E.png" rel="noreferrer"><img src="https://i.stack... | [
{
"answer_id": 74468350,
"author": "giantmoa",
"author_id": 20258205,
"author_profile": "https://Stackoverflow.com/users/20258205",
"pm_score": 2,
"selected": false,
"text": "StatisticalGraphics.jl using InMemoryDatasets\nusing StatisticalGraphics\nds=Dataset(x=[1,2],y=[2,3])\nsgplot(ds,... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20136433/"
] |
74,446,158 | <p>I don't know NgRx yet and I need to manage state in an Angular app,
the app is pretty simple, we have list of items, when user goes to items list I download that data and show it, but when user navigates to admin page and then comes back to items list component I don't want to download items list again. Can I manage... | [
{
"answer_id": 74468350,
"author": "giantmoa",
"author_id": 20258205,
"author_profile": "https://Stackoverflow.com/users/20258205",
"pm_score": 2,
"selected": false,
"text": "StatisticalGraphics.jl using InMemoryDatasets\nusing StatisticalGraphics\nds=Dataset(x=[1,2],y=[2,3])\nsgplot(ds,... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12224228/"
] |
74,446,164 | <p>How can I specify a textSize for all text elements within a Column / Row?</p>
<p>I have difficulty finding a method, which helps me doing something like the <code>UnspecifiedFontSize</code> (pseudo code):</p>
<pre><code>Row {
UnspecifiedFontSize(size= 128.dp) {
Text("ping")
Text... | [
{
"answer_id": 74446416,
"author": "lisonge",
"author_id": 10717907,
"author_profile": "https://Stackoverflow.com/users/10717907",
"pm_score": 4,
"selected": true,
"text": "LocalTextStyle @Composable\nfun Text114514() {\n CompositionLocalProvider(\n LocalTextStyle provides Text... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1870799/"
] |
74,446,169 | <p>How can I make groovy on Jenkins mask
<strong>My groovy code:</strong></p>
<pre><code>sh "sonar-scanner -Dsonar.host.url=http://sonarurl:9000 -Dsonar.login=squ_a1111"
</code></pre>
<p><strong>Jenkins Console:</strong></p>
<pre><code>sonar-scanner -Dsonar.host.url=http://sonarurl:9000 -Dsonar.login=squ_a111... | [
{
"answer_id": 74446981,
"author": "Pexers",
"author_id": 9213148,
"author_profile": "https://Stackoverflow.com/users/9213148",
"pm_score": 0,
"selected": false,
"text": "steps {\n withCredentials([\n string(credentialsId: \"sonar-creds\", variable: 'PWD_SONAR')\n ]) {\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14686302/"
] |
74,446,175 | <p>I have a list with 2 minimum numbers and I am trying to get the index of the minimum number 33 at index [5], but my loop stops at [0] once it's found the min. Unsure how to get the get last index value.</p>
<pre><code> rain_data = [33, 57, 60, 55, 53, 33]
min_value = rain_data[0]
min_index = 0
def m... | [
{
"answer_id": 74446981,
"author": "Pexers",
"author_id": 9213148,
"author_profile": "https://Stackoverflow.com/users/9213148",
"pm_score": 0,
"selected": false,
"text": "steps {\n withCredentials([\n string(credentialsId: \"sonar-creds\", variable: 'PWD_SONAR')\n ]) {\n ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20495309/"
] |
74,446,200 | <p>I have a struct like this:</p>
<pre><code>import Foundation
struct Product: Identifiable {
var name: String
let expirationDate: Date
let id = UUID()
}
</code></pre>
<p>and a list like this:</p>
<pre><code>import SwiftUI
struct ContentView: View {
@Binding var products: [Product]
var d... | [
{
"answer_id": 74446407,
"author": "Timmy",
"author_id": 13278922,
"author_profile": "https://Stackoverflow.com/users/13278922",
"pm_score": 3,
"selected": true,
"text": "timeIntervalSinceNow $0.expirationDate.timeIntervalSinceNow < $1.expirationDate.timeIntervalSinceNow\n Date $0.expira... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484841/"
] |
74,446,227 | <p>I have a dictionary with missing values (the key is there, but the associated value is empty). For example I want the dictionary below:</p>
<pre><code>dct = {'ID': '', 'gender': 'male', 'age': '20', 'weight': '', 'height': '5.7'}
</code></pre>
<p>to be changed to this form:</p>
<pre><code>dct = {'ID': {'link': '','v... | [
{
"answer_id": 74446407,
"author": "Timmy",
"author_id": 13278922,
"author_profile": "https://Stackoverflow.com/users/13278922",
"pm_score": 3,
"selected": true,
"text": "timeIntervalSinceNow $0.expirationDate.timeIntervalSinceNow < $1.expirationDate.timeIntervalSinceNow\n Date $0.expira... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17451339/"
] |
74,446,240 | <p>I have created an automated data client that pulls data from a txt file and inputs it into a csv file. Each data entry contains a timestamp, but it is not in the format I need it in, I need it to match the datetime.now() format:</p>
<p><strong>ORIGINAL FORMAT</strong> [03/11/22 01:06:09:190]</p>
<p><strong>DESIRED F... | [
{
"answer_id": 74446407,
"author": "Timmy",
"author_id": 13278922,
"author_profile": "https://Stackoverflow.com/users/13278922",
"pm_score": 3,
"selected": true,
"text": "timeIntervalSinceNow $0.expirationDate.timeIntervalSinceNow < $1.expirationDate.timeIntervalSinceNow\n Date $0.expira... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20348095/"
] |
74,446,245 | <pre><code>#include <iostream>
#include <cstring>
int main()
{
char c1[5];
char c2[5];
if ( strlen(c1) == 0)
{
std::cout<<" c1 empty";
}
if (strcmp(c2, "") == 0)
{
std::cout<<" c2 empty";
}
return 0;
}
</code><... | [
{
"answer_id": 74446803,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 0,
"selected": false,
"text": "strlen 0 strlen strlen strlen"
},
{
"answer_id": 74447054,
"author": "RavaT",
"author_id": 16468530,
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2129218/"
] |
74,446,282 | <p>Is it possible to create a table layout using <code>display:table</code>, <code>display:table-row</code> and <code>display:table-cell</code> if <strong>table-cell is not a direct child of table-row</strong> ?</p>
<p>The example below would work if I remove the div with class <code>nestedDiv</code>, in such a way tha... | [
{
"answer_id": 74446471,
"author": "Adam",
"author_id": 12571484,
"author_profile": "https://Stackoverflow.com/users/12571484",
"pm_score": 0,
"selected": false,
"text": ".col {\n display: table-cell;\n padding: 0.2rem;\n}\n\n.row {\n display: table-row;\n} <div class='row'>\n <div c... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571682/"
] |
74,446,331 | <p>Sometimes I want to use <em>all columns</em> and sometimes I want to <em>exclude the last column</em>.</p>
<pre><code>df.iloc[:, :].apply(foobar) # all columns
df.iloc[:, :-1].apply(foobar) # exclude last column
</code></pre>
<p>Can I parameterize that somehow?</p>
<pre><code>if exclude_last:
idx = ':-1'
else:
... | [
{
"answer_id": 74446371,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "df.iloc[:, :-1 if exclude_last else df.shape[1]].apply(foobar)\n df = pd.DataFrame(columns=list('ABCD'), index=[0])... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4865723/"
] |
74,446,349 | <p>I am trying to trigger an Azure Function from Logic Apps. Running the Azure function takes more than 2 minutes as it is reading a file from a location, converts it to another format and then writes it to a different location. The problem is that the Logic Apps is creating a request, waits for 2 minutes to get a resp... | [
{
"answer_id": 74446371,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "df.iloc[:, :-1 if exclude_last else df.shape[1]].apply(foobar)\n df = pd.DataFrame(columns=list('ABCD'), index=[0])... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5836462/"
] |
74,446,353 | <p>Sample XML file (insert path):</p>
<pre><code><FilePath>
<TemplatePath> "C:\Users\test.txt" </TemplatePath>
</FilePath>
</code></pre>
<p>I am trying to take the value of but i always get a run-time error '91', this is the code:</p>
<pre><code>Sub testxml()
Set oXMLFile = CreateO... | [
{
"answer_id": 74446371,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "df.iloc[:, :-1 if exclude_last else df.shape[1]].apply(foobar)\n df = pd.DataFrame(columns=list('ABCD'), index=[0])... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19893881/"
] |
74,446,357 | <p>I'm using flutter for my first mobile application. I want to trigger an action without clicking a button.
this is the code :</p>
<pre><code> IconButton(
icon: Icon(
characteristic.isNotifying
? Icons.sync_disabled
: Icons.sync,
... | [
{
"answer_id": 74446371,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "df.iloc[:, :-1 if exclude_last else df.shape[1]].apply(foobar)\n df = pd.DataFrame(columns=list('ABCD'), index=[0])... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20285309/"
] |
74,446,375 | <p>Building off of <a href="https://stackoverflow.com/questions/74445734/how-can-i-get-the-length-of-a-string-using-typescript-types">this question</a> (no I do not have a grand scheme, I simply thought of this after getting my question answered.):</p>
<p>I have the following:</p>
<pre><code>type LengthOfString<T ex... | [
{
"answer_id": 74446525,
"author": "nullptr",
"author_id": 9549012,
"author_profile": "https://Stackoverflow.com/users/9549012",
"pm_score": 0,
"selected": false,
"text": "let str = \"22222\" as const 22222 str str is StringOfLength<T, N> let str = \"22222\" \n\nif (isStringOfLength(str,... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7589775/"
] |
74,446,378 | <p>I've been busting my head on what should be a simple problem. I've got a div that needs to be clickable, which means I have to put an <code><a></code> tag into the <code><div></code>. I can't put the entire content into an <code><a></code> tag, because there's text inside of this component which co... | [
{
"answer_id": 74446525,
"author": "nullptr",
"author_id": 9549012,
"author_profile": "https://Stackoverflow.com/users/9549012",
"pm_score": 0,
"selected": false,
"text": "let str = \"22222\" as const 22222 str str is StringOfLength<T, N> let str = \"22222\" \n\nif (isStringOfLength(str,... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15694013/"
] |
74,446,381 | <p>I have a variable called $path which has a value of</p>
<pre><code>My Pictures/Tony/Automatic Upload/Tony’s iPhone/2022-11-13 10-57-52.mov
</code></pre>
<p>trying to use split-path to get just <strong>2022-11-13 10-57-52.mov</strong></p>
<pre><code>Split-Path -Path $path -Leaf -Resolve
Split-Path : Ca... | [
{
"answer_id": 74446525,
"author": "nullptr",
"author_id": 9549012,
"author_profile": "https://Stackoverflow.com/users/9549012",
"pm_score": 0,
"selected": false,
"text": "let str = \"22222\" as const 22222 str str is StringOfLength<T, N> let str = \"22222\" \n\nif (isStringOfLength(str,... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/800592/"
] |
74,446,398 | <p>The topic was raised due to dealing with some graph problems. So I'm receiving information about graph structure via <code>stdin</code> and input looks like this:</p>
<pre><code>Number of Edges
ID of NodeN1 Id of NodeN2
ID of NodeN3 Id of NodeN4
ID of NodeN5 Id of NodeNn
...
</code></pre>
<p>The first line repres... | [
{
"answer_id": 74446546,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 3,
"selected": true,
"text": "networkx inputList = [3, [0, 1], [0, 2], [1, 2]]\n\nnumNodes = inputList[0]\nedges = inputList[1:]\nmega_lst = []\nfor ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3079439/"
] |
74,446,399 | <p>I have created an parmeter @myxml and populated it with my xml. I am able to get most of the data returned but I am running in to a problem with a node called userarea.
if i am select s.PO.value('<em>:UserArea[1]/</em>:Property[4]', 'nvarchar(50)') as MFG
I can get the mfg name however if one of the propertys are no... | [
{
"answer_id": 74446546,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 3,
"selected": true,
"text": "networkx inputList = [3, [0, 1], [0, 2], [1, 2]]\n\nnumNodes = inputList[0]\nedges = inputList[1:]\nmega_lst = []\nfor ... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510586/"
] |
74,446,444 | <p><strong>INPUT TABLE</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">pcd</th>
<th style="text-align: center;">INCOME</th>
<th style="text-align: right;">Education</th>
<th style="text-align: right;">age1to_20</th>
<th style="text-align: right;">TG</th>
<... | [
{
"answer_id": 74446570,
"author": "exokamen",
"author_id": 14662128,
"author_profile": "https://Stackoverflow.com/users/14662128",
"pm_score": 0,
"selected": false,
"text": "pd.pivot_table(df, index=['pcd', 'age1to_20'], \n values=['age1to_20']\n columns=['income', '... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13106084/"
] |
74,446,450 | <p>I'm still quite the beginner when it comes to more complex formula in Google Sheets. I'm trying to do an analysis for my company, the data is in a db-like table (CSV import), one of the columns contains a date, another one a status. I want to count how many times a certain status falls into a given week.</p>
<p>Here... | [
{
"answer_id": 74446570,
"author": "exokamen",
"author_id": 14662128,
"author_profile": "https://Stackoverflow.com/users/14662128",
"pm_score": 0,
"selected": false,
"text": "pd.pivot_table(df, index=['pcd', 'age1to_20'], \n values=['age1to_20']\n columns=['income', '... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510109/"
] |
74,446,461 | <p>I have a nested list as follows:</p>
<pre><code>bpas = {{1, 1/19, 3}, {2, 3/19, 3}, {3, 7/19, 1}}
</code></pre>
<p>I want to replace the element whose first part equals to <code>2</code> with more than one element.
In this case it would be <code>{2, 3/19, 3}</code>, replaced by <code>{2, 6/19, 3}, {1, 1/19, 6}</code... | [
{
"answer_id": 74448051,
"author": "Bill",
"author_id": 2797269,
"author_profile": "https://Stackoverflow.com/users/2797269",
"pm_score": 0,
"selected": false,
"text": "bpas = {{1,1/19,3},{2,6/19,3},{1,1/19,6},{3,7,7/19,1}};\nbpas/.{head__,{2,y_,z_},tail__}->{head,{2,2y,z},{1,y/3,2z},tai... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510509/"
] |
74,446,476 | <p>How it is posible to make a filter which is a comparison (a function)? So we can implement a filter like this</p>
<p>Because I got this console output:</p>
<blockquote>
<p>ERROR: aggregate functions are not allowed in WHERE</p>
<p>WHERE MAX(vr.utz) > p_utz_begin AND fu.id_fl</p>
</blockquote>
<p>this is the code... | [
{
"answer_id": 74448051,
"author": "Bill",
"author_id": 2797269,
"author_profile": "https://Stackoverflow.com/users/2797269",
"pm_score": 0,
"selected": false,
"text": "bpas = {{1,1/19,3},{2,6/19,3},{1,1/19,6},{3,7,7/19,1}};\nbpas/.{head__,{2,y_,z_},tail__}->{head,{2,2y,z},{1,y/3,2z},tai... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14903696/"
] |
74,446,505 | <p>The module "Watch Updates" (webhook) since yesterday started returning only the ID of the updates, with every other field empty (message text, message ID, everything else).
Tried with different bots created with 2 different accounts (1 premium and 1 standard), and same result: empty update except for the u... | [
{
"answer_id": 74459850,
"author": "Redox15",
"author_id": 20519405,
"author_profile": "https://Stackoverflow.com/users/20519405",
"pm_score": 1,
"selected": false,
"text": "null"
}
] | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16720310/"
] |
74,446,560 | <p>In my app users can register an account using Email authentication with Firebase, one of the required fields while registering is the phone number, which is stored as a string value in Firestore:</p>
<pre><code> final phoneField = TextFormField(
controller: phoneController,
keyboardType: TextInputType.ph... | [
{
"answer_id": 74448165,
"author": "Mark Munene",
"author_id": 20159503,
"author_profile": "https://Stackoverflow.com/users/20159503",
"pm_score": 0,
"selected": false,
"text": "import { beforeUserCreated } from \"firebase-functions/v2/identity\"; \n \n//runs before a user is c... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17369207/"
] |
74,446,599 | <p>I have a java stand alone application. I build a jar, and I create a .exe file from this jar file.</p>
<p>Then I can start the application by double click on it. Now I need to create a .bat file to close the exe program. Now I build a .bat file like this:</p>
<pre><code>TASKKILL /F /PID easyManagement.exe
pause
</co... | [
{
"answer_id": 74448165,
"author": "Mark Munene",
"author_id": 20159503,
"author_profile": "https://Stackoverflow.com/users/20159503",
"pm_score": 0,
"selected": false,
"text": "import { beforeUserCreated } from \"firebase-functions/v2/identity\"; \n \n//runs before a user is c... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2405663/"
] |
74,446,607 | <p>Model:</p>
<pre><code>from django.db import models
class VilleStation(models.Model):
nomVille = models.CharField(max_length=255)
adresse = models.CharField(max_length=255)
cp = models.CharField(max_length=5)
def __str__(self):
return self.nomVille
</code></pre>
<p>admin.py :</p>
<pre><code>... | [
{
"answer_id": 74448165,
"author": "Mark Munene",
"author_id": 20159503,
"author_profile": "https://Stackoverflow.com/users/20159503",
"pm_score": 0,
"selected": false,
"text": "import { beforeUserCreated } from \"firebase-functions/v2/identity\"; \n \n//runs before a user is c... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230924/"
] |
74,446,611 | <p>How to add hours to a Date object?</p>
<p>This was a clock ONLY that is 1 hour ahead. Can be customized to whatever amount of hours you need.</p>
<p>This works in all time zones.</p>
<p>If you want to add more hours just change the output for each hour 0-23</p>
<pre><code>```
<script type="text/javascript&q... | [
{
"answer_id": 74446732,
"author": "peinearydevelopment",
"author_id": 1874522,
"author_profile": "https://Stackoverflow.com/users/1874522",
"pm_score": 0,
"selected": false,
"text": "Date Number valueOf Date const date = new Date(Date.now());\nconst hourInMilliseconds = 60 * 60 * 1000;\... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510653/"
] |
74,446,635 | <p>I have a table as shown below</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Id</th>
<th>FName</th>
<th>Gender</th>
<th>StatusValue</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Sam</td>
<td>Male</td>
<td>SV001</td>
</tr>
<tr>
<td>2</td>
<td>Emma</td>
<td>Female</td>
<td>SV002</td>
</... | [
{
"answer_id": 74446732,
"author": "peinearydevelopment",
"author_id": 1874522,
"author_profile": "https://Stackoverflow.com/users/1874522",
"pm_score": 0,
"selected": false,
"text": "Date Number valueOf Date const date = new Date(Date.now());\nconst hourInMilliseconds = 60 * 60 * 1000;\... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458386/"
] |
74,446,639 | <p>I want to make an app that opens many URL schemes.<br/>
To make it, I tried some ways:</p>
<ol>
<li><p>I used <code>UIApplication.shared.open(url, options: [:], completionHandler: nil)</code>. <br/>
But this way I must add the URL scheme in <code>info.plist</code>. <br/>
And in <code>info.plist</code> I can add a ma... | [
{
"answer_id": 74451866,
"author": "Bulat Yakupov",
"author_id": 17834877,
"author_profile": "https://Stackoverflow.com/users/17834877",
"pm_score": 0,
"selected": false,
"text": "SafariServices if let url = URL(string: \"<your_url>\") {\n let safariVC = SFSafariViewController(url: ur... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8880303/"
] |
74,446,640 | <p><a href="https://i.stack.imgur.com/iDKS3.png" rel="nofollow noreferrer">why Flutter is showing Expected to find ','. in main.dart file</a></p>
<p>Flutter is showing Expected to find ','. in main.dart file</p>
<p><a href="https://i.stack.imgur.com/iDKS3.png" rel="nofollow noreferrer">https://i.stack.imgur.com/iDKS3.p... | [
{
"answer_id": 74446689,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 1,
"selected": false,
"text": "home: Scaffold(\n appBar: AppBar(...), //here a comma\n body: YoueBodyWidget(),\n \n),\n"
}
] | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20215140/"
] |
74,446,643 | <p>I want to push my commit from repository to different repository in deploy stage but I did not do it.</p>
<pre><code>
deploy-job:
stage: deploy
before_script:
- 'which ssh-agent || ( apt-get update -qy && apt-get install openssh-client -qqy )'
- eval `ssh-agent -s`
- echo ${SSH_PRIVAT... | [
{
"answer_id": 74446689,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 1,
"selected": false,
"text": "home: Scaffold(\n appBar: AppBar(...), //here a comma\n body: YoueBodyWidget(),\n \n),\n"
}
] | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12158653/"
] |
74,446,659 | <p><strong>Brief Context:</strong> I am trying to create a chat application where I want to load only N number of messages at first (say 20) and as the user scrolls up and reaches the top then more 20 messages are fetched via AJAX and prepended to the existing messages. These messages are older messages, of course. I s... | [
{
"answer_id": 74446704,
"author": "Kathara",
"author_id": 5621032,
"author_profile": "https://Stackoverflow.com/users/5621032",
"pm_score": 3,
"selected": true,
"text": ".data() .attr() var chatBox = $(\".retrive-chat\");\n\n$('.chat-box').scroll(function (event) {\n var st = $(this).s... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20337540/"
] |
74,446,686 | <p>I am trying to force a rejection for a <code>promise.allSettled()</code> function in a controlled way.
The idea is run a series of urls in batches through an API, this API from time to time returns a 500 error for a given request and it can be safetly retried. So I want to trigger a rejection on <code>promise.allSet... | [
{
"answer_id": 74446704,
"author": "Kathara",
"author_id": 5621032,
"author_profile": "https://Stackoverflow.com/users/5621032",
"pm_score": 3,
"selected": true,
"text": ".data() .attr() var chatBox = $(\".retrive-chat\");\n\n$('.chat-box').scroll(function (event) {\n var st = $(this).s... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10564162/"
] |
74,446,687 | <p>If I have this code,</p>
<pre><code>subroutine min_distance(r,n,k,centroid,distance,indices,distancereg)
integer, intent(out):: n,k
real,dimension(:,:),intent(in),allocatable::centroid
real,dimension(:,:),intent(in),allocatable::r
integer,dimension(:),intent(out),allocatable::indices,... | [
{
"answer_id": 74448025,
"author": "Victor Eijkhout",
"author_id": 2044454,
"author_profile": "https://Stackoverflow.com/users/2044454",
"pm_score": 1,
"selected": false,
"text": "j i_min i (j) i_min j d_min j i distance i_min,d_min reduction i,j j"
},
{
"answer_id": 74448694,
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17615644/"
] |
74,446,695 | <p>I have a <code>login</code> route where I want to set a cookie after I verify the login credentials. <strong>The client and the server are on different ports</strong>.</p>
<pre><code>const app = express();
app.use(
cors({
credentials: true,
origin: true,
})
);
app.use(cookieParser());
app.use('/login',... | [
{
"answer_id": 74446771,
"author": "Edoardo Sichelli",
"author_id": 14498331,
"author_profile": "https://Stackoverflow.com/users/14498331",
"pm_score": -1,
"selected": false,
"text": "res.json({ success: true });\n"
},
{
"answer_id": 74446856,
"author": "Konrad",
"author_... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4159572/"
] |
74,446,715 | <p>I am trying to get the regex right to return one or the other but not both:
When I run for example the following:</p>
<pre><code>aws secretsmanager list-secrets | jq -r ".SecretList[] | select(.Name|match(\"example-*\")) | .Name "
</code></pre>
<p>it returns</p>
<pre><code>example-secret_key
</co... | [
{
"answer_id": 74446771,
"author": "Edoardo Sichelli",
"author_id": 14498331,
"author_profile": "https://Stackoverflow.com/users/14498331",
"pm_score": -1,
"selected": false,
"text": "res.json({ success: true });\n"
},
{
"answer_id": 74446856,
"author": "Konrad",
"author_... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/323179/"
] |
74,446,719 | <p>I am learning C++ and was wondering if there is an equivalent to assigning a user input to a variable in one line, like you can do in C# for example:</p>
<p><code>string foo = Console.ReadLine();</code></p>
<p>I was hoping that one of these would work, but they don't.</p>
<p><code>const string foo = cin >> foo... | [
{
"answer_id": 74446834,
"author": "Robert Shepherd",
"author_id": 19970913,
"author_profile": "https://Stackoverflow.com/users/19970913",
"pm_score": 0,
"selected": false,
"text": "if(double b = 0; std::cin >> b)\n{\n // Code\n}\n double b = 0;\nstd::cin >> b;\n auto init_and_input()\n... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12215968/"
] |
74,446,725 | <p>I'm trying to recursively find c and header files in a script, while avoiding globbing out any that exist in the current directory.</p>
<pre><code>FILE_MATCH_LIST='"*.c","*.cc","*.cpp","*.h","*.hh","*.hpp"'
FILE_MATCH_REGEX=$(echo "$FILE_MATCH_LIST&quo... | [
{
"answer_id": 74447186,
"author": "vgersh99",
"author_id": 13680534,
"author_profile": "https://Stackoverflow.com/users/13680534",
"pm_score": 1,
"selected": false,
"text": "find #!/bin/bash\n\n#FILE_MATCH_LIST='\"*.c\",\"*.cc\",\"*.cpp\",\"*.h\",\"*.hh\",\"*.hpp\"'\nFILE_MATCH_LIST='.*... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4526336/"
] |
74,446,777 | <p>I am currently encountering this problem in my react native app using Firebase:</p>
<blockquote>
<p>Collection references must have an odd number of segments</p>
</blockquote>
<p>I've seen similar cases in stackoverflow but wasn't able to solve my problem. Here is my code :</p>
<pre><code> const getData = async () ... | [
{
"answer_id": 74446822,
"author": "Dharmaraj",
"author_id": 13130697,
"author_profile": "https://Stackoverflow.com/users/13130697",
"pm_score": 2,
"selected": true,
"text": "getDoc() doc() collection() import { doc, getDoc } from \"firebase/firestore\" \n\nconst docRef = doc(db, \"users... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15814593/"
] |
74,446,783 | <p>I need some help with grouping data by continuous values.</p>
<p>If I have this data.table</p>
<pre><code>dt <- data.table::data.table( a = c(1,1,1,2,2,2,2,1,1,2), b = seq(1:10), c = seq(1:10)+1 )
a b c
1: 1 1 2
2: 1 2 3
3: 1 3 4
4: 2 4 5
5: 2 5 6
6: 2 6 7
7: 2 7 8
8: 1 8 9
9: 1 ... | [
{
"answer_id": 74446872,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "> dt[, .(a = a[1], b = b[1], c = c[.N]), rleid(a)][, -1]\n a b c\n1: 1 1 4\n2: 2 4 8\n3: 1 8 10\n4:... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15505651/"
] |
74,446,788 | <p>I am trying to print out a list holding objects and their attributes where every element in the list is printed in a new line. However, I don't know how or where to add '\n' when appending the object.</p>
<p><em>client_manager.py</em></p>
<pre><code>class ClientManager:
# Constructor for the client list
def ... | [
{
"answer_id": 74446872,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "> dt[, .(a = a[1], b = b[1], c = c[.N]), rleid(a)][, -1]\n a b c\n1: 1 1 4\n2: 2 4 8\n3: 1 8 10\n4:... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14731803/"
] |
74,446,830 | <p>I am sending a request to some url. I Copied the curl url to get the code from curl to python tool. So all the headers are included, but my request is not working and I recieve status code 403 on printing and error code 1020 in the html output. The code is</p>
<pre><code>import requests
headers = {
'User-Agent'... | [
{
"answer_id": 74446872,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "> dt[, .(a = a[1], b = b[1], c = c[.N]), rleid(a)][, -1]\n a b c\n1: 1 1 4\n2: 2 4 8\n3: 1 8 10\n4:... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13849446/"
] |
74,446,854 | <p>I have an array of objects Called Lines. The <strong>Lines</strong> array is inside <strong>rows</strong> array & the rows array is inside <strong>tabs</strong> array. I want to take some data from lines array & put them in another array called <strong>colors</strong></p>
<p>the array look like this----</p>
... | [
{
"answer_id": 74446872,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "> dt[, .(a = a[1], b = b[1], c = c[.N]), rleid(a)][, -1]\n a b c\n1: 1 1 4\n2: 2 4 8\n3: 1 8 10\n4:... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19813093/"
] |
74,446,875 | <p>Creating a demo for setting submit button disabled until all are required <code>TextField</code> is not empty...</p>
<p>username and password <code>TextField</code> are empty.. then submit button should be disabled...</p>
<p>I have done with my basic way, but looking for advanced code so that it can be not repeated ... | [
{
"answer_id": 74446872,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "> dt[, .(a = a[1], b = b[1], c = c[.N]), rleid(a)][, -1]\n a b c\n1: 1 1 4\n2: 2 4 8\n3: 1 8 10\n4:... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18817235/"
] |
74,446,884 | <pre><code>def my_function(x,y,z):
out = True
if(x < y) | (x > z):
out = False
return out
</code></pre>
<p>Can you help me understand what this is doing? Is it, "out is True, but if x is less than y or greater than z: out is False"? I am unsure about the <code>|</code> operator.</p>
| [
{
"answer_id": 74446927,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 0,
"selected": false,
"text": "testValues = [(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]\nfor x, y, z in testValues:\n print... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510744/"
] |
74,446,978 | <p>I've spent quite a lot of time figuring it out but I'm stuck, I have a nested JSON and I want to enrich the values of "attr" with those matching the keys of "codes", thanks in advance.</p>
<p>My Input JSON:</p>
<pre class="lang-json prettyprint-override"><code>{
"items": {
"a... | [
{
"answer_id": 74446927,
"author": "Temba",
"author_id": 3593621,
"author_profile": "https://Stackoverflow.com/users/3593621",
"pm_score": 0,
"selected": false,
"text": "testValues = [(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]\nfor x, y, z in testValues:\n print... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74446978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14041796/"
] |
74,447,004 | <p>This is a signup form from MAILCHIMP I'm trying to customize.
I'm almost there, I just need to put the checkbox to the left of the sentence before it.</p>
<p><img src="https://i.stack.imgur.com/3YXZx.png" alt="Screenshot" /></p>
<p>I tried using all sorts of "align" commands in CSS with the checkbox object... | [
{
"answer_id": 74447190,
"author": "Cazlo",
"author_id": 19743717,
"author_profile": "https://Stackoverflow.com/users/19743717",
"pm_score": 0,
"selected": false,
"text": "display: flex; <div class=\"class\">\n <fieldset>\n <p>\n </div>\n .class {\n display: flex;\n justi... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19818844/"
] |
74,447,041 | <p>I found this partial solution to my problem:</p>
<p><a href="https://stackoverflow.com/a/73193498/10789707">Google Sheets auto increment column A if column B is not empty</a></p>
<p>With this formula:</p>
<p><code>=ARRAYFORMULA(IFERROR(MATCH($B$2:$B&ROW($B$2:$B),FILTER($B$2:$B&ROW($B$2:$B),$B$2:$B<>&qu... | [
{
"answer_id": 74447231,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=INDEX(IF(B2:B=\"\",,COUNTIFS(A2:A&B2:B, A2:A&B2:B, ROW(A2:A), \"<=\"&ROW(A2:A))))\n =INDEX(IF(B2:B=\"\",,COUNTIFS(A2... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10789707/"
] |
74,447,074 | <pre><code>var alphabet = "FIN SLHOJVHEN GYKOHU";
</code></pre>
<p>I want to split it every 2 character so it would print
"I LOVE YOU "</p>
<p>I already try this but it didn't work</p>
<pre><code>for (var i = 0 ; i \< alphabet.length ; i+=2 ){
alphabet.split(i)
</code></pre>
<p>correct me please... | [
{
"answer_id": 74447171,
"author": "Diego D",
"author_id": 1221208,
"author_profile": "https://Stackoverflow.com/users/1221208",
"pm_score": 1,
"selected": false,
"text": "split const encoded = \"FIN SLHOJVHEN GYKOHU\"; \n\nconst words = encoded.split(' ');\nlet decoded = '';\nwords.forE... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20446649/"
] |
74,447,077 | <p>I am currently trying to sort a list of objects in this case students, based on their grades, student number, name, etc.</p>
<pre><code> listOfStudents.sort([](const Students& student1, const Students& student2)
{
if (student1.getStudentNumber() == student2.getStudentNumber())
... | [
{
"answer_id": 74447171,
"author": "Diego D",
"author_id": 1221208,
"author_profile": "https://Stackoverflow.com/users/1221208",
"pm_score": 1,
"selected": false,
"text": "split const encoded = \"FIN SLHOJVHEN GYKOHU\"; \n\nconst words = encoded.split(' ');\nlet decoded = '';\nwords.forE... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20510986/"
] |
74,447,110 | <p>It's possible to create this file structure with one line of code in bash?</p>
<pre><code>├── assets
│ ├── css
│ │ └── index.css
│ ├── js
│ │ └── index.js
│ └── images
</code></pre>
| [
{
"answer_id": 74447174,
"author": "Arnaud Valmary",
"author_id": 6255757,
"author_profile": "https://Stackoverflow.com/users/6255757",
"pm_score": 3,
"selected": true,
"text": "mkdir -p assets/{css,js,images}; touch assets/{css/index.css,js/index.js}\n"
},
{
"answer_id": 7444753... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1779365/"
] |
74,447,118 | <p>I upgraded my project to Spring Boot 3 and Spring Security 6, but since the upgrade the CSRF protection is no longer working.</p>
<p>I'm using the following configuration:</p>
<pre class="lang-java prettyprint-override"><code>@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
... | [
{
"answer_id": 74456381,
"author": "g00glen00b",
"author_id": 1915448,
"author_profile": "https://Stackoverflow.com/users/1915448",
"pm_score": 1,
"selected": false,
"text": "XorCsrfTokenRequestAttributeHandler .csrf(csrf -> csrf\n .csrfTokenRepository(CookieCsrfTokenRepository.withHt... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1915448/"
] |
74,447,128 | <p>I try to sum per fruit sort the total.</p>
<p>So I have it:</p>
<pre><code>listfruit= [('Watermeloenen', '123,20'), ('Watermeloenen', '2.772,00'), ('Watermeloenen', '46,20'), ('Watermeloenen', '577,50'), ('Watermeloenen', '69,30'), ('Appels', '3.488,16'), ('Sinaasappels', '137,50'), ('Sinaasappels', '500,00'), ('Sin... | [
{
"answer_id": 74447242,
"author": "pL3b",
"author_id": 17200418,
"author_profile": "https://Stackoverflow.com/users/17200418",
"pm_score": 1,
"selected": false,
"text": "result = sum(float(n.replace(\".\", \"\").replace(\",\", \".\")) for _, n in listfruit)\n listfruit = [('Watermeloene... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7713770/"
] |
74,447,142 | <p>I have a main project <strong>A</strong> which depends on a project <strong>B</strong>. The project <strong>B</strong> contains special button and there is <code>B/theme</code> folder in which I describe specific styles. If I use <code>B.Button</code> in <strong>B</strong> and compile and run <strong>B</strong> - st... | [
{
"answer_id": 74447242,
"author": "pL3b",
"author_id": 17200418,
"author_profile": "https://Stackoverflow.com/users/17200418",
"pm_score": 1,
"selected": false,
"text": "result = sum(float(n.replace(\".\", \"\").replace(\",\", \".\")) for _, n in listfruit)\n listfruit = [('Watermeloene... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3297142/"
] |
74,447,149 | <p>I would like to serialize (and deserialize) an C# object to a json string.
Normally when objects are serialized, objects are enclosed in a pair of <code>{}</code> in the generated json.
But here I am interested in object to be serialized to only a string.</p>
<p>I am interested in doing this to encapsulate logic abo... | [
{
"answer_id": 74447338,
"author": "ThisQRequiresASpecialist",
"author_id": 19381612,
"author_profile": "https://Stackoverflow.com/users/19381612",
"pm_score": 0,
"selected": false,
"text": "? public class ItemNumber\n{\n public string? Number { get; set; }\n\n public ItemNumber(st... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4755799/"
] |
74,447,202 | <p>I want to pipe and filter from an API response, but response format is as follows.</p>
<p>JSON:</p>
<blockquote>
<p>{
activeAwards: [
{
name: 'x',
status: 'valid'
},
{
name: 'y',
status: 'valid'
},
{
name: 'z',
status: 'invalid'
}
]
}</p>
</blockquote>
<p>I have tried tap to get in 'activeAwards' and filter it.</p>
... | [
{
"answer_id": 74447338,
"author": "ThisQRequiresASpecialist",
"author_id": 19381612,
"author_profile": "https://Stackoverflow.com/users/19381612",
"pm_score": 0,
"selected": false,
"text": "? public class ItemNumber\n{\n public string? Number { get; set; }\n\n public ItemNumber(st... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17134599/"
] |
74,447,208 | <p>I have this query :</p>
<pre><code>select pivot_table.*
from (
Select STATUS,USER_TYPE
FROM TRANSACTIONS tr
join TRANSACTION_STATUS_CODES sc on sc.id = tr.user_type
join TRANSACTION_USER_TYPES ut on ut.id=tr.user_type
WHERE Tr.User_Type between 1 and 5
And tr.status!=1
AND Tr... | [
{
"answer_id": 74447338,
"author": "ThisQRequiresASpecialist",
"author_id": 19381612,
"author_profile": "https://Stackoverflow.com/users/19381612",
"pm_score": 0,
"selected": false,
"text": "? public class ItemNumber\n{\n public string? Number { get; set; }\n\n public ItemNumber(st... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19198699/"
] |
74,447,218 | <p>wondering how I can order the clusters on y-axis by decreasing count of kiwi?</p>
<pre><code>df = data.frame()
df = data.frame(matrix(df, nrow=200, ncol=2))
colnames(df) <- c("cluster", "name")
df$cluster <- sample(20, size = nrow(df), replace = TRUE)
df$fruit <- sample(c("banana&qu... | [
{
"answer_id": 74447434,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": false,
"text": "library(tidyverse)\n\ndf %>%\n mutate(cluster = factor(cluster, \n names(sort(tabl... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12372071/"
] |
74,447,222 | <p>So, I did this in order to find the second biggest value in an array (I know there are a lot of answers out there, I just want to know why this approach fails)</p>
<p>With a first <code>reduce()</code> method on the number array I find the largest number, then using a second <code>reduce()</code> method I tried to u... | [
{
"answer_id": 74447492,
"author": "Asraf",
"author_id": 20361860,
"author_profile": "https://Stackoverflow.com/users/20361860",
"pm_score": 2,
"selected": true,
"text": "reduce (a!= biggest && b!= biggest) a return a reduce() const arr = [1,6,2,7,3,9,5,8];\n\nconst biggest = arr.reduce(... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6900034/"
] |
74,447,228 | <p>I would like to get the actual date of accounts that have expired but still enabled in the active directory. I always get the date + 1 day. For example, if a user is expired today (15/11/2022), it will shows (16/11/2022)... Can you help me with this?</p>
<pre><code>Get-ADUser -Filter * -properties AccountExpiration... | [
{
"answer_id": 74447752,
"author": "Theo",
"author_id": 9898643,
"author_profile": "https://Stackoverflow.com/users/9898643",
"pm_score": 2,
"selected": true,
"text": "accountExpires AccountExpirationDate $refDate = (Get-Date).Date # set to midnight\n\n# or use -LDAPFilter \"(!userAccou... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17163818/"
] |
74,447,247 | <p>Please, help me with my problem?</p>
<p>I am fetching some data from Strapi and display it in the component.
Everything works well on first rerender, but then odd behaviour starts.</p>
<p>First of all - when i navigate to another page and then navigate back to original page - I ALWAYS get error message =</p>
<blockq... | [
{
"answer_id": 74447752,
"author": "Theo",
"author_id": 9898643,
"author_profile": "https://Stackoverflow.com/users/9898643",
"pm_score": 2,
"selected": true,
"text": "accountExpires AccountExpirationDate $refDate = (Get-Date).Date # set to midnight\n\n# or use -LDAPFilter \"(!userAccou... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12396859/"
] |
74,447,271 | <p>I have a list the contains names and numbers. And for all items with the same name in the list I want to calculate the sum of those numbers.</p>
<p>Please note, I cannot use the numpy function.</p>
<p>This is my 2d list:</p>
<pre class="lang-py prettyprint-override"><code>list = [('apple', 3), ('apple', 4), ('apple'... | [
{
"answer_id": 74447752,
"author": "Theo",
"author_id": 9898643,
"author_profile": "https://Stackoverflow.com/users/9898643",
"pm_score": 2,
"selected": true,
"text": "accountExpires AccountExpirationDate $refDate = (Get-Date).Date # set to midnight\n\n# or use -LDAPFilter \"(!userAccou... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20511050/"
] |
74,447,285 | <p><code>jq .</code> has the side-effect of pretty printing the input.</p>
<pre class="lang-bash prettyprint-override"><code>$ echo '{"foo":"bar", "baz":[1,2,3]}' | jq .
{
"foo": "bar",
"baz": [
1,
2,
3
]
}
</code></pre>
<p>But if I want to u... | [
{
"answer_id": 74447286,
"author": "glenn jackman",
"author_id": 7552,
"author_profile": "https://Stackoverflow.com/users/7552",
"pm_score": 2,
"selected": false,
"text": "echo '{\"foo\":\"bar\", \"baz\":[1,2,3]}' | jq -r '\"My value is:\", . , \"Some other stuff\"'\n# ..................... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7552/"
] |
74,447,292 | <p>I'm trying to get the subcategories on a listing page in Shopware 6. However i can't seem to find the functionality to get an array with the subcategories with the template variables.</p>
<p>My goal is to loop over the children and make some kind of fastlinks in a CMS-element.</p>
<p>Is there a standard functionalit... | [
{
"answer_id": 74447720,
"author": "newgennerd",
"author_id": 12553209,
"author_profile": "https://Stackoverflow.com/users/12553209",
"pm_score": 3,
"selected": true,
"text": "// myPlugin/src/DataResolver/SubcategoryListCmsElementResolver.php\n<?php\n\nnamespace MyPlugin\\DataResolver;\n... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9310268/"
] |
74,447,314 | <p>I have a code that I am trying to convert but it's written in Python 2 and I would like to print this code in Python 3. However, it's not able to print in matrix format. I am getting output in an unrecognizable table format.</p>
<p>The code is following:</p>
<pre><code> for n in cols:
print('/t',n),
print
cost =... | [
{
"answer_id": 74447720,
"author": "newgennerd",
"author_id": 12553209,
"author_profile": "https://Stackoverflow.com/users/12553209",
"pm_score": 3,
"selected": true,
"text": "// myPlugin/src/DataResolver/SubcategoryListCmsElementResolver.php\n<?php\n\nnamespace MyPlugin\\DataResolver;\n... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18877602/"
] |
74,447,351 | <p>I have a bug that I need more than one result from a <code>foreach</code> without creating a new collection in the method. I need to get rid of the <code>foreach</code> however I don`t know what LINQ method to use.</p>
<p>I have tried,</p>
<pre><code>return basket.Items.SelectMany(
item => item.Id == orderCom... | [
{
"answer_id": 74447476,
"author": "D Stanley",
"author_id": 1081897,
"author_profile": "https://Stackoverflow.com/users/1081897",
"pm_score": 0,
"selected": false,
"text": "Contains var ids = orderComplimentaryUtility.Select(i => i.id).ToArray();\nreturn basket.Items.Where(item => ids.C... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13011195/"
] |
74,447,365 | <p>I have a function that checks whether or not a worksheet named <code>wsName</code> exists already in the workbook. The issue I am having is getting the function to run with the restructuring and removal of <code>On Error Resume Next</code>. What I am expecting is the macro to run and produce copies of the worksheets... | [
{
"answer_id": 74447628,
"author": "FaneDuru",
"author_id": 2233308,
"author_profile": "https://Stackoverflow.com/users/2233308",
"pm_score": 2,
"selected": false,
"text": "Function SheetExists_(SheetName As String, wb As Workbook) As Boolean\nOn Error GoTo Message\nSheetExists_ = Not wb... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20114520/"
] |
74,447,371 | <p>I have a script that I use to fire orders from a csv file, to an exchange using a for loop.</p>
<pre><code>data = pd.read_csv('orderparameters.csv')
df = pd.DataFrame(data)
for i in range(len(df)):
order = Client.new_order(...
...)
file = open('orderData.txt', 'a')
original_stdout = sys.stdout
w... | [
{
"answer_id": 74447628,
"author": "FaneDuru",
"author_id": 2233308,
"author_profile": "https://Stackoverflow.com/users/2233308",
"pm_score": 2,
"selected": false,
"text": "Function SheetExists_(SheetName As String, wb As Workbook) As Boolean\nOn Error GoTo Message\nSheetExists_ = Not wb... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20384302/"
] |
74,447,373 | <p>Does anyone know if there are any ways I can turn dataset from the left side to the right side in excel macro or other programming tools?</p>
<p><img src="https://i.stack.imgur.com/Y27tr.jpg" alt="enter image description here" /></p>
<p>Use R code to manipulate dataset on the left side to the one at the right side</... | [
{
"answer_id": 74447628,
"author": "FaneDuru",
"author_id": 2233308,
"author_profile": "https://Stackoverflow.com/users/2233308",
"pm_score": 2,
"selected": false,
"text": "Function SheetExists_(SheetName As String, wb As Workbook) As Boolean\nOn Error GoTo Message\nSheetExists_ = Not wb... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20511239/"
] |
74,447,400 | <p>I have been looking at other similar posts on the topic, but as I am deeply learning Kotlin at the moment I'd like to discuss the problem, the solution, and why it happened if possible.</p>
<p>I am getting the following error:</p>
<pre><code>C:\Users\Paul\Documents\Projects\DataApp\app\src\main\java\com\example\data... | [
{
"answer_id": 74447628,
"author": "FaneDuru",
"author_id": 2233308,
"author_profile": "https://Stackoverflow.com/users/2233308",
"pm_score": 2,
"selected": false,
"text": "Function SheetExists_(SheetName As String, wb As Workbook) As Boolean\nOn Error GoTo Message\nSheetExists_ = Not wb... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16776321/"
] |
74,447,402 | <p>I'm trying to append values to my dictionary, but I can't solve this error.</p>
<p>This is my dictionary:</p>
<pre><code>groups = {'group1': array([450, 449.]), 'group2': array([490, 489.]), 'group3': array([568, 567.])}
</code></pre>
<p>then I have a txt file (loaded using np.loadtxt) with many data and I have to ... | [
{
"answer_id": 74447628,
"author": "FaneDuru",
"author_id": 2233308,
"author_profile": "https://Stackoverflow.com/users/2233308",
"pm_score": 2,
"selected": false,
"text": "Function SheetExists_(SheetName As String, wb As Workbook) As Boolean\nOn Error GoTo Message\nSheetExists_ = Not wb... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19719303/"
] |
74,447,404 | <p>In my Angular 12 application, I am making an API call in the service file and want to capture the response of the API in my component.
But since the API response is async, the console below always returns undefined. I have tried async await as well. Here is what I have tried:</p>
<p>INSIDE SERVICE:</p>
<pre><code>pu... | [
{
"answer_id": 74447728,
"author": "Fenix9697",
"author_id": 13955961,
"author_profile": "https://Stackoverflow.com/users/13955961",
"pm_score": -1,
"selected": false,
"text": "this.apiResponse = await this.myService.emailValidate({ email: customerEmail});\n console.log(\"this.apiRespons... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11989585/"
] |
74,447,415 | <p>I am working out a page that will have a quick-paced shuffle of images on one side, and would like to put bold and visually-attractive text that will lay over a corner of it as a mask and invert the colours of whatever is behind it. Are there any ways to style the text to do this in css?</p>
<p>I haven't been able t... | [
{
"answer_id": 74447728,
"author": "Fenix9697",
"author_id": 13955961,
"author_profile": "https://Stackoverflow.com/users/13955961",
"pm_score": -1,
"selected": false,
"text": "this.apiResponse = await this.myService.emailValidate({ email: customerEmail});\n console.log(\"this.apiRespons... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20023758/"
] |
74,447,446 | <p>I am implementing a kind of dataframe and I want to define a RandomAccessIterator over it, in order to execute the different std algorithms, such as the sorting one. The dataframe of the example contains two column "a" and "b":</p>
<pre><code>a; b;
20; 21;
20; 19;
10; 11;
40; 41;
10; 11;
</code><... | [
{
"answer_id": 74447728,
"author": "Fenix9697",
"author_id": 13955961,
"author_profile": "https://Stackoverflow.com/users/13955961",
"pm_score": -1,
"selected": false,
"text": "this.apiResponse = await this.myService.emailValidate({ email: customerEmail});\n console.log(\"this.apiRespons... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6247718/"
] |
74,447,452 | <p>I am trying to get hero name by hero id for my program.</p>
<p>Let's assume that I have an array with hero ids: <code>hero_ids = [1, 15, 27, 44, 135]</code></p>
<p>and a dict with a list of dicts with hero information:</p>
<pre><code>{
"heroes": [
{
"name": "hero1&quo... | [
{
"answer_id": 74447728,
"author": "Fenix9697",
"author_id": 13955961,
"author_profile": "https://Stackoverflow.com/users/13955961",
"pm_score": -1,
"selected": false,
"text": "this.apiResponse = await this.myService.emailValidate({ email: customerEmail});\n console.log(\"this.apiRespons... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19131160/"
] |
74,447,485 | <p>I have</p>
<pre><code>// Input DTOs:
public class FeatureIn {
private String val1;
private String val2;
}
public class ContainerIn {
private List<FeatureIn> features;
}
public class PersonIn {
private String name;
private String age;
private List<ContainerIn> containers;
}
// Outp... | [
{
"answer_id": 74447980,
"author": "Gonzalo Lorieto",
"author_id": 6615581,
"author_profile": "https://Stackoverflow.com/users/6615581",
"pm_score": -1,
"selected": false,
"text": "\n@Mapper\npublic interface FeatureMapper {\n List<FeatureOut> map(List<FeatureIn> featureIn);\n}\n\n\n@... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9313046/"
] |
74,447,495 | <p>I created a dataframe (Dates) of dates/times every 3 hours from 1981-2010 as follows:</p>
<pre><code># Create dates and times
start <- as.POSIXct("1981-01-01")
interval <- 60
end <- start + as.difftime(10957, units="days")
Dates = data.frame(seq(from=start, by=interval*180, to=end))
coln... | [
{
"answer_id": 74447980,
"author": "Gonzalo Lorieto",
"author_id": 6615581,
"author_profile": "https://Stackoverflow.com/users/6615581",
"pm_score": -1,
"selected": false,
"text": "\n@Mapper\npublic interface FeatureMapper {\n List<FeatureOut> map(List<FeatureIn> featureIn);\n}\n\n\n@... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5427561/"
] |
74,447,529 | <p>I have a pandas dataframe, with two columns id and user_name.</p>
<p>Where the id column have this format (xxxxxx-xxx-A): r'[0-9]{6}-[0-9]{3}$'+alphabet letter.</p>
<p>Here's my dataframe example :</p>
<pre><code>id user name
095082-000-A name1
095772-101-A name2
095082-000-B name3
095772-101-E name4
0... | [
{
"answer_id": 74447980,
"author": "Gonzalo Lorieto",
"author_id": 6615581,
"author_profile": "https://Stackoverflow.com/users/6615581",
"pm_score": -1,
"selected": false,
"text": "\n@Mapper\npublic interface FeatureMapper {\n List<FeatureOut> map(List<FeatureIn> featureIn);\n}\n\n\n@... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19735352/"
] |
74,447,552 | <p>Question: HOW can I get the same result for the below query but without using GROUP BY?</p>
<p>Can someone provide me with a solution that does the same, <strong>but without using GROUP BY</strong>:</p>
<p>SELECT Klasse, COUNT(<em>) AS Anzahl FROM Charaktere
WHERE Schaden > 700
GROUP BY Klasse
HAVING COUNT(</em>)... | [
{
"answer_id": 74447980,
"author": "Gonzalo Lorieto",
"author_id": 6615581,
"author_profile": "https://Stackoverflow.com/users/6615581",
"pm_score": -1,
"selected": false,
"text": "\n@Mapper\npublic interface FeatureMapper {\n List<FeatureOut> map(List<FeatureIn> featureIn);\n}\n\n\n@... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11558281/"
] |
74,447,578 | <p>I have built a login Automator using Selenium, and the code executes without errors but the script doesn't login. The page is stuck at login page, email and password are entered, but login is not completed.
<a href="https://i.stack.imgur.com/QOH0V.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<... | [
{
"answer_id": 74448305,
"author": "Archiee",
"author_id": 11756439,
"author_profile": "https://Stackoverflow.com/users/11756439",
"pm_score": 0,
"selected": false,
"text": "//div[text()='Login'] xpath login_btn = driver.find_element_by_xpath('//*[@id=\"root\"]/div/div[2]/div/div/div/di... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5587119/"
] |
74,447,586 | <p><a href="https://i.stack.imgur.com/im2lv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/im2lv.png" alt="enter image description here" /></a></p>
<pre><code> class CardWidget extends StatefulWidget {
final String title;
final Color? color;
final IconData? icon;
final Widget? child;
co... | [
{
"answer_id": 74447694,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 1,
"selected": false,
"text": " onTap: () {\n Navigator.pop(context, \"cardNo\");\n },\n child: TextFormField(\n control... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17906689/"
] |
74,447,590 | <p>I have a table of colors. I want to combine the same colors into single field & also their sum of quantity will be shown in that row.</p>
<p>For example, In the table below I have 2 "black" colors with quantities 5 & 2. Now want to combine this 2 rows into one & the quantity field will be "... | [
{
"answer_id": 74447972,
"author": "Asraf",
"author_id": 20361860,
"author_profile": "https://Stackoverflow.com/users/20361860",
"pm_score": 3,
"selected": true,
"text": "reduce() const data = { colors: [{ \"selectedColor\": \"white\", \"selectedQty\": 0, \"selectedUnit\": \"1\", }, { \"... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19813093/"
] |
74,447,595 | <p>I've got a vim setup that is close to my desired setup. I can type and see suggestions in my text as I type. That is my goal. I have a NerdFonts font installed and NerTree, and I can see icons in NerTree. I cannot see icons in the text that drops down as I type, and that is my problem.</p>
<pre><code> set clipboa... | [
{
"answer_id": 74447972,
"author": "Asraf",
"author_id": 20361860,
"author_profile": "https://Stackoverflow.com/users/20361860",
"pm_score": 3,
"selected": true,
"text": "reduce() const data = { colors: [{ \"selectedColor\": \"white\", \"selectedQty\": 0, \"selectedUnit\": \"1\", }, { \"... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859559/"
] |
74,447,609 | <p>Hello i have a list that has the following information that is retrieved from a db</p>
<pre><code>test_list_1 = ['01/01/2022:79.86','02/01/2022:65.86','03/01/2022:600.23','04/01/2022:179.26']
test_list_2 = ['01/01/2022:55.86','02/01/2022:25.75','03/01/2022:300.23']
</code></pre>
<p>I would like to be able to produce... | [
{
"answer_id": 74448107,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 3,
"selected": true,
"text": "itertools test_list1 from itertools import combinations\n\ndef pdiff(src: float, dst: float) -> float:\n return (... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20511208/"
] |
74,447,649 | <p>In the following code I wanted to generate a color heatmap (w x h x 3) based on the values of a NumPy 2-d array, in the range [-1; 1], and, unsurprisingly, it is really slow on large arrays (10000 x 10000) compared to the rest of the program, which uses NumPy numerical operations. Colors are in the [B, G, R] format.... | [
{
"answer_id": 74448107,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 3,
"selected": true,
"text": "itertools test_list1 from itertools import combinations\n\ndef pdiff(src: float, dst: float) -> float:\n return (... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15591418/"
] |
74,447,695 | <p>I have a dataframe that look like:</p>
<pre><code> corpus zero_level_name time labels A B C
0 ff f 1 1
1 gg g G
2 hh h H 1 1 1
3 ii i I
4 jj j J 1
</... | [
{
"answer_id": 74447835,
"author": "markd227",
"author_id": 13650733,
"author_profile": "https://Stackoverflow.com/users/13650733",
"pm_score": 0,
"selected": false,
"text": "pd.concat([df[['corpus', 'zero_level_name', 'time', 'labels']],df[['A','B','C']].fillna(0)], axis=1)\n"
},
{
... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19381301/"
] |
74,447,698 | <p>I have a dataframe with 1.6 million rows and one of the columns is a list of character vectors.</p>
<p>Each element of this list column looks as follows : <code>c("A61K", "A61K", "A61K", "A61K", "A61K", "A61K", "A61K", "A61K", "A61K... | [
{
"answer_id": 74447809,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 2,
"selected": false,
"text": "unique > string <- c(\"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\",... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11329975/"
] |
74,447,759 | <p>i wanna create objects with intellij (jpa) system,</p>
<p>but after i create objects,</p>
<p>there's no change in h2 console.</p>
<p>i expect that the objects are made like this, <a href="https://i.stack.imgur.com/4IJNf.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>(wanna make ITEM and MOVIE... | [
{
"answer_id": 74447809,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 2,
"selected": false,
"text": "unique > string <- c(\"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\", \"A61K\",... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20279399/"
] |
74,447,766 | <p>I want to delete part of a text widget's content, using only character offset (or bytes if possible).</p>
<p>I know how to do it for lines, words, etc. Looked around a lot of documentations:</p>
<ul>
<li><a href="https://www.tcl.tk/man/tcl8.6/TkCmd/text.html#M24" rel="nofollow noreferrer">https://www.tcl.tk/man/tcl8... | [
{
"answer_id": 74449163,
"author": "Thingamabobs",
"author_id": 13629335,
"author_profile": "https://Stackoverflow.com/users/13629335",
"pm_score": 2,
"selected": false,
"text": "f.seek text.delete def seek_delete(offset, whence):\n if whence == 0: #from the beginning\n start =... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12349101/"
] |
74,447,778 | <p>I'm currently in the process of migrating our REST application from Spring Boot 2.7.5 to 3.0.0-RC2. I want everything to be secure apart from the Open API URL. In Spring Boot 2.7.5, we used to do this:</p>
<pre class="lang-java prettyprint-override"><code>@Named
@EnableWebSecurity
public class WebSecurityConfig exte... | [
{
"answer_id": 74448071,
"author": "Julio César Estravis",
"author_id": 20121447,
"author_profile": "https://Stackoverflow.com/users/20121447",
"pm_score": 0,
"selected": false,
"text": "http\n .authorizeExchange((exchanges) ->\n exchanges\n .pathMatchers(\"/openapi/openapi.yml\... | 2022/11/15 | [
"https://Stackoverflow.com/questions/74447778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5515573/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.