text
string
meta
dict
Q: Getting "Provider "vfs" not installed" when uploading my Spring Boot WAR file, using Jobrunr, to a remote Wildfly server I'm using the following: * *Java 8 *Wildfly 10 (on my remote hosting service) *10.3.38-MariaDB *Spring Boot 2.7.8 *jobrunr 3.1.2 *Maven (packaging = war) My webapp works fine locally when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the Keys of the nested hash tables coming from json file in powershell This is the data in json file as abc.json { "testCases": { "test-1": { "some-path": "https://", "folders": { "sample": { "files": "abc" } } }, "test-2": { "some-path": "https...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: System.ArgumentNullException on options.TokenValidationParameters on JwtBearerDefaults I am unable to run my program. I have upgraded from .net 5 to .net 6 and then .net 7. The startup.cs file has gone and I have migrated the services.AddAuthentication() method to a new file called IdentityServiceExtensions.cs. This...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assign count() result to a column in PostgreSQL I want to know how to assign the result of the count function to a column in a table. I have the following code: UPDATE my_table SET column = count (*) FROM another_table Obviously it doesn't work. I hope some of you guys could help me. Greetings!
{ "language": "en", "url": "https://stackoverflow.com/questions/75568820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why is the background property value rgba? There is a function that generates a hexadecimal string. function getRandomHexColor() { return `#${Math.floor(Math.random() * 16777215).toString(16)}`; } I call the function and assign the return value to background, in the console instead of #ffffff (for example), I see...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Cannot set an environent: 'set' command not working? I've set up a fixture on Pytest which requires a BROWSER environment to be set. However when I set it on the terminal on pycharm on a dummy test (set BROWSER=chrome) Then run pytest. I get the error I raised: Exception: tHE ENVIRONMENT VARIABLE 'BROWSER' MUST BE ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to understand requestAnimationFrame callback timing in performance profiler? I'm trying to create an animation using requestAnimationFrame and am struggling to get consistently good frame rates. I figured my frame drawing callback was probably too expensive, so I open up the Firefox performance profiler and I ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using python venv with custom libraries I'm working in a Linux environment and using a venv. I come from C++ and structured the whole project assuming the existence of something akin to CMake. Basically my idea was to keep well separated the "libraries" from their respective tests, and when the libraries are fully d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Selenium.common.exceptions.WebDriver: Message: unknown error cannot connect to chrome at 127.0.0.1:9515 "from chrome not reachable" Exactly what the title says. When ran, Chrome does in fact open, but does not continue on because unable to connect. Prints opening chrome (mac) opened chrome Traceback (most recent cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating chrome extention to update the number in the url I am trying to learn how to create chrome extentions. The one I'm working on right now is suppose to work as follows: 1.user click on the extention button. 2. the current url is being checked to see if it include a number 3. if it does, the user will be redir...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FCM Push Notification - Flutter I have an application that uses FCM. When I send notifications from the Firebase console, it sends it to all devices without any problems. I made a mobile app for admin. It should be able to send notifications from the phone to all devices. Future<void> sendPushNotification() async { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set a value after getting the object from the data base? I have the object called FighterModel and in my repository's service I get the properties from SQL Server. public class FighterModel { public int Id { get; set; } public string Name { get; set; } public int QtyMartialArts { get; set; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: model.predict() returning the same value for all test cases of test_x I am creating a model that classifies numbers between 0 and 10. I am facing a problem where all the predicted rows have the same value i.e. all rows of x_predicted are the same as you can see in the code below. You can copy and paste the code in y...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create private key from pkcs12 in java I need to create PrivateKey from privateKeyContent which is in pkcs12 format. Below code doesn't work for it. KeyFactory kf = KeyFactory.getInstance("RSA"); PKCS8EncodedKeySpec keySpecPKCS8 = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(privateKeyContent)); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I fix this Symfony security vulnerability? I just installed Laravel/Dusk into my Laravel 9 project and got a message about a security vulnerability. I ran symfony audit as advised in the message and it gave me information about CVE-2022-24894. I searched for that in my browser and got sent to this page. That ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Designer not honoring sizePolicy I am having problems trimming a rather simple, designer-generated, grid layout. Problem is I would like to shrink, as much as possible one "column" and a "row"; this means I would like those to stay at a fixed size on resize and the rest should enlarge/shrink as needed. I was unable ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @reduxjs/toolkit State Update Issue I just started learning react-native. I'm also working on reduxjs/toolkit. I wanted to do a simple exercise to find out. What I want to do is increase the number by 1 when I press the button. Unfortunately, I was not able to achieve this increase. How can i solve this problem. im...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does python module import work with __init__.py when a child class needs its abstract parent class I am trying to figure out how to use the __init__.py to import two classes from a subfolder. I have an abstract parent class in one file and a child class in another file. As far as I know, the child class needs to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get varying shades of red colour based on an input value in python? In python, how can I get varying shades of the red/yellow colour based on an input value between -1 and 1? If the value is between -1 and 0, the function should return yellow colour. If the value is between 0 and 1, the function should return...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is there any major difference between JSON.parse and simply casting? Is there a difference between me saying the following: interface/class MyRecord { ... } const record: MyRecord = { ... } vs const record: MyRecord = JSON.parse('{...}') as MyRecord? A: In the first example TypeScript will check the object liter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using strings rather than Enums doesn't work with postgraphile I am trying to sort some of my results but using a string the sortby is ignored. query ($limit: Int!, $categoryId: Int) { allAwards(first: $limit, orderBy: "DATE_DESC") { edges { { "errors": [ { "message": "Enum \"AwardsOrderBy\" canno...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Microfrontends using Module Federation (Angular & Vue) I am needing to build a Microfrontend architecture with Module Federation and my applications will be build with Vue and Angular. Precisely I will build 2 apps in Angular and 1 in Vue. My problema is there I am stuck in how to configure the webpack to expose an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Native problem when usign expo-auth-session When i build the app in my smartphone i get this error. I'm using Expo with and android divice. If i take away this part, the app works just fine : const [request, response, promptAsync] = Google.useAuthRequest({ androidClientId:'', iosClientId:'', expoClientId:'', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding multiple dependencies to an existing Docker-compose file I have the following directory structure in a Docker compose environment: **airflow**/ β”œβ”€β”€ **dags/** β”œβ”€β”€ head_dag.py β”œβ”€β”€ **dependencies/** β”œβ”€β”€ dependency_1.py β”œβ”€β”€ dependency_2.py β”œβ”€β”€ dependency_3.py └── **logs/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to edit the core configuration of My toshiba android tv which start on its own my toshiba android tv start every day at the same time without any timers set. Build: PTMR.190127.037 Build fingerprint: 'Toshiba/xiaoyushan_emT/xiaoyushan:9/PTMR.190127.037/01.03.00.02:user/release-keys' Bootloader: 123456789 Radio: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Issues with launching Flutter application on real Iphone device - signing issue I have been invited to App Store Connect by the user which has apple developer program but does not have apple developer team. I have admin rights there in ASC. We have our app registered with unique bundle identifier but I am unable to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: flutter terminal keeps giving me error whenever i debug the my test codes been getting this error when i try to run the min.dart test code for my flutter dev
{ "language": "en", "url": "https://stackoverflow.com/questions/75568883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving a file with curl and php I am attempting to use an API from voicerss. The API itself appears to be working. My problem is when the API returns the data to me. In my past experience I have used APIS to retrieve bits of text or sometimes links to files which I can then download. This particular API is returning...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When using pointers to structs and using them between C++ and C#, do I need to delete the pointer? I have a program which uses C# and C++. C++ is used to do low level things such as rendering. In C# I am making an Input class. It uses GLFW to get the mouse position: extern "C" __declspec(dllexport) Vector2* GetCurso...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Flexbox CSS column to row I need to have information moved from being in one column to being in four rows once the viewport reaches 750px using flexbox: * { box-sizing: border-box; } h1, h2, h3, h4, h5, h6 { text-align: center; } section { border: inset #333 thin; padding: 1em; / } .animals { displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write a query to output columns from another table I have three regular table. Table Author AuthorID FirstName LastName 1 Alex Popov 2 Serg Smit 3 John Paulse Table NameStatie NameStatieID NameStatie URLStatie 1 POPULATION OF TRNA-DERIVED /item001 2 AGENT-BASED SIMULATION MODEL /item...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to trick an Excel function that wants a column as input to accept a list of values as if these were in a column I need to use the XIRR(values,timestamps) function. It expects two columns as input otherwise it won't work. Let's say this example works just fine: Column A Column B 1 -12000 1900/01/01 2 -...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to connect firebase using ipv6? #6937 I have implemented Firebase Storage in my React Native project to play audio, and it is functioning properly on all of our devices. However, during the Apple review process, they reported that they were unable to access the audio from Firebase since they are usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Designing SLO based on Prometheus Counters I want to design an SLI/SLO based on the two counters described below: requestedCounter= Prometheus counter that gets incremented every time a request is sent to downstream service confirmedCounter = Prometheus counter that gets incremented every time a confirmation is rece...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the name of Actor who collided with another actor I am trying to make a simple game with a square going up and down in Pygame Zero, but I couldn't use any if statements. I am wondering what alternatives do I have for if player.y>downLimit or player.y<upLimit If possible, I needed a way to see the list or the na...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Outputs from OpenAI Api is delayed and random When i type less than 3-5 characters, OpenAI API replies with random output and delayed for like 5 seconds (based on how long openai output is). Tried changing model and lowering max_tokens to 500. #main.JS const userInput = document.querySelector('.user-input'); const ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Property then does not exist on type boolean even if using Promise I'm converting some Javascript code to Typescript and I'm getting an error: Property 'then' does not exist on type 'boolean'.ts(2339) I have Typescript file account.tsx which: * *checks a Firestore database to see if the user account exists, *if n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDB get child data i was testing some queries with mongodb and php I have this data on the collection { "id": "1", "icon": "task", "active": "1", "translations": [{ "language": "en", "title": "Content title in English", "description": "Content description in English", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change text inside cells to a different color To be clear, I want to change the color of SOME text inside the cell. Not change the entire cell's font color. I want to loop down a column and change all STRIKETHROUGH text inside cells to a different color (say "grey" as an example"). My code below is my failed attemp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upgrading from key-cloak 15 to 20.0.5 "after deployment React App giving 404 on main js and css [React App giving 404 on static js and css ] I built a react app using "react-scripts". The application runs perfectly on my local development server but when I deploy to my actual server the applications seems to not fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why my code is not displaying in a react return? I have created basic home page with search option, but unfortunatelly ,,There aren't any hotels h2 tag is not displaying. I am rendering a list of hotels adding them on the firebase and i have delete option as well. Upon deleting all of the hotels from the list I was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirecting to facebook and twitter applications with webview I have a code like below. it redirects to open instagram whatsapp apps but does not redirect to its own app for Facebook and twitter. what could be the problem? How should I edit the following code for this topic? I don't have much knowledge about Java co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I style the default identity pages in an ASP.NET React JS application? I have created an ASP.NET React JS web application (.NET 7.0), using individual user accounts. I have then used the identity scaffold to add in the identity .cshtml pages into the 'Areas' folder. I simply want to style the default identity...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connection time out when mounting NFS shared directory for MPI cluster I am setting up an MPI cluster of two VMs, an SSH connection between both VMs have been setup successfully and they both communicate password-less however when trying to mount the NFS shared directory on the worker VM, a connection timeout error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Centering a bootstrap grid on mobile I'm trying to center a 2Γ—3 grid of images & text and although it works on desktop, it has a seemingly weird offset on mobile. For example, here's how it looks on desktop: and here's the layout on mobile: The HTML section is defined as follows: <div class="row" id="selected-work...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem with lm() giving incorrect result when using 1/var as second variable I have a dataframe with two variables that I will plot with the inverse of the varaibles and make a linear regression on this. linear_mod <- lm((1/df$var1[3:length(var1)]) ~ # 3 because the first two are 0 and would result in 1/0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to add cookie to browser context for testing app Context: * *Playwright Version: 1.31.1 *Operating System: Linux *Node.js version: v18.13.0 *Browser: Chromium *Extra: Using next auth Code Snippet playwright.config.ts import { defineConfig, devices } from "@playwright/test"; export default defineConf...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vue app on server cannot communicate with DRF back-end on same VPS using caddy It's my first time that I'm deploying Vue and DRF(Django rest frame work) app on production server. I used npm run build to build my Vue app as my front-end and I moves the dist folder to /var/www/html/frontend/. I'm calling my request u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query to find all equal values from 2 list of string columns I have this data: tconst directors writers 0001 gorge miller, johny amido sarah blake 0002, tom kaver tom kaver 0003, bob marley bob marley, nicole jamine I want to write a query to fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Update the page using FutureBuilder() + GetBuilder() Is there a way to update the state when I use both Getbuilder() + FutureBuilder() I have list of users in firebase document, I display these users using Futurebuilder I want when i click on any user, that user get deleted I managed to delete the user successfully ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "NameError: name 'model' is not defined" ; "FileNotFoundError: [Errno 2] No such file or directory" I'm trying to complete a deep learning practice on an image classification project with Keras. I am basing myself on this guide: Image Classification –Deep Learning Project in Python with Keras I'm stuck at step 12, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Rendering JSON data to HTML tags I would like to put data on my weather station website that I download from the API created by this station. It is a JSON file that has the following data structure: data outdoor temperature unit:℃ value:-0.2 dew_point unit:℃ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Extracting header and footer table fields with puppeteer As a follow up question to Unable to extract footer Fields with cheerio , I'm trying to scrape the header and footer of a table with node and puppeteer. I'm eventually going to turn it into a serverless function. For now, my code is: const puppeteer = require...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the difference between these two interface declarations? What is the difference between these two interface declarations : interface A { foo: (x: number) => number; } const a: A = { foo: (x: number) => (x + 1); } interface B { foo(x: number): number; } const b: B = { foo(x: number) { return x ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Merge list of images together in flutter im trying to merge multiple images vertical together, but without using this libary But my final goal is to turn a pdf into one big image (just for you to know if you already know a solution to this) Input list final images = [asset1, asset2,asset3] The output i want is a ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide sensetive query param from a MUI Link component This is my code: <Box > <Link href={`${AUTH_ENDPOINT}?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&response_type=${RESPONSE_TYPE}`} > Login to your account </Link> </Box> The problem is that when the user clicks on the link it shows cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Group by returning additional row I have a views that returning 6 columns Select DataSourceName,StartedDateTime, StoppedDateTime , LastStateName, ErrorString , ProtectionGroup from [dbo].[vw_RPT_BackupJobsSummaryLast24Hours] Data returning below way But I want an extra row (below screenshot) group by DataSou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Guidance to implement war card game (Elixir) I'm trying to implement the war game in Elixir This is the brief game description: The game starts with a shuffled deck of cards. The deck will be passed into your program already shuffled (details below). The cards are dealt in an alternating fashion to each player, so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Materialized View on pre-built table I am trying to find a way to build a materialized view with a table that is pre-populated with data . The materialized view is created with "unknown" state. To support query rewriting, I called dbms_mview.refresh. However, I observed the pre-populated data are wiped out by the re...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I construct a LazyTransformer in PyTorch? PyTorch has many useful Lazy* layers e.g. LazyLinear (see https://pytorch.org/docs/stable/nn.html), but doesn't appear to have a LazyTransformer. How can I implement one? Similar questions for TransformerEncoderLayer and TransformerDecoderLayer
{ "language": "en", "url": "https://stackoverflow.com/questions/75568957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to test an express.js ErrorHandler? I'm trying to test the fail case for this function with TypeScript and Sinon, but I have not idea how. Any help? public async findById(id: number): Promise<UserModel> { const user = await this._userModel.findByPk(id); if (!user) throw new NotFound('User not found'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the fastest way to get the number of neighbor nodes with NetworkX? Here is the benchmark testing a few options: import numpy as np, timeit as ti, networkx as nx from more_itertools import ilen g = nx.ladder_graph(1000) n = g.number_of_nodes() fun = f'sum(len(g.adj[i]) for i in range(n))' t = 1000 * np.arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to match consecutive dates contains multiple values and calculate the date per each calendar month I am trying to calculate between those two date columns which contains multiple values. I have tried to use split columns by number of characters (10) repeatedly. My data contains date values up to 4 or 5 dates in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why it's called Synchronous while it means Asynchronous | Javascript I'm not an English native speaker. The word synchronous and asynchronous have always been confusing to me while I learn about them in coding. Linguistically, synchronous means: existing or occurring at the same time and asynchronous means: not exis...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kill vector of processes in parallel in Tokio I have a vec of processes and I would like to kill them all in parallel. I was trying something like: use futures::future; async kill_all(processes: Vec<tokio::process::Child>) { let mut deaths = processes.iter_mut().map(|&mut p| p.kill()); future::join_all(deat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting errors when I am writing a test case for a back button in flask here is the following error I get. I do not know why is it giving error in the test_modules. Since, before writing this particular test, all my other test cases was passing as well FAILED tests/test_models.py::TestModels::test_survey - TypeError...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: EC2 instance cannot use yum inside private subnet My AWS architecture looks like this: I can connect to instance inside private subnet from the instance inside public subnet. I want to install some packages on my instance inside private subnet however I cannot because yum needs connection to the internet. So I chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to implement search on the site more efficiently Let's say there is a site with posts that have tags. The site has a search for these tags, that is, you enter words / letters separated by a space and tags are displayed for you by matches. These tags can be selected and double-clicked to disable. When you enter w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Navigating to specific page in the screen for firebase push notification I am unable to find the solution on how can I send notification from firebase which when clicked will navigate to the specific news(page) in the news screen. Right now the code works perfectly to navigate to specific screen My main.dart(has the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Docker Installation failed Json Unpacking failed: Access to the path 'C:\Program Files\Docker\Docker\app.json' is denied. at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recieving a FS and Path error when trying to use SendGrid I've been trying to set up SendGrid on my react project. What I am trying to get it to do is send a verification email to the user once they sign up for an account. When I go to run my client folder I am receiving these error messages when trying to render M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Plastic tries to replace old version, but on a drive that doesn't exist I'm trying to install the newest version of Plastic after deleting every trace of the old version I could find. Apparently the old version was on a drive that no longer exists. My best guess is that it was a drive that PowerISO had created. Powe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I call a JSON value using Python? I have a JSON file with some data: { "item": { "userid":"", "kissed": { "kisseduser0":"", "kisseduser0times":"", "kisseduser1":"", "kisseduser1times":"", "kisseduser2":"", "kisseduser...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Take keyboard input without gui in java I am wondering how can I make a program in java that allows you to record what key presses a user makes. The hint I am giving is that I am making a pure ASCII console game, and I want to be able to record inputs straight from the computer, I cannot use a graphical window. More...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Google Guava getTopLevelClassesRecursive not finding classes when running, only during test I am using OpenJDK 17 and Guava 31.1-Jre. I am also using Spring Boot. I have the line: ImmutableSet<ClassPath.ClassInfo> classSet = ClassPath.from(ClassLoader.getSystemClassLoader()) .getTopLevelClassesR...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get my checkbox to update correctly with localStorage? I'm creating a website where I need to save the checkbox, but update it every second. I ran into this bug which loads the checkbox in the same way, even if I uncheck it. Is there a way to have it update correctly? I'm guessing there is probably an easy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make Findstr Shorter I would like some help in making Findstr /v shorter, I have many words to delete and most of them are in a straight line like this word1 word2 word3 word4 and so one This is what I have and I need to make several of this Findstr a few of them are like 15 words long, but many are near 50 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why is my expo app not working on iOS & expo? I am building a react native app and I'm having several issues. * *When I try to do expo run:ios the build succeeds then I immediately get hit with this error. So this is preventing me from running the app directly from iPhone (not through expo) Why is this happening? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: z3 - Assert the # of elements with value x == # of elements with value y? I have some string constants in z3, e.g. boxes = [String(x) for x in range(10)] # Valid values are x or y for box in boxes: s.add(Or([box == val for val in 'xy'])) How would I add the constraint that the number of strings that equal "x" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem in creating dataframe in logistic regression model I am having trouble in creating a data frame for a logistic regression model and extracting results in Excel similar to SAS. I have the following data in the top 4 rows: dose location gender Damage 9.000000 locationA Male 0.4488765 9.000000 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to extract data on form submission from custom web component? I need to understand how form submission could extract data from custom web component? I tried out the following steps 1- appending input to the ShadoWroot 2- using the concept of form association I connected input value and name with the form 3- fina...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: External interrupt. Get individual bits of a uint8_t value I use STM32F401CCU6 at 42 MHz. Pin PB0 connected to external interrupt source at 50 kHz. Pin PB10 is I/O - changing state every falling event. In external interupt i use this function, but it's not work propertly, the output is constantly different values, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75568999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to execute async code before redirect on vue-router? I'm building a app with supabase. I have a route that receives query parameters from a email magic link and I want to validate those parameters on supabase service before I redirect to a target url (also a query parameter). Example: const router = createRouter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: fgets() reads previous lines when its supposed to have reached end of file (using fork) As a practice for multiprocessor programming in C, I have been trying to make a program that can use files as a way of communication between processes. This part of the program is supposed to use a child process to read the conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automatically get a specified range of data from Excel to XML in VBA I need to automate the process in which the range of data is selected. Right now the user gets prompted to input the data range through an input box and it creates an XML file with that data, but I need it so that the script gets the data ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access elements in the list by buttons going back and forth kotlin I have two arrows left and right and a text view in the middle (Image below). Users can access the date from the list by pressing the buttons back and forth. Is there a better implementation to solve this problem? My solution: //The date repea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can all code written using inheritance be rewritten using composition? Can all object-oriented code written using inheritance be rewritten using composition? I would like to see a sample code using inheritance and the same code rewritten using composition, because I've never seen that.
{ "language": "en", "url": "https://stackoverflow.com/questions/75569006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get the size of std::array inside unique_ptr without an instance in c++ I have a type declared as: using Buffer = std::unique_ptr<std::array<uint8_t, N>>; I also have a template function declared as: template<typename Buffer> bool temp_func() { // do something } and I'm calling temp_func with type Buffer: temp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Optional properties in weaviate I am trying to define a schema for my class in weaviate. However, the data I am uploading is sometimes incomplete. Some properties defined in the schema will be None. Currently, I am getting errors like: {'error': [{'message': "invalid number property 'avg_grade' on class 'Course': re...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter Persist BottomNavigationBar with Index with New screen opened by floating Button I am trying the Bottom Navigation Menu function that allows u to show different pages using index. I also have added a floatingActionBar menu with 4 children using a speed dial widget. The problem is that when I want to change s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: YUV4:2:0 conversion to RGB outputs overly green image I'm decoding video and getting YUV 420 frames. In order to render them using D3D11, they need to get converted to RGB (or at least I assume that the render target view cannot be YUV itself). The YUV frames are all in planar format, meaning UV and not packed. I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling TransactWriteItems or BatchWriteItems API without calling GET items first I would like to update items in DynamoDB table. I only want to update 2 properties within each item. If the item doesn't already exist, I want to ignore it. I tried both TransactWriteItems or BatchWriteItems APIs, but with them I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strange checkerboard artifacts in pytorch gaussian noise I'm no math wiz but I would expect an image composed of gaussian noise to be completely free of signal. Instead, to me it looks like there are some weird checkerboard patterns. Can anyone explain what is going on here? Here is my code eps = torch.randn_like(t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why passport.js requires client secret for google oauth2? When connecting your app with google oauth2 for user's login, you only need to send client_id to identify your apps, callback and few other properties but you don't need to send a client_secret. example : // Parameters to pass to OAuth 2.0 endpoint. const par...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error Java Virtual Machine Launcher Running Eclipse Debug I'm trying to run eclipse ModCoderPack but whenever I try to debug I always get this I tried editing the INI file of eclipse -startup plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar --launcher.library C:\Users\bbyto\.p2\pool\plugins\org.eclip...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Comment form not working when separating views I received some advice on separating my comment function into a separate view from 'ViewPost' view. When I do this the comment section no longer displays comments, and form doesn't appear to add a new one. Please see attached image for the code combined(I don't want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Adding new contact with seperate names I am trying to add a contact in Android (Flutter plugin), but before I add the contact, I want to give the user the option to edit some data if needed. For that I used the ContactsContract module. Because in The Netherlands we have a weird naming scheme (our names CAN be divide...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Italic Google Font with RenderHTML I have a React Native project using Expo where I'm using react-native-render-html and Google Fonts through @expo-google-fonts. After loading my fonts properly and everything, I can't get an Italic font to render properly on Android, whereas it works fine on iOS. Rendering on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: opam switch install (in foreign chroot with QEMU) is extremely slow, about 75–90 minutes I have the following setup: Github Actions, Ubuntu 22.04 image with Debian bullseye in a foreign chroot jail (as described in https://www.hellion.org.uk/blog/posts/foreign-chroots-with-schroot-and-qemu/). I set up OCaml as follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Service not available, closing transmission channel. The server response was: 4.4.1 Connection timed out I use an SMTP connection manager and Send Mail task to send emails to customer approx 5000 emails. The SSIS package runs successfully when the elapsed run-time for the package is less than 10 minutes.The Send Ema...
{ "language": "en", "url": "https://stackoverflow.com/questions/75569040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }