text string | meta dict |
|---|---|
Q: SLURM: print out name of several nodes in one job I would like to submit one job to two nodes and print a hello from each node processing my job, e.g.
Hello World from node_21
Hello World from node_44
my .cpp is
int main(int argc, char *argv[])
{
std::cout << "Hello World from " << argv[1] << std::endl;
r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need help to speed up of a Python for-loop with huge amount of calculations I am working on a pice of Python software that requires to run a huge amount of calculations. I am talking about up to hundred of millions of calculations or more (n in below code can be 100000 or more). I have realized that Python is not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is it possible to create a graph about frequently asked question in facebook messenger chatbot? i'm working on a php website with fb messenger chatbot plugin, i'm thinking if it is possible to make a graph about FAQ in messenger chat bot
i tried searching for a way but was unable to, i hope you can guide me.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75574307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Unknown variable in ACS/Census API I am trying to get census data for tenure status in various zip codes using R. I used the syntax that I used for all of my other API calls and copied the variable name exactly from the API key here: https://api.census.gov/data/2021/acs/acs1/groups/C25032.html
The variables also app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you install APKs programmatically using Beeware? I'm making a GUI app for a package manager I'm working on, but I don't if you can install APKs programmatically using Beeware. I'm using Beeware because it's the only library I'm comfortable using.
A: I don't know about programmatic APK installation specifically,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does specifying a lifetime let me return a reference? I'm struggling to understand lifetimes. I understand (I think) that specifying a lifetime with input parameters (i.e. foo<'a>(x: &'a String) -> &'a String {}) means that the returned value inherits the lifetime of the input parameter and will therefore live a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Re-Assign Boostrap Document Link onClick of Button I have a personal website, and I'd like to display 3 different resumes, one for each topic. I have 3 buttons and the onclicks direct to JS functions. I'd like to update the link attribute of my resume document depending on which button the user clicks.
Note that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Spring boot version 3.0.0 springdoc-openapi-ui dont work open api dependencies
spring boot version
I try to enable swagger openapi springdoc-openapi-ui:1.6.14 but unfortunately I can not make that, when i try to access http://localhost:8182/swagger-ui/ I get error 404. My question is should i change the version of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I solve React Native Tensorflow error? This is my App.js:
//expo & react
import * as React from 'react';
import { Dimensions, StyleSheet, View } from 'react-native';
import { Camera, CameraType } from 'expo-camera';
//tensorflow
import * as tf from '@tensorflow/tfjs';
import {
bundleResourceIO,
cameraWi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React-redux cannot get user information for the profile I am working on an e-commerce project(react, django) and register/login system is working well, but I when I started to work on update profile form, first I decided to get some info of the user. I am getting Authentication credentials were not provided error me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Monogame Code Skipping Ahead While Calculating Next Move (Chess) I'm currently programming a chess AI and I'm using Monogame for the graphics. I want to add an animation of the computer's pieces sliding to the square they moved the piece to, but my code won't work. When the AI just makes random moves (that take a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: putting a form in a table cell I want to put a select input in a table cell
but the select options are not shown in the table
here is my code
<td>
<form class="form" >
<select class="form-control selectpicker" data-size="7" tabindex="null">
<option value="1">1</option>
<option value="2">2</option>
<opti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: EXCEL Create timeline chart using variation of single value I want to create a line chart that shows the evolution of a dynamic value present in my excel. That value is updated based on a webpage and I want to show how it is evolving day by day. It can use the value it has at 12am or something like that.
In this ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate filter is not working for select and update statement executed inside merge method I have JPA entities with a filter defined like this:
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
public abstract class TenantAwareBaseEntity extends BaseEntity {
@Column(name = "tenantId", nullabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why this component rerender again and again if i send props as a child in this component how to stop the rerendring of this component,is it posible or not
import React, { useEffect, useState } from 'react';
import { View, Text } from 'react-native';
import CustomImageBackground from '../../components/ImageBackgrou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fluent validation does not validate fields of objects in an array I have the following validator. It works as supposed to on the fields in the root level. However, it seems that there's no validation on the fields of the objects in the array.
public class ReporterValidator : AbstractValidator<Reporter>
{
public Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting jacocoTestReport FAILED I am attempting to upgrade my project to JDK17. But the tasks jacocoTestReport and model:jacocoTestCoverageVerification throw an error (seen below) during the build. I am using JaCoCo version 0.8.7. I am running ./gradlew my-project:build. When I exclude the jacoco tasks the build is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How create a multi alert monitor in Datadog via Terraform? I have two "twin applications" that requires monitoring. There is a way to create a multi alert monitor to them via Terraform? It can be done via interface but I need to migrate them to Terraform.
Being more specific, I have this query, in my monitor created... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Duplicate master Google Slides deck + Populate it from Sheets I have two scripts that work well separately but I need to combine them.
What I am trying to achieve is that from a Google Sheets, someone will run a script and:
*
*A copy of a master Google Slides deck will be made and the name will be updated based on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WooComerce Added To Cart Popup - Elementor / WordPress / WooCommerce I am currently in the process of creating a POP-UP using the Elementor Pro Pop-Up feature. My objective is to provide a more user-friendly experience by having a pop-up appear confirming that the product has been added to the cart when the user hit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Shopware 6, jest test: [vuex] module namespace not found in mapState(): My component test failed by commit to a custom state store with:
[vuex] module namespace not found in mapState(): MyComponentStore/
The component itself works as expected.
The codes:
tests/myComponent.spec.test
import { shallowMount, createLocal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prevent ghost image when dragging element, but still use drag events I am creating custom drag functionality. I want to be able to drag an element, but I am using translation to actually move the element while dragging. It works well, but when dragged, the ghost image still appears, making it look kind of blu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unhashable error for a JSON request for an API I do not understand the exact input type I need to use for this request, which requires a city and a country. I need to input a city, country and API key (which I have) but I don't know to do so exactly.
response = requests.get(f'http://api.openweathermap.org/data/2.5/f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a function type boolean that checks to see if the command line argument is in fact a digit? I am currently taking cs50 introduction into computer science.
I'm trying to create a type bool function with argument string named only_digits that will check to see if the command line argument that the user i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: std::process::Command executes without error but nothing happens I'm trying to cd into a directory that contains steamcmd.exe and run a command. When I run this code no error occurs and nothing actually happens.
use std::{process::Command};
let steamcmd_dir = String::from("C:/Users/user/Desktop/steamcmd");
let cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Has docusign removed sandbox environment from free developer account? I am working on a project in which i need to integrate and test docusign api and till now have successfully created and imported rest-api collection for postman and now i need sandbox environmen
for testing purpose but i cant find it in my develop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find the beginning and start of a week (Python) I am trying to create a program that will take today's date and find the most recent historical beginning and end of the week (excluding bank holidays and weekends). The idea being is that it will take today's date "02/26/23" and return 02/21/23 for the beginnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wpf Interaction Behavior in nested DataGrids MVVM pattern I have a simple DataGrid with RowDetailsTemplate where the DataTemplate is also a DataGrid.
A behavior is used to bind in two way mode DataGrid's SelectedItems to the ViewModel.
The behavior is used both in main DataGrid and in subs DataGrids which are detail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Caption text from several ToggleButtons if their value=True I would like to ask for some help how to make this efficent.
My Userform has a bunch of togglebuttons which turns green if pressed and they all have unique Captions. Then i have a command button. My goal would be that when i press the commandbutton, i n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VSCode attach do Python process ran with `-m pdb` I'm running my Python program with -m pdb to stop it execution at the start. In VSCode, I attach to that process using the following launch.json:
{
"name": "Python: Attach using Process Id",
"type": "python",
"request": "at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Invalid collection reference Collection references must have an odd number of segments I am currently encountering this problem in my react native app using Firebase when im trying to update the document to firestore.
This is all problem log:
Invalid collection reference. Collection references must have an odd numb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Possible Logic Error: remove(vector.begin(),vector.end(),val) I am looking for a way to delete certain lines in a file. I read on Stack Overflow that the best way to do this is to write it into a vector, and then remove the element from the array, and then read the array back into the file. I was doing this, and was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to install dotnet 4.8 on my Virtual Box using Wix Toolset i have build a msi which will install dotnet 4.8 using wix toolset but during installation it is giving an error that some other installation is running so that why it is unable to install it if I try to retry to it fails at the end i have to press can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: ignoring .vscode So i accidently pushed the ".vscode" folder to the github repository. I want it to be deleted from github.
I made a gitignore file and added the name ".vscode" in it so that it won't be tracked and i also tried delteing it using the git rm .vscode --cached command and it says fatal: not removing '.v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why is Drawable drawn on top of the input field? The drawable is drawn over the input field.
Messengers have an overlay on the input field when displaying words from the dictionary. And in the browser everything is fine, since the input field of the browser is at the top. And when the screen is turned over, the fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: else Third is not worked enter mage description here
Hi , why else in code line 7 is not worked because b = 3 is wrong and else in line 7 is true !
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75574395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: Im having trouble with the variable of a for loop in javascript in a django template what i am trying to do is make an animation by looping throught some images in my static file folder with javascript in django. but something keeps screwing their adress up
my code looks something like this
{% load static %}
<img i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "error: invalid combination of opcode and operands", when comparing "dereferenced" addresses I wrote this code to compare two strings and print string2, if the code strings are the same:
enter:
pusha
mov ah, 0x0e
mov al, 0x0a
int 0x10
mov al, 0x0d
int 0x10
popa
mov di, reserved_string
mov bx, strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: KeyError when trying to access column in CSV file using DictReader I'm trying to read a CSV file using DictReader in Python 3.9. The file contains several columns, including one named "Lieferzeit". However, when I try to access this column using row['Lieferzeit'] in my code, I get a KeyError with the message "Liefer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: pyspark splitting with delimiter incorrectly (within higher order)? My task is to convert this spark python udf to pyspark native functions...
def parse_access_history_json_table(json_obj):
'''
extracts
list of DBs, Schemas, Tables
from json_obj field in access history
'''
db_list = set([])
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Foreign key associated with column could not find table with which to generate a foreign key I am trying to create a simple DB with a Player table and a table Match which has 4 different columns that should refer to Player.
Here's my code:
class Player(Base):
__tablename__ = "players"
name = Column(String, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Entity Framework get all models for a list of models I have three models: Quiz, Question, and Answer.
public class Quiz
{
public int ID { get; set; }
public string Title { get; set; }
public ICollection<Question>? Questions { get; set; }
}
public class Question
{
public int ID { get; set; }
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue with ingest values, 2x more When I ingested values to the feature set, the pipeline was called 2x more (I used MLRun version 1.2.1). It seems as the issue, do you know why?
I used this code:
import mlrun
import mlrun.feature_store as fstore
# mlrun: start-code
import math
def calc(x):
x['fn2']=math.sin(x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a Django model for a chatroom in python? Just letting you all know that I am very inexperienced with web development and so I decided to start a project in which I am making an application similar to Discord in which people can go to chat rooms and voice chat each other. From research, I decided to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: An error occurs during npm install. What are the possible causes? npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue3-eribbit-client-pc@0.1.0
npm ERR! Found: eslint-plugin-vue@8.7.1
npm ERR! node_modules/eslint-plugin-vue
npm ERR! dev eslint-plugin-vue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why is my Session not being persisted on the browser? I am creating a chat application which requires users to login and sign up. For authentication, I am using cookies and session, However, my cookie is not being persisted on the broswer yet I am getting a set-cookie hash on the response header.
Here are my codes
u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use the same ClientWebSocket object in every call in .NET Core application I have a .NET Core API project, and in one of my requests I use a ClientWebSocket object to send and fetch data from my solar grid inverter, but the inverter only supports one client at the time, else the other one gets kicked. So I th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why am I gettingerror 404 after htaccess Rewrite URL i am getting error 404 for every using the following htaccess code
if access the files directly i don't see the error but when access it through it supposed to be i get the error
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^categories$ cats... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upload multiple image with view in JavaScript I am stuck on some JavaScript code with what I am not so familiar with.
<div class="card card-box" id="img_id1">
<img class="card-img-top" width="233" height="235" src="vendors/images/no_preview.png" alt="Product Images">
</div>
Above is my html code which creates a sma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Ranking values by group and hours (timestamp) Here is an exemple of my database :
ID_user
ID_session
Timestamp
ID1
S451
2023-02-06 12:02:03
ID1
S489
2023-02-06 11:55:06
ID2
S123
2023-02-06 11:57:06
ID2
S456
2023-02-06 14:57:06
etc...
I would like to rank ID_session by ID_user and by date, hours, mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between tensorflow session being defined inside / outside while loop I am trying to get he-transformer (https://github.com/IntelAI/he-transformer) to work, which is an extension of Intel nGraph, which in turn is a library that executes tensorflow code on different hardware.
nGraph is a bit outdated and st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting SQL-86 join to ANSI I am currently working on a internal legacy project and to get more familiar with the backend logic and database design, I have decided to rewrite all queries from the old fashion SQL-86 standard into a more modern one.
But I am stuck on one big view and one participial join (this exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: gunicorn with --preload dies with "Error: dictionary changed size during iteration" on startup. Help me debug it So after introducing some logging changes to a project, I started getting :
Error: dictionary changed size during iteration
at startup. No exception trace given.
I'm starting gunicorn with:
gunicorn --ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET MAUI - "Permission request must be invoked on main thread" I am confused on how I am supposed to request permissions access on the main thread of an android app if it needs to be async. I want to do this as soon as my application opens, but as is I am getting the following error: "Permission request must be inv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Desktop Duplication - Limiting the Framerate Using the Windows Desktop Duplication API, I want to limit the capture of the monitor to no more than 60fps. I know the AcquireNextFrame() has a 'wait' parameter, so maybe this can be used to limit the framerate although I am unsure how. I also noticed that at least when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to group the elements of the same value in a list in a sorted way For example, if we have:
arr= [1,4,5,1,6,4,7,5]
How can I group the items so the result is [1,1],[4,4],[5,5],[6],[7]?
A: Using itertools.groupby:
from itertools import groupby
arr= [1,4,5,1,6,4,7,5]
out = [list(g) for _, g in groupby(sorted(ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: What does "Origin is unreachable" mean? "Origin is unreachable" is an error message that can appear when trying to access a website or online resource. It means that the device or network that you are using to access the resource is unable to establish a connection with the server hosting the resource.
To resolve th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Why I get this error, when I run docker build -t rpi7webapp:7.0-bullseye-slim-arm32v7 -f Dockerfile .? I want to make a docker image and take it to my Raspberry PI 4, and run it in a Docker container.
But when I build it on my Windows machine with this command: docker build -t rpi7webapp:7.0-bullseye-slim-arm32v7 -f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why bother testing for a WPF event that never happens? I'm in the process of trying to understand .NET events associated with drag and drop. I came across an example, DragDropObjects, in the GitHub repo with all the WPF code samples, and it's got some features that are a mystery to me. I'm hoping somebody can explai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Cannot get field name in messages.properties validation using MessageSource I implement the custom message by following this approach:
https://www.baeldung.com/spring-custom-validation-message-source
I can get the message defined in messages.properties. However, I could not get the field name by using {0} as mention... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: I don't know how to retrieve the currently selected value in a field does anyone know how to get the currently selected value from the select field? I have no idea how to do it, I tried many ways?
A:
document.getElementById('myButton').addEventListener('click', function () {
console.log(document.getElementById(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why page navigation numbers are not working correctly in my React Code? I do not like questions like "Why code is not working?" but I cannot find solution to my problem. I have a react component including a table and pagination numbers as follow:
Pagination numbers are working good but my problem is that, when I na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I pass props to bottomTabStack component nested within a screenStack component I need Tab1 and Tab2 to accept the params defined TabParamList so I can properly render these components with the neccesary data. How would I create the interface Tab1Props and Tab2Props?
import { createMaterialBottomTabNavigator }... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run a function on the pressed List.item only without it running on all the other List.item in the array. (React Native, Expo) So I am rendering a list of List.Accordion like this. Each Accordion represents a person and each list.item is a button that gives the user the option to perform an action(function).
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you darken the background in manim? I'm trying to animate the background to fade to a darker shade in manim. I'd like to focus on a single group of MObjects by creating a contrast in brightness.
I've searched through the web and haven't found a simple solution. Therefore, what I am trying to do myself is to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Automapper - Map fail from class to list I got the following mapping :
*
*Class A to List
*Class B to class C
So, here is the snippet:
// Mapping from class A to IEnumerable<B>
cfg.CreateMap<A, IEnumerable<B>>().ConvertUsing((i, o) => i.listB);
// Mapping from class B to class C
cfg.CreateMap<B, C>();
var listB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debug dockerized Django application running Uvicorn - ASGI on VSCode? I'm trying to run debugpy in attach mode to debug on VScode a dockerized Django app. With the following configuration on launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Likes system on PHP and AJAX I have nicely working likes system, however, I want to add one more thing. I want my heart icon to be updated simultaneously with the likes counter. At the moment, the likes counter performs with a slight delay after update of the heart icon.
Here is the script when everything works corr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do TCPDF has support of Urdu font "Jameel Nori Nataleeq"? I am trying to configure a Urdu font.
Reference URL:
https://urdufonts.net/fonts/jameel-noori-nastaleeq-regular
As I added the font into TCPDF using script
PDF::SetTitle('Hello World');
$fontname = \TCPDF_FONTS::addTTFfont(base_path('storage/f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to do web scraping of this url ->" https://www.youtube.com/@PW-Foundation/videos" I used BeautifulSoup and request libraries but I am getting confused on how to use find_all() to extract url, thumbnail, title, number of views and time of posting of first five videos of the given URL.
from bs4 import Beautiful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I correct the error: RUNTIME ERROR: Compilation error on line 4. Index out of range taking subset of y I've built a linear regression model using rjags but I am getting a runtime error saying the index is out of range. I've looked for advice online but can't find anything that I understand or addresses this e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to call a js function into seperate div blocks to update a number I am trying to create an achievement tracker that when you click a checkbox it will update a number on how many you have completed in that section. But how I have it implemented now the number only updates on one of the div blocks.
HTML
<div class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to load react-i18next before redux-persist persist action I recently added the package to a project that uses redux and redux persist.
In this project a lots of texts was writen in redux initial state and i want to use react-i18next in redux initial state to translate these texts, is there a way to overcome this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JTable cell editing I know, this quesition was (partially) answered here, but nevertheless I'm not sure if it helps me further: how do i listen to a change in any cell of a JTable (i.e. get the cell, that is edited and at least the new value) and consequently change the value in one (than any) other cell? (like in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: C# MongoDB Upsert object inside array I am wondering how to upsert object inside of an array using C# driver for MongoDB.
Document structure:
{
entity: {
identifier: 'id-001',
name: 'test-entity',
status: [
{
serviceName: 'service-1',
details: '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add Jest test sequencer for test files? I have test files in a order as shown in below image,
When I run npm test or jest __test__ , test files run in random order every time.
I want fix order as below
001_user.test.js
002_project.test.js
003_model.test.js
How to achieve this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75574479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How much iOS dev knowledge is required to solo develop apps with KMM? I'm an Android dev considering investing time in KMM. I know you need to use Swift UI, but other than that, how much iOS dev knowledge do I need to develop an app that uses databases and API?
Would Flutter be a better solution for a solo mobile de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: target_link_libraries is not working CMake target_link_libraries is not working CMake.
I'm going to build a static library in CMake consisting of the library I just created and another library as an archive but using target_link_libraries doesn't work
For complete understanding, I provide my CMakeLists.txt:
cmake_mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to hide the Load More button when all posts are displayed Implemented dynamic loading of posts using AJAX. The code works and the posts come as they should. Now the problem is that I need to hide the button when all posts have been displayed, but I don't understand how to do it. How can I get the number of posts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When cMake is run as part of my Android Studio build process, what dictates which architectures it's building for? I keep getting the following build errors:
Error Stack Trace
> Task :app:buildCMakeDebug[arm64-v8a] FAILED
C/C++: ninja: Entering directory `/Users/ME/repos/XXXX/XXXX_JAVA/app/.cxx/Debug/1c626b5a/arm64-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to match data in rows from one data frame to the column names in another data frame? I have 2 data frames. One is the details of all calls for service in 2021 and I named it data_1. And the second is a code file that will allow you to convert coded fields into normal descriptions and I named it code_file. The co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to expose kafka using istio ingress with TLS? I have got a problem setting up external kafka using istio. Plain tcp (SASL_PLAINTEXT) works fine. See my config:
k edit gw istio-configuration-gw
- hosts:
- '*'
port:
name: kafka-0
number: 9094
protocol: TLS
tls:
credentialName:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to resample a time series in DataFrame so that each time series have the same number of rows? I have a time series in a DataFrame. The time series capture trajectories of the same path traversed, i.e. acceleration and rotation in x, y and z direction and a label (str). The timestamp is used to indicate the point... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: islower() function not working in C++. What should I do? I was writing a code and could not get my mistake. Finally, when I did, I was surprised.
islower() is not working or maybe I am stressed out of doing coding for the past 2 hours. Will anyone help me out here? But the function isupper() is working fine. I am us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Pycharm needs to reindex every python installation every time it is restarted Up to an hour is being each time that Pycharm is restarted , even when it is shutdown gracefully/cleanly. A clean shutdown is not sufficient to avoid a full reindexing. Since there are a have a half dozen python installations across diffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it important to keep blockhash of transaction in struct? For example, I create a struct name Shipping that includes all attributes about goods shipping such as shipDate, quantity and etc. If I want to query the data, should I call them by using mapping or using blockhash? And if I must use blockhash, why must I u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: I am trying to get my enemy to move. It is an object class. Im new to pygame and the tutorials i follow are not working No matter what I try I cannot figure out how to get my enemy object to pace the screen. I'm not sure what else to try as I'm new to Pygame. I have all my code below and I will provide more if I lef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variable Name being read instead of its Value - @svelte-put/preprocess-inline-svg I am using @svelte-put/preprocess-inline-svg to handle SVG's in my sveltekit app.
I have an array of strings that has all of my icon names in it.
Whenever trying to use:
<svg data-inline-src=${realIconList[3]} />
I get the error: cann... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to develop third party module in Squid? I plan to use Squid as a proxy and need the functionality of allowing/blocking HTTPS requests based on the website URL and request body content. I think the feature can be implemented in a separate third-party module rather than modifying the source code of Squid.
On the T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible developing VSTO application without purchase Excel? Microsoft SQL server has special pack for developers, but Excel has no. My customer has legal Excel, but I'm developer, not end-user and I have no legal Excel in my computer.
There is a case with virtual machine, but sharpness of font is and developm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UTF-16 stream does not start with BOM Loop over the .txt files to populate the dataframe with the filename and file text:
for i, f in enumerate(files):
# Open the file for reading
file = open(f, encoding='utf-16') # Changed from default encoding of utf-8
# Read the file contents
text = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: Merge Modules in Visual Studio 2019 and later and MS recommendation We are using VS since VC6 and use C/C++ merge modules since they are working properly in IIRC VC7.1.
I very recently read this document from MS:
https://learn.microsoft.com/en-us/cpp/windows/redistributing-components-by-using-merge-modules?view=msvc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to build Electron JS with Sqlite3? How to build Electron JS application and sqlite3 module with Electron Forge (or Electron)?
Sqlite3 is problem to build.
Error
An unhandled rejection has occurred inside Forge:
Error: node-gyp failed to rebuild 'K:\NODEJS\electron-js\node_modules\sqlite3'.
For more information, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jetpack compose - Building a column with children separated by a divider I'm trying to build a custom Column whose children are separated by a divider that's provided to it. The divider should only be applied between children that are actually rendered.
I initially thought of trying to replicate Arrangement.separate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Phaser set draggable for group so I have a group of tiles, which I would like to make draggable, But i've seen in other answers that moving a group or child isn't possible, so what are the alternatives to that, other that just making a different variable for each tile.
UPDATE
So i've tried making a container, and i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uncaught SoapFault exception: [HTTP] Error Fetching http headers error
<?php
ini_set('default_socket_timeout', 5000);
// SOAP sunucusuna bağlanmak için kullanılacak WSDL adresi
$wsdl_url = "https://eservice.albarakaturk.com.tr:10214/invoiceincomingsite/HesapBilgileriService.asmx?WSDL";
// SOAP sunucusuna bağlanmak... | {
"language": "tr",
"url": "https://stackoverflow.com/questions/75574515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use Nektos act on windows with Docker For whatever reason when I try to run the command act I get the following error:
←[33m[GitHub Actions Demo/Explore-GitHub-Actions] ←[0m Start image=catthehacker/ubuntu:act-latest ←[33m[GitHub Actions Demo/Explore-GitHub-Actions] ←[0m docker pull image=catthehacker/ubu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Organize Folder - PHP 553 / 5.000
Resultados de tradução
Resultado da tradução
I have a folder that basically contains other folders like 'NAME - H:I - D/M/Y' and 'NAME - PHONE - H:I - D-M-Y'. When I use PHP's scandir(), it sorts alphabetically, which is how folders naturally look on my server, but I'd like to someh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Change separators in agecon bibliograhy style latex I want to use the agecon bibliography in latex, but replacing the dot separators after Year and Title with comma separators.
I have now the following output:
Adams, R. B., Almeida, H., Ferreira, D., 2005. Powerful CEOs and their impact on corporate performance.
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to set wait until function be complete without using of ajax or jQuery im trying to verify JWT in front-end, as you see, i get a token in Login
.then((response) => {
if(response.data.token) {
localStorage.setItem('token', response.data.token);
localStorage.setItem('use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75574525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |