• 0 Posts
  • 370 Comments
Joined 2 years ago
cake
Cake day: July 31st, 2023

help-circle




  • Hosting your own mail server for example is probably not worth it for most people.

    If the homelab involves using an IP address under a residential internet service, that quickly goes from “not worth it” to “literally impossible”.

    Unless you’re willing to set it up so SMTP and IMAP are tunneled through a VPS that you also pay for, the story becomes:

    Why can’t I receive my test mail?
    Oh, the ISP blocks inbound SMTP connections.

    Why can’t I access my mailbox from outside my home?
    Oh, they also block IMAP and POP.

    Why do my outgoing emails all end up in the spam folder?
    Oh, most email providers insta-spam anything from residential IPs ranges.

    And then, even if it’s not a homelab, DIY email hosting is:

    Oh my god, there’s so much spam.
    I need to set up more aggressive filters.

    Why did this important email get filtered?
    Oh, I need to make the spam filter less aggressive.

    Why are my outbound emails being marked as spam?
    Oh, I need to set up DKIM and SPF.

    Why is it still being marked as spam?
    Wait, some providers require reverse lookup hostname of the mailserver to match the sender name? Fuck.

    Oh, ok, now my server or its IP block got added to a spam list.
    How do I get removed from the spam list?
    Painfully. Very painfully.

    And so on.

    It’s really not worth it.









  • The goal of the healthcare system should be to treat people.

    The goal of a good healthcare system is to treat people. The goal of ours is to treat the rich to another yacht. Healthcare providers bill far above cost for profit, knowing that either the insurance or the patient will have no choice but to eat the cost. Insurance providers use high healthcare costs to justify high policy prices and then do unethical shit to avoid paying out.

    The hospitals make money. The insurance company makes money. The shareholders and corporate owners make money. The people needing healthcare get screwed.

    The system is, unfortunately, working as intended for those who benefit from it being the way it is.





  • Sure, but knowing ICE took your kid doesn’t really do much to help get them back.

    ICE is now an extrajudicial secret police with even less oversight than the actual police. Even if someone knows ICE kidnapped their relative, nobody in the current administration is going to hold them accountable if they decide to lie and say “no we didn’t”. It took months to get back Abrego Garcia, and that was with the public eye on the situation and the entire Democratic Party pressuring them. For every one Abrego Garcia, there are thousands of people who are still unjustly locked up in a concentration camp.



  • One option is to use embedded structs:

    type UnmarshalStruct struct {
        Foo string
    }
    
    type MarshalStruct struct {
        UnmarshalStruct
        FieldYouDontWantUnmarshaled string
    }
    

    When marshaling, you would marshal MarshalStruct. Because UnmarshalStruct is embedded, json.Marshal automatically includes all the fields from UnmarshalStruct.

    When unmarshaling, you would unmarshal UnmarshalStruct and then create a new MarshalStruct like this:

    var unmarshaled UnmarshalStruct
    err := json.Unmarshal(&unmarshaled)
    if err != nil {
        panic(err)
    }
    
    return MarshalStruct {
        UnmarshalStruct: unmarshaled
    }
    

    Although, if I may ask: why do you not want a field to be unmarshaled? You could always just set it back to the zero value after unmarshaling, which is a lot easier of a solution.