text
string
meta
dict
Q: Defining react component interface using typeof operator and passing props to it I'm having problem defining interface for functional React component and passing props to it. Error is reproduced here. It interface defined as //Two zustand stores and their selectors import { selector as listSelector, useListStore } f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Increase font size of color scale in image.plot function I want to increase the font size of my spatial plot especially the colorbar. I am using image.plot() function, but I don't know how to increase the size since it is not a regular plot. This is my script : image.plot(lon,lat,tas_slice, col=colorscale,breaks=brk...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Box-sizing of Header Done Wrong I am developing a tribute page as a project for my HTML & CSS course. I initially had trouble fitting the contents of the header into the header space. I solved it by using the box-sizing property. First of all, I fit the contents of the header into a div by using using fit-content bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: updating class (child component ) state from parent functional component using ref how can we Chang the state of a child class component from a parent functional component in ReactJS InputField: a class component; and i want to set State ({error:"there is error"}) from a functional component using inputRef
{ "language": "en", "url": "https://stackoverflow.com/questions/75620326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Greek letters for R package documentation with Roxygen Is there any way that I can use Greek letters, specifically delta (βˆ†), in function documentation using Roxygen? I originally used Alt+J (Mac) to produce the delta symbol and it works great on the help pages, but I get an error when I run R CMD check: ! LaT...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I configure lint to pick up formatting errors? I'm using Angular 14 and the same version of angular-eslint/eslint-plugin. I have intentionally introduced these formatting errors in my component Welcome {{name }} and its service (no indentation) ... ngOnDestroy(): void { this.subject.next(); this.subj...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Matching order of 2 lists and their corresponding terms next to them I am asking about this in a different more simplified way with 2 lists. How can I match the order of 2 different lists where columns A and C match on the same rows. Column B is corresponding terms to A and column D is corresponding to C. So I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple chrome extension timer not starting at '00:00:00' upon launch I'm creating a simple hobby project which is a chrome extension that acts as a simple stopwatch/timer. I want the timer to launch with the default state as '00:00:00', and also start (upon button click) at '00:00:00' (currently working). I'm new Ja...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i fix this error: Non-static method 'setText(java.lang.String)' cannot be referenced from a static context New to javafx and java in general btw. Im trying to create an interface using javafx to get the user to input a number then I will search for that number in an array using a linear search. The location o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unity why after first unity methods (Awake(), Start(), etc.) call, instantiated prefab values resets? Method that insantiate prefab and sets its values private void GenerateShopItems(IShopItem[] item) { ShopData data = ShopData.GetInstance(); foreach (var i in data.GetPurchasedItems(item)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if a subkey in a JSON file exists I want to create a condition to check if a subkey in a JSON file exists: with open('C:/files/response.json') as json_file: data = json.load(json_file) if 'XMLRESPONSE' in data and data['XMLRESPONSE']['ITEM']: print("key exist in JSON data") else: print("Key doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Env vars from app.json not injected in Node.js I have Mern app where Express server serves compiled React app. Although it seems like monorepo I only need to run Express server which is configured to serve React's build folder. I have two problems: * *dependencies from server/package.json and client/package.json a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to measure data in power bi I have a forms form and I need to measure the data, like: For each answer, there is a score and with this sum of this score it will fit into a group. How do I do this in powerbi? enter image description here I have no idea how to do it,
{ "language": "en", "url": "https://stackoverflow.com/questions/75620344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Github actions: Maven project: Cannot find class in classpath I am trying to run a maven project from GitHub actions but it's failing with a lot of errors which I am unable to resolve. Any help is highly appreciated. Error: 2023-03-02T19:55:03.1308665Z [INFO] ------------------------------------------------------- 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Postgres timezone offsetting not working as expected I have a larger query that does not seem to be working correctly so I have reproduced the issue with this smaller select statement that seems to show the same odd behavior. This select : SELECT '2023-04-03T04:00:00.000Z'::timestamp at time zone 'UTC', '2023...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: InnerHTML not working to display array text I am trying to make case 3 display array as text in the innerHTML. For some reason its not working, the array is a string already, I converted it using a .join() method. let userList = ["Sarah", "Bryan", "Scott", "Mirande", "Tamzin", "Tamryn", "Steven", "Peter", "Skippi"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xamarin Forms Label Text Wrap Issue I am new and trying to build an Android application using Xamarin forms in C#. Here, I have a lable which is cutting off. Here is a screenshot of the output: screenshot of the output Here is the XAML code of the page. <ContentPage.Content> <StackLayout Spacing="20" Padding...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter, persistent Timer I was wondering if someone could help me with something I'm trying to do. I'm creating a timer (+), I can't make the data persist on the device, ie if I close the app and reopen it, it should show me the value with its progress, like a clock ticking. Is this valid? Will it work in the backg...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How exactly do templates resolve in a blueprint Frustratingly probably a simple resolution, but I cannot see the problem I'm having with my new templates in my custom blueprint, they are not found, but they are there. Generated a blueprint template with jhipster generate-blueprint. Added some new files to the genera...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change order of lists for nested loops I am trying to write a code to change the order of called lists in nested loops. The code I'm currently using is below. This is a simplified example, so I have removed all the extra functions and documentation. The real code is for creating plots based on the attribute s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with changing taskbar size in windows 11 I want to minimize taskbar in windows 11.I added TaskbarSi into registry editor after seeing some youtube video.But it didnot worked.Is there any other solution?
{ "language": "en", "url": "https://stackoverflow.com/questions/75620356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to move a row 5 cells of data to another tab/sheet function onEdit(e) { const src = e.source.getActiveSheet(); const r = e.range; if (src.getName() != "data" || r.columnStart != 5 || r.rowStart == 1) return; const dest = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(e.value); src. getRange(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PyTube suddenly slow down In the last couple of days my PyTube script has slown down a lot without doing any changes. Is not important where I run it, if on Google Colab or Pycharm, it is very slow in the point in the screenshot. Can someone halp me ?enter image description here I couldn't try anything...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reselecting my language mode in VS Code lead to some angle brackets turning red I had an update to VS Code requiring reload. When I reloaded the default language changed to JavaScript: Babel. I am using React, after changing it to react I noticed that some of the inequality symbols turned red. It might be a feature ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I use SweetAlert (or anything like that) in a PHP app with MVC I am working on an application with PHP with MVC (no framework like Laravel/Symfony) and I want to do some alerts based on some "if" statements. I tried calling the JS function in my if statement, but it did not work, I tried with the basic "aler...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Difference between r+b and rb+ (or w+b and wb+) While reading or writing to file in binary mode, what's the difference between putting '+' between 'r'/'w' and 'b' or putting it right after them both? I searched and i foud that this affects the behavoir of reading/writing to the file but i don't understand what that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Altair multiple graphs from single data frame My data frame looks like testname| owner| seed| duration| status| module| date | t1 | ram | 101 | NA | PASS | M_1 | 03_01_2023_15_42 | t2 | ram | 101 | NA | PASS | M_1 | 03_01_2023_15_42 | t3 | Wong | 101 | NA | PASS | M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can't read from firebase realtime database I've firebase database implemented, I want to parse all the json data which is added by me in realtime database. code below represent how I try to parse it, but the error is always the same it's: Failed to parse conversations which is snapshot.value error as you can see in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to exit out of supabase signUp() function if error occurs? So basically, I have the following code: Future<bool> registerUser(String email, String password, String username) async { AuthResponse res = await supabase.auth.signUp( email: email, password: password, ); if (res.user != null) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting a β€˜Failed to open TCP connection to localhost:35729’ error after deploying a RoR Docker image to Azure Explanation of the Issue I have a Ruby on Rails application that I have been able to Dockerize. It works fine on my computer. When I push it to Azure I get the following error: Puma caught this error: Faile...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SSRS - [BC30201] Expression expected Using SSRS, I am getting the following error: The definition of the report " is invalid. The Value expression for the textrun β€˜EmpBeginDate2_Emp_Begin_Date.Paragraphs[0].TextRuns[0]’ contains an error: [BC30201] Expression expected. =Format(IIF ((), (Code.Date_Started (Fields!Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory, Vue e Electron The problem: I am creating an application with Vue.js v3, Vuetify v3 and Electron v23, and everything is running on the development environment, but when I try to run electron:build it gives an error: <--- Last few GCs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: position relative is not properly working for a button placement I have a button which is just below the textare and there is another button just above the textarea, due to some reason i cannot change the loction of the top button but on the screen i want that the button aobe the screens should be besides the button...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Please help converting lighttpd config to nginx Can I please kindly ask for help converting lighttpd config to Nginx one? $HTTP["url"] =~ "^/(static/icons/|static/fonts/|static/translations/|static/images/|static/panels/|static/polyfills|api/|auth/|frontend_latest/|frontend_es5/|local/|lovelace|map|config|developer-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I center a Tabbedpage inside of a ContentPage? The problem I'm having is wanting to be able to add a tabbed page inside a Contepage, but I need to do it as seen in the following image, as you can see this is an image above the tab view and I'd like to be able to display different content on that tab view, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I re-enable the "Edit Links" button after selecting "Unlink"? I used the "Unlink" button because I didn't want my power query to pull in new data (through an accidental refresh, for example). But now I want to re-enable the link between my power query and the data source. Yet the "Edit Links" button is greye...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Improve speed of summing up loop in python What can I do to speed up the execution of the following code significantly (in particular for even higher values of N). I think the main problem is the sum in the get_field function. from numpy import * from numpy.linalg import * from scipy import constants as co import py...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React state updates but showing after rendering I am building a quiz react website, what I am aiming to do is after clicking on the right or the wrong answer, thhe progress bar of both changes respectively. While I am playing the quiz, the progress bar does updates very smoothly but the problem arises at scor/4 and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jetpack compose card with different color on each side of the border I'm trying to draw a Card in Jetpack Wear Compose with a border containing up to 4 colors (one for each side), but without gradient. I tried to upload an image for illustration, but due to my low rep I cannot post images. Does anyone know a solutio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Seperate Razor Pages Mobile - Desktop How can I separate mobile and desktop pages in ASP.NET core? What's the best approach? I have two pages like this * */Home/Home.cshtml */Home/HomeMobile.cshtml And these html files use same page directive @page "/home" I tried a middleware but I don't know whether this is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yardi Fund Tran DateDiff Between One Row and the Subsequent Row with the same trantype I'm working on counting the days between two transactions on separate rows in Yardi's fund_tran table. I need to turn this into CustomSQL, so there are limitations on the returns. I've created two derived tables, but I need the lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Live window capture (screenshot) on macOS (Darwin) using Python I am following a tutorial on Open CV and trying to rewrite the following code: https://github.com/learncodebygaming/opencv_tutorials/tree/master/005_real_time (specifically, the windowcapture.py file) This file uses win32gui, win32ui, win32con to captur...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem connecting docker containers Unknown MySQL server host This is the docker compose file that builds the images and runs the containers version: '3' services: weather_db: build: context: . dockerfile: Dockerfile-mariadb image: favargasc/weather:latest container_name: weather_db po...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create a ServerConnection object to create an SMO server object in C#? I'm trying to establish a connection to SQL server to use SMO. In my local machine with option1, I'm able to connect with option 1. However I have to run the same in a server machine (with SQL Server and not SQL Server Express). I'm running as a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to setup lua in Xampp? I use xampp on Windows 10, for home programming, what not. I want to learn, play with lua on that. But i can't get it to execute, any good tutorials? Thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/75620401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FCM Web Push Notifications not firing I know this question has been asked many times, but I still can't get it working. I have a firebase cloud function sending notifications through firebase messaging's sendMulticast function. This reports success for all tokens. Notifications for iOS and Android are being received...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate number of rows since last event The problem I'm trying to solve is I need to be able to count the number of cancelled visits between the current visit the last time a cancelled visit occurred. The rows will have different Event Types between visits. I need to identify on each Visit record, how man...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL statement containing PHP variable not working Trying to query database using PHP variable email but no response using $email, tried without using variable and it is working. Tried multiple ways of getting variable to work in SQL statement. SQL Version: 8.0.28
{ "language": "en", "url": "https://stackoverflow.com/questions/75620406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to Learn RestApi in magento2 Can anyone suggest me some methods for understanding rest api and how to create a sample module for restapi like things? i just go through some blogs about this and followed some youtube channels but i can't get a clear picture of it can anyone suggest me a good pathway for understan...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Suite Tooltip Whisper methods import React from 'react'; import "rsuite/dist/rsuite.min.css"; import { useRef } from 'react'; import { Button, Popover, Whisper } from 'rsuite'; export default function App() { const whisperRef = useRef(null); const handleclick = () => { whisperRef.current.open(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while I want to get index of specific values from my numpy array in python I have an numpy array which I want to to find index of values from it. Here is the code: for i, memb_e in enumerate(memb_e): if memb_e == 1: x1 = e[i] y1 = 1 print(x1) for i, memb_e in enumerate(memb_e): if memb...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the time complexity of function2? int function2(int n) { int i, j, k; int sum = 0; for (k = 1; k <= n; k += 1) { for (i = 1; i <= n; i *= 3) { j = i; while (j > 1) { sum += 1; j /= 3; } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Integrating Microsoft Game Development Kit (GDK) with a Custom Engine I need to include some GDK Functionality in a project I already have well underway. This page describes exactly what I'm trying to do: https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/get-started-with-pc-dev/get-started-with-custom-engine/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to give the same data set to multiple consumers in AWS? Summary What's the best way to transform some data in DDB tables and send that data to other teams for processing using AWS services? Details Let's say I'm on the "customers" team, and I have a system where new customers can be created and the customer info...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connect Azure Iot Hub message route with Azure function Event Hub Is it possible to connect a message route set as event to an azure function. I have only managed to connect to event hub compatible endpoint but not with a specific message route I have set "EventHubName": "messages/events/valid-route" in function.jso...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Append child's first row to parent relation in PGSQL I have a users and transactions table users ____________ id | name transactions ____________ id | user_id | amount so users have many transactions I want to calculate sum of users first transactions amount for example we have two users Alice and Alison Alica ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you handle HTML booleans in TypeScript In most programming languages a boolean value is either true or false. In HTML on the other hand, native booleans are often represented in the browser with an empty string if true. An example of this would be <video autoplay="" loop="" />. I have a custom web component t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Property does not exist on service There is an issue with my code with a service that calls the backend API to retrieve values. The code is below. async deleteAsync(id: string) { this.confirmationService.confirm({ message: 'Are you sure you want to delete this record?', header: 'Confirm', icon: 'pi pi-exclama...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Created my own CLI with Node that uses .env, but can't find it when installed globally So, I created a simple CLI with Nodejs (and some accompanying packages like inquirer, boxen, etc), and it uses dotenv to manage the .env file. If I run the CLI from it's root directory, it works no problem (node .). However, when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kotlin interface type parameter I have a scenario in which I need to marshal an object into XML. That object can be more than one type, so I created an interface that sets that object type to a generic T. interface FileMarshaller<T> { fun marshal(object: T): File } And I will have several implementations of thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: pyspark SQL WHERE IN filter I am trying to filter my data frame using a list of values using pyspark sql and the filter fails. I am trying to understand if what I am trying is possible in the first place. list = c['a-1','b-1','c-1','d-1'] df = spark.sql("select * from my_table WHERE Id IN list") This doesn't work. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Meta Removed Access to GraphAPI, Appeal Review Been Longer Than 48 Hour SLA Meta reviewed our app and resulted in them removing our access to the GraphAPI. We submitted a appeal with more information to resolve the issue, but it has been longer than their 48 hour SLA. Can someone from Meta help us or has anyone been...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tried finding the count of each letter in a word and storing the count in dictionary The question was asked like this "Count the number of times each letter is repeating in the word MISSISSIPPI and store the count of each letter in a dictionary" and I used dict.get() method to get the count of each letter. I iterate...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Read File with multiple separators on pandas I can't open a file that have ; and : as separators, also each row have different number of columns. I try using pd.read_csv(PATH, sep = '"\s+|;|:"', engine='python') and only the part with the ; gets separated but not the part with :. A sample of the text: S;540356274820...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cloud VM Recommendation for Python Develpment I want to rent a Cloud VM for developing and testing Python code associated with stock and currency trading. I need base storage because a lot of the files that I'm using are are single or low double digit GB level. I need memory "when I need it" (probably around 32 GB...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: how to calculate the probability of reaching some graph node I have a directed graph and there are a list of nodes and transition matrix ['start', 'instagram', 'purchase', 'no purchase', 'google', 'facebook', 'email'] array([[0. , 0.66666667, 0. , 0. , 0.33333333, 0. , 0. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Should methods on a singleton be static? I have a singleton class, and I've been wondering if it would be easier, instead of writing Singleton.Instance.Method (where Instance is a property that gets the singleton instance), to just make it so Method is static, so that I can just write Singleton.Method, and it's i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Problem with auth attempt with dynamic guard Why Auth::guard($request->type)->attempt(['email' => $request->email, 'password' => $request->password]) returns false? In login Controller public function login(Request $request) { if (Auth::guard($request->type)->attempt(['email' => $request->emai...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: On Tradingview, how can I see 2 oscilators on the same window, but different scales? I'm coding simple pinescript indicators, and in this case I want to combine an ATR and an RSI, both with overlay=false (meaning, they're not over the chart, but in a separate oscillator window). The issue is that due to the nature o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Resttemplate with multiple Proxy host I have to call an api which is only accessible via bunch of proxy server(set of servers are deployed and anyone can be active at give point of time ) . I am using following code to set the proxy to rest template and then to pass it to OauthCLient manager, @Bean @Quali...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practices for Entity to DTO conversion in Kotlin + Spring Boot I am familiar with several approaches to how this problem can be solved, but probably I miss something really useful: I have an API entity: data class SomeApiEntity( val id: Long? = null, @field:NotBlank val name: String, val someI...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unable to Access process.env Variables When Running "Current File" in IntelliJ for Model Files I am encountering an issue with accessing process.env variables in my Node.js application's model files when running "current file" in IntelliJ. Strangely, I am able to access these variables without any issues when runnin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exporting a variable to Excel in R I created a correlation of several variables in R. df <- read_excel("~/R/Track/Cumulative_2023.xlsx") Rel <- cor(df[, c('Speed', 'Axis', 'Horz', 'Ext', 'Zone', 'Rel')], use="complete.obs") I am using the code: W <- write.xlsx(Rel, file = "~/R/Track/correlation.xlsx", sheetName = "...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a form field required only if another field is filled and vice versa in Django? I made the following form in Django. class SearchTimeSlotsForm(forms.Form): available_from = forms.TimeField(widget=TimeInput()) available_till = forms.TimeField(widget=TimeInput()) In the above form the user can eit...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Random iteration over a dataframe I'm trying to randomly iterate over a Dataframe. The file I'm reading from is a CSV file: pyquiz.csv variables,statements,True or False f1, f_state1, F f2, true_state1,T f3, f_state2, F f20, f_state20, F Dataframe df = pd.DataFrame({ 'variables': ['f1', 'f2', 'f3', 'f20'], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Under what condition would the Python Condition using Dictionary evaluates to True? In the below code, why does the condition always evaluate to False even if the Dictionary has the values? This code is part of an existing script that I need to enhance. I have added some additional print statements for illustration...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Java not recognizing public classes in same project file I'm coding in Java using IntelliJ IDEA 2022 on Windows 10. I run each program from IntelliJ's terminal using the following command: cmd /c --% java -cp <Location of .jar file of library I use> FileName.java This worked fine for running programs that only conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: passing field value between multi step flow using PHPRunner 10.4 im using phprunner 10.4, so want to perform the bellow mentioned activity. need community help to slove that. I have created for to enter service details like the following. it containing tree step , step1 record the service entry part, enter image des...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to prevent unused runtime folders from being created I have a solution that contains a WPF app and Class Library both targeting .NET 6. Both have the platform target set to AnyCPU. After building the solution, I noticed a runtimes folder was created inside of Debug/Release. Inside are 26 subfolders containing di...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any idea why my parser test is returning this error? I have fixed the code in a cpp file for a GPS system but when I go to run a parser test on Jenkins, I receive this error: tests/nmea/nmea-parser-tests.cpp(28): [1;31;49merror: in "IsSupportedFormat/SupportedFormats": check isSupportedFormat("WPL") has failed[0;39...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Cant able to add hamburger menu to Reactjs code When my reactjs page hits mobile size screen hamburger icon shows but i am not getting how to add/open panel when use click on hamburger icon. <div className={styles["navbar-responsive-menu"]}> <Button theme="transparent"> <HambergerMenu size="32" colo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Game of life optimisation I'm trying to make game of life game but it ends up being really slow, I use a dynamic array to store all of the turned on tiles, I already improved the algorithm a lot by changing a few data types and removing functions, but it's still pretty slow. I don't use the printboard method to actu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: DayGrid error when try to get rendered the fullcalendar library I'm using the fullcalendar library v4 inside a LWC. Sometimes when I reload the page where the lwc with the calendar is allocated, a console error appears. Hope someone could assist with this. I've tried a solution found is this thread Fullcalendar - Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overriding default neovim dashboard and/or default glepnir/dashboard-nvim dashboard doesn't work I am able to see the pure default nvim dashboard that is like a maroon-ish colour and the dashboard is something like nvim 0.9.0-dev... as well as when i run all of the below code, i can see the dashboard-nvim dashboard ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: List scrolling problem with too many items on iOS devices I have a large list of data in my local json file. I present this data with the widget structure found below. However, as the list grows on the iOS device, scrolling becomes more difficult. Do you have any solution suggestions for this? class A extends Statef...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: are there any RISC-V processors that implement macro-op fusion, and if so, which ones? It is said that certain RISC-V processors implement macro-op fusion. For instance, the sequence add x3, x4, x5 ld x4, 0(x3) would be decoded by the processor as one single micro-instruction ld x3, x4+x5 I would like to know whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redshift CSV Copy fails even with appropriate paramaters columns: brand,channel_name,id,eventname,campaignid,campaignname,personid,city,country,region,timezone,personemail,subject,emaildomain,eventid,actionid,addexclusion,ip,isautoresponder,code,bouncedeliverytype,rowimportdate,datetime The row it fails on: "STRING...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Backpropagate custom gradients in Tensorflow through a neural network Here's the problem I'm trying to solve: I have a neural network that outputs images of a given size; these images are then passed through a function which is not differentiable in TF (suppose it's completely outside the scope of the program), and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Logout keycloak + spring boot 3 I've created a simple REST API with spring boot 3 (kotlin + java) using keycloak, but I'm stuck into logout. Since keycloak adapters are deprecated, I have no idea how to implement this in Spring Security 6. githubproject IΒ΄ve tried create a custom logout handler as Baeldung tutorial ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: node command run from php returns status code 1 I have php 7.3, nginx, ubuntu 22.04, and have this php: $cmd = 'LD_PRELOAD="/var/www/localhost/node/so/libcrypto.so.0.9.8 /var/www/localhost/node/so/libssl.so.0.9.8" /var/www/localhost/node/node /var/www/localhost/node/nodejs-highcharts.js /tmp/201c0374305c6a74d019739c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Import-function I'm currently trying to learn python as my first language. I'm wondering what's the difference between: Import OtherModule and: From OtherModule Import * Doesn't both of these rows include everything that's inside of OtherModule? I've tried doing both but can't see any difference? A: Consider...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: The problem of password authenticity and is it possible to find out a valid password from postgresql? I am developing a spring boot application and trying to connect a postgresql database. At startup, a password authentication error pops up. enter image description here Caused by: org.postgresql.util.PSQLException: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: No module named 'tensorflow.python'. Where to look for this module? debugger: The error occurs whenever I try to use the module in PyCharm. Installation of the module directly through cmd does not throw any exceptions. Installation of the module in PyCharm gives the following error: Could not install packages due to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Correct R syntax for changing draw() plot - gratia package I need help translating "modelling the long-term trend that varies spatially in my data" and for changing the plot below into the correct R syntax. I'd like to have Longitude on the x-axis, latitude on the y-axis, and a panel for each calendar year ("CYR")....
{ "language": "en", "url": "https://stackoverflow.com/questions/75620499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modifying Notifications Using Notification Service Extension With Personalized Data XamarinForms v 5.0.0.2545 I am trying to use the notification service extension to customize incoming push notifications before they are presented to the user. I would like to add user data to the notification, but any method of inje...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to fix this problem "missing 1 required positional argument: 'self' I'm trying to follow a youtube tutorial on making object detection software, link here: https://www.youtube.com/watch?v=hVavSe60M3g&t=612s, and I'm not doing too well as 10 minutes in I've already found an issue, I added my own test v...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: What do the numbers in the 'value' argument mean in the control change message in mido (regarding bank changes) in python? I've written a program that successfully writes midi files, and opens them in Logic Pro X on my computer (this program is for personal use only btw, so I'm not worried about it not working on ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React image doesn't show up I have this project and although that I use require() method, and photos show up in vscode but on the localhost it doesn't show up. my folder tree is: . β”œβ”€β”€ app.js β”œβ”€β”€ components β”‚ β”œβ”€β”€ board β”‚ β”‚ └── Board.jsx β”‚ β”œβ”€β”€ card β”‚ β”‚ β”œβ”€β”€ Card.jsx β”‚ β”‚ β”œβ”€β”€ ExpDiv.jsx β”‚ β”‚ └── ImDiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gnuplot data file with open or close parenthesis / parentheses "(" or ")" : "Skipping" warning / "x range is invalid" I would like to read output from a python script that has parentheses and also commas (see below) directly into gnuplot. The error message is given below. Although it works, I would like to avoid pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am trying to use a DataStage hierarchical data object to retrieve an OAuth2 token, is this possible? I am trying to retrieve an OAuth2 token from our Azure cloud via the DS hierarchical data object. I am trying to do this without variables and just plugging in the actual URL which would include the tenant_id (as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75620510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }