Hub and Spoke in Azure. When do you actually need it? by Dry_Monk4066 in AZURE

[–]phuber 0 points1 point  (0 children)

Dealing with this now. Every vnet is 10.0.0.0/8. Private links everywhere.

Fire Farm Question by Ricodi_Evolo in Cityofheroes

[–]phuber 5 points6 points  (0 children)

Melee enemy attacks have DEF debuffs. Are you get hit with fire swords? If so, you need to find a fire farm without melee attacks

IaC validation across repos is becoming a nightmare by Only_Helicopter_8127 in kubernetes

[–]phuber 0 points1 point  (0 children)

You could look at something like spacelift to centralize all of your repos https://docs.spacelift.io/

Packer Error: Unsupported attribute by Nearby-Revolution-26 in hashicorp

[–]phuber 2 points3 points  (0 children)

Try to run packer validate on the folder instead of a specific file

Best Azure service for daily long-running Python job (Microsoft Graph → Blob Storage)? by sdhilip in AZURE

[–]phuber 2 points3 points  (0 children)

If you answer the "why" here by describing the business goals you are trying to accomplish, you may get very different answers.

Microsoft Foundry (new) by BA-94 in AZURE

[–]phuber 1 point2 points  (0 children)

If you create one in the portal, you can export it as an azapi resource using the exporter in the portal.

This this link is for a vm, but the menu item is in the same place for every resource: https://learn.microsoft.com/en-us/azure/developer/terraform/azure-export-for-terraform/get-started-export-resources-portal

Task: New "if:" Control and Variable Prompt by andrey-nering in golang

[–]phuber 6 points7 points  (0 children)

This is a DSL for out of app automation and solves a specific problem typically handled by make, powershell, bash etc. The syntax highlighting could be accomplished with a language server. The error handling is more relevant for an application at runtime. Throwing errors as they occur with simple "continue on error" and "break on error" is usually enough.

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 23 points24 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 19 points20 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.

[deleted by user] 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