text
string
meta
dict
Q: Is there a more elegant way to write generic static variables in Rust? Assume we have this struct: struct A<T> { name: &'static str, call: &'static (dyn Fn(T) -> T + Sync), // and some other fields } And I would like to define a static object of A with different type parameters, like: use num::Float; s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Missing required arguments: commands_args I'm currently stuck on this problem that I have no idea to fix it. The system is: Ubuntu 22.04 LTS - Request Tracker 5.0.3 - App: wsgetmail The debug command that I'm trying to run: wsgetmail --debug --dry-run --config=wsgetmail.json Error: making GET request to url http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Django application, logout link Why link of logout doesn't work? Here is code of navbar: {% if user.is_authenticated %} <li {% if 'dashboard' in request.path %} class="nav-item active mr-3" {% else %} class="nav-item mr-3" {% endif %} > <a class="nav-l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I use multiple templates in grafana? One template measures time. Another remaining template measures the Response Code. We set "Define" in each message template and enter the define of each template in the conatct point. But I can only receive one template message. In this case, should I specify Alert Rule i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Objective-c Project execute from Swift Actually I have a Swift project with storyboards. But I need to use an SDK that is built in objective-c. What I want to achieve is to use the entire workflow of the objective-c SDK, in this case for example when I click the button it just redirect to the view of the objective-c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Extending multiple entities IN TypeORM-NestJS Hi I don't wanted to keep adding common columns to all entity. So I'm thinking to write it on separate class and extend it to those which needs those columns. I Tried something but it is throwing " Classes can only extend a single class" Error I don't have much hands on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem Running IPAddress:portNumber in Nginx I am trying to run a nodejs server by using reverse proxy in Nginx from a private server. lets imagine the port of the server is 192.168.1.10. So when I type 192.168.1.10:12752 to the browser, I want to reach out to the server. However I failed in my all attempts. Here i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FOLDER timestamps microsoft windows ntfs filesystem are the timestamps "MODIFIED" and "LASTACCESS" for FOLDERS reliable? I tested a few things, read a little bit, outcome: * *FILE timestamps sometimes updated immediatly, sometimes not => not reliable. *FOLDER timestamp[s] are updated immediatly => seems to be rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to compile java file containing apache camel program I am a beginner using Apache Camel. I have a maven project with the following structure: (https://i.stack.imgur.com/xuXV9.png) File Write_Paper contains content below: (https://i.stack.imgur.com/76eE9.png) When i compile this file by using cmd with : javac ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (Python) How can I print the function name of a partial function I am running a process where I add failed functions to a list to be retried later. I use partial for this. Now I want to print what function is being retried. Example Code: retry_queue = [] def foo(): """ Try and run function_a """ result = f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I evenly space time moments in solve_ivp (Python)? I want to solve a function for a given time steps, yet even after setting t_eval to be an evenly distributed arraay of moments in time, the function performs calculations for timesteps differing in size between one another (I know it might be useful, but for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to best type an object with multiple types for values Hi and thank you in advance. My goal is to create a UI component that accepts boolean and string style props. However I get the error below due to the Styles type containing the bg prop which accepts a string. I tried various methods to solve this using a Rec...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google earth engine reducer exceeds memory limit I want to calculate area of pixels within a country ('Uruguay' in the case below) that overlap with plantations in that country. However, after a bit of pre-processing a dataset (plantation_before_2000 in this case), I am getting User memory limit exceeded error. Can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculating a sports teams "streak" in R I am trying to calculate a sports teams winning and losing streak over the season given whether they won, lost, or tied using R. Given this data (the results of the team over the season, with 1 being a win and 0 being a loss) I wanted to show their current streak after each g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - Need to ready the text of focused editor on third party app (and key events) I've been asked to do something similar to TextBlaze or Textexpander but I don't know where to start: I have to build an app that detects a text or combination of keystrokes of keys (ie: @replaceme or @ + tab) and replaces the given te...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: having problem adding membber in mailchimp error 400 currently on a beginner course and the teacher taught a way to send member data to mailchimp using nodejs have been stuck in the problem for long enough. does anyone spot the error ? here is the code const express = require("express"); const bodyParser = require (...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Terraform - Complex conditional statements for outputs I am attempting to get a specific output without modifying the external database too heavily. Currently it reads the values: cloudtrail_arn and cloudtrail_name and it's based on very simple triggers: output "cloudtrail_arn" { value = "${var.s3_audit_enabled ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Stuck on loading user data into Xampp from Android Studio I am currently attempting to create a login page using Android Studio that will send the inputted data into my PhpmyAdmin database. However, when I attempt to send the data, it gets stuck on my Login Status. Below is the attached PHP and Java codes used by me...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Not able to scroll the page after moving the pdf controls to the bottom of the page I got a scenario where I need to move the pdf controls (rotate, zoom-in/zoom-out....) to the bottom of the page. But, when did that I was not able to scroll the page since the scroll bar is fixed. Is there any solution/ work around? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Microphone usage priority / Google Assistant / Navigator app (UI/Background) So there are some differences how the Android works with microphone for multiple apps: Android 9 https://developer.android.com/guide/topics/media/sharing-audio-input#pre-behavior and https://source.android.com/docs/core/audio/concurrent#ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is there an anova/linear model function that will work for both emmeans and resid_panel in a shiny app? I am trying to write a shiny app that can upload an excel file, select any variables, and output an anova table, plot, multiple comparisons, and residual plots. because resid_panel() does not accept output from ao...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve Selector properties directly from object in repo (not from object on page) Is there a way to retrieve the selector value directly from an object repository object? have tried variations on GetProperty and GetAttribute and they always return null. A: Once you instantiate a test object, it is possible...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: While using limit 0,1 after order by in mysql 5.7 query is executing with delay I have upgraded mysql version from 5.6 to 5.7 recently and while running any query with order by and limit 0,1; the query execution is getting late. I have validate all the parameters in mysql 5.6 and 5.7 versions both the parameters wer...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Whether using static const lambda object causes performance loss? Suppose I have a recursive function void foo() which has to be called multiple times(e.x. 1000000x): void foo() { ... static const auto lambda = [](auto x,auto y){ ... }; // This lambda will capture no variable. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: connect Oracle 19c database schema/tablespace with Django application The client provided the single oracle( version 19c ) database in which 2 custom schemas are created and each has a separate tablespace. I need to connect those schemas/tablespaces with 2 separate Django projects, One schema for each Django project...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cannot import name 'AzureSasCredential' from 'azure.core.credentials' On a Databricks 7.3 ML run time, I installed and imported azureml.core and get this error, Can you please help me solve this issue: cannot import name 'AzureSasCredential' from 'azure.core.credentials' (/databricks/python/lib/python3.7/site-packa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hello. I have a looping question on Selenium IDE using the drop down command function This is what I was hoping to do using Selenium IDE.Please take it easy on me as I am Very new to this IDE. My aim was to write a program, that will check a list of given websites at least 10 and( let say this website are A, B, C, D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Extend Nuxt 3 Config - Add alias for import paths I use nuxt 3.2.0 with Vite. In the Nuxt config (i.e. nuxt.config.ts) of a Nuxt 3 project, if you want to add a path alias, you can add it to the alias property (see docs). I added an alias for the components directory: // ... alias: { '@/*': './components/*' }, // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# pass keyword (interface) as parameter to the method Is it somehow possible to pass only a name of the interface to the method? FindItems(IMyInterface); I need to pass to the generic method the interface but without the object. What it would look like: public T FindItems<T>(T) where T : ISomeInterface { //Mag...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter GridView bottom items are cut off when nested in a Stack with an Align My app has a GridView displaying a list of items. At the bottom of the GridView is an Align to filter the items. Both are the children of a Stack. The issue is the Align widget is drawn over the GridView widget, and cuts off the image and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does matplotlib deal with overplotting in time series? I am plotting a huge timeseries, having > 1M (10^6) datapoints. I am plotting it using import matplotlib.pyplot as plt plt.plot(timeseries) Since my screen resolution is <2k px, some overplotting is clearly taking place. How does matplotlib deal with number...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing the bootstrap border color to a custom hex color? Let me preface this question by stating that I am quite new to web design, so I suspect the question might have an easy answer I didn't yet spot. In my current project, I seek to create a div with a colored border using bootstrap. Specifically, I want the bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Netmiko to login into 1000+ cisco router to check clock I am using python + netmiko for network automation , We have 1000's of device to manage. I am using threading to perform the task faster but I always receive read timeout exceptions if thread reaches 250+ devices.
{ "language": "en", "url": "https://stackoverflow.com/questions/75582975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Substitute myfaces RedererUtils with jakarta.faces-api At the moment, using myfaces, we get the value from a component like this: RendererUtils.getStringValue(FacesContext.getCurrentInstance, component)); We want to get rid of myfaces and use mojarra: <dependency> <groupId>javax.faces</groupId> <version>javax.faces...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Refinement of group by using timestamp in SQL Let's say we have table master with columns column1, column2, column3 and timestamp and a query select column1, column2, count(*) as CNT from master group by column1, column2 Now I would like to refine the above partition as follows. We sort each group by ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to add a condition when a button changes from visible to hidden in cypress? I'm aware adding conditionals makes a flaky test. But I need to click the button only when it is visible, and the moment it is hidden i need to add another condition as it's CSS changes after a while. I've tried different meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My Room database refuses to create itself and execute functions class CarManagerFragment : Fragment() { //initialize the needed variables private lateinit var db : Database private lateinit var carDao: CarDao private lateinit var etPlate: EditText ... private lateinit var btnCarAdd: Button ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to fetch csv file in Azure Datalake Storage using Python I ran into the following problem trying to read a csv file stored on a Datalake storage with Azure using python. I need to add that the Datalake has been privatised. When running the program, i get this error message : "Failed to establish a new connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compare a string and an array, but leave out words not surrounded by whitespaces I want to compare a string and and array in order to get words or phrases in the string that are present in the array; but I do not want to include words from the string that are not surrounded by whitespaces. The below code compares us...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: QT how to connect via seperate method I have a small serial port class and want to connect the readData signal from outside serial.cpp void SerialPort::connectToHandler(const QObject* receiver, QMetaMethod* method) { connect(m_serialPort, &QSerialPort::readyRead, receiver, method); } Would the two function para...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Arduino and temperature sensor hello i want to do a project using an arduino and a temperature sensor. let a certain temperature value be determined.when this value is exceeded, 1.if the engine temperature value is lower than the set value, 2.start the engine. what kind of scheme and coding should I do for this? I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Python AES256-CBC, decryption with Rust OpenSSL I'm using this OpenSSL call to encrypt (symmetric) a file key = secrets.token_bytes(32) iv = secrets.token_bytes(16) encrypted_file = file_path + ".enc" subprocess.run( [ "openssl", "enc", "-aes-256-cbc", "-K", key.hex(), "-iv", iv.hex(), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: fastAPI GET using a json query parameter With fastAPI I would like GET to accept a json query parameter. On the server side: from fastapi import FastAPI from fastapi import Query from pydantic.types import Json app = FastAPI() @app.get("/api/shows") def get_chart(q: Json = Query()): return q This works fine i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Instead of using useState in function component, what can you use for class component... Same thing goes for useEffect, what can replace ikt What can replace useState and useEffect in class component? I do not know what to do
{ "language": "en", "url": "https://stackoverflow.com/questions/75582997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: WSO2 APIM: Refresh Token Expires Unexpectedly We are using WSO2 APIM as an API manager. We are upgrading from 2.6.0 to 4.1.0 We have run in to an issue with the refresh tokens. In the old version, once a token had been generated then all calls for the same scope got that token, as long as it was valid. In the new...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't find Python when I install Strapi error C:\code\my-project\node_modules\better-sqlite3: Command failed. Exit code: 1 Command: prebuild-install || node-gyp rebuild --release Arguments: Directory: C:\code\my-project\node_modules\better-sqlite3 Output: prebuild-install warn install No prebuilt binaries found (ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75582999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: VBA IFELSE Statement I am trying to write an ifelse statement to show that if the text in column B is equal to "Green" then Column C should say "Go". If Column B is equal to "Yellow" then Column C should say "Yield" and if column B is equal to "Red" then Column C should say "Stop" I was using the below code. The cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCAG 3.2.2 On Input resolution When user select any value from drop down, additional field are get visible without any prior warning. This change of context is disorienting for visually impaired and cognitive impaired user. The drop down values are domestic account, international account. if user select the domestic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chartjs changing the tooltip to display the R axis only Hi I have an issue with the tooltip info being displayed on my bubble chart. I can't seem to get the tooltip to change within options. At the moment it displays 'Company 1 (36,192,22.13)'. However I want it to display 'Company 1 (22.13) Million' <script src="...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cannot open cv while trying to configure cmake before after I have already set the directory of OpenCV_DIR in the CMake and on environment variable. But it keeps occuring the same error that said OpenCV cannot be found. Does anyone know how to solve this error?
{ "language": "en", "url": "https://stackoverflow.com/questions/75583014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: atop with multiple linebreaks and subscripts in geom_label I have a dataframe for which I am plotting data using ggplot. My objective is to add an annotation using geom_label, with words that contain subscripts and linebreaks. In particular two linebreaks. Here is a reproducible example: ###DATA### data_df = data.fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pandas: Get number of occurrences of an attribute when target variable has a certain value I have a dataset, df, that looks as so: Age Income Student Credit Rating Loan 0 <=30 high no fair no 1 <=30 high no excellent no 2 31-40 high no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can we programmatically show that a shallow copy is different from a deep copy? # importing copy module import copy # initializing list 1 li1 = [1, 2, [3, 5], 4] # using copy for shallow copy li2 = copy.copy(li1) print("Before Edit:", id(li1[0]) == id(li2[0])) li2[0] = "hi" print(li2, "vs", li1) print("After...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to make gin logout function, golang jwt I have a login and authentication function with jwt, gin and golang I can log in and maintain a session, but how do I log out? I want to perform logout from a get function I generate the jwt token from users that are stored in my database: generate jwt: func Login(c *gin.C...
{ "language": "pt", "url": "https://stackoverflow.com/questions/75583018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to switch to asynchronous fetching image from string url on watchOS? My current code for fetching image from String with SwiftUI is: import SwiftUI struct NetworkImage: View { let url: URL? var body: some View { if let url = url, let imageData = try? Data(contentsOf: url), let uiImage = UIImage(d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I can't render my website with Home "router" as a default page I have a website that uses react router dom.The routes work properly but I can't set Home router as the main page, when I download the website, the main page is an empty background. I have checked that the Home router is the first and apparently the path...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to change gradient color of qr code image generated by python's module qr code? I am using python qrcode module I am trying to change the gradient color of the qr image generated by this code: qr = qrcode.QRCode( version=1, error_correction=qrcode.constants.ERROR_CORRECT_L, bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Discrepancy in GA4 Pageviews I noticed in GA4 debugger that all Pageviews are not being received. Is this common? I've never seen issues in Debugger like this before. Over the last month, there has been about an 13% difference in page views (fewer in Google Analytics 4). What should I expect? Thanks in advance fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to merge two .dwg images in react app I am making a React & Nodejs app and I have two .dwg images. For example a door.dwg and picture.dwg. I need to merge them to a single .dwg file. I don't know how to do it.
{ "language": "en", "url": "https://stackoverflow.com/questions/75583034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Cache multiple Dataframes in List Spark Scala I've got a List[DataFrame] which consists of small size dataframes obtained from some joins from Snowflake tables. The purpose is to cache each DF in the list to stay in memory for later. Simplifying the case, what I've tried so far is to cache them and force an action: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: error: cannot find symbol class Builder AdRequest adRequest = new AdRequest.Builder().build(); error: cannot find symbol class Builder how to solve AdRequest adRequest = new AdRequest.Builder().build(); please help me error: cannot find symbol class Builder
{ "language": "en", "url": "https://stackoverflow.com/questions/75583039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Contoso University Part 9 - Localhost can't currently handle this request I am on Step 9- inheritance on ASP .net5 Contoso University tutorial. After updating the data model to use TPH, my pages stopped working when I try run the application. Everything was working up until I combined the instructor and student clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove some instance or class attributes from __dict__ from dataclasses in Python? I have a class like this one, I use dataclass because I want to store some data and return it simply but I don't want the __dict__ function to return each attributes. @dataclass class VCP: voltage: float | None = None c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: App delivery rejected by Apple because it contains bitcode Having a issue with uploading Unreal 5.1 project to Apple transporter/ testflight Apple is rejecting our build because it contains "bitcode" (ITMS-90482: Ivalid Executable - The executable app contains bitcode) There is a toggle in the project settings --> I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query parameter of type List of String in URL and SpringBoot RestTemplate @GetMapping("/") public ResponseEntity<String> getYoutubeResponse(){ String url = "https://youtube.googleapis.com/youtube/v3/playlists?part={part}&channelId={chanelId}&maxResults={maxResults}&key={key}"; Map<String, Object> qp_map=new...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rust inline assembly mov instruction copies wrong address I'm trying to write a simple freestanding program that prints a string to screen using BIOS interrupts. The NASM-assembled version of my program is working fine. However the Rust inline assembly version of it it's not because the mov si, message instruction g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to display username after login using node.js, connect-flash, because i keep getting the error 'req is not defined' I want to display the username on the main page after a successful login, using connect-flash but I am getting the error 'req is not defined' at 'app.post (req.flash("user", req.body.username))'. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: USB to DB9 mouse adapter for Amiga computer with Raspberry Pi Pico My goal is to build a USB to DB9 mouse adapter for the Amiga computer using the Raspberry Pi Pico. So I need to connect the mouse to Pico via USB, read data from the mouse, and send it to GPIO pins where the DB9 socket will be connected. Is there any...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Visual Studio 2022 Build Errors for TypeScript Modules with File Extensions I'm rebuilding my Gulp implementation for compiling, minifying, and compressing TypeScript files into a single bundle using the latest version of Rollup. The new implementation is complete and working and I can trigger it from the Task Runne...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Node readableStream that uses pipe needs a _read() method? The following code is what I got from a tutorial page on Node Stream as a working example: const Stream = require('stream') const readableStream = new Stream.Readable() const writableStream = new Stream.Writable() writableStream._write = (chunk, encoding, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does JavaFX FlowPane not size itself when set to unmanaged? I would like to have a Flowpane layout of items irrespective of the size of the parent of the Flowpane From what I understand, calling setManaged(false) on any region should cause the parent to not size the region and cause the region to become its own ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I restrict this generic type so that it only accepts strings or numbers? I created an input-component in React with generic props for using react-hook-form and Zod. In the current implementation, in <Input control={control} name='firstName' />, I can pass in both admin and firstName in "name", but I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authentication with GitLab CI in a one stage Kaniko build using two separate artifactorys I'm building a Docker image with Kaniko. I would like to use two separate private artifactories for my GitLab CI/CD pipeline: * *One from which the Dockerfile takes its source image (Artifactory1/Repo1) *One to which the pip...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: hibernate: Row level security - set session context properties and pass to MS SQL In my java based application I want to make use of RLS in MS SQL. For this, I created a security policy with a function, which expects a tenantId in the session context and filters data for this property. Using SQL this seems to work a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a partial type that return an error if too much information are given I would like to create a type that can accept a partial object but that can also return an error if we give to that object extra properties. I tried that but it doesn't work like i want. type Object = { a: string; b: string; c:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to speed/parallelize this calculation on the GPU using Torch? I am currently stuck on the timewise optimization of my simulator. It took at the begining over 30 hours for one run and is now down to approximate 7 minutes. I have opitmized most of the parts, and the major time decrease was achieved by using torch ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use file input(stdin) in VS Code debug argument I have a script that accepts multiple arguments and takes a file input(stdin) as one of the last argument. Tried debugging the script in VS Code debugger. But the file input arg is not working. The script doesn't understand the fourth argument in the launch.json. here'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why is my std::priority_queue with custom comparator ordering elements incorrectly? I was refreshing some algorithm knowledge and implementing djikstra in c++ and saw this seemingly broken behavior in std::priority_queue. Can anyone shed some light on why I might be seeing this? I created a priority_queue with a cus...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Time color chart in anylogic Pleas help to create a gantt chart for each individual agent to be generated in the system. The idea is following. I need to reproduce a lifecycle of an agent on a gantt chart. To do so I created a variable varLeadTimeIndex in MyAgent type. It equals to 0 by default before an individual ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Springdoc not showing imported controller I am using springdoc with maven. It's working just fine and displays any controller defined in my own application. But when i import a maven dependancy defining a controller (annoted with @RestController): * *I can use this controller by directy calling it. *BUT the /v3/a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: generating pdf using html-to-pdf works on local but doesnt work on AWS App Runner I am generating a pdf using a html-to-pdf package, it works on local but doesn't work on deployment using AWS App Runner. code: html_to_pdf.generatePdf(file, options).then(pdfBuffer => { fs.writeFileSync(path.join(appDir, 'invoice...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cant find the wrong test Case i solved a question on codechef. All the example testcases run correctly, but while submitting the code, it says wrong answer. I couldnt figure out where the error is. Please help me. The Question and my written code are given below: Question: Question link: https://www.codechef.com/pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding and refreshing in Reactjs I have array with objects. I'm using method map to render on website. After click on button I want to add next object to this array and refresh list. How should I do it? const todayQuestsArray = [ { hardness: "easy", title: "reQuest", date: "Today:" + Date().sli...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring MongoTemplate array inside of array projection I have documents of the following structure stored in mongodb: { "order": "order-id", "positions": [ { "positionId": "position-id", "items": [ { "itemId": "item-id", "settings": [ { "type":...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular - avoid nested subscriptions by chaining multiple Observables I'm trying to refactor my code, since it currently uses several nested subscriptions. I have a basic understanding of RxJS and was already able to rewrite some parts, but now I got stuck and definitely need some help. I have the following scenario...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery - Sometimes both menu's are visible at the same time I try to build a dynamic menu. When scrolling menu 1 should replace menu 2 and the other way around. But sometimes both menu's are visible at the same time. And the strange behaviour only happens when scrolling back up, but not always. Any idea what goes wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UnhandledPromiseRejectionWarning: MongoServerSelectionError: connection to 'ip-address' closed. The same code worked on my colleagues pc I am extremely new to all of this (like less than a month new). Basically my tech lead linked us this github repo of an API that I git cloned onto my local device. I followed the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to know how many times a word (typed by the user) is in a sentence using substring in C# I want to know how many times a word (typed by the user) is in a sentence using substring in C#. I want to know how to catch words with the Substring function and the for loop. string frase=txEntrada.Text; string paraula=...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IIS10 Redirect based on country I have URL rewrite installed in IIS and potentially that could be used but I'm trying to figure out how I could redirect a website to a different domain (not hosted by me) depending on the country the visitor is from. I have a brand website for the United states and all visitors in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Explaining how to remove duplicates def lists(original_list): # removing duplicates x = [] # empty list to append for o in original_list: if o not in x: x.append(o) return x print(lists([1,2,3,3,3,3,4,5])) Can someone explain to me how this code...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to get rid of these weird scribbles in plotly See the code below, I've messed around with the font, inside/outside, and other formatting options and haven't had any luck. I'm not even sure what these weird scribbles are import plotly.graph_objs as go import pandas as pd marketing_funnel_count = marketing_funne...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiprocessing Queue raises Empty exception unexpecdetly I wrapped Python's (3.7 on Ubuntu) multiprocessing.Queue with a class for easy usage of running a function on a list of items ("tasks"), using both an input and output Queue. But when I read the results from the output queue, I sometimes (approx 1 in 10 or 15...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use custom user with JIB I'm trying to use the JIB(https://github.com/GoogleContainerTools/jib/) to build my docker image with a custom user. I believe that I'm not able to create a new user with this library. If I simply define one, I get a message like that unable to find user test-user: no matching entries...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extract paragraphs in web Scraping I am going to scrape news articles from the web sites. How can I scrape paragraphs from the periculer web article? How can I loop through the <p> tags? This is my code diepresse_url='https://www.diepresse.com/' html = requests.get(diepresse_url) bsobj = soup(html.content, 'lxml') l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate the events per person-years at median follow-up? I am currently doing survival analysis for a project and wanted to calculate the event rate (Number of events / Person-time) at the median follow-up time for a study population. A snippet of my data would be: library(survival) dat1 <- structure(list(d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parsing / reformatting a tokenized list in python I have lists of tokens of the form "(a OR b) AND c OR d AND c" or "(a OR b) AND c OR (d AND c)" I want to reformat these tokens into a string of the form: Expressions are of arbitrary form like (a or b) and c or (d and c). Write python to reformat the expressions as:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update issue's details from Jenkins Pipeline using Jira Plugin I have the Jira Plugin installed and configured. I can run a basic query like: def issue = jiraSearch(jql: "key = 'issueKey'"); From that, on only one issue on which I know the issueKey, how can I update one default field, let say Fix versions (so not c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I am trying to code a "link" button to only show during business hours I have a type of service I can only offer from 7 am to 1 pm Monday through Friday. I want a button that can take them to the checkout page of this service only available during that time. I tried using a button functionality on the website builde...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: DOMDocument issue replacing paragraphs elements in my laravel app I want to use DOMDocument to replace node values of each paragraph element by new values, for this I'm looping through each p element and replacing it with a new element, however I'm getting the following error: Not Found Error, DOMException On this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use API Platform with server side rendering? I am adding SSR support to a React app with https://github.com/Limenius/ReactBundle. For each route of the React app (via react-router-dom) I am creating a matching route and controller endpoint on the back-end app. It works well for pages not consuming any API Pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/75583121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }