text
string
meta
dict
Q: rant_category() got an unexpected keyword argument 'slug' Running into an rant_category() got an unexpected keyword argument 'slug' on my django project. Basically, I just need to get the slug of the #category in my app to show it in the url. Here's my code: views.py class RantListView(ListView): model = Rant ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I remove recent projects from Embarcadero C++Builder? How do I remove recent projects in Embarcadero C++Builder 10.4? I tried regedit, removing files; all to no avail. A: Either File - Reopen - Properties or Tools - Options - User Interface - Reopen Menu
{ "language": "en", "url": "https://stackoverflow.com/questions/75633810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Power BI dax measure issue I am having a challenge to write a measure for the following. I have a table called products and each row is a different sales. I can work out the number of sales for each product but my challenge is the following. From this table I am after a measure that will tell me from this table the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: window.open() Preventing the rest of the function running PROBLEM I have a function which first sends users to a new page and then renders information on it. The Issue is that using "window.Open()" reloads the page and prevents the rest of the function from running Intended Behaviour "window.open()" will open up the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: matplotlib trick to have unequal space beween each integer on x axis here is a code that mimic a distribution and make a stacked histogram plot import numpy as np import matplotlib.pyplot as plt f1f2=[(i**6-int(i**6))/5 for i in np.random.exponential(0.8, size=100)] widz=[i*(1/max(f1f2)) for i in f1f2] pos=[i for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple Order By On Same Column in Laravel ,Does Any Way Exist? I want Data From Both Queries One After Another ->when($todayDate, function ($query) use ($todayDate) { $query->whereDate('startdate', '>=', $todayDate)->orderBy('batches.startdate', 'desc'); })->when($todayDate, function ($query) use ($todayDat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can we use tanStackQuery client in my react app to get the bloglist How can we use tanStackQuery client in my react app to get the bloglist. Could someone please advise ! import React, { useState, useEffect, useCallback } from 'react'; import { useQuery, UseQueryOptions } from '@tanstack/react-query' const...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inputs changing on parent altering (HTML5) I have an issue. I am doing a school project to do, I am in charge of back-end/front-end software, I am currently making a interactive list of values that can get removed and added, like little cache tabs, It is for a software named Rimi, Short for "Remind Me", working from...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: React hook form passing value to onSubmit How to correctly pass data to onSubmit function data property? When i click + i see the numbers changing but when clicking Submit button it does not pass data to onSubmit function, this can seen in console.log it's always 0 import { useState } from 'react'; import { InputAd...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use MDX custom elements in contentlayer I'm building a site that makes use of Nextjs and Contentlayer to render a bunch of MDX files. I basically followed this tutorial to get it set up, except I'm going with MDX instead of plain markdown. I'm using Contentlayer because the standard way of supporting MDX in N...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check for possible double bookings in a PHP JavaScript appointment planner? I've built an appointment planner in PHP JavaScript which is functioning well. However, there is the possibility of double bookings when multiple vistots have reached the page containing the appointment planner at more or less the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Getting error after click on the the send button also not getting accesstoken and refreh token getting bad request error { "error": "invalid_grant" }It shows something like these one click of the send button shows access and refresh token i want these A: If you are using Auth Code Grant with Postman, you'll need th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to show results of union query side by side? I have two select statements with union and I wanna show the result in multiple columns or side by side. I try this: SELECT COUNT(emp.id) num1,dep.departmentname from tblemployees emp JOIN tbldepartments dep on dep.id = emp.OriginalDepartment WHERE emp.OriginalDepartm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django filter Two Models for ID I am working on a Django Application where registered users can be added Deposit by staff users, and I want to know whether a user has been added Deposit in the current month. And also check in HTML on a Button url whether the user has a deposit or Not then decide how whether to displ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: convert the postgres query to jpa native query Actual Query: select COALESCE(sum(infra_evt_count),0) +COALESCE(sum(infra_res_count),0) +COALESCE(sum(user_req_count),0) +COALESCE(sum(user_res_count) ,0) from dashboard.application_incident_summary_t where date between '2023-01-23' and '2023-01-29' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cloudbuild unable to decrypt using key 404 I am attempting to set up a simple Rails application using GCP Cloudbuild, and am running into a error message that indicates a failure to decrypt a variable due to the kms key not being found. Currently, when running the build gcloud builds submit --config cloudbuild.yaml,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I have a question about Mat-Select Angular So I've Imported all necessary modules: import { MatSelectModule } from "@angular/material/select"; import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { MatFormFieldModule } from "@angular/material/form-field"; And Created such sample code: <mat-form...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make package hints in powershell when you want to download a package I saw when you want to download a package, a hint is shown, you press the tab and you don’t need to completely write the command, how to do this in powershell?
{ "language": "en", "url": "https://stackoverflow.com/questions/75633829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: POST request from python to nodeJS server I am trying to send a post request from python to my nodeJS server. I can successfully do it from client-side js to nodeJS server using the fetch API but how can I achieve this with python? What I tried below is sending the post request successfully but the data/body attache...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Specify Source Time Zone When converting between two Time Zones I'm working with the following Time Zone code: using System.Globalization; DateTime sourceDt = Convert.ToDateTime("2023-09-05T08:00:00"); DateTime sourceUtc = sourceDt.ToUniversalTime(); var tz = TimeZoneInfo.FindSystemTimeZoneById("Central St...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: i can add folders in gitignore with [] names i can add folders in gitignore with [] names i have folder wit this names [exampel] / [example2] / folder / file.lua in github desktop when i want to gitignore this file right click and gitignore this file github add this to gitignore +\[exampel\]/\[example2\]/folder ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle UPDATE statment targets 4 columns but only 2 get updated. Why? I am trying to create a PLSQL package, SQL_LOGGING_PKG, that contains an "execute_sql" public procedure that executes a SQL string that is passed to it using dynamic SQL. The intent is for the procedure to log the SQL before it is executed and the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Release date for openpdf 1.3.31? Anyone know when Open PDF 1.3.31 will be released? I am running into this bug which has a fix scheduled to be in that release: Bug 823
{ "language": "en", "url": "https://stackoverflow.com/questions/75633836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: ASP.NET Core Identity multiple user types I'm trying to build an application where there are two types of users, Staffs and Customers. I need the staff data and customer data to be separate. What is the best approach on creating the tables? Do I need to create one table for all the user types or separate tables for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change id of child elements from a list using jQuery I am adding options to a select tag from a dictionary using jQuery and now I want to set title attribute of each element according to the keys of the dictionary. Can anyone tell me the solution for doing so. JQuery function addOptions(){ var dict = { key1:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Seeking assistance to the integration of Emotiv Cortex V3 Unity Plugin to Unity3D platform I'm new to the programming field and would like to seek assistance or guidance in the necessary steps in integrating the Emotiv Cortex V3 Unity plugin that can be found on Emotiv's github to my Unity3D platform. After reading ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GTKTerm and ELM327 interface not communicating I am trying to send serial data to a USB connected ELM327 interface. Port setup is correct since when I unplug then plug the interface to my UBUNTU system the initial message from the interface is displayed correctly. However any ELM commands I send is replied with a "?...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Shared Storage Between Browser and Windows Worker Service I was looking for a way to share data between my browser and a windows worker service. I want to have a shared storage place where a blazor wasm application writes a simple GUID and a c# windows worker service read it. both worker service and blazor wasm are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an efficient way to determine if a sum of floats will be order invariant? Due to precision limitations in floating point numbers, the order in which numbers are summed can affect the result. >>> 0.3 + 0.4 + 2.8 3.5 >>> 2.8 + 0.4 + 0.3 3.4999999999999996 This small error can become a bigger problem if the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Extract first "extension" tag in nested xml using pyspark Spark version=3.0with python I am using pyspark and want to read a XML. There are multiple extension tags and I need only the first tag. Extension is of type array. IF I explode I am getting multiple rows with nulls. I need only below tags <extension> <docCla...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to go to AWS RDS instance for some work in the directory of RDS server I want to directly work in the AWS RDS Server (MYSQL). All I can find is to use mysql client. But I literally want to work on the RDS server like SSH user@{rds ip} How can I do this? A: Amazon RDS is a fully-managed database service. You on...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can't scan into dest[2]: cannot scan int4 (OID 23) in binary format into *models.User type Order struct{ Id uint `json:"id"` Items []Item Total float64 CustomerID int32 Address Address CreatedAt time.Time UpdatedAt time.Time Status orderstatus } query := INSER...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to have a service worker for a PWA if your 3rd party push notifications supplier already has a service worker? I currently use Pushwoosh for my push notifications in my web-app, which I've successfully set up. I'm in the process of converting the web-app to a PWA, and want to set up my own service worker so that...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I fix this React Hook example to have the same functionality as this one written in Classes? I'm trying to set minimum width for my columns dynamically when window resizes! The example on Kendo website using Classes works fine. But the ones using Hooks is not. Can someone help me figure out what am I missing...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: for sequelize js findall Why does my cycle findall once. More precisely, it outputs only one record from the base it picks me the first entry and that's it const task = cron.schedule('* * * * *', async () => { try { let u_sers = await User.findAll(); for (let i = 0; u_sers.length; i++) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spherical Coordinates to Cartesian conversion according to the viewing angle (FOV, zoom) I have a spherical projection of the sky texture made in WebGL which takes CameraAngleX, CameraAngleY and CameraZoom parameters to calculate the coordinates by ray direction function: vec3 GetRayDirection(vec2 uv, vec3 ro, float...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loop Pagination on Collection Products Into Small And Big Product Image Sizes I am new in liquid (shopify) I try to modify the theme in a collection grid, but it is coded using loop. Can anyone help me to edit my code to display my collection page in the following pattern as follow below, Row 1 output: 1st product g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to highlight active (variable) link in ReactJs? I know how to 'highlight' an active link in React.js, I do it like this: <Link className={splitted[1] === 'Details' ? "bg-red-800 rounded-full hover:text-white" : "hover:bg-blue-800 rounded-full hover:text-white" } key={'xxx'} to={`/Details/${id}`} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Installing linux mint damages windows boot I have made a bootable flash for linux mint 21.1. My windows 10 is installed on UEFI part of bios and i want to install linux on legacy part. I changed the setting and installed linux on legacy, and it worked. but when i changed bios to UEFI in order to load windows, again ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React setState not when switching between tabs in Material UI. Applied div with display none but not rendering When I navigate from one Material UI Tab to another, the state does not persist and is cleared. https://codesandbox.io/s/quiet-meadow-6pw3dk?file=/demo.tsx I've tried: * *Using React Context to pass in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I catalogue product names and prices using CSS selectors I have been trying to create a program to learn Kotlin + webscraping with Jsoup. The goal of the program is to enter in a product name, go to the search page for that product: class MainActivity : AppCompatActivity() { private val baseUrl = "https:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular Cant Access Spring Boot Endpoint Heres is my spring boot controllers, the first one is authenticate, this endpoint is the one i called in logging in after implementing this authentication response will be stored in session, Authentication Response is an object which have the property string token; @PostM...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenAiService duplicated Is there anyone konw how to fix OpenAiService duplication? I used gpt-3.5-turbo by OpenAI API and currently OpenAiService works. OpenAiService service = new OpenAiService("API_KEY"); Thanks, Message is below. Creates a new OpenAiService that wraps OpenAiApi But I don't konw how to fix this.
{ "language": "en", "url": "https://stackoverflow.com/questions/75633875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does auto and zero do in margin: 50px auto 0;? What does auto and zero do in margin: 50px auto 0;? I know it has the effect of centring objects. A: it means that there is a margin of 50 pixels on the top, 0 pixels on the bottom, and the left and right margins are set to "auto". The "auto" value for left and ri...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: -1While solving Today's leetcode Daily challenge I wrote this code: (not the actual solution) class Solution { public: long long countSubarrays(vector<int>& nums, int minK, int maxK) { int j = -1; int mintillnow = INT_MAX; int maxtillnow = INT_MIN; long long count = 0; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using Constraint Programming to model preemptive task with energy allocation over periods I have a linear model that works fine but has a huge amount of time of resolution that I want to reduce. One approach is that I convert it to constraint programming. Supposing that I have a specific task that requires 5 hours o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: negative numbers in python im trying to get this rawstr = input('enter a number: ') try: ival = abs(rawstr) except: ival = 'boob' if ival.isnumeric(): print('nice work') else: print('not a number') to recognize negative numbers, but i cant figure out why it always returns 'is not a number' no matte...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Source paths being preserved in Stacktrace in release build after .NET 6 upgrade We have recently upgraded our C# application from .NET Core 3.0 to .NET 6 and we are seeing an issue where our error logs have source path in the errors (the path has build machine information). We are using the following commands in CM...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there anyway to externally detect if a syntax error occurred in VScode? I am working on commission (so I can't tell you much without breaking agreements) I need to create a program to run a python file whenever VScode console prints a syntax error I don't even know where to start so any help would be greatly appr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Cross Account S3 Bucket Object copy gives (403) when calling the HeadObject operation: Forbidden I have a lambda found in the destination account that copies s3 objects from source_A to destination_B. For the source bucket I have attached the permissions { ## permission for source bucket "Version": "2012-10-17",...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: folder.appendMessages takes more time in java mail api while sending email After sending an email I am storing it into a folder using java mail API. The folder.appendMessages takes 8 to 10.005 seconds to store a single message with attachment of 3.26MB. Below is the code, Folder folder = store.getFolder("Sent");...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File size is getting progressively larger as I continue to download data I am downloading financial data using to_hdf and I have noticed that each file gets larger and larger as it keeps downloading. What is happening? The first file was saved as 223 KB and the most recent where I stopped (67) was saved as 14,609 KB...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the day number of a date from a month in momentjs? I tried to get the day number of a choosen date from a month by using momentjs. My scenario is, i chose a date, like, 4-3-2023, and i want the output as 4 that it is 4th day of the month. I searched in web but didn't get the way as every solutions are rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to get opentelemetry's trace_id through MDC, even though MDC was working through logging.pattern.level I have integrated OpenTelemetry in my application and after following this https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/logger-mdc-instrumentation.md, I am able to inje...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I implement this feature? I have a scriptable object called Augment Data that contains a single float. Each instance of Augment Data will have a different float. I have a class Snail that contains roughly 20 different floats and a list of Augment Data. Each Augment Data is intended to only be added to 1 spec...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I recover from "invalid sha1 pointer in resolve-undo" with git fsck? I run git gc in a repository and get a fatal error: Enumerating objects: 2382, done. Counting objects: 100% (2382/2382), done. Delta compression using up to 8 threads Compressing objects: 100% (747/747), done. fatal: unable to read <object-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Inject a wallet into the browser from Mobile (react-native)? I have created a mobile wallet and am attempting to inject the wallet provider into a webview instance. I want the wallet to mimic how metamask would connect. this is the code I am using currently. and the image below shows that the browser sees an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How write file length in another file using a loop? I am attempting to write a file which compares the amounts of permutations available for three numbers. The current script is tmp = open("tmp_out.txt","w+") out = open("output_trip.txt", "w") N = 4 for k in range(2,N+1): count = 1 for j in range(1,k): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change variable group name dynamically in azure devops I'm trying to change the variable group in azure devops pipeline using the code below. I don't run into any errors but, at the same time it does not work as I intend it to be working. I have tried a few other ways but none seem to work. Do you have any pointers ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to read ppt template and edit it according our need in ReactJS In ReactJS we have one ppt template which we will download on frontend side. How to find the specific slide and replace/insert texts? A: Following are some links that might help you : https://www.npmjs.com/package/react-pptx https://codesandbox.io/e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Group rows partially [Python] [Pandas] 0 Good morning everyone. I have the following data: import pandas as pd info = { 'states': [-1, -1, -1, 1, 1, -1, 0, 1, 1, 1], 'values': [34, 29, 28, 30, 35, 33, 33, 36, 40, 41] } df = pd.DataFrame(data=info) print(df) >>> states values 0 -1 34 1 -1...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with safeareaview when using react-native component in react app I've tried to render a react-native component in my CRA app. But the following error occurs: Uncaught Error: No safe area value available. Make sure you are rendering at the top of your app. at useSafeAreaInsets (SafeAreaContext.tsx:121:1) at S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Maintaining Idempotence with the lineinfile and copy module I am generating a file that contains a UUID in it using the copy or lineinfile modules. However, when running these playbooks a second time, the task reiterates over the existing line or file with the content. - name: Create UUID set_fact: uuid: "{{ 9...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FFMPEG Output File is Empty Nothing was Encoded (for a Picture)? I have a strange issue effecting one of my programs that does bulk media conversions using ffmpeg from the command line, however this effects me using it directly from the shell as well: ffmpeg -i INPUT.mkv -ss 0:30 -y -qscale:v 2 -frames:v 1 -f image2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unable to open android.permission.RECORD_AUDIO permissions dialogue box and change record Button on clicking for recording RecordFragment I build a voice recording app Problem is that i give every permissions but when i install my app and click on the record Button Neither the dialogue permission box is open for ask...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS Full stack app deployment tutorial failed build Following the tutorial on this link: https://aws.amazon.com/getting-started/hands-on/build-react-app-amplify-graphql/module-one/?e=gs2020&p=build-a-react-app-intro Basically, you create a react app with npx create-react-app, create a Github repo, connecting and aut...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I put animations in a position:fixed element without lagging on page scroll? I'm trying to animate an element to move down and to the right, looping back to the top or left once it goes off the screen, and leave a little fading afterimage in its wake [see attached code]. So far so good. This isn't hard to do and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I expand my pands dataframe through a loop? So I have a table like this in my pandas dataframe # A B 0 f 1 1 g 2 But idk what code to write to transform it to # A B 0 f 1a 1 f 1b 2 g 2a 3 g 2b A: Assuming you want a cross product: import numpy as np import pandas as pd df = pd...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: io.Pipe and deadlock when trying to write/read I tried to understand underlying logic for several hours but no progress. This code below returns deadlock after 1st iteration. If I close writer before io.Copy than deadlock disappears but nothing is printed(since pipe write end is closed before read) func main() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can anyone tell me how to write the same code in vanilla js? Can anyone change this jQuery code into Vanilla JS. onmouseover on wrapper and card I am showing the card. and onmouseleave it's again going display none. <div class="wrapper" onmouseover="show(this);" onmouseleave="hide(this);"> <div class="box">...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tagmanager script to store GCLID and MSCLKID for Hubspot contacts I figured out how to store and capture the GCLID using the code below in Tagmanager for updating contacts in Hubspot. However, I still need code to do the same thing for the MSCLKID (Microsoft Click ID for Microsoft Ads). If you know how to fix this p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Optimization of Slow mysql query I have 47 million records in my vehicles table and I need to optimize the following query which basically searches vehicles with year, model, make and mileage will be optional I have a separate query if no mileage is applied but with mileage, it will take more than 14 seconds, how ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How can I add a switch case inside "MultiProvider" in Flutter? I am trying to use a code like below: class MultiPageProvider extends StatefulWidget { const MultiPageProvider({Key? key}) : super(key: key); @override _MultiPageProviderState createState() => _MultiPageProviderState(); } class _MultiPageProvider...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sync playback progress through devices? I have a mobile streaming app that need to save and sync playback progress to the same apps on other platforms. Most audiobook applications has this feature. Do they periodically post progress to the server?
{ "language": "en", "url": "https://stackoverflow.com/questions/75633961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to patch values in nested map I have 2 nested maps, i want to compare those 2 maps using the keys and replace the values first map: { "atBaseType": "abc", "atType": "abc", "id": "ot10", "name": "ot10", "version": "1.0", "validFor": { "endDateTime": "2023-02-25T00:00:00Z", "startDateTime": "2023-02-01T00:00:00Z" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: filtering characters out of a username (py) i wanted to create a terminal game using python. A username is needed for the database, but i dont want the user’s username to be random special characters. So i decided to filter characters, but didnt work as i planned. the code i used: # Python3 import string username = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am pytesting code in flask. What is the best way to add select and delete from the databas in flask-sqlalchemy while showing when asserion is False? How do I add as in db.session.add(new_user) and db.commit() , select as in user = User.query.filter_by(email=new_user.email).first() and delete as db.session.add(new_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Firebase function only deployment issue with node_modules Having I'm following a reddit clone walkthrough and have encountered a problem when trying to execute this line in the terminal: reddit-clone git:(main) ✗ firebase deploy --only functions The final error message reads as: Error: functions predeploy error: Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "TypeError: instantsearch is not a function" vanilla javascript this is the full error I am receiving: export const search = instantsearch({ ^ TypeError: instantsearch is not a function at file:///c:/Users/OneDrive/Documents/Programs/Javascript/New%20folder/SearchTool.mjs:45:23 at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can we pass two paths in when a file is created or modified in a folder I'm using when a file is created or modified in a folder i can pass one path in the trigger so how can I pass another path in the trigger
{ "language": "en", "url": "https://stackoverflow.com/questions/75633973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: External login with Google/GitHub on the new Spring authorization server I have an Angular client app and I am implementing a Spring authorization server. I want to provide external login with Google/GitHub on the new Spring authorization server and redirect to the Angular client app with authorization code. In the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to solve the problem of "import gradio could not be resolved" importing api from gradio quickstart but in terminal it's showing a prblem of "import gradio could not be resolved" how to make complier accept gradio A: firstly make sure that you have installed the library using the following command. pip install g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ThreeFiber Drei PivotControls, get position after onDragEnd I'm trying to get the updated position of a mesh after moving it with the Drei Pivot Controls, but digging into the object it says the position is [0,0,0]. How can I console.log the position after dragging a mesh? const meshRef = useRef(); const handle...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: hot to solve strapi server eorror when integration stape payment method i use in front react and backed use strapi and i add strape payment getway.when requst from front to backend strapi always give server error.all screan shot given when front request to strapi strapi redirect to strape payement prebuild page. str...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display what i searched in the search box after getting resul How to display what i searched in the search box after getting result...eg: if searched for apple in a search box after getting result how to display the apple in the search box How to display what i searched in the search box after getting result ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: setTimeout Not Working With For Each Loop On Array I had a forEach() loop set up that was running through a number of Docs from Firebase exactly the same as the exmaple code and it was working great... Until I found out Firestore stores docs lexicographically. Which ended up ruining my forEach() loops. So I put the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TSNE plot having Type Error must be real number, not str I kept getting this error message when i tried doing TSNE plot :TypeError: must be real number, not str. I need help seriously. below is my code: y = df_new['binary'] X = df_new.drop('binary', axis = 1) def tsne_plot(x, y): # Setting the plotting b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to collect all sites into one app? In University we were asked to create conceptual design of digital product as a Project Work. My team wants to create Application for our University where we could collect all university platforms. Because now, we have different websites for Timetable, Rankings, e-Cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: CORB while getting a click event through Jquery I am working on frontend of a website and I am getting Cross-Origin Read Blocking (CORB) blocked cross-origin response. I have searched it and what I have understood that this error comes when your request to the server is suspicious or there's something with the JSON ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @RequestMapping and @GetMapping are not mapping correctly, and I have run out of ideas for how to fix it I am working on an assignment for class and for some reason the @GetMapping and @RequestMapping are not properly setting up. When I run the project and then try to access the page it only displays a WhiteLabel Er...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to wait for a process to open Im trying to create a function that waits for a process to open before doing other stuff with it, it seems like it should work and im not sure why it doesnt, if it matters im on visual studio 2022 with ISO C++20 Standard and multibyte character set (it works if the process is alrea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AAD B2C not skipping orchestration step Good day! I have a problem when skipping an orchestration step in AAD B2C. I'll start at the beginning. So I have a custom user attribute named User Tagged, the type of this attribute is boolean and it indicates if the user is tagged or not. Now in my xml file, I have declared...
{ "language": "en", "url": "https://stackoverflow.com/questions/75633999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL query that does not exist Phpmyadmin I am writing a SQL query to show me the following: * *Results that have _go_product_url in the meta_key and that is not null. *And I need it to only show me in the results based on the first query that do not have the meta_key _go_product_info What would be the best metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Studio was unable to start correctly (0xc0000005) Recently i downloaded android studio for some projects. After installing when i tried to run the program it says ( Android studio was unable to start correctly (0xc0000005). I tried reinstalling the program and restarted my pc still it didnt worked out. I ag...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Invalid content type for feed" on my RSS feed (PHP / Wordpress) We create RSS feeds on our Wordpress-based website which have been working for 3-4 years. Suddenly, a couple of months ago, they have all become "invalid" in the eyes of Apple, Google, Spotify, and various RSS validators. The error I'm getting is "Inva...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling States.Runtime errors in AWS Step Functions I am using AWS Step functions for an automation solution and the execution is stopping because of a Runtime exception.I added a catch block to catch the States.Runtime exception and when it occurs it should go to the next task defined,but it does not reach there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My Windows Task Scheduler no longer triggers a task after Re-installing Windows 10. Is there an error in my custom filter? I finally decided to clean install Windows 10, but I exported all my custom tasks (which were all working) beforehand. After the clean install I noticed my files weren't synchronizing. Part of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to create autocall recording app(service) without User Interface in android studio? I noticed that google dialer has a announcement feature after starting call recording... to overcome this i want to create an app without any UI which should record incoming and outgoing calls automatically when user get or make ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is srand used only in main function? #include <stdio.h> #include <stdlib.h> #include <time.h> int intRandom(int min, int max){ int t; t=min+rand()%(max-min+1); return t; } int main(){ srand(time(NULL)); int total; do { printf("Enter the total: "); scanf("%...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: const server = quic.createServer({ ^ TypeError: quic.createServer is not a function here is the output F:\js learning\js basic learning\bye\server.js:3 const server = quic.createServer({ ^ TypeError: quic.createServer is not a function at Object.<anonymous> (F:\js learning\js basic learning\...
{ "language": "en", "url": "https://stackoverflow.com/questions/75634016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }