Categories
Apple User Help

Max Heart Rate during Workout Apple Watch

I am wondering if it’s possible to set a max heart rate during a workout in the new Apple Watch 6. It’s the only feature that I need in a new watch. If it doesn’t have it I’m buying a garmin watch. Kr, V.

Categories
Mastering Development

How to divide an array into a tree of buckets sized by powers of two?

How do you take a number representing a list of items, and divide it into chunks, where the number of chunks is a power-of-two, AND where each chunk also has a power-of-two number of items (where size goes up to a max power of two, so 1, 2, 4, 8, 16, 32, 32 being the […]

Categories
Mastering Development System & Network

ISPConfig sees FTP users, but 530 Login authentication failed

I have a VPS which runs Debian and has ISPConfig installed. FTP is running on pure-ftpd, after a recent update FTP got broken, I’ve managed to get the pure-ftpd and pure-ftpd-mysql services running back again, but now when I try using same FTP credintials that I know are correct and work normally, I get: Status: […]

Categories
Mastering Development

Some videos are not saved with Flutter and gallery_saver

I´m using the gallery_saver package for flutter. I have the strange problem that some video files don’t get saved. For example: Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; new Directory(tempPath).delete(recursive: true); final allPictures = await picturesData.getPicturesFromAlbum(albumID); if (albumID == 99999999) { for (var i = 0; i < demoImageList.length; i++) { File file […]

Categories
User Help

Scaling using Pad filter in ff-mpeg output video texture is not center aligned

History I have managed to merge two chunks of different videos by using scale and pad filters. using the following command I did it. var cmd = arrayOf( "-i", listofFiles[0], "-i", listofFiles[1], "-filter_complex", "[0]scale=’min(720,iw)’:min'(1280,ih)’:force_original_aspect_ratio=decrease,pad=720:1280:(720-iw*min(720/iw\\,1280/ih))/2:(1280-ih*min(720/iw\\,1280/ih))/2,setsar=0,fps=30,format=yuv420p[v0];" +"[1]scale=’min(720,iw)’:min'(1280,ih)’:force_original_aspect_ratio=decrease,pad=720:1280:(720-iw*min(720/iw\\,1280/ih))/2:(1280-ih*min(720/iw\\,1280/ih))/2,setsar=0,fps=30,format=yuv420p[v1];"+ "[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" ,"-map", "[v]" ,"-map" ,"[a]" ,"-c:v" ,"libx264" ,"-crf", "32","-c:a", "aac" ,"-movflags", "+faststart", outP) Now Using the above command New issue […]

Categories
User Help

Scaling using Pad filter in ff-mpeg output video texture is not center aligned

History I have managed to merge two chunks of different videos by using scale and pad filters. using the following command I did it. var cmd = arrayOf( "-i", listofFiles[0], "-i", listofFiles[1], "-filter_complex", "[0]scale=’min(720,iw)’:min'(1280,ih)’:force_original_aspect_ratio=decrease,pad=720:1280:(720-iw*min(720/iw\\,1280/ih))/2:(1280-ih*min(720/iw\\,1280/ih))/2,setsar=0,fps=30,format=yuv420p[v0];" +"[1]scale=’min(720,iw)’:min'(1280,ih)’:force_original_aspect_ratio=decrease,pad=720:1280:(720-iw*min(720/iw\\,1280/ih))/2:(1280-ih*min(720/iw\\,1280/ih))/2,setsar=0,fps=30,format=yuv420p[v1];"+ "[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" ,"-map", "[v]" ,"-map" ,"[a]" ,"-c:v" ,"libx264" ,"-crf", "32","-c:a", "aac" ,"-movflags", "+faststart", outP) Now Using the above command New issue […]

Categories
Mastering Development

Getting the inputted values in the array by passing a function

I am having some troubles in getting the inputted values in my array. We are required to create a function for the "methods". Let me explain it further. Here’s the full block of my code: using System; class LabExer { static void arrayVal(string[] arr) { for(int i = 0; i < arr.Length; i++) { Console.Write(arr[i] […]

Categories
Mastering Development

Create a dynamic list from a master worksheet using VBA

I am struggling to work out what I need to do next. After spending a long time searching online I have found the following code that nearly does what I want Dim LastRow As Long LastRow = Worksheets("Data Input").Cells(Rows.Count, "B").End(xlUp).Row With Worksheets("Sheet7").Range("A2:A" & LastRow) Intersect(Worksheets("Data Input").Columns("A:A"), Worksheets("Data Input").Range("A1:A" & LastRow).EntireRow).Copy .Range("A1") With .Offset .Replace "ARL", […]

Categories
CMS Magento Mastering Development

How can I track Add To Cart values using Facebook Pixel custom pixel for Magento 2 without plugins?

I would appreciate any help with setting up a custom Facebook Pixel for Magento which tracks the values for when customers add products to their cart. My store requires for the swatch option to be selected before a product can be successfully added to the cart (eg click/select your size before clicking on add to […]

Categories
Mastering Development System & Network

Tomcat root deployment not working in Kubernetes (AKS)

I am having problems deploying a Java .war application in Tomcat on Kubernetes. I have a Docker image based on tomcat:8.5.40-jre8 containing two Tomcat .war webapps, One at ROOT and one with its own path. When I pull and run this Docker image locally on my Mac everything works just fine. However when I deploy […]