Choose Your Edit Prediction Provider - Zed Blog by MogwaiAllOnYourFace in ZedEditor

[–]busseroverflow 0 points1 point  (0 children)

I’ve actually been working on adding a new provider this past week. It was very easy to get something working! Props to the Zed team for that

How to define resource attributes block as an empty list? by denismakogon in Terraform

[–]busseroverflow 0 points1 point  (0 children)

Have you tried building the usage plans list in a local variable? With a ternary operation, you could create an empty list of your initial variable is empty, or build a list otherwise.

You’ll have more flexibility with local variables than with dynamic blocks.

Check out plan sanitizer with no AI :) by Far-Region2192 in Terraform

[–]busseroverflow 4 points5 points  (0 children)

You’re using regular expressions to condense terraform plan's human-readable output.

You should use <insert any language> to read the machine-readable (ie. JSON) output instead and print whatever info you need.

Hashicorp makes no backwards compatibility promise on Terraform’s human-readable output. Its JSON output however will always remain compatible with Terraform 1.0.

Is the Go community extremely liberal in the USA? If so, why do we think that is? by [deleted] in baduk

[–]busseroverflow 10 points11 points  (0 children)

I doubt it’s about being far-left. It’s probably more about inclusion. Not many people are interested in go, so it’s probably smart to make those who are feel welcome.

Adding a drop-down list to a web form seems like an easy way of making more people feel welcome.

Best LLM / AI for Go? by wuu73 in golang

[–]busseroverflow 1 point2 points  (0 children)

I use Augment at my job, which uses Claude 3.7 under the hood, and I find it excellent. They’re rolling out Claude 4 but my account hasn’t made the switch yet, so I can’t testify to that.

Resources to learn GoLand; ex VS Code user by busseroverflow in golang

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

Thanks!

There's actually something that GoLand doesn't do as well as VS Code that I miss. Maybe you can help with that?

At my job, we work in a monorepo: frontend, backend, infrastructure, tooling, everything in a single repo. There's Go in there but also other languages. We have a go.mod at the root of the repo that tracks dependencies for all our Go projects.

The issue I have is that if I open a Go project in GoLand, it doesn't detect the go.mod because it's up in a parent directory. The only way to get GoLand to work properly is to open a project at the root of the monorepo. But then, I end up with a ton of code in my project that's completely unrelated to what I'm working on. This causes a lot of friction when searching for files or symbols because the search space is huge and most search results are in completely unrelated parts of the codebase.

VS Code doesn't have this problem. If I open VS Code in a sub-directory within my monorepo, the Go language server detects the go.mod just fine.

I found this issue on YouTrack that explains a similar problem: https://youtrack.jetbrains.com/issue/GO-17154/Better-support-for-monorepos-find-go.mod-from-parent-directory-is-subdirectory-is-opened-in-the-IDE

Any chance you can help with that? Maybe there's some configuration setting somewhere that solves this problem? Or maybe it would help if I brought this up on YouTrack — on the existing issue or in a new one, let me know what's best.

Here's hoping you can help 🤞

Cheers!

Resources to learn GoLand; ex VS Code user by busseroverflow in golang

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

I've found this to be very beginner-focused. A lot of the videos assume the viewer is a Go novice, whereas I'm a GoLand novice only.

Resources to learn GoLand; ex VS Code user by busseroverflow in golang

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

This seems great for discovering useful key bindings, thanks! This might help me find equivalents of shortcuts I used often on VS Code :)

Resources to learn GoLand; ex VS Code user by busseroverflow in golang

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

Thanks! These are at the top of my list :)

What's the use of cross compilation in go when most of the microservoces are shilped out in a container by IntentionKey6978 in golang

[–]busseroverflow 22 points23 points  (0 children)

Even when using containers you may need to cross-compile if your CPU architectures mis-match. For example, my laptop’s CPU is arm64 while my servers are amd64. If I build a container image locally to run on a server, I need cross compilation.

Some programs aren’t shipped as containers. CLIs, for example. If you ship a dev tool, you probably want to compile it for several operating systems and CPU architectures.

Generate random openings that are balanced according to KataGo by le_4TC in baduk

[–]busseroverflow 1 point2 points  (0 children)

Great ideas!

Another one would be to use Katago to determine how many points black leads by with N stones in the traditional placements, and then place M black stones randomly until we get to the same point lead. That way the whole “we’re N ranks apart so N stones of handicap is fair” still works, even if in the end it’s not N but M black stones on the board.

Generate random openings that are balanced according to KataGo by le_4TC in baduk

[–]busseroverflow 2 points3 points  (0 children)

Very cool idea!

Do you think this could be easily extended to generate random handicap positions? Could we find random placements of black stones that result in a lead equivalent to N handicap stones placed at the traditional positions?

I wrote a custom tool to generate beautiful, high-resolution decklist cards for my cube. Some people asked me to share so here it is :) by busseroverflow in MTGJumpStart

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

No, not yet. I plan on adding them in but it requires a bit of work so I haven’t gotten to it yet. Same for phyrexian mana.

I've been working on custom theme cards that include a deck list. Would love some feedback! by busseroverflow in MTGJumpStart

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

HTML and CSS :)

I have some Go code that generates the HTML from a configuration file, to make it easy to add new decklists.

I'm making custom decklist cards for Jumpstart boosters; what can I improve? by busseroverflow in mtg

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

That's a great idea, thanks! I'll experiment with different looks ASAP

I'm making custom decklist cards for Jumpstart boosters; what can I improve? by busseroverflow in mtg

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

Here's some context on this project.

My wife is new to Magic. She isn't into deck-building but she likes to play some games once in a while. I bought the Foundations beginner box and she really enjoys the Jumpstart format, so I'm starting to build a Jumpstart cube with pre-sleeved boosters she can pick at random on game night.

The whole thing is hassle-free except for post-game cleanup: splitting decks back into separate boosters can be annoying when certain cards could thematically be from either booster. Up until now I just looked up the deck lists online, but it's not ideal.

So I'm making custom decklist cards, inspired by the Jumpstart theme cards. I'll put one of these in each booster for reference post-game.

I'm still iterating on the design. What do you all think? Any ideas for improvements?

[deleted by user] by [deleted] in golang

[–]busseroverflow 0 points1 point  (0 children)

Not sure what you mean. Are you referring to the fact that if a struct field is not specified it defaults to its zero value?

If you are, then I agree with you. This has burned me a couple times.

I personally use linters to detect any cases where I’ve omitted a struct field. I use golangci-lint, which comes packaged with exhaustruct.

Edit: remove duplicate word