text
string
meta
dict
Q: Next.js page is automatically scrolling to top (only on mobile) I'm doing my first project with Next.js and I'm facing a weird behaviour. I mean that webpage is automatically scrolling to top. This issue occurs only on mobile. I'm kinda confused. Previously I had sth like this: Parent Component: const someRef = useR...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Modifying Hive script in SQL on AWS I need assistance with modifying a Hive script in SQL with the log file stored in AWS S3. We are given access to the web server log and Hive script. The code to return 'OS Version' is mentioned below: -- Summary: This sample shows you how to analyze CloudFront logs stored in S3 us...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MediaWiki Display Historic Date/Time In User's Local Time Presently, I've installed MediaWiki on a wiki which includes a section with a timeline of modern historic events in basically every article. It's important to display the precise time of day of these real-time global historic events in a meaningful way and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I prevent circularity errors when copying stuff from one array of objects to another? I have this code: var array1 = { "id": "car", "name": "honda", "virtues": [{ "price": 99 }, { "size": 5 }, { "condition": 8 }, { "features": 3 }] }; var array2 = { 'userid': '2', 'userna...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: S3 error:Access denied when running a Cloudformation stack The following Cloudformation template fails and returns this error: S3 error: Access Denied I don't know what to do because I don't understand why it can't access the bucket since I have IAM roles and permissions etc... defined in the template. I made sure ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to redirect to React Native app from Webview after Stripe payment? I am creating an application in which after WebView Stripe payment I want to go back to the application can you please help me out from this how to navigate back to application from WebView
{ "language": "en", "url": "https://stackoverflow.com/questions/75561910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gray scale background-colored face I am using android, java and I want to do face detection, gray scale background, rgb face. I am detecting face but cannot convert the faces from gray to rgb.Any suggestion? Thanks Here is the code: @Override public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFram...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i embed (duplicate) an existing document in another document whilst a field is unique? I have a user schema which has an unique email: import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Role } from '@sport-activity-app/domain'; import mongoose, { HydratedDocument } from 'mongoose'; impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pydantic model nested inside itself I'm trying to write a Pydantic model for fastAPI which can optionally have itself as an subobject. It should validate JSON objects like this: { "objects": [ {"object": "unicycle"}, {"object": "bicycle"}, { "object": "motorcycle", "subobjects": [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Web scraping: HTTPError: HTTP Error 400: Bad Request I'm trying to scrape this site: [https://www.icriq.com/fr/][1] I need to search by company name, and get the details of the company as shown in [this example company page][2]. I wrote the following code: import requests from bs4 import BeautifulSoup api_url ='ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validation with ObservableValidator error on GetErrors() .Net MAUI When using ObservableValidator class with ValidationAttribute an error occurs in the ValidationStatus block on the GetErrors() line. The error is System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: settingsql server con airflow ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)') I am configuring sql server through odbc install satisfactorily -import pyodbc = I have an answer * *pip install apache-airflow-providers-mysql = successful...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to create a sum in a csv file created in text format? I have the following .csv file created in text format: Nombre;Edad;Altura;Suma Juan;25;1.75;=B2+C2 María;30;1.60;=B3+C3 Pedro;35;1.80;=B4+C4 I wanted to create a cell that was the sum of two others, specifically I wanted the "suma" box to be the sum of "edad...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the recommended way to implement 'user is typing' feature in chatroom I am creating a simple chatroom web app using the t3 stack. I would like to be able to indicate in the chat window when another user is typing a message. I would like to display who is typing I am using react query. My prisma models for ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using two Controllers in the same view in MVC I have a page in which I display the list of Categories, I want to Add a form in the same page to remove a desired Category without creating another View for the Remove form This was my attempt of adding the Delete IActionResult using a Tuple. namespace MvcProject.Contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Build dynamic table based on data click via Angular I want to build a dynamic table using Angular (i am pretty new to angular) Json response will be [ { "State": "CA", "Cities": [ { "Name": "San Francisco", "Fwy": [ { "FwayName": "CA123" }, { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Why swipe is stuck first in popup? How to make stable modal in React? Here I would implement a stable login: https://tikex.com After login modal appears by clocking Login in the navbar this is what I experience: Somehow when I first swipe to scroll down the the bottom in the content of the popup, it does not scroll ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cy.exec('npm run db:reset') causes my test to refresh and start from the beginning I have tried placing cy.exec('npm run db:reset') in a before, beforeEach, and after and in the test itself (it), but each time, it causes the page to refresh and starts the test over. It does pass when I run it headless. What would be...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gitlab after renaming and pushing files, instead of just renaming the files in the remote repo, git added new files I have multiple files named xController(fixturesController, locationsController...). I renamed all of them from xController to XController(FixturesController, LocationsController...) and pushed the cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android studio not hitting breakpoints on emulator I started with a clean installation and an Empty Activity with Java code I am following this tutorial https://medium.com/android-news/a-beginners-guide-to-setting-up-opencv-android-library-on-android-studio-19794e220f3c As you can see, the breakpoint is never activa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When trying to import a local json file into a script I get an error in Safari. Chrome works fine though When I'm trying to import a local json file as a module import translation from "./translation.json" assert { type: "json" }; it works fine in Chrome, but I get an error in Safari: SyntaxError: Unexpected identif...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Topic Modeling: How to "find thoughts" STM function when topic model was made with a quanteda dfm object? I am new to topic modeling, so I will do my best to describe the question I have. basically, I am wanting to visually inspect the documents that make up the topics in my topic model. I used the following code fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a simple way to use python3.10+ structural pattern matching to match a value to a dict by items? I have a function that accepts a dict of a single item with str key and float value and I want to check if it has a correct format before returning a tuple of the item. As long as it's not possible to write some...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 2019/Angular 12 project looking for non-existing files during Publishing to Network Folder I made some changes to an Angular 12 project (which was upgraded earlier). I did prod build using: ng build --configuration production --aot=true --output-hashing none Also, build the project in Release mode in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Components are Invisible in GridBagLayout There is this leftover project I am working on, it's supposed to be a text game in a sense and I am in the early stages. I decided to try and replace my UI implementation with the GridBagLayout in favor of it having more dynamic placing, but I am running into an issue I do n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Dropbox in Ventura: how to make all Dropbox folder available offline (downloaded to disk) recursively? Basically that: in the new roll-out of Dropbox, where it has been moved to ~/Library/CloudStorage, Dropbox content is by default not available offline, only on-cloud (online). I seem to have to click on every folde...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Failing code check for CS50P, "Little Professor" problem. Can' see why I am trying to solve the "Little Professor" problem from CS50P Problem Set 4. My Python code is not passing the "check50" automatic code check. It's failing on "At Level 1, Little Professor generates addition problems using 0–9." Also failing at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Why does my electron window appear solid white instead of transparent, until I click on it from the taskbar? I have a window that I make the full size of my screen, it's completely transparent except for a red border: Unfortunately, every time I show the window for the first time, the background is completely white...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fill right side of screen CSS? I am making a webpage, and currently, my background looks like this: <body id="bg" style="padding: 2%; background: linear-gradient(#e66465, #9198e5); height: 100%; background-repeat: repeat-y; background-size: 50% auto;"> </body> It fills the left side of the screen, right? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SOLVED how to send variable from symfony server to VITE VUE server here code for view01.vue <script setup lang = 'ts'> import { ref } from 'vue' const message = ref('') fetch("/api") .then(response => response.json()) .then(data => { message.value = JSON.stringify(data); }); const V01 = ref("Please e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PyQt - MVC and multithreading I'm writing an app where I'm trying to follow the MVC - pattern and the app requires usage of QThread. The app is for taking images from webcam with certain interval of time. With the start button I can start acquisition and with stop button - the acquisition is stopped. It works well u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this the correct way to assign and free memory that is being constantly reassinged? I have a function I've written called add() that returns some dynamically allocated memory. In this case I want to pass that memory to the function itself (which does something and returns a new dynamically allocated chunk with up...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Apache Beam PCollection Schema (converting to Dataframe) I'm trying to grab some data from BigQuery, update a couple of columns using Python, and then write it to another location. I'm using Apache Beam (via Google Dataflow) to do this. Once I have the data from BigQuery as a PCollection, I want to convert it to a B...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why is custom fragment view parent null? I'm trying to create a custom side menu (headers fragment) for an Android TV app following this article. This is what I was hoping to achieve: enter image description here Everything is working well except for adjusting the margins when toggling the headers fragment. The tuto...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a difference between JDK and Java settings in Spring Initializr When I create new Spring Boot project, I see 2 options: JDK an Java. What is a difference between JDK and Java settings in Spring Initializr. Which sense is in each one? I read documentation but it is all the same not clear for me. A: Go to htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Behavior of aggregation on Kafka's SessionWindows I am trying to compute an aggregation on Kafka's SessionWindows using a class MyVeryCustomAggregator, which stores aggregated information as attributes and provides the methods aggregate and result for processing new messages and retrieving the final result respectiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the unit of distanceThresh in OpenCV's recoverPose function? I have been working on Visual Odometry and using OpenCV's recoverPose function to decompose the Essential Matrix into a rotation matrix and translation unit vector. int cv::recoverPose(InputArray E, InputArray points...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can I set up a Twilio number to auto-forward SMS messages to another number? our client has a form on their website which collects a mobile number. Right now, we are using zapier to send SMS reminders via twillio to the mobile numbers we collect on the form. However, the number sending reminders is not able to h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Peer dependency errors when installing npm packages Does anyone know a solution to the following errors. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: x npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"^17.0.1" from the root p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (0xC0000409) Stack overflow while calling C dll from Python working on one machine but not the other I have a Python script which calls a C dll to calculate some motor movement commands. It has been working for about 2 years while the C dll gets continuous updates. Recently the C dll which used to use GSL libraries ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React chakra-ui is centering the all layout I am trying create a react app with chackra-ui but when i add chakra to project its centers all layout. I can't make the width property 100. Cakra is breaking something or my config is wrong. index.tsx import React from "react"; import ReactDOM from "react-dom/client"; i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to test flink jobs end to end for timer behavior It is somewhat similar to this question: testing flink jobs with MiniCluster to trigger the timer using processing time I have written a Flink jobs graph and I defined a timer in KeyedProcessStream. Now I am trying to write an end to end test and trying to find a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python detect dates containing commas and remove comma from text file I have a txt file that contains dates in columns like below. The comma between the day and year is making it hard to import the data into pandas using pd.read_csv(). This is contained within a text file that has other data that should be ignored...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what do I save in cache to run web app in pwa? I did a lot of research and even managed to make a simple pwa that works with the html. However, I am stuck on how I can manage to save the main application of the website into the cache and how do I manage that the yarn scripts also work on the website? They used types...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Explicit reference loading in Entity Framework on a deleted entity doesn't seem to be working I have a callback that applies logic to entities before they are saved. It seems to be working when an entity is added or modified. But if an entity is deleted - then dbContext.Entry(obj).Reference(p=>p.Child).Load() doesn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Creating a dinamic table from a DataFrame values I have a pandas DataFrame that looks like this: ` Do you smoke? Do you exercise? Do you sleep less than 8 hours? 0 yes no sometimes 1 no yes no 2 sometimes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying site with Firebase Auth fails, saying "Cannot access 'auth' before initialization" I'm building a workout website using Next.JS and Firebase and everything works perfect on my local host. When I go to deploy it using firebase hosting, the build fails every time, saying "Error occurred prerendering page ""....
{ "language": "en", "url": "https://stackoverflow.com/questions/75561995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use foreach in R to create a nested loop? I'm failing to devise correct code to run a nested loop using foreach. I'm using a huge dataset so parallelisation is needed here. I need to sample at random 1/4 of the dataset without replacement 4 times (so the full dataset is resampled), and compute the correlation...
{ "language": "en", "url": "https://stackoverflow.com/questions/75561998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android 13: User can dismiss notification even after setting "setOnGoing(true)" I am making a foreground service and as we know that such services need a notification to keep running. However since Android 13, the user can dismiss it just by swiping, thus the app is killed. I tried to use setOnGoing(true) on the not...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: warning: VirtualizedLists should never be nested inside plain ScrollViews I'm learning react native and I came across a problem that I've seen several answers on the internet on how to fix it but nothing works, I have an index component where all the other components that make up the home are being imported into thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capture all of table's(mat-table) data in a button click I want to capture all of table's data(like all the rows, which may have been modified by the user in the UI from the time table was rendered using [datasource]="dataSource" concept). I initially thought that in ngOnChanges I could do something like the followi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I construct a CASE expression in SQL applying a for a simple estimation for the future? I am developing a materialized view in which I want create a CASE expression for a query. I have the CASE expression complete for the past results (2022,2021,2020,2019). But not for 2023 as I don't have the full data for 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Advanced Find/Replace Excel Macro I have recently started diving deeper into Excel and the related VBA/Macro coding. It's been a loooooooong while since I dealt with VBA, so at least it's not scary albeit unfamiliar at this point. I am seeking to create a macro to find every instance of "Vacant" in column B and pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: outputting a coloured excel file, python I have been asked to write a program for the company I work for that will take an excel file and turn any filled out row and put a pink background on it, is it possible to take an excel file, add background colour and then to save the file, I am really struggling here so if a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change font size with the python-pptx library I am trying to change the font size of the bullet points I added to my PowerPoint presentation using Python. for bullet_point in text: i += 0.5 body_shape = slide.shapes.add_textbox(left=Inches(1), top=Inches(i), width=Inches(6), height=Inches(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I continue the CUSTOM_AUTH flow for a CUSTOM_CHALLENGE after PASSWORD_VERIFIER runs? I have been following this guide to implement email OTP in AWS Cognito. I have my user pool and lambdas configured as the guide suggests, and am able to successfully trigger the SRP_A and PASSWORD_VERIFIER steps. However, I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: react-particles mouse cursor particle I'm using react-particles and I would like to create the same behavior as shown in this CodePen: https://codepen.io/franky/pen/LGMWPK. This means that on mouseover, I would like to have a single particle that is always at the same position as my cursor. The closest thing I found...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Datastream (mysql to bigquery), no is_deleted field with tables with primary key I am using datastream in GCP with MySQL source and BQ destination. I have noticed that if the source table has a primary key defined, then the datastream metadata fields do not include the "is_deleted" column. Also, the BQ table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Comprehension and Data frames to extract data from lists of dictionary's in Python I sure I should be able to find this but I have looked and I can't seem to fine how to do a few of the user cases I am looking for. I want to search a list of dictionaries and either pull back a subset or count how often a value...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Coordinate Concourse CI Same-Repo Checks? I have a Concourse CI pattern where multiple pipelines are defined in one repo. I want to test the entire repository, and then only when certain files have changed (i.e. the pipeline-specific YAML) apply those pipelines which have changed. It mostly works - except that it wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid memory leaks when using getline to read from stdin in C? I am encountering memory leaks when using getline to read from stdin in C, despite ensuring that all the mallocs were freed, the problem persists when building a simple shell. As someone who is new to C, I am looking for advice on how to properly...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: real time chat app, problem with updating chat I am trying to create a real-time chat app. I set up my soket.io for the server as well as for client-side code, I am using react. I have several consoles and all of them logging the correct data. However if I send the message, new message gets displayed on my chat auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter an array of objects with null date values I have an array of objects that contains events looking like this for example: [ { "id": "abc123", "name": { "fi": "The name of the event in finnish", "en": "The name of the event in english", "sv": "samma på svenska", "zh": "标题" }...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Convert PDF to a Google Doc with OCR Limiting Converted Pages I'm faced with the problem of converting a PDF to a Google Doc using ocr, but my PDF is too long, so I'm looking to manually set the page range that is being converted. Here is my code: function extractPdfData(){ const ss = SpreadsheetApp.getActiveSprea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Puppet server failing to start for the first time I installed puppet server on centos 8 stream, and when I try to start the server with systemctl start puppetserver it gives me the following error: WARNING: abs already refers to: #'clojure.core/abs in namespace> What should I do to correct it and get it to work? The...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Drive Api authentication redirect blocked by CORS I have an app which consists of Angular frontend working on port 4200 and Spring Boot backend working on port 8080. I am currently developing authentication for Google Drive API. My current flow looks like: User go into localhost:4200/materials, there is butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a punctuation vector in R I am trying to create a vector in R that includes punctuation marks. This is the code that I have right now: punctuation <- c(".", ",", "!", "?", "'", """, "(", ")", " ", "-", ";", ":") The error keeps coming from the three " in a row: """ I need to include " as a value in my str...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does re-labelling categorical variables change conditional inference tree result in partykit? I'm using the ctree function from partykit from my analysis. My ctree contain all binary/categorical variables. When I change the value labels of the binary categorical variables, I end up getting a different ctree diagram....
{ "language": "en", "url": "https://stackoverflow.com/questions/75562037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I seem to can't find the issue any assistance would be appreciated thanks This is the code extracted from my IDE I tried renaming all my Local Variables and even started from scratch to see what exactly the issue was but I am still running into the same issues. The errors are cannot find symbol, so any form of assis...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: How do I select the date from the timestamp in MariaDB? I have these 2 records out of several others: 2023-02-02 18:25:56.000 2023-02-02 18:49:40.000 I want to select only the year, month, and day from them. I just want to query them, right now I have: SELECT * FROM table1 WHERE `date` = '2023-02-02'; but it doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moodle plugin development - can't display html heading in index.php file In a moodle installation, I have the following index.php code in mysitename/local/myfolder/index.php It is code that basically requires a student to login and then displays all the moodle courses they take. This works fine, but when I try to ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React ternary operator issue I'm learning basics of React by doing examples on w3schools site: https://www.w3schools.com/REACT/react_conditional_rendering.asp I understand example the way they did it, but i don't understand why it doesn't work when i change it to this: function Goal(props){ const isGoal=...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get maximum value from foreach object list swiftui How can I get a maximum value from my object with a let? var body: some View{ ZStack{ ForEach(schoolClasses, id: \.self) { studentList in let oldestStudent = studentList.max { $0.age < $1.age } //this does not work, trying to retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom permission in django rest framework I want to write a custom permission to restrict access to the display picture of a user. My user profile model is called Member and the implementation is as follows: # imports class Member(models.Model): created_at = models.DateTimeField(auto_now_add=True) user = model...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best approach in python to find possibe direct relationships between subject and object words in a sentence I am looking for the best approach in python for understanding the sentence semantic and context and then find all of the possible associated subjects and objects. for example I have sentence like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to rotate signing keys via apksigner when key is stored on YubiKey (PKCS11 protocol)? The Android app I'm working on is manually signed with a private key that is stored on a physical YubiKey device, which utilizes the PCKS#11 protocol. Now that Play App Signing has been around for some time, I would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Annotate plot with ordered pair of cartesian coordinates via Python and MatPlotLib library Looking for a solution to properly annotate a subplot with an ordered pair of cartesian coordinates. My figure is a bar graph of total product quantities with a line graph of the average price for the given products. For addit...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am trying to run a code of research paper and while executing the train.py file i am facing an issue regarding the model input and output shape network = networks[str(config[parser_args.task]['NETWORK'])] for idx, row in grid_df.iterrows(): ` if row['timestamp'] == 'None': learning_rate = row['lr'] spatia...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix a broken usb port? I used the USB port on my laptop carelessly. I connected an electric motor (3 volts) to the USB 2.0 port on my laptop, it worked for about 10 minutes and then abruptly stopped. with this action, I damaged the neighboring port (USB 3.0), it stopped working for a moment and started again ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: what to do after instlling cyberpanel on VPS I am upgrading from shared hosting to VPS hosting, so I went with digitalocean and used marketplace to create a droplet with cyberpanel, linked my domain to the droplet, moved data, and almost done. but my question is what to do after this? are there any security steps sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Positioning a div element, margin and top properties are not working I am creating a chat app, within the chat footer, where a user would type their message and add an attachment is where I am having problems. When the user clicks the attach button, I want to display a div with various options, however, positioning ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is this unknown markup/config format exported from Metaswitch, formatted with Begin/End and Spaced Intents, and is there a parser for it? I've been handed a configuration file from a Metaswitch system, and I need to transform it into an object (preferably with Python) and do some processing on the data. It seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Ads Script - Single Account Link Checker Script - Exceeded maximum execution time - Thoughts on Optimization I am trying to utilize the Google Ads single account link checker script. For the full script, please see the documentation: https://developers.google.com/google-ads/scripts/docs/solutions/link-checker...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS Code IntelliSense not finding SFML (c++). Why? I am working on a personal project where I use SFML in my C++ code. When I created the project in VS Code a few weeks ago, I added the sfml using WSL. I noticed that IntelliSense wouldn't recognise SFML classes, and writing <SFML/...> would result in succesful compil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compose alert textfield The app I am building is a table view and you can add new people to the table view by clicking the add button. When you do that an alert action pops up where you put in the name, phone number, and address. The name and phone number needs to be stored on the top of the customized table view ce...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Text not showing up in production React Native app I just released my first React Native app in the Google Play store, and discovered that none of the text is visible on my device. Here's how it looks on my emulator (Pixel 2), and on my Pixel 7. I tried reinstalling the app, but that didn't seem to work. Any help w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hyperparameters tunning for Lstm (python) Is there any Library for hyperparameter turning in Lstm except keras because I need to use metaheuristic algorithm particularly swarm algorithms I am working on Google colab. I searched a bit and found pygad but there is no example about how to coding long short term memory...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VSCODE Tricks: Replace the end of a line that has the beginning matching some string I was trying to do some hacky replacement here on a project. I have some lines like this: console.log('My Cool Log'); And I would like to do some replacing, so they become like this: logger.info({ message: 'My Cool Log' }); The star...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Subset dataframe to have not more than 5 records for each group I have a dataframe with a factor called diet. And say there are "herbivores", "carnivores", and "omnivores" as levels for the factor diet. And there are 3 herbivores, 6 carnivores, and 8 omnivores. Basically I would like to filter this dataframe so that...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SAS fill array with variable end with date, some dates are missing This code is from an answer to my previous question. SAS How to create multiple variables with date suffix in a do loop @Richard In the code, array code22 takes in values from code22_&yymmdd. variables, but not all code22_&yymmdd. exist on the datase...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dark/Light Automatic Change So I have this manual script for changing my forum from dark to light, however how to do it as a automatic setup from 6pm till 7am dark etc) <script> $(document).ready(function() { $('.color-mode__btn').on('click', function (event) { let val = $(this).prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use connection pooling with python sshfs (fsspec) in Python I'm using sshfs to fetch video files from a remote SSH storage: @app.get("/video/{filename}") async def video_endpoint( filename, range: str = Header(None), db=Depends(get_db) ): # pylint: disable=redefined-builtin """ Endpoint for video stream...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When are times when it is preferable to copy-and-paste code, slightly changing it, instead of using something like composition? I have heard design patterns and reducing duplicated code can be very helpful for maintainability, I would like to know when it is preferable to simply copy-and-paste code from one part of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I keep getting a black screen after running this code? Can somebody please teach me how to create a chessboard in Python properly. I have tried different sizes, different images but I keep getting a black screen as soon as I run the code. Your help will higly be appreciated! Here's the code. Chess pieces set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid Indy Socket Error # 13 Access denied exception on Delphi and Android? I have exactly the same problem shown in Socket Error # 13 Access denied connecting with FTP Except that the server is a TIdSimpleServer that the program needs to receive some files Both <uses-permission android:name="android.permissi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use google translate on html and convert to Hindi how do i use python library to translate every text written in English of a website? For example a website called wwww.classcentral.com. The website has every text written in English, how to i use google translate into Hindi? # import modules from tkinter impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Install python-ldap with OpenSSL backend Python package "python-ldap" (link) could be backed by several backends: GnuTLS / Mozilla NSS / OpenSSL (link). I need a version with OpenSSL backend, but couldn't install it. On my Ubuntu 22.04 simple pip3 install python-ldap gives me GnuTLS backend. Seemingly, setup.cfg fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to hover images inside row I have 8 images in two columns on my website. What I want to do is to hover over them to make them larger. I don't know if my code is set up well for this, but I followed the code for displaying images in a column and using flexbox. It all looks like this. I have tried many ways to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why am I getting an HTTP response 401 (access denied) when trying to make an HTTP GET request with Springboot with a valid JWT token At this moment I succeeded to create a Springboot resource server that contacts Keycloak as the authorization server to validate the JWT token being send. This work as expected, so far...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error when including a song in a discord music bot C:\Users\comp\Desktop\Новая папка (2)>py music.py Ignoring exception in command play: Traceback (most recent call last): File "C:\Users\comp\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped ret = await coro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75562103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }