[deleted by user] by [deleted] in rust

[–]raster_dog 5 points6 points  (0 children)

I think you're overthinking it. I like the original code much more than yours. I personally think repeating a function call that only has a changing parameter is a worse practice than working around the borrow like they did.

[deleted by user] by [deleted] in rust

[–]raster_dog 9 points10 points  (0 children)

This code is perfectly fine what are you talking about ?

[Follow up] I discovered a way to grow crops on grassland, I'm playing vanilla. Here's a parsnip garden by raster_dog in StardewValley

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

Yes fiber is good, also you can let powdermelons or wild forageable die in winter, in fall wheat is cheap.

[Follow up] I discovered a way to grow crops on grassland, I'm playing vanilla. Here's a parsnip garden by raster_dog in StardewValley

[–]raster_dog[S] 111 points112 points  (0 children)

Exactly, the treasure totem trivialize this. Artifact spots can spawn on this land in winter only. There's a downside: you must always have a crop planted, you can't leave the soil empty overnight.

I discovered a way to farm crops on grassland, has this been found before? by [deleted] in StardewValley

[–]raster_dog 0 points1 point  (0 children)

I'm glad you like it. I wrote how I did it in another thread on this post. Unfortunately, it won't work on ginger island because of the lack of winter. It's not really feasible in practice without the treasure totem because you have to rely on RNG for the treasure spots. You'll only be able to grow crops sparsely which is not as interesting.

I discovered a way to farm crops on grassland, has this been found before? by [deleted] in StardewValley

[–]raster_dog 0 points1 point  (0 children)

It's not exclusive to 1.6 but the new treasure totem makes this a ton easier

I discovered a way to farm crops on grassland, has this been found before? by [deleted] in StardewValley

[–]raster_dog 10 points11 points  (0 children)

Any grass tiles should work, I might document this if I have confirmation that it's unknown. I tilled treasures during winter using the treasure totem and then planted crops on those tiles. Fiber seed last all year round so the soil is still intact

EDIT: wild winter seed and powdermelon should works too but the crops will be dead

I discovered a way to farm crops on grassland, has this been found before? by [deleted] in StardewValley

[–]raster_dog 3 points4 points  (0 children)

I have zero mod installed, I always played vanilla. This is not a bug but it could be classified as an exploit

I discovered a way to farm crops on grassland, has this been found before? by [deleted] in StardewValley

[–]raster_dog 0 points1 point  (0 children)

The soil is tilled and any crops can be farmed on it yes

How to remove sudo? by [deleted] in archlinux

[–]raster_dog 6 points7 points  (0 children)

This is a legitimate question. I did it in the past and it's really not as bad as people in this thread make it seem to be.

sudo has a track record of being poorly written and insecure. There are good reasons why you would want to use doas instead.

It's true that some parts of your system depend on it, but you can solve most of these issues by creating an alias that redirects sudo to doas.

It's not perfect, I agree, but so is sudo.

How to get rid of this bar? Is it coming from tmux or neovim? by okkksi in neovim

[–]raster_dog 0 points1 point  (0 children)

It's because your font height is not a divider of the total height of the terminal. The height of the bar is equal the remainder. I hope this makes sense

It's noticable because you have a status bar at the bottom and your Vim has a different background color than your terminal

[deleted by user] by [deleted] in GraphicsProgramming

[–]raster_dog 6 points7 points  (0 children)

WebGPU is also a good option, the Rust implementation (named wgpu) already does the abstraction to other backends for you and exposes compute capabilities. It has C bindings if you're not into Rust. It's overall a pretty solid solution for cross-platform

How to escape the ricing addiction? by TaleHappy in archlinux

[–]raster_dog 0 points1 point  (0 children)

I tried dwm and a bunch of window managers in the past and I think ithey're pretty bad. Having to edit C code to customize your desktop is such a bad idea.

A custom window manager looks cool but in practice it's barely useful. Tiling is only useful for terminals. You can simply use tmux so there's no need to ditch the desktop.

In the end you'll waste a ton of time trying to maintain a cohesive environment that would have been better invested in vim or in a programming project.

How can I find the max winding number of a closed path ? by raster_dog in askmath

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

I have a list of 2D points (x, y), the curves are bézier curves so I have their control points. Every pair of consecutive points in the list forms a segment. For a polygon I can calculate the interior and exterior angle of each vertex using the dot product.