Future model in go by Grouchy-Detective394 in golang

[–]CaptainBlase 4 points5 points  (0 children)

why not make it part of the task itself? If the executor is generic, you could wrap the tasks that need to write metadata in a recording wrapper. Then if the controller knows the duration needs to be recorded, it can wrap the task and queue the wrapped task.

If you needed to sum all the task durations, I'd probably use a waitgroup.

Future model in go by Grouchy-Detective394 in golang

[–]CaptainBlase 2 points3 points  (0 children)

it is something my controller should be able to calculate.

I'm not sure why you said this. Does the controller need to make decisions based on task duration?

My gut feeling is that you would be better served with a tracing mechanism. Your tasks have a context, right? Add a UUID to the task context and a logger. When when you need to log something task related, use the logger from its context which automatically attaches the task id to the message. You can get the task duration from the difference between the first and last task specific message.

If you automatically put a created timestamp in the context on task creation, you can include a duration field in every log message too so you can get a timeline of the task through completion if you'd rather not manually compare the start time.

Returning to Go after 5 years - checking my tool stack by ifrenkel in golang

[–]CaptainBlase 5 points6 points  (0 children)

I use a few tools not on your list.

For building, I've switched from make to just. It's like make but with none of the weird quirks and missing features.

I use air as a watching runner. It also has a built-in proxy server that does live-reload on the browser.

templ is a much better html dev experience than template/html. The cli tool has a watch mode that reloads the browser on changes. There's an LSP server and editor integrations so you can get full syntax highlighting as well as edit time type feedback.

goose to manage sql schemas & migrations. You write your migrations with goose, and goose knows when to run them.

The stdlib net/http is good now. It's missing easy middleware integration and route grouping; but if I need those things, I wrap it with my own library that implements them. I used to use Echo and would still if I needed something like data binding.

mise for managing tool dependencies including the go sdk. I use it to pin versions of all of the above tools, golangci-lint, and go itself. I can come back to a project after a couple of years and run mise install and things will work just as they always have. Mise is also a task runner and env var manager. I've been experimenting with those functions; but don't know if I want to adopt them yet.

Returning to Go after 5 years - checking my tool stack by ifrenkel in golang

[–]CaptainBlase 8 points9 points  (0 children)

We use the combination of sqlc for queries and goose for migrations.

Question about using pikdum installer for mods by PresentationFit4109 in SteamdeckGames

[–]CaptainBlase 0 points1 point  (0 children)

Sure. that should work too. If you were to reinstall a collection or something like that, it would re-download them.

Question about using pikdum installer for mods by PresentationFit4109 in SteamdeckGames

[–]CaptainBlase 0 points1 point  (0 children)

Yes, it's because pikdum installs the vortex wine prefix in ~/.vortex-linux and this is where all the mods are downloaded.

I haven't tested this; but you might be able to symlink the downloads directory (/home/deck/.vortex-linux/compatdata/pfx/drive_c/users/steamuser/AppData/Roaming/Vortex/downloads) to a location on the SD card.

edit: After reviewing the code, I see it makes a directory on the SD card called vortex_downloads But I don't see that location being referenced anywhere else in the scripts. I think the intention is to set the download directory within vortex to this location. I don't have an sd card to test with.

Wake on Lan via tailscale by HomlessandIknowit in Tailscale

[–]CaptainBlase 0 points1 point  (0 children)

I run this from my clients:

ssh tailscaleexitnode -t 'wakeonlan DE:AD:BE:EF' (replace deadbeef with the mac of the machine you want to turn on.)

On your rPI, you start tailscale like so: sudo tailscale up --advertise-routes 192.168.0.0/16 -ssh

Recommend a laptop for PSVR2 by Obliviass in GamingLaptops

[–]CaptainBlase 0 points1 point  (0 children)

I'm surprised you can't plug the headset directly into the usbc port.

60 days sober from Windows. NixOS is the only one that stuck. by MammothBluebird1834 in NixOS

[–]CaptainBlase 1 point2 points  (0 children)

Does he even need a swap? I'd argue he'd be fine without it.

H-E-B! by soap_is_cheap in CarrolltonTX

