• 0 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: April 30th, 2025

help-circle
  • Could be QOS or packet shaping going on at your ISP, or just throttling or congestion. Speed tests only really test for typical traffic patterns, so will give you a warped view: it certainly disagrees with your observed measurements. There are lots of factors that can affect how quickly traffic passes between two hosts on the internet, but domestic broadband is generally the worst of all worlds - you usually share bandwidth with other subscribers, and although the throughput can be quite good, the latency and error rate can be quite bad, and you can get fragmentation as frame sizes can differ between network segments, causing buffering especially when congestion is occurring. Your ISP might also have deprioritised your type of traffic, or they might be dropping packets, which causes retries, and thus slows your connection down.



  • Digital ads do not promote things I’m interested in buying. I do not see ads very often at all - I haven’t had a TV for 20+ years, I don’t go to cinemas, so I don’t even see those kinds of ads. Occasional ads on YT pop up, and I’ll skip them; if they are unskippable or too frequent, I’ll abandon the vid. I’m not on any commercial “social media”, so I don’t see ads on them either. I’ve just never liked social media - Lemmy and Mastodon are all I use these days.

    Occasionally, very, very occasionally, I’ll see a meatspace ad that I pay attention to: there’s a local alternative music collective that wheatpaste ads around in a nearby town. I actually WANT to know about these events, and I will actually go to them, and I actually sought them out in the first place. I also see ads at my local community centre, for local events. Same kind of thing.

    So how is this resistance futile?



  • You never know … maybe THIS year!

    The way windoze 11 is going - people really hating it - you never know, but I’m not holding my breath. Linux is still very niche, and people are wary of “strange” “new” things, especially FREE ones - where’s the catch? I’ve seen it surge and blossom over the years, but it’s still got a really tiny install base (as long as you don’t count Android and embedded tech, where the OS and kernel are largely irrelevant to the user). But I don’t see people moving over to Linux in droves any time soon, really: I’ve seen too much.

    For context, I’ve been using it since [dredges up old memories] slackware was new, so about 1994, when a work colleague and I installed it (off about 20 floppies) onto an old 386sx PC with probably 4MB of RAM. Been using it ever since - and from Red Hat 4 onwards (about 1999) it’s been my only OS on my own computers. I’ve always preferred it, and I’ve seen it grow in so many ways - I’d still use it if it was illegal. I haven’t tried EVERY distro, but I have tried most. These days I mostly stick with Debian or Debian-based distro’s (I’m currently on Mint LMDE).


  • Not only can you take loans against your shares, but you can pay the interest on those loans with dividends from the shares, and because they’re a loans, the cash-in-hand is not taxable, so you pay NO TAX on it. You have no “income” on paper, but you can pay people and companies with shares instead of money, shares that you can literally conjure into existence by typing numbers into a spreadsheet. Those money and shares are really useful for greasing the palms of politicians, government officials, and hangers-on so that you can get your way. You can even use this money and influence to cause riots and stoke division in society.



  • You mean in the context of high availability?

    tl;dr: It’s to test if the cluster fail-over configuration is working properly.

    So this was before things like Kubernetes or Terraform were a thing, so had to be done by the operating system itself. The simplest HA cluster is made of two nodes, one in “active node”, the other “passive”. The active node does all the work, and the passive node just keeps its data synchronised with the active node. I used to use DRBD for this, which is a system for copying writes to the active node over a network link to the passive node. That only gives you a “second, up-to-date copy” which is not that useful on its own - you also need a way to automatically switch over to using the passive node if the active one “dies”, and for that I used to use “heartbeat”, which simply passes packets back and forth between the two cluster members - ping-pong style - and if the passive node notices that the active node hasn’t sent its scheduled packet for, say, 10 seconds, it cuts it off the current active node (kills it), and promotes itself to the active role, thus preserving the service. Killing the “other node” is necessary to stop data corruption or user requests going to a node that can’t actually service them, and is called STONITH - Shoot The Other Node In The Head. STONITH can involve an electronically controlled switch, which literally cuts off power to the “other” node, or can isolate it on the network, by shutting down its network ports on the switch, or in a VM setup, sending a notification to the hypervisor to kill the VM.

    The reason you need to be able to kill the kernel on the active node, is that when you manually shut down the active node, it automatically informs the passive node that it’s going down, known as an “orderly fail-over”, and you’re not actually testing if the heartbeat fail-over works, you’re just testing an orderly fail-over. Killing the active node’s kernel tests that the passive node is properly configured to take over during a catastrophic failure of the active node. You can watch the heartbeat status go from “up” to “down”, and then see the passive node decide to take over, promote itself and bring up its services, and begin processing requests.

    To make sure it’s all working, you need to test orderly fail-overs first, from both nodes, then test disorderly fail-overs both ways, by using the kernel gun on the active node.

    Things moved on from Heartbeat-based HA clusters to multimode clusters managed by Corosync and other software, enabling other strategies to be employed. This was eventually supplanted by “orchestration” systems like Kubernetes, and proprietary Virtual Cloud systems that move this functionality to the platform rather than the operating system.


  • Nah man. “kill” doesn’t shut the system down quickly. This is the “instant death” way - the kernel reset gun - no shutdown scripts, no disk sync, just reset to BIOS boot sequence, instantly:

    As root:

    echo 1 > /proc/sys/kernel/sysrq

    echo b > /proc/sysrq-trigger

    If you change out the “b” in the second command for “o” it will just halt the kernel instead of rebooting. Still switched on, but the system is doing absolutely nothing.

    I used to use this trick all the time to test high availability server clusters.


  • Sounds great, look forward to seeing that. After using it a bit more, another thing occurred to me - there’s no way to open arbitrary files. I don’t use MarkDown for “just notes” or “just one thing”, I keep markdown files all over the place. I had set the repository directory to be that of my blog posts during first run, but then I can’t open things in my notes directory or documents folder, and I can’t see anywhere in the settings dialogue to change it. Am I missing something?



  • Seems quite good - I’ve tried a LOT of MarkDown editors over the years, but until quite recently, I’d stuck with Zettlr for a long time. I’ve recently reinstalled my laptop, which made me look for alternatives to some software, and I’ve been playing round with MarkText for the last few days, which seems nice.

    HelixNotes is definitely good - if I had to drop MarkText, I think I could get on well with it. I like that they have a debian repository, so I can keep it updated with the usual system update software. I downloaded the AppImage as a quick test, but it didn’t work because it was compiled against an old version of glibc.

    The only thing I don’t like so far is the format toolbar is at the bottom of the editor screen, and I haven’t found a way to move it.



  • cybervegan@lemmy.worldtomemes@lemmy.worldSay it ain't so
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    26 days ago

    I learnt to “type” when I was at school, programming a Commodore Vic-20. I thought I was quite fast, but what I had really learnt was just the key combos for common words. It’s what most people who have never learnt properly before do, and it’s called “point and poke”. You don’t realise the extra effort you’re putting in, and the mistakes you’re making (overuse of the backspace key) and so on.

    When I went to college at 16 (UK) to study computer science, we had the option of learning touch typing. We all thought we were pretty good at typing, but afterwards, we’d all doubled our typing speed (or more) and increased our accuracy by 10x. We learnt on proper electric golfball typewriters, and as we got better, we all noticed that code entry got a lot faster. The thing that is affected most, though, is typing up from notes or printed copy - because you don’t have to keep looking away from the source, back to the keyboard and screen, you can be much quicker. Also, typing your thoughts is much faster as you are not having to split your attention between the thoughts and the keyboard - what you think just appears on the screen without having to spend mental effort on typing.


  • That’s fair. I’m thankful for your perspective - food for thought. You’re right I’ve not seen that section of society from that angle, though I have a sibling who went through addiction. They were a “functional addict” and were working throughout, so I’m aware of that angle, at least. That was all decades ago now, though their partner had a relapse after an operation when they were given opiate painkillers. I think you’re being hard on yourself though - and I don’t know your circumstances, so I don’t know how you got into that mess, but although it’s easy for outsiders to frame addiction as a personal failure, I think the circumstances that led to that path are often ignored. I see such problems as a systemic failure, rather than a personal one. I’m glad you got clean of the class A’s, it’s no small achievement, and I hope you’re making progress with the rest - though I understand that Nicotine is perhaps the hardest of all to kick. I do think you have a bit of survivor bias there, though. One thing I’ve learnt recently, is that not everyone has the same abilities to get through - I know you’ve seen chancers, and you managed to get through, but I don’t think it’s true that everybody could have taken your path.

    For myself, I’m getting help from the CAB, so we’ll see where that goes. I start 1-to-1 support next week with the local “Autism Hub” which is an entirely new thing to me - I’ve never “been in the system” before, so it’s an “interesting” learning curve. I have ups and downs - the past few days I have been far better, but I keep relapsing due to factors outside of my control - mainly caused by said system. I just need the time and space to recover properly, but I don’t know if I’m going to get it. Purely “mental health” things are something this system seems hell bent on denying, so I’m expecting a continuing struggle. I have no choice but to push on.



  • Can confirm. Back at the beginning of my IT career (mid 1980’s), I worked as a temp for a computer manufacturer in their refurb repairs department. In those days, kit was so expensive that everything got repaired if it went wrong, and one of my jobs was repairing keyboards - PC keyboards, and dumb terminal ones - and the first part of the process was stripping and cleaning them. There was a lot more room for crumbs and dust back then, too, and man did they get full. Crumbs, staples, paper clips, hair grips, all sorts. I had literal mould growing in some of them. I remember the ones coming in from Italy were the worst for that for some reason.



  • Well, it depends what you call spam, how well known your server is (are your email addresses spread far and wide on the web or only known to a couple of people) but a lot of spam is automated and algorithmic, so most servers will be showered with speculative mail addressed to likely mailboxes - which your server still has to process, if only to bounce the message; if you have antispam measures, your server can just drop the connection when it detects a spammy sender (e.g. from an address on a black or greylist). I’m not currently running any mail servers, but a few years back when I did, I used to get about 80% spam incoming.


  • The list is immense, and I didn’t want to clutter my post with all the details. So just listing off things that spring to mind (because I don’t know what OP doesn’t know):

    • Choosing an MTA - sendmail, postfix, exim, etc. and why you might choose one over the others
    • Firewall settings
    • Software/package management on your chosen distro
    • Learning about DNS:
      • Host it - yourself via BIND
      • Or via a DNS service provider
      • DNS record types
        • Domains
        • Subdomains
        • A records/CNAMEs
        • MX records
        • Mail authority records - SPF’s
        • Mail encryption records - DKIM
    • Spam filtering, anti-virus
    • Learning how to configure your MTA, which requires learning:
      • the configuration file language your MTA uses
      • what all the options mean and what they do
      • what the bare minimum options are to get up and running
      • how to make sure your configuration is secure and won’t be exploitable by bad actors
      • how mail really gets delivered
      • how to setup secure smtp
      • how to set up SPFs
      • troubleshooting why GMAIL or Microsoft won’t accept your mail
      • troubleshooting why GMAIL or Microsoft have stopped accepting your mail
      • dealing with blacklists/greylists when someone sends too many messages, or something that “looks too spammy”
    • Mail hosting pitfalls
      • Being an open relay
      • Rate limiting
      • Reputation management
      • Vulnerabilities that let a hacker take over your server
      • Resource management - disk, memory, processes, queues, etc.
      • Downtime when you need to do updates
      • Downtime if you change your DNS configuration

    I’ve definitely missed some stuff, and each of those things requires knowing other stuff too, so you can see that it’s really a pretty deep subject. This is precisely why not many people self-host email themselves these days - the big guys have made it harder and harder to do so, in the name of eradicating spam, which they themselves are the biggest vectors for.