Latest Questions

Wait time in a CSS keyframe

On my CSS code, I use keyframes to animate my text. I would like to add a FadeOut to allow a FadeIn of the text, a display of this one during 10s then a FadeOut

Leetcode Q9 Palindrome Number same code works in Java but not in C++

I tried solving this problem: https://leetcode.com/problems/palindrome-number/ using code: class Solution { public: bool isPalindrome(int x) { int r

Creation of an index with a year base

I have a simple features panel data with the murders in the 32 Mexican states through 24 years. I want to create an index taking as a base the first year in my

Create color palette from color

I have elements that should be colored by some color. However the bigger index of the element the 'lighter' shade of said color it should be, but never gray or

"SyntaxError: Unexpected end of input" raised in near-vm folder during near-sdk-as yarn installment

When I tried to install near-sdk-as on my laptop (Intel-based macOS 10.13) with the command: yarn add -D near-sdk-as I got the following error: ❯ yarn a

Smart for loop in python for a portfolio performance

this is my first question here, so go easy on me. I've computed a certain portfolio in python, for which I've gotten a dataframe (or list for that matter) of ar

Trying to print or access value inside a multidimensional VBA array

'For the most part, I understand how arrays work but apparently not multidimensional ones in VBA. Below is a simple subroutine in which I want to debug.print/ac

Behaviour of :defined pseudo selector class

I had a script as follows const custElem = document.createElement('my-elem') let res = custElem.matches(':defined'); console.log(`custElem.matches(':defined

How to wait for all Concurrent::Promise in an array to finish/resolve

@some_instance_var = Concurrent::Hash.new (0...some.length).each do |idx| fetch_requests[idx] = Concurrent::Promise.execute do response = HTTP.get(EXTD

Algorithm for drawing profiles using long thin rectangles

I want to draw profiles similar to the ones at https://steeldoor.org like: programmatically. (Probably in FreeSCAD, but possibly Python). I want to define a g

Why does the Ethercat device stays in PREOP and does not go to OP mode, when CoE (CAN over Ethernet) is implemented on it?

I am working on a chip which is supposed to be functional as a slave for a PLC (master) through an EtherCAT connection. The chip includes an Atmega2560 and a LA

Borb reading pdf results in spaces between all letters

I am trying to use borb to extract text from pdf's. Some pdfs works well but when trying to extract text from some pdf's I get extra spaces between all letters

Fetch data from database where logged in user id exist in an column that stores ids as an array Laravel 8

I want to get the rows in a database where logged in user exists. Here is my structure Table = Meetings Column = Participants (stores an array of users eg.["1",

Highlight Partial Matches in a Single Column in Google Sheets

How can I highlight Partial matches in a single column of google sheets? some entries are the same but they have slight misspellings or some are in lowercase. H

finding the longest sequence of identical digits in an integer (Java)

I need to write a recursive method that takes an int as input and returns the longest sequence of identical numbers in it as an int (NOT as a string). counting

PrimeVue3 MenuBar Customization

I'm using the PrimeVue MenuBar component for the Header/NavBar. I wanted to show some text in b/w the menu items. I was just able to add the text, but I need to

Folder being mistaken for module Error: no module named "GAN"

I'm running this github project: https://github.com/Biomatter-Designs/ProteinGAN the second step says 2. Run the training script with python train_gan. but when

Downloading JSON file in expressjs and reading it

I have a task where I am given a URL such as https://xyz.json. This URL prompts the downloading of the JSON file into the local. I am now required to read the u

Why JpaRepository doesn't commit to database when called from @SpringBootTest?

When repository.save(t) is called from my service, which is in turn called from my controller, all works just fine, and the object is inserted into the database

how can I package resource files in a winrt app

What is the best approach to deploy "Resource" files within a WinRT app - Windows Store app? I am working on an app that will use a number of html and css templ

How to download a higher resolution image from the wiki API with Python?

I modified the code and added to it the ability to download photos from the wiki. I am downloading the url of the photo from the main wiki page. The problem is

How can I show company name with logo up, when seaching in address bar?

When I search a company in URL search bar, Some companies show their logo, company name, and description which links to their website. I really want to add this

Rust MongoDB set unique fields

How to set a unique field in the mongodb rust implementation? Are you supposed to use create_index()? async fn create_id_fields(client: Client) -> Result {

Custom substitutions for compression in the Itanium ABI

The Itanium ABI has some rules for compressing identifier for name mangling: for instance, given namespace foo { struct string { void f(); }; }; the f

Convert multidimensional NetCDF to Tif in R

I have .nc file sizing around 651 MB with a couple of datasets (daily) (rr_mrg_19810101_20181231_ENACT.nc) data. I need to convert (rr_mrg_19810101_20181231_EN

Image Processing from PDF to excel

I have a pdf file which holds a few tables containing different colors instead of RGB values. I have been tasked to fetch RGB value from each row and transition

In AWS Cognito or Amplify Auth, can I create a user from a uid, without user interaction, similar to the Firebase Auth "custom token" approach?

I'm migrating a web app from firebase to Amplify. In firebase, you can silently sign-up / sign-in a user without any user interaction or password, as long as yo

PDF from HTML with only alphabetic (Latin) using itextpdf

I believe that the answer to my question is very easy for those who have had experience with this, and I thank you in advance. Namely, I managed to export a PDF

Spring OAuth2 name always null

New to OAuth2 and Spring framework. Have followed two introduction guides to it so far (for example this one) and the OAuth2User object (org.springframework.sec

How to add ObjectId only if the ObjectID is not present in the array in mongodb using mongoose?

so I have a schema where I want to add ObjectID to an array of id's in mongoose, I tried adding it unique, but did not work. Most likely because I need to itera