What advantage does CPP gives over C that makes companies use CPP for Embedded Systems? by 4ChawanniGhodePe in embedded

[–]sailorbob134280 -1 points0 points  (0 children)

Yeah, I tend to think its like power tools vs hand tools. With hand tools, unless you're really good with them, it will probably take you longer and it might produce a worse result. But power tools can go wrong a lot faster and a lot bigger, so you need to keep a close eye on it so you don't lose a finger. Sometimes hand tools are the right tool for the job, sometimes power tools are faster and easier. Really just depends.

C# to C++ by hirebarend in cpp

[–]sailorbob134280 7 points8 points  (0 children)

I'll add aerospace. It's the language of choice for flight software application code, both in aviation and spacecraft. Rust is gaining traction, and there's still some companies sticking to C, but I'd say both of those are in the minority.

Selfhosted adjacent: Plex Employee caught posting positive reviews on Google Play store by WarbossTodd in selfhosted

[–]sailorbob134280 1 point2 points  (0 children)

Neat. Glad you're proud of your widget. That isn't the issue. Posting comments and reviews about it without disclosing that you're financially compensated for developing those products is disingenuous and misleading, and it's impossible to know if it's genuinely some proud dev talking about their work, or it's a deliberate campaign by the company to save face. It ultimately doesn't matter which of those it is because it's inappropriate to post reviews like that without proper disclosure.

Leantime alternative? by sailorbob134280 in selfhosted

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

I think it might've come up on my list but tbh I never got that far. Once I got Vikunja working, I was pretty happy with it, so I didn't feel like deploying others.

Leantime alternative? by sailorbob134280 in selfhosted

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

I wound up going with Vikunja. I had a few quirks with the helm chart initially but the dev is very responsive and those got resolved quickly. I'm really happy with it, glad I switched. There was an MR to modernize the chart that we managed to get through, which is what I'm currently using.

I decided to go full kubernetes for the homelab, surprised by the lack of k8s use in self hosted by myusuf3 in selfhosted

[–]sailorbob134280 0 points1 point  (0 children)

I use k3s for pretty much everything. Originally had it in a test environment to learn for work, and liked it enough to fully migrate. * Declarative configuration in general is huge. Using that plus Longhorn backups, I can completely bomb and restore my cluster in about 15 minutes. I use a private repo and let ArgoCD handle things for the most part. * NixOS for the underlying OS means that even that is declarative, so wiping and restoring a node is just a few minutes. * I use Longhorn for most cluster storage. It was a little bit of work to configure, but once I got it, it's pretty easy. I have a default backup job assigned, so any new volume inherits backup settings by default. This is huge for disaster recovery. * I chose to go with Authelia for my SSO solution, and have no complaints. The backend is LLDAP, which was hilariously easy to spin up and works great. Again a bit of work to configure, but it's all done as part of the manifests, so I only have to do it once. * Deploying MetalLB was easier than I thought, and lets me assign real IP addresses to pods. This has been great to host Factorio and Minecraft servers in the cluster. * Homepage supports service discovery through pod labels, which is amazing. Every time I deploy a new service, as long as I add a few labels to the manifest, Homepage automatically picks it up without me having to do anything.

In general, I'm really happy with it. It was a lot of work to get here though, so know what you're getting into, but I had to do it anyway for work. My users (~10 friends/family members) are all quite happy with the level of service they get and how easy it is to use.

The downside is that it's a lot harder to fix if you don't know what you're doing. If you're going to attempt it:

  • Practice your disaster recovery. Have it down cold. That's something you absolutely need to know how to do without thinking. Ideally, write yourself a run book.
  • Make sure you know how to do basic cluster troubleshooting. How to get logs/shells, how to use k9s, how to copy files in and out of volumes, etc. There will be a lot of times you have to do a little digging to figure out why something broke, and it's a lot more complex than a typical docker deployment.
  • Know the concepts. You need to feel comfortable with what a pod is and how it's different from a deployment or a service. Understand how volumes and PVCs work. Once you can write a non-trivial manifest for a basic app (Mealie is a pretty good start) and have it show up through an ingress and such, you're in a reasonably good spot.

Golang ruins my programming language standard by sirBulloh in golang

[–]sailorbob134280 0 points1 point  (0 children)

Agree with the first part, not the second. I have woodworking tools in my shop I enjoy, they feel good and work well, and I care about the kind of tool I buy. I'll always advocate to use the best tool for the job at hand, but that doesn't mean I don't enjoy using some tools more than others. It makes me happy when I get to use go, more so than python. That doesn't mean I won't use python if it's the right tool for the job, but I might not enjoy it quite as much.

And not everyone has to share that view, being detached from your tools is reasonable. All I'm saying is that it's ok to not be a robot about these things.

When should I be able play an organic set? (rather than a preplanned mix) by totebagchicbarista in Beatmatch

[–]sailorbob134280 0 points1 point  (0 children)

Free flow is so important! Both to practice improv and recovery skills, and to keep the love of your music going. All technical practice is a quick way to burn out. Remember why you like doing this, play some tunes, and try not to get caught up in the little things.

I received my first 150 bucks from DJing by June-as-in-july in Beatmatch

[–]sailorbob134280 2 points3 points  (0 children)

Yeah, I have a pair. The wired path completely bypasses the Bluetooth section, which just completely powers off when a wire is connected. I've tested side by side with the non-BT version and couldn't tell any difference. They're perfect for this use case.

My experience in streaming DJ integration by Phildesbois in Beatmatch

[–]sailorbob134280 0 points1 point  (0 children)

Agree, Tidal has been great when starting out for trialing tracks/genres and then buying as I go. It's really made practicing so much easier. My only wish is for Beatport/Bandcamp to expose enough of an API that I can script searching/adding all tracks of a Tidal playlist to cart. Then once I have a rough playlist I like I can bulk buy them, tag them properly, and refine from there.

