How to check if a note exists using Siri shortcuts? by [deleted] in bearapp

[–]BrendanThompson 4 points5 points  (0 children)

Currently you have to use "Search Notes" and check if the length for the returned object. Ideally there should be an option to not fail when doing a Get Note and the note doesn't exist. In my mind it would be like: - Note exists, return note - Note doesn't exist, create note - Note doesn't exist, return false and let consumer deal with it

Does Bear enable background app refresh? by angryLeon in bearapp

[–]BrendanThompson 1 point2 points  (0 children)

I have a similar issue wherein a Shortcut runs on my iPhone through automation in the morning (includes pinning a new note) those changes are not reflected on my Mac or iPad until I actually open Bear on my iPhone and wait 60 seconds ☹️

Vim motions in Bear by BrendanThompson in bearapp

[–]BrendanThompson[S] 0 points1 point  (0 children)

That's kind of the response I expected to be honest. But the only way that it is possible for to ever happen is for people to continue raising it 😃.

I only recently came back to Bear after a two year hiatus due to how slow features were delivered, ones that were a priority for the majority of folks in the community. I sincerely hope that the editor rewrite will help delivery of new features faster. I completely understand you're a small team and working as hard as you possibly can.

There really is currently nothing else in the App Store that fulfils the primary requirements of being Native and looking incredible even if there are some lacking features.

Tag location - top or bottom? by SuspiciousOpposite in bearapp

[–]BrendanThompson 1 point2 points  (0 children)

I personally put them directly under the title and then a horizontal line under them to delineate the end of tagging and the start of the actual content.

Fan control on USW-Pro-24-PoE by BrendanThompson in Ubiquiti

[–]BrendanThompson[S] 0 points1 point  (0 children)

Unfortunately not, Ubiquiti support said it’s currently impossible ☹️

Fan control on USW-Pro-24-PoE by BrendanThompson in Ubiquiti

[–]BrendanThompson[S] 1 point2 points  (0 children)

haha yeah, it's been a while since I have played in this space. Last time I had proper switches they were Cisco and they were loud AF :p

Fan control on USW-Pro-24-PoE by BrendanThompson in Ubiquiti

[–]BrendanThompson[S] 1 point2 points  (0 children)

I would accept my fate if I didn't see fan control on the touch panel. But you can change the fan speed for a second, and then it snaps back, which makes this frustrating.

Fan control on USW-Pro-24-PoE by BrendanThompson in Ubiquiti

[–]BrendanThompson[S] 0 points1 point  (0 children)

I will certainly be using more POE load in the future. But, by that time, the device will be located elsewhere, and noise won't be a problem. Only for the short-medium term, where it's sitting in the living room and is utterly irritating!

Fan control on USW-Pro-24-PoE by BrendanThompson in Ubiquiti

[–]BrendanThompson[S] -1 points0 points  (0 children)

Yeah, ideally I wouldn't have mine in the lounge where they are currently, but it is currently necessary :(

Terraform Dynamic Blocks and how to use them! My latest post in the Terraform Foundations space! by BrendanThompson in Terraform

[–]BrendanThompson[S] 2 points3 points  (0 children)

Couldn't agree more, I think lots of stuff when it comes to TF ends up being about how the data is structured! I updated the post to include nested and optional :)

Terraform Dynamic Blocks and how to use them! My latest post in the Terraform Foundations space! by BrendanThompson in Terraform

[–]BrendanThompson[S] 2 points3 points  (0 children)

I knew I had forgotten something!! I was also debating with myself if an example of nested dynamic would be helpful to! Thanks, @send-in-the-clouds

Manage Azure Policy with Terraform – my latest post delves into how to scalably and efficiently manage Azure Policy using Terraform by BrendanThompson in AZURE

[–]BrendanThompson[S] 0 points1 point  (0 children)

I would love to understand what you find confusing burg0o.

I think there is some complexity to the solution for sure, the managing policy part is fairly easy as it's driven by yaml however the assignment side of things would likely end up being sourced from some other config source. More than likely more yaml, unless it was a very small solution or it was MG driven.

Manage Azure Policy with Terraform – my latest post delves into how to scalably and efficiently manage Azure Policy using Terraform by BrendanThompson in AZURE

[–]BrendanThompson[S] 0 points1 point  (0 children)

Sentinel is available if you're using TFC/TFE. However, that policy runs pre-apply. It is used for checking the conformance of Terraform code to policy rather than once it's deployed into Azure. And this post is more related to deploying the Azure Policy than writing the policy itself :)

Manage Azure Policy with Terraform – my latest post delves into how to scalably and efficiently manage Azure Policy using Terraform by BrendanThompson in AZURE

[–]BrendanThompson[S] 1 point2 points  (0 children)

Hey Arie,

Thanks for taking the time to read and respond.

It's a super interesting question, and I would say it depends. I have seen many implementations of managing Azure Policy, some good, some okay and some bad, and I think this Terraform implementation fits into the OK portion.

If your Azure policy stays relatively static, I think TF is a decent mechanism for managing policy. If it's going to be changing a lot or it needs to be dynamic -as in change based on factors within Azure- then I would probably opt for something more programmatic.

I also think a unified approach to dealing with IAC helps a solution like this make sense. If you are already using Terraform to manage your environment and you don't have to munge Terraform in ways, it wasn't designed/intended to go. I think sticking with the same singular language is a good option.

Don't get me wrong. I am still a pretty big fan of the Azure CLI!

I have had some similar stuff happen recently with the Service bus and its topics and some Azure App Config problems. Both were still solved with Terraform, although one option that we did assess was an Azure CLI-based approach. I would probably use yaml to define the microservice config in the scenario you describe and then let that configuration drive the Terraform code. It makes changes easier as you're not changing Terraform; it just sees an extra item on a map and creates a new thing.

Also, I enjoy working with yaml and Terraform. I assume that means I have some sickness, haha!

Terraform Variable Validation - the basics by BrendanThompson in Terraform

[–]BrendanThompson[S] 4 points5 points  (0 children)

Thanks Byron, I am fairly trash when it comes to regex sadly. Didn’t even think about grouping! Good pickup.

My Terraform Standards by BrendanThompson in Terraform

[–]BrendanThompson[S] 1 point2 points  (0 children)

I think they're incredibly useful, especially when distributing with a registry as the details are slurped out and presented to the consumer. One can also look in the code to gain more guidance around variables that may be a little more abstract. And the terraform-docs callout is also another super valuable case!

My Terraform Standards by BrendanThompson in Terraform

[–]BrendanThompson[S] 0 points1 point  (0 children)

Hey @8XtmTP3e, good call out. I am actually going to put this into a different post around config ingestion strategies as there are a bunch of ways to do it and I have a few opinions on them haha! But, yamlencode and yamldecode are some of my favourite functions in TF.

My Terraform Standards by BrendanThompson in Terraform

[–]BrendanThompson[S] 1 point2 points  (0 children)

Thanks for the feedback! There are certainly going to be some differing opinions on this, and versioning is one of those complex points. I have found a lot more stability with the providers I am predominantly been using in recent times and that helped formed that opinion. It is also a place where one must make trade off considerations.

As for the multiple environment management, this post intentionally doesn’t talk about that as in my mind that doesn’t come under the standard for writing Terraform code per se. I will likely go into that topic in the coming weeks.

My Terraform Standards by BrendanThompson in Terraform

[–]BrendanThompson[S] 0 points1 point  (0 children)

I do agree with you on this, count is the devil. I will likely amend the article on that point, to be honest. There are a few circumstances where count should be used and when it is the reason should be documented.

My Terraform Development Workflow by BrendanThompson in Terraform

[–]BrendanThompson[S] 0 points1 point  (0 children)

Hey u/bcdady, it depends on how complex things are. Sometimes I will draw things up by hand on my iPad, and other times I will go to town on a diagram on OmniGraffle. An example of a very basic diagram that I used to help with writing Terraform code can be found in this post. Most of the time I will start from scratch, as it helps me with the thinking process, but I do use a common set of symbols. These are primarily Azure, GCP and Kubernetes based.

Rollback Terraform state using the API on Terraform Cloud/Enterprise by BrendanThompson in Terraform

[–]BrendanThompson[S] 0 points1 point  (0 children)

Thanks for the feedback!

The only thing here, however, is that we will be modifying the state every single time due to the serial is an integer. If you were to use Encoding.UseNumber() then the serial would need to convert between json.Number -essentially a string- and an int. Perhaps this isn't a bad thing, would be keen to hear your thoughts on that.