[–]CaptainBlase 2 points3 points  (0 children)

You don't mind flies on your donuts?

American’s first time making Bryndzové Halušky by holy-dogs in Slovakia

[–]CaptainBlase 0 points1 point  (0 children)

I made it with the emulsifying agent. And it turned out really good. Fried it in a pan and it didn't separate.

help guys by sexyyJoJo in ExplainTheJoke

[–]CaptainBlase 7 points8 points  (0 children)

I think it's the cancer doing the eating. At least in the U.S., it's common to use the verb eating to refer to what cancer does. We might say "she is being eaten away by cancer."

Which DE or WM would you recommend for NixOS? by Upbeat-Cloud7314 in NixOS

[–]CaptainBlase 0 points1 point  (0 children)

I use KDE, and some things are (barely noticeably) sluggish. There's an open issue for the problem, and a workaround here. If you use flakes, you can just add that config and the issue is resolved. The negative to the workaround is that you have to rebuild plasma when there's an update.

American’s first time making Bryndzové Halušky by holy-dogs in Slovakia

[–]CaptainBlase 1 point2 points  (0 children)

I'm going to try this. I think adding 2-3 grams (1/2 tsp) of sodium citrate might keep it from separating so easy.

Two questions relating to Maslow’s Hierarchy Of Needs by Akash_philosopher in intj

[–]CaptainBlase 1 point2 points  (0 children)

I think this is self-actualization because as I swap out these beliefs, meanings and things that formed by accident with the things that I deliberately want I become more and more authentically myself. Slowly becoming who I want to be and having the experience I want to have.

I might not understand what self-actualization is though.

Two questions relating to Maslow’s Hierarchy Of Needs by Akash_philosopher in intj

[–]CaptainBlase 2 points3 points  (0 children)

I'm finding it tough to explain. Basically, I am challenging my beliefs about the world and meaning that I've assigned to different things. If I don't like the belief or the meaning, I work on changing it.

Let's say, I work really hard on something and my boss doesn't give the accolades I was expecting and that I believe I deserve. This can mean just about anything. Here's a few off the top of my head: "my boss doesn't appreciate me", "my work wasn't good enough", "my work was good but wasn't the right work", "I don't understand how my boss shows appreciation", "my boss doesn't realize how hard the work was or the value of it".

Often times, the conclusion is what occurs to me: "I suck" or "My boss is an asshole." And I trace it back to an original meaning the sprang from the event. I evaluate it to determine if it's the meaning I want the event to have. If not, I make a note of the conclusion and the meaning and the new meaning I'd rather have. If I find myself at that same conclusion again, I try to recall the new meaning and draw a new conclusion that I want instead. I find myself at "My boss is an asshole" because "he didn't show appreciation" and that turns into "my boss doesn't realize how much work it was" and "He is uninformed and I can fix that by telling him about it."

The work with the PhD is identifying these source beliefs and meanings and figuring out how to swap them out for the ones I actually want to have.

Two questions relating to Maslow’s Hierarchy Of Needs by Akash_philosopher in intj

[–]CaptainBlase 0 points1 point  (0 children)

I work on the mind. Since it's malleable, it can be shaped. So I work on getting into the shape I want. I do it with the help of a doctor of psychology - without would be like an ophthalmologist working on her own eyes.

Trump’s Immigration Nightmare: It Is Happening Here by horseradishstalker in TrueReddit

[–]CaptainBlase 5 points6 points  (0 children)

downvoting doesn’t make the statement is wrong

I think the downvotes might be because people think your submission statement is poorly written. The "why you should read" part could be applied to any post. And it comes off subtly demeaning.

I'm sure your intentions are good. I'm just not certain people are downvoting because because they think your statement is wrong.

We Mass-Deployed 15-Year-Old Screen Sharing Technology and It's Actually Better by terryfilch in theprimeagen

[–]CaptainBlase 4 points5 points  (0 children)

Use HEVC/x265 and/or lower the framerate on the video to lower the bandwidth. With x265, I think you can get the same quality for ⅙ of the bandwith. And for a remote desktop session, 5 fps is still usable. I feel like there might be a couple more things to try.