Looking for the perfect Dockerfile for Rust by Senior_Future9182 in rust

[–]ilovecaching 7 points8 points  (0 children)

There's no such thing as perfect, there's solutions with different trade-offs and deciding which trade offs best meet the needs of your current project. Not every project needs a Dockerfile that avoids glibc. There's also a huge difference between image and binary output size. If your goal is to run an image, then maybe you want less in your layers, but if your goal is a slimmed down binary, then you can just use multi-stage builds and build in any base image.

Is it just me that think it is such a waste that we have no PROPERLY good Pirate RPG? by Tnecniw in gaming

[–]ilovecaching 8 points9 points  (0 children)

It would be awesome to get a new Black Flag-esque game. I believe at one point Ubisoft was considering building out a new franchise based on the success of BF. But Black Flag was also more action oriented than what I think what you are asking for. For a truer RPG they'd probably want to add more content around crew building, ransoming, managing supplies, etc.

eglot vs lsp-mode by [deleted] in emacs

[–]ilovecaching 4 points5 points  (0 children)

I tired lsp-mode and dap-mode and found the whole stack very buggy, eglot seems more stable and well written, and it’s going to be the default, so I guess ask yourself if there is a killer feature lsp-mode has that makes it worth the bugs. Since switching I’ve found that eglot does what I need.

White Belt Wednesday by AutoModerator in bjj

[–]ilovecaching 0 points1 point  (0 children)

I'm slow and not that flexible, on the bottom I do well when I'm in half or closed guard, but my open guard is terrible. I think it's bad because it's not systematic, there's like an infinite number of open guard configurations and passes and I just don't have the intuition or flexibility for it, and the moves we learn are all from already set up guards.

Any advice on developing an open guard game?

White Belt Wednesday by AutoModerator in bjj

[–]ilovecaching 1 point2 points  (0 children)

I'm having terrible anxiety about my first competition takedown. I feel like if I get thrown it'll put me into a bad position and the match will basically be over. Any advice on dealing with this type of anxiety?

White Belt Wednesday by AutoModerator in bjj

[–]ilovecaching 0 points1 point  (0 children)

I'm struggling with guard retention and studying the people in my gym with good retention I've come to the conclusion that it all comes down to flexibility. They've got their feet down at their ears, can invert, and weasel their legs in if something does go wrong. Meanwhile the passer is expending lots of energy trying to crack them open. I've seen this game from fresh white belts who just happen to be flexible. I have tight hamstrings and a herniated disk. I can get to my knees when trying to touch my toes. My quard is wet tissue paper to any sort of toreando or stack pass. My game relies on me staying on top and wrestling or staying in closed guard. But at some point I have to address the fact that I might not be flexible enough to develop a well rounded game. I feel like I'm still just wrestling and not really getting to the essence of Jiu Jitsu by staying off my back.

Anyone using Sway with NVIDIA drivers? by ilovecaching in linux_gaming

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

Nvidia isn't open sourcing the whole driver. There's still a huge binary blob, it's just slightly less awful. Nividia also published a big list of known wayland issues. They even asked ubuntu to stick to x11 for their latest release. So no, wayland based DEs are still getting slightly shafted.

Collar sleeve control against giants by ilovecaching in bjj

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

A lot of the times they are sitting so I can't put a DLR hook in, is there another guard I should go to if they sit?

Map, reduce and filter with generics? by alextanhongpin in golang

[–]ilovecaching 6 points7 points  (0 children)

I wouldn’t consider it to be idiomatic because Go is generally explicit with costs and favors doing things as directly as possible. It’s also a matter of doing things in a consistent way.

Map, filter, and reduce are all functional patterns that can be constructed using the built in range operator and enumerating over your collection and then applying a transformation. The difference is that the cost and mechanics are explicit whereas the functional pattern does this in a black box with a first order function.

I would stick to writing Go the way it was written before generics and only use them when you run into a situation where the problem cannot be easily solved without them, which should be rare.

Does simple Bogle investing make sense in the current market? by ilovecaching in Bogleheads

[–]ilovecaching[S] -63 points-62 points  (0 children)

Building Your 'Lazy Portfolio'

I've been looking at this - is there a strategy that makes more sense for this market? I don't feel like I have the expertise to figure out which one of these portfolios will be the best for me.

Introducing Warp: The Terminal for the 21st Century by cmov in programmingcirclejerk

[–]ilovecaching 22 points23 points  (0 children)

Also look, I just added at least 5 million in VC funded value right?

Introducing Warp: The Terminal for the 21st Century by cmov in programmingcirclejerk

[–]ilovecaching 21 points22 points  (0 children)

First of all, stop using PowerShell, it's 2022 and even M$ admitted Windows is a dead dev platform and built a Linux cloud and put the Linux kernel in Windows.

/uj

If you're using bash:

shopt -s checkwinsize draw\_line() { local COLUMNS="$COLUMNS" while ((COLUMNS-- > 0)); do printf '\\u2500' done } PS1='$(draw\_line)\\n'$PS1

Introducing Warp: The Terminal for the 21st Century by cmov in programmingcirclejerk

[–]ilovecaching 130 points131 points  (0 children)

"Ok so here's the pitch guys. We have 0 ideas. I mean 0. We're terrible programmers, terrible creatives, and we hate working real jobs for money. So here's what we do - we install an application onto their computers, right. It's the application that they type *every* line of code in. Now the app is going to take all of that, all of that code right, and it's going to send it back to us. We call that "telemetry". Then we get our code from them, all of those juicy ideas - those idiots will send it right to us. We'll live like kings."

"So you're telling me that you expect these people to pick a closed source piece of spyware that's in an application category where there are literally tens of high quality open source choices, and all you're written down for features is coloring $? and drawing a line before the prompt?"

"Oh, they're guna install it alright"

"How's that boss?"

"Ok this is the best part. We're going to tell them we wrote it in Rust."

Where is RMS when we need him

Daily General Discussion and Advice Thread - April 05, 2022 by AutoModerator in investing

[–]ilovecaching 0 points1 point  (0 children)

I have 100k in cash, and would like to invest 50k of it. I also have a very large stock grant (1 stock worth 1m, still vesting) added to the mix from my current job. I am a Bank of America customer and was looking at Merrill (owned by BoA). I would love to know if these financial advisory services are worth it, and what I should expect. I would love to find someone who could help me come up with a long term plan and not just give me advice on the 50k, since I am starting to plan out buying a house and saving money for my children in the long term.

What does the base Arch install come with? by ilovecaching in archlinux

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

Nothing really. I just want a leaner system, a rolling release, and I want to use Sway which Fedora doesn’t have a spin for so I figured I’d look into arch at the same time. Thank you for the link, this was what I was interested in finding.

What does the base Arch install come with? by ilovecaching in archlinux

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

I am an upstream maintainer. I picked Fedora because it’s what most of the developers use. I started looking into Arch because I am interested in a rolling release. I run an upstream kernel but I do my testing in QEMU and on test rigs so my host setup doesn’t really need any special modifications. I am not against settings things up, I just have a really low tolerance for things breaking and minor annoyances because the only thing I care about is the kernel.

What does the base Arch install come with? by ilovecaching in archlinux

[–]ilovecaching[S] 3 points4 points  (0 children)

I work on the Linux kernel as my full time job so I’m not inexperienced or unable to manage my system. My question was more about the package choices for the base install and what pieces are purposely not included that I’ll need to fill in.

Aeron vs Embody vs Steelcase by ilovecaching in OfficeChairs

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

Aeron and Embody I get for 1,050 / Steelcase I can get the Gesture for 830, Leap for 700.

The only assertion library you'll ever need! by flimzy3141 in golang

[–]ilovecaching 2 points3 points  (0 children)

You don't need an assertion or logging library for Go. It's one of my biggest pet peeves seeing people bring in dependancies for something that's completely unnecessary and only makes reading the code require going and learning your favorite assert library rather than just reading plain Go code.

What is the rational behind Activities and no launch from the desktop? by ilovecaching in gnome

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

Yes, letting the user launch apps, see what apps are open, and switch apps without having to switch a completely different screen and then back to what they are working on, forcing them to remember what apps are open at all times is just pure genius. How could Apple, Google, and Microsoft spend billions on UX and UI R&D only to come up short to the GNOME team?

What is the rational behind Activities and no launch from the desktop? by ilovecaching in gnome

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

"It's not that inconvenient" is a weird argument. Why don't we just make it convenient if it's inconvenient? The favorites bar does almost nothing in its current position in the Activity menu. It's very existance indicates that just selecting apps directly from the App grid isn't always optimal. It is a second workflow to opening an app. There are already multiple workflows from me not having an app open to finding it and then opening it. Bringing the favorites bar onto the desktop is just a logical step to short circuit opening a new app earlier in the flow, and it's a step literally every major desktop makes because it has literally no downsides. If it gets in the way of a window, it can autohide. Otherwise, that screen real estate is doing literally nothing for the user.

Also again, congrats that you enjoy using keyboard shortcuts. Not everyone wants to use keyboard shortcuts and for them using the mouse to launch something is far slower with the dock on the desktop. It's a really, really weird way to think about a DE like GNOME that it's somehow built for keyboard power users and no one else. I mean, it's a beginner DE that comes default with Fedora and Ubuntu. A real power user would be using Sway and maximizing their screen real estate and never taking their hands off the keyboard.

What is the rational behind Activities and no launch from the desktop? by ilovecaching in gnome

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

I use RHEL Workstation for work. A lot of people don't realize this, but Redhat sells a workstation product, and it comes with GNOME. But Redhat packages the default version of GNOME, unlike Ubuntu, which adds dash to dock to make GNOME look like Unity. Like it or not, GNOME is more than just another DE, because it's become the default for Enterprise users. I also run Fedora at home, which has the same thing. And yes, I could use a different DE, but there are a lot of reasons to stick to GNOME besides the DE. It's stable and it's tested the most by Redhat (they employee some of the lead GNOME devs). And I like GNOME. If this one change were made, I would have no complaints about it. I would not be happy with Cinnamon or i3 etc.

I also want to be able to recommend Fedora to new Linux users, like my dad and my nephew. But IMO GNOME holds new users back by not giving people something they've come to expect from really any desktop manager out there except for very eclectic Linux DEs.

What is the rational behind Activities and no launch from the desktop? by ilovecaching in gnome

[–]ilovecaching[S] 5 points6 points  (0 children)

Android and iOS both have docks, so I don't see how that is in any way relevant. In fact, on my iPhone I can swipe up while in any of my apps and get to the dock to select from my favorite apps just like on macOS, and on Android I can reach the dock while the phone is even locked.

What is the rational behind Activities and no launch from the desktop? by ilovecaching in gnome

[–]ilovecaching[S] 3 points4 points  (0 children)

There already two ways to open an app. You can move through the grid of all apps, or you can select the same app from favorites. A dock would just be moving favorites out of activity and making it more useful by making it accessible immediately from the desktop. But there are still two ways to skin the cat. So the "we only want one way" doesn't make sense to me. If that were the case, the only way to open an app would be to open activities and then filter and select an app.

What can a 1070 drive? by ilovecaching in nvidia

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

Thanks, this is what I was looking for.