Off by one solitude
  • melmi melmi Now 100%

    Yeah, fair enough. To my mind I guess I don't think of array indexes as an example of actual zero based numbering, simply a quirk of how pointers work. I don't see why one starting from zero has anything to do with the other starting from zero. They're separate things in my head. Interestingly, the article you linked does mention this argument:

    Referencing memory by an address and an offset is represented directly in computer hardware on virtually all computer architectures, so this design detail in C makes compilation easier, at the cost of some human factors. In this context using "zeroth" as an ordinal is not strictly correct, but a widespread habit in this profession.

    That said, I suppose I still use normal one-based numbering because that's how I'm used to everything else working.

    1
  • Off by one solitude
  • melmi melmi Now 50%

    Indexes start from zero because they're memory offsets, but array[0] is still the first element because it's an ordinal number, not an offset. It's literally counting each element of the array. It lines up with the cardinality—you wouldn't say ['A', 'B', 'C'] has two elements, despite array[2] being the last element.

    0
  • ZeroTrust Your Home
  • melmi melmi Now 75%

    When done correctly, the banner is actually a consent banner. It's a legal thing, not necessarily trying to discourage criminals. It's informing users that all use will be monitored and it implies their consent to the technology policies of the organization. It's more for regular users than criminals.

    When it's just "unauthorized access is prohibited", though, especially on a single-user server? Not really any point. But since this article was based on compliance guidelines that aren't all relevant to the homelab, I can see how it got warped into the empty "you no hack" banner.

    4
  • I don't know who needs to hear this but pre-made stock and bouillon is a scam. It is made from nutritional yeast, onion powder, salt, and dry parsley. Turmeric if it's yellow.
  • melmi melmi Now 100%

    We use a lot of vegetable stock; we make it at home sometimes and it's delicious but nowadays we often use stuff from a jar. Looking at the jar the first ingredient is vegetables, so better than your standard stock I suppose.

    It's never occurred to me to use nooch as a substitute before when we're out, I've always just skipped the broth and had sad weak soup with water instead... This will be good for the days I'm craving soup but the fridge is empty.

    8
  • I don't know who needs to hear this but pre-made stock and bouillon is a scam. It is made from nutritional yeast, onion powder, salt, and dry parsley. Turmeric if it's yellow.
  • melmi melmi Now 100%

    I love that you posted this because it confirms @hamid's point so succinctly.

    It's mostly MSG, with chicken fat being below palm oil on the ingredients list. Just replace both fats with some other oil and you're good to go

    3
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMI
    Jump
    It seems like the logical way to work
  • melmi melmi Now 50%

    That 10Gb link is almost certainly oversubscribed, though. You don't actually have 10 Gb of dedicated constant bandwidth, you just have access to 10Gb of potential bandwidth. You're unlikely to saturate that link very often, so you won't notice, but it's shared with other people.

    It's different from Google or any other company paying for bandwidth that's being actually used, not just a pre-allocated link like your home internet.

    0
  • Is Science Fiction Inherently Hopeful?
  • melmi melmi Now 100%

    I can kind of see where he's coming from, but only if you're weighing it against an assumed future where we're going to die out tomorrow. That's a low bar for hopeful, and certainly not "100% positive".

    I have a hard time seeing I Have No Mouth and I Must Scream or even worse, All Tomorrows, as "hopeful". I'd honestly rather just die.

    Plus, not all sci-fi involves humans, and not all sci-fi is in the future. There's scifi with no humans in it, there's scifi set in the past or in an alternate present, and none of those qualify as "hopeful by default" in the way he defines it any more than any other fiction does.

    15
  • Lemmy community discoverability is not user-friendly and can be improved App side
  • melmi melmi Now 100%

    But how will you get a "universal" view of the fediverse? No single authoritative view exists.

    You yourself acknowledge that this is complicated, but I honestly don't understand what appeal a hacked together fake centralized system would have for people if they don't care about decentralization in the first place. Any such solution is almost inevitably gonna end up being janky and hacked together just to present a façade of worse Reddit.

    Lemmy's strength is its decentralization and federation. It's not a problem to be solved, it's a feature that's attractive in its own right. It doesn't need mass appeal, it's a niche project and probably always will be. I don't think papering over the fundamental design of the software will make it meaningfully more attractive to the non-technically minded.

    3
  • What domain name to choose for an open source website where I could ask for personal donations?
  • melmi melmi Now 100%

    I don't think the relevance of the TLD matters. It's worth being aware of whether you're using a ccTLD, especially in the case of countries like Afghanistan, but you also used .io as an example which is overwhelmingly used by non-British Indian Ocean Territory sites and is proven reliable. It's even managed by an American company.

    Then .app isn't a part of the original TLDs, but actually a part of the new wave of modern gTLDs. And if you're considering .app, there's no reason not to consider the thousands of other generic TLDs out there.

    Like with the ccTLDs, the only thing you have to consider is the trustworthiness of the managing org.

    5
  • Why VPN tunnels are safer than opening a port on my router?
  • melmi melmi Now 100%

    Yes, but only if your firewall is set to reject instead of drop. The documentation you linked mentions this; that's why open ports are listed as open|filtered because any port that's "open" might actually be being filtered (dropped).

    On a modern firewall, an nmap scan will show every port as open|filtered, regardless of whether it's open or not.

    Edit: Here's the relevant bit from the documentation:

    The most curious element of this table may be the open|filtered state. It is a symptom of the biggest challenges with UDP scanning: open ports rarely respond to empty probes. Those ports for which Nmap has a protocol-specific payload are more likely to get a response and be marked open, but for the rest, the target TCP/IP stack simply passes the empty packet up to a listening application, which usually discards it immediately as invalid. If ports in all other states would respond, then open ports could all be deduced by elimination. Unfortunately, firewalls and filtering devices are also known to drop packets without responding. So when Nmap receives no response after several attempts, it cannot determine whether the port is open or filtered. When Nmap was released, filtering devices were rare enough that Nmap could (and did) simply assume that the port was open. The Internet is better guarded now, so Nmap changed in 2004 (version 3.70) to report non-responsive UDP ports as open|filtered instead.

    1
  • Why VPN tunnels are safer than opening a port on my router?
  • melmi melmi Now 100%

    WG uses UDP, so as long as your firewall is configured correctly it should be impossible to scan the open port. Any packet hitting the open port that isn't valid or doesn't have a valid key is just dropped, same as any ports that are closed.

    Most modern firewalls default to dropping packets, so you won't be showing up in scans even with an open WG port.

    2
  • Most things are not too complicated to explain, but are deliberately made more complicated than they actually are.
  • melmi melmi Now 66%

    Tbf, I don't often talk to children about work, and I don't think most adults would want me to talk to them like a child.

    Plus, talking to children doesn't come naturally to everyone. It's certainly not fair to describe it as "very easy".

    1
  • 2024: The Year Linux Dethrones Windows on the Desktop – Are You Ready?
  • melmi melmi Now 100%

    The "make a fork" thing is part of the issue, I think. In general there's this culture in the open source community that if you want a feature, you should implement it yourself and not expect the maintainers to implement it for you. And that's good advice to some extent, it's great to encourage more people to volunteer and it's great to discourage entitlement.

    But on the other hand, this is toxic because not everyone can contribute. Telling non-technical users to "make it yourself" is essentially telling them to fuck off. To use the house metaphor, people don't usually need to design and renovate their houses on their own, because that's not their skillset, and it's unreasonable to expect that anyone who wants a house should become an architect.

    Even among technical users, there are reasons they can't contribute. Not everyone has time to contribute to FOSS, and that's especially notable for non-programmers who would have to get comfortable with writing code and contributing in the first place.

    2
  • Google is redesigning its search engine — and it’s AI all the way down
  • melmi melmi Now 100%

    Google destroys their own search engine by encouraging terrible SEO nonsense and then offers the solution in the form of these AI overviews, cutting results out of the picture entirely.

    You search something on the Web nowadays half the results are written by AI anyway.

    I don't really care about the "human element" or whatever, but AI is such a hype train right now. It's still early days for the tech, it still hallucinates a lot, and I fundamentally can't trust it—even if I trusted the people making it, which I don't.

    34
  • Responsive Design Go Brrrr
  • melmi melmi Now 100%

    Just because you can work with one monitor doesn't mean multiple monitors isn't more comfortable though. You can have multiple windows open at once, at full size, and glance between them freely. No need for them to share the limited real estate of a single monitor.

    I run Sway on my laptop because it lets me take full advantage of my single monitor, but on my multi monitor desktop setup I use a regular floating DE.

    7
  • Systemd Looks to Replace sudo with run0
  • melmi melmi Now 97%

    Systemd does a lot of things that could probably be separate projects, but run0 is an example of something that benefits from being a part of systemd. It ties directly into the existing service manager to spawn new processes.

    33
  • Reverse proxy
  • melmi melmi Now 100%

    It definitely encrypts the traffic, the problem is that it encrypts the traffic in a recognizable way that DPI can recognize. It's easy for someone snooping on your traffic to tell that you're using Wireguard, but because it's encrypted they can't tell the content of the message.

    5
  • Farm Folks CEO On Boob Physics: ‘We Don't Want To Attract Nasty People’
  • melmi melmi Now 100%

    Not familiar with the game or the publisher at all, but this definitely feels like engagement bait.

    3
  • How to create a bootable Linux USB drive
  • melmi melmi Now 100%

    This works because block devices like /dev/sdX are just files. If you cp a file onto another file, it overwrites the data of the destination with the source. A block device represents the device itself, not the filesystem; if you wanted to put the ISO inside the filesystem, you'd have to mount it first.

    4
  • https://lemmy.blahaj.zone/post/7431091

    It seems that the issue was resolved behind closed doors, so it could have been resolved behind closed doors to begin with, and then if the defederation was to go ahead simply announce the defederation. Making an announcement "it will be defederated in 48 hours" made for this weird countdown drama thread (we even had programming.dev people show up and be sad about defederation!) that didn't really go anywhere, and then y'all just locked it when we refederated and made it clear that you were never interested in input and you'll be running the instance as you please (which is well within your rights of course). So what was the point of the thread? I can see how it is nice to have warning if a community you're involved in is going to be defederated, but it also drags drama to our nice little corner of the fediverse, and pins it at the top of our feeds for all to see. In fact it shows up as the top of every feed for me, Local, All, and Subscribed. I can't get away from it. Every time these threads show up they end up blowing up. Honestly, if you didn't make these threads, I wouldn't care who you defederate. But because the thread exists, I have to come in and I have to have an opinion. That's a personal issue and I recognize that, but I would hazard a guess that I'm not the only one. People who have never interacted with Blahaj nor the instance getting defederated show up in these threads sometimes. These threads invite drama, and for me personally, whenever they come up they make this space feel significantly less safe and make me want to leave Lemmy as a whole because it feels like it's just nonstop defederation drama for days at a time, but it's pinned at the top of my feed. Maybe these threads actually provide utility, and I should just take these threads as a sign I should take a break from the Internet for a bit. But to me, they just seem like they're all downsides.

    75
    27

    I know you're supposed to pronounce it along the lines of "blo-hi", but the Anglicized "blahaj" is so hard to resist!

    44
    31
    melmi Now
    2 281

    Melmi

    melmi@ lemmy.blahaj.zone