text
string
meta
dict
Q: Is there a way to take a screen shot in google colab using python? I tried the previous hours to take a screen shot using python in google colab and didn't manage to get what I wanted properly ... I tried with : * *PIL (error : ScreenShotError: XGetImage() failed) *pyautogui (error when importing :XauthError: ~/....
{ "language": "en", "url": "https://stackoverflow.com/questions/75559198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Query loop block: order is applied in backend but not in frontend I am using the Wordpress' FSE to build a front page. There I have a query loop block. I set the order by option to "Newest to oldest". WP version: 6.1.1 This has the immediate desired effect on the editor page, showing me the last published post. Howe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Not able to navigate to home screen after successful login in react native. Getting Error saying that you are trying to navigate to a nested navigator After successful login, I am trying to navigate the user to the home screen and at the same time make sure that user does not get the login screen again if he/she is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create dynamic object C# How can I do this? List<string> lltest = new List<string>{ "Id", "Nome","Valor" }; List<object> obj2 = new List<object>(); foreach (string l in lltest) { var a = new { l = "asd" }; obj2.Add(a); } l will always be l. All I want is to create an object where the name is from the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Powershell - Filter git-for-each-ref omitting certain refname values I'm running the following git command in Powershell git for-each-ref --sort=-committerdate refs/remotes --format='%(refname:short)%09%(committername)' How would I filter out (not list) branches where the refname begins with 'origin/Release'? A: Us...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Styling of BlazoredTypeahead results in a SyncFusion SfGrid I'm newer to Blazor controls and SyncFusion. I'm trying to style a grid in an EditForm to allow autocomplete/typeahead. <div class="row"> <div class="col-lg-12"> <SfGrid AllowResizing="true" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hadoop Datanode workers is not connecting to my master:Problem connecting to server: master:9000 RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS) 2023-02-24 11:29:55,841 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting to server: master:9000 I have installed ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Badge Icon Chat App (Ionic Angular Firebase ) I want to show a badge, if the actual user has a unread message. It works if the first user write a message to the second user. But if the second user writes a message in the same time to the other user the badge comes but it is only two seconds. The messageRead Function...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make position fixed with sticky component? Only works in Chrome and not working in Firefox and Safari I have a simple CSS layout with a sticky header, content, and footer. Inside the sticky header, I have a fixed element, which works in Chrome but not in Firefox, Safari etc HTML <div class="container"> <hea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use multiple cookies in FFmpeg? I am trying to use cookies in ffmpeg to download a video that requires cookies I checked the documentation for multiple cookies using the "-cookies" argument, they must be separated by a newline, but the docs don't show an example of how to do it, there is only an example for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel VBA filename containing a cell value and the user name i have a master.xlsx sheet where i fill in multiple columns. I would like to export the column E to a .csv file. It's working as it should although i'd like the filename to be in the following format: DATE-USERNAME-FIXEDTEXT-ValueFromTheCellD2(in master.xl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to apply Hibernate Gradla plugin I have a Kotlin based Spring Boot project with Hibernate. I use Gradle (version 7.4.2) as a build tool for the project. When I try to apply Hibernate plugin as follows, I end up with the below issue. All others plugins work fine. I have also tried different versions without an...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix an error: bad auth : Authentication failed, mongoDB (I know it's duplicate question but none of the possible solutions doesn't work) As I mentioned in the title, sorry because this is a duplicate question, but literally any of given possible solutions doesn't work. To be specific, I created .env file whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do the Firebase authentication in Laravel and then send it to React as a token? For some reason, I want to do the action I mentioned in the title, but I don't know how logical it is. If this does not make sense, can we experience any security vulnerability later on when we authenticate directly from React? What I ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Way to Execute a Python Script With Rundeck Good day all, I am trying to figure out how to execute a python script using Rundeck. Currently I have setup a node step that executes the following command python3 /home/ansible/reboot_cctv.py The permissions for the python script are -rwxrwxrwx 1 ansible ansible 45...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: yamlfix not picking up updates to pyproject.toml So the yamlfix docs say you can configure through pyproject.toml https://lyz-code.github.io/yamlfix/#auto-configure-through-pyprojecttoml But I can't find a way to make yamlfix, and pre-commit that is calling yamlfix, to pick up the changes. running both yamlfix and p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse IDE crashes after pressing "<" button while editing XML file on MAC Ventura Currently I'm using Eclipse IDE: Version: 2022-12 (4.26.0) Build id: 20221201-1913 It seems to be the latest. My MacOS is Ventura 13.1 As I said, the app crashes everytime upon pressing the "<" button, while the ">" button works perf...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Application Server error - No terminal found for MachineID on IIS I have a web API developed in c# and it runs with no error on visual studio with iis express. Now that the application is done i have deploy it to IIS but on the same machine. With the previous web api i have no problem, bu with this one it gives me t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I write polars dataframe to external database? I have big polars dataframe that I want to write into external database (sqlite for example) How can I do it? In pandas, you have to_sql() function, but I couldn't find any equivalent in polars A: Polars doesn't provide a utility for inserting data to a database...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting up Azure VPN Client on VirtualBox guest OS I have VirtualBox installed on Linux Mint (host). The guest OS is Windows 10. The guest OS is used for windows based/Azure development with Visual Studio. The application I am developing a ASP.NET Core, and deploys to Azure. The sql database is on Azure. In order to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: opam init fails because curl fails to verify the certificate I am trying to set up OPAM on Debian Stretch (in a chroot jail within a CI environment). After installing opam via apt, I run opam init -y, which fails with the following output: Error: Command "curl --write-out %{http_code}\\n --retry 3 --retry-delay 2 -...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wx.StaticText's label does not contract using SetSizerAndFit() I'd like to place a filename after the file is chosen and contract it if the file name is too long. Here is my code: import wx class Dlg(wx.Dialog): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.input_p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: H2 database generated in wrong directory when generated with maven I have the following project structure project/ ├─ frontend/ ├─ backend/ │ ├─ src/main/resources/ │ │ ├─ application.yml My application.yml contains: spring: datasource: url: jdbc:h2:./database driver-class-name: org.h2.Driver If I run...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: D3 ignoring bars with same data despite using a key function I'm trying to create a Bar chart and add mouseover and mouseout events on the bars. I'm using scaleBand() in my code. Therefore, from the accepted solution here, I gathered that ordinal scale treats repeated values as same. Therefore, I tried adding a key ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Print formatted table - MySQL C API I need to print a formatted mysql table using the C API, like this: I am guessing I need to use the function mysql_fetch_lengths(result), but I don't really know how. MYSQL_RES *result = mysql_store_result(con); if(result == NULL) finish_with_error(con); int num_fields = mysq...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pure CSS to color sibling span I am trying to change the color of a span based on the title of a separate span in another div. The following is working as expected, the second span with text2 is colored red. span[title=Red] ~ span { color: red; } <span title="Red">text1</span> <span >text2</span> If the span...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How could I find out why my https request failed? I have three computers, and I deployed Caddy on computer A as a server. Once finished, I tested the api on computer B, and I found both http/https requests worked as expected. But on computer C, http request worked fine, while https request returned a 'timeout' error...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Three Fiber weird problems I have been using React Three Fiber for a while, but now I am suddenly running into a problem that I really can't get my head around. I install a normal React project followed by npm install three @react-three/fiber @react-three/drei. So far so good, I can add a canvas and some geome...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Weird behavior of react typescript with useRef hook. Ts not throwing errors on wrong ref types I have a simple react component. typescript does not throw any error (which it should) when I use HTMLInputElement as useRef hook type and assign it to a div. import { useRef } from "react" export default function Box(){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: generate-id behaviour and node-sets and variable assignment (Saxon HE) I'm trying to take two subsets of nodes in an XML, and then effecting apply a template to an intersection. I'm using generate-id(), because its all i know. So we take a trivial xml. <root> <a oid="1" title="foo"/> <a oid="1" title...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Docker container is not updating on code change EDITED.Resolved So I created default nest.js project with nest new project command in terminal. In root folder I created files: Dockerfile # Base image FROM node:18-alpine AS base WORKDIR /app COPY package*.json ./ FROM base AS dev # Install app dependencies RUN n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: TypeDoc returns blank documentation for Express JS API I'm trying to document my Express JS API using TypeDoc, but I get a rather empty documentation generated. This is my API file structure This is my tsconfig.json: { "compilerOptions": { "target": "es5", "module": "commonjs", "moduleResolution": ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why aren't my inputs triggering exceptions in my properties Whenever I run the code with my exceptions and test the exceptions they never get triggered I ran it with the "raise exception tag" and now im trying it with "assert" but it still is not working. class Country: #initializes a new instance of the country ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Give user config rights only to create Queues / queue.declare operation I can't figure out how powerful or not powerful RabbitMQs regEx-based Authorization described at https://www.rabbitmq.com/access-control.html#authorisation is. What I want to do is to create a user that can read and write from all resources on a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access @Autowired fields in Vaadin views configuration in Kotlin I have a class looking like this: @Route(value = "dashboard", layout = MainView::class) @PageTitle("Dashboard") class DashboardView : VerticalLayout() { @Autowired private lateinit var someService: someService init { val gri...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i save text in a variable and use it in my sql query $f_name="Tom"; $select_user="SELECT * from users where f_name=$f_name"; The code above does not work but when I run the code below it works perfectly when not stored in a variable. My problem is that I need to store the first name in a variable before usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kendo angular multi select maximum items In my UI there’s kendo multi select which holds more than 3000 items. For that I implemented a method to select all items at once. But when I click that some of the items are not highlighted.(seems it is not selected to the multi select) What is the maximum items to select th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't open Vertex AI notebooks I'm experiencing some weird issues with my ai-notebook (and haven't found any materials on how to fix the issues). Basically what happens is: sometimes when I'm in the Vertex AI console and click "Open Jupyterlab" nothing happens for a while and then I get an error message saying "Unab...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why this code doesn't work on Google Chrome I've got code like below, any ideas why this code work on Mozille Firefox and doesn't on Google Chrome ? I tried to do something with if statement and for ( let of elements), but nothing helps. There is no error in browser console. active_item_2 can't be added on Google Ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Docker with tensorflow, pytorch, gdal, and jupyter notebook So I got a Docker working with tensorflow, pytorch, gdal, and jupyter notebook using this Dockerfile: FROM tensorflow/tensorflow:latest-gpu-jupyter USER root # install base utilities RUN apt update && apt-get update RUN apt-get install -y python3 RUN apt-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HackerRank won't accept my code for the Set .discard(), .remove() & .pop() challenge Here's the prompt: You have a non-empty set s, and you have to execute N commands given in N lines. The commands will be pop, remove and discard. Input Format: * *The first line contains integer n, the number of elements in the se...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automatically substitute the type of the returned template с++ Is it possible in c++ to automatically substitute a data type from a template return value, without specifying a specific type in parentheses? I am practicing metaprogramming and tried to execute the following code. To which I received the compila...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove domain user from Administrators group using C#? I have written the code, which works fine when I try to remove a user. try { Console.WriteLine("user name is " + args[0]); using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain)) { UserPrincipal user = UserPrincipal.Fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use loops (i.e., for loop) with diagrams and graphviz in Python greetings! Please, can you guide how to use a for loop with Python Diagram? Original sample code without any loop is as follow from diagrams import Cluster, Diagram, Edge from diagrams import Diagram from diagrams.aws.compute import EC2 from diag...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SqlDataSource INSERT query fails for a specific SQL Server table Inside a datareader I'm calling an INSERT query about 30 times. On a specific SQL Server table, nothing is inserted. It just crashed and timed out. If I execute the same code on a new table (exact same specification than the previous one), it works. If...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to hide Selenium CHrome Driver Server Command Window in Go / Golang When i launch my builded exe file with -ldflags -H=windowsgui the programm file runs hidden however Chrome Driver pops out. How can I get rid of it using Go programming language? my code sample import ( "github.com/tebeka/selenium" "git...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Waveshare 2.7 E-paper display on ESP32 not showing anything Here's a beginner with the ESP speaking. I am trying to connect the LilyGO TTGO T-Energy ESP32-WROVER (http://www.lilygo.cn/prod_view.aspx?TypeId=50033&Id=1170&FId=t3:50033:3) To the Waveshare 2.7 HAT: https://www.waveshare.com/2.7inch-e-paper-hat.htm Runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Splitting captured video in p5js I'm experimenting with p5js and createCapture(VIDEO); and running ml5js object detection on it. Now I'd like to split the captured video from the webcam in half (without losing anything captured) and position one half on the left side of the canvas and one on the right side with a ga...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I stop logs before Django sets up logging I have a call to Initialization() in wsgi.py in my django app that gets made before django calls setup(). Within that call to Initialization(), there is another call made to IdentityService() which is an imported library. This results in the logs from IdentityService(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using web scraping search data based on user input provided(example, bird name as user input & bird info. is output) How to scrape information from website by providing user string input and then search it ? actually I have to take bird name as a input and display bird information as a output using web scraping. I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Requirements for an embedded YouTube video to work I have made an html document with an embedded video, it works in the IDE's browser, but not in "actual" browsers. The embedding also works in viewsync.net, the video is played inside said website. * *I used "Code Editor" for Android. *I tested with Vivaldi & Oper...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server convert string mm/dd/yyyy HH:mi:ss +ZH:ZM to DateTime with TZ One of Microsoft's own systems (Dynamics365 outbound marketing to Azure Data Lake Storage) delivers dates in string format thus: 02/20/2023 13:37:24 +00:00 What's the best way to convert this into a DateTime with time zone in SQL Server? I trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using sliding windows to evaluate sentiment for text groupings I am trying to create a sliding window to evaluate sentiment on groupings of utterances within a conversation, with the goal of: * *Evaluating the sentiment of a single utterance in a conversational grouping *Evaluating a grouping of sentiment based o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pagination with circular dependency in GraphQL Nest JS schema Im building a GraphQL server using NestJS (code first) and I have the following models @ObjectType() export class Person { @Field((type) => ID) id: string; @Field((type) => Post[]) likedPosts?: Post[]; } @ObjectType() export class Post { @Fie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Boot 2.7.7 and Thymeleaf - #authentication.getPrincipal() changes? Upgrading a Spring Boot app from 2.4.5 to 2.7.7. This entry in a thymeleaf th:text attribute shows me the logged in username: "${#authentication.getPrincipal().getUsername()} After the update, I get this exception: Caused by: org.thymeleaf.ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't build React project at CloudFlare Pages Believe me, I don't have any idea about this and I can share the error with you: Compiled with problems: ERROR in ./node_modules/@react-spring/core/dist/index.mjs 1596:0-45 Module not found: Error: Can't resolve '@react-spring/types/animated' in '/Users/oguzhantufenk/D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I include node globals when using eslint.config.js? I have the following eslint.config.js const google = require('eslint-config-google'); const globals = require('globals'); module.exports = [ "eslint:recommended", { files: ['**/*.{js,mjs,cjs}'], languageOptions: { parserO...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: List of one element out of bounds on index [0] Lets say I have a class "Dog", and a list called "dogs" composed only of objects of this class. Each dog has an ID that I know is unique. I search for the dog by ID using list comprehensions, and this returns a list that I know for a fact has only 1 element, since the I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: llr_pvalue extract from OrderedResults statsmodels I tried to follow the tutorial on ordinal regression using stats models from (https://www.statsmodels.org/dev/examples/notebooks/generated/ordinal_regression.html). import numpy as np import pandas as pd import scipy.stats as stats from statsmodels.miscmodels.ordin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Frontity not working after deploying the server After the build, Frontity can't create the index.html for this reason the project not working after deploying the directadmin server. How I can fix that? I tried deploying project for the development without build and after deploy I installed the node modules the serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ignoring empty value fields in ElasticSearch As of Elastic Search 7, a breaking change has been introduced that causes Elastic Search to throw the following exception: Link here. doc['field'].value will throw an exception if the document is missing a value for the field field. I have an application that builds sev...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Align items in a row that have a start and end items centered vertically Material 3 I have the following code but can't align the 3 dot so they are in the centered but currently its at the top. I would like to have it centered vertically so its better aligned with the project x This is how the design looks with the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setup Azure SQL database unit test DevOps environment with tSQLt Environment * *Server with Azure SQL *Local with SQL Server Express *Database deploy with SSDT The plan * *[Developer] Run database unit test locally on SQL Server Express during development *[DevOps] Once developer commit the changes, run all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: merge sorted arrays with their origin annotated Given two sorted arrays (the following is an example), I want to merge them into an array along with the info on where they are from. x1[1]=10 x1[2]=20 x1[3]=30 x2[1]=15 x2[2]=25 x2[3]=35 The output should be something like this. x[1]=10 x[2]=15 x[3]=20 x[4]=25 x[5]=...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: charlock_holmes and icu4c LoadError It can happen with macos that your Rails project using the charlock_holmes gem throws an error like this: /Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': dlopen(/Users/iwan/.rbenv/v...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Laravel add column with a default value depending on a second column I have a User table I want to view each User by navigating /users/{slug}. e.g. for a User named John Doe the route would look like this /users/john-doe. Currently I am using the id to view a User (/users/1). To achieve this I could just iterate ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Code for clicking on buttons for changing the category of a product list in Wordpress I am creating a webpage with woocommerce, and I want to create a page that has different buttons made images, and when you click on them, a product list that is beneath it will change to only show the category related with each ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove NULL, moving cell up MYSQL I'm working on something new and I can't get out of this point. I created a new table called week, with the columns mon, tue. I can't find an alternative to remove the empty spaces and move the cell up. -- create a table CREATE TABLE semana ( seg VARCHAR(30), ter VARCHAR(30) ); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Spring project with DynamoDB; When updating the document with fewer attributes are these removed? I have lost information in dynamoDB in the address attribute, I try to track when this information is lost, it is updated by different microservices, my question is that if I update a document (json) from a collection w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java JDBC make multiple connections to same database I have a program which connects to an offline H2 database using Connection conn=java.sql.DriverManager.getConnection("jdbc:h2:C:\DB\myDB"); I want two instances of the program to connect to the same database. But apparently JDBC doesn't allow multiple Connection ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a proper OAuth request to Dataverse API with Postman? I want to make an OAth request to the Microsoft Dataverse API to get the Bearer token, and with this token I wish to make authenticated requests to PowerAutomate. I use Postman for making the requests. I can get the Bearer token in 2 different ways, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FastAPI - return contents of csv file as plain text Wondering if anyone can help me out please. In FastAPI I want to set up an endpoint which returns the contents of a generated csv file as plain text. I don't want the file to be downloaded. I've tried the following which works just fine however a file download is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Understanding Pointer Operations & CPU/Memory usage I was talking to a colleague at work about whether or not it's more efficient to pass a pointer to a function and/or returning a pointer. I put together some bench mark functions to test the different ways of doing this. The functions basically accept a variable, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Heap (Priority queue) without duplicates in Golang I found that std lib package heap contains interface for heap which could contains duplicates by default. But what if I don't want to store duplicates in my heap? How can I handle this situation without using extra-memory? Only one way I found is to check is heap co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting 422 error while trying to use Coveralls with GitHub actions I'm trying to set up Coveralls to work with GitHub Actions for a Python project, and although I've reviewed the documentation multiple times and followed all the instructions to the best of my understanding, I'm still facing the following error: Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get bolding to work with a Google font (Nunito) and Chakra UI? I expect when I try to make a Google font bold that it becomes bold. I've tried to do this several ways, including using inline styles. Here is a code snippet where I define Nunito as the font family for headings: export const theme = extendThem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSView viewDidMoveToSuperview not called I have a storyboard app, with a simple NSView subclass set in a NSViewController. In an effort, to match the width of a NSTextContainer to the views width, I tried setting it in func viewDidMoveToSuperview() - thinking at this point, the view bounds would be set. But, this fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Circular dependency and inheritance in C++ I'm working on a project in an OOP course and I'm trying to compile the project but I have 190 errors. I'm guessing it's because of circular dependencies between all my classes; their hierarchy is as shown here And other than that I have another class, Library. Its header i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Is there a regular expression to match every possible lowercase letter? This seems like a trivial question, but it's really not. I'm trying to craft a regular expression that can match everything that is a lowercase letter, or looks like one. My first naive attempt was simply to use this: /[a-z]+/ However, that doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to Query Salesforce Meta Data Query using Azure Data Factory I am looking to query Salesforce Object Meta Data. For instance * *All the Fields *Data Types of those Fields *Calculated Flag *Unique Flag Looking to grab using this REST API Describe Object I tried almost few combinations in StackOve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use spread operator for objects in Typescript I'm fetching some data from Firestore: getDocs(colRef).then( (val) => { const tempArray: Array<categoryFetchData> = val.docs.map((d) => { const categoryData: {categoryName: string, color: string, createdAt: Timestamp} = d.data(); return {id: d.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bind a value from a dynamically generated object to a DynamicComponent? I have an object whose type is generated at runtime. I also have a DynamicComponent which is a custom component with a parameter called Value with which I want to bind a property from the generated object. If I knew the types before runti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Discord.py TypeError: cogs must derive from Cog File "C:\Discordbot\cogs\deposit.py", line 51, in setup await bot.add_cog(deposit(bot)) raise TypeError('cogs must derive from Cog') TypeError: cogs must derive from Cog Here deposit code: import discord from discord.ext import commands from discord import utils import...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Generate additional row values so each ID has the same amount of entries I have a dataframe in Python Pandas which I've shifted to obtain a 3 week view of a specific column: id state week_number year A 1 52 2022 A 1 51 2022 A 0 50 2022 df["current_week"] = df.state df["week_2"] = df.state.shift(-1) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamically Create React Components I have a list of elements like - [ { "keyName": "MetalPrices", "availability": true } ] Here I'd like to map through this list and render components that are being dynamically imported (NextJS Dynamic Imports) So for example upon mapping through this list,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SVG path morphing animation created in After Effects not showing in iOS browers (Safari, Chrome) The animation I created in After Effects was a circle slowly morphed into a square, I just adjusted the path property to create the effect. I exported it as SVG with Bodymovin plugin. The animation works fine on Windows ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide WooCommerce Deposits - Partial Payments Plugin in the cart page for a particular product I’m using “WooCommerce Deposits - Partial Payments Plugin” in my website. https://codecanyon.net/item/woocommerce-deposits-partial-payments-plugin/9249233 I have configured it to allow user to pay deposit or pay full...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: PowerShell script is unable to retrieve all the videos listed for a YouTube channel I came up with the following PowerShell script, which when I enter the Channel_ID and my API Key, it generates a CSV file with approx. 500 of the 1500 videos on the channel. # Define the YouTube API endpoint $apiEndpoint = "https://w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NVDA Mainframe Accessibility Testing I am working on mainframe accessibility testing using NVDA however tool is not reading any of the field when i pressses tab key, screen reader is remains silent. Mainframe software : attachmate extra xtreme 9.4 any suggestion much helpful becasue I could not find much infromation...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Camera2API Switch between front - back camera After switching to front camera, It's not switching to back camera. Then, If I capture using frontCamera without switching It's opening the back camera. I'm looking for the exact for past 2 weeks. private val surfaceTextureListener = object : TextureView.Surfac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vue 3 VuetifyJS Grid System Column Span I'm having a little trouble with the VuetifyJS grid system and would like to know if anyone can help me out. I have several cards in my grid that each have their own content and one card in particular needs to run across two rows as it displays more content. Is this possible u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: using try/except for a multi-step flow Let's assume that we have the following flow: def flow(input_val: Any) -> Any: result1 = function1(input_val) result2 = function2(result1) result3 = function3(result2) return result3 And let's say that I want to be able to catch exceptions for each of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Latency issue in processing user requests in between the file upload processing Below architecture using Standard tier Azure event hub with 32 partitions has to serve the user requests as well as file uploads, if the file uploads of big size happens & then user request happening at the same time gets landed at the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incorrect Moving Avg. (SMA = 200)calculation in python code RIL = yf.Ticker("RELIANCE.NS") Period_20 = (RIL.history("20d")) Period_50 = (RIL.history("50d")) Period_100 = (RIL.history("100d")) Period_200 = (RIL.history("200d")) def MA_20_50_100_200(): MA = (sum(Period_20.Close)/20, sum(Period_50.Close...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make a method to return an object? I need the getData method to return this.name and this.assignatures as an object. class Student { constructor(name, assignatures) { this.name = name; this.assignatures = assignatures = [ "Javascript", "HTML", "CSS" ]; } getData() { return [ this.name,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OAuth 2.0 in typescript telegram bot I'm implementing OAuth protocol in my telegram bot on typescript, using the Telegraf library. I'm redirecting user to browser to const oauthUrl = `https://some_website/auth/${CLIENT_ID}` + `?response_type=` + `token` + `&redirect_uri=` + `${BOT_URL}` + `?start=` + `co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React instantiate a class and populate properties I have a React logging class that I want to use to write messages to AWS Cloud Watch. I need to instantiate it with the config settings (access key, log group, log stream etc) that are held in a DynamoDB table. I'm using a Cognito Access Key to retrieve the config se...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Groovy Script Providing Null for Output in Basic Scipt I have a basic groovy class and script that class the script that should output some basic information. However what the class takes in is not outputted. Rather, the output is simply null and I am not sure why. See screen shot below. The class code is: @groovy....
{ "language": "en", "url": "https://stackoverflow.com/questions/75559418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongodb constantly crashing with mongod.service: control process exited, code=exited status=14 Tried to restart by deleting the lock file, but still crashing after some time Mar 20 19:20:54 <server name> start-amazon-cloudwatch-agent: Valid Json input schema. Mar 20 19:20:54 <server name> start-amazon-cloudwatch-age...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SWbemLocator Not Registered I was trying to install a program called CosmosOs UserKit for c# Operating System Development And When installing I come across this error: ERROR! SWbemLocator Class Not Registered! I've Tried searching google for a solution and I have not found any that worked. I've tried registering ce...
{ "language": "en", "url": "https://stackoverflow.com/questions/75559421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }