Latest Questions

Odd Linearization of Pydrake Body with Bushing Constraint

I'm currently simulating a four-bar linkage with the bottom link bolted to the ground, and I am using a bushing constraint. I need to use the Linearize function

getting video length of mov file with no audio error chrome js

Is there an accurate way to determine the length of a .mov file with chrome? On our website we currently use video.onloadedmetadata but it's causing errors. Exa

error: too few arguments to function ‘blk_get_request’

In Block Device Drivers coding, I am trying to implement Disk on file code, I am getting error: In function ‘mydisk_request’: /home/lab/DD/main.c:22

How to tag nodes implicitly in yaml (PyYAML)

Consider this yaml file: !my-type name: My type items: - name: First item number: 42 - name: Second item number: 43 There is one top level object t

Setting a title and favicon for non-html files on a website

Is there a way to set a title and favicon for non-html files on a website? For example, a link like https://example.com/files/image-or-something.png. By default

Consider defining a bean of type 'Mapper' in your configuration [Spring-Boot]

mapstruct doesn't work on my Spring Boot project. I added dependencies, path, Mapper annotations (componentModel="spring") in the mapper interface and still get

How to use ODBC connection for pyspark.pandas

In my following python code I successfully can connect to MS Azure SQL Db using ODBC connection, and can load data into an Azure SQL table using pandas' datafra

Relative image path not showing image

Why my browser is not showing image even after adding relative path?

Problem with mime type with combination of Nginx and angular

I had built angular project with following command npm run build --prod --base-href=./ --deploy-url=./ I am having nginx config as follows: worker_processes 4;

quasar Put q-select in q-checkbox

I'm trying to get use "quasar" I want to let the user choose which filtering method to use, then enter the content, and finally set a button to output the selec

combine two rows with negligible threshold on a groupby dataframe

I have a raw dataframe(simplified) as below: ColumnA startime endtime A 2022-02-23 08:22:32.113000+00:00 2022-02-23 10:54:04.163000+00:00 A 2022-02-23 10:54:04

How to save the opened tab state in vue.js? (script setup)

How can i save the state of opened tab while refreshing? I have two tabs If I opened 2nd tab and than i refresh, it took me back to 1st tab. My code is <temp

Drawing an arc using pyqtgraph

I need to draw some shapes on the screen using pyqtgraph. I chose pyqtgraph over matplotlib because the former is way faster when a lot of shapes are present. F

Redirect www non-https to non-www https on Cloudflare

I'm trying to get Cloudflare to route requests to: http://www.example.com https://www.example.com http://example.com to: https://example.com It seems to work pr

Apply linear stretch to Landsat 8 images in the tmap R package

I have a Landsat 8 dataset downloaded from the USGS. I import into R using the following code: library(raster) library(tmap) B1 <- raster("LC08_L2SP_166072_

~/.bashrc change PS1 with color converts newline into carriage return first newline

I changed my prompt as: c=$(basename $CONDA_DEFAULT_ENV) export PS1='[\h] -\e[0;36m$c\e[0;37m (\W) 🤞 \e[0;52m' In ~/.bashrc. The first newline

value always coming back as 0 when the answer should not be 0

Trying to get a value back that usually should return 20 to 30 as s with this code int s = sentences / wordcount * 100; both sentences and wordcount come out a

calculate day of the year from 15minute timeseries data

I want a column with day of year. How do I calculate day of the year with 15-minute interval data which are resampled to daily entries. The following code produ

Can we edit title of windows alert box being used in Google Apps script?

Can we customize the title in alert box for a webapp created using google apps script ? function confirmReserve(text){ document.body.style.cursor = 'auto';

To compare two programs with each other

Help me understand how the program works. I take it from the book of Steven Pratt “Program language C” I find on page № 289 exercise №6.

Java Selenium - how to test browser network -> payload?

Java Selenium - how to test browser network -> payload ? I have following code that works: WebDriver driver; BrowserMobProxyServer proxy; Proxy

Reading Data in Vertex AI Pipelines

This is my first time using Google's Vertex AI Pipelines. I checked this codelab as well as this post and this post, on top of some links derived from the offic

Upload a pdf file in core php

//=============== PDF File Upload===================== if (isset($_FILES["pdfile"])) { $filename = $_FILES['pdfile']['name']; $dir = "../pdfs/st

How to make cell values conditional on other cell values in Excel VBA?

I'm wanting to automate a few things in Excel, problem is I am definitely not a programmer / scripter so this is all foreign to me. I have a list that changes i

I want to get the count of an empty xml file having only closing tag. Using count function. I want to get count as zero

I have an xml payload as <?xml version="1.0" encoding="UTF-8"?> <Data/> While using count(/Data)=0 to check whether the data is zero or not it is n

Why is my useEffect not being called when I take a item out of my cart in React?

I am doing a simple food ordering web app with React and for some reason, I can't get my useEffect to run when the cart is changed with the X button to delete a

TypeError: Cannot read properties of undefined (reading 'add')

I've been stuck on this for ages and can't figure out why the error pops up. async function verify(i) { try { var g = await client.guilds.cache.get(

Android stop foreground service executes onStartCommand

Why calling context.stopService(stopIntent) is going to execute onStartCommand am i missing something? i had to do this in the onStartCommand if (ACTION_STOP_SE

Why does jQuery or a DOM method such as getElementById not find the element?

What are the possible reasons for document.getElementById, $("#id") or any other DOM method / jQuery selector not finding the elements? Example problems include