text
string
meta
dict
Q: How Can I Make Form Elements White? Hello I shared my codes on code snippet. I want to make form elements (enter your name, date of birth, gender sections white) I tried to find a solution and even used important tag but it did not work. Any help appricated. Thanks already.Also I wanna add icons next to first name l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Group Array by Object key where key is an object I want to group this array by rg_ext objectKey, where every key inside of rg_ext is equal matches with rg_ext in other object. like this.. const RoomsPrices = ref([ { rg_ext: { class: 5, quality: 0, sex: 0, bathroom: 2, bedding: 3, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: revit api filter a chain of lines inside family instance I have the following family instance which shows a box section of a bridge. The section is defined by an outer chain of lines and an inner chain of lines. I can loop all the lines and arcs using a Filter for CurveElement but I don't think I can find out which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Listen for variable and trigger rebuild in Flutter GetX I am using Flutter GetX and would like to listen to some variables in my custom GetXController... class HomeScreenController extends MyGetXController { var isLoading = false.obs; var isError = true.obs; } The Problem: I want to use the observed variabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding what switch statement takes So I came up with an idea to create a calculator that converts Binary Hexadecimal and Decimal Numbers, so after a short break to remember how to convert I started my code in c and this is where I got stucked: #include <stdio.h> #include <stdlib.h> #define NULL ((char *)0) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: LowMemoryKiller folder missing!? (Redmi 9 Prime, Galahad/Lancelot, Android 11 MIUI 12 I've been posting about this on a lot of forums but no response so far. Recently I've noticed MIUI being a little more aggressive than usual on background killing which was killing (no pun intended) my productivity! I've done some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Include or exclude (license) files from package data with pyproject.toml and setuptools TL;DR How does one reliably include files from LICENSES/ (REUSE-style) in source archive and wheels for a Python package with a src/ layout? How does one exclude specific files? Details I have a project structure that looks like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: API request resulting in 304 not modified I have a vuejs application and an API written in ruby and sinatra using puma server. Requests to the API are validated with a JWT (in the header). It the JWT is expired, the API replies with a JWT expired message ; the client then sends a refresh token asking for a new JWT ;...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running multiple files on the Judge API I am trying to compile multiple files with the Judge API. I have two GO files, main.go and main_test.go. Additionally, I have the mod file and one run.sh script. I the zip files and base64 it and send the result to additional_files as stated in the documentation. The contents ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Include zeros instead of null using relational algebra operators Consider the database of a shopping platform that allows different shops to sell different products to different buyers. No two shops sell the same product. The database has the following schemas: buyer(bid, bname), buy(bid, pid, date, time), product(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to map 1 and 0 of a data frame as certain character in R Here is a data frame involved 0 and 1, only the first column are characters: df <- data.frame(ID = c("A", "B", "C", "D"), Col1 = c("0", "0", "0", "1"), Col2 = c("0", "1", "1", "0"), Col3 = c("0", "0", "0",...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python bytes.decode() unable to decode git object I have the following code: import zlib import os ... for current, subs, files in os.walk('.'): for filename in files: # in format ##/#{38} path = os.path.join(current, filename)[2:] # 'info/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get object support in Kotlin? The value of the support object is null It is configured using retrofit and API, but ad support is not configured data class QuoteList( @SerializedName("data") val `data`: List<Datas>, @SerializedName("page") val page: Int, @SerializedName("per_page") va...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to resolve the webgl build (TypeError : Cannot read properties)? Error while build uploaded in webgl, And It's a brotli compression. TypeError: Cannot read properties of null (reading 'addEventListener') latest build.framework.js unity webgl
{ "language": "en", "url": "https://stackoverflow.com/questions/75634482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JsonSerializerOptions and ReferenceHandler.Preserve For the sake of reuse, I have decided to make a razor component to render a list as it seemed to be the right course of action to solve the problem. Note that I am quite new to Core and have been working with the oldschool Web Applications. Now, I have two entities...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to represent list of object property value changes? I need a bit of help with data modeling. I have an object with a few properties that represent the task: class Task( val id: Int, val name: String, val dueDate: String, val priority: Int, ... ) Now user can modify each of the task propertie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Scala, circe and decoding In scala and circe, given Json objects as follows import io.circe._ import io.circe.syntax._ val x: Json = Json.fromString("foo") val y: Json = List(1, 2, 3).asJson I would like to divise a way to detect if the content of x is a really a String literal (which is the case, "foo") while y...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fully load up page components in react.js I got a react template online, and i am trying to build in some logic to it. The problem now is this, when i navigate to a new page after clicling on a <Link /> the page does load up the images, and javascript files does not load up till i hard refresh the page Take a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Session management with express-session I don't want to make cardinal mistakes when creating session management. I know the definition these words However, I come to you with a few questions because not everything is clear to me. * *Can session management be equated with JWT? *Can session management, e.g. using e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is a txt File Not Affected After Python Program? I've written a program to check for and add words to a txt file stored locally in my working directory, but this file is not affected either during or after my program runs. This program is obviously not secure as far as user input, but is for personal use so I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to copy a file to every path in a file? File.txt has list of paths - path per line. I need to copy to_be_copied.txt file to all the paths present in File.txt How to get each line in file as second argument to cp command? cp to_be_copied.txt ..? Ex : File.txt : dir1/subdir2 dir1/subdir1 dir1/subdir3 I want to cop...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reactive WebClient GET request with body fails in MockWebServer test In my connector class im down-streaming an API GET call with a body to another service using Spring WebClient as below. public Mono<SampleResponse> getSampleResponse(final int id, final SampleRequest sampleRequest) { return webclient .m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to resolve {"rows":{"length":10},"rowsAffected":0} the problem is that the SELECT query returns this {"rows":{"length":10},"rowsAffected":0}, I specify that length is the number of occurrences that I added //create data base end able, it work async createDatabase(){ await this.sqlite .create({ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Constructing a regex pattern using result from an awk function I am constructing a regex pattern using the result digt_rl obtained from calling the function dgrul. Firstly I have to remove the enclosing brackets [...] from digt_rl and store the result in dgt. Then I have to construct the regex expressiion in rl usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Radiometric correction - Python -Landsat8 I was trying to do a radiometric correction in a landsat8 satellite image, and I used two formulas that I found on the internet ,I'd like to double-check my work to ensure that it's done correctly. I wrote this code. Dict_Of_Bands = {2: Blue, 3: Green, 4: Red, 5: Nir} Landsa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incase of converting ubyte file to csv file why that 2 line is needed f.read(16) l.read(8)? #convert ubyte to csv file [ Here what is the use of this 2 line f.read(16) l.read(8) With out that 2 lines image can not be seen properly ? I just want to know about this ](https://pjreddie.com/projects/mnist-in-csv/) Here w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to use std::ofstream* inside a struct in c++ I have a structure with properties like a number, a string, and a file ID. I want to use the std::ofstream class for writing to the file. Then, I will need to create a vector of this type and the vector size will change throughout the program (I do not know the size b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iniciante com vontade de aprender C# Olá, Boa noite! Meu nome é Danilo.. estou começando agora no caminho da tecnologia e tenho muita vontade de aprender a linguagem C#.. e estava aqui no STACKOVERFLOW e vi seu perfil e me chamou muito a atenção.. então desde peço desculpas se estou te atrapalhando!.. mas eu queria ...
{ "language": "pt", "url": "https://stackoverflow.com/questions/75634511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: xamarin android USB CDC simple example I want to connect some custom USB CDC device(STM32) to android phone. I already have made most of other parts of app in the Visual Studio 2022 with xamarin for android. Based on my internet search I will need some external lib for xamarin USB android combination. Most internet ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Redux removes all elements from cart instead one? I'm making simple ecommerce service using React and classic Redux. I have problem with deleting items from cart. When I click delete on button attached to one products it removes all elements from cart. In my opinion code is correct, I compared it with few other ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to separate user login session and admin login session in django I have created small ecommerce website. User can register and login also created custom admin panel for admin which can product add, update and delete. User and Admin both URLS is different. problem is that when user login into website after I'm hi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SearchFilter functionality from data fetched from wp backend I'm working on category filters and also trying to implement search function. To search for items. My category works perfectly, but still finds it hard to implement the search filter for items. My items are fetched from wordpress backend. My SearchFilter c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: efficient way on excluding values from a database query based on timestamp I'd like to select all instances of Link for Monitors which last_change affect a Shop. Condition: if there is a Shop linked, it cannot have a Customer linked and the other way around. Also each Monitor can only occur once with every theme. cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bot object has no attribute current_giveaways @tasks.loop(minutes=1) async def check_current_giveaways(self): currentTime = datetime.now() current_giveaways = deepcopy(self.bot.current_giveaways) for key, value in current_giveaways.items(): if value["gaDuration"] is None: continu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Get server templates related to each document in composite templates I need to get the templateId related to each document in a composite templates envelope. I am already calling the Envelope: get API to fetch recipient, tabs and documents under the envelope right after the Envelope: create API call. I cannot use an...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Typescript generates legacy JavaScript code although target is "es2018" while trying to learn Typescript basics, I ran into this weird problem: I am targeting "es2018" but the generated JS code is older...I think it is "ES5" what am I doing wrong here? index.ts import { sum } from "./calc"; function printMessage(ms...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vscode and class template argument deduction This line: std::array XXX{1,2,3}; returns "invalid use of template-name 'std::array' without an argument list". It looks like it's not using C++17's class template argument deduction feature. My c_cpp_properties.json contains these lines: "compilerPath": "C:/msys64/mingw...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ionic Cordova splash screen not showing provided image I have an Ionic Cordova application at the following versions "@ionic/angular-toolkit": "^6.1.0", "@ionic/cordova-builders": "^6.1.0", "cordova-android": "^11.0.0", "cordova-plugin-splashscreen": "^6.0.1", where I notice the splash screen is on longer using my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to determine the right mouse button holding in the GUI? I'm working with version 5.1.1 and I need to detect if the right mouse button is holding then popup a window on top of the button(picture) in UMG. I use input BindAxis in APlayerController: InputComponent->BindAxis("RightMouseButtonHold", this, &AGamePlayer...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Spring Batch that processes multiple dependent DTOs? I am a newbie with Spring Batch and I am having trouble processing Spring Batch with a list of DTOs that will be written to separate .dat files for each DTO depending on the foreign_ids of the MainDTO. Here's a diagram of the DTOs: (https://i.stack.imgu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Advice on building web form that sends and retrieves data from DB I have a insurance product recommendations tool built in excel where users will input some information (e.g. age, number of kids, monthly income etc) and it will perform some complex calculations to work out which life insurance plan provides the maxi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How do I customize the product dimensions in Woommerce? I have a variant product. The dimensions are set for it. When I select dimensions from a product, there is an ajax request How can I customize the content of the dimensions_html variable? see screenshot I tried it: add_filter( 'woocommerce_product_dimensions', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Three js crash and is too slow My three js game crash Hello, I'm trying to recreate Minecraft on Three js and I saw other people who were getting there. However, even when I display 50 Block the crash game as soon as I put them in my field of view The GitHub : https://github.com/ATLAbanana35/ThreeD-Pixel My cubes li...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Loop in nunjucks Hi I am currently building a website with eleventy for the first time. I am building the templates for eleventy with nunjucks and front matter and am currently dealing with an problem where I want to build an image carrousel with multiple images per page I have build a code that is working but far f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why would web crypto SHA-256 encrypt message while SHA-512 fail sometimes? I encountered this issue when trying to encrypt some message using RSA-OAEP. To my surprise (as a beginner in crypto) that in some condition SHA-256 works while SHA-512 doesn't. I couldn't find any helpful info from https://developer.mozilla....
{ "language": "en", "url": "https://stackoverflow.com/questions/75634547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting Permission Denied for Selenium Manager when running selenium grid via docker compose Tests fail as the selenium web driver cannot find executable browser drivers. And selenium manager is not able to work because permission was denied. WARNING: IOException running command [/tmp/selenium-manager693495908000269...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to control stepper motor with tb6560 using arduino This is my code to control stepper motor with tb6560 using arduino. But when i give a input through serial monitor the motor goes to that angle and comes back again. I want the motor to stop at the given input angle. CODE: // defines pins numbers const int step...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make timer not to restart after page refresh? I've written the following HTML and JS code, but not able to get the actual result. I want the timer not to restart after I refresh the page. var spd = 1000; var spdVal = 1; var cntDown = 5 * 60 * spdVal; cntDown += 7; setInterval(function () { var mn, sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What means the gen2 in Ubuntu Server 22_04-lts-gen2? I am new to Azure VMs and want to have the latest Ubuntu Server stable LTS release. However the list of images isn't quite clear to me: az vm image list -o table --all --publisher Canonical --offer Ubuntu --sku 22_04-lts --architecture x64 // ... x64 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel get specific column from main and relation table by with function I am having problem to fetch specific columns from main table and the relation table by with function. Two table product product_image Product Class have relation code which is public function productFeatureImage(){ return $this->hasOne(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: clock program (6 seven-segment digital tubes) in c51 /*Use C51 to write the program for STC89C52 single-chip microcomputer, the clock frequency is 11.0592MHZ*/ #include <reg52.h> #define unchar unsigned char #define unint unsigned int #define unlint unsigned long int #define fosc 11059200ul #define N 500//tick=2ms ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails-React app deployment fails on esbuild bundling because of inconsistent case-sensitiveness I try to deploy a rails-react app and get an unexpected behaviour. When I try to deploy, deployment fails under certain conditions. I use Rails 7 with esbuild in combination with React. The deployment happens through Capi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dbt incremental model with merge incremental strategy for Snowflake table I am incrementally updating a Snowflake table with dbt incremental model with merge incremental strategy to avoid duplicated records. I have provided the following configurations to my dbt SQL model but it looks like this model is deployed as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to safely release/cleanup unused unmanaged sequelize transaction? Assume the below code, async saveToDatabase() { const transaction = await sequelize.transaction({ autocommit: false }); const user = {name: 'Kamal'}; const someConditionWhichFails = false; try { if (someConditionWhichFails)...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the expression `requires { typename enable_if_t>; }` the same as `fun_v` "by definition" for any meta-predicate fun_v? I'm reading Josuttis' C++20 the Complete Guide, and I think I've absorbed that a clause like the one in the template below template<typename T> requires requires { typename std::remove_const_t<T>...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Stuck at tqdm initialization (stuck at 0%) Code Image What might be the solution to this problem?
{ "language": "en", "url": "https://stackoverflow.com/questions/75634571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Clash with package Hyperref Please consider the small reproducible example below. I am getting an error when trying to use hyperref links. I am getting an error saying that there is a clash, however, I have only called the package one time. I wonder if some one can give a hand on how to resolve this problem. The ide...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django makemigrations I set two apps,when i migrate the first one, it's done perfectly,but when i migrate the second one ,there is something makes me confuse, the second database has the first app's table data,i just want to have the second app's data in the second database,how can i do? I set two apps,when i migrat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to create mutiple list from mutiple lines input So I have multiple lines input and I want to create a list for each line EX Input: 5 2 6 1 7 3 4 2 10 5 12 4 EX output [5, 2] [6, 1] [7, 3] [4, 2] [10, 5] [12, 4] please help, thanks I have try create with for i in rage but didn't work lst=[] n, s = [int(y) for y...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to compare old v new value after the string update I am learning rust borrow checker and struggling with this: I want to compare the old value and the new value after the string has been cleared fn main() { let mut s = String::from("first_word second_word"); let idx = first_word_index(&mut s); l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Patterns to avoid cloning around async block I’m just wondering whether there are better, more idiomatic ways of cloning parameters prior to them being moved into async blocks? For example in the following code: use tokio::sync::mpsc; #[tokio::main] async fn main() { let (tx, mut rx) = mpsc::channel(32); le...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cuda linking error in Visual Studio when statically linking to device code Using Windows 64, Visual Studio 2022, Cuda 12, I cannot build and use static libraries using cuda device code. Example code: ----------------- File Func.cuh: ----------------- #include "cuda_runtime.h" #include "device_launch_parameters.h" _...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where exactly does the qt example network-chat send message? From the qt offical example network-chat. I want to find by which code sends the network message. From the UI code we can find this returnPressed calling client.sendMessage: void ChatDialog::returnPressed() {... client.sendMessage(text); ... } It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert country names to ISO 3166-1 alpha-2 values, using Flutter I am getting country name and state name from country picker in flutter. But the required thing in my API is to place ISO Alpha2 code of country name. can anyone guide me how can I do that in flutter? I tried to search different things on inter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Security: how to allow an application (grim) to be launched only from an interactive shell? My need is the following: I would like to allow an application (grim) to be launched only from an interactive shell, but not from another application, especially a script shell... * *In principle, is this possible with AppA...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can not compile libcurl on C/C++ I want to run a program using curl, but for an unknown reason it can't compile my programm, apparently, the compiler is unable to find the library. I'm using GCC on Windows, I have installed Curl via Mysys2. The error I recive when I try to run any program where I include curl is: fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: internal/modules/cjs/loader:1042 throw err; I am getting a follwing error. code: 'MODULE_NOT_FOUND', requireStack: [] * *Deleted the node_modules directory *Deleted the package-lock.json file *Run npm install *Also Run npm run dev
{ "language": "en", "url": "https://stackoverflow.com/questions/75634586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: run time error 380 Could not set the RowSource Property. Invalid Property Value this is the excel sheet I am designing a system that is supposed to show the list of items in excel sheet but when I run the code, I am getting Run-time Error 380 stating Could not set the RowSource Property. Invalid property value ''...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Empty Array returned for Issue Links by Jira Cloud REST APIs In Jira it's possible to link issues with relationships such as "blocked", "blocked by", etc. While fetching one or multiple issues using Jira Cloud REST APIs (v3), within the object for each issue in the response, the IDs of the issue links should have be...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: crispy forms creating fields with id of other form I am trying to add some JS to my password field, so I need its ID. I am getting error: It makes sense if I look into HTML with inspect. There are 2 identical password fields, but in my forms, I am adding ID to only one of them. Forms: class CustomUserSignUpForm(Use...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Net.core Project - Where Should Pictures Be Stored? In all the projects I have done so far, I have stored the images in base64 format in the database. In my next projects, I will store the site on the site server. But I am not sure where to store these images. I don't want to store it in the wwroot folder. Because t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Login & Logout is not calculating instant E & G columns are dropdowns. If I select E5 cell Login, it will store the selected E5 cell time automatically. Also same for G column. But I am unable to calculate total Login hours. It is not calculating instantly. =IF(E5<>"",IF(AND(E5<>"",CELL("address")=ADDRESS(ROW(E5),C...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expo AuthSession does not work on the first try I am using expo-auth-session to create login screen with Facebook and Google. The issue is gglResponse (full code snippet below) is null on the first try. If I call the gglPromptAsync() again the second time, it would resolve to 'success', assuming the user is able to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot grasp "borrowed value does not live long enough", please explain Here is segment I've a problem with, basically just pushing a &str to Vec<&str> in the loop fn main() { let mut accounting = vec!["Alice", "Ben"]; loop { let mut add_input = String::from(""); io::stdin() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Bind System.Data.Linq.Table to dataTemplete of ListBox in Dialog in WPF C#? I have AssignDb.dbml in my project which has non related tables such as RateTables having one column rateValue of type integer. I have created separate ObservableCollection class of RateTables in my project for getting values from Rat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a more efficient way to quickly edit many variables with corresponding values from a table in Java? Here is my current code snippet, without posting all the other information, assume that everything works correctly. There is nothing wrong with the code. As an example, I am reading a text document with Grabb...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Zero bytes File using php image resize function compressImage($source, $destination, $quality) { // Get image info $imgInfo = getimagesize($source); $mime = $imgInfo['mime']; // Create a new image from file switch($mime){ case 'image/jpeg': $image = imagecr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query - Excel - Dynamically change the custom color formats in Conditional formatting Intent: Be able to dynamically change the ‘Custom format colors’ of a Conditional formatting rule based on HEX (or RGB) values stored in a different cell. This should allow future changing of background/foreground colors without ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filling the 9x9 matrix randomly and non-recursively with the recursive function can you help me please enter image description here i generated numbers but not with recursive function and no unique numbers
{ "language": "en", "url": "https://stackoverflow.com/questions/75634609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm getting this error while accessing phpmyadmin on localhost: Fatal error: Uncaught mysqli_sql_exception: Unknown database 'login' in G:\xampp\htdocs\jss\config.php:3 Stack trace: #0 G:\xampp\htdocs\jss\config.php(3): mysqli_connect('localhost', 'root', Object(SensitiveParameterValue), 'login') #1 G:\xampp\htdocs\...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: best way to minimise redraw of react component I am fairly new to react and I wanted to touch base on what is the best architecture for a simple problem. I have an array of Block components that I display on the page. Every block contains an input and a button next to it. Every time the user clicks on the input it g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove a 100% right margin from a div That holds a Chartjs canvas I am using Chartjs to create a Chart. That Chart is being held in a ChartHold div. And even though the CSS Object has a 1px right margin the div has a 100% right margin.Because of that the other charts are under the original one but they are su...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xlookup formula with more than one criteria i am trying to match a value using xlookup formula to find I1 in A and if H1>C and H1<D return B i have below this but cant figure out how to make it work =XLOOKUP(I1,A:A,B:B,,IF(AND(H1>C,H1<D),B:B,"none")) i have an index and match that works but im trying to learn with x...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rust macro: generate if-else-if chain from variable number of inputs I need a macro to prevent the need to write the following code for over a dozen powers of 2: pub(crate) fn calc(samples: &[f32]) -> Vec<Complex32> { let buffer = samples; let mut res = { if buffer.len() == 2 { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I change audio sources with three.js' THREE.AudioLoader? I'm working on a city soundscape for a project (live model here: https://drush92.github.io/nftaudiometaverse/nftropolis/ takes a while to load) I have loaded some audio using: let audioFile = 'audio/police_officer.wav'; // load a sound and set it as th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my formula show #VALUE! when I used a variable in "LET" function, but when I referenced outside it doesn't break, both have the same formula When I used the variable based_on_timetable in the LET function it return #VALUE!, but when I referenced H9# it works? Both have the same formula. #VALUE! problem 1st ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: nlohmann Json not working with std::array I have the below program to convert my class into JSON object using Nlohmann JSON, When I used the std::array<unsigned char, SIZE> it gave an error, but when I used the std::array<char, SIZE> it gave me the JSON object. Here is my Code from VS2022: #include <iostream> #incl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Fail to get POST response from Server, using Ktor Client android First time i am using Ktor in my android project I am not getting response from server, my requirement is to make a POST request with JSON in body request format of JSON as { "country": "Malaysia" } I tried on postman it is working fine, but not wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set firebase notification on WearOs I'm building an application and want to receive firebase notification on both mobile and wear app, both app having the same package name. I've using FirebaseMessagingService class in both mobile app and wear app. Mobile app receiving notification successfully while wear app...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pytest command reports "Exception ignored" and "OSError: [WinError 6] The handle is invalid" I found this error running pytest from the command line. All my tests still passed but it bothers me: Exception ignored in: <function Pool.__del__ at 0x000001F5C70214E0> Traceback (most recent call last): File "C:\Program ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the compound-requirement syntax just syntactic sugar for a simple-requirement followed by a nested-requirement? [expr.prim.req.compound] contains an example: [Example 1: Given concepts C and D, requires { { E1 } -> C; { E2 } -> D<A1, …, An>; }; is equivalent to requires { E1; requires C<decltype((E1))>; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I multiprocess this python function? I'm trying to multiprocess following snake_process function of the following code. I tried reading docs to make it using multiprocessing.pool, but I failed. agent = Agent() def snake_process(x, snakes, snake, nets, max_score, ge): # print("process no "+str(x)) wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Having issue trying to print a statement for this loop # welcome to the game print("-- Hello and welcome to the 'response time game' --") print("-- In this game you will be prompted to press 'ENTER' after 'x' amount of seconds --") print("-- LETS SEE HOW GOOD YOU ARE WITH TIME --") print(' ') # specify how many rou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Flutter align IconButton to the right in Row Here is my code; SizedBox( width: size.width, child: Row( children: [ Padding( padding: const EdgeInsets.only(left: 10, bottom: 10, top: 10), child: ClipRRect( borderRadius: BorderRadius.cir...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: string SQL results in an error, how can I fix it? This is the error: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list It shows that the error is in this SQL line (Rating has a ratingId but it is an AutoNumber): public static bool InsertRatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: how to convert number to string value from array javascript How to make age to be string from array javascript by function base on key change number to string. don't update original value. const user = [ {id: 1, name: 'john', age: 32}, {id: 2, name: 'Chris', age: 33}, {id: 3, name: 'Write', age: 34} ];...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to Import Excel File to Database with Mapping Laravel Hi i created a demo project that i can with import excel files and get them into my database with laravel excel but what i want to do is with mapping not just a simple import and get them into the database like if the excel file is missing a field or a name i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web scraping - How to scrape different websites using javascript I need to scrape some products data from three different websites. Since the tool will need to run on a client machine that don't have many digital competences, I need to setup a simple process to achive this. I'm very unsure what can be the best appro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to get the value of a player statistic? I am developing a Minecraft Fabric mod with custom player stats. Here is how I created a custom player stat: public class ModStats { public static final Identifier MINING_STAT = new Identifier(ExampleMod.MOD_ID, "mining_stat"); public static void registerModStats(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setting seed number for ergm in statnet R I want to set the seed number in ergm, so that my network analysis is reproducible, but when I run main_sup <- ergm(supnet ~ edges + nodefactor("work") + nodefactor("income") + nodefactor("edu") + nodefactor("religious") + nodefact...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }