How to get a sum of all values from a node in Firebase? Error

tell me, please: what is my mistake? I’m trying to apply your example, but I can’t get the summation result. I want to add up all the prices and display them in TextView. I will be grateful for the help, I’m new to this. enter image description here MainActivity package com.example.testkorzne; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity;… Read More How to get a sum of all values from a node in Firebase? Error

yup typescript type error of optional object member

I want to define a yup schema for object, containing inner object property which is optional; type Inner = { size: number; price: number; }; type Container = { inner?: Inner; }; const containerSchema: yup.SchemaOf<Container> = yup.object().shape({ inner: yup .object({ size: yup.number().defined(), price: yup.number().defined(), }) .optional(), }); For some reason I get a quite misleading… Read More yup typescript type error of optional object member

Unix get final directory name in a symlink

I have symlinks in a directory full of versions that each point to a specific version. The file structure would look like this: /path/to/stuff/v1 /path/to/stuff/v1.1 /path/to/stuff/v2 /path/to/stuff/v3 /path/to/stuff/A -> /path/to/stuff/v1.1 /path/to/stuff/B -> /path/to/stuff/v3 I need a way to get only the version number from a specific symlink (i.e for /path/to/stuff/A I want only "v1.1"). readlink… Read More Unix get final directory name in a symlink