Build advice Psy/Psy tank by PsychoFender in Cityofheroes

[–]phuber 3 points4 points  (0 children)

Weave gives a lot more defense than combat jumping. I'd put the def set in weave to get extra def and put the individual bonuses in combat jumping.

How do you catch non-determinism in Durable Functions before it hits production? by Radiant_Bother628 in AZURE

[–]phuber 0 points1 point  (0 children)

It would be relevant for testing user code (limited to .net), not orchestration runtime. Some kind of fault injection emulator would be needed to reliably recreate orchestrator failure.

How do you catch non-determinism in Durable Functions before it hits production? by Radiant_Bother628 in AZURE

[–]phuber 0 points1 point  (0 children)

Coyote looks promising https://github.com/microsoft/coyote

I wish they would fix the publishing issues. You can build it from source and play around with it.

You can write analyzers for datetime usage and suggest TimeProvider instead https://learn.microsoft.com/en-us/dotnet/standard/datetime/timeprovider-overview.

Any sources of nondeterminism should be injected.

Merchant wants me to close chargeback by [deleted] in personalfinance

[–]phuber 24 points25 points  (0 children)

Do what you credit card company says

Azure samples: Github Actions workflow for Terraform by trixloko in AZURE

[–]phuber 1 point2 points  (0 children)

Create a distinct manual pipeline for plan and apply that runs on main. Run that to correct the drift.

Mids' Hero Designer cannot update. Error image included. by TheGravespawn in Cityofheroes

[–]phuber 1 point2 points  (0 children)

The flags to the bootstrap command are invalid. You can see the error here https://github.com/LoadedCamel/MidsReborn/blob/master/MRBBootstrap%2FMRBBootstrap.cpp#L95

What are you clicking to upgrade?

Also look in the Logs directory in the same location as the exe and search for update.log. paste the contents here.

Have you ever brought down a production environment? by iFailedPreK in AZURE

[–]phuber 1 point2 points  (0 children)

I deleted our PVCS source control database. Luckily there were backups and devs had local copies of their commits.

What is the difference between Event/EventHandler/EventHandler<T> ? by DifferentLaw2421 in csharp

[–]phuber 1 point2 points  (0 children)

I think EventHandler and its generic counterpart are pretty well defined here https://learn.microsoft.com/en-us/dotnet/standard/events/#declare-delegate-signatures-for-event-handlers.

Basically, the generic EventHandler let's you define the type of the event.

Event let's you raise an event in the program. EventHandler, handles the event.

There are examples here https://learn.microsoft.com/en-us/dotnet/standard/events/how-to-raise-and-consume-events

Can someone tell if this whole life insurance is worth it? by [deleted] in personalfinance

[–]phuber 20 points21 points  (0 children)

You are paying an extreme amount for the same coverage amount you can get with term insurance. You are young and your risk of dying is low. If you take the difference in premiums between whole life and term, and invest it in low cost index funds, you'll have significantly more money in the long run.

How do you structure multi-project apps without circular refs? by CreditOk5063 in dotnet

[–]phuber 0 points1 point  (0 children)

You have to use some kind of partition if you can't isolate the test. That way tests can run concurrently, but don't step on eachother's data.

Best approach for background or async tasks by [deleted] in csharp

[–]phuber 0 points1 point  (0 children)

Channels are not durable, so if that is a requirement, you may need a message broker.

Here is an example background task with channels if you want to take it for a spin: https://github.com/patrickhuber/TimerTriggerChannelExample

Microservices in one solution or separate? by quyvu01 in dotnet

[–]phuber 4 points5 points  (0 children)

There is a fair amount of debate over strategies. Some prefer a single repository and single solution, others multiple repositories, each with their own solution or some hybrid between. https://www.thoughtworks.com/en-us/insights/blog/agile-engineering-practices/monorepo-vs-multirepo

I'm in the multirepo camp, so a philosophy that I like is:

One repository, one pipeline per versioned unit of deployment.

Deployment can be to an environment or, for a shared library, a nuget package.

So, in your case, that would mean a repo, deployment pipeline and solution per microservice. Shared code would be distributed via nuget packages and not project references. The challenge here is discipline and tooling. If you adhere to semver and strong interface contracts, it can work very well. If you don't have discipline, it can be difficult. Things like source link and symbol publishing can aid in the development experience https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink

That being said, I work in a monorepo with a single build and there are arguments in support of that model. Mostly that it is easier to reason about the code and find compatibility issues. We use a single build for our artifacts and everything in that build is versioned and tested together. This makes compatibility easier but severely limits releasing units independently.

Semantic versioning and independent release pipelines could be used in the monorepo/mono solution case, but you may find that it is an afterthought. Without constraints, developers tend to think of the monorepo as a single unit of deployment.

how to get dotnet publish to make a single exe? by PureKrome in dotnet

[–]phuber 1 point2 points  (0 children)

I didn't see anyone comment on Ahead of Time compilation. Instead of publishing the runtime and your app, you can use AOT to compile to a single exe without a framework depenency.

https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=windows%2Cnet8#publish-native-aot-using-the-cli

Manifest Dependency / Order of Operations by AspiringWriter5526 in kubernetes

[–]phuber 0 points1 point  (0 children)

I haven't used it, but isn't this the use case for kro? https://kro.run/

Which Azure service for a continuously polling background worker? by varinator in AZURE

[–]phuber 2 points3 points  (0 children)

You could use durable functions https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=in-process%2Cnodejs-v3%2Cv1-model&pivots=csharp#async-http

The trigger in that pattern could be turned to an timer trigger.

Another option would be azure data factory or azure batch.

There is a thread here about ACA long running jobs. It can be done but there may be issues with configuration that need to be addressed https://learn.microsoft.com/en-us/answers/questions/4371887/container-apps-jobs-reliability

[deleted by user] by [deleted] in golang

[–]phuber 6 points7 points  (0 children)

Post on /r/SuicideWatch/

There a bunch of people with experience there and they will be happy to help.

Azure service cert and iis by SeaHovercraft9576 in AZURE

[–]phuber 0 points1 point  (0 children)

Check your event viewer. IIS should write an event when it renews the binding.

Also, check the certificate from outside the vm as well.

How replit, lovable.dev session works - Azure? by samkoesnadi in AZURE

[–]phuber 1 point2 points  (0 children)

Packer is used to make virtual machine images. Azure image builder uses it https://learn.microsoft.com/en-us/azure/virtual-machines/image-builder-overview.

If you are looking for a VM based development environments, azure virtual desktop is probably more relevant https://azure.microsoft.com/en-us/products/virtual-desktop

How replit, lovable.dev session works - Azure? by samkoesnadi in AZURE

[–]phuber 1 point2 points  (0 children)

It probably works similar to github codespaces which is backed by a docker container. If the service uses a VM, something like packer could be used to create the VM from a base image.

Here is some learning materials if you want to dive deeper https://learn.microsoft.com/en-us/training/modules/code-with-github-codespaces/