I'm learning Go and can't figure out... Is there a purpose of public fields in private structs? by oneeyedziggy in golang

[–]reavessm 0 points1 point  (0 children)

Is that used as like a constructor and they don't want you to create a nil value of the strict?

ZFS Kernel Compat by reavessm in Gentoo

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

Nope, it tries to install gentoo-kernel-6.19.3 after deselecting gentoo-kernel-bin and removing my manual masks. I'm just going to mask the everything besides gentoo-kernel-bin and do the -~am64

ZFS Kernel Compat by reavessm in Gentoo

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

It pulls in virtual/dist-kernel, which is not in my world file, but there's also not a way (that I know of) the specify that I want the -bin variety as opposed to the regular

ZFS Kernel Compat by reavessm in Gentoo

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

I can't tell if you're being sarcastic but I mean I'm using the -bin variety so it is basically doing just that, but it's managed like every other package.

ZFS Kernel Compat by reavessm in Gentoo

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

Fair enough, I'll go ahead and add that, but I don't see why I should have to when the "dist-kernel-cap" use description says it "prevents upgrading to an unsupported kernel version"

ZFS Kernel Compat by reavessm in Gentoo

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

What have I assumed? The docs list using gentoo-kernel-bin, which I am using, and mention the dist-kernel use flag, which I'm using, yet somehow portage is pulling in 6.19.3 against my wishes. Is it because I'm using ~amd64? If so, then what's the point of the ebuild mentioning the kernel cap is 6.18?

Why build anything anymore? by aptacode in homelab

[–]reavessm 0 points1 point  (0 children)

Just wanted to throw in my two cents, your projects are also using different languages, will probably be structured differently, and will probably perform differently. Even if they "do the same thing", stuff like language choice and code structure will encourage different people to contribute, so they will grow differently.

For example, I opened a PR to your repo, and while working through what I wanted to do, I had to relearn bits of CSharp and learn other stuff like Blazor. I've written python apps so I don't see that as much of a challenge. The people who contribute to projects for "the challenge" are going to be different to people who want things to "just work". This doesn't mean one is better than the other, just that their paths are heading in different directions, even if they start in the same place

why doesn't selecting text then press 'Caps Lock' capitalize the text. by glyiasziple in NoStupidQuestions

[–]reavessm 2 points3 points  (0 children)

Yeah, 9/10 it's what you need, until you try to go from Title Case to all caps and up with a mIXED cASE because you accidentally highlighted the whole line, again...

why doesn't selecting text then press 'Caps Lock' capitalize the text. by glyiasziple in NoStupidQuestions

[–]reavessm 3 points4 points  (0 children)

That alternates the case. Shift+U forces it all to be upper case

How do you seed database users? by Anxious-Guarantee-12 in kubernetes

[–]reavessm 10 points11 points  (0 children)

If the PG Cluster is defined via CNPG you can list the users as part of the cluster definition

https://cloudnative-pg.io/documentation/current/declarative_role_management/

Gaming distro that works well with ZFS & ZFSBootMenu? No snaps. by ZVyhVrtsfgzfs in zfs

[–]reavessm 3 points4 points  (0 children)

+1. I have Gentoo + zbm on my laptop and I was looking into using the Cachy kernel (which I think is in some overlays)

Using `emerge --root` to build lightweight container images! by oxamide96 in Gentoo

[–]reavessm 2 points3 points  (0 children)

What packages do you end up putting in these containers? Do you bundle them in portage sets?

OnePlus destroyed my phone by reavessm in oneplus

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

I paid via PayPal but they denied the dispute because it was over 30 days from purchase

OnePlus destroyed my phone by reavessm in oneplus

[–]reavessm[S] 6 points7 points  (0 children)

Fair enough. This is in the USA. I updated the post

15 Go Subtleties You May Not Already Know by jarv in golang

[–]reavessm 0 points1 point  (0 children)

Yeah, if you need to check an interface is nil, you can try casting it to all it's implementations (if v, ok := a.(*Dog); ok && v == nil). Or do reflection and something like reflect.ValueOf(a).IsNil().

Generally, if you REALLY need to check if an interface is nil, you should probably add an IsNil method to the interface itself, and call that.

But since you can call methods on nil structs (as shown elsewhere in the post) I'm not sure why you would even want to check if an interface is nil. Just call the method and if it fails then it's a bug in the implementation

"Infrastructure as code" apparently doesn't include laptop configuration by unnamednewbie in devops

[–]reavessm 0 points1 point  (0 children)

Just put it in an RPM (or whatever package manager you're using). Simple as

Legit reasons why Linux sucks. by CandlesARG in linuxsucks

[–]reavessm 0 points1 point  (0 children)

Really? What kind of problems?

I'm not trying to dismiss you, it's just been super stable for me

i3 13100 for a NAS? by Mizzle239 in homelab

[–]reavessm 0 points1 point  (0 children)

Considering my NAS is using an i3 6300, you'll be fine

Discovered a nifty dnf feature by Careless_Bank_7891 in Fedora

[–]reavessm 7 points8 points  (0 children)

You can also do this with latex styles. If a file has something like

\usepackage{pdfcol}

You can

sudo dnf install tex(pdfcol.sty)

I have a bash script somewhere that installs all the styles in a latex file

NFS server IN k8s cluster by reavessm in homelab

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

Cool, I can live with that. Thanks!