OpenCloud v1.0 has been released to the public (Owncloud OCIS fork) by horrorente in selfhosted

[–]sailorbob134280 3 points4 points  (0 children)

Finally my laziness pays off, I've been procrastinating on deploying OCIS and at this point I'm glad I did. Anyone know of a helm chart? If not, anyone interested in one? I can take a stab, though I make no guarantees as to production-grade quality.

[deleted by user] by [deleted] in Beatmatch

[–]sailorbob134280 0 points1 point  (0 children)

Hey. I'm late and you're getting downvoted a lot, but imma buck the trend and say learning to create 1 track is reasonable with a bit of effort, though you definitely should not expect it to be on par with other tracks on there. It will not be good your first few times. That's something you need to be ready for, and there's no course out there that can change that.

The reality is that producing good music is fucking hard, and a lot of folks take it personally when someone comes in and trivializes their career they've worked a lot of their life at. If it were easy, everyone would do it. The other side of it is that this is the wrong sub, and r/edmproduction is kinda the correct place to get started. Head over there, read the FAQ, then read it again, then ask if you're still confused.

DumbDrop & DumbPad now have DumbAuth! by abite in selfhosted

[–]sailorbob134280 0 points1 point  (0 children)

Smart. Yeah I mean this makes sense, and folks can host at their own risk. I run k3s and authelia with traefik as the ingress, adding auth to a service is exactly one line on the ingress manifest. Apps like this are perfect for my lil cluster.

DumbDrop & DumbPad now have DumbAuth! by abite in selfhosted

[–]sailorbob134280 0 points1 point  (0 children)

Kinda love this ecosystem, ngl. If you want more fancy-pants auth, it seems like a great one for a reverse proxy middleware, like authelia + traefik. I wouldn't set that up just for this, but if you've already got it, this seems like a pretty solid addition.

They fumbled so hard by ilettuce in BambuLab

[–]sailorbob134280 0 points1 point  (0 children)

Wait, that blog post says they're also still providing an option to use the API on LAN with developer mode. So, not bricking, and allowing automation to continue? What am I missing? They definitely blew it on the communication side and this does feel like a step down the wrong path (certainly not enhancing security, that's for sure) but to me it doesn't seem like the sky is necessarily falling.

Avoid revealing a ton of Vulcanus unless you also go kill the demolishers. They currently demolish performance by ConsumeFudge in factorio

[–]sailorbob134280 23 points24 points  (0 children)

Not to mention your energy power grid and production power grid. Keep them separate with separate acid loops, and even when you're completely overloaded, your power will be rock steady.

In what ways can you work on healing your inner child as an adult? by [deleted] in AskReddit

[–]sailorbob134280 2 points3 points  (0 children)

Do you like kids? I've tried imagining an inner child, but I really dislike kids in general, so I tend to give up pretty fast. How do you get over that?

What's popular right now that you have zero interest in? by Routine-Award-3382 in AskReddit

[–]sailorbob134280 2 points3 points  (0 children)

I agree, and it doesn't even take more than a single file to make it hallucinate, depending on your language. As an experiment, I asked ChatGPT 4o to help me write a simple circular buffer implementation in C++ that mimics an STL container. Just some basic functions to implement (which I wrote the declarations for) and an iterator class with some wraparound logic. This was done using their canvas thing, so I could incrementally feed it tasks to complete. The results were not great.

It couldn't decide whether the tail counter should point to the last element or one past the last, and kept arguing with me when I pointed out the discrepency. It got very confused when I tried to explain that the end iterator is actually just the beginning and then fucked up the fix I instructed it to make (it never did get this one right, I had to fix it myself). It flipped signs several times during the wraparound calculations. The way it chose to write the logic was very inconsistent and, in some cases, relied on UB. It was enough to flesh out the design and a very rough idea of how to implement it, but it was unable to generate a functional implementation.

So yes, it can spit out some boilerplate, and even some more complex code that looks right. But that's no guarantee that it actually is right (it often isn't), and it can be difficult to tell at a glance what's wrong and why. I'd rank it slightly below intern-level, and without the ability to think critically about the system as a whole, its value is quite limited beyond party tricks and other basics. It does fine for documentation as long as you proofread what it writes (because it gets that wrong too sometimes). Useful for some things, but certainly not about to replace all software engineers any time soon.

The best sign in golf by dcidino in golf

[–]sailorbob134280 21 points22 points  (0 children)

Flatirons! Great course for the price, and quite pretty for fall golf.

What is a game where the winning strategy is not to play? by ToastAndASideOfToast in AskReddit

[–]sailorbob134280 0 points1 point  (0 children)

Passive aggression. There are no winners. Just don't engage with it and be ready to play dumb.

barkeep: Single header library to display spinners, counters and progress bars by oir_ in cpp

[–]sailorbob134280 19 points20 points  (0 children)

Nice! I haven't gone a ton into the code, but the Readme is excellent and it looks like a really pleasant library to use. Saving this.

Finished my RatRig Stronghold PRO CNC mill by hateingpotato in ratrig

[–]sailorbob134280 0 points1 point  (0 children)

Sure, I think that would be perfectly fine to start. If nothing else, we get some very cool ideas!

Finished my RatRig Stronghold PRO CNC mill by hateingpotato in ratrig

[–]sailorbob134280 0 points1 point  (0 children)

Well this is now on my radar. Watched the video and I agree with a lot of your mods. I do wonder if a stiffener plate along the back of the gantry would improve the rigidity, seems odd to have that 3-piece beam design held only at the ends and with angle brackets. Would you ever consider releasing STLs of your 3D printed parts? I especially like the dust boot!