• ArbitraryValue@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 years ago

    Once when I was still a kid, I told a woman I loved her so much that I could only love her more if she was a robot.

    She did not think that was romantic.

  • Nsh@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    The creator of MySQL, MaxDB and MariaDB named them after his children My, Max and Maria, so why not

  • Jtskywalker@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    I made a website for my wife with a list of a ton of reasons why I love her and each time she taps the screen it shows a new one.

    So… that is a thing you can do for the cost of a domain name and some cheap hosting.

  • Spectacle8011@lemmy.comfysnug.space
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    The GNU kernel was not originally supposed to be called the Hurd. Its original name was Alix—named after the woman who was my sweetheart at the time. She, a Unix system administrator, had pointed out how her name would fit a common naming pattern for Unix system versions; as a joke, she told her friends, “Someone should name a kernel after me.” I said nothing, but decided to surprise her with a kernel named Alix.

    Source: https://www.gnu.org/gnu/thegnuproject.en.html

  • noodle@feddit.uk
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 years ago

    When I was learning programming I wrote a small program that I called for_you.exe. It printed an animated ASCII penis ejaculating on some boobs. I emailed it to my girlfriend and thankfully she thought it was hilarious. We’re still together.

  • zeekaran@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    I wrote an automation specifically for my partner to unlock the front door when they arrive home.

    Also we got a sexy time button.

    Home Assistant is a path to what many would consider… Unnatural.

    • nickwitha_k (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago
      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)
      }
      
      • wallmenis@lemmy.one
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        isLogicGate is not used. Maybe you mean to place it in “isGate” in the stringAsGateLogic for loop’s if statement?

        • nickwitha_k (he/him)@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Thank you. That’s what I get for writing a drawn-out shitpost program on my phone over several hours while away from home, instead of in a few minutes in vim.

          • AVincentInSpace@pawb.social
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Speaking of, Vim is actually quite easy to set up on Android. Simply download Termux from F-Droid (the version of Termux on Google Play is severely out of date) and pkg install vim (or nvim if you prefer). (Also, full aarch64 linux terminal on non-rooted Android, woo!) Using Vim with an onscreen keyboard is agonizing, of course, but it does work (Termux provides the Ctrl and Esc keys). The F-Droid app Unexpected Keyboard is a recommended addition – it’s an alternative on-screen keyboard with no predictive text and swiping to the corners of each key for alternate symbols. It makes using Vim on a touchscreen at least moderately less painful.

  • crunchpaste@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    Well, I made my girlfriend a GUI app that converts subtitles from Windows-1251 to utf-8 encoding so that she doesn’t have to remember how to do it. And I didn’t even name it after her…