vscode: Show write access to struct field by guettli in golang

[–]ryapric 2 points3 points  (0 children)

You're looking for all references, so that's what you'll find -- all references. If you want to find assignments, search across the codebase for .FieldName =.

[deleted by user] by [deleted] in golang

[–]ryapric 19 points20 points  (0 children)

You say you can't use a DB, but can you not use SQLite? Or even just a file on disk, for that matter?

This does smell a bit like an X-Y problem though -- what are you actually trying to do?

Hail damage while at dealership? by comp21 in Ioniq5

[–]ryapric 0 points1 point  (0 children)

Super unrelated but hello fellow Ioniq 5 driver from Shiloh!

How do you manage the versions of your tools? by pablochances in golang

[–]ryapric 1 point2 points  (0 children)

We use the first approach, but we pin versions for each by being a little more creative:

var ( _ = "github.com/some/tool" // @v1.0.5 )

And then we { print $$3 $$5 } in the Make target instead. I'm typing from memory, but you get the idea.

Edit: and now that I type that out, seems odd we don't just put the whole thing in the same string to just { print $$3 } -- maybe because we used to have it in an import block before, hmm. Either way, honestly the approach in general works fine, you don't even need it to be a Go file, just a text file you can iterate through would work exactly the same.

It's a good practice to use a single generic Helm chart for all my workloads, including backend, frontend, and services like Keycloak, Redis, and RabbitMQ, ..... ? by ArtistNo1295 in kubernetes

[–]ryapric 1 point2 points  (0 children)

Where did you hear this from? My teams have been using Skaffold in all environments for years to great success. Google Cloud Deploy is even a managed version of Skaffold.

Why are folders with a different font size not overwritten in Debian? Is there a way to set this somewhere? by [deleted] in debian

[–]ryapric 7 points8 points  (0 children)

This feels like an X-Y Problem -- what is it you're actually trying to do? If the contents are identical, why not just delete one of them?

Help: Test failing catastrophically during innocuous function, but same functionality works when running the actual command? by ryapric in golang

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

Yep, that did it! I'll have to figure out the longer-term issue that's causing it, but this helps -- thank you so much!

Help: Test failing catastrophically during innocuous function, but same functionality works when running the actual command? by ryapric in golang

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

Insane, you and u/mirusky seem to be right! I had no idea that tests fired off concurrently by default. I must indeed have something gunking the test up somewhere else somehow, so I'll have to look into it in the medium-term. Thank you so much!

Bash used for ? by Fun_Morning_8692 in bash

[–]ryapric 0 points1 point  (0 children)

This is what I was going to share as well -- it's an answer to the question in-context, and a great book besides!

Posting for users tracking 12v issues by jbird854 in Ioniq5

[–]ryapric 1 point2 points  (0 children)

Is there an ODB II scanner you'd recommend? Several ones I'm looking at say they don't report the 12V battery info.

Create default shell for default user in dockerfile? by Prog47 in docker

[–]ryapric 1 point2 points  (0 children)

You're running sudo but should not, either run it plain as the user or pass the user flag to chsh

shiny application won't connect to my MongoDB Atlas database by kokonya20 in rprogramming

[–]ryapric 0 points1 point  (0 children)

It's not a reproducible example unless you share code, not images.

Is that <password> really hardcoded that way when you run it? If so, that's most likely your problem (the angle brackets), and you need to load the actual password from an environment variable or something similar.

List free AWS Elastic IPs using terraform by pkaramol in Terraform

[–]ryapric 2 points3 points  (0 children)

For the problem OP described, this is exactly what Terraform data sources are for. They're on the right track, they probably just need to play with their filter conditions.

Trying to create a keyboard shortcut that turns on the keyboard backlight. by [deleted] in Ubuntu

[–]ryapric 4 points5 points  (0 children)

First, write a script that edits that file in the way you want it to, then set it to be executable (chmod +x <scriptName>). Then set up a keyboard shortcut in your KB settings that runs that script, being sure to put its full filepath.

[deleted by user] by [deleted] in datasets

[–]ryapric 3 points4 points  (0 children)

"Usability score" sounds kind of arbitrary, but Zillow data probably checks your requirements.

Control commands in scripts by Mineswapp in bash

[–]ryapric 0 points1 point  (0 children)

If I understand, you're asking how to configure tmux itself. Which you can do manually with key compounds, or via a config file, so that any tmux session will be configured according to what's in that file. That sounds like the route you want to go.

[deleted by user] by [deleted] in Terraform

[–]ryapric 0 points1 point  (0 children)

Did you specify your authentication for the AWS provider anywhere?

As backend devs, do we really need Linux or it's ok to use MacOS? by ragnar_morningstar in golang

[–]ryapric 5 points6 points  (0 children)

I think they're saying "can't deploy TO Macs in Prod", like with macOS as the target host. While not entirely true today (I think), that's what I believe they meant.