nickwitha_k (he/him)

  • 0 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: July 16th, 2023

help-circle




  • Sure but I’m not sure that most HR management software companies are going to be keen on handing over source for you to review.

    5/7 Software package is pure garbage. Tim forgot to remove his TODO comment from line 1052 of main and there are three instances of inconsistent indentation in the API module. Therefore, our automation pipeline has marked our own employees as “needs improvement”.





  • I think that, perhaps, the user is trying to use Lemmy as Reddit, rather than using some of the fantastic quality of life improvements that evaporated with the API nonsense.

    For example, blocking users and communities (and soon instances). Some users and communities, even if I enjoy them or the instances that they are on, sometimes are just too toxic for me. And that isn’t to say that the comms and users necessarily are (sometimes they are) but, that sometimes engaging with some comms and users either causes undue stress or temptation to get involved in an Internet fight. That’s not behavior that is good for us, even if it sometimes feels good in the moment.

    I’m hoping (and have suggested) that a “timeout” feature gets added to allow one to readily self-regulate and disengage when they find that interactions are approaching the sorts that are algorithmically encouraged on commercial social media platforms. The outrage machine is just terrible and I’ve found myself much happier and in a better headspace since leaving such platforms. Added bonus is that transphobia actually gets taken seriously on most instances and, while it doesn’t technically impact my as a cis guy, I’m much happier knowing that people are able to feel safer to be themselves (or come to terms with themselves).

    As for the complaint about people being more likely pedantic or correct people on technical details, I love that - finding out that I’m wrong about something is fantastic because that means that I learned something. When there’s topics, like tech, where there are often correct and incorrect answers and they change or get added to regularly, one really needs to leave the ego at the door. We’re all humans (and bots and human facsimiles), which means we’ll be wrong from time to time. It’s a fact of life, effectively in environments where there are a lot of knowledge-workers and the medium of communication is directly related to the topics.

    Personally, I’d like to see more comms regarding to digital circuit design and open-source silicon.




  • Yes. Because I intentionally design systems to avoid vendor lock-in by, at the very least, including a plan to export data and keep IaC in a repo so that it can be used to redeploy at either another vendor or colo-based servers.

    Here’s some good tools to do so:

    • Foreman Self-managed Metal-as-a-Service/VM-as-a-Service orchestrator. It’s FOSS.
    • Terraform Formerly FOSS, now moving to BSL due to service providers taking advantage of them. IaC tooling that allows one to rapidly deploy and manage infra on multiple platforms.
    • Keycloak FOSS IAM platform that’s pretty straightforward to use.
    • Talos Many choices here but I’ve used Talos before. It’s a FOSS K8S-specific Linux distro that is designed to be platform agnostic and auto-deployed with a simple config.
    • Helm K8S deployment manager. Need a DB? You can probably find a chart.

    There’s a ton of other possibilities but FOSS and source-availabile licensed software makes it pretty straightforward (though still time-consuming as no infra is fully cloud agnostic due to non-standardization between the big three in infra primitives).








  • var LogicGate = map[string]string{
        "OR": "OR",
        "AND":  "AND",
        "NOT": "NOT",
        "NOR": "NOR",
        "NAND": "NOR",
        "XOR": "XOR",
    }
    
    func isLogicGate(inString string) (bool) {
        _, ok := LogicGate[strings.ToUpper(inString)]
        if ok {
            return true
        } else {
            return false
        }
    }
    
    func stringAsGateLogic(inString string) (bool, error) {
        inSplit := strings.Split(inString, " ")
        var phrase1 strings.Builder
        var phrase2 stringa.Builder
        var gateString string
        for word := range inSplit {
            if isLogicGate(word) {
                if len(gateString) < 1{
                    gateString = word
                } else {
                    phrase2.WriteString(word)
                }
            } else {
                if len(gateString) < 1{
                    phrase1.WriteString(word)
                } else {
                    phrase2.WriteString(word)
                }
            }
        }
        boolPhrase1 := bool(phrase1.String())
        boolPhrase2 := bool(phrase2.String())
        switch strings.ToUpper(gateString) {
            case "OR":
                return (boolPhrase1 || boolPhrase2), nil
            case "AND":
                return (boolPhrase1 && boolPhrase2), nil
            case "NOT":
                return (!boolPhrase2), nil
            case "NOR":
                return (!(boolPhrase1 || boolPhrase2)), nil
            case "NAND":
                return (!(boolPhrase1 && boolPhrase2)
            case "XOR":
                orRes := (boolPhrase1 || boolPhrase2)
                nandRes := (!(boolPhrase1 && boolPhrase2))
                return (orRes && nandRes), nil
            default:
                return false, fmt.Errorf("Why you do dis?: %v", inString)
        }
    }
    
    func main(){
        answer, err := stringAsGateLogic ("This person misunderstands a beautiful function code can be very sexy or maybe I'm a odd girl.")
        if err != nil {
            fmt.Println(err)
        }
        fmt.Println(answer)
    }