How would i make this yaml template reusable?

I currently have a template for a build step that I want to use in multiple templates. tag.yaml: jobs: – job: Tag displayName: ‘Tag’ dependsOn: – UnitTests – BuildMyContainers – HelmPackage – Prebuild condition: | and ( eq(dependencies.UnitTests.result, ‘Succeeded’), eq(dependencies.BuildMyContainers.result, ‘Succeeded’), eq(dependencies.HelmPackage.result, ‘Succeeded’) ) – task: Bash@3 displayName: tag inputs: targetType: ‘inline’ script: | tag=”$(RELEASE-NUMBER)” … Read more

Exclusion matching the regular expression

I’m just venturing into regular expressions and I have a problem that I can’t solve. I have to create a regular expression that matches the string “M6” which however I can find formatted in different ways. Currently the expression I created is: /[mM]0?6[tT \r\n]+/ The problem I can’t solve is that I always have to … Read more

“This session is provisioning a new connection; concurrent operations are not permitted” error using SQLAlchemy UOW and starlette_admin

I am tried to implement transactions in fastapi project. (routes -> Services layer -> Unit of Work -> Repositories) This is my base UOW: class BaseUnitOfWork(UnitOfWorkInterface): def __init__(self, session_factory: Callable[[], AsyncSession]) -> None: self._session_factory = session_factory async def __aenter__(self) -> Self: self.session = self._session_factory() self._init_repos() return self @abstractmethod def _init_repos(self) -> None: “”” Usage: – … Read more

error: cannot find symbol method parseUnknownField(CodedInputStream,ExtensionRegistryLite,int)

I am trying to run simple example with grpc-java in Kotlin. For some reason my generated code from proto file contains error: cannot find symbol method parseUnknownField(CodedInputStream,ExtensionRegistryLite,int). I have latest versions of com.google.protobuf plugin and the following dependencies installed: grpc-netty grpc-netty-shaded grpc-protobuf protobuf-java protobuf-java-util My protobuf configuration in build gradle looks like this: protobuf { … Read more

P-value for Sheffe-test from pooled summary data (means and standard deviation)

I’m stuck, how do I calculate p-values for the Scheffé test from pooled data (means and standard deviations) like “sheffeTest” from library(DescTools)? I didn’t find any documentation. The contrasts I’m considering are all possible pairwise comparisons. I got the following data called Data_sum: Location n mean sd <fctr> <dbl> <dbl> <dbl> TM 5 0.08016 0.0145622 … Read more

Slow EF Core query with Include

I have an issue with EF Core and Linq queries. I have this query: _db.TrainingsExercises .Include(t => t.ExerciseSteps) .Where(te => te.UserId == userId); This is using a dbContext with these two models: public class TrainingExercise { [Key] public Guid Id { get; set; } public Guid UserId { get; set; } public string Name { … Read more

Sheets Object not working correctly in VBA [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed yesterday. Improve this question I have used this piece of (crap) code for over 2 years then suddenly today it’s stopped working. When I debug the … Read more

DateTime c# is predefined? but only in Rider?

The book C# 12 in a Nutshell and this SO post clearly say: The System namespace in the .NET Framework contains many important types that are not predefined by C# e.g. DateTime. However, running those very two lines in JetBrains Rider works DateTime now = DateTime.Now; Console.WriteLine(now); This does not work on online websites to … Read more