text
string
meta
dict
Q: Problem when Wordpress parent category archive displays subcategory title in relation to latest post I would like to have articles from subcategories posted under a parent category. The problem is, when I try to do this, the parent category title in h1, changes automatically and displays the subcategory to the lates...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pytest order test A, then test B and then test A again Is it possible to order tests the way, that test A will go first, then test B go second and then test A will go again as third? I am using pytest-order lib. Tech stack: Python 3.8.5, pytest 6.1.0, pytest-order 1.0.1 Here is the code used: import logging import p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CoordinatorLayout - how to animate anchored views I have CoordinatorLayout parent and inside this parent is layout bottomSheetContainer which will contain BottomSheet which has BottomSheetBehaviour attached to it. And then above it there are anchored 2 buttons which are basically hovering over top of BottomSheet. Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: in angular 15 submit button not enabled with captcha validation When I click on the submit button in the login form in Angular 15, the submit button is not enabled with username, password and CAPTCHA validation. If I remove Google reCAPTCHA validation, then this button is enabled. How can I solve this problem? <sect...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How add defaults values to existing rows while using GETDATE() and SUSER_SNAME() for newly added data in SQL Server 2019 I have a table with data. I need to add two new columns author and time_ct. I ran this query for adding the data. My expectation is to add 0000-00-00 00:00:00.0000000 and not_set to existing rows....
{ "language": "en", "url": "https://stackoverflow.com/questions/75614037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: openstreetmap is not showing complete map inside div My Code for Map is here: when i click on Span text then it shows the map but not full. var latitude = document.querySelector('#lati').value;//$('#lati').val(); var longitude = document.querySelector('#longi').value;//$('#longi').val(); var open_address = document....
{ "language": "en", "url": "https://stackoverflow.com/questions/75614038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: what is correct way to add python variables to sql query? int is incompatible with date (206) I have .ipynb script which create 3 variables which i try to use for SQL function already created on MS SQL server. Structure of function is like this: [YS_Cheque_check] (@createddate date, @FILID int, @SUMCHEQ float) So i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any alternative of swagger? I want to integrate money transfer service into my spring boot application and it works with soap services. As much as I know swagger doesn't work for soap. Which specification tool can I use in my project for soap services? Can you advise any alternative of swagger working for s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there anyway to get ZodError from refine when we have invalid_type? import { z } from "zod"; const Schema = z .object({ name: z.string(), description: z.string(), startDate: z.coerce.date().refine((date) => date > new Date(), { message: "Start date must be in the future", }), endDate:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I merge several parquet files into one using awswrangler? I am trying to use awswrangler.s3.merge_datasets() using a glob source string but it isn't working for me. https://aws-sdk-pandas.readthedocs.io/en/stable/stubs/awswrangler.s3.merge_datasets.html import glob import awswrangler as wr wr.s3.merge_dataset...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mobile menu with irrational behaviour (jQuery) I have problem with a jQuery-script inside a WordPress website. I am using this script to expand and close sub-menu items in my desktop and mobile menues and it produces irrational behaviour. The script has a responsive part added so that it changes it's behaviour from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I automatically set chmod + x.husky /pre-commit for projects husky Since it is a multi-person development, in mac environment, it is required to set chmod + x.usky /pre-commit for projects, but many people may deliberately leave it unset in an attempt to submit the wrong code to the repository I know you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: QEMU starts blinking with custom boot loader in x86 I'm writing my own boot loader for i386 in NASM for education purposes. But when I'm running qemu with this it starts blinking and do anything but what I want. Here's my code: ; defs.asm %define STACK_SEGMENT_REAL_MODE 0x9000 %define STACK_SEGMENT_PROT_MODE 0xFFFFF...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unbounded local error for imported modules The following code fails with an UnboundLocalError. Does anyone know why? Shouldn't the interpreter know that os already exists? import os def fun(): a = os if False: import os fun()
{ "language": "en", "url": "https://stackoverflow.com/questions/75614054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SAML2 Logout Request not sending SMSESSION after 90 seconds I have successfully Implemented SSO and SLO using Spring Security 5.7.5. SiteMinder is my Identity Provider. I am getting SMSESSION after authenticating successfully. When I send SAML2 LogoutRequest after 90 seconds of Login my Service Provider (Spring Boot...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase Realtime Database write only permission I need a service account for a python script to authenticate to my firebase project. This service account should only have the right to write to a specific branch but not read, update or even delete anything else. The predefined roles (editor, owner) have too many per...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to produce a table using gtsummary I am trying to observe a change between observation points before and after and compare the result within two groups, that is the variable condition. I tried this code: Data %>% select(condition, before, after) %>% tbl_summary(by=condition) %>% add_p(test=everything()~"p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically unzip uploaded zip to S3 I'm generating large text files that can have up to ~50 MB. Zipping them cuts the size by half, 50 MB becomes ~25 MB. Instead of uploading text files I would like to upload a zip and let S3 unzip it. Does S3 support such thing (auto unzip)? A: You can create a Lambda function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Please take a look at this code. it works fine on Access table but after linked to SQL Database table is produced error strQuery = "SELECT tblAppointments.AppID, tblAppointments.ReservedDate, tblAppointments.AppointDate, tblAppointments.AppointTime, Left([tblSchedule].[DoctorsName],5) AS Doctor, tblSchedule.DoctorsN...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interpret XML data written in a CSV file (1st row 1st column) and covert that into a .xml file I have data in a csv file in 1st row 1st column which is in XML format test1@abc.comtest2@xyz.com I want my XML output to be in the below format: I am using Python to achieve this. Can you please help me in resolving thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: function with `message()` called during package startup - must use `packageStartupMessage()` for CRAN - but how? in my package dmdScheme on CRAN in the line highlighted, I call a function with message(...). This causes a warning on CRAN: https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/dmdSc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Centering multiple overlapping divs in flexbox I'm trying to center multiple overlapping divs inside a container div horizontally and vertically. They all have different sizes and should be displayed in the middle of the screen (no matter the size of the window) above each other. I tried to do it with margins per ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image processing in yolov4 chatbot Problem: Created a yolo4 photo processing chatbot. The chatbot accepts the photo, but does not process it and does not send it back to the chatbot. I work for googlecolab. @bot.message_handler(content_types=['photo']) def photographio(message): print(message) file = bot.get_fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When using npm scripts, how can I tell if I am currently running windwos or mac Since it is a multi-person development, in mac environment, it is required to set chmod + x.usky /pre-commit for projects, but many people may deliberately leave it unset in an attempt to submit the wrong code to the repository I know yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: When we can use keywords? What are the meaning or purpose of these words in the python? global , raise , assert, except, exec finally These words are keywords in Python but I don't know when or where we can use them. A: global = Use a global that is defined in a global scope SOME_VARIABLE = 123 def a_function(): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to replace repeated measurements with the mean of the first three or two measurements in R This is a slight variation on a question I asked previously, which I have not been able to adapt the answer for. When there are repeated measurements I would like to replace the associated BP/BP2 with the mean for the fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can someone explain me why am I getting two different outputs for the same input here? Here I created two variables a & b having the same input i.e 3 lists within a list. The way of writing is different for both. For a, I wrote as a=[[]]*3 and for b, I wrote as b = [[],[],[]], but both are in the end same, I believe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Why do I have to create a server with http.createServer when using websockets? This is a piece of code from Socket io docs: const express = require('express'); const app = express(); const http = require('http'); const server = http.createServer(app); const { Server } = require("socket.io"); const io = new Server(se...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DB ON AWS EKS v/s AWS RDS I just want to know which is cheaper running statefulset on EKS or DB on AWS RDS? I am thinking to migrate all my EC2 instances to EKS.
{ "language": "en", "url": "https://stackoverflow.com/questions/75614089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Traffic Manager to Load balance Layer 4 traffic between On Prem Physical machines and Azure VM Can Traffic Manager be used to load Balance(Active-Active or Active-Passive) Non-HTTP(S) Layer 4 traffic between On Premises and Azure Virtual Machines.
{ "language": "en", "url": "https://stackoverflow.com/questions/75614091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can we switch to normal tokenizer instead of subword tokenizer in Huggingface? I am working on a token classification problem using m-bert model. I am using default tokenizer using the following piece of code : tokenizer = AutoTokenizer.from_pretrained(model_checkpoint) With the above piece of code, the default ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: While loop to wait contact is updated status I'm using testcafe for automation in my product, right now we have flow to retry to update the contact in 5 times in each time will be 1 minuted. I have idea that will create white loop for this to wait refresh page until the contact is updated to expected status whil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my code not run in terminal but runs perfectly in VSCode with no problem? Screenshot of the terminal #include <iostream> #include <string> #include <fstream> using namespace std; int userGalleryNum; string userName; string userGrade; string command; int i; //weaponNumber = actualweaponnumber + 1 const i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Strophe.js: Fetch group wise users from roster instead of fetching all together and local filter I want to list a particular groups user only in UI because in my case each user can not list all user. In my case, user will have list of only those connections whose parent entities are connected. A: Do you want to wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace parentheses with a single dash only if the parentheses contain alpha chars I'm currently using this regexp (.*) \((.*)\)(.*) to \1 - \2\3 to basically change: [Genre] Title (subtitle).ext into [Genre] Title - subtitle.ext Problem is, it also changes: [Genre] Title (31.09.2023).ext into [Genre] Title - 31.09...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Problem: mod_fcgid: stderr: PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in I'm not expert in PHP, my host claims a CPU usage problem on my web site. I see on error_log a lot of these errors: 2023-03-02 11:16:46 Warning 114.119.159.129 mod_fcgid: stderr: PH...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to pull all available bonds listed on a particular exchange(NYSE) using Xbbg or blpapi Python? I'm trying to pull all available bonds in an exchange(NYSE) from the Blomberg terminal via Python. I want to retrieve the various bond data fields like say(Option Adjusted Spread ,S&P Rating, Yield to Maturity, Sector)...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using related_name in Django Template I have two models: Usecase and Usecase_progress. I'm creating a page where I can see a list of all the use cases with their information + the usecase progress for each use case. Usecase model: class Usecase(models.Model): usecase_id = models.CharField(primary_key=True, max_lengt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Navbar mobile view 2 lines If the navbar is in mobile view and you click on the hamburger, the navbar goes to 2 lines. How do I solve this? There's something wrong with the order-1. I would like to have the hamburger on the left in mobile view. I've been playing with it for a while now but can't seem to fix the prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sum of subset of array using python I have to write a python script in which I have given a list of element like this array = [414943, 12156, 119722, 138216, 43022, 20420, 153, 3124, 116222, 158488, 127, 306, 347871, 24723, 81097, 83145, 938, 14575, 44493, 89278, 93499, 65, 2096, 443, 111890, 137407, 1149, 589, 3127...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: The prop `checked` is marked as required in `ToggleSwitch`, but its value is `undefined` In my reactjs project, when I onchange the toggleswitch, I am getting the error as Warning: Failed prop type: The prop `checked` is marked as required in `ToggleSwitch`, but its value is `undefined`. I have an array which conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDB Aggregate $lookup on nested subarray document I'm using mongoDB and i'm trying to do some nested join between my Module and my Concept collection with mongoDB Aggregate. This is kind of folder/file structure with a folderName key for a folder and a name key for file. Here is my two collections : export const...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to assert Url of new tab with WDIO My test scenario is that: * *You go to url1 *you click button *you open another tab with url2 How to I assert the url2? I use assert(browser).toHaveUrlContaining('') But it assert the url1, so my test was fail
{ "language": "en", "url": "https://stackoverflow.com/questions/75614115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is the function of .strip() in this code am more interested on func_input.strip and func_map.keys why do I have to use the .strip are there alternatives? it actually worked for me but i just need an explanation. thank you. Please I need an explanation for the code below if func_input.strip() == 'exit': ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a way to open an app in SkyQ using an API call? I am trying to open an app through and API request to my SkyQ settop box. there is this endpoint: http://{{Sky Box IP}}:9006/as/apps which lets me see all my available apps, but then I want to open a specific app, but I can't seem to find an API for that. any...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to export a html table with images into excel file(.xlsx) in Angular Iam on an angular Project, and i am stuck on a part of it any help would be greatly appreciated So my requirement is to create an excel file of .xlsx filetype when i click on a button this excel should be populated with a html table that i am d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Gradle java-library transitive api dependency for a platform (BOM) artifact Just playing with Gradle java-library plugin and noticed that I can do something like this // project :a dependencies { // notice that I'm using 'api' here, not 'implementation' api platform('org.springframework.boot:spring-boot-depende...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDB schema validation for unknown number of attributes? I want to save documents like this: _id: ObjectId('63fdf80e4ab6021dad4ed24b') data: { index: 1, time: 1000, dataFieldOne: 1.44 dataFieldTwo: 2.752 ... dataFieldN: 0.15 } There can be any number of dataFieldN attributes, but I want to make sure that d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to solve this? I'm unsure I'm having a fair bit of struggle with this question, the question asks: Implement SQL statement to output forename, surname and problem description on the date of the 7th of July 2022, I can't seem to get it to display anything when I have wrote the code, is there anything t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Limit output in pine script, solutions? I created an indicator in pinescript, the indicator is quite complex. Unfortunately I've reached the limit of 64 outputs, but I really need to add the ability for the user to change color to a plot. Is there a way around this limit, at least color-wise? plotshape(shortpullback...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Percentiles - bin equal tertiles (data contains many ties) I need to categorize my variable "cases" based on tertiles calculated based on my controls. Obviously, the count of controls per tertile should be a third (~33%) but there is strong variation, I believe this is because I have many ties in my data (~20-40 tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to express the trait bounds of a generic method when implementing a trait that requires this method to exist? General Question I do have a struct that requires a type constraint on a generic method in its impl block. When implementing a foreign trait, I would like to rely on the presence of said method. Is there...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Define an auxiliary lemma to help prove such a lemma In my project of correctness of transition between regexp and nfa. I've defined the semantics of regexp type. The definition of semantic : datatype ('v)regexp = ESet | LChr 'v| Concat "'v regexp" "'v regexp"| Alter "('v) regexp" "('v) regexp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 500: internal server error with Jupyter Notebook (nbconvert updated) I am getting a pretty well-documented error when trying to run a Jupyter Notebook from my Mac Monterey 12.3.1, the 500 internal server error. This appears to be the problem: ImportError: cannot import name 'contextfilter' from 'jinja2' (/Library/Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am attempting to create a Rubik's cube solver using c# forms I am using 6 2D arrays in order to keep track of each face but when I run the following code it gets stuck in an infinite loop any suggestions? The Topface, Leftface, Rightface, Bottomface, Backface Frontface variabes are the 6 different 2D arrays. The R...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multithreading and passing the right instance variable in the threads python I am trying to start multithreading based on the values stored in a list of dictionaries. After starting all sthreads, I have to start bthreads, based on the Backfill value. I am struggling to pass the right instance and I would appreciate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practice for CD of a git repo with multiple packages with a dependency between them I created a git repository with 2 packages: pkg1 and pkg2. pkg1 is a dependency in pkg2. I want to keep them separated because one can use pkg1 only. In our CI/CD process, a merge request is created. after it is merged, the deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use paste0() in subset() I have a large dataframe with different diagnosis codes and date of diagnosis. The dataframe looks as follows: id Diag1 Diag2.. Diag10 Date1 Date2.. Date10 123 E052 F420.. F130 2015-9-20 2012-12-3.. 2007-2-5 119 A041 D072.. E059 2008-1-15 2017-9-1.. 2014-6-8 ... I manage to sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostgreSQL EXISTS and null value For example use Test table with only positive id value. Query select 1 from public.Test where id = 0 return empty result. But when I use this query: select case when exists(select 1 from public.Test where id = 0) then 'exist' else 'not exist' end resu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how check the given date day in oracle I need to check if given date is friday or not. if so, need to modify the date to sunday. for example 03-FEB-23 is friday, so need to change the bus_date to sunday. define cu_date='03-FEB-23' expected output bus_dat=05-FEB-23 A: To find Sunday of any given date's week, yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Executing a binary on an App Service Application I want to migrate my PHP web app (which is on Azure Repos) from Azure VM to Azure Web App Service (python, not php though) + Azure SQL + Azure Storage + Azure Redis. But there was a shell_exec() I was doing in my Azure VM in my PHP app when a specific button was click...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run SQL query in loop for different databases in Snowflake I have a table containing about 200 database names within my Snowflake, all having table named XX. I want to search for specific value inside a specific column, so lets say is somthing like this select <field1>, <field2> from <database>.public.XX wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Horizontal layout doesn't work after updating to Bootstrap 5 enter image description hereI updated my script tags to bootstrap 5. Here is my _layout file and the logon form I am trying to make work. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What is the > & <= version of %between%? %between% c(1,2) is equivalent to >=1 & <= 2 or >1 & < 2 if set incbounds = FALSE, but what if I want > 1 & <= 2? Is there an operator in data.table for it? A: You could do it yourself: `%rightin%` <- function(x, y) x > y[[1]] & x <= y[[2]] 1 %rightin% c(1, 2) #[1] FALSE ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do I need to set a value to range before I refer to it? Error nr 91 I have problem with an error number 91 - Object variable or with block variable not set which I don't understand. When I search for it on the internet and here it says that you to set a value to the range or it will be set to nothing, but why can't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to hide Out of Stock products from WooCommerce Products shown via Attribute Shortcode Hope you are well! I know there is an option in WooCommerce > Settings > Products > Inventory to hide Out of Stock products, but it is not working when we display products via WooCommerce Attributes shortcode, For example [pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: RxJava - How to avoid this race condition? I'm trying to insert some data into the local database on a background thread with a Completeable inside the constructor of my ViewModel public MainViewModel() extends ViewModel { public MainViewModel(){ localRepository.insertValueIntoDatabase().subscribeOn(Sch...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i call master api only once inside Layout in next 13 without using app directory . i don't want to call master api in all pages I want to call master API only once after that in all pages I want to use some data (specifically token from this). I am getting token from this API and I want to use this token in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VSCode doesn't open Merge Editor when merging branches Recently, I have been having issues with merging branches. I use the command "Git: Merge branch from..." to select the branch that I want to merge but, when I select it, the merge just overrides all the code from the branch that is receiving the merge instead of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inconsistent Validation Exception Types in Spring Web REST Controllers when handling Lists and Single Entities I am currently struggling with seemingly inconsistent behavior when dealing with request body validation in Spring REST Controllers. Validation of singular entities result in a MethodArgumentNotValidExcepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass lambda to argument in a function python Im trying to parse a yaml with a data-validation framework Deequ, and adding checks for data looks like this result.addCheck(check.hasSomething(arguments)) In order to make it more accessible i created this function for exp in checks[table]: params = checks[ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does generators work in javascript? What exactly yield does and what's the usage of * after function? I have been using this syntax to generate unique IDs: let i = 0; function* getUID() { while(true) yield i++; } const x = getUID() export default x And have been generating value as shown below: const id1 = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wrong section LMA address when using LD file I need to load the data sections in different address from VMA. so I defined 2 typed of memory and updated the LD file, for example bss section: .bss : ALIGN(0x20) { PROVIDE(__bss_start = ABSOLUTE(.)); *(.bss .bss.*) PROVIDE(__common_start = ABSOLU...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i have an author name bold in the text using \fullcite I am using \fullcite{pub1} in the text to fully cite a publication. Everything looks good in the text and also in the Reference section. However, I have now a need to bold a specific author (Jahn Mathew) in all the fully cited publications only in the ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: why we are using a bracket notation in if condition statement? const rps = (p1, p2) => { if (p1 === p2) {return "Draw1"} const rules = { rock: 'scissors', paper: 'rock', scissors: 'paper' } if(p2 === rules[p1]) { return 'Player1 won!' } else { ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Does VS Code have an equivalent feature to Notepad++'s "Project Panels" feature? In Notepad++ there is a feature called "Project Panels" (https://npp-user-manual.org/docs/session/#project-panels) that lets you create so called "Projects", which are basically a tree-view with files (even from different directories) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interface imported from another file not show as control storybook Im starting to explore storybook recently and had a problem with controls. At first this way is work with storybook to get the component props show up as control interface IInput { type?: 'text' | 'number' | 'password'; name: string; placeholde...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Directus | Flows are not updating the Revision while creating a collection I'm using Directus lastest version 9.. * *I have created a Data Model "Article" with title and Random_order field. *I have created a directus flow, which will update a random number into the field "Random order". *The feature is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: flowbite script not work after hotwireturbo in laravel livewire i'm using livewire 2x and want a single a page application and also using flowbite for desing purpose. i pluged in turbolinks . befor it flowbite working fine but whenever i import hotwireturbo package, my flowbite script work only once when i reload my...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBA Code for Access form Command Control Button for Powerpoint slide output from datafields in form I want to push a button in an access form that creates a ppt file with predefined datafields. I did try this code yet it got stuck at the level of putting a new textbox and data into the slide. All goes well until put...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CABSDock:fortran 2018 deleted feature warning: <stdin>:1879:72: Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 7000 at (1) PLease help me in this regard I was running the following command for CABSDock: CABSdock -k 10 -M --contact-threshold-aa 5.5 --filter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search with multiple phrases with ng2-pdf-viewer pdf.js There is a similar question that was asked about this subject a long time ago but it looks that nobody has found a solution yet: Angular 8 Multi phrase search using ng2-pdf-viewer I'm basically trying to do the same but with more specs. Case 1. Input single quo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Openlayers 6.15.1 icons cut with declutter: false I use Openlayers 6.15.1 and I need to show a point layer on the map set with declutter: false because I don't like that the user has to zoom in to find out that there are more features. However, the outermost icons are cut together with their label. How can I solve t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Woocommerce Simple Type Product Trial Feature I am working on WordPress site where I have multiple subscriptions and one simple type product. Subscriptions like weekly, monthly, yearly etc.. using woocommerce subscription plugin which is working perfectly fine. And a simple type product as LifeTime access. (one time...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why wordpress plugins not working using PHP 8? I have updated the PHP version from 7.4 to 8.0 and some plugins are not working and showing errors like below Error: Fatal error: Uncaught TypeError: Cannot access offset of type string on string Can anyone help with this? A: Please check PHP version requirements of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Many SocketTimeoutExceptions recently with Google Calendar API I have a Java application that updates student timetable calendars for our university. It has been running without any significant issues for the past few years. I have not made any changes to the application but recently I am seeing many SocketTimeoutEx...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fetch data from url in Nextjs + TypeScript? I try something but no data fetch from this server https://github.com/iamewuart/web-dashboard-main/blob/master/src/components/Tokens/List.tsx This is the code I want to do something to fetch data from http://45.32.65.244:3006/v1/near/list and render to Tokens page l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Kotlin Multiplatform I am a KMM developer. I am trying to integrate Ktor network framework in commonMain/iosMain with in my project. These are the use cases: * *Connect Ktor network library with server socket - success *Authenticate with server socket - success *After authentication I am trying to send some data...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nothing to do. None of the projects specified contain packages to restore. dotnet publish I am getting this message when I executed the dotnet publish command on cmd. "Nothing to do. None of the projects specified contain packages to restore." dotnet publish "/p:PublishProfile=Properties\PublishProfiles\PMIAdmin.pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to get mongodb to connect properly in CMD? and how do i create a connection? I'm having trouble understanding mongodb and getting it to work, would appreciate advice when i enter this command i run into problems it produces several strings of text but it won't connect properly it gets stuck and doesnt seem to go...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Varying losses when training with cpu vs mps or ROCm I'm quite new to pytorch and want to the model found here: (https://github.com/HardeyPandya/Temporal-Convolutional-Neural-Network-Single-Channel-Speech-Enhancement/tree/main/TCNN) I'm on a MacBook with M1Pro and also tried it on different computer (Ubuntu, Ryzen 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Downloading a file from a website that uses multiple JavaScript requests I am trying to download a file with a python script from this website: https://registers.esma.europa.eu/publication/searchRegister?core=esma_registers_coder58. The manual steps required to download it are: Filter: commodity== EUA. enter image d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: @OneToOne practice with hibernate I have a tables: account & person. * *Account can have entity - if that account of admin/manager. *Account also can have sub entity - person. For example: select account.id, account.name, account.password, person.email from account_info.account left join person_info.person...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Second window" don't change a value where I am selected fields in combobox public ScoreboardAdminPanel() { InitializeComponent(); instance = this; foreach(var screens in Screen.AllScreens) { comboBox1.Items.Add(screens); } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory leak with IAsyncEnumerable and System.Reactive.Linq We are having memory leaks when using GraphQl HotChocolate v12.11.1 and subscriptions. On a trading app we use HotChocolate v12, and we need to subscribe to multiple stocks at the same time to listen to price updates. So we are using something like this (not...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails : how send an email at a specific date with Rails 7? I have already read this thread (Send emails at specific times in Rails) which looks interesting but was written 8 years ago. Here is my need : I need to send an email at a specific date (a user birthday for instance). * *I would like to do it with Action ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: delete some rows from a dataframe according to conditions I have a pandas dataframe that contains reviews. And for each review, I have the different words with a specific score as below: import pandas as pd df = pd.DataFrame({ "review_num": [2,2,2,1,1,1,1,1,3,3], "review": ["The second review","The second re...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I set up xray in golang lambda when connecting to dynamodb I am using go1.x in AWS lambda and try to use xray to connect to Dynamodb. When I call putItem on aws sdk, it gives me an error in the log [ERROR] Suppressing AWS X-Ray context missing panic: failed to begin subsegment named 'DynamoDB': segment canno...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Naming convention for userName, firstName, fullName, etc. in Java? Sometimes I implement signup and login functionality and at that time I use some user related fields e.g. username and fullName. When I look at many examples, I see that there is not a consensus. So, how should I define these variables in Java classe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: how to add two element of of array in dataweave i have two arrays like below var array1 = [ { "marketPlaceName": "A1", "article": "XX103030AE1100M", "ats_qty": "0", "po_date": "20230302" } ] var array2 = [ { "marketPlaceName": "A1", "article": "XX103030AE1100M", "ats_qt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75614235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }