tatterdemalion

joined 2 years ago
[–] tatterdemalion@programming.dev 1 points 11 minutes ago

I guess I see what you mean if we want to get very technical about what a syntax extension is. But I think for the purpose of this discussion, it's reasonable to think of macro_rules! as a part of the Rust language. Practically speaking, it is syntax provided by the language team, not just users of the language who are free to extend the syntax by using macro_rules! to do so.

[–] tatterdemalion@programming.dev 3 points 17 hours ago

Enums are the best part of the Rust language IMO, so I'm not sure how you can view them as ugly. Having the choice to destructure something is fantastic. You generally aren't required to destructure every return value. Make sure you're using the ? operator as much as possible. If destructuring is getting in your way, it sounds like the code is not very idiomatic.

I can't really comment on your issue with nested if and match. Too much nesting is bad in any language; try extracting more functions and let bindings to make it more readable.

You can enable a clippy lint to deny .unwrap() if you're worried about it.

[–] tatterdemalion@programming.dev 1 points 17 hours ago (4 children)

Sorry, I love Rust but I can't really agree with you here. They only showed a macro_rules! definition, which is definitely rust syntax. Lifetime annotations are relatively common.

I will concede that loop labels are incredibly rare though.

[–] tatterdemalion@programming.dev 1 points 1 day ago (1 children)

The part where this connects to the bible and the afterlife is that Jesus attempted to give a compassionate moral framework to people who weren’t being taught that by any one at all. He’s the Louis Pasteur of the soul and you’re speaking as if the knowledge of bacteria was always self evident to anyone who cared to think about it for a minute.

If your point is that Jesus taught good morals to people, then I agree, assuming you can even trust that those stories from the Bible are true. Although I think it's wrong to assume Jesus was the first person to teach a similar moral framework. The Golden Rule existed and was taught broadly long before Jesus ever lived.

But I believe the point you are arguing is stronger than that. From your first comment, it sounded like your point is that believing in an afterlife is critical to discovering morality, and that is a teaching of the Bible (and Jesus?) which I disagree with.

The Golden Rule is a wonderful thing IMO, at least as a principle to be used with judgement. But the religious baggage can be shed without losing the value of that moral principle; I don't need to believe in Christianity or an afterlife to agree with the Golden Rule.

[–] tatterdemalion@programming.dev 5 points 2 days ago (2 children)

FWIW I tried the Helix mode in Zed, and it was missing lots of Helix bindings that I rely on.

NixOS, fish, tmux, Helix

[–] tatterdemalion@programming.dev 1 points 3 days ago (3 children)

Imagine a kid who doesn't want to brush. If they don't brush their teeth those teeth are still there in the morning, so why would they 'believe' in tooth decay?

Even a kid will eventually get cavities if they don't brush, and cavities hurt. Children also learn from their parents about tooth decay. Again, how is this relevant? Are you saying all people are children that can't tell right from wrong without being told?

Based on what? Greedy assholes have a great time! You certainly can't simply assume that everyone has a moral core that aligns with your own.

Sure, but once again, what does this have to do with the Bible and the afterlife? I'm agnostic and I derive my morals by studying the philosophy of ethics. And a big part of ethics is firstly understanding science so you can separate fact from fiction. If you don't know what is true, how can you know what is moral?

Nothing specific, but I was very pleased with how easily I could download some movies from jellyfin to my laptop before my flight home.

[–] tatterdemalion@programming.dev 1 points 3 days ago (5 children)

You shouldn't need the threat of tooth decay to brush your teeth!

That's not even true as an isolated statement. Tooth decay is the only reason to brush your teeth. If my teeth never decayed, why would I brush them?

I honestly don't understand the point you're trying to make. You can't just assume there is an afterlife. And if there isn't, then you shouldn't just start being a greedy asshole regardless.

[–] tatterdemalion@programming.dev 1 points 4 days ago (7 children)

You shouldn't need the promise of afterlife to learn how to get along with people.

 

I didn't think I'd spend hours reading about this today, but some things surprised me:

  1. Just using a Playstation sounds like it won't work or will be a huge time sink.
  2. Blu ray optical drives are way more expensive than I thought
  3. The copy protections on Blu rays are exceptionally annoying, to the extent where there is really only one closed source software -- MakeMKV -- that can work around them. This post goes into some interesting details.
  4. Finding a drive that is known to work with MakeMKV is a pain. There's a brand called Pioneer that seems promising but they have stopped producing bluray drives ~~went out of business last year~~. I have no idea which model works, and it's common that secondhand sellers will swap enclosures and pass it off as a different model.
  5. Sometimes you need to flash the firmware on the drive to make it work with 4K UHD discs.

I was going to try ripping a Blu-ray that I bought recently, since I couldn't find a quality rip anywhere, but I'm pretty turned off from the whole prospect at this point.

Anyway I'm not really asking for a specific reply, I just thought this topic was interesting and I'm curious what people think about Blu rays and optical media in general. Does the future seem bleak? Are we going to be stuck with shitty WebDLs for most new content? Or is physical media here to stay?

 

Struggling to find a particular book. I was going to buy it on Rakuten Kobo, but they literally won't sell it if you're not in Japan.

112
submitted 3 weeks ago* (last edited 3 weeks ago) by tatterdemalion@programming.dev to c/asklemmy@lemmy.world
 

I think like 98% of mobile games are pretty much trash, but there are some diamonds in the rough.

In the past I've enjoyed:

  • Monument Valley
  • 2048
  • Fruit Merge
  • Hashi
  • Papers Please
  • Baba is You
  • Balatro

I'm getting bored of my usual picks lately. I'm looking for something that's quick to jump in and out to pass the time, not something heavy. But hard puzzles or strategy totally fit!

Is the FF Tactics port good? Better alternatives?

 
 

AFAICT, if a Netflix account owner sets up a VPN for their household, then anyone sharing the account who routes their Netflix traffic through that VPN would appear to be accessing Netflix from that household's WAN IP address.

Is anyone doing this? Is it really that simple or are there more challenges?

EDIT: We get it, you like torrenting. Let's keep comments on topic folks.

 

Richard once decided to read the mind of a hermit oracle who knew everything. This drove Richard insane.

I just had to act insane for multiple D&D sessions.

 
 

I ask because it would be nice to use the "I2P mixed mode" features of qbittorrent, but I want to keep my clearnet traffic on the VPN.

Background

I have I2PD running only on my home gateway for better tunnel uptime.

To ensure that torrent traffic never escapes the VPN tunnel, I have configured qbittorrent to use only the VPN Wireguard interface.

Problem

I think this means qbittorrent I2P traffic will flow into the VPN tunnel, but then the VPN host won't know how to route back to my home gateway where the SAM bridge is running.

 

I've configured my i2pd proxy correctly so things are somewhat working. I was able to visit notbob.i2p. But sometimes Firefox really likes to replace "http" with "https" when I click on a link or even enter the URL manually into the bar. I have "HTTPS-only mode" turned off, and I also have "browser.fixup.fallback-to-https" set to "false" and "network.stricttransportsecurity.preloadlist" to false.

I tried spying on the HTTP traffic in web dev tools, and I see the request gets NS_ERROR_UNKNOWN_HOST. This does not happen when using the xh CLI HTTP client, so Firefox is doing something weird with name resolution. I made sure to turn off the Firefox DNS over HTTPs setting as well, but it didn't seem to make a difference.

I assume that name resolution needs to happen in i2pd. How can I force Firefox to let that happen?

Update: Chrome works fine.

Update: I started fresh and simplified the setup and it seems fixed. I'm not entirely sure why. The only things I've changed from default are DoH and the manual HTTP proxy.

 

I was just reading through the interview process for RED, and they specifically forbid the use of VPN during the interview. I don't understand this requirement, and it seems like it would just leak your IP address to the IRC host, which could potentially be used against you in a honeypot scenario. Once they have your IP, they could link that with the credentials used with the tracker while you are torrenting, regardless of if you used VPN while torrenting.

 

I'm preparing for a new PC build, and I decided to try a new atomic OS after having been with NixOS for about a year.

First I tried Kinoite, then Bazzite, but even though KDE has a lot of features, I found it incredibly buggy, and it even had generally poor performance, especially in Firefox. I don't really have time to diagnose these issues, so I figured I would put in just a little more effort and migrate my Sway config to Fedora Sway Atomic.

I'm glad I did. The vanilla install of Fedora Sway is awesome. No bloat and very usable. I haven't noticed any bugs. Performance is excellent. And it was very straightforward to apply my sway config on top without losing the nice menu bar, since Fedora puts their sway config in /usr/share/sway.

I'm also quite happy with the middle ground of using an OSTree-based Linux plus Nix and Home Manager for my user config. I always thought that configuring the system-level stuff in Nix was the hardest part with the least payoff, but it was most productive to have a declarative config for my dev tools and desktop environment.

I originally tried NixOS because I wanted bleeding edge software without frequent breakage, and I bought into the idea of a declarative OS configuration with versioned updates and rollback. It worked out well, but I would be lying if I said it wasn't a big time investment to learn NixOS. I feel like there's a sweet spot with container images for a base OS layer then Nix and Home Manager for stuff that's closer to your actual workflows.

I might even explore building my own OS image on top of Universal Blue's Nvidia image.

Hope this path forward stays fruitful! I urge anyone who's interested in immutable distros to give this a try.

view more: next ›